@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.
- package/dist/Actor-DqjOqDfU.d.ts +1 -0
- package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-CPdofn7R.d.ts} +3 -5
- package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
- package/dist/{FaceDetectionProvider-CHpscouN.esm.js → FaceDetectionProvider-Dv9iXub0.esm.js} +21 -13
- package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-CAxToGns.d.ts} +3 -3
- package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-CLWIYHB4.d.ts} +7 -6
- package/dist/Manager-BvXAwDv9.esm.js +125 -0
- package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
- package/dist/{MotionSensorProvider-DYxh8TjR.esm.js → MotionSensorProvider-X4_2eBGd.esm.js} +15 -0
- package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-BqaHTJF0.d.ts} +25 -3
- package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
- package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-DVFDFlIL.esm.js} +63 -6
- package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
- package/dist/{addressSearch-D6cKPWmk.esm.js → addressSearch-BKlynuBr.esm.js} +6 -7
- package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
- package/dist/ae-signature.d.ts +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CbIwM35x.esm.js → antifraudManager-BI2zr7YX.esm.js} +5 -3
- package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
- package/dist/{antifraudStateMachine-qNNXrlsP.esm.js → antifraudStateMachine-TWUu8wLN.esm.js} +4 -6
- package/dist/{api-C_P9YXbL.esm.js → api-BNxrW8xK.esm.js} +4 -1
- package/dist/{apiError-BeWqIYu8.esm.js → apiError-BAfdBGxH.esm.js} +1 -1
- package/dist/{attemptCarry-BaAXPR_w.esm.js → attemptCarry-DWM8lV9V.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DKLRA91K.d.ts → authenticationManager-BJElkTsj.d.ts} +2 -2
- package/dist/{authenticationManager-CTHFl6dl.esm.js → authenticationManager-DFzByAYo.esm.js} +7 -6
- package/dist/{authenticationStateMachine-D-SOzH8C.esm.js → authenticationStateMachine-CKTOhwwc.esm.js} +50 -18
- package/dist/avatar.d.ts +1 -1
- package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
- package/dist/{browser-pQZA35G2-DJEJnmCd.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
- package/dist/calendarDate-DcqGuEht.esm.js +35 -0
- package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
- package/dist/camera-9yYDUOsO.d.ts +5 -0
- package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
- package/dist/camera.d.ts +7 -3
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.d.ts +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
- package/dist/{certificateIssuanceManager-CrF3wjCH.esm.js → certificateIssuanceManager-P44yBRop.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-uSD9IkcV.esm.js → certificateIssuanceStateMachine-BPBrILt6.esm.js} +3 -3
- package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-BD7wwgat.esm.js → consentManager-D43w2ms-.esm.js} +5 -3
- package/dist/{consentManager-7aHaehwF.d.ts → consentManager-Duzd8paN.d.ts} +4 -3
- package/dist/{consentStateMachine-BAiLDE3D.esm.js → consentStateMachine-CLK8PfM4.esm.js} +6 -9
- package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
- package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-Ct9QrQ66.d.ts} +1 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-CUc1uACE.esm.js → crossDocumentDataMatchManager-Cag_bcyW.esm.js} +6 -5
- package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
- package/dist/curp-DZGvefg3.esm.js +14 -0
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-DBfZSQbu.esm.js → curpValidationManager-C6WmQToS.esm.js} +6 -4
- package/dist/{curpValidationManager-Crz3bnCo.d.ts → curpValidationManager-CmL52FU8.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-DyAEyScb.esm.js → curpValidationStateMachine-BbJ4YAzE.esm.js} +16 -17
- package/dist/custom-fields.d.ts +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-BZhIPyaY.esm.js → customFieldsManager-BBy6X9nh.esm.js} +15 -17
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customWatchlistManager-B4cmxi__.esm.js → customWatchlistManager-CtBMy2EF.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-ZZoDGRAZ.esm.js → customWatchlistStateMachine-SS2ssNCg.esm.js} +4 -6
- package/dist/deepsightCaptureConfig-Nm_K8twx.esm.js +70 -0
- package/dist/{deepsightLoader-je1YxHgT.esm.js → deepsightLoader-BInnND1H.esm.js} +7 -6
- package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-B-Z2EgJJ.esm.js} +51 -1
- package/dist/{desktopCameraElection-m2dAj6Zu.esm.js → desktopCameraElection-JNBOXqvK.esm.js} +110 -13
- package/dist/device.d.ts +3 -3
- package/dist/device.esm.js +16 -16
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.d.ts +123 -0
- package/dist/document-signature.esm.js +149 -0
- package/dist/{documentCaptureManager-v57klTso.esm.js → documentCaptureManager-CGDtkfWj.esm.js} +5 -3
- package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +7 -6
- package/dist/{documentCaptureStateMachine-CgCtimSa.esm.js → documentCaptureStateMachine-flAt9D4q.esm.js} +11 -13
- package/dist/documentSignatureStateMachine-DrRyICFT.esm.js +219 -0
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
- package/dist/{dynamicFormsManager-BKWJZfkn.esm.js → dynamicFormsManager-CxLq2KzT.esm.js} +5 -3
- package/dist/{dynamicFormsStateMachine-CQN8p1ux.esm.js → dynamicFormsStateMachine-By-maT_4.esm.js} +12 -13
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
- package/dist/{ekybManager-BD6HTwFJ.esm.js → ekybManager-CE19Pcdb.esm.js} +5 -3
- package/dist/{ekybStateMachine-3kceTymI.esm.js → ekybStateMachine-q7JQ-x9l.esm.js} +1214 -91
- package/dist/{ekybUtils-Cw8Ta9Qi.esm.js → ekybUtils-Z9MhFAer.esm.js} +11 -1
- package/dist/ekyc-prefill.d.ts +3 -3
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-CERRvIfg.d.ts → ekycManager-BKVQazAb.d.ts} +48 -7
- package/dist/{ekycManager-DawJq3Jo.esm.js → ekycManager-p3uenUEi.esm.js} +39 -16
- package/dist/{ekycPrefillManager-DLNmToWT.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +10 -9
- package/dist/{ekycPrefillManager-D_8NJzZf.esm.js → ekycPrefillManager-gPX3XE7u.esm.js} +3 -2
- package/dist/{ekycPrefillStateMachine-C-JAvkH3.esm.js → ekycPrefillStateMachine-SBnBKPGA.esm.js} +12 -13
- package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-BH_Ll_0A.esm.js} +201 -38
- package/dist/{ekycStateMachine-qvQ-b4IY.esm.js → ekycStateMachine-D0NAHzS7.esm.js} +1031 -132
- package/dist/{ekycUtils-Drx8ImpN.esm.js → ekycUtils-DEvtEyBI.esm.js} +55 -43
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
- package/dist/{electronicSignatureManager-u3UBhWw_.esm.js → electronicSignatureManager-C1M-Yxf2.esm.js} +11 -17
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BSaGg1Gl.esm.js → emailManager-DWnhEsUf.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-CaoPZtZN.esm.js → emailStateMachine--T9PHflK.esm.js} +5 -7
- package/dist/events-ChMS-UzR.esm.js +299 -0
- package/dist/events.d.ts +4 -1
- package/dist/events.esm.js +2 -1
- package/dist/extensibility.d.ts +42 -42
- package/dist/extensibility.esm.js +38 -38
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-DKJUjsV2.esm.js → faceCaptureManagerFactory-18QW0lmV.esm.js} +29 -12
- package/dist/{faceCaptureManagerFactory-ZudYP6Qp.d.ts → faceCaptureManagerFactory-CHqmyOjM.d.ts} +35 -16
- package/dist/{faceCaptureSetup-CZzv26ip.esm.js → faceCaptureSetup-CFToXwHy.esm.js} +115 -74
- package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-C5b5WtcY.d.ts} +12 -5
- package/dist/{faceMatchManager-qPJsa5Ac.esm.js → faceMatchManager-DIStK4qi.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-D90ZHY1r.esm.js → faceMatchStateMachine-DagrRdo2.esm.js} +49 -34
- package/dist/{feature-management-BMUPPAzI.esm.js → feature-management-BlscKbeV.esm.js} +3 -2
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.d.ts +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-BLLj_Ey1.esm.js → fieldComparisonManager-BnWBtMN7.esm.js} +7 -7
- package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Bh3rxb7Y.esm.js → fiscalQrManager-BxXaLhin.esm.js} +9 -8
- package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +50 -14
- package/dist/flow.esm.js +214 -58
- package/dist/{flowCompletionService-DgA2VEq4.esm.js → flowCompletionService-DNLssMAg.esm.js} +2 -2
- package/dist/{flowServices-aJ5kGxBd.esm.js → flowServices-Bzq3piUR.esm.js} +378 -18
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
- package/dist/{geolocationManager-BA57nCxj.esm.js → geolocationManager-DoLbpx5e.esm.js} +5 -3
- package/dist/{geolocationStateMachine-3-d1ECCh.esm.js → geolocationStateMachine-d5_E7gAm.esm.js} +8 -10
- package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-D5HkBqfr.esm.js → governmentValidationManager-CaZxyEOO.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-BwMClTqC.esm.js → governmentValidationStateMachine-DeHHhlcf.esm.js} +4 -6
- package/dist/home.d.ts +4 -3
- package/dist/home.esm.js +4 -2
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +3 -3
- package/dist/id-selfie-flow.d.ts +7 -6
- package/dist/id-selfie-flow.esm.js +14 -13
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +5 -5
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-Dszuq9ng.esm.js → idCaptureDefaults-R3rHuTOE.esm.js} +4 -4
- package/dist/{idCaptureManager-NRGuCVv2.d.ts → idCaptureManager-CgkQW3Xc.d.ts} +24 -13
- package/dist/{idCaptureManager-B_TyUA3w.esm.js → idCaptureManager-D_YGMeCW.esm.js} +30 -22
- package/dist/{idCaptureServices-C6FUQ76N.esm.js → idCaptureServices-CP6AxsFW.esm.js} +17 -25
- package/dist/{idCaptureStateMachine-Cr8WdGyp.esm.js → idCaptureStateMachine-BdBtGQZP.esm.js} +114 -96
- package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
- package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-C0C7lFGd.d.ts} +4 -3
- package/dist/{idOcrManager-BMK2oou0.esm.js → idOcrManager-XTbpfHoF.esm.js} +5 -3
- package/dist/{idOcrStateMachine-RjNycN07.esm.js → idOcrStateMachine-B-00PgPh.esm.js} +13 -10
- package/dist/{idVerificationManager-4wY-Ee4j.esm.js → idVerificationManager-B4NYLlUl.esm.js} +5 -3
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationStateMachine-Bj00uWvh.esm.js → idVerificationStateMachine-B48Ikl-7.esm.js} +4 -6
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.d.ts +97 -0
- package/dist/identity-search.esm.js +96 -0
- package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +84 -17
- package/dist/{identityReuseManager-CCZ-ES2E.esm.js → identityReuseManager-tFeYm_So.esm.js} +9 -4
- package/dist/{identityReuseStateMachine-BtpkGpYZ.esm.js → identityReuseStateMachine-Ckf39qFu.esm.js} +24 -31
- package/dist/{index-DlVDVTcf.d.ts → index-CNck5TLp.d.ts} +1 -1
- package/dist/{index-BGnYn_4J.d.ts → index-CoePktWH.d.ts} +2 -2
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-BkvXSZfa.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
- package/dist/{kybChecksManager-x2nBdasv.esm.js → kybChecksManager-DP76y-Qz.esm.js} +3 -2
- package/dist/{kybChecksStateMachine-DdWSo3jQ.esm.js → kybChecksStateMachine-OKLT8Zoc.esm.js} +11 -14
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-C9JJGENL.esm.js → mandatoryConsentManager-NX1lz6nk.esm.js} +5 -3
- package/dist/{mandatoryConsentManager-JNeVXgK8.d.ts → mandatoryConsentManager-kzr5kdc_.d.ts} +5 -4
- package/dist/{mandatoryConsentStateMachine-DLNIGElA.esm.js → mandatoryConsentStateMachine-D1J2NQSI.esm.js} +6 -9
- package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +21 -4
- package/dist/{multipartRecordingService-OmSzHBqh.esm.js → multipartRecordingService-Cz-cWrpV.esm.js} +2 -2
- package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-Cyh71hOt.esm.js} +1 -1
- package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-BrtDMB0Z.esm.js} +23 -9
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
- package/dist/{phoneManager-BylOWecM.esm.js → phoneManager-D1QPNbu0.esm.js} +5 -3
- package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
- package/dist/{phoneServices-Crge7uSV.esm.js → phoneServices-DC7AuUed.esm.js} +3 -7
- package/dist/{phoneStateMachine-CHnhCS-4.esm.js → phoneStateMachine-CxCPxTIy.esm.js} +4 -4
- package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
- package/dist/{processFaceMatch-BveUAHts.esm.js → processFaceMatch-BQoiqLVh.esm.js} +1 -1
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-BUqAQd8F.esm.js → recordingService-CSCvD2tB.esm.js} +17 -10
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-Db99n9Yu.d.ts} +4 -3
- package/dist/{redirectToMobileManager-DUpLyXsq.esm.js → redirectToMobileManager-Dcpg5GfP.esm.js} +7 -4
- package/dist/{redirectToMobileStateMachine-D0DW4y-f.esm.js → redirectToMobileStateMachine-BMehrtVP.esm.js} +18 -21
- package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
- package/dist/{runChildModule-BTMOZdMM.esm.js → runChildModule-DNEmc7of.esm.js} +8 -6
- package/dist/{sdkVersion-CinXzhdk.esm.js → sdkVersion-etdZfyCR.esm.js} +1 -1
- package/dist/selfie.d.ts +6 -6
- package/dist/selfie.esm.js +15 -13
- package/dist/{selfieErrorUtils-D92PpZGe.esm.js → selfieErrorUtils-DT-uhK20.esm.js} +1 -1
- package/dist/{selfieManager-DX9Ejy4x.esm.js → selfieManager-CdS6a7Q8.esm.js} +7 -6
- package/dist/{selfieManager-BPOlD-UN.d.ts → selfieManager-DrBYj5kA.d.ts} +2 -2
- package/dist/{selfieStateMachine-BfJ5mJ57.esm.js → selfieStateMachine-ChCl3nyf.esm.js} +5 -5
- package/dist/{session-CswNE2eZ.esm.js → session-VXYuRYzb.esm.js} +5 -4
- package/dist/session.d.ts +3 -13
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-DFtIRfDh.esm.js → sessionInitializer-BT_CmYcX.esm.js} +54 -79
- package/dist/{setup-Bl3CRduw.esm.js → setup-BXrgDdfx.esm.js} +14 -12
- package/dist/{setup-prV5HQCQ.d.ts → setup-rcXgYUcY.d.ts} +6 -5
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-QlegdTo3.esm.js → signatureManager-B737Gkvk.esm.js} +5 -3
- package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
- package/dist/{signatureStateMachine-DFbbbFwg.esm.js → signatureStateMachine-B-QG7fk0.esm.js} +5 -7
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-Bv5PiWvo.esm.js → stats-CrqhpKkP.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +3 -2
- package/dist/step-up.esm.js +2 -1
- package/dist/{tri-BUFivnaE.esm.js → tri-BD9z6z0w.esm.js} +6 -3
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
- package/dist/tri.esm.js +1 -1
- package/dist/trueSight-BymJD5cW.esm.js +1 -0
- package/dist/{trueSightService-CDbmG-Mi.esm.js → trueSightService-BwyLhIAo.esm.js} +10 -8
- package/dist/trust-graph.d.ts +87 -27
- package/dist/trust-graph.esm.js +6 -25
- package/dist/trustGraphStateMachine-BxvReuo1.esm.js +58 -0
- package/dist/{types-CquDWYfv.d.ts → types-4Re9FSOw.d.ts} +68 -6
- package/dist/{types-D9vIGFbl.d.ts → types-B-PIc0en.d.ts} +1 -1
- package/dist/types-BNkzXOXE.d.ts +45 -0
- package/dist/types-BtrJ5fkm.d.ts +6 -0
- package/dist/{types-LA74KylV.d.ts → types-C1056-J1.d.ts} +1 -1
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/{events-kU5WJU4B.esm.js → types-CBQN04Rh.esm.js} +5 -299
- package/dist/{types-BD9sV5oG.d.ts → types-CEGG70FK.d.ts} +16 -3
- package/dist/types-CXTDuzUJ.d.ts +16 -0
- package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
- package/dist/{types-CyNndVAT.d.ts → types-Cy6Lx3L6.d.ts} +2 -2
- package/dist/{types-BaDx6utW.d.ts → types-DEa3taWc.d.ts} +4 -0
- package/dist/{types-0Rr7etmf.d.ts → types-DHpz4Y37.d.ts} +1 -1
- package/dist/{types-BpJ21a4T.d.ts → types-b0l9b83G.d.ts} +14 -7
- package/dist/video-selfie.d.ts +8 -7
- package/dist/video-selfie.esm.js +14 -13
- package/dist/{videoSelfieCameraWarmer-Dnkiqe0z.esm.js → videoSelfieCameraWarmer-DgRlU_8q.esm.js} +10 -10
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-B78BE_x9.d.ts → videoSelfieStepDetector-DC_Qh7qI.d.ts} +19 -9
- package/dist/{warmup-DtB0DJpl.esm.js → warmup-BN8dG2KX.esm.js} +192 -42
- package/dist/{warmup-BO57syF6.d.ts → warmup-SWu5L7cW.d.ts} +19 -2
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/wasmDeepsightConfigSync-DukEcrU8.esm.js +77 -0
- package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-DwBfTlgB.esm.js} +1 -1
- package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-B2P6Vlvv.esm.js} +32 -13
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-DOYmIiaj.esm.js → watchlistForBusinessManager-DxeSH80T.esm.js} +5 -3
- package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
- package/dist/{watchlistForBusinessStateMachine-D8qIyL8w.esm.js → watchlistForBusinessStateMachine-BC9UWLuZ.esm.js} +12 -9
- package/dist/{watchlistManager-BJGLRv-x.esm.js → watchlistManager-BHzmC9OC.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-DeLfuGSl.esm.js → watchlistStateMachine-Bxzn16iJ.esm.js} +4 -6
- package/dist/workflow.d.ts +6 -5
- package/dist/workflow.esm.js +68 -49
- package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
- package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
- package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
- package/package.json +13 -3
- package/dist/Actor-DpTj5PFb.d.ts +0 -1
- package/dist/camera-9wWD-pwg.d.ts +0 -4
- package/dist/index-DpTj5PFb.d.ts +0 -1
- package/dist/nationalIds-B91f_RuB.esm.js +0 -99
- package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
- package/dist/tri.esm-DgtAka_v.esm.js +0 -2145
- package/dist/types-B2M1IPZn.d.ts +0 -6
- 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 {
|
|
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 {
|
|
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.
|
|
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.
|
|
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 =
|
|
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 =
|
|
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:
|
|
595
|
-
*
|
|
596
|
-
*
|
|
597
|
-
*
|
|
598
|
-
* through `
|
|
599
|
-
*
|
|
600
|
-
* `postFaceResults` and the protected upload
|
|
601
|
-
* they run, so
|
|
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
|
|
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
|
-
*
|
|
993
|
-
*
|
|
994
|
-
*
|
|
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
|
|
997
|
-
console.warn(`[Incode SDK] The "${pipeline}" self-hosted WASM configuration omits ${models.join(", ")}. The protected ID
|
|
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,
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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-
|
|
2
|
-
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-
|
|
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.
|
|
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 {
|
|
2
|
-
import { s as warmupWasm } from "./warmup-
|
|
3
|
-
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-
|
|
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-
|
|
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
|