@incodetech/core 2.4.0 → 2.4.1-agentic.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
- package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -744
- package/dist/{FaceDetectionProvider-DcPOC2gS.esm.js → FaceDetectionProvider-CAY43vSI.esm.js} +28 -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/MultipartRecordingProvider-D9mauUdS.esm.js +146 -0
- 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/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-Dp2V-Uct.esm.js} +75 -22
- package/dist/WorkerEncoderRecordingProvider-B1ODYtgN.esm.js +80 -0
- package/dist/addressSearch-DzbE9Ogt.esm.js +254 -0
- 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-BObuHBjn.esm.js} +2 -2
- package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-Dfrd2-26.esm.js} +1 -1
- package/dist/{api-Cz90EHyu.esm.js → api-CpP4PS4S.esm.js} +8 -5
- package/dist/{apiError-DPwFas2f.esm.js → apiError-DH-CH4Nz.esm.js} +1 -1
- package/dist/attemptCarry-WOkfvFMw.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-CWmh7aSY.d.ts} +1 -1
- package/dist/{authenticationManager-2Lr5V_7p.esm.js → authenticationManager-DjX0XDyH.esm.js} +5 -5
- package/dist/{authenticationStateMachine-C99B0GFP.esm.js → authenticationStateMachine-BMbZL8wm.esm.js} +3 -3
- package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
- package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-DS1oDiUq.esm.js} +12 -107
- 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.d.ts +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-C1nETQos.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-DThXMDqr.esm.js} +2 -2
- package/dist/cnpj-Co1ottYN.esm.js +77 -0
- package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-DMlSL6Ax.esm.js} +4 -3
- package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-bjfVXO7p.d.ts} +9 -2
- package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-DIYSMxKQ.esm.js} +20 -7
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-BFTdiEDB.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-DNpC3wyf.esm.js} +3 -2
- package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-z8428oCM.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-B3iVsDyt.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-CvI-pDT3.esm.js} +2 -2
- package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-BuHtUb0y.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-CiVD9wyF.esm.js} +1 -1
- package/dist/{deepsightService-CKTYDIXD.esm.js → deepsightLoader-B7DEYoyY.esm.js} +40 -74
- package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BGMtYwk3.esm.js} +177 -40
- package/dist/device.esm.js +2 -2
- package/dist/document-capture.d.ts +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-CD5iQiUI.d.ts} +37 -4
- package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-DLPqruXJ.esm.js} +27 -19
- package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-DCvWQhFG.esm.js} +105 -56
- 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-DiKYjcF3.esm.js → dynamicFormsManager-DfqCEPg9.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-DEI45xYW.esm.js → dynamicFormsStateMachine-USQMB-uV.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-BLOkwmWO.d.ts} +2 -2
- package/dist/{ekybManager-8WLkNcqg.esm.js → ekybManager-CR8YSYux.esm.js} +2 -2
- package/dist/{ekybStateMachine-BLRT45Ex.esm.js → ekybStateMachine-kHwdz6hm.esm.js} +28 -44
- package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
- package/dist/ekyc.d.ts +4 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-DlGIn9wA.d.ts} +2 -1
- package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-DymCvmVB.esm.js} +2 -2
- package/dist/ekycStateMachine-CoFCUJ2z.esm.js +7578 -0
- package/dist/ekycUtils-GRuMELYr.esm.js +1472 -0
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-CcIMOb_Y.esm.js → electronicSignatureManager-BCE3uA3z.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-ButFktRm.esm.js → emailManager-CGoE3CUe.esm.js} +2 -2
- package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-KgHfDNvM.esm.js} +32 -20
- package/dist/{events-Du2A4-Qr.esm.js → events-ggpBBaZ8.esm.js} +2 -2
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +37 -22
- package/dist/extensibility.esm.js +36 -35
- 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-DV2ULUYS.d.ts} +71 -66
- package/dist/{faceCaptureManagerFactory-BlGvXzXA.esm.js → faceCaptureManagerFactory-Dp90bedH.esm.js} +4 -4
- package/dist/{faceCaptureSetup-TY8RXc2N.esm.js → faceCaptureSetup-ZfiWg0fo.esm.js} +84 -457
- package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-D2xKPjjQ.esm.js} +2 -2
- package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
- package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-CUvwiQi9.esm.js} +40 -27
- package/dist/{feature-management-B5rR10uS.esm.js → feature-management-BbCIA4og.esm.js} +35 -21
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-DgDbEeFZ.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-BZeklojR.esm.js} +4 -4
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +10 -10
- package/dist/flow.esm.js +10 -9
- package/dist/{flowCompletionService-BDI5QpfR.esm.js → flowCompletionService-CcCnPs_T.esm.js} +2 -2
- package/dist/{flowServices-roD0oIQL.esm.js → flowServices-Dmnc8Rye.esm.js} +69 -185
- 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-DnONzWL5.esm.js → geolocationManager-BJJ3m_I8.esm.js} +6 -8
- package/dist/{geolocationStateMachine-eWy_G4Os.esm.js → geolocationStateMachine-CTI3m4Ie.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-CjChjZ3C.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-AEbn3Afi.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.d.ts +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 +10 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -16
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-Dszuq9ng.esm.js} +3 -3
- package/dist/{idCaptureManager-BrfYjCm_.esm.js → idCaptureManager-B3oR4RnA.esm.js} +64 -17
- package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-CCA2D1Ah.d.ts} +68 -5
- package/dist/{idCaptureServices-BSj6EH2l.esm.js → idCaptureServices-DK0QboqT.esm.js} +29 -198
- package/dist/{idCaptureStateMachine-dXKBYHQp.esm.js → idCaptureStateMachine-zzar9MPy.esm.js} +914 -536
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-BTdHlJ9D.d.ts} +1 -1
- package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-xyEZNOBa.esm.js} +2 -2
- package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-DNKXh4Rn.esm.js} +2 -2
- package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-DdnvYfgN.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DtIBCa32.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-CcpovlfD.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-DxZFWy47.esm.js} +1 -1
- package/dist/{index-CKQ9QBZP.d.ts → index-DC0P2Vzw.d.ts} +1 -1
- package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-BJ0GVHGr.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +3 -0
- package/dist/kyb-checks.esm.js +3 -0
- package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
- package/dist/kybChecksManager-DpGOp4Su.esm.js +89 -0
- package/dist/kybChecksStateMachine-B43NAnv7.esm.js +718 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-B4vCYslr.esm.js} +4 -3
- package/dist/{mandatoryConsentManager-BQ43yndC.d.ts → mandatoryConsentManager-B88Sm5nd.d.ts} +10 -3
- package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-DWslYPA3.esm.js} +20 -7
- package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
- package/dist/multipartRecordingService-BTqkHGG9.esm.js +407 -0
- package/dist/nationalIds-B91f_RuB.esm.js +99 -0
- package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-DFV-Ws0a.esm.js} +1 -1
- package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-D190ATGD.esm.js} +11 -9
- 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/phoneFormat-JJNaWthV.esm.js +75 -0
- package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
- package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-Dy5tODCU.esm.js} +3 -3
- package/dist/phoneServices-DJgyOzU2.esm.js +77 -0
- package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-DnlPhnw7.esm.js} +54 -82
- 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-Bst83HaS.esm.js +21 -0
- package/dist/qe-signature.esm.js +1 -1
- package/dist/recordingService-CTko6Cjn.esm.js +397 -0
- 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-CgGaT2NP.esm.js} +5 -4
- package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
- package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-CbhN8uVN.esm.js} +65 -26
- package/dist/resolveForm-O7-r79VA.esm.js +351 -0
- package/dist/{runChildModule-BF_atgNx.esm.js → runChildModule-BffFArwl.esm.js} +3 -3
- package/dist/{sdkVersion-CsIbltJF.esm.js → sdkVersion-CDd_gaR7.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-BY0-YbPW.esm.js → selfieErrorUtils-f4MgAG2A.esm.js} +1 -1
- package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-DmZFzs1-.d.ts} +1 -1
- package/dist/{selfieManager-vAAwzsHk.esm.js → selfieManager-hopelYEk.esm.js} +5 -5
- package/dist/{selfieStateMachine-BFVp3ElQ.esm.js → selfieStateMachine-DaZIVv3Q.esm.js} +3 -3
- package/dist/{session-CpwfoVdH.esm.js → session-CdSX4wsZ.esm.js} +77 -9
- package/dist/session.d.ts +96 -10
- package/dist/session.esm.js +7 -6
- package/dist/{sessionInitializer-BTjYgE-V.esm.js → sessionInitializer-DsL7X2j9.esm.js} +465 -206
- package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
- package/dist/{setup-BInNAvQw.esm.js → setup-DDahygZs.esm.js} +44 -30
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-CwqjcxPg.esm.js} +2 -2
- package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-DBVDd1Eu.esm.js} +1 -1
- package/dist/{stats-BEvexnKC.esm.js → stats-CatA2dea.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/textRules-D4NRinKY.d.ts +41 -0
- package/dist/{tri-xzRLIIMN.esm.js → tri-DG6priFa.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-BMT-TubT.esm.js → trueSightService-GuLthUVK.esm.js} +19 -10
- package/dist/trust-graph.esm.js +1 -1
- package/dist/types-B9C8W01q.d.ts +34 -0
- package/dist/{types-yPH8lAH-.d.ts → types-BEVHQbbC.d.ts} +2 -2
- package/dist/{types-BAxn7MpY.d.ts → types-BPm1JSu7.d.ts} +123 -48
- package/dist/{types-0L-eFDmr.d.ts → types-BgRHw-dR.d.ts} +1 -1
- package/dist/{types-B6HsSzpk.d.ts → types-CRaFu6wS.d.ts} +6 -3
- package/dist/types-CTaL0XJz.d.ts +80 -0
- package/dist/{types-Ckir_BEs.d.ts → types-Cd0J0F9D.d.ts} +1 -1
- package/dist/{types-CK8Jbjkp.d.ts → types-Csh8vzPo.d.ts} +1 -1
- package/dist/types-CuMJ2M7D.d.ts +210 -0
- package/dist/{types-DUnFZ08M.d.ts → types-CyNndVAT.d.ts} +16 -8
- package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
- package/dist/types-J6g6iKe_.d.ts +6 -0
- 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 +97 -22
- package/dist/{videoSelfieCameraWarmer-D1xA0u8y.esm.js → videoSelfieCameraWarmer-e3irGfcO.esm.js} +18 -21
- package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-Dv3Mgws-.d.ts} +9 -4
- package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
- package/dist/{warmup-BElYWRh7.esm.js → warmup-DtB0DJpl.esm.js} +198 -27
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BtiR5pig.esm.js} +1 -1
- package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
- package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-BDrax6Eu.esm.js} +55 -26
- 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-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
- package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-DqUpAEj_.esm.js} +37 -7
- package/dist/watchlistForBusinessStateMachine-DdaPl2PS.esm.js +166 -0
- package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-CdpXzT4B.esm.js} +2 -2
- package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-ofHW_lPk.esm.js} +1 -1
- package/dist/workflow.d.ts +5 -2
- package/dist/workflow.esm.js +60 -50
- package/package.json +12 -5
- package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
- package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
- package/dist/deepsightLoader-DeNvGU3c.esm.js +0 -55
- 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-DcPOC2gS.esm.js → FaceDetectionProvider-CAY43vSI.esm.js}
RENAMED
|
@@ -1,17 +1,15 @@
|
|
|
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-DtB0DJpl.esm.js";
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-DDahygZs.esm.js";
|
|
3
|
+
import { r as BaseWasmProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
|
|
4
|
+
import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
5
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-GuLthUVK.esm.js";
|
|
6
|
+
import "./sessionInitializer-DsL7X2j9.esm.js";
|
|
7
|
+
import { t as addDeviceStats } from "./stats-CatA2dea.esm.js";
|
|
10
8
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import "./
|
|
14
|
-
import {
|
|
9
|
+
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
10
|
+
import { r as hasBackCamera } from "./backCameraStream-DS1oDiUq.esm.js";
|
|
11
|
+
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
12
|
+
import { n as saveProcessFaceMatch } from "./processFaceMatch-Bst83HaS.esm.js";
|
|
15
13
|
//#region src/internal/faceCapture/onDeviceFaceResults.ts
|
|
16
14
|
/**
|
|
17
15
|
* On-device still-face capture is owned by the protected camera-cycle actor.
|
|
@@ -126,64 +124,30 @@ const getFaceErrorCodeFromHttpError = (error) => {
|
|
|
126
124
|
return getFaceUploadErrorCode(err.status, typeof err.data?.status === "number" ? err.data.status : void 0);
|
|
127
125
|
};
|
|
128
126
|
async function processFace(imageType = "selfie", signal) {
|
|
129
|
-
|
|
127
|
+
const response = await api.post(endpoints.processFace, {}, {
|
|
130
128
|
query: { imageType },
|
|
131
129
|
signal
|
|
132
|
-
})
|
|
130
|
+
});
|
|
131
|
+
if (imageType === "selfie") saveProcessFaceMatch(response.data?.success);
|
|
132
|
+
return response.data;
|
|
133
133
|
}
|
|
134
134
|
//#endregion
|
|
135
135
|
//#region src/internal/faceCapture/faceCaptureServices.ts
|
|
136
136
|
function sendLabelInspectionEvent() {
|
|
137
137
|
return addDeviceStats({ cameraLabelInspectionStatus: "FAIL" });
|
|
138
138
|
}
|
|
139
|
-
|
|
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;
|
|
139
|
+
/**
|
|
140
|
+
* Camera-free preparation for one protected face attempt: warms the WASM
|
|
141
|
+
* pipeline the attempt will run and decides which lens to request. Since
|
|
142
|
+
* ml-wasm-kit v2.14.52 the kit acquires the camera itself inside the
|
|
143
|
+
* protected camera step (`ICameraCycleCapability.startCameraCycle`), so no
|
|
144
|
+
* camera opens here. Runs once per
|
|
145
|
+
* attempt — from the tutorial pre-acquire when there is one, otherwise at
|
|
146
|
+
* attempt start.
|
|
147
|
+
*/
|
|
148
|
+
async function probeFaceCamera(config) {
|
|
176
149
|
await ensureWasmPipelines([isOnDeviceMode(config) ? "onDeviceSelfie" : "selfie"]);
|
|
177
|
-
|
|
178
|
-
const backCamera = usingBackCamera ? await getBackCameraStream() : void 0;
|
|
179
|
-
const stream = backCamera?.stream ?? await getFrontCameraStream(config.cameraResolution);
|
|
180
|
-
const constraints = getCameraReacquisitionConstraints(stream.getVideoTracks()[0], backCamera?.constraints);
|
|
181
|
-
return {
|
|
182
|
-
stream,
|
|
183
|
-
provider: params.provider,
|
|
184
|
-
usingBackCamera,
|
|
185
|
-
constraints
|
|
186
|
-
};
|
|
150
|
+
return { usingBackCamera: config.assistedOnboarding === true && await hasBackCamera() };
|
|
187
151
|
}
|
|
188
152
|
/**
|
|
189
153
|
* Encrypts the provided selfie image using WASM.
|
|
@@ -271,7 +235,7 @@ function startDetection(params) {
|
|
|
271
235
|
};
|
|
272
236
|
}
|
|
273
237
|
async function initializeDeepsightSession(options) {
|
|
274
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
238
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-B7DEYoyY.esm.js");
|
|
275
239
|
return loadDeepsightSession({
|
|
276
240
|
ds: options.ds,
|
|
277
241
|
storage: options.storage
|
|
@@ -543,4 +507,4 @@ var FaceDetectionProvider = class extends BaseWasmProvider {
|
|
|
543
507
|
}
|
|
544
508
|
};
|
|
545
509
|
//#endregion
|
|
546
|
-
export { sendLabelInspectionEvent as a,
|
|
510
|
+
export { sendLabelInspectionEvent as a, uploadSelfie as c, isOnDeviceMode as d, probeFaceCamera as i, getFaceUploadErrorCode as l, encryptSelfieImage as n, startDetection as o, initializeDeepsightSession as r, processFace as s, FaceDetectionProvider as t, FACE_ERROR_CODES as u };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
|
|
2
|
+
function getTimestamp() {
|
|
3
|
+
return Date.now();
|
|
4
|
+
}
|
|
5
|
+
/** Today in the user's calendar, as an ISO `YYYY-MM-DD` date. */
|
|
6
|
+
function getLocalIsoDate() {
|
|
7
|
+
const now = /* @__PURE__ */ new Date();
|
|
8
|
+
const month = String(now.getMonth() + 1).padStart(2, "0");
|
|
9
|
+
const day = String(now.getDate()).padStart(2, "0");
|
|
10
|
+
return `${now.getFullYear()}-${month}-${day}`;
|
|
11
|
+
}
|
|
12
|
+
function revokeObjectURL(url) {
|
|
13
|
+
URL.revokeObjectURL(url);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { getTimestamp as n, revokeObjectURL as r, getLocalIsoDate as t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region ../infra/src/capabilities/IGeolocationCapability.d.ts
|
|
2
|
+
type GeolocationCoords = {
|
|
3
|
+
latitude: number;
|
|
4
|
+
longitude: number;
|
|
5
|
+
};
|
|
6
|
+
type IGeolocationCapability = {
|
|
7
|
+
getCurrentPosition(): Promise<GeolocationCoords>;
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { IGeolocationCapability as n, GeolocationCoords as t };
|
|
@@ -33,6 +33,12 @@ interface IStorageCapability {
|
|
|
33
33
|
type WasmUtilConfig = MLProviderConfig & {
|
|
34
34
|
pipelines?: WasmPipeline[];
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* Output object handed to {@link IWasmUtilCapability.poc}. Since ml-wasm-kit
|
|
38
|
+
* v2.14.53 the native check writes nothing into it (`itr` and `skipped` stay
|
|
39
|
+
* as the caller left them): the post-capture verdicts travel only in the
|
|
40
|
+
* signed capture metadata. Kept for the binding's arity.
|
|
41
|
+
*/
|
|
36
42
|
type VirtualCameraCheckOutput = {
|
|
37
43
|
canvas: HTMLCanvasElement | null;
|
|
38
44
|
itr: boolean | null;
|
|
@@ -66,6 +72,11 @@ type IWasmUtilCapability = {
|
|
|
66
72
|
setBrowserInfo(browserInfo: object, overrideExisting?: boolean): void;
|
|
67
73
|
setCameraInfo(cameraInfo: object, overrideExisting?: boolean): void;
|
|
68
74
|
setMotionStatus(status: string): void;
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated Native-free no-op since ml-wasm-kit v2.14.54, which removed
|
|
77
|
+
* the binding: the kit's own visibility observers record background time.
|
|
78
|
+
* Scheduled for removal in 3.0.0.
|
|
79
|
+
*/
|
|
69
80
|
setBackgroundMode(backgroundMode: boolean): void;
|
|
70
81
|
/**
|
|
71
82
|
* @deprecated Compatibility-only no-op since ml-wasm-kit v2.14.49-post1.
|
|
@@ -77,6 +88,11 @@ type IWasmUtilCapability = {
|
|
|
77
88
|
* for client-side gating.
|
|
78
89
|
*/
|
|
79
90
|
setOnDeviceMode(enabled: boolean): void;
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated Native-free no-op since ml-wasm-kit v2.14.54, which removed
|
|
93
|
+
* the binding: the zoom check is gone and `iad.zc` is the constant `PASS`.
|
|
94
|
+
* Scheduled for removal in 3.0.0.
|
|
95
|
+
*/
|
|
80
96
|
setZc(zc: string): void;
|
|
81
97
|
setInspectorOpened(opened: boolean): void;
|
|
82
98
|
/**
|
|
@@ -112,18 +128,29 @@ type IWasmUtilCapability = {
|
|
|
112
128
|
getCheck(): string;
|
|
113
129
|
/**
|
|
114
130
|
* Gets the current pipeline state. Must be called before setMotionStatus(),
|
|
115
|
-
* getCheck(),
|
|
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;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { n as getMultipartRecorderMimeType } from "./mediaRecorderOptions-B9-IEVtV.esm.js";
|
|
2
|
+
//#region ../infra/src/providers/browser/MultipartRecordingProvider.ts
|
|
3
|
+
/**
|
|
4
|
+
* How often `MediaRecorder` hands us buffered data (incremental blobs).
|
|
5
|
+
* 500 ms keeps each blob — and therefore each upload chunk — small: less
|
|
6
|
+
* tail lost when a session is interrupted, and a smaller first blob (init
|
|
7
|
+
* header + keyframe), which is the largest and most timeout-prone chunk.
|
|
8
|
+
* Not lower: request rate doubles per halving, and browsers stop honoring
|
|
9
|
+
* very small timeslices reliably.
|
|
10
|
+
*/
|
|
11
|
+
const TIMESLICE_MS = 500;
|
|
12
|
+
/**
|
|
13
|
+
* Encoder target for the full video-selfie session. Higher than the
|
|
14
|
+
* short-clip liveness path (0.5–1 Mbps) so a multi-minute session keeps
|
|
15
|
+
* usable quality. It's a ceiling — a still scene still encodes well below it.
|
|
16
|
+
*/
|
|
17
|
+
const VIDEO_BITS_PER_SECOND = 25e5;
|
|
18
|
+
/**
|
|
19
|
+
* Records a stream and emits every `MediaRecorder` timeslice blob as its own
|
|
20
|
+
* part, in order. Each blob is a whole container fragment (WebM cluster /
|
|
21
|
+
* fMP4 `moof`+`mdat`), which is the property the video-selfie-service's
|
|
22
|
+
* gap-splicing depends on — parts must never cut a fragment at a byte
|
|
23
|
+
* offset. The service stages sub-5 MiB chunks and combines them server-side,
|
|
24
|
+
* so emitting the smallest whole-fragment unit (~0.5 s of video) maximizes
|
|
25
|
+
* what an interrupted session can salvage.
|
|
26
|
+
*
|
|
27
|
+
* Page-lifecycle orchestration lives in Core: it pauses this recorder before a
|
|
28
|
+
* backgrounded camera can stall, restores the camera/compositor, and only then
|
|
29
|
+
* resumes this same media container.
|
|
30
|
+
*/
|
|
31
|
+
var MultipartRecordingProvider = class {
|
|
32
|
+
constructor() {
|
|
33
|
+
this.mediaRecorder = null;
|
|
34
|
+
this._isRecording = false;
|
|
35
|
+
this._hasError = false;
|
|
36
|
+
this._error = null;
|
|
37
|
+
this.mimeType = "";
|
|
38
|
+
this.partNumber = 0;
|
|
39
|
+
this.onPart = null;
|
|
40
|
+
}
|
|
41
|
+
get isRecording() {
|
|
42
|
+
return this._isRecording;
|
|
43
|
+
}
|
|
44
|
+
get hasError() {
|
|
45
|
+
return this._hasError;
|
|
46
|
+
}
|
|
47
|
+
get error() {
|
|
48
|
+
return this._error;
|
|
49
|
+
}
|
|
50
|
+
startRecording(stream, onPart) {
|
|
51
|
+
this.reset();
|
|
52
|
+
this.partNumber = 0;
|
|
53
|
+
this.onPart = onPart;
|
|
54
|
+
try {
|
|
55
|
+
this.mimeType = getMultipartRecorderMimeType();
|
|
56
|
+
const recorder = new MediaRecorder(stream.clone(), {
|
|
57
|
+
mimeType: this.mimeType,
|
|
58
|
+
videoBitsPerSecond: VIDEO_BITS_PER_SECOND
|
|
59
|
+
});
|
|
60
|
+
recorder.ondataavailable = (event) => {
|
|
61
|
+
if (event.data.size > 0 && this.onPart) {
|
|
62
|
+
this.partNumber += 1;
|
|
63
|
+
this.onPart({
|
|
64
|
+
chunk: event.data,
|
|
65
|
+
partNumber: this.partNumber
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
recorder.onerror = (event) => {
|
|
70
|
+
const detail = event instanceof ErrorEvent && event.error instanceof Error ? event.error.message : event.type;
|
|
71
|
+
this._error = `Recording error: ${detail}`;
|
|
72
|
+
this._isRecording = false;
|
|
73
|
+
this._hasError = true;
|
|
74
|
+
};
|
|
75
|
+
recorder.start(TIMESLICE_MS);
|
|
76
|
+
this.mediaRecorder = recorder;
|
|
77
|
+
this._isRecording = true;
|
|
78
|
+
this._error = null;
|
|
79
|
+
this._hasError = false;
|
|
80
|
+
} catch (err) {
|
|
81
|
+
const detail = err instanceof Error ? err.message : String(err);
|
|
82
|
+
this._error = `Failed to start recording: ${detail}`;
|
|
83
|
+
this._hasError = true;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
pauseRecording() {
|
|
87
|
+
const recorder = this.mediaRecorder;
|
|
88
|
+
if (!recorder || !this._isRecording || this._hasError) return false;
|
|
89
|
+
if (recorder.state === "paused") return true;
|
|
90
|
+
if (recorder.state !== "recording") return false;
|
|
91
|
+
try {
|
|
92
|
+
recorder.pause();
|
|
93
|
+
return true;
|
|
94
|
+
} catch (err) {
|
|
95
|
+
const detail = err instanceof Error ? err.message : String(err);
|
|
96
|
+
this._error = `Failed to pause recording: ${detail}`;
|
|
97
|
+
this._hasError = true;
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
resumeRecording() {
|
|
102
|
+
const recorder = this.mediaRecorder;
|
|
103
|
+
if (!recorder || !this._isRecording || this._hasError) return false;
|
|
104
|
+
if (recorder.state === "recording") return true;
|
|
105
|
+
if (recorder.state !== "paused") return false;
|
|
106
|
+
try {
|
|
107
|
+
recorder.resume();
|
|
108
|
+
return true;
|
|
109
|
+
} catch (err) {
|
|
110
|
+
const detail = err instanceof Error ? err.message : String(err);
|
|
111
|
+
this._error = `Failed to resume recording: ${detail}`;
|
|
112
|
+
this._hasError = true;
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
stopRecording() {
|
|
117
|
+
const recorder = this.mediaRecorder;
|
|
118
|
+
return new Promise((resolve) => {
|
|
119
|
+
if (recorder && this._isRecording) {
|
|
120
|
+
recorder.onstop = () => {
|
|
121
|
+
resolve();
|
|
122
|
+
};
|
|
123
|
+
recorder.stop();
|
|
124
|
+
this._isRecording = false;
|
|
125
|
+
} else resolve();
|
|
126
|
+
recorder?.stream?.getTracks().forEach((track) => track.stop());
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
reset() {
|
|
130
|
+
const recorder = this.mediaRecorder;
|
|
131
|
+
if (recorder) {
|
|
132
|
+
recorder.ondataavailable = null;
|
|
133
|
+
recorder.onerror = null;
|
|
134
|
+
recorder.onstop = null;
|
|
135
|
+
if (recorder.state !== "inactive") recorder.stop();
|
|
136
|
+
recorder.stream.getTracks().forEach((track) => track.stop());
|
|
137
|
+
this.mediaRecorder = null;
|
|
138
|
+
}
|
|
139
|
+
this.onPart = null;
|
|
140
|
+
this._isRecording = false;
|
|
141
|
+
this._error = null;
|
|
142
|
+
this._hasError = false;
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
//#endregion
|
|
146
|
+
export { MultipartRecordingProvider as t };
|
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>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//#region ../infra/src/media/StreamCanvasProcessingSession.ts
|
|
2
|
+
var StreamCanvasProcessingSession = class {
|
|
3
|
+
/**
|
|
4
|
+
* Creates a processing session that reacts to `StreamCanvasCapture` frame events
|
|
5
|
+
* and drives a provider's `processFrame()` method with backpressure.
|
|
6
|
+
*/
|
|
7
|
+
constructor(params) {
|
|
8
|
+
this.disposed = false;
|
|
9
|
+
this.isProcessing = false;
|
|
10
|
+
this.onFrameEvent = () => {
|
|
11
|
+
if (this.disposed || this.isProcessing) return;
|
|
12
|
+
const frame = this.capturer.getLatestFrame();
|
|
13
|
+
if (!frame) return;
|
|
14
|
+
this.onFrame?.(frame);
|
|
15
|
+
this.isProcessing = true;
|
|
16
|
+
this.provider.processFrame(frame).catch(() => {}).finally(() => {
|
|
17
|
+
this.isProcessing = false;
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
this.capturer = params.capturer;
|
|
21
|
+
this.provider = params.provider;
|
|
22
|
+
this.onFrame = params.onFrame;
|
|
23
|
+
this.capturer.addEventListener("frame", this.onFrameEvent);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Unsubscribes from frame events and resets the provider.
|
|
27
|
+
*/
|
|
28
|
+
dispose() {
|
|
29
|
+
if (this.disposed) return;
|
|
30
|
+
this.disposed = true;
|
|
31
|
+
this.capturer.removeEventListener("frame", this.onFrameEvent);
|
|
32
|
+
this.provider.reset();
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Returns whether the session has been disposed.
|
|
36
|
+
*/
|
|
37
|
+
isDisposed() {
|
|
38
|
+
return this.disposed;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { StreamCanvasProcessingSession as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
-
import { c as wasmCallWrapper, d as noteUnlockedCallStart, s as ML_CALL_MAX_POLLS, u as noteUnlockedCallEnd } from "./wasmWebClient-
|
|
3
|
-
import {
|
|
2
|
+
import { c as wasmCallWrapper, d as noteUnlockedCallStart, s as ML_CALL_MAX_POLLS, u as noteUnlockedCallEnd } from "./wasmWebClient-BDrax6Eu.esm.js";
|
|
3
|
+
import { i as isWasmReady, l as wasmRuntime, o as waitForWasm, r as getWasmStatus, s as warmupWasm } from "./warmup-DtB0DJpl.esm.js";
|
|
4
4
|
//#region ../infra/src/wasm/utilityWasmApi.ts
|
|
5
5
|
/**
|
|
6
6
|
* Utility / metadata domain facade over {@link WasmRuntime}.
|
|
@@ -10,7 +10,8 @@ import { c as wasmRuntime, i as isWasmReady, o as waitForWasm, r as getWasmStatu
|
|
|
10
10
|
* persist and that must be replayed into it at call time —
|
|
11
11
|
*
|
|
12
12
|
* - `dsEnabled_` (deepsight) is passed as an argument on every
|
|
13
|
-
* `
|
|
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) {
|