@incodetech/core 2.4.0-rc.4 → 2.4.1-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/{FaceDetectionProvider-CzQEFzP8.esm.js → FaceDetectionProvider-B83VmClw.esm.js} +29 -64
- package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
- package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
- package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
- package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
- package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
- package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-GTkoJyFY.esm.js} +75 -22
- package/dist/{addressSearch-DPjIKJrX.esm.js → addressSearch-41sMcnJk.esm.js} +72 -31
- package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-CQ08atTC.esm.js} +2 -2
- package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-BcsUTTIr.esm.js} +1 -1
- package/dist/{api-Cz90EHyu.esm.js → api-BO8JA7Pf.esm.js} +6 -5
- package/dist/{apiError-B_uY7RO6.esm.js → apiError-CfuIvnUy.esm.js} +1 -1
- package/dist/attemptCarry-BjTJ6bMQ.esm.js +45 -0
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-C-cOki0Y.d.ts} +1 -1
- package/dist/{authenticationManager-CSHZQTlb.esm.js → authenticationManager-DvmklBTE.esm.js} +5 -5
- package/dist/{authenticationStateMachine-DrO14KyC.esm.js → authenticationStateMachine-BL2ptOA0.esm.js} +3 -3
- package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-C5_NNfUN.esm.js} +3 -43
- package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
- package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-CM0fuqDC.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-kksIUOPD.esm.js} +2 -2
- package/dist/cnpj-Co1ottYN.esm.js +77 -0
- package/dist/connectivity-HSl0diCx.esm.js +133 -0
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-CBwFozhv.esm.js} +4 -3
- package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-_q9yJUku.d.ts} +14 -7
- package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-CpmRAcr2.esm.js} +20 -7
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-64O8t10a.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-CLgJQcx0.esm.js} +3 -2
- package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-CXpFE-Mv.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-Bx9YhVkJ.esm.js} +28 -20
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-DWt_0YtJ.esm.js} +2 -2
- package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-D8o-2Nej.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-Sbi6DIcK.esm.js} +1 -1
- package/dist/{deepsightLoader-DkrG5zbN.esm.js → deepsightLoader-DMxtowCm.esm.js} +6 -28
- package/dist/{deepsightService-BrltL1DF.esm.js → deepsightService-twg3bXqY.esm.js} +20 -59
- package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-kHY2IDJi.esm.js} +177 -40
- package/dist/device.esm.js +2 -2
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-6tnnDkMX.d.ts} +14 -2
- package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-CMSC_Mhd.esm.js} +26 -19
- package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-BCwD5Rto.esm.js} +43 -35
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
- package/dist/{dynamicFormsManager-D7Xnjm7B.esm.js → dynamicFormsManager-DU6W1e20.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-Cgk0VPP4.esm.js → dynamicFormsStateMachine-C8Z7k3vo.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-TB6ZG5lX.d.ts} +2 -2
- package/dist/{ekybManager-yj_Y36jM.esm.js → ekybManager-TGfqyjuu.esm.js} +2 -2
- package/dist/{ekybStateMachine-DIRBMkaD.esm.js → ekybStateMachine-DBgFuEPK.esm.js} +26 -44
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-BSQteIfC.d.ts} +1 -1
- package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-C2cgG2Pl.esm.js} +2 -2
- package/dist/ekycStateMachine-CuNF7z4O.esm.js +7505 -0
- package/dist/ekycUtils-BFncpC4F.esm.js +1401 -0
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-Btsa7Prh.esm.js → electronicSignatureManager-C7pqXsRm.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-ButFktRm.esm.js → emailManager-FH_CP0cT.esm.js} +2 -2
- package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-Cx-uTaBV.esm.js} +32 -20
- package/dist/{events-Du2A4-Qr.esm.js → events-CQteqXfy.esm.js} +2 -2
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +35 -21
- package/dist/extensibility.esm.js +34 -34
- package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-C-xKdj-d.d.ts} +71 -66
- package/dist/{faceCaptureManagerFactory-CdDfnyyb.esm.js → faceCaptureManagerFactory-CBm05KnT.esm.js} +4 -4
- package/dist/{faceCaptureSetup-CCucWLdy.esm.js → faceCaptureSetup-BQjCbL51.esm.js} +82 -64
- package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-B2zp7yP4.esm.js} +2 -2
- package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
- package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-ByTMQCUC.esm.js} +40 -27
- package/dist/{feature-management-DCD0I_XZ.esm.js → feature-management-DjAG5lsJ.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-CC0vKmpf.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-Be-r4oZj.esm.js} +4 -4
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +10 -10
- package/dist/flow.esm.js +8 -11
- package/dist/{flowCompletionService-xFODSJEq.esm.js → flowCompletionService-ChMU2v79.esm.js} +2 -2
- package/dist/{flowServices-COMEf-WP.esm.js → flowServices-g2tVWsJl.esm.js} +8 -50
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
- package/dist/{geolocationManager-B2C2yfrn.esm.js → geolocationManager-DLbvZwUB.esm.js} +6 -8
- package/dist/{geolocationStateMachine-Dbg9jw62.esm.js → geolocationStateMachine-CAJVongM.esm.js} +12 -8
- package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CkX9TEkh.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-PTPCP26N.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +9 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -16
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-MSQoqScU.esm.js} +3 -3
- package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-DzTfQ1Am.d.ts} +66 -5
- package/dist/{idCaptureManager-DZtgScdd.esm.js → idCaptureManager-zZdTcpG1.esm.js} +63 -17
- package/dist/{idCaptureServices-mpibFz4U.esm.js → idCaptureServices-8OHinO0N.esm.js} +9 -9
- package/dist/{idCaptureStateMachine-DWJOHeGn.esm.js → idCaptureStateMachine-B3G6XoDG.esm.js} +914 -536
- package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-B64-fjWg.esm.js} +2 -2
- package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-B1aZnobs.esm.js} +2 -2
- package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-_Kebv-Ue.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DQn6c84z.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-DDXkNVZi.esm.js} +2 -2
- package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +4 -4
- package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-Bcnkbjf8.esm.js} +1 -1
- package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
- package/dist/{index-CKQ9QBZP.d.ts → index-DMDAk85K.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-CXIBwBeE.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-43W5d_8G.esm.js} +4 -3
- package/dist/{mandatoryConsentManager-okPILEru.d.ts → mandatoryConsentManager-xx3mY-xw.d.ts} +13 -6
- package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-CVlgdlnt.esm.js} +20 -7
- package/dist/{multipartRecordingService-CLwrF5wD.esm.js → multipartRecordingService-DMBxHKS2.esm.js} +3 -13
- package/dist/nationalIds-B91f_RuB.esm.js +99 -0
- package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-B3OPL8Si.esm.js} +1 -1
- package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-DnBAN_hW.esm.js} +4 -4
- package/dist/phone-number.d.ts +7 -1
- package/dist/phone-number.esm.js +15 -2
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
- package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-C6jut_pz.esm.js} +3 -3
- package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-T1-drWfG.esm.js} +37 -25
- package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
- package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
- package/dist/processFaceMatch-BWme3kVV.esm.js +21 -0
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-BJXC6Kx9.esm.js} +4 -3
- package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
- package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-BBMAc2Gb.esm.js} +27 -6
- package/dist/{runChildModule-C09a9ACV.esm.js → runChildModule-DPHTqSdF.esm.js} +3 -3
- package/dist/{sdkVersion-xE2xE2_9.esm.js → sdkVersion-C3_P-Qbq.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-CoXIxVCy.esm.js → selfieErrorUtils-BL0BLMnp.esm.js} +1 -1
- package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-BMmpUii2.d.ts} +1 -1
- package/dist/{selfieManager-RcVUu1KJ.esm.js → selfieManager-Cbliomv7.esm.js} +5 -5
- package/dist/{selfieStateMachine-nWbIRIBD.esm.js → selfieStateMachine-B5m_Kn0O.esm.js} +3 -3
- package/dist/{session-Cr4IVgYu.esm.js → session-DAaAewMX.esm.js} +77 -9
- package/dist/session.d.ts +96 -10
- package/dist/session.esm.js +7 -6
- package/dist/{sessionInitializer-c3CChZts.esm.js → sessionInitializer-CWFT4dfw.esm.js} +402 -202
- package/dist/{setup-BvKrAlOo.esm.js → setup-CDAKwTr7.esm.js} +32 -19
- package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-BeEVCcsC.esm.js} +2 -2
- package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-_1c1vSid.esm.js} +1 -1
- package/dist/{stats-BEvexnKC.esm.js → stats-BpMz-hTP.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{tri-xzRLIIMN.esm.js → tri-BajQnjbf.esm.js} +142 -8
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-BAvhAU7T.esm.js → trueSightService-BujtUIW6.esm.js} +19 -10
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-yPH8lAH-.d.ts → types--3HDl2SF.d.ts} +2 -2
- package/dist/types-B2FK_wYb.d.ts +249 -0
- package/dist/types-B9C8W01q.d.ts +34 -0
- package/dist/{types-0L-eFDmr.d.ts → types-C397LhmN.d.ts} +1 -1
- package/dist/types-D9r3zRfY.d.ts +6 -0
- package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
- package/dist/{types-B6HsSzpk.d.ts → types-DuD8TRJU.d.ts} +3 -2
- package/dist/{types-Ckir_BEs.d.ts → types-PTZHRhGX.d.ts} +1 -1
- package/dist/{types-DUnFZ08M.d.ts → types-ZTZelfbM.d.ts} +2 -2
- package/dist/{types-CK8Jbjkp.d.ts → types-e8fCsvvk.d.ts} +1 -1
- package/dist/{types-BAxn7MpY.d.ts → types-xEEWCx1j.d.ts} +123 -48
- package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
- package/dist/video-selfie.d.ts +8 -8
- package/dist/video-selfie.esm.js +95 -22
- package/dist/{videoSelfieCameraWarmer-LeE2vbAW.esm.js → videoSelfieCameraWarmer-DjkPpoj_.esm.js} +18 -21
- package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-RfSmlFFW.d.ts} +9 -4
- package/dist/{warmup-BElYWRh7.esm.js → warmup-BkfxQZsC.esm.js} +175 -11
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BhU5H2oR.esm.js} +1 -1
- package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
- package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-DTj9auyA.esm.js} +43 -17
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-CVay6-9A.esm.js} +37 -7
- package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
- package/dist/watchlistForBusinessStateMachine-DA6K5na4.esm.js +166 -0
- package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-B8gQ_rw3.esm.js} +2 -2
- package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-CSi_ZhtT.esm.js} +1 -1
- package/dist/workflow.d.ts +5 -2
- package/dist/workflow.esm.js +57 -47
- package/package.json +3 -2
- package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
- package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
- package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
- package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
- package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
- package/dist/types-BvLo3U4u.d.ts +0 -134
- package/dist/types-zOgZqMni.d.ts +0 -6
- package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
- /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
package/dist/{FaceDetectionProvider-CzQEFzP8.esm.js → FaceDetectionProvider-B83VmClw.esm.js}
RENAMED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
3
|
-
import { r as BaseWasmProvider } from "./WasmUtilProvider-
|
|
4
|
-
import { t as api, u as endpoints } from "./api-
|
|
5
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
6
|
-
import "./sessionInitializer-
|
|
7
|
-
import { t as addDeviceStats } from "./stats-
|
|
8
|
-
import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
9
|
-
import { i as requestCameraAccess, o as stopCameraStream, r as getCameraReacquisitionConstraints } from "./camera-sIa9ceW2.esm.js";
|
|
1
|
+
import { l as wasmRuntime } from "./warmup-BkfxQZsC.esm.js";
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-CDAKwTr7.esm.js";
|
|
3
|
+
import { r as BaseWasmProvider } from "./WasmUtilProvider-GTkoJyFY.esm.js";
|
|
4
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
5
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-BujtUIW6.esm.js";
|
|
6
|
+
import "./sessionInitializer-CWFT4dfw.esm.js";
|
|
7
|
+
import { t as addDeviceStats } from "./stats-BpMz-hTP.esm.js";
|
|
10
8
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
11
|
-
import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-
|
|
12
|
-
import {
|
|
13
|
-
import "./deepsightService-
|
|
14
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
9
|
+
import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-DMBxHKS2.esm.js";
|
|
10
|
+
import { n as hasBackCamera } from "./backCameraStream-C5_NNfUN.esm.js";
|
|
11
|
+
import "./deepsightService-twg3bXqY.esm.js";
|
|
12
|
+
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
13
|
+
import { n as saveProcessFaceMatch } from "./processFaceMatch-BWme3kVV.esm.js";
|
|
15
14
|
//#region src/internal/faceCapture/onDeviceFaceResults.ts
|
|
16
15
|
/**
|
|
17
16
|
* On-device still-face capture is owned by the protected camera-cycle actor.
|
|
@@ -126,64 +125,30 @@ const getFaceErrorCodeFromHttpError = (error) => {
|
|
|
126
125
|
return getFaceUploadErrorCode(err.status, typeof err.data?.status === "number" ? err.data.status : void 0);
|
|
127
126
|
};
|
|
128
127
|
async function processFace(imageType = "selfie", signal) {
|
|
129
|
-
|
|
128
|
+
const response = await api.post(endpoints.processFace, {}, {
|
|
130
129
|
query: { imageType },
|
|
131
130
|
signal
|
|
132
|
-
})
|
|
131
|
+
});
|
|
132
|
+
if (imageType === "selfie") saveProcessFaceMatch(response.data?.success);
|
|
133
|
+
return response.data;
|
|
133
134
|
}
|
|
134
135
|
//#endregion
|
|
135
136
|
//#region src/internal/faceCapture/faceCaptureServices.ts
|
|
136
137
|
function sendLabelInspectionEvent() {
|
|
137
138
|
return addDeviceStats({ cameraLabelInspectionStatus: "FAIL" });
|
|
138
139
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
audio: false
|
|
150
|
-
};
|
|
151
|
-
function buildCameraConstraints(resolution, deviceId) {
|
|
152
|
-
if (resolution) return {
|
|
153
|
-
video: {
|
|
154
|
-
facingMode: "user",
|
|
155
|
-
deviceId: deviceId ? { exact: deviceId } : void 0,
|
|
156
|
-
height: resolution.height ? { ideal: resolution.height } : void 0,
|
|
157
|
-
width: resolution.width ? { ideal: resolution.width } : void 0
|
|
158
|
-
},
|
|
159
|
-
audio: false
|
|
160
|
-
};
|
|
161
|
-
if (isIPhone14OrHigher()) return IPHONE14_SELFIE_CONSTRAINTS;
|
|
162
|
-
return MOBILE_SELFIE_CONSTRAINTS;
|
|
163
|
-
}
|
|
164
|
-
function stopStream(stream) {
|
|
165
|
-
stopCameraStream(stream);
|
|
166
|
-
}
|
|
167
|
-
async function getFrontCameraStream(resolution) {
|
|
168
|
-
if (isDesktop()) {
|
|
169
|
-
if (resolution) return ensureFrontCameraStream((deviceId) => requestCameraAccess(buildCameraConstraints(resolution, deviceId)));
|
|
170
|
-
return ensureFrontCameraStream((deviceId) => getDesktopCameraStream(deviceId ? { deviceId } : {}));
|
|
171
|
-
}
|
|
172
|
-
return requestCameraAccess(resolution ? buildCameraConstraints(resolution) : buildCameraConstraints());
|
|
173
|
-
}
|
|
174
|
-
async function initializeCamera(params) {
|
|
175
|
-
const { config } = params;
|
|
140
|
+
/**
|
|
141
|
+
* Camera-free preparation for one protected face attempt: warms the WASM
|
|
142
|
+
* pipeline the attempt will run and decides which lens to request. Since
|
|
143
|
+
* ml-wasm-kit v2.14.52 the kit acquires the camera itself inside the
|
|
144
|
+
* protected camera step (`ICameraCycleCapability.startCameraCycle`), so no
|
|
145
|
+
* camera opens here. Runs once per
|
|
146
|
+
* attempt — from the tutorial pre-acquire when there is one, otherwise at
|
|
147
|
+
* attempt start.
|
|
148
|
+
*/
|
|
149
|
+
async function probeFaceCamera(config) {
|
|
176
150
|
await ensureWasmPipelines([isOnDeviceMode(config) ? "onDeviceSelfie" : "selfie"]);
|
|
177
|
-
|
|
178
|
-
const backCamera = usingBackCamera ? await getBackCameraStream() : void 0;
|
|
179
|
-
const stream = backCamera?.stream ?? await getFrontCameraStream(config.cameraResolution);
|
|
180
|
-
const constraints = getCameraReacquisitionConstraints(stream.getVideoTracks()[0], backCamera?.constraints);
|
|
181
|
-
return {
|
|
182
|
-
stream,
|
|
183
|
-
provider: params.provider,
|
|
184
|
-
usingBackCamera,
|
|
185
|
-
constraints
|
|
186
|
-
};
|
|
151
|
+
return { usingBackCamera: config.assistedOnboarding === true && await hasBackCamera() };
|
|
187
152
|
}
|
|
188
153
|
/**
|
|
189
154
|
* Encrypts the provided selfie image using WASM.
|
|
@@ -271,7 +236,7 @@ function startDetection(params) {
|
|
|
271
236
|
};
|
|
272
237
|
}
|
|
273
238
|
async function initializeDeepsightSession(options) {
|
|
274
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
239
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-DMxtowCm.esm.js");
|
|
275
240
|
return loadDeepsightSession({
|
|
276
241
|
ds: options.ds,
|
|
277
242
|
storage: options.storage
|
|
@@ -543,4 +508,4 @@ var FaceDetectionProvider = class extends BaseWasmProvider {
|
|
|
543
508
|
}
|
|
544
509
|
};
|
|
545
510
|
//#endregion
|
|
546
|
-
export { sendLabelInspectionEvent as a,
|
|
511
|
+
export { sendLabelInspectionEvent as a, uploadSelfie as c, isOnDeviceMode as d, probeFaceCamera as i, getFaceUploadErrorCode as l, encryptSelfieImage as n, startDetection as o, initializeDeepsightSession as r, processFace as s, FaceDetectionProvider as t, FACE_ERROR_CODES as u };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
|
|
2
|
+
function getTimestamp() {
|
|
3
|
+
return Date.now();
|
|
4
|
+
}
|
|
5
|
+
/** Today in the user's calendar, as an ISO `YYYY-MM-DD` date. */
|
|
6
|
+
function getLocalIsoDate() {
|
|
7
|
+
const now = /* @__PURE__ */ new Date();
|
|
8
|
+
const month = String(now.getMonth() + 1).padStart(2, "0");
|
|
9
|
+
const day = String(now.getDate()).padStart(2, "0");
|
|
10
|
+
return `${now.getFullYear()}-${month}-${day}`;
|
|
11
|
+
}
|
|
12
|
+
function revokeObjectURL(url) {
|
|
13
|
+
URL.revokeObjectURL(url);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { getTimestamp as n, revokeObjectURL as r, getLocalIsoDate as t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region ../infra/src/capabilities/IGeolocationCapability.d.ts
|
|
2
|
+
type GeolocationCoords = {
|
|
3
|
+
latitude: number;
|
|
4
|
+
longitude: number;
|
|
5
|
+
};
|
|
6
|
+
type IGeolocationCapability = {
|
|
7
|
+
getCurrentPosition(): Promise<GeolocationCoords>;
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { IGeolocationCapability as n, GeolocationCoords as t };
|
|
@@ -33,6 +33,12 @@ interface IStorageCapability {
|
|
|
33
33
|
type WasmUtilConfig = MLProviderConfig & {
|
|
34
34
|
pipelines?: WasmPipeline[];
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* Output object handed to {@link IWasmUtilCapability.poc}. Since ml-wasm-kit
|
|
38
|
+
* v2.14.53 the native check writes nothing into it (`itr` and `skipped` stay
|
|
39
|
+
* as the caller left them): the post-capture verdicts travel only in the
|
|
40
|
+
* signed capture metadata. Kept for the binding's arity.
|
|
41
|
+
*/
|
|
36
42
|
type VirtualCameraCheckOutput = {
|
|
37
43
|
canvas: HTMLCanvasElement | null;
|
|
38
44
|
itr: boolean | null;
|
|
@@ -66,6 +72,11 @@ type IWasmUtilCapability = {
|
|
|
66
72
|
setBrowserInfo(browserInfo: object, overrideExisting?: boolean): void;
|
|
67
73
|
setCameraInfo(cameraInfo: object, overrideExisting?: boolean): void;
|
|
68
74
|
setMotionStatus(status: string): void;
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated Native-free no-op since ml-wasm-kit v2.14.54, which removed
|
|
77
|
+
* the binding: the kit's own visibility observers record background time.
|
|
78
|
+
* Scheduled for removal in 3.0.0.
|
|
79
|
+
*/
|
|
69
80
|
setBackgroundMode(backgroundMode: boolean): void;
|
|
70
81
|
/**
|
|
71
82
|
* @deprecated Compatibility-only no-op since ml-wasm-kit v2.14.49-post1.
|
|
@@ -77,6 +88,11 @@ type IWasmUtilCapability = {
|
|
|
77
88
|
* for client-side gating.
|
|
78
89
|
*/
|
|
79
90
|
setOnDeviceMode(enabled: boolean): void;
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated Native-free no-op since ml-wasm-kit v2.14.54, which removed
|
|
93
|
+
* the binding: the zoom check is gone and `iad.zc` is the constant `PASS`.
|
|
94
|
+
* Scheduled for removal in 3.0.0.
|
|
95
|
+
*/
|
|
80
96
|
setZc(zc: string): void;
|
|
81
97
|
setInspectorOpened(opened: boolean): void;
|
|
82
98
|
/**
|
|
@@ -112,18 +128,29 @@ type IWasmUtilCapability = {
|
|
|
112
128
|
getCheck(): string;
|
|
113
129
|
/**
|
|
114
130
|
* Gets the current pipeline state. Must be called before setMotionStatus(),
|
|
115
|
-
* getCheck(),
|
|
131
|
+
* getCheck(), and getMetadata() for proper metadata generation.
|
|
116
132
|
*/
|
|
117
133
|
getPipelineState(): string;
|
|
118
134
|
estimatePerformance(): string;
|
|
119
135
|
/**
|
|
120
136
|
* @deprecated Returns `false` for compatibility; scheduled for removal in
|
|
121
|
-
* 3.0.0.
|
|
122
|
-
*
|
|
123
|
-
*
|
|
137
|
+
* 3.0.0. The protected camera step (`ICameraCycleCapability.startCameraCycle`)
|
|
138
|
+
* runs the pre-capture checks and the signed capture metadata carries the
|
|
139
|
+
* verdicts; nothing is decided from the track label.
|
|
124
140
|
*/
|
|
125
141
|
isVirtualCamera(label: string | null): boolean;
|
|
142
|
+
/**
|
|
143
|
+
* @deprecated Resolves without doing anything since ml-wasm-kit v2.14.52,
|
|
144
|
+
* which removed the binding: the pre-capture check runs inside the protected
|
|
145
|
+
* camera step (`ICameraCycleCapability.startCameraCycle`), so a `prc()` then
|
|
146
|
+
* `poc()` sequence keeps working. Scheduled for removal in 3.0.0.
|
|
147
|
+
*/
|
|
126
148
|
prc(): Promise<void>;
|
|
149
|
+
/**
|
|
150
|
+
* Runs the native post-capture check. `output` is kept for the binding's
|
|
151
|
+
* arity and is not written since ml-wasm-kit v2.14.53 — see
|
|
152
|
+
* {@link VirtualCameraCheckOutput}.
|
|
153
|
+
*/
|
|
127
154
|
poc(output: VirtualCameraCheckOutput): Promise<void>;
|
|
128
155
|
rsp(): Promise<void>;
|
|
129
156
|
ssl(): void;
|
package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js}
RENAMED
|
@@ -9859,6 +9859,13 @@ var PhoneValidationProvider = class {
|
|
|
9859
9859
|
} catch {}
|
|
9860
9860
|
return null;
|
|
9861
9861
|
}
|
|
9862
|
+
nationalNumber(phone, country) {
|
|
9863
|
+
try {
|
|
9864
|
+
return parsePhoneNumber(phone, country)?.nationalNumber ?? null;
|
|
9865
|
+
} catch {
|
|
9866
|
+
return null;
|
|
9867
|
+
}
|
|
9868
|
+
}
|
|
9862
9869
|
};
|
|
9863
9870
|
//#endregion
|
|
9864
9871
|
export { metadata_min_json_default as C, withMetadataArgument as S, VALID_PUNCTUATION as _, PhoneNumber as a, getCountryCallingCode as b, applyInternationalSeparatorStyle as c, getCountryByCallingCode as d, getCountryByNationalNumber as f, VALID_DIGITS as g, PLUS_CHARS as h, parseDigits as i, extractCountryCallingCode as l, stripIddPrefix as m, PhoneValidationProvider_exports as n, FIRST_GROUP_PATTERN as o, extractNationalNumberFromPossiblyIncompleteNumber as p, parsePhoneNumber as r, formatNationalNumberUsingFormat as s, PhoneValidationProvider as t, extractCountryCallingCodeFromInternationalNumberWithoutPlusSign as u, checkNumberLength as v, isObject as x, Metadata as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { y as IncodeCanvas } from "./createFaceAvatar-lYX0VTYs.js";
|
|
2
|
-
import "./IWasmUtilCapability-
|
|
2
|
+
import "./IWasmUtilCapability-Cqiaxydi.js";
|
|
3
3
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
4
4
|
//#region ../infra/src/capabilities/IMotionSensorCapability.d.ts
|
|
5
5
|
type MotionStatus = 'PASS' | 'FAIL' | 'UNCLEAR';
|
|
@@ -12,6 +12,11 @@ type MetadataService = {
|
|
|
12
12
|
checkForVirtualCameraByLabel(videoTrack: MediaStreamTrack | null): Promise<boolean>;
|
|
13
13
|
analyzeFrame(imageData: ImageData): Promise<void>;
|
|
14
14
|
setMotionStatus(status: string): void;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated No-op since ml-wasm-kit v2.14.54 removed `setBackgroundMode`:
|
|
17
|
+
* the kit's own visibility observers record background time in the capture
|
|
18
|
+
* metadata. Scheduled for removal in 3.0.0.
|
|
19
|
+
*/
|
|
15
20
|
setBackgroundMode(backgroundMode: boolean): void;
|
|
16
21
|
estimatePerformance(): string;
|
|
17
22
|
getMetadata(): string;
|
|
@@ -19,7 +24,7 @@ type MetadataService = {
|
|
|
19
24
|
getPipelineState(): string;
|
|
20
25
|
/**
|
|
21
26
|
* Prepares pipeline state for metadata collection.
|
|
22
|
-
* Must be called before setMotionStatus, getCheck,
|
|
27
|
+
* Must be called before setMotionStatus, getCheck, and getMetadata.
|
|
23
28
|
*/
|
|
24
29
|
preparePipelineState(): void;
|
|
25
30
|
};
|
|
@@ -53,7 +58,11 @@ type DeepsightService = {
|
|
|
53
58
|
checkVirtualCamera(videoTrack: MediaStreamTrack): Promise<boolean>;
|
|
54
59
|
performVirtualCameraCheck(sessionToken: string | null, source: FrameSource): Promise<void>;
|
|
55
60
|
/**
|
|
56
|
-
*
|
|
61
|
+
* @deprecated No-op since ml-wasm-kit v2.14.52 removed `prc`: the
|
|
62
|
+
* pre-capture check runs inside the protected camera step
|
|
63
|
+
* (`ICameraCycleCapability.startCameraCycle`) that the protected attempt
|
|
64
|
+
* drives, and there is no stand-alone warm-up any more. Scheduled for
|
|
65
|
+
* removal in 3.0.0.
|
|
57
66
|
*/
|
|
58
67
|
performPrcCheck(params: DeepsightPrcCheckParams): Promise<void>;
|
|
59
68
|
analyzeFrame(imageData: ImageData): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
-
import { c as wasmCallWrapper, d as noteUnlockedCallStart, s as ML_CALL_MAX_POLLS, u as noteUnlockedCallEnd } from "./wasmWebClient-
|
|
3
|
-
import {
|
|
2
|
+
import { c as wasmCallWrapper, d as noteUnlockedCallStart, s as ML_CALL_MAX_POLLS, u as noteUnlockedCallEnd } from "./wasmWebClient-DTj9auyA.esm.js";
|
|
3
|
+
import { i as isWasmReady, l as wasmRuntime, o as waitForWasm, r as getWasmStatus, s as warmupWasm } from "./warmup-BkfxQZsC.esm.js";
|
|
4
4
|
//#region ../infra/src/wasm/utilityWasmApi.ts
|
|
5
5
|
/**
|
|
6
6
|
* Utility / metadata domain facade over {@link WasmRuntime}.
|
|
@@ -10,7 +10,8 @@ import { c as wasmRuntime, i as isWasmReady, o as waitForWasm, r as getWasmStatu
|
|
|
10
10
|
* persist and that must be replayed into it at call time —
|
|
11
11
|
*
|
|
12
12
|
* - `dsEnabled_` (deepsight) is passed as an argument on every
|
|
13
|
-
* `
|
|
13
|
+
* `poc`/`rsp`/`ssl` call, and read back through {@link getDsEnabled} by
|
|
14
|
+
* `CameraCycleProvider` for the camera step's `ds` option;
|
|
14
15
|
* - `inspectorOpened_` is pushed into C++ inside {@link getMetadata}, right
|
|
15
16
|
* before reading the metadata, because `setInspectorOpened` may legitimately be
|
|
16
17
|
* called before WASM is initialized.
|
|
@@ -21,10 +22,24 @@ import { c as wasmRuntime, i as isWasmReady, o as waitForWasm, r as getWasmStatu
|
|
|
21
22
|
* `fpPrefetch_` is a third, derived piece of JS state: the memoized `ppf` poll
|
|
22
23
|
* that `getFPData` awaits, keyed by the embind handle it was started on.
|
|
23
24
|
*
|
|
24
|
-
* `
|
|
25
|
+
* `poc`/`rsp` are the only methods here that hold the ML semaphore (the camera
|
|
26
|
+
* step's `cst` holds it from `WasmRuntime`).
|
|
25
27
|
* `ssl`/`stl`/`osv`/`oev`/`ckvcks`/`sbc`/`ppf` and everything else are unlocked **by design**
|
|
26
28
|
* (decision D6) — never add locking.
|
|
27
29
|
*
|
|
30
|
+
* Three members are deprecated native-free shims for bindings ml-wasm-kit
|
|
31
|
+
* deleted: `prc` (v2.14.52) rejects with a fixed error; `setZc` and
|
|
32
|
+
* `setBackgroundMode` (v2.14.54) are no-ops. `WasmUtilProvider` is public
|
|
33
|
+
* (`@incodetech/core/extensibility`) and `major` changesets are forbidden, so
|
|
34
|
+
* they follow the `isVirtualCamera` / `processPhoto` precedent until 3.0.0.
|
|
35
|
+
*
|
|
36
|
+
* `smv` (restored in ml-wasm-kit v2.14.54-pre5; `true` selects v2 since pre6)
|
|
37
|
+
* is guarded like upstream but routes through `WasmRuntime.setMetadataV2Enabled`,
|
|
38
|
+
* which latches the
|
|
39
|
+
* selection and replays it after every `initialize()` — the kit keeps it as
|
|
40
|
+
* realm state (ADR 0009 §6). The SDK-facing unguarded entry is
|
|
41
|
+
* `wasmMetadataVersionSync.ts`.
|
|
42
|
+
*
|
|
28
43
|
* Method names, argument order and the pre-initialization error strings are
|
|
29
44
|
* copied verbatim from the mirrored upstream `wasmApi.ts` so a WASM version bump
|
|
30
45
|
* stays a diff against upstream (`docs/processes/WASM_VERSION_MIGRATION.md`).
|
|
@@ -58,8 +73,9 @@ var UtilityWasmApi = class {
|
|
|
58
73
|
}
|
|
59
74
|
/**
|
|
60
75
|
* @deprecated Native label inspection has been unavailable since
|
|
61
|
-
* v2.14.49-post1; scheduled for removal in 3.0.0.
|
|
62
|
-
*
|
|
76
|
+
* v2.14.49-post1; scheduled for removal in 3.0.0. The protected camera step
|
|
77
|
+
* (`ICameraCycleCapability.startCameraCycle`) runs the pre-capture checks
|
|
78
|
+
* and the signed capture metadata carries the verdicts.
|
|
63
79
|
*/
|
|
64
80
|
isVirtualCamera(_label) {
|
|
65
81
|
return false;
|
|
@@ -105,9 +121,12 @@ var UtilityWasmApi = class {
|
|
|
105
121
|
setCameraInfo(cameraInfo, overrideExisting = true) {
|
|
106
122
|
this.runtime.requireUtilityApi("Unable to set camera info, cpp API hasn't been initialized").setCameraInfo(cameraInfo, overrideExisting);
|
|
107
123
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
124
|
+
/**
|
|
125
|
+
* @deprecated Native-free no-op. ml-wasm-kit v2.14.54 removed `setZc`: the
|
|
126
|
+
* zoom check is gone and `iad.zc` is the constant `PASS` in the capture
|
|
127
|
+
* metadata. Scheduled for removal in 3.0.0.
|
|
128
|
+
*/
|
|
129
|
+
setZc(_zc) {}
|
|
111
130
|
setMotionStatus(motionStatus) {
|
|
112
131
|
this.runtime.requireUtilityApi("Unable to set motion status, cpp API hasn't been initialized").setMotionStatus(motionStatus);
|
|
113
132
|
}
|
|
@@ -117,12 +136,19 @@ var UtilityWasmApi = class {
|
|
|
117
136
|
getInspectorOpened() {
|
|
118
137
|
return this.inspectorOpened_;
|
|
119
138
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
139
|
+
/**
|
|
140
|
+
* @deprecated Native-free no-op. ml-wasm-kit v2.14.54 removed
|
|
141
|
+
* `setBackgroundMode`: the kit's own visibility observers record background
|
|
142
|
+
* time. Scheduled for removal in 3.0.0.
|
|
143
|
+
*/
|
|
144
|
+
setBackgroundMode(_backgroundMode) {}
|
|
123
145
|
setDsEnabled(enabled) {
|
|
124
146
|
this.dsEnabled_ = enabled;
|
|
125
147
|
}
|
|
148
|
+
/** The JS-side deepsight flag, for callers that replay it into the kit themselves. */
|
|
149
|
+
getDsEnabled() {
|
|
150
|
+
return this.dsEnabled_;
|
|
151
|
+
}
|
|
126
152
|
getCheck() {
|
|
127
153
|
const utilityApi = this.runtime.requireUtilityApi("Unable to get check, cpp API hasn't been initialized");
|
|
128
154
|
noteUnlockedCallStart("getCheck");
|
|
@@ -146,6 +172,16 @@ var UtilityWasmApi = class {
|
|
|
146
172
|
this.runtime.requireUtilityApi("Unable to sbc, cpp API hasn't been initialized").sbc(enabled);
|
|
147
173
|
}
|
|
148
174
|
/**
|
|
175
|
+
* Capture-metadata format selector (`smv`, ml-wasm-kit v2.14.54-pre6):
|
|
176
|
+
* `true` selects the v2 document, `false` the v1 document (the module
|
|
177
|
+
* default). Guarded like upstream; the selection is latched on the runtime
|
|
178
|
+
* so it survives re-initialization (ADR 0009 §6).
|
|
179
|
+
*/
|
|
180
|
+
smv(enabled) {
|
|
181
|
+
this.runtime.requireUtilityApi("Unable to smv, cpp API hasn't been initialized");
|
|
182
|
+
this.runtime.setMetadataV2Enabled(enabled);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
149
185
|
* Reads one fingerprint signal bucket (see {@link SignalDataType}), encrypted
|
|
150
186
|
* by the native module. Waits for the one-time async prefetch (`ppf`) first.
|
|
151
187
|
* An empty string means the bucket has no data.
|
|
@@ -184,13 +220,15 @@ var UtilityWasmApi = class {
|
|
|
184
220
|
});
|
|
185
221
|
return promise;
|
|
186
222
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
223
|
+
/**
|
|
224
|
+
* @deprecated Resolves without doing anything. ml-wasm-kit v2.14.52 removed
|
|
225
|
+
* `prc`: the pre-capture check runs inside the protected camera step
|
|
226
|
+
* (`ICameraCycleCapability.startCameraCycle`), which holds the ML semaphore
|
|
227
|
+
* for it, so a caller that still awaits `prc()` before `poc()` loses
|
|
228
|
+
* nothing. Scheduled for removal in 3.0.0.
|
|
229
|
+
*/
|
|
230
|
+
prc() {
|
|
231
|
+
return Promise.resolve();
|
|
194
232
|
}
|
|
195
233
|
async poc(output) {
|
|
196
234
|
const message = "Unable to poc, cpp API hasn't been initialized";
|
|
@@ -272,6 +310,10 @@ var BaseWasmProvider = class {
|
|
|
272
310
|
*/
|
|
273
311
|
async initializeBase(config, pipeline) {
|
|
274
312
|
if (this._isInitialized) return;
|
|
313
|
+
if (this.pipelineType === void 0 && wasmRuntime.isInitialized()) {
|
|
314
|
+
this._isInitialized = true;
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
275
317
|
const status = getWasmStatus();
|
|
276
318
|
if (status.isLoading || isWasmReady() || status.error) {
|
|
277
319
|
if (!(status.isLoading && status.loadedPipelines.includes(pipeline))) await waitForWasm();
|
|
@@ -385,15 +427,21 @@ var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
|
|
|
385
427
|
this.ensureInitialized();
|
|
386
428
|
utilityWasmApi.setMotionStatus(status);
|
|
387
429
|
}
|
|
430
|
+
/**
|
|
431
|
+
* @deprecated Native-free no-op since ml-wasm-kit v2.14.54; scheduled for
|
|
432
|
+
* removal in 3.0.0. Like the other shims it never requires initialization.
|
|
433
|
+
*/
|
|
388
434
|
setBackgroundMode(backgroundMode) {
|
|
389
|
-
this.ensureInitialized();
|
|
390
435
|
utilityWasmApi.setBackgroundMode(backgroundMode);
|
|
391
436
|
}
|
|
392
437
|
setOnDeviceMode(enabled) {
|
|
393
438
|
wasmRuntime.setOnDeviceMode(enabled);
|
|
394
439
|
}
|
|
440
|
+
/**
|
|
441
|
+
* @deprecated Native-free no-op since ml-wasm-kit v2.14.54; scheduled for
|
|
442
|
+
* removal in 3.0.0. Like the other shims it never requires initialization.
|
|
443
|
+
*/
|
|
395
444
|
setZc(zc) {
|
|
396
|
-
this.ensureInitialized();
|
|
397
445
|
utilityWasmApi.setZc(zc);
|
|
398
446
|
}
|
|
399
447
|
setInspectorOpened(opened) {
|
|
@@ -448,8 +496,13 @@ var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
|
|
|
448
496
|
isVirtualCamera(label) {
|
|
449
497
|
return utilityWasmApi.isVirtualCamera(label);
|
|
450
498
|
}
|
|
499
|
+
/**
|
|
500
|
+
* @deprecated Resolves without doing anything since ml-wasm-kit v2.14.52:
|
|
501
|
+
* the pre-capture check runs inside the protected camera step, so existing
|
|
502
|
+
* `prc()` then `poc()` call sites keep working. Scheduled for removal in
|
|
503
|
+
* 3.0.0.
|
|
504
|
+
*/
|
|
451
505
|
async prc() {
|
|
452
|
-
this.ensureInitialized();
|
|
453
506
|
await utilityWasmApi.prc();
|
|
454
507
|
}
|
|
455
508
|
async poc(output) {
|