@incodetech/core 2.4.0 → 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-DcPOC2gS.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-DPwFas2f.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-2Lr5V_7p.esm.js → authenticationManager-DvmklBTE.esm.js} +5 -5
- package/dist/{authenticationStateMachine-C99B0GFP.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-DeNvGU3c.esm.js → deepsightLoader-DMxtowCm.esm.js} +6 -28
- package/dist/{deepsightService-CKTYDIXD.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-DiKYjcF3.esm.js → dynamicFormsManager-DU6W1e20.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-DEI45xYW.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-8WLkNcqg.esm.js → ekybManager-TGfqyjuu.esm.js} +2 -2
- package/dist/{ekybStateMachine-BLRT45Ex.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-CcIMOb_Y.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 +34 -20
- 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-BlGvXzXA.esm.js → faceCaptureManagerFactory-CBm05KnT.esm.js} +4 -4
- package/dist/{faceCaptureSetup-TY8RXc2N.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-B5rR10uS.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-BDI5QpfR.esm.js → flowCompletionService-ChMU2v79.esm.js} +2 -2
- package/dist/{flowServices-roD0oIQL.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-DnONzWL5.esm.js → geolocationManager-DLbvZwUB.esm.js} +6 -8
- package/dist/{geolocationStateMachine-eWy_G4Os.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-BrfYjCm_.esm.js → idCaptureManager-zZdTcpG1.esm.js} +63 -17
- package/dist/{idCaptureServices-BSj6EH2l.esm.js → idCaptureServices-8OHinO0N.esm.js} +9 -9
- package/dist/{idCaptureStateMachine-dXKBYHQp.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.esm.js +2 -2
- package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-DDXkNVZi.esm.js} +2 -2
- 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-BQ43yndC.d.ts → mandatoryConsentManager-xx3mY-xw.d.ts} +11 -4
- 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-BF_atgNx.esm.js → runChildModule-DPHTqSdF.esm.js} +3 -3
- package/dist/{sdkVersion-CsIbltJF.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-BY0-YbPW.esm.js → selfieErrorUtils-BL0BLMnp.esm.js} +1 -1
- package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-BMmpUii2.d.ts} +1 -1
- package/dist/{selfieManager-vAAwzsHk.esm.js → selfieManager-Cbliomv7.esm.js} +5 -5
- package/dist/{selfieStateMachine-BFVp3ElQ.esm.js → selfieStateMachine-B5m_Kn0O.esm.js} +3 -3
- package/dist/{session-CpwfoVdH.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-BTjYgE-V.esm.js → sessionInitializer-CWFT4dfw.esm.js} +402 -202
- package/dist/{setup-BInNAvQw.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-BMT-TubT.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-D1xA0u8y.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 +2 -1
- 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/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-RfSmlFFW.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as FlowModuleConfig } from "./types-
|
|
2
|
-
import "./IWasmUtilCapability-
|
|
3
|
-
import { n as DetectionStatus } from "./types
|
|
1
|
+
import { i as FlowModuleConfig } from "./types-DuD8TRJU.js";
|
|
2
|
+
import "./IWasmUtilCapability-Cqiaxydi.js";
|
|
3
|
+
import { n as DetectionStatus } from "./types--3HDl2SF.js";
|
|
4
4
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
5
5
|
import { t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
|
|
6
6
|
//#region src/modules/video-selfie/types.d.ts
|
|
@@ -10,6 +10,11 @@ import { t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
|
|
|
10
10
|
* `frontId`/`backId`, `checkVoiceConsent` enables `speech`).
|
|
11
11
|
*/
|
|
12
12
|
type VideoSelfieStep = 'selfie' | 'frontId' | 'backId' | 'poa' | 'questions' | 'speech';
|
|
13
|
+
/** Speech validation verdict, or a failure to obtain a verdict. */
|
|
14
|
+
type VideoSelfieSpeechResult = {
|
|
15
|
+
success: boolean;
|
|
16
|
+
errorKind?: 'connection' | 'technical';
|
|
17
|
+
};
|
|
13
18
|
/**
|
|
14
19
|
* Public Video Selfie configuration. Mirrors the backend `VIDEO_ONBOARDING`
|
|
15
20
|
* workflow module.
|
|
@@ -215,4 +220,4 @@ type StepDetector = (params: {
|
|
|
215
220
|
registerManualCapture?: (trigger: () => void) => void;
|
|
216
221
|
}) => Promise<StepDetectionResult>;
|
|
217
222
|
//#endregion
|
|
218
|
-
export { FacingMode as a, CameraCompositor as i, VideoSelfieDetectionStatus as n, VideoSelfieConfig as o, VideoSelfieValidationFailure as r,
|
|
223
|
+
export { FacingMode as a, VideoSelfieStep as c, CameraCompositor as i, VideoSelfieDetectionStatus as n, VideoSelfieConfig as o, VideoSelfieValidationFailure as r, VideoSelfieSpeechResult as s, StepDetector as t };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
+
import { A as WASM_PIPELINE_OPTIONAL_MODEL_NAMES, E as WASM_MODEL_FILES, M as missingWasmModelError, N as resolveWasmSource, O as WASM_PIPELINE_MODELS, P as reportWasmIntegritySummary, _ as emitWasmDiagnostic, b as DEFAULT_WASM_VERSION, c as wasmCallWrapper, f as rearmWasmCallDiagnostics, h as acquireWasmStorageFallback, j as buildModelVariantSources, l as notePipelineStatePulled, m as loadWasmModule, n as createWebApiHostAdapter, p as resetWasmCallDiagnostics, w as isDefaultCdnWasmConfig, y as SemaphoreProvider } from "./wasmWebClient-DTj9auyA.esm.js";
|
|
3
|
+
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
4
|
+
import { t as bindWasmMetadataV2Applier } from "./wasmMetadataVersionSync-U8EFUr1T.esm.js";
|
|
3
5
|
//#region ../infra/src/wasm/wasmEnumMaps.ts
|
|
4
6
|
function pipelineTypeToWasmEnum(wasmModule, type) {
|
|
5
7
|
switch (type) {
|
|
@@ -63,11 +65,11 @@ function idCaptureModelTypeFromWasmEnum(wasmModule, type) {
|
|
|
63
65
|
* The mode is a property of the binary, detected at install:
|
|
64
66
|
* - `sink` — `setDiagnosticsSink` exists (v2.14.52+): batches are pushed,
|
|
65
67
|
* and finalize drains the unsent tail via `drainDiagnostics`.
|
|
66
|
-
* - `fallback` — only `getAppLogs` exists (
|
|
68
|
+
* - `fallback` — only `getAppLogs` exists (binaries before v2.14.52): the
|
|
67
69
|
* plain-text `ClientLogger::render()` grammar (optional leading
|
|
68
70
|
* `... <k> dropped`, then `+<elapsedMs> <E|W|I> <tag>: <msg>[ (xN)]`) is
|
|
69
|
-
* parsed at finalize. Nothing
|
|
70
|
-
* practice it is empty
|
|
71
|
+
* parsed at finalize. Nothing before v2.14.52 writes that logger, so in
|
|
72
|
+
* practice it is empty on those binaries.
|
|
71
73
|
* - `none` — neither binding.
|
|
72
74
|
* No TrueSight change is needed when `DEFAULT_WASM_VERSION` moves past the
|
|
73
75
|
* sensor release: the next install simply detects `sink`.
|
|
@@ -395,6 +397,45 @@ function deleteWasmHandle(firstFailure, handle) {
|
|
|
395
397
|
function releaseCameraCycleResources(stream, cameraCycleApi) {
|
|
396
398
|
return attemptCleanup(stopStreamTracks(stream), () => cameraCycleApi?.rcc());
|
|
397
399
|
}
|
|
400
|
+
/**
|
|
401
|
+
* Wraps one host callback of the camera step. The kit calls the outcome
|
|
402
|
+
* callbacks from inside the `cst` binding and the frame callbacks from its own
|
|
403
|
+
* 16 ms frame timer. A JavaScript throw out of either cannot be caught in C++,
|
|
404
|
+
* so the host's error becomes a diagnostic instead. Only the first throw per
|
|
405
|
+
* callback per step is reported, so a failing frame callback cannot flood
|
|
406
|
+
* TrueSight. An absent optional callback becomes a no-op, because the binding
|
|
407
|
+
* expects four functions and logs `cc: bad callback` otherwise.
|
|
408
|
+
*/
|
|
409
|
+
function guardCameraCycleCallback(name, callback) {
|
|
410
|
+
let reported = false;
|
|
411
|
+
return (...args) => {
|
|
412
|
+
if (callback === void 0) return;
|
|
413
|
+
try {
|
|
414
|
+
callback(...args);
|
|
415
|
+
} catch (error) {
|
|
416
|
+
if (reported) return;
|
|
417
|
+
reported = true;
|
|
418
|
+
emitWasmDiagnostic({
|
|
419
|
+
level: "warning",
|
|
420
|
+
subsystem: "camera",
|
|
421
|
+
category: "other",
|
|
422
|
+
message: `camera cycle ${name} host callback threw: ${error instanceof Error ? error.message : String(error)}`
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* The native release runs behind the ML lock, after the caller returned, so its
|
|
429
|
+
* failure can only be reported, never thrown.
|
|
430
|
+
*/
|
|
431
|
+
function reportCameraCycleReleaseFailure(error) {
|
|
432
|
+
emitWasmDiagnostic({
|
|
433
|
+
level: "warning",
|
|
434
|
+
subsystem: "camera",
|
|
435
|
+
category: "other",
|
|
436
|
+
message: `camera cycle release failed: ${error instanceof Error ? error.message : String(error)}`
|
|
437
|
+
});
|
|
438
|
+
}
|
|
398
439
|
function isWasmModelEntry(source) {
|
|
399
440
|
return typeof source === "object" && !(source instanceof ArrayBuffer) && !(source instanceof Uint8Array) && "file" in source;
|
|
400
441
|
}
|
|
@@ -412,8 +453,10 @@ var WasmRuntime = class WasmRuntime {
|
|
|
412
453
|
this.faceProcessingWasmApi = null;
|
|
413
454
|
this.cameraCycleApi = null;
|
|
414
455
|
this.webApi = null;
|
|
456
|
+
this.metadataV2Enabled_ = false;
|
|
415
457
|
this.storageFallbackLease = null;
|
|
416
458
|
this.unprotectedStream = null;
|
|
459
|
+
this.queuedCameraSteps = /* @__PURE__ */ new Set();
|
|
417
460
|
this.imageWidth_ = null;
|
|
418
461
|
this.imageHeight_ = null;
|
|
419
462
|
this.pipelines_ = null;
|
|
@@ -432,6 +475,7 @@ var WasmRuntime = class WasmRuntime {
|
|
|
432
475
|
this.workflowApiUtilities = new this.wasmModule.WorkflowApiUtilities();
|
|
433
476
|
this.utilityApi = new this.wasmModule.UtilityApi();
|
|
434
477
|
this.utilityApi.setProductionMode(module.showLogs !== true);
|
|
478
|
+
this.utilityApi.smv(this.metadataV2Enabled_);
|
|
435
479
|
installWasmDiagnosticsSink(this.utilityApi);
|
|
436
480
|
this.idCaptureWasmApi = new this.wasmModule.IdCaptureApi();
|
|
437
481
|
this.faceProcessingWasmApi = new this.wasmModule.FaceProcessingApi();
|
|
@@ -519,6 +563,7 @@ var WasmRuntime = class WasmRuntime {
|
|
|
519
563
|
if (typeof window !== "undefined") window.wasmArrayBuffer = null;
|
|
520
564
|
resetWasmCallDiagnostics();
|
|
521
565
|
resetWasmDiagnosticsSink();
|
|
566
|
+
this.cancelQueuedCameraSteps();
|
|
522
567
|
let firstFailure = releaseCameraCycleResources(stream, cameraCycleApi);
|
|
523
568
|
firstFailure = deleteWasmHandle(firstFailure, modelsBuffers);
|
|
524
569
|
firstFailure = deleteWasmHandle(firstFailure, workflowApiUtilities);
|
|
@@ -544,6 +589,21 @@ var WasmRuntime = class WasmRuntime {
|
|
|
544
589
|
if (!this.isInitialized() || pipelines === null) throw new Error("Unable to reset pipelines, cpp API hasn't been initialized");
|
|
545
590
|
for (const [type] of pipelines) this.resetPipeline(type);
|
|
546
591
|
}
|
|
592
|
+
/**
|
|
593
|
+
* Selects the capture-metadata document the kit emits (`smv`, ADR 0009):
|
|
594
|
+
* `true` = v2, `false` = v1 (the default). Unguarded on purpose: the SDK
|
|
595
|
+
* resolves the provisioning flag at session initialization, which may run
|
|
596
|
+
* before WASM is up, so the value is latched here, applied at once when a
|
|
597
|
+
* module is live and replayed by every `initialize()`. The session sets it
|
|
598
|
+
* through `wasmMetadataVersionSync.ts`, which the singleton binds to when
|
|
599
|
+
* this module loads. Never toggle it mid-session — `getMetadata`,
|
|
600
|
+
* `postFaceResults` and the protected upload each read the selection when
|
|
601
|
+
* they run, so uploads would mix formats.
|
|
602
|
+
*/
|
|
603
|
+
setMetadataV2Enabled(enabled) {
|
|
604
|
+
this.metadataV2Enabled_ = enabled;
|
|
605
|
+
this.utilityApi?.smv(enabled);
|
|
606
|
+
}
|
|
547
607
|
async process(typeOrImage, imageOrType) {
|
|
548
608
|
const legacyOrder = typeof typeOrImage !== "number";
|
|
549
609
|
const type = legacyOrder ? typeof imageOrType === "number" ? imageOrType : void 0 : typeOrImage;
|
|
@@ -641,8 +701,55 @@ var WasmRuntime = class WasmRuntime {
|
|
|
641
701
|
return this.pipelineTypeFromWasmEnum(workflowApiUtilities.getCurrentWorkflow());
|
|
642
702
|
}
|
|
643
703
|
setOnDeviceMode(_enabled) {}
|
|
644
|
-
|
|
645
|
-
|
|
704
|
+
/**
|
|
705
|
+
* Runs ml-wasm-kit's camera step: the kit acquires the camera (electing the
|
|
706
|
+
* lens from `options`), adopts the stream into the protected cycle, runs the
|
|
707
|
+
* pre-capture checks and reports through `callbacks`. Mirrors upstream
|
|
708
|
+
* `startCameraCycle` (`wasmApi.ts`): poll `cst` with a release token under
|
|
709
|
+
* the ML semaphore. The pre-capture IAD inside the step is the work `prc`
|
|
710
|
+
* used to do, and holding the lock keeps `poc`/`rsp` serialized behind it.
|
|
711
|
+
*
|
|
712
|
+
* Two differences from upstream serve the release rule of
|
|
713
|
+
* {@link releaseCameraCycle}. The token (`grt()`) is read on the first poll,
|
|
714
|
+
* inside the lock, rather than before queueing: a release queued ahead of
|
|
715
|
+
* this step has then already rotated it, so the step never polls with a
|
|
716
|
+
* token its predecessor's `rcc` voided. And a step released while it still
|
|
717
|
+
* waits for the lock ends without calling `cst`, so a released attempt never
|
|
718
|
+
* opens the camera.
|
|
719
|
+
*
|
|
720
|
+
* Resolves when the step is done: ready or failed through the callbacks, or
|
|
721
|
+
* skipped because the cycle was released before the step reached the kit,
|
|
722
|
+
* in which case neither callback fires. Rejects when the handle is freed
|
|
723
|
+
* mid-step, or when the kit throws outside its own state machine (`cst` is
|
|
724
|
+
* bound without the exception wrapper on purpose). A re-initialization
|
|
725
|
+
* between two polls can also end the step without an outcome, because the
|
|
726
|
+
* new handle refuses the old token.
|
|
727
|
+
*/
|
|
728
|
+
async startCameraCycle(options, callbacks) {
|
|
729
|
+
const message = "Unable to start the camera cycle, cpp API hasn't been initialized";
|
|
730
|
+
this.requireCameraCycleApi(message);
|
|
731
|
+
const queued = { cancelled: false };
|
|
732
|
+
this.queuedCameraSteps.add(queued);
|
|
733
|
+
const onNewFrame = guardCameraCycleCallback("onNewFrame", callbacks.onNewFrame);
|
|
734
|
+
const onFirstFrame = guardCameraCycleCallback("onFirstFrame", callbacks.onFirstFrame);
|
|
735
|
+
const onCameraReady = guardCameraCycleCallback("onCameraReady", callbacks.onCameraReady);
|
|
736
|
+
const onCameraFailed = guardCameraCycleCallback("onCameraFailed", callbacks.onCameraFailed);
|
|
737
|
+
let releaseToken;
|
|
738
|
+
let reachedKit = false;
|
|
739
|
+
try {
|
|
740
|
+
await wasmCallWrapper(this.mlCallSemaphore, () => {
|
|
741
|
+
const api = this.requireCameraCycleApi(message);
|
|
742
|
+
if (!reachedKit) {
|
|
743
|
+
this.queuedCameraSteps.delete(queued);
|
|
744
|
+
if (queued.cancelled) return true;
|
|
745
|
+
reachedKit = true;
|
|
746
|
+
releaseToken = api.grt();
|
|
747
|
+
}
|
|
748
|
+
return api.cst(options, onNewFrame, onFirstFrame, onCameraReady, onCameraFailed, releaseToken);
|
|
749
|
+
}, true, { label: "cst" });
|
|
750
|
+
} finally {
|
|
751
|
+
this.queuedCameraSteps.delete(queued);
|
|
752
|
+
}
|
|
646
753
|
}
|
|
647
754
|
setWorkflowConsuming(type, consuming) {
|
|
648
755
|
const accepted = this.requireWorkflowApiUtilities("Unable to set workflow consuming, cpp API hasn't been initialized").setWorkflowConsuming(this.pipelineTypeToWasmEnum(type), consuming);
|
|
@@ -676,11 +783,42 @@ var WasmRuntime = class WasmRuntime {
|
|
|
676
783
|
const extras = "extras" in request ? request.extras : {};
|
|
677
784
|
return this.requireWebApi("Unable to post protected request, cpp API hasn't been initialized").pse(request.target, extras, request.config ?? {});
|
|
678
785
|
}
|
|
786
|
+
/**
|
|
787
|
+
* Releases the protected camera cycle. The cached display clone stops at
|
|
788
|
+
* once. The native release (`rcc`) queues behind the ML lock, so it lands
|
|
789
|
+
* only after whatever holds the lock settles: a camera step that already
|
|
790
|
+
* reached the kit, or a `poc`. Cancelling the kit inside its pre-capture
|
|
791
|
+
* checks leaves the realm unable to run another camera step (ml-wasm-kit
|
|
792
|
+
* known issue `active-iad-driver-teardown`), and SDK 1 runs `rcc` under the
|
|
793
|
+
* same lock. Steps still waiting for the lock are skipped and never reach
|
|
794
|
+
* the kit.
|
|
795
|
+
*
|
|
796
|
+
* The cost is that a release cannot cancel a step that is already inside the
|
|
797
|
+
* kit. A step parked on a permission prompt or a hidden tab keeps the camera
|
|
798
|
+
* cycle until it settles, and a release queued behind it for 30 s trips the
|
|
799
|
+
* semaphore's deadlock watchdog log.
|
|
800
|
+
*
|
|
801
|
+
* Stopping the display clone can throw synchronously. A failing `rcc` cannot
|
|
802
|
+
* reach the caller any more, so it is reported as a diagnostic.
|
|
803
|
+
*/
|
|
679
804
|
releaseCameraCycle() {
|
|
680
805
|
const stream = this.unprotectedStream;
|
|
681
806
|
this.unprotectedStream = null;
|
|
682
|
-
|
|
683
|
-
|
|
807
|
+
this.cancelQueuedCameraSteps();
|
|
808
|
+
wasmCallWrapper(this.mlCallSemaphore, () => {
|
|
809
|
+
try {
|
|
810
|
+
this.cameraCycleApi?.rcc();
|
|
811
|
+
} catch (error) {
|
|
812
|
+
reportCameraCycleReleaseFailure(error);
|
|
813
|
+
}
|
|
814
|
+
return true;
|
|
815
|
+
}, true, { label: "rcc" }).catch(reportCameraCycleReleaseFailure);
|
|
816
|
+
const failure = stopStreamTracks(stream);
|
|
817
|
+
if (failure) throw failure.error;
|
|
818
|
+
}
|
|
819
|
+
cancelQueuedCameraSteps() {
|
|
820
|
+
for (const queued of this.queuedCameraSteps) queued.cancelled = true;
|
|
821
|
+
this.queuedCameraSteps.clear();
|
|
684
822
|
}
|
|
685
823
|
resolveModelSource(source) {
|
|
686
824
|
if (typeof source === "object" && !(source instanceof ArrayBuffer) && !(source instanceof Uint8Array)) return this.usedSimd_ ? source.current : source.legacy;
|
|
@@ -750,8 +888,21 @@ var WasmRuntime = class WasmRuntime {
|
|
|
750
888
|
WasmRuntime.UNINITIALIZED_ENUM_MAP_MESSAGE = "Unable to map pipeline type, cpp API hasn't been initialized";
|
|
751
889
|
/** Process-wide runtime. One binary, one heap, one owner. */
|
|
752
890
|
const wasmRuntime = new WasmRuntime();
|
|
891
|
+
bindWasmMetadataV2Applier((enabled) => wasmRuntime.setMetadataV2Enabled(enabled));
|
|
753
892
|
//#endregion
|
|
754
893
|
//#region ../infra/src/wasm/warmup.ts
|
|
894
|
+
var warmup_exports = /* @__PURE__ */ __exportAll({
|
|
895
|
+
WASM_PIPELINES: () => WASM_PIPELINES,
|
|
896
|
+
getResolvedModelSource: () => getResolvedModelSource,
|
|
897
|
+
getResolvedModelsBasePath: () => getResolvedModelsBasePath,
|
|
898
|
+
getWarmupFacts: () => getWarmupFacts,
|
|
899
|
+
getWasmStatus: () => getWasmStatus,
|
|
900
|
+
isWasmReady: () => isWasmReady,
|
|
901
|
+
setWasmOnDeviceMode: () => setWasmOnDeviceMode,
|
|
902
|
+
waitForWasm: () => waitForWasm,
|
|
903
|
+
warmupWasm: () => warmupWasm,
|
|
904
|
+
whenWasmRuntimeReady: () => whenWasmRuntimeReady
|
|
905
|
+
});
|
|
755
906
|
/**
|
|
756
907
|
* Pipelines preloaded when no explicit `pipelines` array is passed to
|
|
757
908
|
* {@link warmupWasm}. The on-device selfie bundle is opt-in (loaded only when
|
|
@@ -767,6 +918,7 @@ let lastConfig = null;
|
|
|
767
918
|
let lastModelVariant = null;
|
|
768
919
|
let warmupFacts = null;
|
|
769
920
|
let pipelinesInFlight = [];
|
|
921
|
+
let runtimeReadyPromise = null;
|
|
770
922
|
function mapPipelineToWasmType(pipeline) {
|
|
771
923
|
switch (pipeline) {
|
|
772
924
|
case "selfie": return 4;
|
|
@@ -968,10 +1120,13 @@ async function warmupWasm(config) {
|
|
|
968
1120
|
try {
|
|
969
1121
|
const pipelinesMap = buildPipelinesMap(pipelines, config);
|
|
970
1122
|
if (config.onDeviceMode !== void 0) wasmRuntime.setOnDeviceMode(config.onDeviceMode);
|
|
971
|
-
const
|
|
1123
|
+
const runtimeReady = wasmRuntime.initialize({
|
|
972
1124
|
module: config,
|
|
973
1125
|
pipelines: pipelinesMap
|
|
974
1126
|
});
|
|
1127
|
+
runtimeReadyPromise = runtimeReady.then(() => void 0);
|
|
1128
|
+
runtimeReadyPromise.catch(() => void 0);
|
|
1129
|
+
const simdUsed = await runtimeReady;
|
|
975
1130
|
await wasmRuntime.loadModels();
|
|
976
1131
|
await wasmRuntime.initializePipelines();
|
|
977
1132
|
state = "ready";
|
|
@@ -1045,6 +1200,15 @@ function waitForWasm() {
|
|
|
1045
1200
|
return Promise.reject(/* @__PURE__ */ new Error("WASM warmup was not started. Call warmupWasm() first."));
|
|
1046
1201
|
}
|
|
1047
1202
|
/**
|
|
1203
|
+
* Resolves once the WASM runtime is up, before the models of the warmup that
|
|
1204
|
+
* started it finish loading: enough for the utility API (fingerprint signals).
|
|
1205
|
+
* Rejects when no warmup was started or the runtime failed to start.
|
|
1206
|
+
*/
|
|
1207
|
+
function whenWasmRuntimeReady() {
|
|
1208
|
+
if (wasmRuntime.isInitialized()) return Promise.resolve();
|
|
1209
|
+
return runtimeReadyPromise ?? Promise.reject(/* @__PURE__ */ new Error("WASM warmup was not started. Call warmupWasm() first."));
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1048
1212
|
* Retained compatibility surface for callers that used the removed native
|
|
1049
1213
|
* on-device-mode setter. Both values are native-free no-ops for the pinned
|
|
1050
1214
|
* runtime and do not alter initialization, capture, or fingerprint lifecycle.
|
|
@@ -1053,4 +1217,4 @@ function setWasmOnDeviceMode(enabled) {
|
|
|
1053
1217
|
wasmRuntime.setOnDeviceMode(enabled);
|
|
1054
1218
|
}
|
|
1055
1219
|
//#endregion
|
|
1056
|
-
export { setWasmOnDeviceMode as a,
|
|
1220
|
+
export { setWasmOnDeviceMode as a, warmup_exports as c, getCameraCycleOwnershipDomain as d, drainWasmDiagnostics as f, isWasmReady as i, wasmRuntime as l, rearmWasmDiagnostics as m, getWarmupFacts as n, waitForWasm as o, getWasmDiagnosticsMode as p, getWasmStatus as r, warmupWasm as s, getResolvedModelSource as t, CAMERA_CYCLE_OWNERSHIP_DOMAIN as u };
|
package/dist/wasm.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-BO57syF6.js";
|
|
2
|
-
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-
|
|
2
|
+
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-D9qt8YVU.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.54-pre6";
|
|
6
6
|
type UrlWasmConfig = WarmupConfig & {
|
|
7
7
|
wasmPath: string;
|
|
8
8
|
wasmSimdPath: string;
|
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 { D as WASM_PIPELINE_LAZY_MODEL_NAMES, E as WASM_MODEL_FILES, S as buildWasmConfigFromBasePath, T as resolveWasmConfig, b as DEFAULT_WASM_VERSION, k as WASM_PIPELINE_MODEL_NAMES, x as buildDefaultWasmConfig } from "./wasmWebClient-DTj9auyA.esm.js";
|
|
2
|
+
import { s as warmupWasm } from "./warmup-BkfxQZsC.esm.js";
|
|
3
|
+
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-CDAKwTr7.esm.js";
|
|
4
4
|
//#region src/defineWasm.ts
|
|
5
5
|
function requiredModels(pipelines) {
|
|
6
6
|
const models = /* @__PURE__ */ new Set();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as utilityWasmApi } from "./WasmUtilProvider-
|
|
1
|
+
import { i as utilityWasmApi } from "./WasmUtilProvider-GTkoJyFY.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
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region ../infra/src/wasm/wasmMetadataVersionSync.ts
|
|
2
|
+
let metadataV2Enabled = false;
|
|
3
|
+
let applyToRuntime;
|
|
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. Purely in-memory, like `setWasmDsFlagSync`: the
|
|
8
|
+
* value waits here until the WASM runtime loads, and from then on the runtime
|
|
9
|
+
* latches it, applies it at once when WASM is up and replays it after every
|
|
10
|
+
* `initialize()`, because the kit keeps the selector as realm state that a
|
|
11
|
+
* new module instance resets to v1. Resolve it before the first capture and
|
|
12
|
+
* never toggle it mid-session — the uploads would mix formats.
|
|
13
|
+
*/
|
|
14
|
+
function setWasmMetadataV2Enabled(enabled) {
|
|
15
|
+
metadataV2Enabled = enabled;
|
|
16
|
+
applyToRuntime?.(enabled);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* For the `WasmRuntime` singleton, once, when its module loads: replays the
|
|
20
|
+
* selection made before the runtime existed and forwards every later one.
|
|
21
|
+
*/
|
|
22
|
+
function bindWasmMetadataV2Applier(apply) {
|
|
23
|
+
applyToRuntime = apply;
|
|
24
|
+
apply(metadataV2Enabled);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { setWasmMetadataV2Enabled as n, bindWasmMetadataV2Applier as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
//#region ../infra/src/wasm/wasmIntegrityManifest.ts
|
|
3
3
|
/** SHA-256 digests of the official WASM release files this SDK loads. */
|
|
4
4
|
const WASM_INTEGRITY_MANIFEST = {
|
|
5
|
-
wasmVersion: "v2.14.
|
|
5
|
+
wasmVersion: "v2.14.54-pre6",
|
|
6
6
|
files: {
|
|
7
7
|
"models/current/age_estimation_v2_2_2_fp16.ortmodelv2": "70bd372b5e140ea8e9773a25d371cb65e5a9090651fdfe73ab6fc7ce25d59c83",
|
|
8
8
|
"models/current/barcode_enhance_896x224_fp16.ortmodelv2": "bccecd74abf48181efb95bf020784b7e50d37ae255bf89c14c2c5186976279e0",
|
|
@@ -24,14 +24,14 @@ const WASM_INTEGRITY_MANIFEST = {
|
|
|
24
24
|
"models/legacy/mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2": "e41887f75b284ba1f973f2a26209bf365da8a587d266492b642e5b7c36716069",
|
|
25
25
|
"models/legacy/ondevice_physical_liveness_v2_1_fp16.ortmodelv2": "405eee9fd961c48fff608246ef579dc8ce9f0b5ce51361e05dac7d9afcf9162d",
|
|
26
26
|
"models/legacy/selfie_bf_angles_192x192_opset9_fp16.ortmodelv2": "1c8dda528d5111fa7b4272ffabca7cf0a59099f57258aaece7262974aebafc4a",
|
|
27
|
-
"webLib.js": "
|
|
28
|
-
"webLib.wasm": "
|
|
29
|
-
"webLibSimd.js": "
|
|
30
|
-
"webLibSimd.wasm": "
|
|
27
|
+
"webLib.js": "0db12df86a8b0d5c205486e508d391f0df3e69d652ab4dc30e06f9237ef89caf",
|
|
28
|
+
"webLib.wasm": "72a0a5b611af6ec1dfd2d77a61de72477f385d76569259d9c74c2ea116ffab42",
|
|
29
|
+
"webLibSimd.js": "7bc83d69c4d0b6c6e2a5e620ffa49405570936f5d01c3ad9a0c82548f72ca2f8",
|
|
30
|
+
"webLibSimd.wasm": "371af5334158b4f6b437c74f31fb55181a8d1ced7ad5e718e141f348c90a3029"
|
|
31
31
|
},
|
|
32
32
|
dist: {
|
|
33
|
-
"webLib.js": "
|
|
34
|
-
"webLibSimd.js": "
|
|
33
|
+
"webLib.js": "87a490cc43662337ad3e8540f34b3a81eeb07c98e1bb0817a0e165bf9d9a0117",
|
|
34
|
+
"webLibSimd.js": "ea683348b881de418dbb6c1447ba89bd592d16540ce899259c6d404f52568722"
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
//#endregion
|
|
@@ -314,7 +314,7 @@ function deriveSiblingJsPath(wasmPath) {
|
|
|
314
314
|
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
315
315
|
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
316
316
|
/** The WASM version bundled and tested with this SDK release. */
|
|
317
|
-
const DEFAULT_WASM_VERSION = "v2.14.
|
|
317
|
+
const DEFAULT_WASM_VERSION = "v2.14.54-pre6";
|
|
318
318
|
const PATH_KEYS = [
|
|
319
319
|
"wasmPath",
|
|
320
320
|
"wasmSimdPath",
|
|
@@ -425,7 +425,7 @@ const BARCODE_ENHANCE_MODEL_FILE = WASM_MODEL_FILES.barcode;
|
|
|
425
425
|
* NOT part of any warmup model bundle.
|
|
426
426
|
*/
|
|
427
427
|
function getBarcodeEnhanceModelUrl(modelsBasePath, variant = "current") {
|
|
428
|
-
const source = buildModelVariantSources(modelsBasePath ?? `${WASM_CDN_BASE_URL}/v2.14.
|
|
428
|
+
const source = buildModelVariantSources(modelsBasePath ?? `${WASM_CDN_BASE_URL}/v2.14.54-pre6/models`, BARCODE_ENHANCE_MODEL_FILE);
|
|
429
429
|
return typeof source === "string" ? source : source[variant];
|
|
430
430
|
}
|
|
431
431
|
/**
|
|
@@ -597,6 +597,27 @@ async function importVerifiedGlue(bytes) {
|
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
//#endregion
|
|
600
|
+
//#region ../infra/src/wasm/wasmStartGate.ts
|
|
601
|
+
/**
|
|
602
|
+
* SDK 2's own addition, not mirrored from ml-wasm-kit.
|
|
603
|
+
*
|
|
604
|
+
* Holds back the WASM module load while another fingerprint module on the
|
|
605
|
+
* page initializes, such as TRI's fpSignals build. ML-Wasm's integration
|
|
606
|
+
* guide: on the legacy build the two modules must be initialized one after
|
|
607
|
+
* the other, since both use `window.wasmArrayBuffer`.
|
|
608
|
+
*/
|
|
609
|
+
let startGate = null;
|
|
610
|
+
/** Sets what the next module load waits for; `null` removes the wait. */
|
|
611
|
+
function setWasmStartGate(gate) {
|
|
612
|
+
startGate = gate;
|
|
613
|
+
}
|
|
614
|
+
/** Settles with the gate. A gate that rejects or throws never blocks the load. */
|
|
615
|
+
async function waitForWasmStartGate() {
|
|
616
|
+
try {
|
|
617
|
+
await startGate?.();
|
|
618
|
+
} catch {}
|
|
619
|
+
}
|
|
620
|
+
//#endregion
|
|
600
621
|
//#region ../infra/src/wasm/wasmStorageFallback.ts
|
|
601
622
|
/**
|
|
602
623
|
* SDK-local compatibility fallback for ml-wasm-kit releases whose embind
|
|
@@ -866,6 +887,7 @@ async function loadWasmModule(config) {
|
|
|
866
887
|
if (loadPromise) return loadPromise;
|
|
867
888
|
const startedAtMs = getTimestamp();
|
|
868
889
|
loadPromise = (async () => {
|
|
890
|
+
await waitForWasmStartGate();
|
|
869
891
|
let storageFallbackLease = null;
|
|
870
892
|
try {
|
|
871
893
|
storageFallbackLease = acquireWasmStorageFallback();
|
|
@@ -1020,7 +1042,7 @@ function resetWasmCallDiagnostics() {
|
|
|
1020
1042
|
//#endregion
|
|
1021
1043
|
//#region ../infra/src/wasm/wasmCallUtils.ts
|
|
1022
1044
|
/**
|
|
1023
|
-
* Poll bound applied to the ML long-poll call sites (`
|
|
1045
|
+
* Poll bound applied to the ML long-poll call sites (`poc` / `rsp` in
|
|
1024
1046
|
* `utilityWasmApi.ts`).
|
|
1025
1047
|
*
|
|
1026
1048
|
* Count-based, not deadline-based: the poll loop yields with `setTimeout(0)`,
|
|
@@ -1028,11 +1050,15 @@ function resetWasmCallDiagnostics() {
|
|
|
1028
1050
|
* would false-trip whenever the user backgrounds the page. A count bounds the
|
|
1029
1051
|
* number of C++ invocations regardless of how slowly the event loop turns.
|
|
1030
1052
|
*
|
|
1031
|
-
* 3000 is deliberately generous.
|
|
1032
|
-
*
|
|
1033
|
-
*
|
|
1034
|
-
*
|
|
1035
|
-
*
|
|
1053
|
+
* 3000 is deliberately generous. The pre-capture check (`prc`, until
|
|
1054
|
+
* ml-wasm-kit v2.14.52 moved it into the camera step) alone burned ~750 idle
|
|
1055
|
+
* polls waiting on the ~3s of camera frames the C++ side needs before it
|
|
1056
|
+
* reports done, so the bound sits well above the legitimate worst case. It
|
|
1057
|
+
* exists to break a permanently stuck poll that would otherwise hold the ML
|
|
1058
|
+
* semaphore forever and freeze detection — not to enforce a latency budget.
|
|
1059
|
+
* The camera step itself (`cst`) is deliberately unbounded: an open permission
|
|
1060
|
+
* prompt or a hidden tab parks it, and `rcc` is the only cancel — see
|
|
1061
|
+
* `WasmRuntime.startCameraCycle`.
|
|
1036
1062
|
*/
|
|
1037
1063
|
const ML_CALL_MAX_POLLS = 3e3;
|
|
1038
1064
|
/**
|
|
@@ -1271,4 +1297,4 @@ function ensureReady() {
|
|
|
1271
1297
|
return webClientApi;
|
|
1272
1298
|
}
|
|
1273
1299
|
//#endregion
|
|
1274
|
-
export {
|
|
1300
|
+
export { WASM_PIPELINE_OPTIONAL_MODEL_NAMES as A, getBarcodeEnhanceModelUrl as C, WASM_PIPELINE_LAZY_MODEL_NAMES as D, WASM_MODEL_FILES as E, setWasmIntegrityObserver as F, missingWasmModelError as M, resolveWasmSource as N, WASM_PIPELINE_MODELS as O, reportWasmIntegritySummary as P, buildWasmConfigFromBasePath as S, resolveWasmConfig as T, emitWasmDiagnostic as _, setWebApiHttpTransport as a, DEFAULT_WASM_VERSION as b, wasmCallWrapper as c, noteUnlockedCallStart as d, rearmWasmCallDiagnostics as f, setWasmStartGate as g, acquireWasmStorageFallback as h, initializeWasmWebClient as i, buildModelVariantSources as j, WASM_PIPELINE_MODEL_NAMES as k, notePipelineStatePulled as l, loadWasmModule as m, createWebApiHostAdapter as n, setupWasmConnection as o, resetWasmCallDiagnostics as p, executeWasmRequest as r, ML_CALL_MAX_POLLS as s, WasmWebClientError as t, noteUnlockedCallEnd as u, setWasmDiagnosticsHandler as v, isDefaultCdnWasmConfig as w, buildDefaultWasmConfig as x, SemaphoreProvider as y };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as WatchlistForBusinessValidationErrors, t as WatchlistForBusinessConfig } from "./types-B9C8W01q.js";
|
|
2
|
+
import { a as createWatchlistForBusinessManager, c as watchlistForBusinessMachine, i as WatchlistForBusinessState, n as WatchlistForBusinessFormState, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager, s as WatchlistForBusinessActor, t as WatchlistForBusinessFinishedState } from "./watchlistForBusinessManager-DX2AyM4Y.js";
|
|
2
3
|
export { type WatchlistForBusinessActor, type WatchlistForBusinessConfig, type WatchlistForBusinessFinishedState, type WatchlistForBusinessFormState, type WatchlistForBusinessManager, type WatchlistForBusinessState, type WatchlistForBusinessValidationErrors, createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-
|
|
1
|
+
import { n as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DA6K5na4.esm.js";
|
|
2
|
+
import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-CVay6-9A.esm.js";
|
|
3
3
|
export { createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };
|
package/dist/watchlist.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
2
|
-
import { t as createWatchlistManager } from "./watchlistManager-
|
|
1
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-CSi_ZhtT.esm.js";
|
|
2
|
+
import { t as createWatchlistManager } from "./watchlistManager-B8gQ_rw3.esm.js";
|
|
3
3
|
export { createWatchlistManager, watchlistMachine };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import {
|
|
4
|
+
import { n as watchlistForBusinessMachine, t as getMaxDateOfIncorporation } from "./watchlistForBusinessStateMachine-DA6K5na4.esm.js";
|
|
5
5
|
//#region src/modules/watchlist-for-business/watchlistForBusinessActor.ts
|
|
6
|
-
function createWatchlistForBusinessActor() {
|
|
7
|
-
return createActor(watchlistForBusinessMachine).start();
|
|
6
|
+
function createWatchlistForBusinessActor(options = {}) {
|
|
7
|
+
return createActor(watchlistForBusinessMachine, { input: { config: options.config ?? {} } }).start();
|
|
8
8
|
}
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/modules/watchlist-for-business/watchlistForBusinessManager.ts
|
|
@@ -38,6 +38,11 @@ function mapState(snapshot) {
|
|
|
38
38
|
status: "form",
|
|
39
39
|
country: context.country,
|
|
40
40
|
businessName: context.businessName,
|
|
41
|
+
taxId: context.taxId,
|
|
42
|
+
dateOfIncorporation: context.dateOfIncorporation,
|
|
43
|
+
showTaxId: context.config?.taxIdEnabled === true,
|
|
44
|
+
showDateOfIncorporation: context.config?.dateOfIncorporationEnabled === true,
|
|
45
|
+
maxDateOfIncorporation: getMaxDateOfIncorporation(),
|
|
41
46
|
isValid: context.isValid,
|
|
42
47
|
validationErrors: context.validationErrors,
|
|
43
48
|
canSubmit: Object.keys(context.validationErrors ?? {}).length === 0
|
|
@@ -67,7 +72,27 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
67
72
|
value
|
|
68
73
|
});
|
|
69
74
|
},
|
|
70
|
-
/**
|
|
75
|
+
/** Updates the optional Tax ID field. A blank value is not sent. */
|
|
76
|
+
setTaxId(value) {
|
|
77
|
+
actor.send({
|
|
78
|
+
type: "SET_TAX_ID",
|
|
79
|
+
value
|
|
80
|
+
});
|
|
81
|
+
},
|
|
82
|
+
/**
|
|
83
|
+
* Updates the optional date of incorporation (`YYYY-MM-DD`). A blank value
|
|
84
|
+
* is not sent; a future date blocks submit.
|
|
85
|
+
*/
|
|
86
|
+
setDateOfIncorporation(value) {
|
|
87
|
+
actor.send({
|
|
88
|
+
type: "SET_DATE_OF_INCORPORATION",
|
|
89
|
+
value
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* Submits the form. Transitions only when the business name is filled and
|
|
94
|
+
* every filled optional field is valid; otherwise sets `validationErrors`.
|
|
95
|
+
*/
|
|
71
96
|
submit() {
|
|
72
97
|
trackElementClicked?.("submit");
|
|
73
98
|
actor.send({ type: "SUBMIT" });
|
|
@@ -79,6 +104,11 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
79
104
|
*
|
|
80
105
|
* On API error the module completes silently (fire-and-forget).
|
|
81
106
|
*
|
|
107
|
+
* @param options.config - Optional module config. `taxIdEnabled` and
|
|
108
|
+
* `dateOfIncorporationEnabled` turn on the optional Tax ID and date-of-
|
|
109
|
+
* incorporation inputs. Without config only country and business name are
|
|
110
|
+
* collected.
|
|
111
|
+
*
|
|
82
112
|
* @example Headless usage
|
|
83
113
|
* ```typescript
|
|
84
114
|
* import { createWatchlistForBusinessManager } from '@incodetech/core/watchlist-for-business';
|
|
@@ -94,8 +124,8 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
94
124
|
* manager.stop();
|
|
95
125
|
* ```
|
|
96
126
|
*/
|
|
97
|
-
function createWatchlistForBusinessManager() {
|
|
98
|
-
return createWatchlistForBusinessManagerFromActor(createWatchlistForBusinessActor());
|
|
127
|
+
function createWatchlistForBusinessManager(options = {}) {
|
|
128
|
+
return createWatchlistForBusinessManagerFromActor(createWatchlistForBusinessActor(options));
|
|
99
129
|
}
|
|
100
130
|
function createWatchlistForBusinessManagerFromActor(actor) {
|
|
101
131
|
return createManager({
|