@incodetech/core 2.2.0 → 2.3.0-rc.0
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-C_9o3L2L.esm.js} +1 -1
- package/dist/{BrowserVisibilityObserverProvider-BX1BiLDK.esm.js → BrowserVisibilityObserverProvider-BrJN1B8A.esm.js} +2 -0
- package/dist/FaceDetectionProvider-DTetAE8H.esm.js +476 -0
- package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +36 -0
- package/dist/{IIdCaptureCapability-DHTT3FC2.d.ts → IIdCaptureCapability-RNiFhvXR.d.ts} +7 -33
- package/dist/IWasmUtilCapability-CXXDA5l1.d.ts +159 -0
- package/dist/{MotionSensorProvider-DGiV77J_.esm.js → MotionSensorProvider-BgTYwg9L.esm.js} +1 -1
- package/dist/{deepsightService-DLVQS_RH.d.ts → StreamCanvasCapture-B3YT2Bt6.d.ts} +54 -41
- package/dist/{StreamCanvasCapture-D2XcXCZ4.esm.js → StreamCanvasCapture-C9jtgBdT.esm.js} +2 -2
- package/dist/{addressSearch-D1XpBdUS.esm.js → addressSearch-BRSu_aGA.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-Bg9ynGum.esm.js} +2 -2
- package/dist/{antifraudStateMachine-Bf_JVNwn.esm.js → antifraudStateMachine-BHxehiJZ.esm.js} +1 -1
- package/dist/{apiError-BA1d_au0.esm.js → apiError-D0v5hFyN.esm.js} +14 -2
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-zh9TC62P.esm.js → authenticationManager-C4B4-29g.esm.js} +5 -5
- package/dist/{authenticationManager-BBMGTcwW.d.ts → authenticationManager-DXTIUcma.d.ts} +7 -1
- package/dist/{authenticationStateMachine-xzi-vnvE.esm.js → authenticationStateMachine-DJ0zUm-A.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-Bfvkq7Cy.esm.js +69 -0
- package/dist/certificateIssuanceManager-DCgEidHz.d.ts +312 -0
- package/dist/{certificateIssuanceStateMachine-D_R92TYu.esm.js → certificateIssuanceStateMachine-BBD5h8c4.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-B5Vqdez-.esm.js} +2 -2
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
- package/dist/{consentStateMachine-D9D4ON8Z.esm.js → consentStateMachine-DbUmqWgV.esm.js} +1 -1
- package/dist/createCameraCycleOwnership-DQ5-F2oW.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-QMOGwHXR.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-D1ppROcF.esm.js} +2 -2
- package/dist/{curpValidationManager-DVGr7Fq7.d.ts → curpValidationManager-SSKNrm5Z.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Ds7KMacK.esm.js → curpValidationStateMachine-DvUPC_8S.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-2j_PBq4U.esm.js +264 -0
- package/dist/customFieldsManager-8-W2KY4n.d.ts +141 -0
- package/dist/customWatchlistManager-DUVrEdw9.esm.js +73 -0
- package/dist/customWatchlistManager-PBWHr_oM.d.ts +64 -0
- package/dist/{customWatchlistStateMachine-YWSgKLbF.esm.js → customWatchlistStateMachine-qZVgkKgP.esm.js} +1 -1
- package/dist/{deepsightLoader--wMKWECS.esm.js → deepsightLoader-Dm7ejW4v.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-DR_Wv-3H.esm.js} +2 -2
- package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DensIj5F.d.ts} +83 -83
- package/dist/{documentCaptureStateMachine-BM4Ex_5x.esm.js → documentCaptureStateMachine-CWOATHfE.esm.js} +5 -5
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-D5R_uxLQ.d.ts} +25 -3
- package/dist/{dynamicFormsManager-fFVIRBNv.esm.js → dynamicFormsManager-Dt98SDfV.esm.js} +16 -5
- package/dist/{dynamicFormsStateMachine-D6D7oEYk.esm.js → dynamicFormsStateMachine-obKr4IIp.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-DNZKrKF3.esm.js} +2 -2
- package/dist/{ekybStateMachine-3nlnqdlr.esm.js → ekybStateMachine-DjhHQXZ8.esm.js} +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-DgT48ky6.esm.js → ekycManager-CmQBpeiI.esm.js} +2 -2
- package/dist/{ekycStateMachine-CQwqiR-R.esm.js → ekycStateMachine-CmdW2gVm.esm.js} +2 -2
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +2 -2
- package/dist/electronicSignatureManager-Ds-KEVTq.d.ts +2786 -0
- package/dist/{electronicSignatureManager-DGbAJ00W.esm.js → electronicSignatureManager-DzulxM4_.esm.js} +357 -51
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BY0jeYwR.esm.js → emailManager-B5ek_UfM.esm.js} +2 -2
- package/dist/{emailStateMachine-Crw8QVmc.esm.js → emailStateMachine-CyPFZ7dW.esm.js} +1 -1
- package/dist/{endpoints-CCzL3XD_.esm.js → endpoints-D3B9mUHh.esm.js} +24 -7
- 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-BxWPpxyd.d.ts → faceCaptureManagerFactory-CvtqcLxs.d.ts} +87 -54
- package/dist/{faceCaptureManagerFactory-CVnZ0fa5.esm.js → faceCaptureManagerFactory-pCmG4MeF.esm.js} +68 -7
- package/dist/faceCaptureSetup-BSextack.esm.js +2106 -0
- package/dist/{faceMatchManager-Ri4UbNz0.esm.js → faceMatchManager-Caal2zyV.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-20DdZ3jg.esm.js → faceMatchStateMachine-BUc5FXYy.esm.js} +1 -1
- package/dist/{feature-management-CPQ4qv3F.esm.js → feature-management-B0sGlozZ.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-BIs6HPJG.esm.js} +2 -2
- package/dist/fiscal-qr.d.ts +2 -56
- package/dist/fiscal-qr.esm.js +2 -308
- package/dist/fiscalQrManager-Bp_-3LJr.esm.js +34131 -0
- package/dist/fiscalQrManager-CHcBJwUM.d.ts +68 -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-CLtbWhSK.esm.js} +2 -2
- package/dist/{flowServices-f5Ruz7R9.esm.js → flowServices-B5FwukTQ.esm.js} +91 -26
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CH6RfqFH.esm.js → geolocationManager-DIw-xq9a.esm.js} +2 -2
- package/dist/{geolocationStateMachine-DmbWFely.esm.js → geolocationStateMachine-DpG0TFOU.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-D02vT4yY.d.ts +63 -0
- package/dist/governmentValidationManager-TjC9iVjH.esm.js +79 -0
- package/dist/governmentValidationStateMachine-D1ZnEqdd.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-BcxjQDI3.esm.js +484 -0
- package/dist/{idCaptureManager-CqrqSjJV.d.ts → idCaptureManager-CvmHOWWd.d.ts} +227 -39
- package/dist/{idCaptureManager-BYwTZ2H8.esm.js → idCaptureManager-Vby8oYqh.esm.js} +259 -46
- package/dist/{idCaptureServices-44kwQItl.esm.js → idCaptureServices-CJIxD9ep.esm.js} +342 -31
- package/dist/idCaptureStateMachine-CmqihkUy.esm.js +5343 -0
- package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
- package/dist/{idOcrManager-BIQYQXXj.esm.js → idOcrManager-DHU22hVn.esm.js} +2 -2
- package/dist/{idOcrStateMachine-cSxzHpHt.esm.js → idOcrStateMachine-33UvRAHE.esm.js} +1 -1
- package/dist/{idVerificationManager-JpV_SAsl.esm.js → idVerificationManager-CyaixD0D.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-nPeUNyFq.esm.js → idVerificationStateMachine-BPGrQZEm.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-kNCg9AbD.esm.js → identityReuseManager-CWaNHBO3.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-DyulxDjP.esm.js → identityReuseStateMachine-CQgnATo5.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-DyPzUmsZ.d.ts → mandatoryConsentManager-CJSyhTpi.d.ts} +5 -5
- package/dist/{mandatoryConsentManager-B4Niyg_u.esm.js → mandatoryConsentManager-Du-m-tZ_.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-B4-1u-L8.esm.js → mandatoryConsentStateMachine-DSDAk7WZ.esm.js} +1 -1
- package/dist/multipartRecordingService-B3C_zlev.esm.js +594 -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-N1-sbrY4.esm.js} +2 -2
- package/dist/{phoneStateMachine-Ba0wKHyX.esm.js → phoneStateMachine-jl8LJKCo.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/recordingsRepository-CCWy13M-.esm.js +72 -0
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-y4VQB11M.esm.js → redirectToMobileManager-DsFzdTwA.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-Cyv2x0PP.esm.js → redirectToMobileStateMachine-v3otpT-L.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-TuyGE00X.esm.js} +3 -21
- package/dist/safeStorage-B-trhxg6.esm.js +423 -0
- package/dist/{sdkVersion-D1Bm59g6.esm.js → sdkVersion-CLxKvdyz.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-C77GXJH6.esm.js} +30 -4
- package/dist/{selfieManager-Bj6B2ZVy.esm.js → selfieManager-CihVnODO.esm.js} +5 -5
- package/dist/{selfieManager-DwlCppg0.d.ts → selfieManager-D1KRJ39M.d.ts} +8 -11
- package/dist/selfieStateMachine-fwMmNtOi.esm.js +69 -0
- package/dist/{session-BFdLgN4i.esm.js → session-BHIeAamR.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-BLoK7SP9.esm.js} +187 -68
- package/dist/{setup-BgoWtvIS.d.ts → setup-Cv-JM9QC.d.ts} +63 -69
- package/dist/{setup-BIAtLa8k.esm.js → setup-msLybMbC.esm.js} +226 -100
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-Ca43yhwk.esm.js → signatureManager-ChsB-nMD.esm.js} +2 -2
- package/dist/{signatureStateMachine-K1LMRrxG.esm.js → signatureStateMachine-BHPwkJZS.esm.js} +1 -1
- package/dist/{src-0Jurt29N.esm.js → src-35ekGRzK.esm.js} +1 -1
- package/dist/{stats-B0nFKawG.esm.js → stats-DkK-f8JT.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService---iW2KKJ.esm.js → trueSightService-CKrrfV0Q.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-CM-jtjJ2.d.ts} +6 -81
- package/dist/{types-Bdf8_LYB2.d.ts → types-CjKBS37a2.d.ts} +303 -13
- 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-ZT1XFIJ8.d.ts +6 -0
- package/dist/video-selfie.d.ts +59 -35
- package/dist/video-selfie.esm.js +510 -601
- package/dist/{videoSelfieCameraWarmer-NEhFZvWx.esm.js → videoSelfieCameraWarmer-CB1IzZkt.esm.js} +14 -153
- package/dist/videoSelfieFlowModuleMachine-BUe2uACW.esm.js +32 -0
- package/dist/{videoSelfieStepDetector-D3oo2ofo.d.ts → videoSelfieStepDetector-5YHFe0Mq.d.ts} +21 -5
- package/dist/virtualCameraCheck-WOloJ-do.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-CpuuB1J2.esm.js +107 -0
- package/dist/watchlistForBusinessManager-CsnJnG-C.d.ts +99 -0
- package/dist/{watchlistForBusinessStateMachine-CxFnlshm.esm.js → watchlistForBusinessStateMachine-DEzgjz7C.esm.js} +13 -6
- package/dist/{watchlistManager-LoNZH9qm.esm.js → watchlistManager-CI8BHFob.esm.js} +2 -2
- package/dist/{watchlistStateMachine-DIKQDoUT.esm.js → watchlistStateMachine-DvOby3a-.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
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { c as WasmPipeline } from "./warmup-Cis2p6O0.js";
|
|
2
|
+
import { _ as MLProviderConfig } from "./createFaceAvatar-BlcTYgJv.js";
|
|
3
|
+
//#region ../infra/src/capabilities/IRecordingCapability.d.ts
|
|
4
|
+
type RecordingPublisher = {
|
|
5
|
+
getStreamId: () => string | undefined;
|
|
6
|
+
replaceVideoTrack: (track: MediaStreamTrack) => Promise<void>;
|
|
7
|
+
destroy: () => void;
|
|
8
|
+
};
|
|
9
|
+
type RecordingConnection = {
|
|
10
|
+
sessionId: string | undefined;
|
|
11
|
+
publisher: RecordingPublisher;
|
|
12
|
+
disconnect: () => Promise<void>;
|
|
13
|
+
};
|
|
14
|
+
type RecordingConnectionEvents = {
|
|
15
|
+
onSessionConnected?: (sessionId: string | undefined) => void;
|
|
16
|
+
onSessionDisconnected?: (sessionId: string | undefined) => void;
|
|
17
|
+
onSessionException?: (params: {
|
|
18
|
+
name?: string;
|
|
19
|
+
message?: string;
|
|
20
|
+
sessionId?: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
onPublisherCreated?: (params: {
|
|
23
|
+
streamId?: string;
|
|
24
|
+
sessionId?: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
onPublisherError?: (params: {
|
|
27
|
+
message?: string;
|
|
28
|
+
sessionId?: string;
|
|
29
|
+
streamId?: string;
|
|
30
|
+
}) => void;
|
|
31
|
+
};
|
|
32
|
+
type ConnectRecordingParams = {
|
|
33
|
+
sessionToken: string;
|
|
34
|
+
stream: MediaStream;
|
|
35
|
+
events?: RecordingConnectionEvents;
|
|
36
|
+
};
|
|
37
|
+
type IRecordingCapability = {
|
|
38
|
+
/**
|
|
39
|
+
* Connects to a recording session and publishes the provided media stream.
|
|
40
|
+
* Returns a connection handle that can be disconnected and used to manage the publisher.
|
|
41
|
+
*/
|
|
42
|
+
connect: (params: ConnectRecordingParams) => Promise<RecordingConnection>;
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region ../infra/src/capabilities/IStorageCapability.d.ts
|
|
46
|
+
/**
|
|
47
|
+
* Storage capability interface for abstracting storage operations.
|
|
48
|
+
* Enables swapping between browser localStorage and future WASM-based storage.
|
|
49
|
+
*/
|
|
50
|
+
interface IStorageCapability {
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves a value from storage.
|
|
53
|
+
* @param key - The storage key
|
|
54
|
+
* @returns The stored value or null if not found
|
|
55
|
+
*/
|
|
56
|
+
get<T>(key: string): Promise<T | null>;
|
|
57
|
+
/**
|
|
58
|
+
* Stores a value in storage.
|
|
59
|
+
* @param key - The storage key
|
|
60
|
+
* @param value - The value to store (will be serialized)
|
|
61
|
+
*/
|
|
62
|
+
set<T>(key: string, value: T): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Removes a value from storage.
|
|
65
|
+
* @param key - The storage key to remove
|
|
66
|
+
*/
|
|
67
|
+
remove(key: string): Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* Clears all values from storage.
|
|
70
|
+
*/
|
|
71
|
+
clear(): Promise<void>;
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region ../infra/src/capabilities/IWasmUtilCapability.d.ts
|
|
75
|
+
type WasmUtilConfig = MLProviderConfig & {
|
|
76
|
+
pipelines?: WasmPipeline[];
|
|
77
|
+
};
|
|
78
|
+
type VirtualCameraCheckOutput = {
|
|
79
|
+
canvas: HTMLCanvasElement | null;
|
|
80
|
+
itr: boolean | null;
|
|
81
|
+
skipped: boolean | null;
|
|
82
|
+
};
|
|
83
|
+
type IWasmUtilCapability = {
|
|
84
|
+
/**
|
|
85
|
+
* Whether the provider has been initialized and is ready to be used.
|
|
86
|
+
*/
|
|
87
|
+
readonly initialized: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Initializes the provider with the given configuration.
|
|
90
|
+
* If WASM was already warmed up via `warmupWasm()`, this returns almost instantly.
|
|
91
|
+
* @param config - Provider configuration including WASM paths
|
|
92
|
+
*/
|
|
93
|
+
initialize(config: WasmUtilConfig): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Encrypts a base64 image using the WASM utility API.
|
|
96
|
+
* @param image - Base64 image string (no data URL prefix)
|
|
97
|
+
* @returns Encrypted string
|
|
98
|
+
*/
|
|
99
|
+
encryptImage(image: string): string;
|
|
100
|
+
setSdkVersion(version: string): void;
|
|
101
|
+
setSdkPlatform(platform: string): void;
|
|
102
|
+
setDeviceInfo(deviceInfo: object, overrideExisting?: boolean): void;
|
|
103
|
+
setBrowserInfo(browserInfo: object, overrideExisting?: boolean): void;
|
|
104
|
+
setCameraInfo(cameraInfo: object, overrideExisting?: boolean): void;
|
|
105
|
+
setMotionStatus(status: string): void;
|
|
106
|
+
setBackgroundMode(backgroundMode: boolean): void;
|
|
107
|
+
/**
|
|
108
|
+
* @deprecated Compatibility-only no-op since ml-wasm-kit v2.14.49-post1.
|
|
109
|
+
* Both values are accepted before or after initialization and never invoke
|
|
110
|
+
* native code. The public `fingerprint` option controls client-side
|
|
111
|
+
* submission; native fingerprint lifecycle remains owned by WASM. Not
|
|
112
|
+
* scheduled for removal: the wire stays live so ENG-55971 can restore the
|
|
113
|
+
* native fingerprint gate without a JS change. Use `setup({ fingerprint })`
|
|
114
|
+
* for client-side gating.
|
|
115
|
+
*/
|
|
116
|
+
setOnDeviceMode(enabled: boolean): void;
|
|
117
|
+
setZc(zc: string): void;
|
|
118
|
+
setInspectorOpened(opened: boolean): void;
|
|
119
|
+
/**
|
|
120
|
+
* Returns whether the DevTools inspector has been detected as open.
|
|
121
|
+
* Safe to call before WASM initialization (returns the in-memory flag).
|
|
122
|
+
*/
|
|
123
|
+
getInspectorOpened(): boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Toggles the WASM module's production mode. When `true`, the native module
|
|
126
|
+
* suppresses its verbose debug logging/console output.
|
|
127
|
+
*/
|
|
128
|
+
setProductionMode(productionMode: boolean): Promise<void>;
|
|
129
|
+
getMetadata(): string;
|
|
130
|
+
analyzeFrame(image: ImageData): Promise<void>;
|
|
131
|
+
getCheck(): string;
|
|
132
|
+
/**
|
|
133
|
+
* Gets the current pipeline state. Must be called before setMotionStatus(),
|
|
134
|
+
* getCheck(), setBackgroundMode(), and getMetadata() for proper metadata generation.
|
|
135
|
+
*/
|
|
136
|
+
getPipelineState(): string;
|
|
137
|
+
estimatePerformance(): string;
|
|
138
|
+
/**
|
|
139
|
+
* @deprecated Returns `false` for compatibility; scheduled for removal in
|
|
140
|
+
* 3.0.0. Protected PRC/POC is the authoritative virtual-camera decision
|
|
141
|
+
* path: use {@link IWasmUtilCapability.prc} followed by
|
|
142
|
+
* {@link IWasmUtilCapability.poc} instead of inspecting the track label.
|
|
143
|
+
*/
|
|
144
|
+
isVirtualCamera(label: string | null): boolean;
|
|
145
|
+
prc(): Promise<void>;
|
|
146
|
+
poc(output: VirtualCameraCheckOutput): Promise<void>;
|
|
147
|
+
rsp(): Promise<void>;
|
|
148
|
+
ssl(): void;
|
|
149
|
+
stl(): void;
|
|
150
|
+
osv(): void;
|
|
151
|
+
oev(): void;
|
|
152
|
+
ckvcks(data: ArrayBuffer): void;
|
|
153
|
+
/**
|
|
154
|
+
* Disposes of resources and resets initialization state.
|
|
155
|
+
*/
|
|
156
|
+
dispose(): Promise<void>;
|
|
157
|
+
};
|
|
158
|
+
//#endregion
|
|
159
|
+
export { IRecordingCapability as a, IStorageCapability as i, VirtualCameraCheckOutput as n, RecordingConnection as o, WasmUtilConfig as r, IWasmUtilCapability as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as resolveSessionStorage } from "./safeStorage-
|
|
1
|
+
import { n as resolveSessionStorage } from "./safeStorage-B-trhxg6.esm.js";
|
|
2
2
|
//#region ../infra/src/providers/browser/MotionSensorProvider.ts
|
|
3
3
|
const MOTION_PERMISSION_GRANTED_KEY = "motionSensorsPermissionsGranted";
|
|
4
4
|
const MOTION_PERMISSION_DENIED_KEY = "motionSensorsPermissionsDenied";
|
|
@@ -1,43 +1,6 @@
|
|
|
1
|
+
import { y as IncodeCanvas } from "./createFaceAvatar-BlcTYgJv.js";
|
|
2
|
+
import "./IWasmUtilCapability-CXXDA5l1.js";
|
|
1
3
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
2
|
-
import { o as IncodeCanvas } from "./IStorageCapability-ORkQfK3F.js";
|
|
3
|
-
//#region ../infra/src/media/StreamCanvasCapture.d.ts
|
|
4
|
-
type StreamCanvasCaptureOptions = {
|
|
5
|
-
fps?: number;
|
|
6
|
-
width?: number;
|
|
7
|
-
height?: number;
|
|
8
|
-
};
|
|
9
|
-
type StreamCanvasCaptureEventMap = {
|
|
10
|
-
frame: Event;
|
|
11
|
-
};
|
|
12
|
-
declare class StreamCanvasCapture {
|
|
13
|
-
private video;
|
|
14
|
-
private canvas;
|
|
15
|
-
private ctx;
|
|
16
|
-
private rafId;
|
|
17
|
-
private lastFrameTimeSeconds;
|
|
18
|
-
private lastTickTimeMs;
|
|
19
|
-
private hasFrame;
|
|
20
|
-
private disposed;
|
|
21
|
-
private eventTarget;
|
|
22
|
-
constructor(stream: CameraStream, options?: StreamCanvasCaptureOptions);
|
|
23
|
-
addEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
|
|
24
|
-
removeEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | EventListenerOptions): void;
|
|
25
|
-
/**
|
|
26
|
-
* Returns the latest cached frame as an {@link IncodeCanvas}.
|
|
27
|
-
*/
|
|
28
|
-
getLatestCanvas(): IncodeCanvas | null;
|
|
29
|
-
/**
|
|
30
|
-
* Returns the latest cached frame as raw {@link ImageData}.
|
|
31
|
-
*/
|
|
32
|
-
getLatestFrame(): ImageData | null;
|
|
33
|
-
/**
|
|
34
|
-
* Disposes internal resources and stops the capture loop.
|
|
35
|
-
*/
|
|
36
|
-
dispose(): void;
|
|
37
|
-
private rafLoop;
|
|
38
|
-
private tick;
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
4
|
//#region ../infra/src/capabilities/IMotionSensorCapability.d.ts
|
|
42
5
|
type MotionStatus = 'PASS' | 'FAIL' | 'UNCLEAR';
|
|
43
6
|
type MotionPermissionState = 'granted' | 'denied' | 'not-required';
|
|
@@ -86,7 +49,6 @@ type DeepsightService = {
|
|
|
86
49
|
initialize(disableIpify?: boolean, disableFingerprint?: boolean): Promise<void>;
|
|
87
50
|
requestMotionPermission(): Promise<'granted' | 'denied' | 'not-required'>;
|
|
88
51
|
startMotionSensors(): Promise<void>;
|
|
89
|
-
primeWasmMotionSensor(): Promise<void>;
|
|
90
52
|
stopMotionSensors(): void;
|
|
91
53
|
checkVirtualCamera(videoTrack: MediaStreamTrack): Promise<boolean>;
|
|
92
54
|
performVirtualCameraCheck(sessionToken: string | null, source: FrameSource): Promise<void>;
|
|
@@ -95,6 +57,12 @@ type DeepsightService = {
|
|
|
95
57
|
*/
|
|
96
58
|
performPrcCheck(params: DeepsightPrcCheckParams): Promise<void>;
|
|
97
59
|
analyzeFrame(imageData: ImageData): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Finalizes non-frame DeepSight metadata after a protected WASM capture.
|
|
62
|
+
* The protected runtime owns frame analysis, so this intentionally does not
|
|
63
|
+
* call the host-supplied `analyzeFrame` fallback.
|
|
64
|
+
*/
|
|
65
|
+
finalizeProtectedCaptureMetadata(): Promise<void>;
|
|
98
66
|
getMetadata(): string;
|
|
99
67
|
getMotionStatus(): string;
|
|
100
68
|
getAnalysisStatus(): string;
|
|
@@ -105,4 +73,49 @@ type DeepsightPrcCheckParams = {
|
|
|
105
73
|
constraints: MediaStreamConstraints;
|
|
106
74
|
};
|
|
107
75
|
//#endregion
|
|
108
|
-
|
|
76
|
+
//#region ../infra/src/media/StreamCanvasCapture.d.ts
|
|
77
|
+
type StreamCanvasCaptureOptions = {
|
|
78
|
+
fps?: number;
|
|
79
|
+
width?: number;
|
|
80
|
+
height?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Keep a canvas cache updated from requestAnimationFrame. Defaults to true.
|
|
83
|
+
* Set false when a caller only needs an occasional presentation snapshot;
|
|
84
|
+
* `getLatestCanvas`/`getLatestFrame` will draw the current video frame on
|
|
85
|
+
* demand without running a duplicate per-frame loop.
|
|
86
|
+
*/
|
|
87
|
+
continuous?: boolean;
|
|
88
|
+
};
|
|
89
|
+
type StreamCanvasCaptureEventMap = {
|
|
90
|
+
frame: Event;
|
|
91
|
+
};
|
|
92
|
+
declare class StreamCanvasCapture {
|
|
93
|
+
private video;
|
|
94
|
+
private canvas;
|
|
95
|
+
private ctx;
|
|
96
|
+
private rafId;
|
|
97
|
+
private lastFrameTimeSeconds;
|
|
98
|
+
private lastTickTimeMs;
|
|
99
|
+
private hasFrame;
|
|
100
|
+
private disposed;
|
|
101
|
+
private eventTarget;
|
|
102
|
+
constructor(stream: CameraStream, options?: StreamCanvasCaptureOptions);
|
|
103
|
+
addEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
|
|
104
|
+
removeEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | EventListenerOptions): void;
|
|
105
|
+
/**
|
|
106
|
+
* Returns the latest cached frame as an {@link IncodeCanvas}.
|
|
107
|
+
*/
|
|
108
|
+
getLatestCanvas(): IncodeCanvas | null;
|
|
109
|
+
/**
|
|
110
|
+
* Returns the latest cached frame as raw {@link ImageData}.
|
|
111
|
+
*/
|
|
112
|
+
getLatestFrame(): ImageData | null;
|
|
113
|
+
/**
|
|
114
|
+
* Disposes internal resources and stops the capture loop.
|
|
115
|
+
*/
|
|
116
|
+
dispose(): void;
|
|
117
|
+
private rafLoop;
|
|
118
|
+
private tick;
|
|
119
|
+
}
|
|
120
|
+
//#endregion
|
|
121
|
+
export { DeepsightService as n, StreamCanvasCapture as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IncodeCanvas } from "./canvas-
|
|
1
|
+
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
2
2
|
//#region ../infra/src/media/StreamCanvasCapture.ts
|
|
3
3
|
var StreamCanvasCapture = class {
|
|
4
4
|
constructor(stream, options) {
|
|
@@ -28,7 +28,7 @@ var StreamCanvasCapture = class {
|
|
|
28
28
|
try {
|
|
29
29
|
this.video.play();
|
|
30
30
|
} catch {}
|
|
31
|
-
this.rafLoop(intervalMs);
|
|
31
|
+
if (options?.continuous !== false) this.rafLoop(intervalMs);
|
|
32
32
|
}
|
|
33
33
|
addEventListener(type, listener, options) {
|
|
34
34
|
this.eventTarget.addEventListener(type, listener, options);
|
|
@@ -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-D3B9mUHh.esm.js";
|
|
4
4
|
import { t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
5
|
const usStateOptions = Object.values({
|
|
6
6
|
AL: {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
2
|
+
//#region src/internal/orchestration/advanceableErrors.ts
|
|
3
|
+
const VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE = "VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED";
|
|
4
|
+
/**
|
|
5
|
+
* Module terminal-error codes an orchestrator should treat as "advance to the
|
|
6
|
+
* next step" rather than "fail the flow". Decided here, at the orchestration
|
|
7
|
+
* layer, so every consumer behaves identically. "Advanceable" is independent of
|
|
8
|
+
* "retryable" (the module's own concern): it only decides what the flow does
|
|
9
|
+
* *after* a terminal error. Note `NO_MORE_ATTEMPTS` subsumes the former
|
|
10
|
+
* `USER_IS_NOT_RECOGNIZED` entry — see the contract test for the full matrix.
|
|
11
|
+
*/
|
|
12
|
+
const ADVANCEABLE_ERROR_CODES = [
|
|
13
|
+
FACE_ERROR_CODES.NONEXISTENT_CUSTOMER,
|
|
14
|
+
FACE_ERROR_CODES.HINT_NOT_PROVIDED,
|
|
15
|
+
FACE_ERROR_CODES.NO_MORE_ATTEMPTS,
|
|
16
|
+
VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE
|
|
17
|
+
];
|
|
18
|
+
/** True when the given code is a module terminal error the flow should advance past rather than fail on. */
|
|
19
|
+
const isAdvanceableError = (moduleErrorCode) => moduleErrorCode !== void 0 && ADVANCEABLE_ERROR_CODES.includes(moduleErrorCode);
|
|
20
|
+
//#endregion
|
|
21
|
+
export { isAdvanceableError as n, VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE as t };
|
package/dist/ae-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, i as ConsentKey, r as ConsentChecks, s as ElectronicSignatureDocument, t as AE_CONSENT_KEYS } 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/ae-signature/index.d.ts
|
|
6
6
|
type AeSignatureConfig = Omit<ElectronicSignatureConfig, 'variant'>;
|
|
@@ -14,6 +14,8 @@ declare function createAeSignatureManager(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;
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-DzulxM4_.esm.js";
|
|
2
2
|
//#region src/modules/ae-signature/index.ts
|
|
3
3
|
function createAeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
package/dist/antifraud.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
2
|
-
import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-
|
|
1
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-BHxehiJZ.esm.js";
|
|
2
|
+
import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-Bg9ynGum.esm.js";
|
|
3
3
|
export { antifraudMachine, createAntifraudManager, createAntifraudManagerFromActor };
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
4
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-BHxehiJZ.esm.js";
|
|
5
5
|
//#region src/modules/antifraud/antifraudActor.ts
|
|
6
6
|
function createAntifraudActor() {
|
|
7
7
|
return createActor(antifraudMachine).start();
|
package/dist/{antifraudStateMachine-Bf_JVNwn.esm.js → antifraudStateMachine-BHxehiJZ.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
3
3
|
import { t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
5
|
//#region src/modules/antifraud/antifraudServices.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService
|
|
1
|
+
import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-CKrrfV0Q.esm.js";
|
|
2
2
|
//#region src/internal/http/apiError.ts
|
|
3
3
|
/**
|
|
4
4
|
* Incode API error.
|
|
@@ -46,6 +46,18 @@ function isConnectivityError(err) {
|
|
|
46
46
|
return isHttpError(err) && err.status === 0;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
+
* True when an error represents a failure that is the server's fault (or the
|
|
50
|
+
* network's) rather than the caller's — HTTP `5xx`, or connectivity loss
|
|
51
|
+
* (see {@link isConnectivityError}). Useful for callers that want to offer a
|
|
52
|
+
* "Try again" retry only for these, while a `4xx` (the caller sent something
|
|
53
|
+
* the backend rejected) is left for the caller to handle on its own terms —
|
|
54
|
+
* retrying the identical payload would just fail again.
|
|
55
|
+
*/
|
|
56
|
+
function isServerError(err) {
|
|
57
|
+
if (isConnectivityError(err)) return true;
|
|
58
|
+
return err instanceof IncodeApiError && (err.httpStatus >= 500 || err.httpStatus === 0);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
49
61
|
* Convert an unknown error caught from `api.{get,post,...}` into an
|
|
50
62
|
* `IncodeApiError`, extracting the Incode-specific status and message from
|
|
51
63
|
* the response body when present. The original error is preserved on
|
|
@@ -70,4 +82,4 @@ function logHttpFailureBreadcrumb(message, endpoint) {
|
|
|
70
82
|
} catch {}
|
|
71
83
|
}
|
|
72
84
|
//#endregion
|
|
73
|
-
export { isConnectivityError as n,
|
|
85
|
+
export { toIncodeApiError as i, isConnectivityError as n, isServerError as r, IncodeApiError as t };
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as AuthenticationConfig } from "./types-
|
|
3
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-CvtqcLxs.js";
|
|
2
|
+
import { t as AuthenticationConfig } from "./types-ZT1XFIJ8.js";
|
|
3
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-DXTIUcma.js";
|
|
4
4
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
2
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DJ0zUm-A.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-C4B4-29g.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-zh9TC62P.esm.js → authenticationManager-C4B4-29g.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as eventModuleNames } from "./events-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-msLybMbC.esm.js";
|
|
2
|
+
import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
|
|
3
|
+
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-pCmG4MeF.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DJ0zUm-A.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationActor.ts
|
|
8
8
|
function createAuthenticationActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import {
|
|
3
|
+
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-CvtqcLxs.js";
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -22,6 +22,9 @@ declare function createAuthenticationManagerFromActor(actor: AuthenticationActor
|
|
|
22
22
|
reset(): void;
|
|
23
23
|
retryCapture(): void;
|
|
24
24
|
capture(): void;
|
|
25
|
+
goToManualUpload(): void;
|
|
26
|
+
manualUploadSelectFile(file: File): void;
|
|
27
|
+
manualUploadContinue(): void;
|
|
25
28
|
};
|
|
26
29
|
/**
|
|
27
30
|
* Creates an authentication manager instance for handling face authentication flow.
|
|
@@ -69,6 +72,9 @@ declare function createAuthenticationManager(options: CreateAuthenticationActorO
|
|
|
69
72
|
reset(): void;
|
|
70
73
|
retryCapture(): void;
|
|
71
74
|
capture(): void;
|
|
75
|
+
goToManualUpload(): void;
|
|
76
|
+
manualUploadSelectFile(file: File): void;
|
|
77
|
+
manualUploadContinue(): void;
|
|
72
78
|
};
|
|
73
79
|
type AuthenticationManager = FaceCaptureManager;
|
|
74
80
|
//#endregion
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
3
|
-
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
4
1
|
import { i as assign } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
2
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import {
|
|
8
|
-
import { t as getDeviceClass } from "./getDeviceClass-9y-kbVDw.esm.js";
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-BSextack.esm.js";
|
|
4
|
+
import { u as isOnDeviceMode } from "./FaceDetectionProvider-DTetAE8H.esm.js";
|
|
9
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
|
+
import { s as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-DQ5-F2oW.esm.js";
|
|
10
7
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
11
8
|
const AUTH_ERROR_MAP = {
|
|
12
9
|
SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
|
|
@@ -42,46 +39,6 @@ const isTerminalAuthError = (response, attemptsRemaining) => {
|
|
|
42
39
|
return false;
|
|
43
40
|
};
|
|
44
41
|
//#endregion
|
|
45
|
-
//#region src/modules/authentication/authenticationUploadService.ts
|
|
46
|
-
async function uploadAuthFace(params) {
|
|
47
|
-
try {
|
|
48
|
-
const payload = {
|
|
49
|
-
base64Image: params.encryptedBase64Image,
|
|
50
|
-
faceCoordinates: params.faceCoordinates ?? void 0,
|
|
51
|
-
encrypted: true,
|
|
52
|
-
clientInfo: { deviceClass: getDeviceClass() },
|
|
53
|
-
metadata: params.metadata ?? void 0,
|
|
54
|
-
...params.authHint !== void 0 && { hint: params.authHint }
|
|
55
|
-
};
|
|
56
|
-
const query = {};
|
|
57
|
-
if (params.recordingId) query.recordingId = params.recordingId;
|
|
58
|
-
const res = await api.post(endpoints.authenticate, payload, {
|
|
59
|
-
signal: params.signal,
|
|
60
|
-
query
|
|
61
|
-
});
|
|
62
|
-
if (!res.ok) throw new Error(`POST ${endpoints.authenticate} failed: ${res.status} ${res.statusText}`);
|
|
63
|
-
if (params.deepsightService) addDeviceStats({
|
|
64
|
-
frontIdStatsAnalysisStatus: "",
|
|
65
|
-
backIdStatsAnalysisStatus: "",
|
|
66
|
-
selfieStatsAnalysisStatus: params.deepsightService.getAnalysisStatus(),
|
|
67
|
-
motionStatus: params.deepsightService.getMotionStatus()
|
|
68
|
-
});
|
|
69
|
-
return res.data;
|
|
70
|
-
} catch (error) {
|
|
71
|
-
const errorCode = getAuthErrorCodeFromHttpError(error);
|
|
72
|
-
if (errorCode) throw new Error(errorCode);
|
|
73
|
-
throw new Error(FACE_ERROR_CODES.SERVER);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
const getAuthErrorCodeFromHttpError = (error) => {
|
|
77
|
-
const err = error;
|
|
78
|
-
if (err.ok !== false || typeof err.status !== "number") return;
|
|
79
|
-
if (err.status !== 400) return FACE_ERROR_CODES.SERVER;
|
|
80
|
-
const errorName = err.data?.error?.name;
|
|
81
|
-
if (!errorName) return FACE_ERROR_CODES.BAD_REQUEST;
|
|
82
|
-
return AUTH_ERROR_MAP[errorName] ?? FACE_ERROR_CODES.BAD_REQUEST;
|
|
83
|
-
};
|
|
84
|
-
//#endregion
|
|
85
42
|
//#region src/modules/authentication/authenticationStateMachine.ts
|
|
86
43
|
/**
|
|
87
44
|
* Narrow the base machine's opaque `uploadResponse` (Record<string, unknown>)
|
|
@@ -90,22 +47,9 @@ const getAuthErrorCodeFromHttpError = (error) => {
|
|
|
90
47
|
const authUploadResponse = (context) => context.uploadResponse;
|
|
91
48
|
const authenticationMachine = faceCaptureMachine.provide({
|
|
92
49
|
actors: {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}),
|
|
97
|
-
uploadFace: fromPromise(async ({ input, signal }) => {
|
|
98
|
-
const ctx = input;
|
|
99
|
-
if (isOnDeviceMode(ctx.config)) return postOnDeviceFaceResults(ctx, signal);
|
|
100
|
-
return uploadAuthFace({
|
|
101
|
-
encryptedBase64Image: ctx.encryptedBase64Image,
|
|
102
|
-
faceCoordinates: ctx.faceCoordinates,
|
|
103
|
-
authHint: ctx.authHint,
|
|
104
|
-
metadata: ctx.deepsightService?.getMetadata(),
|
|
105
|
-
recordingId: ctx.uploadRecordingId,
|
|
106
|
-
deepsightService: ctx.deepsightService ?? void 0,
|
|
107
|
-
signal
|
|
108
|
-
});
|
|
50
|
+
protectedFaceController: createDefaultProtectedFaceControllerActor({
|
|
51
|
+
target: PROTECTED_CAPTURE_TARGET.authentication,
|
|
52
|
+
delivery: "protected"
|
|
109
53
|
}),
|
|
110
54
|
processFace: fromPromise(async () => ({}))
|
|
111
55
|
},
|
package/dist/avatar.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { n as AvatarFaceState } from "./
|
|
2
|
-
import { i as createFaceAvatar, n as FaceAvatarHandle, r as FaceAvatarOptions, t as AvatarId } from "./createFaceAvatar-BEj18KXi.js";
|
|
1
|
+
import { i as createFaceAvatar, n as FaceAvatarHandle, o as AvatarFaceState, r as FaceAvatarOptions, t as AvatarId } from "./createFaceAvatar-BlcTYgJv.js";
|
|
3
2
|
export { type AvatarFaceState, type AvatarId, type FaceAvatarHandle, type FaceAvatarOptions, createFaceAvatar };
|
package/dist/avatar.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createFaceAvatar } from "./createFaceAvatar-
|
|
1
|
+
import { t as createFaceAvatar } from "./createFaceAvatar-BNHdeFj8.esm.js";
|
|
2
2
|
export { createFaceAvatar };
|