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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-CPdofn7R.d.ts} +3 -5
  3. package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
  4. package/dist/{FaceDetectionProvider-CHpscouN.esm.js → FaceDetectionProvider-Dv9iXub0.esm.js} +21 -13
  5. package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-CAxToGns.d.ts} +3 -3
  6. package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-CLWIYHB4.d.ts} +7 -6
  7. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  8. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  9. package/dist/{MotionSensorProvider-DYxh8TjR.esm.js → MotionSensorProvider-X4_2eBGd.esm.js} +15 -0
  10. package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
  11. package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-BqaHTJF0.d.ts} +25 -3
  12. package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
  13. package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-DVFDFlIL.esm.js} +63 -6
  14. package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
  15. package/dist/{addressSearch-D6cKPWmk.esm.js → addressSearch-BKlynuBr.esm.js} +6 -7
  16. package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
  17. package/dist/ae-signature.d.ts +2 -2
  18. package/dist/ae-signature.esm.js +1 -1
  19. package/dist/antifraud.d.ts +1 -1
  20. package/dist/antifraud.esm.js +2 -2
  21. package/dist/{antifraudManager-CbIwM35x.esm.js → antifraudManager-BI2zr7YX.esm.js} +5 -3
  22. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  23. package/dist/{antifraudStateMachine-qNNXrlsP.esm.js → antifraudStateMachine-TWUu8wLN.esm.js} +4 -6
  24. package/dist/{api-C_P9YXbL.esm.js → api-BNxrW8xK.esm.js} +4 -1
  25. package/dist/{apiError-BeWqIYu8.esm.js → apiError-BAfdBGxH.esm.js} +1 -1
  26. package/dist/{attemptCarry-BaAXPR_w.esm.js → attemptCarry-DWM8lV9V.esm.js} +1 -1
  27. package/dist/authentication.d.ts +3 -3
  28. package/dist/authentication.esm.js +2 -2
  29. package/dist/{authenticationManager-DKLRA91K.d.ts → authenticationManager-BJElkTsj.d.ts} +2 -2
  30. package/dist/{authenticationManager-CTHFl6dl.esm.js → authenticationManager-DFzByAYo.esm.js} +7 -6
  31. package/dist/{authenticationStateMachine-D-SOzH8C.esm.js → authenticationStateMachine-CKTOhwwc.esm.js} +50 -18
  32. package/dist/avatar.d.ts +1 -1
  33. package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
  34. package/dist/{browser-pQZA35G2-DJEJnmCd.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
  35. package/dist/calendarDate-DcqGuEht.esm.js +35 -0
  36. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  37. package/dist/camera-9yYDUOsO.d.ts +5 -0
  38. package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
  39. package/dist/camera.d.ts +7 -3
  40. package/dist/camera.esm.js +1 -1
  41. package/dist/certificate-issuance.d.ts +1 -1
  42. package/dist/certificate-issuance.esm.js +2 -2
  43. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  44. package/dist/{certificateIssuanceManager-CrF3wjCH.esm.js → certificateIssuanceManager-P44yBRop.esm.js} +5 -3
  45. package/dist/{certificateIssuanceStateMachine-uSD9IkcV.esm.js → certificateIssuanceStateMachine-BPBrILt6.esm.js} +3 -3
  46. package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
  47. package/dist/consent.d.ts +1 -1
  48. package/dist/consent.esm.js +2 -2
  49. package/dist/{consentManager-BD7wwgat.esm.js → consentManager-D43w2ms-.esm.js} +5 -3
  50. package/dist/{consentManager-7aHaehwF.d.ts → consentManager-Duzd8paN.d.ts} +4 -3
  51. package/dist/{consentStateMachine-BAiLDE3D.esm.js → consentStateMachine-CLK8PfM4.esm.js} +6 -9
  52. package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
  53. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-Ct9QrQ66.d.ts} +1 -1
  54. package/dist/cross-document-data-match.d.ts +1 -1
  55. package/dist/cross-document-data-match.esm.js +1 -1
  56. package/dist/{crossDocumentDataMatchManager-CUc1uACE.esm.js → crossDocumentDataMatchManager-Cag_bcyW.esm.js} +6 -5
  57. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  58. package/dist/curp-DZGvefg3.esm.js +14 -0
  59. package/dist/curp-validation.d.ts +1 -1
  60. package/dist/curp-validation.esm.js +2 -2
  61. package/dist/{curpValidationManager-DBfZSQbu.esm.js → curpValidationManager-C6WmQToS.esm.js} +6 -4
  62. package/dist/{curpValidationManager-Crz3bnCo.d.ts → curpValidationManager-CmL52FU8.d.ts} +4 -4
  63. package/dist/{curpValidationStateMachine-DyAEyScb.esm.js → curpValidationStateMachine-BbJ4YAzE.esm.js} +16 -17
  64. package/dist/custom-fields.d.ts +1 -1
  65. package/dist/custom-fields.esm.js +1 -1
  66. package/dist/custom-watchlist.d.ts +1 -1
  67. package/dist/custom-watchlist.esm.js +2 -2
  68. package/dist/{customFieldsManager-BZhIPyaY.esm.js → customFieldsManager-BBy6X9nh.esm.js} +15 -17
  69. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  70. package/dist/{customWatchlistManager-B4cmxi__.esm.js → customWatchlistManager-CtBMy2EF.esm.js} +5 -3
  71. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  72. package/dist/{customWatchlistStateMachine-ZZoDGRAZ.esm.js → customWatchlistStateMachine-SS2ssNCg.esm.js} +4 -6
  73. package/dist/deepsightCaptureConfig-Nm_K8twx.esm.js +70 -0
  74. package/dist/{deepsightLoader-je1YxHgT.esm.js → deepsightLoader-BInnND1H.esm.js} +7 -6
  75. package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-B-Z2EgJJ.esm.js} +51 -1
  76. package/dist/{desktopCameraElection-m2dAj6Zu.esm.js → desktopCameraElection-JNBOXqvK.esm.js} +110 -13
  77. package/dist/device.d.ts +3 -3
  78. package/dist/device.esm.js +16 -16
  79. package/dist/document-capture.d.ts +2 -2
  80. package/dist/document-capture.esm.js +2 -2
  81. package/dist/document-signature.d.ts +123 -0
  82. package/dist/document-signature.esm.js +149 -0
  83. package/dist/{documentCaptureManager-v57klTso.esm.js → documentCaptureManager-CGDtkfWj.esm.js} +5 -3
  84. package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +7 -6
  85. package/dist/{documentCaptureStateMachine-CgCtimSa.esm.js → documentCaptureStateMachine-flAt9D4q.esm.js} +11 -13
  86. package/dist/documentSignatureStateMachine-DrRyICFT.esm.js +219 -0
  87. package/dist/dynamic-forms.d.ts +1 -1
  88. package/dist/dynamic-forms.esm.js +2 -2
  89. package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
  90. package/dist/{dynamicFormsManager-BKWJZfkn.esm.js → dynamicFormsManager-CxLq2KzT.esm.js} +5 -3
  91. package/dist/{dynamicFormsStateMachine-CQN8p1ux.esm.js → dynamicFormsStateMachine-By-maT_4.esm.js} +12 -13
  92. package/dist/ekyb.d.ts +3 -3
  93. package/dist/ekyb.esm.js +3 -3
  94. package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
  95. package/dist/{ekybManager-BD6HTwFJ.esm.js → ekybManager-CE19Pcdb.esm.js} +5 -3
  96. package/dist/{ekybStateMachine-3kceTymI.esm.js → ekybStateMachine-q7JQ-x9l.esm.js} +1214 -91
  97. package/dist/{ekybUtils-Cw8Ta9Qi.esm.js → ekybUtils-Z9MhFAer.esm.js} +11 -1
  98. package/dist/ekyc-prefill.d.ts +3 -3
  99. package/dist/ekyc-prefill.esm.js +2 -2
  100. package/dist/ekyc.d.ts +3 -3
  101. package/dist/ekyc.esm.js +3 -3
  102. package/dist/{ekycManager-CERRvIfg.d.ts → ekycManager-BKVQazAb.d.ts} +48 -7
  103. package/dist/{ekycManager-DawJq3Jo.esm.js → ekycManager-p3uenUEi.esm.js} +39 -16
  104. package/dist/{ekycPrefillManager-DLNmToWT.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +10 -9
  105. package/dist/{ekycPrefillManager-D_8NJzZf.esm.js → ekycPrefillManager-gPX3XE7u.esm.js} +3 -2
  106. package/dist/{ekycPrefillStateMachine-C-JAvkH3.esm.js → ekycPrefillStateMachine-SBnBKPGA.esm.js} +12 -13
  107. package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-BH_Ll_0A.esm.js} +201 -38
  108. package/dist/{ekycStateMachine-qvQ-b4IY.esm.js → ekycStateMachine-D0NAHzS7.esm.js} +1031 -132
  109. package/dist/{ekycUtils-Drx8ImpN.esm.js → ekycUtils-DEvtEyBI.esm.js} +55 -43
  110. package/dist/electronic-signature.d.ts +1 -1
  111. package/dist/electronic-signature.esm.js +1 -1
  112. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  113. package/dist/{electronicSignatureManager-u3UBhWw_.esm.js → electronicSignatureManager-C1M-Yxf2.esm.js} +11 -17
  114. package/dist/email.d.ts +1 -1
  115. package/dist/email.esm.js +2 -2
  116. package/dist/{emailManager-BSaGg1Gl.esm.js → emailManager-DWnhEsUf.esm.js} +5 -3
  117. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  118. package/dist/{emailStateMachine-CaoPZtZN.esm.js → emailStateMachine--T9PHflK.esm.js} +5 -7
  119. package/dist/events-ChMS-UzR.esm.js +299 -0
  120. package/dist/events.d.ts +4 -1
  121. package/dist/events.esm.js +2 -1
  122. package/dist/extensibility.d.ts +42 -42
  123. package/dist/extensibility.esm.js +38 -38
  124. package/dist/face-match.d.ts +1 -1
  125. package/dist/face-match.esm.js +2 -2
  126. package/dist/{faceCaptureManagerFactory-DKJUjsV2.esm.js → faceCaptureManagerFactory-18QW0lmV.esm.js} +29 -12
  127. package/dist/{faceCaptureManagerFactory-ZudYP6Qp.d.ts → faceCaptureManagerFactory-CHqmyOjM.d.ts} +35 -16
  128. package/dist/{faceCaptureSetup-CZzv26ip.esm.js → faceCaptureSetup-CFToXwHy.esm.js} +115 -74
  129. package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-C5b5WtcY.d.ts} +12 -5
  130. package/dist/{faceMatchManager-qPJsa5Ac.esm.js → faceMatchManager-DIStK4qi.esm.js} +5 -3
  131. package/dist/{faceMatchStateMachine-D90ZHY1r.esm.js → faceMatchStateMachine-DagrRdo2.esm.js} +49 -34
  132. package/dist/{feature-management-BMUPPAzI.esm.js → feature-management-BlscKbeV.esm.js} +3 -2
  133. package/dist/feature-management.esm.js +1 -1
  134. package/dist/field-comparison.d.ts +1 -1
  135. package/dist/field-comparison.esm.js +1 -1
  136. package/dist/{fieldComparisonManager-BLLj_Ey1.esm.js → fieldComparisonManager-BnWBtMN7.esm.js} +7 -7
  137. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  138. package/dist/fiscal-qr.d.ts +1 -1
  139. package/dist/fiscal-qr.esm.js +1 -1
  140. package/dist/{fiscalQrManager-Bh3rxb7Y.esm.js → fiscalQrManager-BxXaLhin.esm.js} +9 -8
  141. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  142. package/dist/flow-events.d.ts +1 -1
  143. package/dist/flow.d.ts +50 -14
  144. package/dist/flow.esm.js +214 -58
  145. package/dist/{flowCompletionService-DgA2VEq4.esm.js → flowCompletionService-DNLssMAg.esm.js} +2 -2
  146. package/dist/{flowServices-aJ5kGxBd.esm.js → flowServices-Bzq3piUR.esm.js} +378 -18
  147. package/dist/geolocation.d.ts +1 -1
  148. package/dist/geolocation.esm.js +2 -2
  149. package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
  150. package/dist/{geolocationManager-BA57nCxj.esm.js → geolocationManager-DoLbpx5e.esm.js} +5 -3
  151. package/dist/{geolocationStateMachine-3-d1ECCh.esm.js → geolocationStateMachine-d5_E7gAm.esm.js} +8 -10
  152. package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
  153. package/dist/government-validation.d.ts +1 -1
  154. package/dist/government-validation.esm.js +2 -2
  155. package/dist/{governmentValidationManager-D5HkBqfr.esm.js → governmentValidationManager-CaZxyEOO.esm.js} +5 -3
  156. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  157. package/dist/{governmentValidationStateMachine-BwMClTqC.esm.js → governmentValidationStateMachine-DeHHhlcf.esm.js} +4 -6
  158. package/dist/home.d.ts +4 -3
  159. package/dist/home.esm.js +4 -2
  160. package/dist/http.esm.js +1 -1
  161. package/dist/id-ocr.d.ts +1 -1
  162. package/dist/id-ocr.esm.js +3 -3
  163. package/dist/id-selfie-flow.d.ts +7 -6
  164. package/dist/id-selfie-flow.esm.js +14 -13
  165. package/dist/id-verification.d.ts +1 -1
  166. package/dist/id-verification.esm.js +2 -2
  167. package/dist/id.d.ts +5 -5
  168. package/dist/id.esm.js +3 -3
  169. package/dist/{idCaptureDefaults-Dszuq9ng.esm.js → idCaptureDefaults-R3rHuTOE.esm.js} +4 -4
  170. package/dist/{idCaptureManager-NRGuCVv2.d.ts → idCaptureManager-CgkQW3Xc.d.ts} +24 -13
  171. package/dist/{idCaptureManager-B_TyUA3w.esm.js → idCaptureManager-D_YGMeCW.esm.js} +30 -22
  172. package/dist/{idCaptureServices-C6FUQ76N.esm.js → idCaptureServices-CP6AxsFW.esm.js} +17 -25
  173. package/dist/{idCaptureStateMachine-Cr8WdGyp.esm.js → idCaptureStateMachine-BdBtGQZP.esm.js} +114 -96
  174. package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
  175. package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-C0C7lFGd.d.ts} +4 -3
  176. package/dist/{idOcrManager-BMK2oou0.esm.js → idOcrManager-XTbpfHoF.esm.js} +5 -3
  177. package/dist/{idOcrStateMachine-RjNycN07.esm.js → idOcrStateMachine-B-00PgPh.esm.js} +13 -10
  178. package/dist/{idVerificationManager-4wY-Ee4j.esm.js → idVerificationManager-B4NYLlUl.esm.js} +5 -3
  179. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  180. package/dist/{idVerificationStateMachine-Bj00uWvh.esm.js → idVerificationStateMachine-B48Ikl-7.esm.js} +4 -6
  181. package/dist/identity-reuse.d.ts +2 -2
  182. package/dist/identity-reuse.esm.js +2 -2
  183. package/dist/identity-search.d.ts +97 -0
  184. package/dist/identity-search.esm.js +96 -0
  185. package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +84 -17
  186. package/dist/{identityReuseManager-CCZ-ES2E.esm.js → identityReuseManager-tFeYm_So.esm.js} +9 -4
  187. package/dist/{identityReuseStateMachine-BtpkGpYZ.esm.js → identityReuseStateMachine-Ckf39qFu.esm.js} +24 -31
  188. package/dist/{index-DlVDVTcf.d.ts → index-CNck5TLp.d.ts} +1 -1
  189. package/dist/{index-BGnYn_4J.d.ts → index-CoePktWH.d.ts} +2 -2
  190. package/dist/index-DHuAkTe0.d.ts +1 -0
  191. package/dist/index.d.ts +1 -1
  192. package/dist/index.esm.js +1 -1
  193. package/dist/{invokeOnCaptureCallback-BkvXSZfa.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
  194. package/dist/kyb-checks.d.ts +1 -1
  195. package/dist/kyb-checks.esm.js +2 -2
  196. package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
  197. package/dist/{kybChecksManager-x2nBdasv.esm.js → kybChecksManager-DP76y-Qz.esm.js} +3 -2
  198. package/dist/{kybChecksStateMachine-DdWSo3jQ.esm.js → kybChecksStateMachine-OKLT8Zoc.esm.js} +11 -14
  199. package/dist/mandatory-consent.d.ts +2 -2
  200. package/dist/mandatory-consent.esm.js +2 -2
  201. package/dist/{mandatoryConsentManager-C9JJGENL.esm.js → mandatoryConsentManager-NX1lz6nk.esm.js} +5 -3
  202. package/dist/{mandatoryConsentManager-JNeVXgK8.d.ts → mandatoryConsentManager-kzr5kdc_.d.ts} +5 -4
  203. package/dist/{mandatoryConsentStateMachine-DLNIGElA.esm.js → mandatoryConsentStateMachine-D1J2NQSI.esm.js} +6 -9
  204. package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +21 -4
  205. package/dist/{multipartRecordingService-OmSzHBqh.esm.js → multipartRecordingService-Cz-cWrpV.esm.js} +2 -2
  206. package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-Cyh71hOt.esm.js} +1 -1
  207. package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-BrtDMB0Z.esm.js} +23 -9
  208. package/dist/phone.d.ts +1 -1
  209. package/dist/phone.esm.js +2 -2
  210. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  211. package/dist/{phoneManager-BylOWecM.esm.js → phoneManager-D1QPNbu0.esm.js} +5 -3
  212. package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
  213. package/dist/{phoneServices-Crge7uSV.esm.js → phoneServices-DC7AuUed.esm.js} +3 -7
  214. package/dist/{phoneStateMachine-CHnhCS-4.esm.js → phoneStateMachine-CxCPxTIy.esm.js} +4 -4
  215. package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
  216. package/dist/{processFaceMatch-BveUAHts.esm.js → processFaceMatch-BQoiqLVh.esm.js} +1 -1
  217. package/dist/qe-signature.d.ts +2 -2
  218. package/dist/qe-signature.esm.js +1 -1
  219. package/dist/{recordingService-BUqAQd8F.esm.js → recordingService-CSCvD2tB.esm.js} +17 -10
  220. package/dist/redirect-to-mobile.d.ts +1 -1
  221. package/dist/redirect-to-mobile.esm.js +2 -2
  222. package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-Db99n9Yu.d.ts} +4 -3
  223. package/dist/{redirectToMobileManager-DUpLyXsq.esm.js → redirectToMobileManager-Dcpg5GfP.esm.js} +7 -4
  224. package/dist/{redirectToMobileStateMachine-D0DW4y-f.esm.js → redirectToMobileStateMachine-BMehrtVP.esm.js} +18 -21
  225. package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
  226. package/dist/{runChildModule-BTMOZdMM.esm.js → runChildModule-DNEmc7of.esm.js} +8 -6
  227. package/dist/{sdkVersion-CinXzhdk.esm.js → sdkVersion-etdZfyCR.esm.js} +1 -1
  228. package/dist/selfie.d.ts +6 -6
  229. package/dist/selfie.esm.js +15 -13
  230. package/dist/{selfieErrorUtils-D92PpZGe.esm.js → selfieErrorUtils-DT-uhK20.esm.js} +1 -1
  231. package/dist/{selfieManager-DX9Ejy4x.esm.js → selfieManager-CdS6a7Q8.esm.js} +7 -6
  232. package/dist/{selfieManager-BPOlD-UN.d.ts → selfieManager-DrBYj5kA.d.ts} +2 -2
  233. package/dist/{selfieStateMachine-BfJ5mJ57.esm.js → selfieStateMachine-ChCl3nyf.esm.js} +5 -5
  234. package/dist/{session-CswNE2eZ.esm.js → session-VXYuRYzb.esm.js} +5 -4
  235. package/dist/session.d.ts +3 -13
  236. package/dist/session.esm.js +5 -5
  237. package/dist/{sessionInitializer-DFtIRfDh.esm.js → sessionInitializer-BT_CmYcX.esm.js} +54 -79
  238. package/dist/{setup-Bl3CRduw.esm.js → setup-BXrgDdfx.esm.js} +14 -12
  239. package/dist/{setup-prV5HQCQ.d.ts → setup-rcXgYUcY.d.ts} +6 -5
  240. package/dist/signature.d.ts +1 -1
  241. package/dist/signature.esm.js +2 -2
  242. package/dist/{signatureManager-QlegdTo3.esm.js → signatureManager-B737Gkvk.esm.js} +5 -3
  243. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  244. package/dist/{signatureStateMachine-DFbbbFwg.esm.js → signatureStateMachine-B-QG7fk0.esm.js} +5 -7
  245. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  246. package/dist/{stats-Bv5PiWvo.esm.js → stats-CrqhpKkP.esm.js} +1 -1
  247. package/dist/stats.esm.js +1 -1
  248. package/dist/step-up.d.ts +3 -2
  249. package/dist/step-up.esm.js +2 -1
  250. package/dist/{tri-BUFivnaE.esm.js → tri-BD9z6z0w.esm.js} +6 -3
  251. package/dist/tri.d.ts +1 -1
  252. package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
  253. package/dist/tri.esm.js +1 -1
  254. package/dist/trueSight-BymJD5cW.esm.js +1 -0
  255. package/dist/{trueSightService-CDbmG-Mi.esm.js → trueSightService-BwyLhIAo.esm.js} +10 -8
  256. package/dist/trust-graph.d.ts +87 -27
  257. package/dist/trust-graph.esm.js +6 -25
  258. package/dist/trustGraphStateMachine-BxvReuo1.esm.js +58 -0
  259. package/dist/{types-CquDWYfv.d.ts → types-4Re9FSOw.d.ts} +68 -6
  260. package/dist/{types-D9vIGFbl.d.ts → types-B-PIc0en.d.ts} +1 -1
  261. package/dist/types-BNkzXOXE.d.ts +45 -0
  262. package/dist/types-BtrJ5fkm.d.ts +6 -0
  263. package/dist/{types-LA74KylV.d.ts → types-C1056-J1.d.ts} +1 -1
  264. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  265. package/dist/{events-kU5WJU4B.esm.js → types-CBQN04Rh.esm.js} +5 -299
  266. package/dist/{types-BD9sV5oG.d.ts → types-CEGG70FK.d.ts} +16 -3
  267. package/dist/types-CXTDuzUJ.d.ts +16 -0
  268. package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
  269. package/dist/{types-CyNndVAT.d.ts → types-Cy6Lx3L6.d.ts} +2 -2
  270. package/dist/{types-BaDx6utW.d.ts → types-DEa3taWc.d.ts} +4 -0
  271. package/dist/{types-0Rr7etmf.d.ts → types-DHpz4Y37.d.ts} +1 -1
  272. package/dist/{types-BpJ21a4T.d.ts → types-b0l9b83G.d.ts} +14 -7
  273. package/dist/video-selfie.d.ts +8 -7
  274. package/dist/video-selfie.esm.js +14 -13
  275. package/dist/{videoSelfieCameraWarmer-Dnkiqe0z.esm.js → videoSelfieCameraWarmer-DgRlU_8q.esm.js} +10 -10
  276. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  277. package/dist/{videoSelfieStepDetector-B78BE_x9.d.ts → videoSelfieStepDetector-DC_Qh7qI.d.ts} +19 -9
  278. package/dist/{warmup-DtB0DJpl.esm.js → warmup-BN8dG2KX.esm.js} +192 -42
  279. package/dist/{warmup-BO57syF6.d.ts → warmup-SWu5L7cW.d.ts} +19 -2
  280. package/dist/wasm.d.ts +9 -3
  281. package/dist/wasm.esm.js +3 -3
  282. package/dist/wasmDeepsightConfigSync-DukEcrU8.esm.js +77 -0
  283. package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-DwBfTlgB.esm.js} +1 -1
  284. package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-B2P6Vlvv.esm.js} +32 -13
  285. package/dist/watchlist-for-business.d.ts +1 -1
  286. package/dist/watchlist-for-business.esm.js +2 -2
  287. package/dist/watchlist.d.ts +1 -1
  288. package/dist/watchlist.esm.js +2 -2
  289. package/dist/{watchlistForBusinessManager-DOYmIiaj.esm.js → watchlistForBusinessManager-DxeSH80T.esm.js} +5 -3
  290. package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
  291. package/dist/{watchlistForBusinessStateMachine-D8qIyL8w.esm.js → watchlistForBusinessStateMachine-BC9UWLuZ.esm.js} +12 -9
  292. package/dist/{watchlistManager-BJGLRv-x.esm.js → watchlistManager-BHzmC9OC.esm.js} +5 -3
  293. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  294. package/dist/{watchlistStateMachine-DeLfuGSl.esm.js → watchlistStateMachine-Bxzn16iJ.esm.js} +4 -6
  295. package/dist/workflow.d.ts +6 -5
  296. package/dist/workflow.esm.js +68 -49
  297. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  298. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  299. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  300. package/package.json +13 -3
  301. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  302. package/dist/camera-9wWD-pwg.d.ts +0 -4
  303. package/dist/index-DpTj5PFb.d.ts +0 -1
  304. package/dist/nationalIds-B91f_RuB.esm.js +0 -99
  305. package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
  306. package/dist/tri.esm-DgtAka_v.esm.js +0 -2145
  307. package/dist/types-B2M1IPZn.d.ts +0 -6
  308. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +0 -27
@@ -0,0 +1 @@
1
+ import "./xstate.cjs-D6Ur0X1F.js";
@@ -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-SWu5L7cW.js";
2
+ import { _ as MLProviderConfig } from "./createFaceAvatar-Ct9QrQ66.js";
3
3
  //#region ../infra/src/wasm/WasmPipelineType.d.ts
4
4
  declare enum WasmPipelineType {
5
5
  IdBlurGlarePipeline = 0,
@@ -8,9 +8,7 @@ declare enum WasmPipelineType {
8
8
  SelfieWithAggregationMetrics = 3,
9
9
  SelfieWithQualityMetrics = 4,
10
10
  OnDeviceSelfieWorkflow = 5,
11
- IdBlurGlareCoreWorkflow = 6,
12
- IdBarcodeAndTextQualityCoreWorkflow = 7,
13
- IdFaceQualityCoreWorkflow = 8
11
+ IdFaceQualityPipeline = 6
14
12
  }
15
13
  //#endregion
16
14
  //#region ../infra/src/providers/wasm/BaseWasmProvider.d.ts
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
- import { r as getWorkerRecordingProfile } from "./mediaRecorderOptions-B9-IEVtV.esm.js";
2
+ import { r as getWorkerRecordingProfile } from "./mediaRecorderOptions-Di_V9TnZ.esm.js";
3
3
  //#region ../infra/src/media/cameraCompositorWorker.ts
4
4
  /**
5
5
  * Whether the worker transport is available here. Every probe must hold;
@@ -73,6 +73,7 @@ function cameraCompositorWorkerMain(scope) {
73
73
  let videoEncoder = null;
74
74
  let audioEncoder = null;
75
75
  let hasAudioSource = false;
76
+ let activeAudioReader = null;
76
77
  let audioWanted = false;
77
78
  let audioFormat = null;
78
79
  let audioInHeader = false;
@@ -450,14 +451,20 @@ function cameraCompositorWorkerMain(scope) {
450
451
  };
451
452
  const pumpAudio = async (readable) => {
452
453
  const reader = readable.getReader();
454
+ activeAudioReader = reader;
453
455
  try {
454
456
  for (;;) {
455
457
  const { value, done } = await reader.read();
456
458
  if (done) return;
459
+ if (reader !== activeAudioReader) {
460
+ value.close();
461
+ return;
462
+ }
457
463
  if (paused || recording !== "on") value.close();
458
464
  else encodeAudio(value);
459
465
  }
460
466
  } catch (error) {
467
+ if (reader !== activeAudioReader) return;
461
468
  audioWanted = false;
462
469
  scope.postMessage({
463
470
  type: "record-error",
@@ -549,6 +556,15 @@ function cameraCompositorWorkerMain(scope) {
549
556
  case "source":
550
557
  switchSource(message.readable);
551
558
  break;
559
+ case "audio": {
560
+ if (!encodeConfig || !hasAudioSource) break;
561
+ const previous = activeAudioReader;
562
+ activeAudioReader = null;
563
+ previous?.cancel().catch(() => {});
564
+ audio.offsetUs = null;
565
+ pumpAudio(message.readable);
566
+ break;
567
+ }
552
568
  case "pause":
553
569
  paused = true;
554
570
  break;
@@ -708,6 +724,44 @@ var CameraCompositor = class {
708
724
  if (previousVideoTrack) previousVideoTrack.stop();
709
725
  }
710
726
  /**
727
+ * Stops the microphone while no attempt records, so it is not held between
728
+ * attempts. Only the in-worker encoder can take a new microphone later
729
+ * (`switchAudio`); a `MediaRecorder` must keep its tracks, so there the
730
+ * microphone stays until `stop()`.
731
+ */
732
+ releaseAudio() {
733
+ if (!this.encodesInWorker || !this.audioTrack) return;
734
+ this.composite?.removeTrack(this.audioTrack);
735
+ this.audioTrack.stop();
736
+ this.audioTrack = null;
737
+ }
738
+ /**
739
+ * Gives the in-worker encoder the microphone of `stream` after
740
+ * `releaseAudio`. Otherwise the composite keeps its microphone and the audio
741
+ * tracks of `stream` are stopped, because nothing else would end them.
742
+ */
743
+ switchAudio(stream) {
744
+ const [track, ...unused] = stream.getAudioTracks();
745
+ for (const extra of unused) extra.stop();
746
+ if (!track) return;
747
+ if (!this.encodesInWorker || this.audioTrack || !this.composite) {
748
+ track.stop();
749
+ return;
750
+ }
751
+ try {
752
+ const processor = createTrackProcessor(track);
753
+ this.postToWorker({
754
+ type: "audio",
755
+ readable: processor.readable
756
+ }, [processor.readable]);
757
+ } catch {
758
+ track.stop();
759
+ return;
760
+ }
761
+ this.audioTrack = track;
762
+ this.composite.addTrack(track);
763
+ }
764
+ /**
711
765
  * True when this compositor records by itself: the worker transport started
712
766
  * with `encodeInWorker` and the browser has `VideoEncoder`. Use the
713
767
  * `*WorkerRecording` methods instead of a `MediaRecorder` then; the
@@ -1,15 +1,15 @@
1
- import { l as wasmRuntime } from "./warmup-DtB0DJpl.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-Bl3CRduw.esm.js";
3
- import { r as BaseWasmProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
4
- import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
5
- import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-CDbmG-Mi.esm.js";
6
- import "./sessionInitializer-DFtIRfDh.esm.js";
7
- import { t as addDeviceStats } from "./stats-Bv5PiWvo.esm.js";
1
+ import { l as wasmRuntime } from "./warmup-BN8dG2KX.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-BXrgDdfx.esm.js";
3
+ import { r as BaseWasmProvider } from "./WasmUtilProvider-DVFDFlIL.esm.js";
4
+ import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
5
+ import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-BwyLhIAo.esm.js";
6
+ import "./trueSight-BymJD5cW.esm.js";
7
+ import { t as addDeviceStats } from "./stats-CrqhpKkP.esm.js";
8
+ import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
8
9
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
9
10
  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-BveUAHts.esm.js";
11
+ import { r as hasBackCamera } from "./backCameraStream-6qVHvj76.esm.js";
12
+ import { n as saveProcessFaceMatch } from "./processFaceMatch-BQoiqLVh.esm.js";
13
13
  //#region src/internal/faceCapture/onDeviceFaceResults.ts
14
14
  /**
15
15
  * On-device still-face capture is owned by the protected camera-cycle actor.
@@ -95,7 +95,6 @@ async function uploadSelfie({ encryptedBase64Image, faceCoordinates, signal, met
95
95
  signal,
96
96
  query
97
97
  });
98
- if (!res.ok) throw new Error(`POST ${endpoints.selfie} failed: ${res.status} ${res.statusText}`);
99
98
  if (deepsightService) addDeviceStats({
100
99
  frontIdStatsAnalysisStatus: "",
101
100
  backIdStatsAnalysisStatus: "",
@@ -235,7 +234,7 @@ function startDetection(params) {
235
234
  };
236
235
  }
237
236
  async function initializeDeepsightSession(options) {
238
- const { loadDeepsightSession } = await import("./deepsightLoader-je1YxHgT.esm.js");
237
+ const { loadDeepsightSession } = await import("./deepsightLoader-BInnND1H.esm.js");
239
238
  return loadDeepsightSession({
240
239
  ds: options.ds,
241
240
  storage: options.storage
@@ -252,7 +251,10 @@ var FaceProcessingWasmApi = class {
252
251
  this.runtime.requireFaceProcessingApi("Unable to set face position constraints, cpp API hasn't been initialized").setFacePositionConstraints(this.runtime.pipelineTypeToWasmEnum(type), minX, minY, maxX, maxY);
253
252
  }
254
253
  async setFaceDetectionThresholds(type, brightnessThreshold, blurrinessThreshold, tiltRotationAngleThreshold, minMagicCropSize, autocaptureInterval, minFaceQualityScore, faceOcclusionThreshold, getReadyDelay, framesAggregationInterval, minFramesWithFace) {
255
- this.runtime.requireFaceProcessingApi("Unable to set face detection thresholds, cpp API hasn't been initialized").setFaceProcessingThresholds(this.runtime.pipelineTypeToWasmEnum(type), brightnessThreshold, blurrinessThreshold, tiltRotationAngleThreshold, minMagicCropSize, autocaptureInterval, minFaceQualityScore, faceOcclusionThreshold, getReadyDelay, framesAggregationInterval, minFramesWithFace);
254
+ const faceProcessingWasmApi = this.runtime.requireFaceProcessingApi("Unable to set face detection thresholds, cpp API hasn't been initialized");
255
+ const wasmType = this.runtime.pipelineTypeToWasmEnum(type);
256
+ faceProcessingWasmApi.setFaceProcessingThresholds(wasmType, brightnessThreshold, blurrinessThreshold, tiltRotationAngleThreshold, minMagicCropSize, minFaceQualityScore, faceOcclusionThreshold, getReadyDelay, framesAggregationInterval, minFramesWithFace);
257
+ faceProcessingWasmApi.setAutocaptureInterval(wasmType, autocaptureInterval);
256
258
  }
257
259
  async setFaceAttributesThresholds(type, headwearThreshold, lensesThreshold, closedEyesThreshold, maskThreshold) {
258
260
  this.runtime.requireFaceProcessingApi("Unable to set face attributes thresholds, cpp API hasn't been initialized").setFaceAttributesThresholds(this.runtime.pipelineTypeToWasmEnum(type), headwearThreshold, lensesThreshold, closedEyesThreshold, maskThreshold);
@@ -378,6 +380,12 @@ var FaceDetectionProvider = class extends BaseWasmProvider {
378
380
  this.applyDefaults(config.autocaptureInterval ?? 0);
379
381
  if (config.videoSelfie === true) this.setVideoSelfieMode(true);
380
382
  }
383
+ /**
384
+ * @deprecated Unsupported since ml-wasm-kit v2.14.49-post1; scheduled for
385
+ * removal in 3.0.0. Calls fail deterministically without passing the canvas
386
+ * to native code. Use `ICameraCycleCapability.captureProtectedFrame` (the
387
+ * protected camera cycle's manual capture) instead.
388
+ */
381
389
  processPhoto(canvas) {
382
390
  faceProcessingWasmApi.processPhoto(canvas);
383
391
  }
@@ -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-SWu5L7cW.js";
2
+ import { _ as MLProviderConfig, g as IMLProviderCapability, y as IncodeCanvas } from "./createFaceAvatar-Ct9QrQ66.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
@@ -73,7 +73,7 @@ interface IdCaptureCallbacks {
73
73
  onGlare?: () => void;
74
74
  onCapturing?: () => void;
75
75
  /**
76
- * Receives the exact best-shot canvas detached by the Core ID workflow.
76
+ * Receives the best-shot canvas the native ID workflow passes, if any.
77
77
  * The canvas is presentation-only; protected submission remains native-owned.
78
78
  */
79
79
  onCapture?: (canvas?: HTMLCanvasElement | null) => void;
@@ -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-SWu5L7cW.js";
2
+ import { _ as MLProviderConfig } from "./createFaceAvatar-Ct9QrQ66.js";
3
3
  //#region ../infra/src/capabilities/IStorageCapability.d.ts
4
4
  /**
5
5
  * Storage capability interface for abstracting storage operations.
@@ -133,10 +133,11 @@ type IWasmUtilCapability = {
133
133
  getPipelineState(): string;
134
134
  estimatePerformance(): string;
135
135
  /**
136
- * @deprecated Returns `false` for compatibility; scheduled for removal in
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.
136
+ * @deprecated Always returns `false` (since SDK 2.3.0); scheduled for removal
137
+ * in 3.0.0. The camera-label check runs natively in the pre-capture checks of
138
+ * the protected camera step (`ICameraCycleCapability.startCameraCycle`), and
139
+ * the signed capture metadata carries its verdict. That native check is
140
+ * authoritative; nothing is decided from this return value.
140
141
  */
141
142
  isVirtualCamera(label: string | null): boolean;
142
143
  /**
@@ -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.
@@ -17,6 +17,21 @@ var MotionSensorProvider = class MotionSensorProvider {
17
17
  static hasMotionPermissionDeniedInSession() {
18
18
  return MotionSensorProvider.readSessionFlag(MOTION_PERMISSION_DENIED_KEY);
19
19
  }
20
+ /**
21
+ * Forgets a Motion & Orientation denial stored for this page session, so the
22
+ * next `requestPermission()` asks iOS again instead of answering from
23
+ * storage. The stored flag survives a page reload, so without this a user
24
+ * who denied once can never be asked again in the same tab.
25
+ *
26
+ * Call it only right before a request made from a user tap: iOS shows its
27
+ * prompt only during a user gesture. Safari may still answer with its own
28
+ * cached denial, without a prompt, until the browser is relaunched.
29
+ */
30
+ static clearMotionPermissionDeniedInSession() {
31
+ const storage = resolveSessionStorage();
32
+ if (!storage) return;
33
+ storage.removeItem(MOTION_PERMISSION_DENIED_KEY);
34
+ }
20
35
  constructor(thresholds) {
21
36
  this._isRunning = false;
22
37
  this.acl = null;
@@ -1,4 +1,4 @@
1
- import { n as getMultipartRecorderMimeType } from "./mediaRecorderOptions-B9-IEVtV.esm.js";
1
+ import { n as getMultipartRecorderMimeType } from "./mediaRecorderOptions-Di_V9TnZ.esm.js";
2
2
  //#region ../infra/src/providers/browser/MultipartRecordingProvider.ts
3
3
  /**
4
4
  * How often `MediaRecorder` hands us buffered data (incremental blobs).
@@ -1,6 +1,6 @@
1
- import { y as IncodeCanvas } from "./createFaceAvatar-lYX0VTYs.js";
2
- import "./IWasmUtilCapability-Cqiaxydi.js";
3
- import { t as CameraStream } from "./camera-9wWD-pwg.js";
1
+ import { y as IncodeCanvas } from "./createFaceAvatar-Ct9QrQ66.js";
2
+ import "./IWasmUtilCapability-CLWIYHB4.js";
3
+ import { t as CameraStream } from "./camera-9yYDUOsO.js";
4
4
  //#region ../infra/src/capabilities/IMotionSensorCapability.d.ts
5
5
  type MotionStatus = 'PASS' | 'FAIL' | 'UNCLEAR';
6
6
  type MotionPermissionState = 'granted' | 'denied' | 'not-required';
@@ -9,6 +9,13 @@ type MotionPermissionState = 'granted' | 'denied' | 'not-required';
9
9
  type MetadataService = {
10
10
  initialize(sdkVersion: string, disableIpify?: boolean, disableFingerprint?: boolean): Promise<void>;
11
11
  updateCameraInfo(videoTrack: MediaStreamTrack): void;
12
+ /**
13
+ * Asks the deprecated `isVirtualCamera()` shim about the track's label (or,
14
+ * with no track, about every video device label). Always resolves `false`:
15
+ * the shim has returned `false` since SDK 2.3.0. The camera-label check that
16
+ * counts runs natively in the WASM pre-capture checks of the protected
17
+ * camera step, and its verdict travels in the signed capture metadata.
18
+ */
12
19
  checkForVirtualCameraByLabel(videoTrack: MediaStreamTrack | null): Promise<boolean>;
13
20
  analyzeFrame(imageData: ImageData): Promise<void>;
14
21
  setMotionStatus(status: string): void;
@@ -55,6 +62,14 @@ type DeepsightService = {
55
62
  requestMotionPermission(): Promise<'granted' | 'denied' | 'not-required'>;
56
63
  startMotionSensors(): Promise<void>;
57
64
  stopMotionSensors(): void;
65
+ /**
66
+ * Records the track's label and settings for the capture metadata, then
67
+ * resolves the JavaScript label verdict, which is always `false`: the
68
+ * `isVirtualCamera()` shim behind it has returned `false` since SDK 2.3.0.
69
+ * The camera-label check that counts runs natively in the WASM pre-capture
70
+ * checks of the protected camera step, and its verdict travels in the
71
+ * signed capture metadata.
72
+ */
58
73
  checkVirtualCamera(videoTrack: MediaStreamTrack): Promise<boolean>;
59
74
  performVirtualCameraCheck(sessionToken: string | null, source: FrameSource): Promise<void>;
60
75
  /**
@@ -107,6 +122,7 @@ declare class StreamCanvasCapture {
107
122
  private lastTickTimeMs;
108
123
  private hasFrame;
109
124
  private disposed;
125
+ private lastPlayAttemptMs;
110
126
  private eventTarget;
111
127
  constructor(stream: CameraStream, options?: StreamCanvasCaptureOptions);
112
128
  addEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
@@ -124,6 +140,12 @@ declare class StreamCanvasCapture {
124
140
  */
125
141
  dispose(): void;
126
142
  private rafLoop;
143
+ /**
144
+ * Starts (or restarts) playback of the hidden video. Rejections are expected
145
+ * on Safari 17 and earlier and are retried from {@link tick}, at most every
146
+ * {@link PLAY_RETRY_INTERVAL_MS}, while the video stays paused.
147
+ */
148
+ private ensurePlaying;
127
149
  private tick;
128
150
  }
129
151
  //#endregion
@@ -1,5 +1,7 @@
1
1
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
2
2
  //#region ../infra/src/media/StreamCanvasCapture.ts
3
+ /** How often a paused capture video asks to play again. */
4
+ const PLAY_RETRY_INTERVAL_MS = 500;
3
5
  var StreamCanvasCapture = class {
4
6
  constructor(stream, options) {
5
7
  this.hasFrame = false;
@@ -24,10 +26,9 @@ var StreamCanvasCapture = class {
24
26
  this.canvas.width = this.video.videoWidth;
25
27
  this.canvas.height = this.video.videoHeight;
26
28
  }
29
+ this.ensurePlaying();
27
30
  });
28
- try {
29
- this.video.play();
30
- } catch {}
31
+ this.ensurePlaying();
31
32
  if (options?.continuous !== false) this.rafLoop(intervalMs);
32
33
  }
33
34
  addEventListener(type, listener, options) {
@@ -94,8 +95,22 @@ var StreamCanvasCapture = class {
94
95
  };
95
96
  this.rafId = window.requestAnimationFrame(loop);
96
97
  }
98
+ /**
99
+ * Starts (or restarts) playback of the hidden video. Rejections are expected
100
+ * on Safari 17 and earlier and are retried from {@link tick}, at most every
101
+ * {@link PLAY_RETRY_INTERVAL_MS}, while the video stays paused.
102
+ */
103
+ ensurePlaying() {
104
+ if (this.disposed || !this.video.paused) return;
105
+ this.lastPlayAttemptMs = Date.now();
106
+ try {
107
+ const result = this.video.play();
108
+ if (result && typeof result.catch === "function") result.catch(() => {});
109
+ } catch {}
110
+ }
97
111
  tick() {
98
112
  if (!this.ctx) return;
113
+ if (this.video.paused && this.video.readyState >= HTMLMediaElement.HAVE_METADATA && (this.lastPlayAttemptMs === void 0 || Date.now() - this.lastPlayAttemptMs >= PLAY_RETRY_INTERVAL_MS)) this.ensurePlaying();
99
114
  if (this.video.readyState < HTMLMediaElement.HAVE_CURRENT_DATA) return;
100
115
  const videoWidth = this.video.videoWidth;
101
116
  const videoHeight = this.video.videoHeight;
@@ -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-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";
2
+ import { c as wasmCallWrapper, d as noteUnlockedCallStart, s as ML_CALL_MAX_POLLS, u as noteUnlockedCallEnd } from "./wasmWebClient-B2P6Vlvv.esm.js";
3
+ import { i as isWasmReady, l as wasmRuntime, o as waitForWasm, r as getWasmStatus, s as warmupWasm } from "./warmup-BN8dG2KX.esm.js";
4
4
  //#region ../infra/src/wasm/utilityWasmApi.ts
5
5
  /**
6
6
  * Utility / metadata domain facade over {@link WasmRuntime}.
@@ -21,10 +21,12 @@ import { i as isWasmReady, l as wasmRuntime, o as waitForWasm, r as getWasmStatu
21
21
  *
22
22
  * `fpPrefetch_` is a third, derived piece of JS state: the memoized `ppf` poll
23
23
  * that `getFPData` awaits, keyed by the embind handle it was started on.
24
+ * `pidReady_` is a fourth: the memoized `ppi` poll that a PID read races
25
+ * against that prefetch, keyed by the prefetch run it watches.
24
26
  *
25
27
  * `poc`/`rsp` are the only methods here that hold the ML semaphore (the camera
26
28
  * step's `cst` holds it from `WasmRuntime`).
27
- * `ssl`/`stl`/`osv`/`oev`/`ckvcks`/`sbc`/`ppf` and everything else are unlocked **by design**
29
+ * `ssl`/`stl`/`osv`/`oev`/`ckvcks`/`sbc`/`ppf`/`ppi` and everything else are unlocked **by design**
28
30
  * (decision D6) — never add locking.
29
31
  *
30
32
  * Three members are deprecated native-free shims for bindings ml-wasm-kit
@@ -40,6 +42,10 @@ import { i as isWasmReady, l as wasmRuntime, o as waitForWasm, r as getWasmStatu
40
42
  * realm state (ADR 0009 §6). The SDK-facing unguarded entry is
41
43
  * `wasmMetadataVersionSync.ts`.
42
44
  *
45
+ * `sdsc` (ml-wasm-kit #761, first in v2.14.55, the pinned release) works the
46
+ * same way through `WasmRuntime.setDeepsightConfig`; its SDK-facing unguarded
47
+ * entry is `wasmDeepsightConfigSync.ts`.
48
+ *
43
49
  * Method names, argument order and the pre-initialization error strings are
44
50
  * copied verbatim from the mirrored upstream `wasmApi.ts` so a WASM version bump
45
51
  * stays a diff against upstream (`docs/processes/WASM_VERSION_MIGRATION.md`).
@@ -55,7 +61,8 @@ const SignalDataType = {
55
61
  Pid: 3
56
62
  };
57
63
  /**
58
- * Poll bound for the `ppf` fingerprint prefetch. Larger than
64
+ * Poll bound for the `ppf` fingerprint prefetch, and for the `ppi` poll a PID
65
+ * read races against it. Larger than
59
66
  * {@link ML_CALL_MAX_POLLS} because the prefetch waits on async browser APIs
60
67
  * (storage estimate, persistent ID) rather than camera frames, and it is
61
68
  * unlocked, so a stuck poll cannot freeze detection — it only delays signals.
@@ -66,6 +73,7 @@ var UtilityWasmApi = class {
66
73
  this.runtime = runtime;
67
74
  this.inspectorOpened_ = false;
68
75
  this.fpPrefetch_ = null;
76
+ this.pidReady_ = null;
69
77
  this.dsEnabled_ = false;
70
78
  }
71
79
  ens(image) {
@@ -182,8 +190,23 @@ var UtilityWasmApi = class {
182
190
  this.runtime.setMetadataV2Enabled(enabled);
183
191
  }
184
192
  /**
193
+ * The current module's Deepsight 2.0 signal config (`sdsc`, ml-wasm-kit
194
+ * #761): its `deepsightCaptureConfig` as JSON text, `""` to clear it.
195
+ * Guarded like upstream; the value is latched on the runtime so it survives
196
+ * re-initialization, like {@link smv}.
197
+ */
198
+ sdsc(config) {
199
+ this.runtime.requireUtilityApi("Unable to sdsc, cpp API hasn't been initialized");
200
+ this.runtime.setDeepsightConfig(config);
201
+ }
202
+ /**
185
203
  * Reads one fingerprint signal bucket (see {@link SignalDataType}), encrypted
186
- * by the native module. Waits for the one-time async prefetch (`ppf`) first.
204
+ * by the native module. Device and Behaviour wait for the one-time async
205
+ * prefetch (`ppf`) first. Pid waits only until the persistent-id resolver is
206
+ * done (`ppi`), or the prefetch settles, whichever is first: the prefetch
207
+ * still drives the resolver, and its failure still rejects the read. On a
208
+ * build without `ppi` (before v2.14.55) Pid waits for the
209
+ * prefetch like the other buckets.
187
210
  * An empty string means the bucket has no data.
188
211
  *
189
212
  * @throws If the WASM C++ API has not been initialized yet.
@@ -191,7 +214,8 @@ var UtilityWasmApi = class {
191
214
  async getFPData(signalsType = SignalDataType.Device) {
192
215
  const message = "Unable to get fingerprint data, cpp API hasn't been initialized";
193
216
  const handle = this.runtime.requireUtilityApi(message);
194
- await this.prefetchFingerprintData(handle, message);
217
+ const prefetch = this.prefetchFingerprintData(handle, message);
218
+ await (signalsType === SignalDataType.Pid && handle.ppi ? Promise.race([this.persistentIdReady(prefetch, message), prefetch]) : prefetch);
195
219
  return this.runtime.requireUtilityApi(message).getFPData(signalsType);
196
220
  }
197
221
  /**
@@ -221,6 +245,32 @@ var UtilityWasmApi = class {
221
245
  return promise;
222
246
  }
223
247
  /**
248
+ * Polls `ppi` (the persistent-id resolver finished) for one prefetch run.
249
+ * `ppi` only reads the resolver; the `ppf` poll is what moves it, so this poll
250
+ * also stops as soon as that run settles, success or failure.
251
+ */
252
+ persistentIdReady(prefetch, message) {
253
+ if (this.pidReady_?.prefetch === prefetch) return this.pidReady_.promise;
254
+ let prefetchSettled = false;
255
+ const markSettled = () => {
256
+ prefetchSettled = true;
257
+ };
258
+ prefetch.then(markSettled, markSettled);
259
+ const promise = wasmCallWrapper(this.runtime.mlCallSemaphore, () => prefetchSettled || (this.runtime.requireUtilityApi(message).ppi?.() ?? false), false, {
260
+ maxPolls: FP_PREFETCH_MAX_POLLS,
261
+ label: "ppi"
262
+ });
263
+ const entry = {
264
+ prefetch,
265
+ promise
266
+ };
267
+ this.pidReady_ = entry;
268
+ promise.catch(() => {
269
+ if (this.pidReady_ === entry) this.pidReady_ = null;
270
+ });
271
+ return promise;
272
+ }
273
+ /**
224
274
  * @deprecated Resolves without doing anything. ml-wasm-kit v2.14.52 removed
225
275
  * `prc`: the pre-capture check runs inside the protected camera step
226
276
  * (`ICameraCycleCapability.startCameraCycle`), which holds the ML semaphore
@@ -493,6 +543,13 @@ var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
493
543
  this.ensureInitialized();
494
544
  return utilityWasmApi.estimatePerformance();
495
545
  }
546
+ /**
547
+ * @deprecated Always returns `false` (since SDK 2.3.0); scheduled for removal
548
+ * in 3.0.0. The camera-label check runs natively in the pre-capture checks of
549
+ * the protected camera step (`ICameraCycleCapability.startCameraCycle`), and
550
+ * the signed capture metadata carries its verdict. That native check is
551
+ * authoritative; nothing is decided from this return value.
552
+ */
496
553
  isVirtualCamera(label) {
497
554
  return utilityWasmApi.isVirtualCamera(label);
498
555
  }
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
- import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-BfQPSgSO.esm.js";
2
+ import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-BtMQZEbg.esm.js";
3
3
  //#region ../infra/src/providers/browser/WorkerEncoderRecordingProvider.ts
4
4
  var WorkerEncoderRecordingProvider_exports = /* @__PURE__ */ __exportAll({ WorkerEncoderRecordingProvider: () => WorkerEncoderRecordingProvider });
5
5
  /**