@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
@@ -1,7 +1,7 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
- import { A as WASM_PIPELINE_OPTIONAL_MODEL_NAMES, E as WASM_MODEL_FILES, M as missingWasmModelError, N as resolveWasmSource, O as WASM_PIPELINE_MODELS, P as reportWasmIntegritySummary, _ as emitWasmDiagnostic, b as DEFAULT_WASM_VERSION, c as wasmCallWrapper, f as rearmWasmCallDiagnostics, h as acquireWasmStorageFallback, j as buildModelVariantSources, l as notePipelineStatePulled, m as loadWasmModule, n as createWebApiHostAdapter, p as resetWasmCallDiagnostics, w as isDefaultCdnWasmConfig, y as SemaphoreProvider } from "./wasmWebClient-BDrax6Eu.esm.js";
2
+ import { D as WASM_MODEL_FILES, F as reportWasmIntegritySummary, M as buildModelVariantSources, N as missingWasmModelError, P as resolveWasmSource, T as isDefaultCdnWasmConfig, b as SemaphoreProvider, c as wasmCallWrapper, f as rearmWasmCallDiagnostics, g as acquireWasmStorageFallback, h as onWasmModuleReset, j as WASM_PIPELINE_OPTIONAL_MODEL_NAMES, k as WASM_PIPELINE_MODELS, l as notePipelineStatePulled, m as loadWasmModule, n as createWebApiHostAdapter, p as resetWasmCallDiagnostics, v as emitWasmDiagnostic, x as DEFAULT_WASM_VERSION } from "./wasmWebClient-B2P6Vlvv.esm.js";
3
3
  import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
4
- import { t as bindWasmMetadataV2Applier } from "./wasmMetadataVersionSync-U8EFUr1T.esm.js";
4
+ import { i as bindWasmMetadataV2Applier, t as bindWasmDeepsightConfigApplier } from "./wasmDeepsightConfigSync-DukEcrU8.esm.js";
5
5
  //#region ../infra/src/wasm/wasmEnumMaps.ts
6
6
  function pipelineTypeToWasmEnum(wasmModule, type) {
7
7
  switch (type) {
@@ -11,9 +11,7 @@ function pipelineTypeToWasmEnum(wasmModule, type) {
11
11
  case 3: return wasmModule.WorkflowType.SelfieWithAggregationMetrics;
12
12
  case 4: return wasmModule.WorkflowType.SelfieWithQualityMetrics;
13
13
  case 5: return wasmModule.WorkflowType.OnDeviceSelfieWorkflow;
14
- case 6: return wasmModule.WorkflowType.IdBlurGlareCoreWorkflow;
15
- case 7: return wasmModule.WorkflowType.IdBarcodeAndTextQualityCoreWorkflow;
16
- case 8: return wasmModule.WorkflowType.IdFaceQualityCoreWorkflow;
14
+ case 6: return wasmModule.WorkflowType.IdFaceQualityWorkflow;
17
15
  default: throw new Error("Unknown pipeline type");
18
16
  }
19
17
  }
@@ -25,9 +23,7 @@ function pipelineTypeFromWasmEnum(wasmModule, type) {
25
23
  case wasmModule.WorkflowType.SelfieWithAggregationMetrics: return 3;
26
24
  case wasmModule.WorkflowType.SelfieWithQualityMetrics: return 4;
27
25
  case wasmModule.WorkflowType.OnDeviceSelfieWorkflow: return 5;
28
- case wasmModule.WorkflowType.IdBlurGlareCoreWorkflow: return 6;
29
- case wasmModule.WorkflowType.IdBarcodeAndTextQualityCoreWorkflow: return 7;
30
- case wasmModule.WorkflowType.IdFaceQualityCoreWorkflow: return 8;
26
+ case wasmModule.WorkflowType.IdFaceQualityWorkflow: return 6;
31
27
  default: throw new Error("Unknown pipeline type");
32
28
  }
33
29
  }
@@ -101,6 +97,8 @@ let mode = null;
101
97
  let boundApi = null;
102
98
  let sessionEpochMs = null;
103
99
  let lastSeenRelativeMs = 0;
100
+ /** The kit's clock restarted (`resetOther`); the next batch re-anchors. */
101
+ let kitClockRestarted = false;
104
102
  /** Fallback: `getAppLogs` re-renders the whole ring, so emit only newer lines. */
105
103
  let fallbackWatermarkMs = -1;
106
104
  let unsupportedVersionNoted = false;
@@ -173,7 +171,7 @@ function processBatch(batch, receivedAtMs) {
173
171
  }
174
172
  const tLast = typeof record.tLast === "number" ? record.tLast : 0;
175
173
  if (sessionEpochMs === null) sessionEpochMs = receivedAtMs - tLast;
176
- else if (tLast < lastSeenRelativeMs) {
174
+ else if (kitClockRestarted || tLast < lastSeenRelativeMs) {
177
175
  sessionEpochMs = receivedAtMs - tLast;
178
176
  emitWasmDiagnostic({
179
177
  level: "info",
@@ -182,6 +180,7 @@ function processBatch(batch, receivedAtMs) {
182
180
  message: "re-anchored"
183
181
  });
184
182
  }
183
+ kitClockRestarted = false;
185
184
  lastSeenRelativeMs = tLast;
186
185
  if (!Array.isArray(record.entries)) return;
187
186
  for (const raw of record.entries) {
@@ -292,6 +291,16 @@ function drainWasmDiagnostics() {
292
291
  } catch {}
293
292
  }
294
293
  /**
294
+ * Called by the runtime right after the kit's `resetOther()`, which restarts
295
+ * the kit clock that batch and render times count from: the next sink batch
296
+ * re-anchors, and the next fallback render is read from its start. Only
297
+ * records the fact; it never calls into WASM.
298
+ */
299
+ function noteWasmKitClockRestart() {
300
+ kitClockRestarted = true;
301
+ fallbackWatermarkMs = -1;
302
+ }
303
+ /**
295
304
  * Starts a new SDK session's view of an already-running runtime: per-session
296
305
  * budgets re-arm, and the mode line is repeated so each record states it.
297
306
  * Called from `setup()`; a no-op for the mode line before the first install.
@@ -312,6 +321,7 @@ function resetWasmDiagnosticsSink() {
312
321
  boundApi = null;
313
322
  sessionEpochMs = null;
314
323
  lastSeenRelativeMs = 0;
324
+ kitClockRestarted = false;
315
325
  fallbackWatermarkMs = -1;
316
326
  unsupportedVersionNoted = false;
317
327
  batchParseFailureNoted = false;
@@ -365,6 +375,29 @@ function getCameraCycleOwnershipDomain(owner) {
365
375
  return domain;
366
376
  }
367
377
  //#endregion
378
+ //#region ../infra/src/wasm/wasmResetOtherSync.ts
379
+ let runResetOther;
380
+ /**
381
+ * Clears the kit's results that are not pipeline state (ml-wasm-kit
382
+ * `resetOther()`), so a module does not upload what an earlier module left:
383
+ * a challenge this module's config turns off keeps the earlier module's
384
+ * FrontBack, Exposure or frame-duplication result otherwise. The runtime
385
+ * queues the call behind the ML lock, so it runs after any earlier camera step
386
+ * and post-capture work has settled, and before any camera step or `rsp`
387
+ * queued later.
388
+ *
389
+ * Best-effort and never rejects. Not replayed: before the runtime loads, or
390
+ * while it is not initialized, no capture has run on the module instance, so
391
+ * there is nothing to clear. Resolves once the reset ran or was skipped.
392
+ */
393
+ function resetWasmOtherStateSync() {
394
+ return runResetOther?.() ?? Promise.resolve();
395
+ }
396
+ /** For the `WasmRuntime` singleton, once, when its module loads. */
397
+ function bindWasmResetOtherRunner(runner) {
398
+ runResetOther = runner;
399
+ }
400
+ //#endregion
368
401
  //#region ../infra/src/wasm/WasmRuntime.ts
369
402
  function attemptCleanup(firstFailure, cleanup) {
370
403
  try {
@@ -436,6 +469,14 @@ function reportCameraCycleReleaseFailure(error) {
436
469
  message: `camera cycle release failed: ${error instanceof Error ? error.message : String(error)}`
437
470
  });
438
471
  }
472
+ function reportResetOtherFailure(error) {
473
+ emitWasmDiagnostic({
474
+ level: "warning",
475
+ subsystem: "deepsight",
476
+ category: "other",
477
+ message: `resetOther failed: ${error instanceof Error ? error.message : String(error)}`
478
+ });
479
+ }
439
480
  function isWasmModelEntry(source) {
440
481
  return typeof source === "object" && !(source instanceof ArrayBuffer) && !(source instanceof Uint8Array) && "file" in source;
441
482
  }
@@ -449,11 +490,13 @@ var WasmRuntime = class WasmRuntime {
449
490
  this.wasmModule = null;
450
491
  this.workflowApiUtilities = null;
451
492
  this.utilityApi = null;
493
+ this.parkedUtilityApi = null;
452
494
  this.idCaptureWasmApi = null;
453
495
  this.faceProcessingWasmApi = null;
454
496
  this.cameraCycleApi = null;
455
497
  this.webApi = null;
456
498
  this.metadataV2Enabled_ = false;
499
+ this.deepsightConfig_ = "";
457
500
  this.storageFallbackLease = null;
458
501
  this.unprotectedStream = null;
459
502
  this.queuedCameraSteps = /* @__PURE__ */ new Set();
@@ -473,9 +516,10 @@ var WasmRuntime = class WasmRuntime {
473
516
  this.wasmModule = wasmModule;
474
517
  this.usedSimd_ = simdUsed;
475
518
  this.workflowApiUtilities = new this.wasmModule.WorkflowApiUtilities();
476
- this.utilityApi = new this.wasmModule.UtilityApi();
519
+ this.utilityApi = this.takeUtilityApi(this.wasmModule);
477
520
  this.utilityApi.setProductionMode(module.showLogs !== true);
478
521
  this.utilityApi.smv(this.metadataV2Enabled_);
522
+ this.utilityApi.sdsc(this.deepsightConfig_);
479
523
  installWasmDiagnosticsSink(this.utilityApi);
480
524
  this.idCaptureWasmApi = new this.wasmModule.IdCaptureApi();
481
525
  this.faceProcessingWasmApi = new this.wasmModule.FaceProcessingApi();
@@ -491,6 +535,43 @@ var WasmRuntime = class WasmRuntime {
491
535
  }
492
536
  }
493
537
  /**
538
+ * The UtilityApi for `wasmModule`: the parked one when it belongs to that
539
+ * module, else a new one. A parked handle of another module is deleted
540
+ * first; that module is gone, so a failure there must not stop this one.
541
+ */
542
+ takeUtilityApi(wasmModule) {
543
+ const parked = this.parkedUtilityApi;
544
+ this.parkedUtilityApi = null;
545
+ if (parked?.module === wasmModule) return parked.handle;
546
+ deleteWasmHandle(null, parked?.handle ?? null);
547
+ return new wasmModule.UtilityApi();
548
+ }
549
+ /**
550
+ * Parks the UtilityApi of the module being freed instead of deleting it (see
551
+ * `parkedUtilityApi`). Without a module to tie it to, it is deleted as
552
+ * before.
553
+ */
554
+ parkUtilityApi(firstFailure, wasmModule, handle) {
555
+ if (handle === null) return firstFailure;
556
+ if (wasmModule === null) return deleteWasmHandle(firstFailure, handle);
557
+ const previous = this.parkedUtilityApi;
558
+ this.parkedUtilityApi = {
559
+ module: wasmModule,
560
+ handle
561
+ };
562
+ return previous !== null && previous.handle !== handle ? deleteWasmHandle(firstFailure, previous.handle) : firstFailure;
563
+ }
564
+ /**
565
+ * Deletes the parked UtilityApi, if any. Runs when `resetWasmModule()` drops
566
+ * the memoized module: its handle can never be reused, and deleting it lets
567
+ * the module be garbage-collected. Never throws.
568
+ */
569
+ releaseParkedUtilityApi() {
570
+ const parked = this.parkedUtilityApi;
571
+ this.parkedUtilityApi = null;
572
+ deleteWasmHandle(null, parked?.handle ?? null);
573
+ }
574
+ /**
494
575
  * Returns initialization status
495
576
  * @returns
496
577
  */
@@ -532,12 +613,15 @@ var WasmRuntime = class WasmRuntime {
532
613
  this.requireWorkflowApiUtilities("Unable to update pipeline state, cpp API hasn't been initialized").handleDetectionCallAndUpdateState(this.pipelineTypeToWasmEnum(type));
533
614
  }
534
615
  /**
535
- * Free allocated memory
616
+ * Free allocated memory. The UtilityApi is parked for the next
617
+ * `initialize()` on the same module rather than deleted (see
618
+ * `parkedUtilityApi`).
536
619
  */
537
620
  async freeResources() {
538
621
  this.loadedModels.clear();
539
622
  const stream = this.unprotectedStream;
540
623
  const modelsBuffers = this.modelsBuffers;
624
+ const wasmModule = this.wasmModule;
541
625
  const workflowApiUtilities = this.workflowApiUtilities;
542
626
  const utilityApi = this.utilityApi;
543
627
  const idCaptureWasmApi = this.idCaptureWasmApi;
@@ -567,7 +651,7 @@ var WasmRuntime = class WasmRuntime {
567
651
  let firstFailure = releaseCameraCycleResources(stream, cameraCycleApi);
568
652
  firstFailure = deleteWasmHandle(firstFailure, modelsBuffers);
569
653
  firstFailure = deleteWasmHandle(firstFailure, workflowApiUtilities);
570
- firstFailure = deleteWasmHandle(firstFailure, utilityApi);
654
+ firstFailure = this.parkUtilityApi(firstFailure, wasmModule, utilityApi);
571
655
  firstFailure = deleteWasmHandle(firstFailure, idCaptureWasmApi);
572
656
  firstFailure = deleteWasmHandle(firstFailure, faceProcessingWasmApi);
573
657
  firstFailure = deleteWasmHandle(firstFailure, cameraCycleApi);
@@ -591,18 +675,33 @@ var WasmRuntime = class WasmRuntime {
591
675
  }
592
676
  /**
593
677
  * Selects the capture-metadata document the kit emits (`smv`, ADR 0009):
594
- * `true` = v2, `false` = v1 (the default). Unguarded on purpose: the SDK
595
- * resolves the provisioning flag at session initialization, which may run
596
- * before WASM is up, so the value is latched here, applied at once when a
597
- * module is live and replayed by every `initialize()`. The session sets it
598
- * through `wasmMetadataVersionSync.ts`, which the singleton binds to when
599
- * this module loads. Never toggle it mid-session — `getMetadata`,
600
- * `postFaceResults` and the protected upload each read the selection when
601
- * they run, so uploads would mix formats.
678
+ * `true` = v2, `false` = v1 (the default). Unguarded on purpose: a capture
679
+ * module selects it when it starts, which may be before WASM is up, so the
680
+ * value is latched here, applied at once when a module is live and replayed
681
+ * by every `initialize()`. Each module selects v2 exactly while it holds a
682
+ * Deepsight 2.0 config, through `wasmDeepsightConfigSync.ts` and
683
+ * `wasmMetadataVersionSync.ts`, which the singleton binds to when this
684
+ * module loads. `getMetadata`, `postFaceResults` and the protected upload
685
+ * each read the selection when they run, so it never changes inside a
686
+ * module.
602
687
  */
603
688
  setMetadataV2Enabled(enabled) {
604
689
  this.metadataV2Enabled_ = enabled;
605
- this.utilityApi?.smv(enabled);
690
+ if (this.utilityApi) this.utilityApi.smv(enabled);
691
+ }
692
+ /**
693
+ * Hands the kit the current module's Deepsight 2.0 signal config (`sdsc`):
694
+ * its `deepsightCaptureConfig` as JSON text, or `""` for none. Unguarded on
695
+ * purpose, like {@link setMetadataV2Enabled}: a module sets it when it
696
+ * starts, which may be before WASM is up, so the value is latched here,
697
+ * sent at once when a module is live and replayed by every `initialize()`
698
+ * before any camera step can run. The modules set it through
699
+ * `wasmDeepsightConfigSync.ts`, which the singleton binds to when this
700
+ * module loads.
701
+ */
702
+ setDeepsightConfig(config) {
703
+ this.deepsightConfig_ = config;
704
+ this.utilityApi?.sdsc(config);
606
705
  }
607
706
  async process(typeOrImage, imageOrType) {
608
707
  const legacyOrder = typeof typeOrImage !== "number";
@@ -618,9 +717,7 @@ var WasmRuntime = class WasmRuntime {
618
717
  switch (type) {
619
718
  case 0:
620
719
  case 1:
621
- case 6:
622
- case 7:
623
- case 8: return idCaptureWasmApi.runIdCaptureWorkflow(this.pipelineTypeToWasmEnum(type));
720
+ case 6: return idCaptureWasmApi.runIdCaptureWorkflow(this.pipelineTypeToWasmEnum(type));
624
721
  case 2: return idCaptureWasmApi.runIdVideoSelfieWorkflow();
625
722
  case 3:
626
723
  case 4:
@@ -823,6 +920,34 @@ var WasmRuntime = class WasmRuntime {
823
920
  const failure = stopStreamTracks(stream);
824
921
  if (failure) throw failure.error;
825
922
  }
923
+ /**
924
+ * Clears the kit's state that is not pipeline state (`resetOther()`):
925
+ * behavioral results, motion samples, frame duplication, the FrontBack and
926
+ * Exposure results, and the kit's diagnostics log. It queues behind the ML
927
+ * lock like {@link releaseCameraCycle}, so it lands only after whatever holds
928
+ * the lock settles: a camera step that already reached the kit, a `poc`, or
929
+ * a queued `rcc`. The kit clears results there; it does not cancel a running
930
+ * challenge, so it must not land inside one.
931
+ *
932
+ * Reads the handle when the lock is taken: a runtime that is not initialized
933
+ * then has run no capture on this module instance, so there is nothing to
934
+ * clear and the call is skipped, not replayed. The kit's diagnostics log is
935
+ * drained into TrueSight first, because the reset drops the entries it has
936
+ * not delivered yet, and the TrueSight receiver is told afterwards that the
937
+ * kit clock restarted, so later kit entries are stamped from the reset.
938
+ *
939
+ * Resolves once it ran or was skipped. Never rejects: a throw is reported as
940
+ * a diagnostic, because no caller can act on it.
941
+ */
942
+ resetOtherAfterLock() {
943
+ return wasmCallWrapper(this.mlCallSemaphore, () => {
944
+ if (!this.isInitialized() || this.utilityApi === null) return true;
945
+ drainWasmDiagnostics();
946
+ this.utilityApi.resetOther();
947
+ noteWasmKitClockRestart();
948
+ return true;
949
+ }, true, { label: "resetOther" }).catch(reportResetOtherFailure);
950
+ }
826
951
  cancelQueuedCameraSteps() {
827
952
  for (const queued of this.queuedCameraSteps) queued.cancelled = true;
828
953
  this.queuedCameraSteps.clear();
@@ -896,6 +1021,9 @@ WasmRuntime.UNINITIALIZED_ENUM_MAP_MESSAGE = "Unable to map pipeline type, cpp A
896
1021
  /** Process-wide runtime. One binary, one heap, one owner. */
897
1022
  const wasmRuntime = new WasmRuntime();
898
1023
  bindWasmMetadataV2Applier((enabled) => wasmRuntime.setMetadataV2Enabled(enabled));
1024
+ bindWasmDeepsightConfigApplier((config) => wasmRuntime.setDeepsightConfig(config));
1025
+ bindWasmResetOtherRunner(() => wasmRuntime.resetOtherAfterLock());
1026
+ onWasmModuleReset(() => wasmRuntime.releaseParkedUtilityApi());
899
1027
  //#endregion
900
1028
  //#region ../infra/src/wasm/warmup.ts
901
1029
  var warmup_exports = /* @__PURE__ */ __exportAll({
@@ -989,12 +1117,45 @@ function resolveConfiguredModelSource(config, modelFile, pipeline, modelsBasePat
989
1117
  };
990
1118
  }
991
1119
  /**
992
- * When logging is enabled, warns once per warmup that an optional model listed in
993
- * {@link WASM_PIPELINE_OPTIONAL_MODEL_NAMES} was not supplied, so the Core
994
- * profile that needs it is skipped instead of failing the whole warmup.
1120
+ * ml-wasm-kit's protected ID workflow bundles, registered beside the default
1121
+ * blur/glare one, as SDK 1 does. The barcode-and-text workflow accepts a frame
1122
+ * only when the 3.xx ID model's text and barcode readability outputs pass; the
1123
+ * face-quality bundle pairs the ID model with the selfie MLS regressor and the
1124
+ * ID face detector.
1125
+ */
1126
+ const PROTECTED_ID_PROFILES = [{
1127
+ type: 1,
1128
+ models: ["idCaptureV3"],
1129
+ workflow: "text-and-barcode readability"
1130
+ }, {
1131
+ type: 6,
1132
+ models: [
1133
+ "idCapture",
1134
+ "mlsRegressor",
1135
+ "idFaceDetector"
1136
+ ],
1137
+ workflow: "face-quality"
1138
+ }];
1139
+ /**
1140
+ * When logging is enabled, warns once per warmup that optional models listed in
1141
+ * {@link WASM_PIPELINE_OPTIONAL_MODEL_NAMES} were not supplied, so the
1142
+ * profiles that need them are skipped instead of failing the whole warmup.
995
1143
  */
996
- function warnMissingOptionalModel(pipeline, models) {
997
- console.warn(`[Incode SDK] The "${pipeline}" self-hosted WASM configuration omits ${models.join(", ")}. The protected ID face-quality workflow stays unavailable; ID capture is unaffected.`);
1144
+ function warnMissingOptionalModels(pipeline, models, workflows) {
1145
+ console.warn(`[Incode SDK] The "${pipeline}" self-hosted WASM configuration omits ${models.join(", ")}. The protected ID ${workflows.join(" and ")} workflow stays unavailable; the default ID capture is unaffected.`);
1146
+ }
1147
+ function registerProtectedIdProfiles(pipelinesMap, config, modelsBasePath) {
1148
+ const pipeline = "idCapture";
1149
+ const missing = WASM_PIPELINE_OPTIONAL_MODEL_NAMES[pipeline].filter((name) => config.selfHosted === true && config.modelUrls?.[WASM_MODEL_FILES[name]] === void 0);
1150
+ const skipped = [];
1151
+ for (const profile of PROTECTED_ID_PROFILES) {
1152
+ if (profile.models.some((name) => missing.includes(name))) {
1153
+ skipped.push(profile.workflow);
1154
+ continue;
1155
+ }
1156
+ pipelinesMap.set(profile.type, profile.models.map((name) => resolveConfiguredModelSource(config, WASM_MODEL_FILES[name], pipeline, modelsBasePath)));
1157
+ }
1158
+ if (skipped.length > 0 && config.showLogs) warnMissingOptionalModels(pipeline, missing, skipped);
998
1159
  }
999
1160
  /**
1000
1161
  * Builds the pipelines map with model paths for WASM initialization.
@@ -1009,18 +1170,7 @@ function buildPipelinesMap(pipelines, config) {
1009
1170
  if (!pipelinesMap.has(wasmType)) {
1010
1171
  const modelPaths = (config.pipelineModels?.[pipeline] ?? WASM_PIPELINE_MODELS[pipeline]).map((modelFile) => resolveConfiguredModelSource(config, modelFile, pipeline, modelsBasePath));
1011
1172
  pipelinesMap.set(wasmType, modelPaths);
1012
- if (pipeline === "idCapture") {
1013
- const resolveIdModels = (modelFiles) => modelFiles.map((modelFile) => resolveConfiguredModelSource(config, modelFile, pipeline, modelsBasePath));
1014
- pipelinesMap.set(6, resolveIdModels([WASM_MODEL_FILES.idCapture]));
1015
- pipelinesMap.set(7, resolveIdModels([WASM_MODEL_FILES.idCapture]));
1016
- const missingOptional = WASM_PIPELINE_OPTIONAL_MODEL_NAMES[pipeline].filter((name) => config.selfHosted === true && config.modelUrls?.[WASM_MODEL_FILES[name]] === void 0);
1017
- if (missingOptional.length === 0) pipelinesMap.set(8, resolveIdModels([
1018
- WASM_MODEL_FILES.idCapture,
1019
- WASM_MODEL_FILES.idFiqa,
1020
- WASM_MODEL_FILES.idFaceDetector
1021
- ]));
1022
- else if (config.showLogs) warnMissingOptionalModel(pipeline, missingOptional);
1023
- }
1173
+ if (pipeline === "idCapture") registerProtectedIdProfiles(pipelinesMap, config, modelsBasePath);
1024
1174
  }
1025
1175
  }
1026
1176
  return pipelinesMap;
@@ -1224,4 +1374,4 @@ function setWasmOnDeviceMode(enabled) {
1224
1374
  wasmRuntime.setOnDeviceMode(enabled);
1225
1375
  }
1226
1376
  //#endregion
1227
- export { setWasmOnDeviceMode as a, warmup_exports as c, getCameraCycleOwnershipDomain as d, drainWasmDiagnostics as f, isWasmReady as i, wasmRuntime as l, rearmWasmDiagnostics as m, getWarmupFacts as n, waitForWasm as o, getWasmDiagnosticsMode as p, getWasmStatus as r, warmupWasm as s, getResolvedModelSource as t, CAMERA_CYCLE_OWNERSHIP_DOMAIN as u };
1377
+ export { setWasmOnDeviceMode as a, warmup_exports as c, CAMERA_CYCLE_OWNERSHIP_DOMAIN as d, getCameraCycleOwnershipDomain as f, rearmWasmDiagnostics as h, isWasmReady as i, wasmRuntime as l, getWasmDiagnosticsMode as m, getWarmupFacts as n, waitForWasm as o, drainWasmDiagnostics as p, getWasmStatus as r, warmupWasm as s, getResolvedModelSource as t, resetWasmOtherStateSync as u };
@@ -3,10 +3,21 @@ type WasmSource = string | ArrayBuffer | Uint8Array;
3
3
  type WasmGlueModule = {
4
4
  Module?: unknown;
5
5
  };
6
+ /**
7
+ * Lazily imports a JavaScript glue module, for example
8
+ * `() => import('@incodetech/wasm-assets/webLib.js')`.
9
+ *
10
+ * Resolve to the glue module unchanged. Do not wrap its `Module` factory to
11
+ * construct, configure or delete WASM API objects such as `UtilityApi`:
12
+ * deleting one ends the page's fingerprint and behavior signal collection
13
+ * for good, and the SDK cannot restart it (ENG-62947). The SDK already
14
+ * silences WASM output unless `showLogs` is `true`.
15
+ */
6
16
  type WasmGlueLoader = () => Promise<WasmGlueModule>;
7
17
  type WasmPipeline = 'selfie' | 'onDeviceSelfie' | 'idCapture' | 'videoSelfie' | 'videoSelfieId';
8
18
  declare const WASM_MODEL_FILES: {
9
19
  readonly idCapture: "id_capture_2_01_fp16.ortmodelv2";
20
+ readonly idCaptureV3: "id_capture_3_02_fp16.ortmodelv2";
10
21
  readonly idFiqa: "id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2";
11
22
  readonly idFaceDetector: "id_facedetector_v2_1_fp16.ortmodelv2";
12
23
  readonly barcode: "barcode_enhance_896x224_fp16.ortmodelv2";
@@ -63,9 +74,15 @@ type WasmModuleConfig = {
63
74
  * `wasmSimdPath`.
64
75
  */
65
76
  glueCodeSimdPath?: string;
66
- /** Lazy ES-module loader for the standard JavaScript glue. */
77
+ /**
78
+ * Lazy ES-module loader for the standard JavaScript glue. Resolves to the
79
+ * glue module unchanged; see {@link WasmGlueLoader}.
80
+ */
67
81
  loadGlue?: WasmGlueLoader;
68
- /** Lazy ES-module loader for the SIMD JavaScript glue. */
82
+ /**
83
+ * Lazy ES-module loader for the SIMD JavaScript glue. Resolves to the glue
84
+ * module unchanged; see {@link WasmGlueLoader}.
85
+ */
69
86
  loadGlueSimd?: WasmGlueLoader;
70
87
  /**
71
88
  * Enables the SIMD-first load attempt.
package/dist/wasm.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-BO57syF6.js";
2
- import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-prV5HQCQ.js";
1
+ import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-SWu5L7cW.js";
2
+ import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-rcXgYUcY.js";
3
3
  //#region ../infra/src/wasm/wasmDefaults.d.ts
4
4
  /** The WASM version bundled and tested with this SDK release. */
5
- declare const DEFAULT_WASM_VERSION = "v2.14.54-pre6";
5
+ declare const DEFAULT_WASM_VERSION = "v2.14.55";
6
6
  type UrlWasmConfig = WarmupConfig & {
7
7
  wasmPath: string;
8
8
  wasmSimdPath: string;
@@ -25,7 +25,13 @@ type DefineWasmOptions = {
25
25
  pipelines: readonly WasmPipeline[];
26
26
  wasm: WasmSource;
27
27
  wasmSimd?: WasmSource;
28
+ /**
29
+ * Imports the standard glue, e.g.
30
+ * `() => import('@incodetech/wasm-assets/webLib.js')`. Return the module
31
+ * unchanged; see {@link WasmGlueLoader}.
32
+ */
28
33
  glue: WasmGlueLoader;
34
+ /** Imports the SIMD glue. Return the module unchanged, like `glue`. */
29
35
  glueSimd?: WasmGlueLoader;
30
36
  models: Partial<Record<WasmModelName, WasmSource>>;
31
37
  /**
package/dist/wasm.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { D as WASM_PIPELINE_LAZY_MODEL_NAMES, E as WASM_MODEL_FILES, S as buildWasmConfigFromBasePath, T as resolveWasmConfig, b as DEFAULT_WASM_VERSION, k as WASM_PIPELINE_MODEL_NAMES, x as buildDefaultWasmConfig } from "./wasmWebClient-BDrax6Eu.esm.js";
2
- import { s as warmupWasm } from "./warmup-DtB0DJpl.esm.js";
3
- import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-Bl3CRduw.esm.js";
1
+ import { A as WASM_PIPELINE_MODEL_NAMES, C as buildWasmConfigFromBasePath, D as WASM_MODEL_FILES, E as resolveWasmConfig, O as WASM_PIPELINE_LAZY_MODEL_NAMES, S as buildDefaultWasmConfig, x as DEFAULT_WASM_VERSION } from "./wasmWebClient-B2P6Vlvv.esm.js";
2
+ import { s as warmupWasm } from "./warmup-BN8dG2KX.esm.js";
3
+ import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-BXrgDdfx.esm.js";
4
4
  //#region src/defineWasm.ts
5
5
  function requiredModels(pipelines) {
6
6
  const models = /* @__PURE__ */ new Set();
@@ -0,0 +1,77 @@
1
+ //#region ../infra/src/wasm/wasmMetadataVersionSync.ts
2
+ let metadataV2Enabled = false;
3
+ let applyToRuntime$1;
4
+ /**
5
+ * Selects the capture-metadata document the kit emits (ml-wasm-kit `smv`,
6
+ * ADR 0009): `true` picks the v2 document Deepsight 2.0 scores, `false` (the
7
+ * default) the v1 document. The selection is per module: a module selects v2
8
+ * exactly while it holds a Deepsight 2.0 config, through
9
+ * `wasmDeepsightConfigSync.ts`, the only caller, which also returns to v1
10
+ * when a session resets. Purely in-memory,
11
+ * like `setWasmDsFlagSync`: the value waits here until the WASM runtime loads,
12
+ * and from then on the runtime latches it, applies it at once when WASM is up
13
+ * and replays it after every `initialize()`, because the kit keeps the
14
+ * selector as realm state that a new module instance resets to v1.
15
+ */
16
+ function setWasmMetadataV2Enabled(enabled) {
17
+ metadataV2Enabled = enabled;
18
+ applyToRuntime$1?.(enabled);
19
+ }
20
+ /**
21
+ * For the `WasmRuntime` singleton, once, when its module loads: replays the
22
+ * selection made before the runtime existed and forwards every later one.
23
+ */
24
+ function bindWasmMetadataV2Applier(apply) {
25
+ applyToRuntime$1 = apply;
26
+ apply(metadataV2Enabled);
27
+ }
28
+ //#endregion
29
+ //#region ../infra/src/wasm/wasmDeepsightConfigSync.ts
30
+ let deepsightConfig = "";
31
+ let current;
32
+ let applyToRuntime;
33
+ /**
34
+ * Hands the kit one module's Deepsight 2.0 signal config (ml-wasm-kit
35
+ * `sdsc`): the JSON text of its `deepsightCaptureConfig`, or `""` for none.
36
+ * The same set selects the module's capture-metadata document (`smv`): v2
37
+ * with a config, v1 without one, so the two never disagree. Purely in-memory:
38
+ * both values wait until the WASM runtime loads, and from then on the runtime
39
+ * latches them, sends them at once when WASM is up and replays them after
40
+ * every `initialize()`, so the module's first camera step sees them. Returns
41
+ * the handle that clears both.
42
+ */
43
+ function setWasmDeepsightConfigSync(config) {
44
+ const handle = { clear: () => {
45
+ if (current !== handle) return;
46
+ current = void 0;
47
+ apply("");
48
+ } };
49
+ current = handle;
50
+ apply(config);
51
+ return handle;
52
+ }
53
+ /**
54
+ * Clears whatever a module still holds, at the end of a session: sends `""`
55
+ * and selects the v1 document, and turns every outstanding handle into a
56
+ * no-op, so a module that never stopped cannot carry its config or v2 into the
57
+ * next session.
58
+ */
59
+ function resetWasmDeepsightConfigSync() {
60
+ current = void 0;
61
+ apply("");
62
+ }
63
+ /**
64
+ * For the `WasmRuntime` singleton, once, when its module loads: replays the
65
+ * config set before the runtime existed and forwards every later one.
66
+ */
67
+ function bindWasmDeepsightConfigApplier(applier) {
68
+ applyToRuntime = applier;
69
+ applier(deepsightConfig);
70
+ }
71
+ function apply(config) {
72
+ setWasmMetadataV2Enabled(config !== "");
73
+ deepsightConfig = config;
74
+ applyToRuntime?.(config);
75
+ }
76
+ //#endregion
77
+ export { bindWasmMetadataV2Applier as i, resetWasmDeepsightConfigSync as n, setWasmDeepsightConfigSync as r, bindWasmDeepsightConfigApplier as t };
@@ -1,4 +1,4 @@
1
- import { i as utilityWasmApi } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
1
+ import { i as utilityWasmApi } from "./WasmUtilProvider-DVFDFlIL.esm.js";
2
2
  //#region ../infra/src/wasm/wasmDsFlagSync.ts
3
3
  /**
4
4
  * Sets the Deepsight (ds) flag that the WASM utility API receives on every