@incodetech/core 2.2.0 → 2.3.0-rc.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/THIRD_PARTY_NOTICES.txt +281 -0
- package/dist/BaseWasmProvider-Dyi6dKp1.d.ts +65 -0
- package/dist/{BrowserDiagnosticsCryptoProvider-B8vorxN5.esm.js → BrowserDiagnosticsCryptoProvider-CU6kBvqv.esm.js} +1 -1
- package/dist/{BrowserVisibilityObserverProvider-BX1BiLDK.esm.js → BrowserVisibilityObserverProvider-BrJN1B8A.esm.js} +2 -0
- package/dist/FaceDetectionProvider-BfhWkK90.esm.js +431 -0
- package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +36 -0
- package/dist/{IIdCaptureCapability-DHTT3FC2.d.ts → IIdCaptureCapability-RNiFhvXR.d.ts} +7 -33
- package/dist/IWasmUtilCapability-CNWRl7jr.d.ts +117 -0
- package/dist/{MotionSensorProvider-DGiV77J_.esm.js → MotionSensorProvider-BgTYwg9L.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-D2XcXCZ4.esm.js → StreamCanvasCapture-C9jtgBdT.esm.js} +2 -2
- package/dist/{deepsightService-DLVQS_RH.d.ts → StreamCanvasCapture-_8gdW5Lk.d.ts} +54 -41
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{addressSearch-D1XpBdUS.esm.js → addressSearch-DyHGgeX8.esm.js} +1 -1
- package/dist/advanceableErrors-CpF2cBy6.esm.js +21 -0
- package/dist/ae-signature.d.ts +4 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQFNgSPt.esm.js → antifraudManager-DNkw66oW.esm.js} +2 -2
- package/dist/{antifraudStateMachine-Bf_JVNwn.esm.js → antifraudStateMachine-DBeq47D2.esm.js} +1 -1
- package/dist/{apiError-BA1d_au0.esm.js → apiError-Budb6m6w.esm.js} +14 -2
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BBMGTcwW.d.ts → authenticationManager-CjXBjC-c.d.ts} +7 -1
- package/dist/{authenticationManager-zh9TC62P.esm.js → authenticationManager-cMXhG70r.esm.js} +5 -5
- package/dist/{authenticationStateMachine-xzi-vnvE.esm.js → authenticationStateMachine-MOYz4HCf.esm.js} +6 -62
- package/dist/avatar.d.ts +1 -2
- package/dist/avatar.esm.js +1 -1
- package/dist/{backCameraStream-CUeYm5eu.esm.js → backCameraStream-BOtyQowf.esm.js} +83 -22
- package/dist/{camera-_2sXMXiF.esm.js → camera-sIa9ceW2.esm.js} +19 -1
- package/dist/camera.esm.js +1 -1
- package/dist/{canvas-E1zGkel4.esm.js → canvas-BxFzWTt-.esm.js} +19 -0
- package/dist/certificate-issuance.d.ts +2 -302
- package/dist/certificate-issuance.esm.js +3 -66
- package/dist/certificateIssuanceManager-C3-CI0_s.esm.js +69 -0
- package/dist/certificateIssuanceManager-DCgEidHz.d.ts +312 -0
- package/dist/{certificateIssuanceStateMachine-D_R92TYu.esm.js → certificateIssuanceStateMachine-CxqS_nD-.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-BxjpLZAG.esm.js → consentManager-B6E1XJDw.esm.js} +2 -2
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-BhYFeKiG.d.ts} +4 -4
- package/dist/{consentStateMachine-D9D4ON8Z.esm.js → consentStateMachine-DTSfdGiW.esm.js} +1 -1
- package/dist/createCameraCycleOwnership-CX3hJGKc.esm.js +826 -0
- package/dist/{createFaceAvatar-DQKaRise.esm.js → createFaceAvatar-BNHdeFj8.esm.js} +2 -2
- package/dist/createFaceAvatar-BlcTYgJv.d.ts +497 -0
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-CGT0V6RV.esm.js → crossDocumentDataMatchManager-9XhFVZ5S.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-6Nmkn5u1.esm.js → curpValidationManager-DbIMYFcJ.esm.js} +2 -2
- package/dist/{curpValidationManager-DVGr7Fq7.d.ts → curpValidationManager-SSKNrm5Z.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Ds7KMacK.esm.js → curpValidationStateMachine-g5kMfuLj.esm.js} +1 -1
- package/dist/custom-fields.d.ts +2 -114
- package/dist/custom-fields.esm.js +2 -232
- package/dist/custom-watchlist.d.ts +2 -51
- package/dist/custom-watchlist.esm.js +3 -70
- package/dist/customFieldsManager-8-W2KY4n.d.ts +141 -0
- package/dist/customFieldsManager-CzWZTkW-.esm.js +264 -0
- package/dist/customWatchlistManager-DWTED5Ur.esm.js +73 -0
- package/dist/customWatchlistManager-PBWHr_oM.d.ts +64 -0
- package/dist/{customWatchlistStateMachine-YWSgKLbF.esm.js → customWatchlistStateMachine-DOQou6TW.esm.js} +1 -1
- package/dist/{deepsightLoader--wMKWECS.esm.js → deepsightLoader-DDv3vhXU.esm.js} +27 -71
- package/dist/device.d.ts +25 -2
- package/dist/device.esm.js +69 -7
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DsQQhWry.esm.js → documentCaptureManager-CwAiM9WY.esm.js} +2 -2
- package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DensIj5F.d.ts} +83 -83
- package/dist/{documentCaptureStateMachine-BM4Ex_5x.esm.js → documentCaptureStateMachine-DfGOBapD.esm.js} +5 -5
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-fFVIRBNv.esm.js → dynamicFormsManager-BbS-XMFc.esm.js} +16 -5
- package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-D5R_uxLQ.d.ts} +25 -3
- package/dist/{dynamicFormsStateMachine-D6D7oEYk.esm.js → dynamicFormsStateMachine-D8zHBCh4.esm.js} +35 -3
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-Y3MkoXpC.esm.js → ekybManager-5aiac8wL.esm.js} +2 -2
- package/dist/{ekybStateMachine-3nlnqdlr.esm.js → ekybStateMachine-Bn2IE9rx.esm.js} +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-DgT48ky6.esm.js → ekycManager-BlQ-Qj4E.esm.js} +2 -2
- package/dist/{ekycStateMachine-CQwqiR-R.esm.js → ekycStateMachine-CshSNJhh.esm.js} +2 -2
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +2 -2
- package/dist/{electronicSignatureManager-DGbAJ00W.esm.js → electronicSignatureManager-BJJH0Tvi.esm.js} +357 -51
- package/dist/electronicSignatureManager-Ds-KEVTq.d.ts +2786 -0
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BY0jeYwR.esm.js → emailManager-bR1N5rV_.esm.js} +2 -2
- package/dist/{emailStateMachine-Crw8QVmc.esm.js → emailStateMachine-Bc_6oIYw.esm.js} +1 -1
- package/dist/{endpoints-CCzL3XD_.esm.js → endpoints-B-3Q-LUw.esm.js} +24 -10
- package/dist/{events-DYiyoSlx.esm.js → events-ijlbX_Wx.esm.js} +2 -2
- package/dist/events.d.ts +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +24 -64
- package/dist/extensibility.esm.js +35 -29
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-CVnZ0fa5.esm.js → faceCaptureManagerFactory-B7Ms6pSs.esm.js} +68 -7
- package/dist/{faceCaptureManagerFactory-BxWPpxyd.d.ts → faceCaptureManagerFactory-BeUl8fl1.d.ts} +86 -54
- package/dist/faceCaptureSetup-bkAlr5d8.esm.js +2067 -0
- package/dist/{faceMatchManager-Ri4UbNz0.esm.js → faceMatchManager-Bmv0HzuY.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-20DdZ3jg.esm.js → faceMatchStateMachine-mRIHQ3dA.esm.js} +1 -1
- package/dist/{feature-management-CPQ4qv3F.esm.js → feature-management-E0mq0pMs.esm.js} +32 -7
- package/dist/feature-management.d.ts +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-Cg6kPQQx.esm.js → fieldComparisonManager-CC-klG0h.esm.js} +2 -2
- package/dist/fiscal-qr.d.ts +2 -56
- package/dist/fiscal-qr.esm.js +2 -308
- package/dist/fiscalQrManager-B1STmT6z.d.ts +71 -0
- package/dist/fiscalQrManager-BunLVFbd.esm.js +34143 -0
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +212 -185
- package/dist/flow.esm.js +119 -30
- package/dist/{flowCompletionService-tfeoGre9.esm.js → flowCompletionService-DJp1odGN.esm.js} +2 -2
- package/dist/{flowServices-f5Ruz7R9.esm.js → flowServices-DjPFGs_D.esm.js} +91 -26
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CH6RfqFH.esm.js → geolocationManager-D5906YXx.esm.js} +2 -2
- package/dist/{geolocationStateMachine-DmbWFely.esm.js → geolocationStateMachine-BVOduc3y.esm.js} +3 -3
- package/dist/getBrowser-CBiibsL-.esm.js +19 -0
- package/dist/{getBrowser-DNrQeL4T.esm.js → getBrowser-Cbe1C4Tn.esm.js} +2 -1
- package/dist/{getDeviceClass-9y-kbVDw.esm.js → getDeviceClass-5NYZg9s6.esm.js} +2 -2
- package/dist/getParsedUserAgent-B2iFDql1.esm.js +1278 -0
- package/dist/government-validation.d.ts +2 -85
- package/dist/government-validation.esm.js +3 -120
- package/dist/governmentValidationManager-CacFOtKO.esm.js +79 -0
- package/dist/governmentValidationManager-D02vT4yY.d.ts +63 -0
- package/dist/governmentValidationStateMachine-CoaZOSTP.esm.js +54 -0
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +3 -2
- package/dist/id-selfie-flow.esm.js +11 -10
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +29 -5
- package/dist/id.esm.js +48 -46
- package/dist/idCaptureDefaults-CbPA-Auz.esm.js +727 -0
- package/dist/{idCaptureManager-CqrqSjJV.d.ts → idCaptureManager-DKESug0R.d.ts} +230 -43
- package/dist/{idCaptureManager-BYwTZ2H8.esm.js → idCaptureManager-rfV9dIXy.esm.js} +259 -46
- package/dist/{idCaptureServices-44kwQItl.esm.js → idCaptureServices-i1KxugN7.esm.js} +285 -72
- package/dist/idCaptureStateMachine-Ne_PXth_.esm.js +5333 -0
- package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
- package/dist/{idOcrManager-BIQYQXXj.esm.js → idOcrManager-r46XfZGE.esm.js} +2 -2
- package/dist/{idOcrStateMachine-cSxzHpHt.esm.js → idOcrStateMachine-ClDEP-VI.esm.js} +1 -1
- package/dist/{idVerificationManager-JpV_SAsl.esm.js → idVerificationManager-DT42c77H.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-nPeUNyFq.esm.js → idVerificationStateMachine-DbDVIh9t.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-kNCg9AbD.esm.js → identityReuseManager-yG3acUrQ.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-DyulxDjP.esm.js → identityReuseStateMachine-BhAkuIra.esm.js} +1 -1
- package/dist/{index-CLMF0QLQ.d.ts → index-DLcJT5YP.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-GpvMuz9o.esm.js → invokeOnCaptureCallback-BjzPjJ_p.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-B4Niyg_u.esm.js → mandatoryConsentManager-7dI0D08q.esm.js} +2 -2
- package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-vhv1co_n.d.ts} +1 -1
- package/dist/{mandatoryConsentStateMachine-B4-1u-L8.esm.js → mandatoryConsentStateMachine-DC5Mo6M1.esm.js} +1 -1
- package/dist/multipartRecordingService-OEgIRvqC.esm.js +605 -0
- package/dist/{permissionGuards-KINpmKtI.esm.js → permissionGuards-uYZYFu4J.esm.js} +1 -1
- package/dist/{permissionServices-UvUcOSRb.esm.js → permissionServices-Bj_fyWtv.esm.js} +5 -5
- package/dist/personhood.d.ts +6 -5
- package/dist/personhood.esm.js +10 -10
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-FsJ0W2Ei.esm.js → phoneManager-IjhSv5XS.esm.js} +2 -2
- package/dist/{phoneStateMachine-Ba0wKHyX.esm.js → phoneStateMachine-CXdXufKg.esm.js} +1 -1
- package/dist/{platform-BJrm5nzZ.esm.js → platform-DkcRc9JV.esm.js} +29 -1
- package/dist/qe-signature.d.ts +5 -3
- package/dist/qe-signature.esm.js +2 -2
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-y4VQB11M.esm.js → redirectToMobileManager-FLEWJtv8.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-Cyv2x0PP.esm.js → redirectToMobileStateMachine-CSWWgUTO.esm.js} +1 -1
- package/dist/{rolldown-runtime-FZ4Itg2g.esm.js → rolldown-runtime-FDOR9p9I.esm.js} +1 -19
- package/dist/{runChildModule-Dukuw23X.esm.js → runChildModule-CI1gGWN1.esm.js} +3 -21
- package/dist/safeStorage-B-trhxg6.esm.js +423 -0
- package/dist/{sdkVersion-D1Bm59g6.esm.js → sdkVersion-BZh6dj53.esm.js} +1 -1
- package/dist/selfie.d.ts +5 -5
- package/dist/selfie.esm.js +14 -76
- package/dist/{selfieErrorUtils-C2PYBVsp.esm.js → selfieErrorUtils-UiQ46EBa.esm.js} +30 -4
- package/dist/{selfieManager-DwlCppg0.d.ts → selfieManager-4RRLi21P.d.ts} +8 -11
- package/dist/{selfieManager-Bj6B2ZVy.esm.js → selfieManager-B-2c1n_x.esm.js} +5 -5
- package/dist/selfieStateMachine-Bzx41R8d.esm.js +69 -0
- package/dist/{session-BFdLgN4i.esm.js → session-3LmvAU4S.esm.js} +4 -5
- package/dist/session.d.ts +21 -11
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-dlfDehHk.esm.js → sessionInitializer-BFk33E67.esm.js} +187 -68
- package/dist/{setup-BIAtLa8k.esm.js → setup-BWG-hivt.esm.js} +226 -100
- package/dist/{setup-BgoWtvIS.d.ts → setup-Cv-JM9QC.d.ts} +63 -69
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-Ca43yhwk.esm.js → signatureManager-B72np4ZO.esm.js} +2 -2
- package/dist/{signatureStateMachine-K1LMRrxG.esm.js → signatureStateMachine-ce_XMA3l.esm.js} +1 -1
- package/dist/{src-0Jurt29N.esm.js → src-35ekGRzK.esm.js} +1 -1
- package/dist/{stats-B0nFKawG.esm.js → stats-CZcy2J53.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService---iW2KKJ.esm.js → trueSightService-BN-Hzw82.esm.js} +7 -7
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-BX_XkMsQ2.d.ts → types-9_esGTPj.d.ts} +1 -1
- package/dist/types-BT_Oalip.d.ts +1 -0
- package/dist/{types-DelMqZLe.d.ts → types-BjSly8cp.d.ts} +1 -1
- package/dist/{types-Hmd7U0JA.d.ts → types-Bnl58jUQ.d.ts} +6 -85
- package/dist/types-ChAowIxT.d.ts +6 -0
- package/dist/{types-DVmXIdzW.d.ts → types-D0gekt4U.d.ts} +38 -5
- package/dist/types-DgDvvzg0.d.ts +10 -0
- package/dist/{types-KPvmag_B.d.ts → types-Do5rEXij.d.ts} +7 -4
- package/dist/{types-Bdf8_LYB2.d.ts → types-byBHOzCG2.d.ts} +305 -25
- package/dist/video-selfie.d.ts +59 -35
- package/dist/video-selfie.esm.js +510 -601
- package/dist/{videoSelfieCameraWarmer-NEhFZvWx.esm.js → videoSelfieCameraWarmer-B8PcYqmz.esm.js} +14 -153
- package/dist/videoSelfieFlowModuleMachine-BUe2uACW.esm.js +32 -0
- package/dist/{videoSelfieStepDetector-D3oo2ofo.d.ts → videoSelfieStepDetector-Co0Gu2k2.d.ts} +59 -13
- package/dist/virtualCameraCheck-Cjab7FTI.esm.js +48 -0
- package/dist/warmup-CUUnwYxe.esm.js +714 -0
- package/dist/warmup-Cis2p6O0.d.ts +128 -0
- package/dist/wasm.d.ts +30 -6
- package/dist/wasm.esm.js +36 -4
- package/dist/{wasmDsFlagSync-BqUCwLY8.esm.js → wasmDsFlagSync-B2e8p268.esm.js} +2 -2
- package/dist/{wasmWebClient-DM8lkb0z.esm.js → wasmWebClient-B7baE-Wf.esm.js} +358 -28
- package/dist/watchlist-for-business.d.ts +2 -78
- package/dist/watchlist-for-business.esm.js +3 -102
- package/dist/watchlist.esm.js +2 -2
- package/dist/watchlistForBusinessManager-CIMkpEhu.esm.js +107 -0
- package/dist/watchlistForBusinessManager-CsnJnG-C.d.ts +99 -0
- package/dist/{watchlistForBusinessStateMachine-CxFnlshm.esm.js → watchlistForBusinessStateMachine-CJ-MvUre.esm.js} +13 -6
- package/dist/{watchlistManager-LoNZH9qm.esm.js → watchlistManager-CixcLNDT.esm.js} +2 -2
- package/dist/{watchlistStateMachine-DIKQDoUT.esm.js → watchlistStateMachine-CBqk2w-h.esm.js} +1 -1
- package/dist/workflow.d.ts +12 -8
- package/dist/workflow.esm.js +48 -39
- package/package.json +4 -10
- package/dist/BrowserStorageProvider-k-FDkC4W.esm.js +0 -67
- package/dist/FaceDetectionProvider-Mh6q3EbA.d.ts +0 -349
- package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +0 -23
- package/dist/IStorageCapability-ORkQfK3F.d.ts +0 -242
- package/dist/OpenViduRecordingProvider-Du98qevC.esm.js +0 -85
- package/dist/createFaceAvatar-BEj18KXi.d.ts +0 -50
- package/dist/document-upload.d.ts +0 -325
- package/dist/document-upload.esm.js +0 -197
- package/dist/electronicSignatureManager-CcUXQZS7.d.ts +0 -1300
- package/dist/faceCaptureSetup-Cd-04W_X.esm.js +0 -863
- package/dist/getBrowser-Cb8Zgrgp.esm.js +0 -7
- package/dist/getParsedUserAgent-pJjATANs.esm.js +0 -1622
- package/dist/governmentValidationStateMachine-CK9DrZXX.esm.js +0 -226
- package/dist/idCaptureDefaults-WeHbQM7W.esm.js +0 -225
- package/dist/idCaptureStateMachine-kZ5OpdfM.esm.js +0 -3342
- package/dist/lib-DAyUtOTj.esm.js +0 -12420
- package/dist/manualReviewService-D4IkipnN.esm.js +0 -15
- package/dist/mediaRecorderOptions-dALSV8af.esm.js +0 -40
- package/dist/onDeviceFaceResults-CUHwyZT4.esm.js +0 -646
- package/dist/openviduLazy-CCDpFWg1.esm.js +0 -10
- package/dist/recordingService-3NSENVwp.esm.js +0 -329
- package/dist/safeStorage-Ep56I-f_.esm.js +0 -982
- package/dist/selfieStateMachine-CHV_WNst.esm.js +0 -55
- package/dist/trueSight-B_icM8r2.esm.js +0 -1
- package/dist/types-EELWyWpd.d.ts +0 -6
- package/dist/types-Vb4P9ovf.d.ts +0 -22
- package/dist/warmup-Dv2alr2-.d.ts +0 -82
- package/dist/wasmDefaults-DTUrftxR.esm.js +0 -125
- package/dist/{Face2DProvider-UUQt_vRC.esm.js → Face2DProvider-BF48sz5c.esm.js} +1 -1
- package/dist/{PrivacyLensProvider-D8PS7AJa.esm.js → PrivacyLensProvider-EwnC_C5n.esm.js} +1 -1
- /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
- /package/dist/{types-CJ7Yl9K-2.d.ts → types-CJ7Yl9K-.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
3
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
3
|
+
import { t as phoneMachine } from "./phoneStateMachine-CXdXufKg.esm.js";
|
|
4
4
|
//#region src/modules/phone/phoneActor.ts
|
|
5
5
|
function createPhoneActor(options) {
|
|
6
6
|
return createActor(phoneMachine, { input: { config: options.config } }).start();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
+
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
6
|
import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
|
|
@@ -43,6 +43,18 @@ function isAndroidWebView(userAgent) {
|
|
|
43
43
|
if (/SamsungBrowser|Firefox|EdgA|OPR|OPT|YaBrowser|HuaweiBrowser/i.test(ua)) return false;
|
|
44
44
|
return /\bVersion\/[\d.]+/.test(ua) && /\bChrome\/[\d.]+/.test(ua);
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* True when an iOS/iPadOS host exposes the standard WebKit WebView user agent.
|
|
48
|
+
* Native WebViews omit the product token used by Safari and branded browsers.
|
|
49
|
+
*
|
|
50
|
+
* In-app browsers are WebViews and report as such; whether one is *supported*
|
|
51
|
+
* belongs to `isSupportedBrowser` in core.
|
|
52
|
+
*/
|
|
53
|
+
function isIOSWebView(userAgent) {
|
|
54
|
+
const ua = userAgent || (typeof navigator !== "undefined" ? navigator.userAgent : "");
|
|
55
|
+
if (!isIOS(ua) || !/AppleWebKit/i.test(ua) || !/Mobile\//i.test(ua)) return false;
|
|
56
|
+
return !/\b(?:Safari|CriOS|FxiOS|EdgiOS|OPiOS|OPT|YaBrowser)\//i.test(ua);
|
|
57
|
+
}
|
|
46
58
|
function isIPad(userAgent) {
|
|
47
59
|
const ua = userAgent || (typeof navigator !== "undefined" ? navigator.userAgent : "");
|
|
48
60
|
const hasTouchPoints = typeof navigator !== "undefined" ? navigator.maxTouchPoints > 0 : false;
|
|
@@ -56,6 +68,22 @@ function isSafari(userAgent) {
|
|
|
56
68
|
const ua = userAgent || (typeof navigator !== "undefined" ? navigator.userAgent : "");
|
|
57
69
|
return /Safari/i.test(ua) && !/Chrome|Chromium|Edge/i.test(ua);
|
|
58
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Desktop Safari on macOS (not iOS/iPadOS — `isIOS` also matches modern
|
|
73
|
+
* iPads that report as "Mac OS" with touch points). The Apple-Wallet-web
|
|
74
|
+
* handshake is the only wallet flow available on desktop Apple platforms,
|
|
75
|
+
* so this is the signal that routes macOS Safari to the Apple provider.
|
|
76
|
+
*/
|
|
77
|
+
function isMacOsSafari(userAgent) {
|
|
78
|
+
const ua = userAgent || (typeof navigator !== "undefined" ? navigator.userAgent : "");
|
|
79
|
+
return /Mac OS/.test(ua) && !isIOS(ua) && isSafari(ua);
|
|
80
|
+
}
|
|
81
|
+
function isBraveBrowser() {
|
|
82
|
+
return typeof navigator !== "undefined" && "brave" in navigator;
|
|
83
|
+
}
|
|
84
|
+
function isIslandBrowser() {
|
|
85
|
+
return typeof navigator !== "undefined" && "island" in navigator;
|
|
86
|
+
}
|
|
59
87
|
const IPHONE_14_PLUS_DIMENSIONS = [
|
|
60
88
|
{
|
|
61
89
|
outerHeight: 852,
|
|
@@ -100,4 +128,4 @@ function isIPhone14OrHigher() {
|
|
|
100
128
|
return IPHONE_14_PLUS_DIMENSIONS.some((dims) => dims.outerHeight === outerHeight && dims.outerWidth === outerWidth || dims.innerHeight === innerHeight && dims.innerWidth === innerWidth);
|
|
101
129
|
}
|
|
102
130
|
//#endregion
|
|
103
|
-
export {
|
|
131
|
+
export { isIOS as a, isIPhone14OrHigher as c, isSafari as d, isTabletWithoutAndroid as f, isDesktop as i, isIslandBrowser as l, isAndroidWebView as n, isIOSWebView as o, isBraveBrowser as r, isIPad as s, isAndroid as t, isMacOsSafari as u };
|
package/dist/qe-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as ElectronicSignatureState, o as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
2
|
+
import { S as getDefaultConsentChecks, a as ElectronicSignatureConfig, b as areAllConsented, f as NAMIRIAL_QES_CONSENT_KEYS, h as QE_CONSENT_KEYS, i as ConsentKey, m as NamirialQesConsentKey, p as NAMIRIAL_QES_PROVIDER_CODE, r as ConsentChecks, s as ElectronicSignatureDocument, u as ElectronicSignatureProviderTerms } from "./types-D0gekt4U.js";
|
|
3
|
+
import { n as ElectronicSignatureState, o as electronicSignatureMachine } from "./electronicSignatureManager-Ds-KEVTq.js";
|
|
4
4
|
import "./electronic-signature.js";
|
|
5
5
|
//#region src/modules/qe-signature/index.d.ts
|
|
6
6
|
type QeSignatureConfig = Omit<ElectronicSignatureConfig, 'variant'>;
|
|
@@ -14,6 +14,8 @@ declare function createQeSignatureManager(options: {
|
|
|
14
14
|
confirmFile(): void;
|
|
15
15
|
viewDocument(url: string): void;
|
|
16
16
|
closeDocumentView(): void;
|
|
17
|
+
viewApplicationForm(): void;
|
|
18
|
+
closeApplicationForm(): void;
|
|
17
19
|
sign(): void;
|
|
18
20
|
finish(): void;
|
|
19
21
|
retry(): void;
|
|
@@ -21,4 +23,4 @@ declare function createQeSignatureManager(options: {
|
|
|
21
23
|
};
|
|
22
24
|
type QeSignatureManager = ReturnType<typeof createQeSignatureManager>;
|
|
23
25
|
//#endregion
|
|
24
|
-
export { type ConsentChecks, QE_CONSENT_KEYS, QeSignatureConfig, type ElectronicSignatureDocument as QeSignatureDocument, QeSignatureManager, type ElectronicSignatureState as QeSignatureState, areAllConsented, createQeSignatureManager, getDefaultConsentChecks, electronicSignatureMachine as qeSignatureMachine };
|
|
26
|
+
export { type ConsentChecks, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, type NamirialQesConsentKey, QE_CONSENT_KEYS, QeSignatureConfig, type ElectronicSignatureDocument as QeSignatureDocument, QeSignatureManager, type ElectronicSignatureProviderTerms as QeSignatureProviderTerms, type ElectronicSignatureState as QeSignatureState, areAllConsented, createQeSignatureManager, getDefaultConsentChecks, electronicSignatureMachine as qeSignatureMachine };
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BJJH0Tvi.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -7,4 +7,4 @@ function createQeSignatureManager(options) {
|
|
|
7
7
|
} });
|
|
8
8
|
}
|
|
9
9
|
//#endregion
|
|
10
|
-
export { QE_CONSENT_KEYS, areAllConsented, createQeSignatureManager, getDefaultConsentChecks, electronicSignatureMachine as qeSignatureMachine };
|
|
10
|
+
export { NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createQeSignatureManager, getDefaultConsentChecks, electronicSignatureMachine as qeSignatureMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine-
|
|
2
|
-
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-
|
|
1
|
+
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine-CSWWgUTO.esm.js";
|
|
2
|
+
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-FLEWJtv8.esm.js";
|
|
3
3
|
export { createRedirectToMobileManager, createRedirectToMobileManagerFromActor, defaultRedirectToMobileServices, redirectToMobileMachine };
|
package/dist/{redirectToMobileManager-y4VQB11M.esm.js → redirectToMobileManager-FLEWJtv8.esm.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
|
-
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine-
|
|
5
|
+
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine-CSWWgUTO.esm.js";
|
|
6
6
|
//#region src/modules/redirect-to-mobile/redirectToMobileActor.ts
|
|
7
7
|
const POLL_INTERVAL_MS = 5e3;
|
|
8
8
|
const QR_REFRESH_INTERVAL_MS = 5e3;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
+
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
6
|
import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-D6phjq1-.esm.js";
|
|
@@ -5,24 +5,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esmMin = (fn, res, err) => () => {
|
|
9
|
-
if (err) throw err[0];
|
|
10
|
-
try {
|
|
11
|
-
return fn && (res = fn(fn = 0)), res;
|
|
12
|
-
} catch (e) {
|
|
13
|
-
throw err = [e], e;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
8
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
17
|
-
var __exportAll = (all, no_symbols) => {
|
|
18
|
-
let target = {};
|
|
19
|
-
for (var name in all) __defProp(target, name, {
|
|
20
|
-
get: all[name],
|
|
21
|
-
enumerable: true
|
|
22
|
-
});
|
|
23
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
24
|
-
return target;
|
|
25
|
-
};
|
|
26
9
|
var __copyProps = (to, from, except, desc) => {
|
|
27
10
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
28
11
|
key = keys[i];
|
|
@@ -37,6 +20,5 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
20
|
value: mod,
|
|
38
21
|
enumerable: true
|
|
39
22
|
}) : target, mod));
|
|
40
|
-
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
41
23
|
//#endregion
|
|
42
|
-
export { __toESM as
|
|
24
|
+
export { __toESM as n, __commonJSMin as t };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
2
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService
|
|
3
|
-
import { C as createEventBus } from "./events-
|
|
2
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-BN-Hzw82.esm.js";
|
|
3
|
+
import { C as createEventBus } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
|
-
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
7
6
|
//#region src/internal/flow-events/flowEvents.ts
|
|
8
7
|
function createFlowEventBus() {
|
|
9
8
|
const eventBus = createEventBus();
|
|
@@ -196,23 +195,6 @@ function attachFlowEventEmitter(manager, options = {}) {
|
|
|
196
195
|
return manager;
|
|
197
196
|
}
|
|
198
197
|
//#endregion
|
|
199
|
-
//#region src/internal/orchestration/advanceableErrors.ts
|
|
200
|
-
/**
|
|
201
|
-
* Module terminal-error codes an orchestrator should treat as "advance to the
|
|
202
|
-
* next step" rather than "fail the flow". Decided here, at the orchestration
|
|
203
|
-
* layer, so every consumer behaves identically. "Advanceable" is independent of
|
|
204
|
-
* "retryable" (the module's own concern): it only decides what the flow does
|
|
205
|
-
* *after* a terminal error. Note `NO_MORE_ATTEMPTS` subsumes the former
|
|
206
|
-
* `USER_IS_NOT_RECOGNIZED` entry — see the contract test for the full matrix.
|
|
207
|
-
*/
|
|
208
|
-
const ADVANCEABLE_ERROR_CODES = [
|
|
209
|
-
FACE_ERROR_CODES.NONEXISTENT_CUSTOMER,
|
|
210
|
-
FACE_ERROR_CODES.HINT_NOT_PROVIDED,
|
|
211
|
-
FACE_ERROR_CODES.NO_MORE_ATTEMPTS
|
|
212
|
-
];
|
|
213
|
-
/** True when the given code is a module terminal error the flow should advance past rather than fail on. */
|
|
214
|
-
const isAdvanceableError = (moduleErrorCode) => moduleErrorCode !== void 0 && ADVANCEABLE_ERROR_CODES.includes(moduleErrorCode);
|
|
215
|
-
//#endregion
|
|
216
198
|
//#region src/internal/orchestration/runChildModule.ts
|
|
217
199
|
const runChildModule = fromCallback(({ sendBack, input }) => {
|
|
218
200
|
const { machine, config } = input;
|
|
@@ -239,4 +221,4 @@ const runChildModule = fromCallback(({ sendBack, input }) => {
|
|
|
239
221
|
};
|
|
240
222
|
});
|
|
241
223
|
//#endregion
|
|
242
|
-
export {
|
|
224
|
+
export { attachFlowEventEmitter as n, runChildModule as t };
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
import { c as wasmCallWrapper, s as ML_CALL_MAX_POLLS } from "./wasmWebClient-B7baE-Wf.esm.js";
|
|
2
|
+
import { a as waitForWasm, n as getWasmStatus, o as warmupWasm, r as isWasmReady, s as wasmRuntime } from "./warmup-CUUnwYxe.esm.js";
|
|
3
|
+
//#region ../infra/src/wasm/utilityWasmApi.ts
|
|
4
|
+
/**
|
|
5
|
+
* Utility / metadata domain facade over {@link WasmRuntime}.
|
|
6
|
+
*
|
|
7
|
+
* Holds no WASM state — the runtime owns every handle and buffer. The one
|
|
8
|
+
* qualification: it owns exactly two JS-side flags that the C++ side does not
|
|
9
|
+
* persist and that must be replayed into it at call time —
|
|
10
|
+
*
|
|
11
|
+
* - `dsEnabled_` (deepsight) is passed as an argument on every
|
|
12
|
+
* `prc`/`poc`/`rsp`/`ssl` call;
|
|
13
|
+
* - `inspectorOpened_` is pushed into C++ inside {@link getMetadata}, right
|
|
14
|
+
* before reading the metadata, because `setInspectorOpened` may legitimately be
|
|
15
|
+
* called before WASM is initialized.
|
|
16
|
+
*
|
|
17
|
+
* Both are deliberately **unguarded** setters: they never throw, so the SDK can
|
|
18
|
+
* record them during setup and have them honored once WASM comes up.
|
|
19
|
+
*
|
|
20
|
+
* `prc`/`poc`/`rsp` are the only methods here that hold the ML semaphore.
|
|
21
|
+
* `ssl`/`stl`/`osv`/`oev`/`ckvcks` and everything else are unlocked **by design**
|
|
22
|
+
* (decision D6) — never add locking.
|
|
23
|
+
*
|
|
24
|
+
* Method names, argument order and the pre-initialization error strings are
|
|
25
|
+
* copied verbatim from the mirrored upstream `wasmApi.ts` so a WASM version bump
|
|
26
|
+
* stays a diff against upstream (`docs/processes/WASM_VERSION_MIGRATION.md`).
|
|
27
|
+
* `setSdkPlatform`'s message says "device type" on purpose — do not "fix" it.
|
|
28
|
+
*/
|
|
29
|
+
var UtilityWasmApi = class {
|
|
30
|
+
constructor(runtime = wasmRuntime) {
|
|
31
|
+
this.runtime = runtime;
|
|
32
|
+
this.inspectorOpened_ = false;
|
|
33
|
+
this.dsEnabled_ = false;
|
|
34
|
+
}
|
|
35
|
+
ens(image) {
|
|
36
|
+
return this.runtime.requireUtilityApi("Unable to encrypt the image, cpp API hasn't been initialized").ens(image);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Native label inspection has been unavailable since
|
|
40
|
+
* v2.14.49-post1; scheduled for removal in 3.0.0. Protected PRC/POC owns
|
|
41
|
+
* the authoritative decision: use `prc()` followed by `poc()` instead.
|
|
42
|
+
*/
|
|
43
|
+
isVirtualCamera(_label) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
estimatePerformance() {
|
|
47
|
+
return this.runtime.requireUtilityApi("Unable to estimate performance, cpp API hasn't been initialized").estimatePerformance();
|
|
48
|
+
}
|
|
49
|
+
async analyzeFrame(image) {
|
|
50
|
+
const message = "Unable to analyze the frame, cpp API hasn't been initialized";
|
|
51
|
+
this.runtime.requireUtilityApi(message);
|
|
52
|
+
await this.runtime.allocateImageBuffers(image.width, image.height);
|
|
53
|
+
this.runtime.writeFrame(image);
|
|
54
|
+
this.runtime.requireUtilityApi(message).analyzeFrame();
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Sets the native (C++) utility API's production mode. When `true`, the WASM
|
|
58
|
+
* module suppresses its verbose debug logging; when `false`, it emits it.
|
|
59
|
+
*
|
|
60
|
+
* @param productionMode - `true` to silence WASM logs, `false` to emit them.
|
|
61
|
+
* @throws If the WASM C++ API has not been initialized yet.
|
|
62
|
+
*/
|
|
63
|
+
async setProductionMode(productionMode) {
|
|
64
|
+
this.runtime.requireUtilityApi("Unable to set production mode, cpp API hasn't been initialized").setProductionMode(productionMode);
|
|
65
|
+
}
|
|
66
|
+
setSdkVersion(sdkVersion) {
|
|
67
|
+
this.runtime.requireUtilityApi("Unable to set sdk version, cpp API hasn't been initialized").setSdkVersion(sdkVersion);
|
|
68
|
+
}
|
|
69
|
+
setSdkPlatform(sdkPlatform) {
|
|
70
|
+
this.runtime.requireUtilityApi("Unable to set device type, cpp API hasn't been initialized").setSdkPlatform(sdkPlatform);
|
|
71
|
+
}
|
|
72
|
+
setDeviceInfo(deviceInfo, overrideExisting = true) {
|
|
73
|
+
this.runtime.requireUtilityApi("Unable to set device info, cpp API hasn't been initialized").setDeviceInfo(deviceInfo, overrideExisting);
|
|
74
|
+
}
|
|
75
|
+
setBrowserInfo(browserInfo, overrideExisting = true) {
|
|
76
|
+
this.runtime.requireUtilityApi("Unable to set browser info, cpp API hasn't been initialized").setBrowserInfo(browserInfo, overrideExisting);
|
|
77
|
+
}
|
|
78
|
+
setCameraInfo(cameraInfo, overrideExisting = true) {
|
|
79
|
+
this.runtime.requireUtilityApi("Unable to set camera info, cpp API hasn't been initialized").setCameraInfo(cameraInfo, overrideExisting);
|
|
80
|
+
}
|
|
81
|
+
setZc(zc) {
|
|
82
|
+
this.runtime.requireUtilityApi("Unable to set zc, cpp API hasn't been initialized").setZc(zc);
|
|
83
|
+
}
|
|
84
|
+
setMotionStatus(motionStatus) {
|
|
85
|
+
this.runtime.requireUtilityApi("Unable to set motion status, cpp API hasn't been initialized").setMotionStatus(motionStatus);
|
|
86
|
+
}
|
|
87
|
+
setInspectorOpened(inspectorOpened) {
|
|
88
|
+
this.inspectorOpened_ = inspectorOpened;
|
|
89
|
+
}
|
|
90
|
+
getInspectorOpened() {
|
|
91
|
+
return this.inspectorOpened_;
|
|
92
|
+
}
|
|
93
|
+
setBackgroundMode(backgroundMode) {
|
|
94
|
+
this.runtime.requireUtilityApi("Unable to set background mode, cpp API hasn't been initialized").setBackgroundMode(backgroundMode);
|
|
95
|
+
}
|
|
96
|
+
setDsEnabled(enabled) {
|
|
97
|
+
this.dsEnabled_ = enabled;
|
|
98
|
+
}
|
|
99
|
+
getCheck() {
|
|
100
|
+
return this.runtime.requireUtilityApi("Unable to get check, cpp API hasn't been initialized").getCheck();
|
|
101
|
+
}
|
|
102
|
+
getMetadata() {
|
|
103
|
+
const utilityApi = this.runtime.requireUtilityApi("Unable to get metadata, cpp API hasn't been initialized");
|
|
104
|
+
utilityApi.setInspectorOpened(this.inspectorOpened_);
|
|
105
|
+
return utilityApi.getMetadata();
|
|
106
|
+
}
|
|
107
|
+
async prc() {
|
|
108
|
+
const message = "Unable to prc, cpp API hasn't been initialized";
|
|
109
|
+
this.runtime.requireUtilityApi(message);
|
|
110
|
+
await wasmCallWrapper(this.runtime.mlCallSemaphore, () => this.runtime.requireUtilityApi(message).prc(this.dsEnabled_, false), true, {
|
|
111
|
+
maxPolls: ML_CALL_MAX_POLLS,
|
|
112
|
+
label: "prc"
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
async poc(output) {
|
|
116
|
+
const message = "Unable to poc, cpp API hasn't been initialized";
|
|
117
|
+
this.runtime.requireUtilityApi(message);
|
|
118
|
+
await wasmCallWrapper(this.runtime.mlCallSemaphore, () => this.runtime.requireUtilityApi(message).poc(this.dsEnabled_, output), true, {
|
|
119
|
+
maxPolls: ML_CALL_MAX_POLLS,
|
|
120
|
+
label: "poc"
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
async rsp() {
|
|
124
|
+
const message = "Unable to rsp, cpp API hasn't been initialized";
|
|
125
|
+
this.runtime.requireUtilityApi(message);
|
|
126
|
+
await wasmCallWrapper(this.runtime.mlCallSemaphore, () => this.runtime.requireUtilityApi(message).rsp(this.dsEnabled_), true, {
|
|
127
|
+
maxPolls: ML_CALL_MAX_POLLS,
|
|
128
|
+
label: "rsp"
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
ssl() {
|
|
132
|
+
this.runtime.requireUtilityApi("Unable to ssl, cpp API hasn't been initialized").ssl(this.dsEnabled_);
|
|
133
|
+
}
|
|
134
|
+
stl() {
|
|
135
|
+
this.runtime.requireUtilityApi("Unable to stl, cpp API hasn't been initialized").stl();
|
|
136
|
+
}
|
|
137
|
+
osv() {
|
|
138
|
+
this.runtime.requireUtilityApi("Unable to set sensor beginning timestamp, cpp API hasn't been initialized").osv();
|
|
139
|
+
}
|
|
140
|
+
oev() {
|
|
141
|
+
this.runtime.requireUtilityApi("Unable to set sensor ending timestamp, cpp API hasn't been initialized").oev();
|
|
142
|
+
}
|
|
143
|
+
ckvcks(data) {
|
|
144
|
+
this.runtime.requireUtilityApi("Unable to ckvcks, cpp API hasn't been initialized").ckvcks(data);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Clear all states, not related to ml pipelines
|
|
148
|
+
*/
|
|
149
|
+
resetOther() {
|
|
150
|
+
this.runtime.requireUtilityApi("Unable to reset other states, cpp API hasn't been initialized").resetOther();
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Full reset. Pipelines first, then the non-pipeline state — the order the
|
|
154
|
+
* mirrored upstream wrapper uses.
|
|
155
|
+
*/
|
|
156
|
+
reset() {
|
|
157
|
+
this.runtime.resetAllPipelines();
|
|
158
|
+
this.resetOther();
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
const utilityWasmApi = new UtilityWasmApi();
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region ../infra/src/providers/wasm/BaseWasmProvider.ts
|
|
164
|
+
/**
|
|
165
|
+
* Base provider class that abstracts common WASM functionality.
|
|
166
|
+
* This serves as a foundation for specific ML capability providers
|
|
167
|
+
* like FaceDetectionProvider and IdCaptureProvider.
|
|
168
|
+
*/
|
|
169
|
+
var BaseWasmProvider = class {
|
|
170
|
+
/**
|
|
171
|
+
* Creates a new BaseWasmProvider
|
|
172
|
+
* @param pipelineType - The WASM pipeline type this provider uses
|
|
173
|
+
*/
|
|
174
|
+
constructor(pipelineType) {
|
|
175
|
+
this._isInitialized = false;
|
|
176
|
+
this.pipelineType = pipelineType;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Returns whether this provider has been initialized.
|
|
180
|
+
*/
|
|
181
|
+
get initialized() {
|
|
182
|
+
return this._isInitialized;
|
|
183
|
+
}
|
|
184
|
+
getPipelineType() {
|
|
185
|
+
if (this.pipelineType === void 0) throw new Error(`${this.constructor.name} has no pipeline type configured.`);
|
|
186
|
+
return this.pipelineType;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Initializes the provider by ensuring WASM is loaded
|
|
190
|
+
* @param config - Provider configuration
|
|
191
|
+
* @param pipeline - The pipeline type to warm up ('selfie', 'idCapture', etc.)
|
|
192
|
+
*/
|
|
193
|
+
async initializeBase(config, pipeline) {
|
|
194
|
+
if (this._isInitialized) return;
|
|
195
|
+
const status = getWasmStatus();
|
|
196
|
+
if (status.isLoading || isWasmReady() || status.error) {
|
|
197
|
+
if (!(status.isLoading && status.loadedPipelines.includes(pipeline))) await waitForWasm();
|
|
198
|
+
if (this.pipelineType !== void 0 && !getWasmStatus().loadedPipelines.includes(pipeline)) throw new Error(`WASM pipeline "${pipeline}" is not loaded.`);
|
|
199
|
+
} else {
|
|
200
|
+
if (!config.wasmPath || !config.glueCodePath && !config.loadGlue) throw new Error("WASM path and glue code path are required. Call warmupWasm() first.");
|
|
201
|
+
await warmupWasm({
|
|
202
|
+
...config,
|
|
203
|
+
wasmPath: config.wasmPath,
|
|
204
|
+
glueCodePath: config.glueCodePath ?? "",
|
|
205
|
+
pipelines: [pipeline]
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
this._isInitialized = true;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Ensures the provider is initialized before performing operations.
|
|
212
|
+
* @throws Error if not initialized
|
|
213
|
+
*/
|
|
214
|
+
ensureInitialized() {
|
|
215
|
+
if (!this._isInitialized) throw new Error(`${this.constructor.name} not initialized. Call initialize() first.`);
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Processes a frame through the WASM pipeline
|
|
219
|
+
* @param image - Image data to process
|
|
220
|
+
* @returns The pipeline result (type depends on pipeline - WASM returns any)
|
|
221
|
+
*/
|
|
222
|
+
async processFrameWasm(image) {
|
|
223
|
+
this.ensureInitialized();
|
|
224
|
+
const pipelineType = this.getPipelineType();
|
|
225
|
+
await wasmRuntime.allocateImageBuffers(image.width, image.height);
|
|
226
|
+
await wasmRuntime.handleDetectionCallAndUpdateState(pipelineType);
|
|
227
|
+
return await wasmRuntime.process(pipelineType, image);
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Resets the pipeline to its initial state.
|
|
231
|
+
* Safe to call even if not initialized (no-op in that case).
|
|
232
|
+
*/
|
|
233
|
+
reset() {
|
|
234
|
+
if (this._isInitialized && this.pipelineType !== void 0) wasmRuntime.resetPipeline(this.pipelineType);
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Disposes of resources and resets initialization state.
|
|
238
|
+
* Safe to call even if not initialized.
|
|
239
|
+
*/
|
|
240
|
+
async dispose() {
|
|
241
|
+
this.reset();
|
|
242
|
+
this._isInitialized = false;
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region ../infra/src/providers/wasm/WasmUtilProvider.ts
|
|
247
|
+
var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
|
|
248
|
+
static async getInstance() {
|
|
249
|
+
if (WasmUtilProvider.instance) return WasmUtilProvider.instance;
|
|
250
|
+
if (WasmUtilProvider.initPromise) return WasmUtilProvider.initPromise;
|
|
251
|
+
WasmUtilProvider.initPromise = (async () => {
|
|
252
|
+
const instance = new WasmUtilProvider();
|
|
253
|
+
await instance.initializeBase({}, "selfie");
|
|
254
|
+
WasmUtilProvider.instance = instance;
|
|
255
|
+
return instance;
|
|
256
|
+
})();
|
|
257
|
+
return WasmUtilProvider.initPromise;
|
|
258
|
+
}
|
|
259
|
+
static resetInstance() {
|
|
260
|
+
WasmUtilProvider.instance = void 0;
|
|
261
|
+
WasmUtilProvider.initPromise = void 0;
|
|
262
|
+
}
|
|
263
|
+
constructor() {
|
|
264
|
+
super(void 0);
|
|
265
|
+
}
|
|
266
|
+
async initialize(config) {
|
|
267
|
+
if (this.initialized) return;
|
|
268
|
+
const pipeline = config.pipelines?.[0] ?? "selfie";
|
|
269
|
+
await this.initializeBase(config, pipeline);
|
|
270
|
+
}
|
|
271
|
+
async processFrame(_image) {
|
|
272
|
+
throw new Error("WasmUtilProvider does not support frame processing. Use encryptImage() instead.");
|
|
273
|
+
}
|
|
274
|
+
encryptImage(image) {
|
|
275
|
+
this.ensureInitialized();
|
|
276
|
+
return utilityWasmApi.ens(image);
|
|
277
|
+
}
|
|
278
|
+
setSdkVersion(version) {
|
|
279
|
+
this.ensureInitialized();
|
|
280
|
+
utilityWasmApi.setSdkVersion(version);
|
|
281
|
+
}
|
|
282
|
+
setSdkPlatform(platform) {
|
|
283
|
+
this.ensureInitialized();
|
|
284
|
+
utilityWasmApi.setSdkPlatform(platform);
|
|
285
|
+
}
|
|
286
|
+
setDeviceInfo(deviceInfo, overrideExisting = true) {
|
|
287
|
+
this.ensureInitialized();
|
|
288
|
+
utilityWasmApi.setDeviceInfo(deviceInfo, overrideExisting);
|
|
289
|
+
}
|
|
290
|
+
setBrowserInfo(browserInfo, overrideExisting = true) {
|
|
291
|
+
this.ensureInitialized();
|
|
292
|
+
utilityWasmApi.setBrowserInfo(browserInfo, overrideExisting);
|
|
293
|
+
}
|
|
294
|
+
setCameraInfo(cameraInfo, overrideExisting = true) {
|
|
295
|
+
this.ensureInitialized();
|
|
296
|
+
utilityWasmApi.setCameraInfo(cameraInfo, overrideExisting);
|
|
297
|
+
}
|
|
298
|
+
setMotionStatus(status) {
|
|
299
|
+
this.ensureInitialized();
|
|
300
|
+
utilityWasmApi.setMotionStatus(status);
|
|
301
|
+
}
|
|
302
|
+
setBackgroundMode(backgroundMode) {
|
|
303
|
+
this.ensureInitialized();
|
|
304
|
+
utilityWasmApi.setBackgroundMode(backgroundMode);
|
|
305
|
+
}
|
|
306
|
+
setOnDeviceMode(enabled) {
|
|
307
|
+
wasmRuntime.setOnDeviceMode(enabled);
|
|
308
|
+
}
|
|
309
|
+
setZc(zc) {
|
|
310
|
+
this.ensureInitialized();
|
|
311
|
+
utilityWasmApi.setZc(zc);
|
|
312
|
+
}
|
|
313
|
+
setInspectorOpened(opened) {
|
|
314
|
+
this.ensureInitialized();
|
|
315
|
+
utilityWasmApi.setInspectorOpened(opened);
|
|
316
|
+
}
|
|
317
|
+
getInspectorOpened() {
|
|
318
|
+
return utilityWasmApi.getInspectorOpened();
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Toggles the WASM module's production mode. When `true`, the native module
|
|
322
|
+
* suppresses its verbose debug logging/console output; when `false`, those
|
|
323
|
+
* logs are emitted. The SDK forces this to `true` by default and only flips
|
|
324
|
+
* it off when the caller opts in via `setup({ wasm: { showLogs: true } })`.
|
|
325
|
+
*
|
|
326
|
+
* @param productionMode - `true` to silence WASM logs, `false` to emit them.
|
|
327
|
+
*/
|
|
328
|
+
async setProductionMode(productionMode) {
|
|
329
|
+
this.ensureInitialized();
|
|
330
|
+
await utilityWasmApi.setProductionMode(productionMode);
|
|
331
|
+
}
|
|
332
|
+
getMetadata() {
|
|
333
|
+
this.ensureInitialized();
|
|
334
|
+
return utilityWasmApi.getMetadata();
|
|
335
|
+
}
|
|
336
|
+
async analyzeFrame(image) {
|
|
337
|
+
this.ensureInitialized();
|
|
338
|
+
await utilityWasmApi.analyzeFrame(image);
|
|
339
|
+
}
|
|
340
|
+
getCheck() {
|
|
341
|
+
this.ensureInitialized();
|
|
342
|
+
return utilityWasmApi.getCheck();
|
|
343
|
+
}
|
|
344
|
+
getPipelineState() {
|
|
345
|
+
this.ensureInitialized();
|
|
346
|
+
return wasmRuntime.getPipelineState();
|
|
347
|
+
}
|
|
348
|
+
estimatePerformance() {
|
|
349
|
+
this.ensureInitialized();
|
|
350
|
+
return utilityWasmApi.estimatePerformance();
|
|
351
|
+
}
|
|
352
|
+
isVirtualCamera(label) {
|
|
353
|
+
return utilityWasmApi.isVirtualCamera(label);
|
|
354
|
+
}
|
|
355
|
+
async prc() {
|
|
356
|
+
this.ensureInitialized();
|
|
357
|
+
await utilityWasmApi.prc();
|
|
358
|
+
}
|
|
359
|
+
async poc(output) {
|
|
360
|
+
this.ensureInitialized();
|
|
361
|
+
await utilityWasmApi.poc(output);
|
|
362
|
+
}
|
|
363
|
+
async rsp() {
|
|
364
|
+
this.ensureInitialized();
|
|
365
|
+
await utilityWasmApi.rsp();
|
|
366
|
+
}
|
|
367
|
+
ssl() {
|
|
368
|
+
this.ensureInitialized();
|
|
369
|
+
utilityWasmApi.ssl();
|
|
370
|
+
}
|
|
371
|
+
stl() {
|
|
372
|
+
this.ensureInitialized();
|
|
373
|
+
utilityWasmApi.stl();
|
|
374
|
+
}
|
|
375
|
+
osv() {
|
|
376
|
+
this.ensureInitialized();
|
|
377
|
+
utilityWasmApi.osv();
|
|
378
|
+
}
|
|
379
|
+
oev() {
|
|
380
|
+
this.ensureInitialized();
|
|
381
|
+
utilityWasmApi.oev();
|
|
382
|
+
}
|
|
383
|
+
ckvcks(data) {
|
|
384
|
+
this.ensureInitialized();
|
|
385
|
+
utilityWasmApi.ckvcks(data);
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
//#endregion
|
|
389
|
+
//#region ../infra/src/storage/safeStorage.ts
|
|
390
|
+
/**
|
|
391
|
+
* Storage resolvers that tolerate hosts which make Web Storage unreachable.
|
|
392
|
+
*
|
|
393
|
+
* Two hostile shapes occur in the field, and they fail differently:
|
|
394
|
+
*
|
|
395
|
+
* 1. **Deleted bare global** — a page mitigates self-XSS with
|
|
396
|
+
* `delete window.localStorage` and keeps a module-private reference. Since
|
|
397
|
+
* `window` *is* the global object, the identifier stops resolving: a bare
|
|
398
|
+
* read throws `ReferenceError`. `typeof` is the only safe probe, because it
|
|
399
|
+
* is the one operator that tolerates an unresolvable identifier.
|
|
400
|
+
* 2. **Blocked storage** — a webview or a cross-origin/partitioned context
|
|
401
|
+
* makes the accessor itself throw (`SecurityError`). Here `typeof` is *not*
|
|
402
|
+
* enough: it invokes the getter, so the throw escapes the guard.
|
|
403
|
+
*
|
|
404
|
+
* Handling only one shape leaves the other live, so always go through these
|
|
405
|
+
* resolvers instead of touching the globals directly. A `null` return means
|
|
406
|
+
* "no storage in this host" — callers degrade, they do not throw.
|
|
407
|
+
*/
|
|
408
|
+
function resolveLocalStorage() {
|
|
409
|
+
try {
|
|
410
|
+
return typeof localStorage === "undefined" ? null : localStorage;
|
|
411
|
+
} catch {
|
|
412
|
+
return null;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
function resolveSessionStorage() {
|
|
416
|
+
try {
|
|
417
|
+
return typeof sessionStorage === "undefined" ? null : sessionStorage;
|
|
418
|
+
} catch {
|
|
419
|
+
return null;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
//#endregion
|
|
423
|
+
export { utilityWasmApi as a, BaseWasmProvider as i, resolveSessionStorage as n, WasmUtilProvider as r, resolveLocalStorage as t };
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
|
-
import { a as SelfieCaptureOnlyMachine, c as SelfieActor, g as
|
|
3
|
-
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
4
|
-
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-Hmd7U0JA.js";
|
|
2
|
+
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-BeUl8fl1.js";
|
|
5
3
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-Bnl58jUQ.js";
|
|
5
|
+
import { n as DeepsightService } from "./StreamCanvasCapture-_8gdW5Lk.js";
|
|
6
|
+
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
7
|
+
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-4RRLi21P.js";
|
|
8
8
|
//#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
|
|
9
9
|
type SelfieCaptureOnlyState = FaceCaptureManagerState;
|
|
10
10
|
type SelfieCaptureOnlyManager = FaceCaptureManager;
|