@incodetech/core 0.0.0-dev-20260629-bd5fa5af → 0.0.0-dev-20260630-d195eb29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{3dAvatarProvider-fTdHcYRZ.esm.js → 3dAvatarProvider-g_5khIgq.esm.js} +2 -2
- package/dist/{Face2DProvider-B6fcPUZn.esm.js → Face2DProvider-BciFOpqp.esm.js} +2 -2
- package/dist/FaceDetectionProvider-C723Vh4J.d.ts +119 -0
- package/dist/{deepsightService-2AJMEilg.d.ts → IWasmUtilCapability-DCe8akKn.d.ts} +3 -70
- package/dist/{OpenViduRecordingProvider-NzFiqaEU.esm.js → OpenViduRecordingProvider-CK6A5kiU.esm.js} +1 -1
- package/dist/{PrivacyLensProvider-DSgQUHtW.esm.js → PrivacyLensProvider-BZsWqkv9.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-opC6JnBb.d.ts → StreamCanvasCapture-DHDxv6hH.d.ts} +2 -2
- package/dist/{StreamCanvasCapture-Koi0Xc6f.esm.js → StreamCanvasCapture-DNcWK2xu.esm.js} +1 -1
- package/dist/{WasmUtilProvider-CMHQB61Z.esm.js → WasmUtilProvider-ADG54T6M.esm.js} +10 -1
- package/dist/{addressSearch-Cmf1l1zD.esm.js → addressSearch-BhjurwQo.esm.js} +4 -4
- package/dist/{ae-signature-Kjug39_Z.esm.js → ae-signature-CPKOMQX7.esm.js} +1 -1
- package/dist/ae-signature.d.ts +3 -3
- package/dist/ae-signature.esm.js +10 -10
- package/dist/antifraud.d.ts +3 -3
- package/dist/antifraud.esm.js +7 -7
- package/dist/{antifraudManager-B26zslni.d.ts → antifraudManager-0tq22vID.d.ts} +2 -2
- package/dist/{antifraudManager-CSREEbtK.esm.js → antifraudManager-CMJCjGu9.esm.js} +4 -4
- package/dist/{antifraudStateMachine-BLZzwvJY.esm.js → antifraudStateMachine-CwsNI6mD.esm.js} +3 -3
- package/dist/authentication.d.ts +18 -16
- package/dist/authentication.esm.js +33 -32
- package/dist/{authenticationManager-DFEOJMIb.esm.js → authenticationManager-B_iOhBuD.esm.js} +6 -6
- package/dist/{authenticationManager-BEYy6HBV.d.ts → authenticationManager-DYeRtXSb.d.ts} +3 -3
- package/dist/{authenticationStateMachine-ClAzlt7B.esm.js → authenticationStateMachine-BJFMX_d6.esm.js} +8 -8
- package/dist/avatar.d.ts +2 -2
- package/dist/avatar.esm.js +1 -1
- package/dist/{backCameraStream-6nEEESaK.esm.js → backCameraStream-cH8Ctfrg.esm.js} +3 -3
- package/dist/{browserSimulation-BaRUkqo0.esm.js → browserSimulation-CUgn29iJ.esm.js} +2 -2
- package/dist/camera-3BoIlw6r.esm.js +79 -0
- package/dist/camera.d.ts +7 -1
- package/dist/camera.esm.js +4 -4
- package/dist/certificate-issuance.d.ts +30 -30
- package/dist/certificate-issuance.esm.js +8 -8
- package/dist/{certificateIssuanceStateMachine-DVX0JsVJ.esm.js → certificateIssuanceStateMachine-B0zUpVxm.esm.js} +4 -4
- package/dist/{clientLifecycle-2YDYcFDL.esm.js → clientLifecycle-Ct7h9uxx.esm.js} +2 -2
- package/dist/consent.d.ts +3 -3
- package/dist/consent.esm.js +7 -7
- package/dist/{consentManager-BJmYmw_6.esm.js → consentManager-D71Ar-I7.esm.js} +4 -4
- package/dist/{consentManager-mbbmOknL.d.ts → consentManager-vQ-mMpd4.d.ts} +49 -49
- package/dist/{consentStateMachine-DgSJ1ayL.esm.js → consentStateMachine-enfdBshh.esm.js} +3 -3
- package/dist/cpf-ocr.d.ts +3 -3
- package/dist/cpf-ocr.esm.js +7 -7
- package/dist/{cpfOcrManager-Dui-hl3s.d.ts → cpfOcrManager-CMc0MvGD.d.ts} +19 -19
- package/dist/{cpfOcrManager-Dpj_HlZe.esm.js → cpfOcrManager-DkkrkErG.esm.js} +6 -6
- package/dist/{createFaceAvatar-D94d2jjL.esm.js → createFaceAvatar-BXYFc_kA.esm.js} +3 -3
- package/dist/{createFaceAvatar-CCD0HA4W.d.ts → createFaceAvatar-DNMSIcRb.d.ts} +8 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +6 -6
- package/dist/curp-validation.d.ts +9 -9
- package/dist/curp-validation.esm.js +7 -7
- package/dist/{curpValidationManager-IqH8rIei.esm.js → curpValidationManager-DKh_9ckM.esm.js} +4 -4
- package/dist/{curpValidationManager-5xtZ6QlA.d.ts → curpValidationManager-DcnaKhq7.d.ts} +3 -3
- package/dist/{curpValidationStateMachine-Cr2o6gEl.esm.js → curpValidationStateMachine-DzXb57MU.esm.js} +3 -3
- package/dist/custom-fields.d.ts +2 -2
- package/dist/custom-fields.esm.js +6 -6
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +6 -6
- package/dist/{customWatchlistStateMachine-CTczBFAU.esm.js → customWatchlistStateMachine-Cl2gXi_b.esm.js} +3 -3
- package/dist/{deepsightLoader-CK6AgVMy.esm.js → deepsightLoader-DIUgvW9k.esm.js} +15 -15
- package/dist/deepsightService-6J67NoN9.d.ts +69 -0
- package/dist/{deepsightService-Bx9Yq13u.esm.js → deepsightService-lLD3G31S.esm.js} +8 -8
- package/dist/device.esm.js +4 -4
- package/dist/document-capture.d.ts +248 -248
- package/dist/document-capture.esm.js +14 -14
- package/dist/document-upload.d.ts +50 -50
- package/dist/document-upload.esm.js +9 -9
- package/dist/{documentCaptureStateMachine-C4RJx338.esm.js → documentCaptureStateMachine-JAnvcB0V.esm.js} +7 -7
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +7 -7
- package/dist/{dynamicFormsStateMachine-DXYYYnqM.esm.js → dynamicFormsStateMachine-DdU0Y5OL.esm.js} +4 -4
- package/dist/ekyb.d.ts +8 -8
- package/dist/ekyb.esm.js +21 -20
- package/dist/{ekybStateMachine-B8qkpmJU.esm.js → ekybStateMachine-C7SeI8uX.esm.js} +5 -5
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +9 -9
- package/dist/{ekycStateMachine-M8Z7G5x4.esm.js → ekycStateMachine-DajcBUqD.esm.js} +5 -5
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +9 -9
- package/dist/{electronicSignatureManager--IIqwxf3.esm.js → electronicSignatureManager-Dz-CglxP.esm.js} +7 -7
- package/dist/email.d.ts +4 -4
- package/dist/email.esm.js +9 -9
- package/dist/{emailManager-BzeQI0Vo.esm.js → emailManager-Bf8HT0py.esm.js} +5 -5
- package/dist/{emailManager-hmA0Elfn.d.ts → emailManager-D5kHN_Zj.d.ts} +3 -3
- package/dist/{emailStateMachine-BuoiLQJF.esm.js → emailStateMachine-DBtggNGB.esm.js} +5 -5
- package/dist/{endpoints-CJH8R79Q.esm.js → endpoints-BzMJFAPV.esm.js} +9 -0
- package/dist/{events-C5GpmPbS.esm.js → events-CqGY1yMq.esm.js} +1 -1
- package/dist/events.d.ts +1 -0
- package/dist/events.esm.js +3 -3
- package/dist/extensibility.d.ts +31 -29
- package/dist/extensibility.esm.js +67 -65
- package/dist/{externalFetch-DHzmXTlR.esm.js → externalFetch-Sh2H5VZA.esm.js} +1 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +6 -6
- package/dist/{faceCaptureManagerFactory-VzPdcqEH.d.ts → faceCaptureManagerFactory-D6uM60D6.d.ts} +12 -11
- package/dist/{faceCaptureManagerFactory-x5MVIR9m.esm.js → faceCaptureManagerFactory-DWZ4fnkS.esm.js} +6 -6
- package/dist/{faceCaptureSetup-BwhVPh3B.esm.js → faceCaptureSetup-BX9vTP8-.esm.js} +9 -9
- package/dist/{faceMatchStateMachine-CrODY2X6.esm.js → faceMatchStateMachine-C-ioayCI.esm.js} +3 -3
- package/dist/field-comparison.d.ts +3 -3
- package/dist/field-comparison.esm.js +6 -6
- package/dist/{fieldComparisonManager-n9Rz0az-.esm.js → fieldComparisonManager-Dvx8pH8s.esm.js} +5 -5
- package/dist/{fieldComparisonManager-CvaG1tq6.d.ts → fieldComparisonManager-brjMzIRO.d.ts} +2 -2
- package/dist/fiscal-qr.d.ts +4 -4
- package/dist/fiscal-qr.esm.js +13 -13
- package/dist/flow-events.d.ts +8 -8
- package/dist/flow.d.ts +13 -13
- package/dist/flow.esm.js +22 -21
- package/dist/{flowCompletionService-CbGOzDDc.esm.js → flowCompletionService-BfjCIg8B.esm.js} +3 -3
- package/dist/{flowServices-bPOYOymJ.esm.js → flowServices-C98Yy_Gp.esm.js} +24 -9
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +7 -7
- package/dist/{geolocationStateMachine-D6afIT5B.esm.js → geolocationStateMachine-DNwn-K0X.esm.js} +4 -4
- package/dist/{getDeviceClass-DF3rXlUY.esm.js → getDeviceClass-CKbolkq0.esm.js} +1 -1
- package/dist/{getDeviceData-CxHuJqz9.esm.js → getDeviceData-cRiZDfyj.esm.js} +1 -1
- package/dist/government-validation.d.ts +3 -3
- package/dist/government-validation.esm.js +8 -8
- package/dist/{governmentValidationStateMachine-Cl_w7lDx.esm.js → governmentValidationStateMachine-BrbwYVeb.esm.js} +5 -5
- package/dist/home.d.ts +17 -17
- package/dist/home.esm.js +4 -4
- package/dist/http.esm.js +2 -2
- package/dist/id-ocr.d.ts +54 -54
- package/dist/id-ocr.esm.js +7 -7
- package/dist/id-verification.d.ts +27 -27
- package/dist/id-verification.esm.js +6 -6
- package/dist/id.d.ts +15 -14
- package/dist/id.esm.js +40 -38
- package/dist/idCaptureDefaults-Dtu-M3av.esm.js +188 -0
- package/dist/{idCaptureManager-DfwBlIzj.d.ts → idCaptureManager-D8vun2iW.d.ts} +19 -11
- package/dist/{idCaptureManager-1ibNrMn5.esm.js → idCaptureManager-IEa7x3cX.esm.js} +7 -7
- package/dist/{idCaptureStateMachine-BT3pAC0s.esm.js → idCaptureStateMachine-BwJ4Oja2.esm.js} +20 -187
- package/dist/{idOcrStateMachine-CSnVfav-.esm.js → idOcrStateMachine-BrgpQWHm.esm.js} +5 -5
- package/dist/{idVerificationStateMachine-BYrQ6Ism.esm.js → idVerificationStateMachine-CVfNJ9c4.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +3 -3
- package/dist/identity-reuse.esm.js +7 -7
- package/dist/{identityReuseManager-BTBb6dNP.esm.js → identityReuseManager-BdtFLG5j.esm.js} +4 -4
- package/dist/{identityReuseManager-_lnzJh2v.d.ts → identityReuseManager-D23g53js.d.ts} +36 -36
- package/dist/{identityReuseStateMachine-B-DkkQQG.esm.js → identityReuseStateMachine-CJn-Eaqd.esm.js} +3 -3
- package/dist/{index-CC-2VtlL.d.ts → index-B7RboxdU.d.ts} +169 -169
- package/dist/{index-DCAqU5Gu.d.ts → index-Oj_Fvhsa.d.ts} +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +17 -17
- package/dist/{invokeOnCaptureCallback-BuIOnlDE.esm.js → invokeOnCaptureCallback-D5rcHH57.esm.js} +1 -1
- package/dist/{lib-BToFFxxd.esm.js → lib-Bjd6nOLG.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +9 -9
- package/dist/mandatory-consent.esm.js +7 -7
- package/dist/{mandatoryConsentManager-CJy55IWn.d.ts → mandatoryConsentManager-C_Av-opK.d.ts} +50 -50
- package/dist/{mandatoryConsentManager-DOzIV_FJ.esm.js → mandatoryConsentManager-DMQBfOP7.esm.js} +4 -4
- package/dist/{mandatoryConsentStateMachine-_-BhToZb.esm.js → mandatoryConsentStateMachine-A0_KwmZK.esm.js} +3 -3
- package/dist/mediaRecorderOptions-WW6P1KjB.esm.js +42 -0
- package/dist/{onDeviceFaceResults-Bdtdz4jd.esm.js → onDeviceFaceResults-u-0o4u8K.esm.js} +21 -17
- package/dist/openviduLazy-jPgABwrt.esm.js +3 -0
- package/dist/{openviduLazy-BudLG7F2.esm.js → openviduLazy-wEojM41w.esm.js} +2 -2
- package/dist/{permissionGuards-DZGK8phT.esm.js → permissionGuards-pJ0BBI8s.esm.js} +1 -1
- package/dist/{permissionServices-BDlTL4JT.esm.js → permissionServices-DylQrLrh.esm.js} +7 -4
- package/dist/personhood.d.ts +15 -13
- package/dist/personhood.esm.js +27 -27
- package/dist/phone.d.ts +4 -4
- package/dist/phone.esm.js +9 -9
- package/dist/{phoneManager-Ss4F2DsU.esm.js → phoneManager-DI_wCv7R.esm.js} +5 -5
- package/dist/{phoneManager-C6Go0zbQ.d.ts → phoneManager-DPDc0FVX.d.ts} +3 -3
- package/dist/{phoneStateMachine-DTP4bnzW.esm.js → phoneStateMachine-DBFRhm__.esm.js} +5 -5
- package/dist/{qe-signature-0orRwkzA.esm.js → qe-signature-DBH54XrQ.esm.js} +1 -1
- package/dist/qe-signature.d.ts +3 -3
- package/dist/qe-signature.esm.js +10 -10
- package/dist/{recordingService-BlcyNkhH.esm.js → recordingService-Bu2ksN82.esm.js} +7 -34
- package/dist/redirect-to-mobile.d.ts +3 -3
- package/dist/redirect-to-mobile.esm.js +9 -9
- package/dist/{redirectToMobileManager-BNyb1Snt.d.ts → redirectToMobileManager-Ck3mOj_a.d.ts} +2 -2
- package/dist/{redirectToMobileManager-CivoSWZq.esm.js → redirectToMobileManager-DMecrpfp.esm.js} +5 -5
- package/dist/{redirectToMobileStateMachine-DHUqKZFf.esm.js → redirectToMobileStateMachine-BDbLXubh.esm.js} +5 -5
- package/dist/{runChildModule-C1mLru0r.esm.js → runChildModule-B3dFXzju.esm.js} +3 -3
- package/dist/selfie.d.ts +18 -16
- package/dist/selfie.esm.js +34 -33
- package/dist/{selfieManager-CSV6OSnm.d.ts → selfieManager-CQuIQApd.d.ts} +3 -3
- package/dist/{selfieManager-Bdpwfgqz.esm.js → selfieManager-dj_tGmCf.esm.js} +6 -6
- package/dist/{selfieStateMachine-CwBMovGA.esm.js → selfieStateMachine-DE5bvZIY.esm.js} +4 -4
- package/dist/{session-CSjmHjvS.esm.js → session-ACyn7yHq.esm.js} +3 -3
- package/dist/session.d.ts +7 -7
- package/dist/session.esm.js +17 -17
- package/dist/{sessionInitializer-DFzS1tGJ.esm.js → sessionInitializer-CE4VkACt.esm.js} +10 -10
- package/dist/{setup-D0n186fR.esm.js → setup-BrJz_4MY.esm.js} +33 -10
- package/dist/{setup-CBG8_-sJ.d.ts → setup-Da51UnII.d.ts} +16 -3
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +6 -6
- package/dist/{signatureStateMachine-3spNUdNE.esm.js → signatureStateMachine-FeZrImMZ.esm.js} +3 -3
- package/dist/{stats-s3hq1r1j.esm.js → stats-CYcScXcO.esm.js} +2 -2
- package/dist/stats.esm.js +3 -3
- package/dist/{tri-ByBCC5y2.esm.js → tri-CvoIihYm.esm.js} +2 -2
- package/dist/tri.d.ts +1 -1
- package/dist/{tri.esm-DKh4PZHK.esm.js → tri.esm-B47NPJjh.esm.js} +1 -1
- package/dist/tri.esm.js +2 -2
- package/dist/trust-graph.d.ts +3 -3
- package/dist/trust-graph.esm.js +4 -4
- package/dist/{FaceDetectionProvider-BHFXkqW_.d.ts → types-BBSIY1G3.d.ts} +4 -120
- package/dist/{types-DiIMjgm2.d.ts → types-BCcaoWwg.d.ts} +1 -1
- package/dist/{types-CzQBFW6W.d.ts → types-B_YCuHZx.d.ts} +1 -1
- package/dist/{types-B5wtXkOy.d.ts → types-Cyi3gwPK.d.ts} +6 -2
- package/dist/{types-BmLWSDdq.esm.js → types-ElOJAGaM.esm.js} +1 -0
- package/dist/video-selfie.d.ts +348 -0
- package/dist/video-selfie.esm.js +1472 -0
- package/dist/videoSelfieSteps-7M5vxKn-.esm.js +58 -0
- package/dist/{warmup-BPFiCw6Z.d.ts → warmup-CZ80odyW.d.ts} +5 -1
- package/dist/wasm.d.ts +4 -4
- package/dist/wasm.esm.js +18 -18
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +6 -6
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +6 -6
- package/dist/{watchlistForBusinessStateMachine-DUnGwscI.esm.js → watchlistForBusinessStateMachine-Dpx2tEHF.esm.js} +3 -3
- package/dist/{watchlistStateMachine-D6x4BABN.esm.js → watchlistStateMachine-z7-X0tWf.esm.js} +3 -3
- package/dist/workflow.d.ts +115 -115
- package/dist/workflow.esm.js +75 -72
- package/package.json +8 -3
- package/dist/camera-Kk9gT8I8.esm.js +0 -22
- package/dist/openviduLazy-DRlOk6Fa.esm.js +0 -3
- /package/dist/{Actor-D0X2YV92.d.ts → Actor-DYjXVMQm.d.ts} +0 -0
- /package/dist/{BrowserEnvironmentProvider--Rda18RB.esm.js → BrowserEnvironmentProvider-CrBAYw20.esm.js} +0 -0
- /package/dist/{BrowserStorageProvider-BsoYOG0O.esm.js → BrowserStorageProvider-C2pRHzF2.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-Dp6Dvq18.esm.js → BrowserTimerProvider-CHloo0eQ.esm.js} +0 -0
- /package/dist/{BrowserVisibilityObserverProvider-EZ_rxOqV.esm.js → BrowserVisibilityObserverProvider-CwxgeRE5.esm.js} +0 -0
- /package/dist/{ITimerCapability-Cqq9AIfp.esm.js → ITimerCapability-C2fjikpS.esm.js} +0 -0
- /package/dist/{IVisibilityObserverCapability-DIWWAmF2.d.ts → IVisibilityObserverCapability-BxPj7hsu.d.ts} +0 -0
- /package/dist/{IpifyProvider-CN96dlWf.esm.js → IpifyProvider-BRW14_uo.esm.js} +0 -0
- /package/dist/{Manager-BV5ZkaGs.d.ts → Manager-BylDhZIB.d.ts} +0 -0
- /package/dist/{MotionSensorProvider-DIBb_60H.esm.js → MotionSensorProvider-BtOFKz9L.esm.js} +0 -0
- /package/dist/{api-KOw05L_i.esm.js → api-DsbUi7TO.esm.js} +0 -0
- /package/dist/{apiError-CFVRvReX.esm.js → apiError-C4NaqM8p.esm.js} +0 -0
- /package/dist/{browser-DlFgHpoC-CTDo0MZI.esm.js → browser-DlFgHpoC-BieMg30k.esm.js} +0 -0
- /package/dist/{camera-CE_iClyf.d.ts → camera-CWO06Lu5.d.ts} +0 -0
- /package/dist/{canvas-CYuviOmq.esm.js → canvas-BhqSuIuO.esm.js} +0 -0
- /package/dist/{canvas-BFl4HMZy.d.ts → canvas-pLrXU1id.d.ts} +0 -0
- /package/dist/{chunk-DWboWZWR.esm.js → chunk-CIKcdghV.esm.js} +0 -0
- /package/dist/{cpf-DxC8njkD.esm.js → cpf-Dv38bdsH.esm.js} +0 -0
- /package/dist/{dateUtils-GSUTCu5W.esm.js → dateUtils-CmsPWQ3R.esm.js} +0 -0
- /package/dist/{flowCompletionService-CYN44D74.d.ts → flowCompletionService-9TuYMrhu.d.ts} +0 -0
- /package/dist/{getBrowser-THrm1MWD.esm.js → getBrowser-BKXPso_u.esm.js} +0 -0
- /package/dist/{getDeviceClass-BsWQ9mVm.esm.js → getDeviceClass-DYWA0flM.esm.js} +0 -0
- /package/dist/{http-BnPz8fHx.esm.js → http-BbZ696Pj.esm.js} +0 -0
- /package/dist/{index-B0ZPExIF.d.ts → index-BAyZ8_iI.d.ts} +0 -0
- /package/dist/{mediapipeShared-COY8pwRa.esm.js → mediapipeShared-Bcmkzs3x.esm.js} +0 -0
- /package/dist/{otp-DoLw7vGV.esm.js → otp-Bfnzf7I3.esm.js} +0 -0
- /package/dist/{otp-D3JAuulv.d.ts → otp-DZSnImi6.d.ts} +0 -0
- /package/dist/{platform-CwFB3DeY.esm.js → platform-uIVQUnJP.esm.js} +0 -0
- /package/dist/{types-BYdJ3Mc2.esm.js → types--nHSBKJP.esm.js} +0 -0
- /package/dist/{types-Dzi_YW-0.d.ts → types-BOiKESZY.d.ts} +0 -0
- /package/dist/{types-CoMD38x7.d.ts → types-CTnn7kUK.d.ts} +0 -0
- /package/dist/{urlUtils-i6O-S_Eb.esm.js → urlUtils-D8J2Zta7.esm.js} +0 -0
- /package/dist/{video-CSEulBxm.esm.js → video-Dy6zy_yl.esm.js} +0 -0
- /package/dist/{xstate.esm-MXSDq4yW.esm.js → xstate.esm-h2zbOb-8.esm.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import * as
|
|
1
|
+
import { t as Manager } from "./Manager-BylDhZIB.js";
|
|
2
|
+
import "./Actor-DYjXVMQm.js";
|
|
3
|
+
import * as xstate879 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/id-verification/types.d.ts
|
|
6
6
|
type IdVerificationConfig = {
|
|
@@ -32,26 +32,26 @@ type IdVerificationContext = {
|
|
|
32
32
|
type IdVerificationInput = {
|
|
33
33
|
config: IdVerificationConfig;
|
|
34
34
|
};
|
|
35
|
-
declare const idVerificationMachine:
|
|
35
|
+
declare const idVerificationMachine: xstate879.StateMachine<IdVerificationContext, {
|
|
36
36
|
type: "LOAD";
|
|
37
37
|
} | {
|
|
38
38
|
type: "CONTINUE";
|
|
39
39
|
}, {
|
|
40
|
-
[x: string]:
|
|
40
|
+
[x: string]: xstate879.ActorRefFromLogic<xstate879.PromiseActorLogic<ProcessIdResponse, {
|
|
41
41
|
isSecondId: boolean;
|
|
42
42
|
queueName: string;
|
|
43
|
-
},
|
|
43
|
+
}, xstate879.EventObject>> | undefined;
|
|
44
44
|
}, {
|
|
45
45
|
src: "processId";
|
|
46
|
-
logic:
|
|
46
|
+
logic: xstate879.PromiseActorLogic<ProcessIdResponse, {
|
|
47
47
|
isSecondId: boolean;
|
|
48
48
|
queueName: string;
|
|
49
|
-
},
|
|
49
|
+
}, xstate879.EventObject>;
|
|
50
50
|
id: string | undefined;
|
|
51
51
|
}, never, {
|
|
52
52
|
type: "isDocumentExpired";
|
|
53
53
|
params: unknown;
|
|
54
|
-
}, never, "idle" | "processing" | "finished" | "expired", string, IdVerificationInput,
|
|
54
|
+
}, never, "idle" | "processing" | "finished" | "expired", string, IdVerificationInput, xstate879.NonReducibleUnknown, xstate879.EventObject, xstate879.MetaObject, {
|
|
55
55
|
readonly id: "idVerification";
|
|
56
56
|
readonly initial: "idle";
|
|
57
57
|
readonly context: ({
|
|
@@ -60,50 +60,50 @@ declare const idVerificationMachine: xstate324.StateMachine<IdVerificationContex
|
|
|
60
60
|
spawn: {
|
|
61
61
|
<TSrc extends "processId">(logic: TSrc, ...[options]: {
|
|
62
62
|
src: "processId";
|
|
63
|
-
logic:
|
|
63
|
+
logic: xstate879.PromiseActorLogic<ProcessIdResponse, {
|
|
64
64
|
isSecondId: boolean;
|
|
65
65
|
queueName: string;
|
|
66
|
-
},
|
|
66
|
+
}, xstate879.EventObject>;
|
|
67
67
|
id: string | undefined;
|
|
68
68
|
} extends infer T ? T extends {
|
|
69
69
|
src: "processId";
|
|
70
|
-
logic:
|
|
70
|
+
logic: xstate879.PromiseActorLogic<ProcessIdResponse, {
|
|
71
71
|
isSecondId: boolean;
|
|
72
72
|
queueName: string;
|
|
73
|
-
},
|
|
73
|
+
}, xstate879.EventObject>;
|
|
74
74
|
id: string | undefined;
|
|
75
75
|
} ? T extends {
|
|
76
76
|
src: TSrc;
|
|
77
|
-
} ?
|
|
77
|
+
} ? xstate879.ConditionalRequired<[options?: ({
|
|
78
78
|
id?: T["id"] | undefined;
|
|
79
79
|
systemId?: string;
|
|
80
|
-
input?:
|
|
80
|
+
input?: xstate879.InputFrom<T["logic"]> | undefined;
|
|
81
81
|
syncSnapshot?: boolean;
|
|
82
|
-
} & { [K in
|
|
82
|
+
} & { [K in xstate879.RequiredActorOptions<T>]: unknown }) | undefined], xstate879.IsNotNever<xstate879.RequiredActorOptions<T>>> : never : never : never): xstate879.ActorRefFromLogic<xstate879.GetConcreteByKey<{
|
|
83
83
|
src: "processId";
|
|
84
|
-
logic:
|
|
84
|
+
logic: xstate879.PromiseActorLogic<ProcessIdResponse, {
|
|
85
85
|
isSecondId: boolean;
|
|
86
86
|
queueName: string;
|
|
87
|
-
},
|
|
87
|
+
}, xstate879.EventObject>;
|
|
88
88
|
id: string | undefined;
|
|
89
89
|
}, "src", TSrc>["logic"]>;
|
|
90
|
-
<TLogic extends
|
|
90
|
+
<TLogic extends xstate879.AnyActorLogic>(src: TLogic, ...[options]: xstate879.ConditionalRequired<[options?: ({
|
|
91
91
|
id?: never;
|
|
92
92
|
systemId?: string;
|
|
93
|
-
input?:
|
|
93
|
+
input?: xstate879.InputFrom<TLogic> | undefined;
|
|
94
94
|
syncSnapshot?: boolean;
|
|
95
|
-
} & { [K in
|
|
95
|
+
} & { [K in xstate879.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate879.IsNotNever<xstate879.RequiredLogicInput<TLogic>>>): xstate879.ActorRefFromLogic<TLogic>;
|
|
96
96
|
};
|
|
97
97
|
input: IdVerificationInput;
|
|
98
|
-
self:
|
|
98
|
+
self: xstate879.ActorRef<xstate879.MachineSnapshot<IdVerificationContext, {
|
|
99
99
|
type: "LOAD";
|
|
100
100
|
} | {
|
|
101
101
|
type: "CONTINUE";
|
|
102
|
-
}, Record<string,
|
|
102
|
+
}, Record<string, xstate879.AnyActorRef | undefined>, xstate879.StateValue, string, unknown, any, any>, {
|
|
103
103
|
type: "LOAD";
|
|
104
104
|
} | {
|
|
105
105
|
type: "CONTINUE";
|
|
106
|
-
},
|
|
106
|
+
}, xstate879.AnyEventObject>;
|
|
107
107
|
}) => {
|
|
108
108
|
config: IdVerificationConfig;
|
|
109
109
|
isSecondId: boolean;
|
|
@@ -127,15 +127,15 @@ declare const idVerificationMachine: xstate324.StateMachine<IdVerificationContex
|
|
|
127
127
|
} | {
|
|
128
128
|
type: "CONTINUE";
|
|
129
129
|
};
|
|
130
|
-
self:
|
|
130
|
+
self: xstate879.ActorRef<xstate879.MachineSnapshot<IdVerificationContext, {
|
|
131
131
|
type: "LOAD";
|
|
132
132
|
} | {
|
|
133
133
|
type: "CONTINUE";
|
|
134
|
-
}, Record<string,
|
|
134
|
+
}, Record<string, xstate879.AnyActorRef>, xstate879.StateValue, string, unknown, any, any>, {
|
|
135
135
|
type: "LOAD";
|
|
136
136
|
} | {
|
|
137
137
|
type: "CONTINUE";
|
|
138
|
-
},
|
|
138
|
+
}, xstate879.AnyEventObject>;
|
|
139
139
|
}) => {
|
|
140
140
|
isSecondId: boolean;
|
|
141
141
|
queueName: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { n as createManagerInstrumentation } from "./events-
|
|
3
|
-
import "./types-
|
|
4
|
-
import "./endpoints-
|
|
5
|
-
import { c as createManager, s as createActor } from "./xstate.esm-
|
|
6
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
1
|
+
import "./api-DsbUi7TO.esm.js";
|
|
2
|
+
import { n as createManagerInstrumentation } from "./events-CqGY1yMq.esm.js";
|
|
3
|
+
import "./types-ElOJAGaM.esm.js";
|
|
4
|
+
import "./endpoints-BzMJFAPV.esm.js";
|
|
5
|
+
import { c as createManager, s as createActor } from "./xstate.esm-h2zbOb-8.esm.js";
|
|
6
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-CVfNJ9c4.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/id-verification/idVerificationActor.ts
|
|
9
9
|
function createIdVerificationActor(options) {
|
package/dist/id.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import "./warmup-
|
|
2
|
-
import "./Manager-
|
|
3
|
-
import "./Actor-
|
|
4
|
-
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-
|
|
5
|
-
import { t as CameraStream } from "./camera-
|
|
6
|
-
import "./types-
|
|
7
|
-
import "./types-
|
|
8
|
-
import "./canvas-
|
|
9
|
-
import "./createFaceAvatar-
|
|
10
|
-
import "./types-
|
|
11
|
-
import "./
|
|
12
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-
|
|
13
|
-
import "./StreamCanvasCapture-
|
|
14
|
-
import
|
|
1
|
+
import "./warmup-CZ80odyW.js";
|
|
2
|
+
import "./Manager-BylDhZIB.js";
|
|
3
|
+
import "./Actor-DYjXVMQm.js";
|
|
4
|
+
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-BxPj7hsu.js";
|
|
5
|
+
import { t as CameraStream } from "./camera-CWO06Lu5.js";
|
|
6
|
+
import "./types-B_YCuHZx.js";
|
|
7
|
+
import "./types-CTnn7kUK.js";
|
|
8
|
+
import "./canvas-pLrXU1id.js";
|
|
9
|
+
import "./createFaceAvatar-DNMSIcRb.js";
|
|
10
|
+
import "./types-Cyi3gwPK.js";
|
|
11
|
+
import "./IWasmUtilCapability-DCe8akKn.js";
|
|
12
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-BOiKESZY.js";
|
|
13
|
+
import "./StreamCanvasCapture-DHDxv6hH.js";
|
|
14
|
+
import "./deepsightService-6J67NoN9.js";
|
|
15
|
+
import { $ as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, A as CaptureIdResponse, B as IdCaptureGeometry, C as IdCaptureOnlyMachine, D as createIdCaptureActor, E as IdCaptureActor, F as ID_ERROR_CODES, G as IdCapturedImageData, H as IdCaptureMode, I as IdCaptureConfig, J as IdErrorCode, K as IdDocumentType, L as IdCaptureContext, M as CapturedImage, N as DetectionArea, O as IdCaptureMachine, P as DetectionStatus, Q as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, R as IdCaptureDependencies, S as createIdCaptureOnlyActor, T as CreateIdCaptureActorOptions, U as IdCaptureOnlyConfig, V as IdCaptureInput, W as IdCaptureThresholds, X as RecordingSession, Y as IdFlowStep, Z as UploadIdResponse, _ as uploadIdImage, a as IdCaptureInitResult, at as IdCaptureSettings, b as CreateIdCaptureOnlyActorOptions, c as UploadIdImageParams, d as initializeIdCapture, et as MANUAL_UPLOAD_MAX_RETRIES, f as preloadIdRecordingProvider, g as stopStream, h as stopRecording, it as DetectionOrientation, j as CaptureOnlyResponse, k as idCaptureMachine, l as UploadManualIdFileParams, m as startRecordingSession, n as IdCaptureManager, nt as ManualUploadSide, o as InitializeIdCaptureParams, p as processId, q as IdError, r as IdCaptureState, rt as ManualUploadTab, s as StartRecordingParams, t as createIdCaptureManager, tt as ManualUploadContext, u as ValidationError, v as uploadManualIdFile, w as idCaptureOnlyMachine, x as IdCaptureOnlyActor, y as validateUploadResponse, z as IdCaptureEvent } from "./idCaptureManager-D8vun2iW.js";
|
|
15
16
|
|
|
16
17
|
//#region src/modules/id/idCaptureOnlyManager.d.ts
|
|
17
18
|
type IdCaptureOnlyManager = IdCaptureManager;
|
package/dist/id.esm.js
CHANGED
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
import "./WasmUtilProvider-
|
|
2
|
-
import "./BrowserTimerProvider-
|
|
3
|
-
import "./api-
|
|
4
|
-
import "./events-
|
|
5
|
-
import { n as eventModuleNames } from "./types-
|
|
6
|
-
import "./endpoints-
|
|
7
|
-
import "./stats-
|
|
8
|
-
import "./BrowserEnvironmentProvider
|
|
9
|
-
import "./browserSimulation-
|
|
10
|
-
import "./sessionInitializer-
|
|
11
|
-
import "./getDeviceData-
|
|
12
|
-
import "./IpifyProvider-
|
|
13
|
-
import "./platform-
|
|
14
|
-
import "./getBrowser-
|
|
15
|
-
import "./tri-
|
|
16
|
-
import { a as fromPromise, r as assign, s as createActor } from "./xstate.esm-
|
|
17
|
-
import "./apiError-
|
|
18
|
-
import "./BrowserVisibilityObserverProvider-
|
|
19
|
-
import "./MotionSensorProvider-
|
|
20
|
-
import "./permissionServices-
|
|
21
|
-
import "./camera-
|
|
22
|
-
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-
|
|
23
|
-
import "./onDeviceFaceResults-
|
|
24
|
-
import "./ITimerCapability-
|
|
25
|
-
import "./canvas-
|
|
26
|
-
import "./backCameraStream-
|
|
27
|
-
import "./video-
|
|
28
|
-
import "./getDeviceClass-
|
|
29
|
-
import "./deepsightService-
|
|
30
|
-
import "./getDeviceClass-
|
|
31
|
-
import "./types
|
|
32
|
-
import "./StreamCanvasCapture-
|
|
33
|
-
import "./permissionGuards-
|
|
34
|
-
import "./recordingService-
|
|
35
|
-
import "./
|
|
36
|
-
import
|
|
37
|
-
import {
|
|
38
|
-
import
|
|
1
|
+
import "./WasmUtilProvider-ADG54T6M.esm.js";
|
|
2
|
+
import "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
3
|
+
import "./api-DsbUi7TO.esm.js";
|
|
4
|
+
import "./events-CqGY1yMq.esm.js";
|
|
5
|
+
import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
|
|
6
|
+
import "./endpoints-BzMJFAPV.esm.js";
|
|
7
|
+
import "./stats-CYcScXcO.esm.js";
|
|
8
|
+
import "./BrowserEnvironmentProvider-CrBAYw20.esm.js";
|
|
9
|
+
import "./browserSimulation-CUgn29iJ.esm.js";
|
|
10
|
+
import "./sessionInitializer-CE4VkACt.esm.js";
|
|
11
|
+
import "./getDeviceData-cRiZDfyj.esm.js";
|
|
12
|
+
import "./IpifyProvider-BRW14_uo.esm.js";
|
|
13
|
+
import "./platform-uIVQUnJP.esm.js";
|
|
14
|
+
import "./getBrowser-BKXPso_u.esm.js";
|
|
15
|
+
import "./tri-CvoIihYm.esm.js";
|
|
16
|
+
import { a as fromPromise, r as assign, s as createActor } from "./xstate.esm-h2zbOb-8.esm.js";
|
|
17
|
+
import "./apiError-C4NaqM8p.esm.js";
|
|
18
|
+
import "./BrowserVisibilityObserverProvider-CwxgeRE5.esm.js";
|
|
19
|
+
import "./MotionSensorProvider-BtOFKz9L.esm.js";
|
|
20
|
+
import "./permissionServices-DylQrLrh.esm.js";
|
|
21
|
+
import "./camera-3BoIlw6r.esm.js";
|
|
22
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C2pRHzF2.esm.js";
|
|
23
|
+
import "./onDeviceFaceResults-u-0o4u8K.esm.js";
|
|
24
|
+
import "./ITimerCapability-C2fjikpS.esm.js";
|
|
25
|
+
import "./canvas-BhqSuIuO.esm.js";
|
|
26
|
+
import "./backCameraStream-cH8Ctfrg.esm.js";
|
|
27
|
+
import "./video-Dy6zy_yl.esm.js";
|
|
28
|
+
import "./getDeviceClass-DYWA0flM.esm.js";
|
|
29
|
+
import "./deepsightService-lLD3G31S.esm.js";
|
|
30
|
+
import "./getDeviceClass-CKbolkq0.esm.js";
|
|
31
|
+
import "./types--nHSBKJP.esm.js";
|
|
32
|
+
import "./StreamCanvasCapture-DNcWK2xu.esm.js";
|
|
33
|
+
import "./permissionGuards-pJ0BBI8s.esm.js";
|
|
34
|
+
import "./recordingService-Bu2ksN82.esm.js";
|
|
35
|
+
import "./mediaRecorderOptions-WW6P1KjB.esm.js";
|
|
36
|
+
import "./session-ACyn7yHq.esm.js";
|
|
37
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, h as MANUAL_UPLOAD_MAX_RETRIES, i as preloadIdRecordingProvider, l as uploadIdImage, m as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, o as startRecordingSession, p as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, r as initializeIdCapture, s as stopRecording, t as idCaptureMachine, u as uploadManualIdFile } from "./idCaptureStateMachine-BwJ4Oja2.esm.js";
|
|
38
|
+
import "./idCaptureDefaults-Dtu-M3av.esm.js";
|
|
39
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-IEa7x3cX.esm.js";
|
|
40
|
+
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-D5rcHH57.esm.js";
|
|
39
41
|
|
|
40
42
|
//#region src/modules/id/idCaptureOnlyStateMachine.ts
|
|
41
43
|
function buildSubImage(canvas) {
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { d as IdCaptureModelType, i as mlWasmJSApi_default, n as BaseWasmProvider, u as WasmPipelineType } from "./WasmUtilProvider-ADG54T6M.esm.js";
|
|
2
|
+
import { t as IncodeCanvas } from "./canvas-BhqSuIuO.esm.js";
|
|
3
|
+
|
|
4
|
+
//#region ../infra/src/providers/wasm/IdCaptureProvider.ts
|
|
5
|
+
var IdCaptureProvider = class extends BaseWasmProvider {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(WasmPipelineType.IdBlurGlarePipeline);
|
|
8
|
+
this.lastProcessResult = null;
|
|
9
|
+
this.capturedCanvas = null;
|
|
10
|
+
this.originalCapturedCanvas = null;
|
|
11
|
+
}
|
|
12
|
+
async initialize(config) {
|
|
13
|
+
if (config.videoSelfie === true) {
|
|
14
|
+
this.pipelineType = WasmPipelineType.IdVideoSelfiePipeline;
|
|
15
|
+
await this.initializeBase(config, "videoSelfieId");
|
|
16
|
+
} else await this.initializeBase(config, "idCapture");
|
|
17
|
+
}
|
|
18
|
+
setCallbacks(callbacks) {
|
|
19
|
+
this.ensureInitialized();
|
|
20
|
+
const onCaptureWrapper = () => {
|
|
21
|
+
callbacks.onCapture?.();
|
|
22
|
+
};
|
|
23
|
+
mlWasmJSApi_default.setIdCaptureCallbacks(this.getPipelineType(), callbacks.onFarAway ?? (() => {}), callbacks.onDetectionStarted ?? (() => {}), callbacks.onMaskChange ? (show, mask, top, orientation) => callbacks.onMaskChange?.(show, mask, top, orientation) : () => {}, callbacks.onBlur ?? (() => {}), callbacks.onGlare ?? (() => {}), callbacks.onCapturing ?? (() => {}), callbacks.onCapture ? onCaptureWrapper : () => {}, callbacks.onBestFrame ? (blur, glare, orientation) => callbacks.onBestFrame?.(blur, glare, orientation) : () => {}, callbacks.onIdNotDetected ?? (() => {}), callbacks.onSwitchToManualCapture ?? (() => {}), callbacks.onIdTypeChange ? (idType) => callbacks.onIdTypeChange?.(idType) : () => {}, callbacks.onIdSideChange ? (side) => callbacks.onIdSideChange?.(side) : () => {}, callbacks.onCapturingCounterValueChange ? (value) => callbacks.onCapturingCounterValueChange?.(value) : () => {});
|
|
24
|
+
}
|
|
25
|
+
setThresholds(thresholds) {
|
|
26
|
+
this.ensureInitialized();
|
|
27
|
+
mlWasmJSApi_default.setIdCaptureThresholds(this.getPipelineType(), thresholds.blurThreshold, thresholds.blurChangeThreshold, thresholds.glareThreshold, thresholds.clsThreshold, thresholds.sideThreshold, thresholds.iouThreshold, thresholds.idDetectedTimeout, thresholds.autocaptureTimeout, thresholds.framesAggregationInterval);
|
|
28
|
+
}
|
|
29
|
+
setGeometry(geometry) {
|
|
30
|
+
this.ensureInitialized();
|
|
31
|
+
mlWasmJSApi_default.setIdCaptureGeometryParams(this.getPipelineType(), geometry.areaDown, geometry.areaUp, geometry.areaIOSPassportUp, geometry.areaIOSPassportDown, geometry.widthIOSUp, geometry.widthIOSDown, geometry.widthDown, geometry.widthUp, geometry.windowOuterWidth, geometry.windowOuterHeight, geometry.windowInnerWidth, geometry.windowInnerHeight);
|
|
32
|
+
}
|
|
33
|
+
setSettings(settings) {
|
|
34
|
+
this.ensureInitialized();
|
|
35
|
+
mlWasmJSApi_default.setIdCaptureConfigParams(this.getPipelineType(), settings.isFixedMask, settings.isIPhone14OrHigher, settings.idType, settings.blurCheckEnabled, settings.glareCheckEnabled, settings.faceQualityCheckEnabled, settings.iouCheckEnabled, settings.fpsLimitEnabled);
|
|
36
|
+
}
|
|
37
|
+
setModelType(modelType) {
|
|
38
|
+
this.ensureInitialized();
|
|
39
|
+
let wasmModelType;
|
|
40
|
+
switch (modelType) {
|
|
41
|
+
case "v1":
|
|
42
|
+
wasmModelType = IdCaptureModelType.IdCaptureV1x;
|
|
43
|
+
break;
|
|
44
|
+
case "v2":
|
|
45
|
+
wasmModelType = IdCaptureModelType.IdCaptureV2x;
|
|
46
|
+
break;
|
|
47
|
+
case "v3":
|
|
48
|
+
wasmModelType = IdCaptureModelType.IdCaptureV3x;
|
|
49
|
+
break;
|
|
50
|
+
default: throw new Error(`Unknown model type: ${modelType}`);
|
|
51
|
+
}
|
|
52
|
+
mlWasmJSApi_default.setIdCaptureModelType(this.getPipelineType(), wasmModelType);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Processes a frame through the WASM pipeline and stores the result.
|
|
56
|
+
*/
|
|
57
|
+
async processFrame(image) {
|
|
58
|
+
const result = await this.processFrameWasm(image);
|
|
59
|
+
const pipelineType = this.getPipelineType();
|
|
60
|
+
if (result && (pipelineType === WasmPipelineType.IdBlurGlarePipeline || pipelineType === WasmPipelineType.IdVideoSelfiePipeline)) this.lastProcessResult = result;
|
|
61
|
+
else this.lastProcessResult = null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Gets the last process result from the most recent frame processing.
|
|
65
|
+
* @returns The last process result with quad coordinates, or null if not available
|
|
66
|
+
*/
|
|
67
|
+
getLastProcessResult() {
|
|
68
|
+
return this.lastProcessResult;
|
|
69
|
+
}
|
|
70
|
+
transformPerspective(canvas, frameRect) {
|
|
71
|
+
this.ensureInitialized();
|
|
72
|
+
const originalWidth = canvas.width();
|
|
73
|
+
const originalHeight = canvas.height();
|
|
74
|
+
try {
|
|
75
|
+
const imageData = canvas.getImageData();
|
|
76
|
+
if (!imageData) return canvas;
|
|
77
|
+
const transformedCanvas = mlWasmJSApi_default.IdPerspectiveTransform(imageData, frameRect);
|
|
78
|
+
if (transformedCanvas) {
|
|
79
|
+
const wrappedCanvas = new IncodeCanvas(transformedCanvas);
|
|
80
|
+
const wrappedWidth = wrappedCanvas.width();
|
|
81
|
+
const wrappedHeight = wrappedCanvas.height();
|
|
82
|
+
if (wrappedWidth === originalWidth && wrappedHeight === originalHeight) {
|
|
83
|
+
const croppedCanvas = this.cropCanvasToRect(wrappedCanvas, {
|
|
84
|
+
x: Math.round(frameRect.x),
|
|
85
|
+
y: Math.round(frameRect.y),
|
|
86
|
+
w: Math.round(frameRect.w),
|
|
87
|
+
h: Math.round(frameRect.h)
|
|
88
|
+
});
|
|
89
|
+
if (croppedCanvas) return croppedCanvas;
|
|
90
|
+
}
|
|
91
|
+
return wrappedCanvas;
|
|
92
|
+
}
|
|
93
|
+
return canvas;
|
|
94
|
+
} catch (_error) {
|
|
95
|
+
return canvas;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Crops a canvas to the specified rectangle region.
|
|
100
|
+
* @param canvas - The canvas to crop
|
|
101
|
+
* @param rect - The rectangle to crop to (x, y, w, h)
|
|
102
|
+
* @returns A new IncodeCanvas with the cropped region, or null if cropping fails
|
|
103
|
+
*/
|
|
104
|
+
cropCanvasToRect(canvas, rect) {
|
|
105
|
+
const canvasWidth = canvas.width();
|
|
106
|
+
const canvasHeight = canvas.height();
|
|
107
|
+
if (!canvasWidth || !canvasHeight) return null;
|
|
108
|
+
const x = Math.max(0, Math.min(rect.x, canvasWidth));
|
|
109
|
+
const y = Math.max(0, Math.min(rect.y, canvasHeight));
|
|
110
|
+
const w = Math.max(1, Math.min(rect.w, canvasWidth - x));
|
|
111
|
+
const h = Math.max(1, Math.min(rect.h, canvasHeight - y));
|
|
112
|
+
const croppedCanvasElement = document.createElement("canvas");
|
|
113
|
+
croppedCanvasElement.width = w;
|
|
114
|
+
croppedCanvasElement.height = h;
|
|
115
|
+
const ctx = croppedCanvasElement.getContext("2d");
|
|
116
|
+
if (!ctx) return null;
|
|
117
|
+
ctx.drawImage(canvas.canvas, x, y, w, h, 0, 0, w, h);
|
|
118
|
+
return new IncodeCanvas(croppedCanvasElement);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Gets the captured canvas (transformed for preview).
|
|
122
|
+
* @returns The captured canvas, or null if not available
|
|
123
|
+
*/
|
|
124
|
+
getCapturedCanvas() {
|
|
125
|
+
return this.capturedCanvas;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Gets the original captured canvas (full frame for upload).
|
|
129
|
+
* @returns The original captured canvas, or null if not available
|
|
130
|
+
*/
|
|
131
|
+
getOriginalCapturedCanvas() {
|
|
132
|
+
return this.originalCapturedCanvas;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Sets the captured canvases (original and transformed).
|
|
136
|
+
* @param original - The original full-frame canvas (for upload)
|
|
137
|
+
* @param transformed - The transformed canvas (for preview)
|
|
138
|
+
*/
|
|
139
|
+
setCapturedCanvases(original, transformed) {
|
|
140
|
+
this.originalCapturedCanvas = original;
|
|
141
|
+
this.capturedCanvas = transformed;
|
|
142
|
+
}
|
|
143
|
+
reset() {
|
|
144
|
+
super.reset();
|
|
145
|
+
this.lastProcessResult = null;
|
|
146
|
+
this.capturedCanvas = null;
|
|
147
|
+
this.originalCapturedCanvas = null;
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region ../infra/src/wasm/idCaptureDefaults.ts
|
|
153
|
+
/**
|
|
154
|
+
* Default WASM thresholds for ID capture quality checks.
|
|
155
|
+
* Based on legacy pipelinesConfig.ts values.
|
|
156
|
+
*/
|
|
157
|
+
const DEFAULT_ID_CAPTURE_THRESHOLDS = {
|
|
158
|
+
blurThreshold: .2,
|
|
159
|
+
blurChangeThreshold: .2,
|
|
160
|
+
glareThreshold: .3,
|
|
161
|
+
clsThreshold: .98,
|
|
162
|
+
sideThreshold: .8,
|
|
163
|
+
iouThreshold: .8,
|
|
164
|
+
idDetectedTimeout: 1e4,
|
|
165
|
+
autocaptureTimeout: 5e3,
|
|
166
|
+
framesAggregationInterval: 3e3
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Default geometry parameters for ID detection.
|
|
170
|
+
* Window dimensions must be provided at runtime.
|
|
171
|
+
*/
|
|
172
|
+
const DEFAULT_ID_CAPTURE_GEOMETRY = {
|
|
173
|
+
areaDown: 25e3,
|
|
174
|
+
areaUp: 55e3,
|
|
175
|
+
areaIOSPassportUp: 3e4,
|
|
176
|
+
areaIOSPassportDown: 2e4,
|
|
177
|
+
widthIOSUp: 160,
|
|
178
|
+
widthIOSDown: 85,
|
|
179
|
+
widthDown: 110,
|
|
180
|
+
widthUp: 205
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Default model version for ID capture.
|
|
184
|
+
*/
|
|
185
|
+
const DEFAULT_ID_CAPTURE_MODEL_VERSION = "v2";
|
|
186
|
+
|
|
187
|
+
//#endregion
|
|
188
|
+
export { IdCaptureProvider as i, DEFAULT_ID_CAPTURE_MODEL_VERSION as n, DEFAULT_ID_CAPTURE_THRESHOLDS as r, DEFAULT_ID_CAPTURE_GEOMETRY as t };
|
|
@@ -1,20 +1,28 @@
|
|
|
1
|
-
import { n as AnyStateMachine, r as StateMachine, t as Manager } from "./Manager-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
3
|
-
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-
|
|
4
|
-
import { t as CameraStream } from "./camera-
|
|
5
|
-
import { t as IncodeCanvas } from "./canvas-
|
|
6
|
-
import { _ as MLProviderConfig, g as IMLProviderCapability } from "./createFaceAvatar-
|
|
7
|
-
import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-
|
|
8
|
-
import { a as
|
|
9
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-
|
|
10
|
-
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-
|
|
1
|
+
import { n as AnyStateMachine, r as StateMachine, t as Manager } from "./Manager-BylDhZIB.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-DYjXVMQm.js";
|
|
3
|
+
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-BxPj7hsu.js";
|
|
4
|
+
import { t as CameraStream } from "./camera-CWO06Lu5.js";
|
|
5
|
+
import { t as IncodeCanvas } from "./canvas-pLrXU1id.js";
|
|
6
|
+
import { _ as MLProviderConfig, g as IMLProviderCapability } from "./createFaceAvatar-DNMSIcRb.js";
|
|
7
|
+
import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-Cyi3gwPK.js";
|
|
8
|
+
import { a as IRecordingCapability, i as IStorageCapability, o as RecordingConnection } from "./IWasmUtilCapability-DCe8akKn.js";
|
|
9
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-BOiKESZY.js";
|
|
10
|
+
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-DHDxv6hH.js";
|
|
11
|
+
import { t as DeepsightService } from "./deepsightService-6J67NoN9.js";
|
|
11
12
|
|
|
12
13
|
//#region ../infra/src/capabilities/IIdCaptureCapability.d.ts
|
|
13
14
|
/**
|
|
14
15
|
* Configuration for ID capture provider.
|
|
15
16
|
* Extends base ML provider config with ID-capture specific options.
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
|
+
interface IdCaptureConfig$1 extends MLProviderConfig {
|
|
19
|
+
/**
|
|
20
|
+
* Load the video-selfie ID workflow (`IdVideoSelfiePipeline`, the simplified
|
|
21
|
+
* ID-capture pipeline without a capturing-manager timer, used by the
|
|
22
|
+
* video-selfie flow) instead of the default blur/glare ID pipeline.
|
|
23
|
+
*/
|
|
24
|
+
videoSelfie?: boolean;
|
|
25
|
+
}
|
|
18
26
|
interface IdCaptureThresholds$1 {
|
|
19
27
|
blurThreshold: number;
|
|
20
28
|
blurChangeThreshold: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as createManagerInstrumentation, t as topLevelStateName } from "./events-
|
|
2
|
-
import { n as eventModuleNames } from "./types-
|
|
3
|
-
import { c as createManager, s as createActor } from "./xstate.esm-
|
|
4
|
-
import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-
|
|
5
|
-
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
6
|
-
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-
|
|
7
|
-
import { g as mapDigitalIdScreenName, n as mapIdManualUploadScreenName, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
1
|
+
import { n as createManagerInstrumentation, t as topLevelStateName } from "./events-CqGY1yMq.esm.js";
|
|
2
|
+
import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
|
|
3
|
+
import { c as createManager, s as createActor } from "./xstate.esm-h2zbOb-8.esm.js";
|
|
4
|
+
import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-CwxgeRE5.esm.js";
|
|
5
|
+
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DylQrLrh.esm.js";
|
|
6
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C2pRHzF2.esm.js";
|
|
7
|
+
import { g as mapDigitalIdScreenName, n as mapIdManualUploadScreenName, t as idCaptureMachine } from "./idCaptureStateMachine-BwJ4Oja2.esm.js";
|
|
8
8
|
|
|
9
9
|
//#region src/internal/idCapture/idCaptureManagerFactory.ts
|
|
10
10
|
function getPermissionStatus(snapshot) {
|