@incodetech/core 0.0.0-dev-20261013-c7751a9f → 0.0.0-dev-20261013-c982cdcd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FaceDetectionProvider-XAuZT7P9.esm.js → FaceDetectionProvider-CGDd_ogY.esm.js} +9 -8
- package/dist/{IWasmUtilCapability-VC40Kx9N.d.ts → IWasmUtilCapability-CPX0RGdQ.d.ts} +23 -1
- package/dist/{MotionSensorProvider-MQ80-spU.esm.js → MotionSensorProvider-DYxh8TjR.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-CeBBJ_RC.d.ts → StreamCanvasCapture-DVmzJux5.d.ts} +1 -1
- package/dist/{safeStorage-DDAHV26l.esm.js → WasmUtilProvider-CIdnE7Fx.esm.js} +87 -36
- package/dist/{addressSearch-CoXo7lfZ.esm.js → addressSearch-Bm8zTbQJ.esm.js} +3 -3
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-nkA1Xfm1.esm.js → antifraudManager-HL08jeDX.esm.js} +3 -3
- package/dist/{antifraudStateMachine-bbi6-rKP.esm.js → antifraudStateMachine-DoJVzblM.esm.js} +3 -3
- package/dist/{apiError-B9McXt0d.esm.js → apiError-B7lJaeTn.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BhZZQzwi.esm.js → authenticationManager-Bk74vxGj.esm.js} +6 -6
- package/dist/{authenticationManager-MVD0mrCo.d.ts → authenticationManager-CANv5-W5.d.ts} +1 -1
- package/dist/{authenticationStateMachine-PEbpCJ0-.esm.js → authenticationStateMachine-CSqcE4y3.esm.js} +5 -5
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-B-qjOJde.esm.js → certificateIssuanceManager-CKJ4qjLc.esm.js} +3 -3
- package/dist/{certificateIssuanceStateMachine-DwLGw_a2.esm.js → certificateIssuanceStateMachine-yizSIonY.esm.js} +3 -3
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-BhGljt6D.esm.js → consentManager-CjrxY737.esm.js} +3 -3
- package/dist/{consentStateMachine-fvRt5D6e.esm.js → consentStateMachine-BCj5Jb3g.esm.js} +3 -3
- package/dist/{createCameraCycleOwnership-BvOOxU85.esm.js → createCameraCycleOwnership-kdlhkmmY.esm.js} +2 -2
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-hxUaa6y_.esm.js → crossDocumentDataMatchManager-BHnGRsto.esm.js} +4 -4
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-u6dRo9Bq.esm.js → curpValidationManager-DBNIn8BF.esm.js} +3 -3
- package/dist/{curpValidationStateMachine-Sf4rGn_0.esm.js → curpValidationStateMachine-DAxImy8p.esm.js} +3 -3
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-C5Vw3fdd.esm.js → customFieldsManager-BV6UyLFV.esm.js} +4 -4
- package/dist/{customWatchlistManager-szjmQvYu.esm.js → customWatchlistManager-DML0UPzf.esm.js} +3 -3
- package/dist/{customWatchlistStateMachine-BtlZ6qoX.esm.js → customWatchlistStateMachine-D9gI5uu7.esm.js} +3 -3
- package/dist/deepsightLoader-Bbannll8.esm.js +55 -0
- package/dist/{deepsightLoader-Cbrw8v4S.esm.js → deepsightService-cd1HQvBB.esm.js} +50 -55
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-CV_bOPkN.esm.js → documentCaptureManager-C9XUnYU6.esm.js} +3 -3
- package/dist/{documentCaptureStateMachine-CY4BH_nx.esm.js → documentCaptureStateMachine-BHDsCfhL.esm.js} +5 -5
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-Bunapr8H.esm.js → dynamicFormsManager-DvzIRQGp.esm.js} +3 -3
- package/dist/{dynamicFormsStateMachine-Ba7NhLvL.esm.js → dynamicFormsStateMachine-BXq12SGh.esm.js} +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BXpy_3I6.esm.js → ekybManager-Bov25P3N.esm.js} +3 -3
- package/dist/{ekybStateMachine-DDyaxJ35.esm.js → ekybStateMachine-iwmM5mCm.esm.js} +5 -5
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-DsfBcNxs.esm.js → ekycManager-DZH51PnN.esm.js} +3 -3
- package/dist/{ekycStateMachine-DPMzZNhD.esm.js → ekycStateMachine-DnKlILfu.esm.js} +4 -4
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DYJZjAtq.esm.js → electronicSignatureManager-DBhszLrG.esm.js} +5 -5
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-ppIDOf_n.esm.js → emailManager-CtlKRRaR.esm.js} +3 -3
- package/dist/{emailStateMachine-NiunNxhH.esm.js → emailStateMachine-5Neq3rE5.esm.js} +4 -4
- package/dist/{endpoints-Bs3D8B_G.esm.js → endpoints-DHzlkQNe.esm.js} +1 -0
- package/dist/{events-CfLLkAh7.esm.js → events-CAgFE-k3.esm.js} +15 -3
- package/dist/events.d.ts +2 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +9 -9
- package/dist/extensibility.esm.js +36 -36
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-BOWlD2lH.esm.js → faceCaptureManagerFactory-DWHQBeL2.esm.js} +15 -6
- package/dist/{faceCaptureManagerFactory-D-XSP04N.d.ts → faceCaptureManagerFactory-jKQ2QtY-.d.ts} +4 -4
- package/dist/{faceCaptureSetup-CeAyB-yC.esm.js → faceCaptureSetup-BBqAdrqm.esm.js} +11 -11
- package/dist/{faceMatchManager-BSR94HnV.esm.js → faceMatchManager-9Nj9aPci.esm.js} +3 -3
- package/dist/{faceMatchStateMachine-BA9LVrWJ.esm.js → faceMatchStateMachine-B9ZUnlyU.esm.js} +3 -3
- package/dist/{feature-management-DYRVLOMy.esm.js → feature-management-DPIl-FtB.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-B2y1ko1f.esm.js → fieldComparisonManager-Dk38hXZP.esm.js} +4 -4
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-gmU-xLHP.esm.js → fiscalQrManager-DmBkQfs0.esm.js} +5 -5
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +6 -6
- package/dist/{flowCompletionService-xRc0i-x5.esm.js → flowCompletionService-BTxuv1Wb.esm.js} +2 -2
- package/dist/{flowServices-B8SKnzY5.esm.js → flowServices-pk---1Sx.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DPPSB_oq.esm.js → geolocationManager-Ck6DsjTo.esm.js} +3 -3
- package/dist/{geolocationStateMachine-CcrrUnPD.esm.js → geolocationStateMachine-Ap2O_wgT.esm.js} +4 -4
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-UuH2s-oi.esm.js → governmentValidationManager-CP0SiOOe.esm.js} +3 -3
- package/dist/{governmentValidationStateMachine-BvvrC_3A.esm.js → governmentValidationStateMachine-C3YQ8yCZ.esm.js} +3 -3
- package/dist/home.esm.js +2 -2
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +11 -11
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-CAKXwWww.esm.js → idCaptureDefaults-CQLveJd1.esm.js} +2 -2
- package/dist/{idCaptureManager-BXYldO77.d.ts → idCaptureManager-DW3eER4t.d.ts} +6 -3
- package/dist/{idCaptureManager-Bwpdlvxp.esm.js → idCaptureManager-TokRg0VQ.esm.js} +28 -20
- package/dist/{idCaptureServices-ssbb13iE.esm.js → idCaptureServices-BGhipfoM.esm.js} +8 -8
- package/dist/{idCaptureStateMachine-CL7qwlse.esm.js → idCaptureStateMachine-ByWuXQze.esm.js} +21 -21
- package/dist/{idOcrManager-124LjyWj.esm.js → idOcrManager-DxoCesYP.esm.js} +3 -3
- package/dist/{idOcrStateMachine-Bd0-Hp9V.esm.js → idOcrStateMachine-kPn7DB2I.esm.js} +3 -3
- package/dist/{idVerificationManager-BYVW3pLG.esm.js → idVerificationManager-CDhRUU5n.esm.js} +3 -3
- package/dist/{idVerificationStateMachine-BtrFQSDe.esm.js → idVerificationStateMachine-0HTVVxse.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-fu5okQhu.esm.js → identityReuseManager-BleUi6TK.esm.js} +3 -3
- package/dist/{identityReuseManager-BUNksfYU.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +8 -8
- package/dist/{identityReuseStateMachine-CCYWIgGl.esm.js → identityReuseStateMachine-BrBUpfn5.esm.js} +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-Brs1lo61.esm.js → invokeOnCaptureCallback-BW7V3vub.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-DDixKrq0.d.ts → mandatoryConsentManager-BkaLkcA2.d.ts} +4 -4
- package/dist/{mandatoryConsentManager-tCHVwjtG.esm.js → mandatoryConsentManager-CX_Dyht7.esm.js} +3 -3
- package/dist/{mandatoryConsentStateMachine-CZKXCn6v.esm.js → mandatoryConsentStateMachine-CoaSB7P7.esm.js} +3 -3
- package/dist/{multipartRecordingService-CMjkhS2x.esm.js → multipartRecordingService-DbeQpXdU.esm.js} +2 -2
- package/dist/{permissionGuards-DGU1uh4i.esm.js → permissionGuards-Bf4LbHjC.esm.js} +1 -1
- package/dist/{permissionServices-CPwDYRp8.esm.js → permissionServices-d2UW0r_L.esm.js} +2 -2
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-B6Uu_237.esm.js → phoneManager-BGBcpqsk.esm.js} +3 -3
- package/dist/{phoneStateMachine-pue0_Jsi.esm.js → phoneStateMachine-CEm2y7yG.esm.js} +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-CQlyUyc8.esm.js → redirectToMobileManager-D8xpgVHn.esm.js} +4 -4
- package/dist/{redirectToMobileStateMachine-tGbjPhIm.esm.js → redirectToMobileStateMachine-DjKfrc4P.esm.js} +4 -4
- package/dist/{runChildModule-CQWc5KMf.esm.js → runChildModule-CpXjbJfG.esm.js} +4 -4
- package/dist/safeStorage-UxDrnjwa.esm.js +35 -0
- package/dist/{sdkVersion-C6hcFArL.esm.js → sdkVersion-DvwSi-xM.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +12 -12
- package/dist/{selfieErrorUtils-LZLapGy6.esm.js → selfieErrorUtils-CQnuPhYb.esm.js} +1 -1
- package/dist/{selfieManager-CizvitYB.d.ts → selfieManager-1J0IEyFq.d.ts} +1 -1
- package/dist/{selfieManager-CG5VP1C-.esm.js → selfieManager-DCzPlJCU.esm.js} +6 -6
- package/dist/{selfieStateMachine-DsVxSp4B.esm.js → selfieStateMachine-IEKFw85T.esm.js} +5 -5
- package/dist/{session-BoAOTj24.esm.js → session-5KHEGxgB.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-Gjn-NrIE.esm.js → sessionInitializer-CiraPSTG.esm.js} +197 -7
- package/dist/{setup-CCsxCTuW.esm.js → setup-BJzlqOTL.esm.js} +176 -104
- package/dist/{setup-CDyTzfIx.d.ts → setup-oKDzNC62.d.ts} +6 -2
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-CEYKCuO4.esm.js → signatureManager-qqXyH93e.esm.js} +3 -3
- package/dist/{signatureStateMachine-C6Wh9ylX.esm.js → signatureStateMachine-BkRSrkKp.esm.js} +3 -3
- package/dist/splitTrackedName-3zJRd2RD.esm.js +19 -0
- package/dist/{stats-Dz3XWA64.esm.js → stats-DmG_tkGk.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService-BLM6oloV.esm.js → trueSightService-Crpt3M-t.esm.js} +843 -843
- package/dist/trust-graph.esm.js +2 -2
- package/dist/{types-66IWBtU4.d.ts → types-C71Zo6vl.d.ts} +1 -1
- package/dist/{types-D0VzhBS7.d.ts → types-CwCWyBEi.d.ts} +2 -2
- package/dist/{types-nJoHpLPM.d.ts → types-zpO4fU6a.d.ts} +1 -1
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +10 -10
- package/dist/{videoSelfieCameraWarmer-BctIPNfo.esm.js → videoSelfieCameraWarmer-CND0HDro.esm.js} +8 -8
- package/dist/{videoSelfieFlowModuleMachine-DQTlyw98.esm.js → videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-D0Ws77pD.d.ts → videoSelfieStepDetector-C5QHOvWb.d.ts} +2 -2
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +2 -2
- package/dist/{wasmDsFlagSync-BWpBwxxe.esm.js → wasmDsFlagSync-BXCGqP48.esm.js} +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-cbMppk5K.esm.js → watchlistForBusinessManager-BvF4jK3S.esm.js} +3 -3
- package/dist/{watchlistForBusinessStateMachine-DsLzqEQG.esm.js → watchlistForBusinessStateMachine-121XK-Et.esm.js} +3 -3
- package/dist/{watchlistManager-F1bI2Ad4.esm.js → watchlistManager-CNWEOYSq.esm.js} +3 -3
- package/dist/{watchlistStateMachine-DU28IiMQ.esm.js → watchlistStateMachine-Dgfm42w2.esm.js} +3 -3
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +38 -38
- package/dist/{xstate-actors.esm-Ccyzgxj1.esm.js → xstate-actors.esm-8Gzepa_A.esm.js} +1 -1
- package/dist/{xstate.esm-Bg3FuvIs.esm.js → xstate.esm-DSajW7CJ.esm.js} +9 -2
- package/package.json +1 -1
- package/dist/virtualCameraCheck-CW8mFdt9.esm.js +0 -48
package/dist/trust-graph.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { s as createActor, t as setup, u as createManager } from "./xstate.esm-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
|
+
import { s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
//#region src/modules/trust-graph/trustGraphStateMachine.ts
|
|
4
4
|
/**
|
|
5
5
|
* Trust-graph is a headless "skip" module: it has no UI and the SDK performs no
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as FlowModuleConfig } from "./types-BGXxRwQM.js";
|
|
2
|
-
import { t as BaseFaceCaptureConfig } from "./types-
|
|
2
|
+
import { t as BaseFaceCaptureConfig } from "./types-zpO4fU6a.js";
|
|
3
3
|
//#region src/modules/authentication/types.d.ts
|
|
4
4
|
type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
|
|
5
5
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { y as IncodeCanvas } from "./createFaceAvatar-DXgmQmQy.js";
|
|
2
2
|
import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-BGXxRwQM.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as IStorageCapability } from "./IWasmUtilCapability-CPX0RGdQ.js";
|
|
4
4
|
import { t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
5
|
-
import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-
|
|
5
|
+
import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-DVmzJux5.js";
|
|
6
6
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
7
7
|
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
|
|
8
8
|
//#region ../infra/src/capabilities/IDigitalCredentialsCapability.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as AvatarAssetsOverrides } from "./createFaceAvatar-DXgmQmQy.js";
|
|
2
2
|
import { n as Flow, s as SelfieConcealmentOption } from "./types-BGXxRwQM.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as IStorageCapability, n as IWasmUtilCapability } from "./IWasmUtilCapability-CPX0RGdQ.js";
|
|
4
4
|
//#region src/internal/faceCapture/types.d.ts
|
|
5
5
|
type CameraResolution = {
|
|
6
6
|
width?: number;
|
package/dist/video-selfie.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import "./Actor-DpTj5PFb.js";
|
|
|
5
5
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
6
6
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
7
7
|
import { t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
|
|
8
|
-
import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, o as VideoSelfieConfig, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-
|
|
8
|
+
import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, o as VideoSelfieConfig, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-C5QHOvWb.js";
|
|
9
9
|
//#region ../infra/src/capabilities/ITimerCapability.d.ts
|
|
10
10
|
type TimerHandle = ReturnType<typeof setTimeout>;
|
|
11
11
|
type ITimerCapability = {
|
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-CCsxCTuW.esm.js";
|
|
3
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
4
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
|
-
import { t as
|
|
3
|
+
import { t as ensureWasmPipelines } from "./setup-BJzlqOTL.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
5
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
6
6
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
7
|
-
import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-
|
|
8
|
-
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-
|
|
9
|
-
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-
|
|
7
|
+
import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-pk---1Sx.esm.js";
|
|
8
|
+
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
9
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
10
10
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
11
|
-
import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-
|
|
11
|
+
import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-DbeQpXdU.esm.js";
|
|
12
12
|
import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-q_pfU3Cn.esm.js";
|
|
13
|
-
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-
|
|
14
|
-
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-
|
|
13
|
+
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-CND0HDro.esm.js";
|
|
14
|
+
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js";
|
|
15
15
|
//#region ../../node_modules/.pnpm/audio-recorder-polyfill@0.4.1/node_modules/audio-recorder-polyfill/wave-encoder/index.js
|
|
16
16
|
var wave_encoder_default = () => {
|
|
17
17
|
let BYTES_PER_SAMPLE = 2;
|
package/dist/{videoSelfieCameraWarmer-BctIPNfo.esm.js → videoSelfieCameraWarmer-CND0HDro.esm.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import {
|
|
2
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
+
import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-pk---1Sx.esm.js";
|
|
5
5
|
import { a as requestCameraWithFallback, i as requestCameraAccess } from "./camera-sIa9ceW2.esm.js";
|
|
6
|
-
import { t as checkPermission } from "./permissionServices-
|
|
7
|
-
import { c as processFace, d as FACE_ERROR_CODES, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
8
|
-
import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-
|
|
6
|
+
import { t as checkPermission } from "./permissionServices-d2UW0r_L.esm.js";
|
|
7
|
+
import { c as processFace, d as FACE_ERROR_CODES, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-CGDd_ogY.esm.js";
|
|
8
|
+
import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-DbeQpXdU.esm.js";
|
|
9
9
|
import { n as getBackCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
|
|
10
10
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
11
|
-
import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-
|
|
12
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-
|
|
11
|
+
import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-CQnuPhYb.esm.js";
|
|
12
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CQLveJd1.esm.js";
|
|
13
13
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
14
14
|
//#region src/modules/video-selfie/videoSelfieCompareService.ts
|
|
15
15
|
async function postVideoSelfieCompare(endpoint, base64Image) {
|
package/dist/{videoSelfieStepDetector-D0Ws77pD.d.ts → videoSelfieStepDetector-C5QHOvWb.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as FlowModuleConfig } from "./types-BGXxRwQM.js";
|
|
2
|
-
import "./IWasmUtilCapability-
|
|
3
|
-
import { n as DetectionStatus } from "./types-
|
|
2
|
+
import "./IWasmUtilCapability-CPX0RGdQ.js";
|
|
3
|
+
import { n as DetectionStatus } from "./types-zpO4fU6a.js";
|
|
4
4
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
5
5
|
import { t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
|
|
6
6
|
//#region src/modules/video-selfie/types.d.ts
|
package/dist/wasm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-BUPPRAA1.js";
|
|
2
|
-
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-
|
|
2
|
+
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-oKDzNC62.js";
|
|
3
3
|
//#region ../infra/src/wasm/wasmDefaults.d.ts
|
|
4
4
|
/** The WASM version bundled and tested with this SDK release. */
|
|
5
5
|
declare const DEFAULT_WASM_VERSION = "v2.14.50-post1";
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as WASM_PIPELINE_MODEL_NAMES, m as WASM_PIPELINE_LAZY_MODEL_NAMES, p as WASM_MODEL_FILES } from "./wasmWebClient-kbYZ2sxw.esm.js";
|
|
2
|
-
import { C as DEFAULT_WASM_VERSION, D as resolveWasmConfig, T as buildWasmConfigFromBasePath, w as buildDefaultWasmConfig } from "./trueSightService-
|
|
2
|
+
import { C as DEFAULT_WASM_VERSION, D as resolveWasmConfig, T as buildWasmConfigFromBasePath, w as buildDefaultWasmConfig } from "./trueSightService-Crpt3M-t.esm.js";
|
|
3
3
|
import { o as warmupWasm } from "./warmup-DMtbyb2l.esm.js";
|
|
4
|
-
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-
|
|
4
|
+
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-BJzlqOTL.esm.js";
|
|
5
5
|
//#region src/defineWasm.ts
|
|
6
6
|
function requiredModels(pipelines) {
|
|
7
7
|
const models = /* @__PURE__ */ new Set();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as utilityWasmApi } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
2
2
|
//#region ../infra/src/wasm/wasmDsFlagSync.ts
|
|
3
3
|
/**
|
|
4
4
|
* Sets the Deepsight (ds) flag that the WASM utility API receives on every
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-
|
|
2
|
-
import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-
|
|
1
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-121XK-Et.esm.js";
|
|
2
|
+
import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-BvF4jK3S.esm.js";
|
|
3
3
|
export { createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };
|
package/dist/watchlist.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
2
|
-
import { t as createWatchlistManager } from "./watchlistManager-
|
|
1
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-Dgfm42w2.esm.js";
|
|
2
|
+
import { t as createWatchlistManager } from "./watchlistManager-CNWEOYSq.esm.js";
|
|
3
3
|
export { createWatchlistManager, watchlistMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import { s as createActor, u as createManager } from "./xstate.esm-
|
|
4
|
-
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-
|
|
3
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-121XK-Et.esm.js";
|
|
5
5
|
//#region src/modules/watchlist-for-business/watchlistForBusinessActor.ts
|
|
6
6
|
function createWatchlistForBusinessActor() {
|
|
7
7
|
return createActor(watchlistForBusinessMachine).start();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
2
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
5
|
//#region src/modules/watchlist-for-business/watchlistForBusinessServices.ts
|
|
6
6
|
async function submitWatchlistForBusiness(data, signal) {
|
|
7
7
|
const res = await api.post(endpoints.watchlistForBusinessSubmit, data, { signal });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import { s as createActor, u as createManager } from "./xstate.esm-
|
|
4
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
3
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-Dgfm42w2.esm.js";
|
|
5
5
|
//#region src/modules/watchlist/watchlistActor.ts
|
|
6
6
|
function createWatchlistActor() {
|
|
7
7
|
return createActor(watchlistMachine).start();
|
package/dist/{watchlistStateMachine-DU28IiMQ.esm.js → watchlistStateMachine-Dgfm42w2.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
2
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
5
|
//#region src/modules/watchlist/watchlistServices.ts
|
|
6
6
|
async function processWatchlist(signal) {
|
|
7
7
|
const res = await api.post(endpoints.processGlobalWatchlist, {}, { signal });
|
package/dist/workflow.d.ts
CHANGED
|
@@ -362,10 +362,6 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
362
362
|
id: string | undefined;
|
|
363
363
|
};
|
|
364
364
|
}>, Values<{
|
|
365
|
-
setError: {
|
|
366
|
-
type: "setError";
|
|
367
|
-
params: NonReducibleUnknown;
|
|
368
|
-
};
|
|
369
365
|
setLoadingResult: {
|
|
370
366
|
type: "setLoadingResult";
|
|
371
367
|
params: NonReducibleUnknown;
|
|
@@ -398,6 +394,10 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
398
394
|
type: "setFinishStatusFailed";
|
|
399
395
|
params: NonReducibleUnknown;
|
|
400
396
|
};
|
|
397
|
+
setError: {
|
|
398
|
+
type: "setError";
|
|
399
|
+
params: NonReducibleUnknown;
|
|
400
|
+
};
|
|
401
401
|
setModuleError: {
|
|
402
402
|
type: "setModuleError";
|
|
403
403
|
params: NonReducibleUnknown;
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { l as trueSightLog } from "./trueSightService-
|
|
2
|
-
import {
|
|
1
|
+
import { l as trueSightLog } from "./trueSightService-Crpt3M-t.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-CAgFE-k3.esm.js";
|
|
3
3
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
-
import {
|
|
5
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
6
|
-
import {
|
|
7
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
8
|
-
import { v as toEkybConfig } from "./flowServices-
|
|
4
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
5
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CiraPSTG.esm.js";
|
|
6
|
+
import { E as updateFeatureManagementUser } from "./feature-management-DPIl-FtB.esm.js";
|
|
7
|
+
import { i as toIncodeApiError } from "./apiError-B7lJaeTn.esm.js";
|
|
8
|
+
import { v as toEkybConfig } from "./flowServices-pk---1Sx.esm.js";
|
|
9
9
|
import { a as toEkycConfig } from "./ekycUtils-3FIL6m1x.esm.js";
|
|
10
|
-
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-
|
|
11
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
12
|
-
import { r as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
10
|
+
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
11
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
12
|
+
import { r as electronicSignatureMachine } from "./electronicSignatureManager-DBhszLrG.esm.js";
|
|
13
13
|
import "./ae-signature.esm.js";
|
|
14
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
15
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
16
|
-
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
17
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
18
|
-
import { t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
19
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
20
|
-
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
21
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
22
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
23
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
24
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
25
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
26
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
27
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
28
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
29
|
-
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-
|
|
30
|
-
import { n as identityReuseMachine } from "./identityReuseStateMachine-
|
|
31
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
32
|
-
import { t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
33
|
-
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-
|
|
34
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
35
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
36
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
37
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
38
|
-
import { t as faceMatchMachine } from "./faceMatchStateMachine-
|
|
39
|
-
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-
|
|
40
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
14
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-DoJVzblM.esm.js";
|
|
15
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CSqcE4y3.esm.js";
|
|
16
|
+
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-yizSIonY.esm.js";
|
|
17
|
+
import { t as consentMachine } from "./consentStateMachine-BCj5Jb3g.esm.js";
|
|
18
|
+
import { t as curpValidationMachine } from "./curpValidationStateMachine-DAxImy8p.esm.js";
|
|
19
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-D9gI5uu7.esm.js";
|
|
20
|
+
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-BHDsCfhL.esm.js";
|
|
21
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BXq12SGh.esm.js";
|
|
22
|
+
import { t as ekybMachine } from "./ekybStateMachine-iwmM5mCm.esm.js";
|
|
23
|
+
import { t as ekycMachine } from "./ekycStateMachine-DnKlILfu.esm.js";
|
|
24
|
+
import { t as emailMachine } from "./emailStateMachine-5Neq3rE5.esm.js";
|
|
25
|
+
import { t as selfieMachine } from "./selfieStateMachine-IEKFw85T.esm.js";
|
|
26
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-ByWuXQze.esm.js";
|
|
27
|
+
import { t as phoneMachine } from "./phoneStateMachine-CEm2y7yG.esm.js";
|
|
28
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-Dgfm42w2.esm.js";
|
|
29
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-121XK-Et.esm.js";
|
|
30
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-BrBUpfn5.esm.js";
|
|
31
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CoaSB7P7.esm.js";
|
|
32
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-kPn7DB2I.esm.js";
|
|
33
|
+
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-DjKfrc4P.esm.js";
|
|
34
|
+
import { t as signatureMachine } from "./signatureStateMachine-BkRSrkKp.esm.js";
|
|
35
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-Ap2O_wgT.esm.js";
|
|
36
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-C3YQ8yCZ.esm.js";
|
|
37
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-0HTVVxse.esm.js";
|
|
38
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-B9ZUnlyU.esm.js";
|
|
39
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-BTxuv1Wb.esm.js";
|
|
40
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CpXjbJfG.esm.js";
|
|
41
41
|
import { n as isAdvanceableError } from "./advanceableErrors-q_pfU3Cn.esm.js";
|
|
42
42
|
import "./qe-signature.esm.js";
|
|
43
|
-
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-
|
|
43
|
+
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js";
|
|
44
44
|
//#region src/internal/orchestration/defaultModules.ts
|
|
45
45
|
/**
|
|
46
46
|
* Shared default module registry — single source of truth for module key → machine mappings.
|
|
@@ -45,20 +45,21 @@ function createManager(options) {
|
|
|
45
45
|
return () => subscription.unsubscribe();
|
|
46
46
|
}
|
|
47
47
|
let currentScreenName = instrumentation?.getScreenName(getSnapshot());
|
|
48
|
+
let currentStateName = instrumentation?.getStateName?.(getSnapshot());
|
|
48
49
|
let currentErrorName = instrumentation?.getErrorName(getSnapshot());
|
|
49
50
|
let currentErrorPayload = instrumentation?.getErrorPayload(getSnapshot());
|
|
50
51
|
const api = createApi({
|
|
51
52
|
actor,
|
|
52
53
|
getSnapshot,
|
|
53
54
|
trackElementClicked: instrumentation ? (elementName, payload) => {
|
|
54
|
-
instrumentation.onElementClicked?.(instrumentation.moduleName, currentScreenName, {
|
|
55
|
+
instrumentation.onElementClicked?.(instrumentation.moduleName, currentStateName ?? currentScreenName, {
|
|
55
56
|
element: elementName,
|
|
56
57
|
action: payload?.action,
|
|
57
58
|
metadata: payload?.metadata
|
|
58
59
|
});
|
|
59
60
|
} : void 0,
|
|
60
61
|
trackCaptureAttemptFinished: instrumentation ? (payload) => {
|
|
61
|
-
instrumentation.onCaptureAttemptFinished?.(instrumentation.moduleName, currentScreenName, { logs: payload.logs });
|
|
62
|
+
instrumentation.onCaptureAttemptFinished?.(instrumentation.moduleName, currentStateName ?? currentScreenName, { logs: payload.logs });
|
|
62
63
|
} : void 0
|
|
63
64
|
});
|
|
64
65
|
instrumentation?.onModuleOpened(instrumentation.moduleName);
|
|
@@ -76,7 +77,11 @@ function createManager(options) {
|
|
|
76
77
|
const nextScreenName = instrumentation.getScreenName(snapshot);
|
|
77
78
|
const nextErrorName = instrumentation.getErrorName(snapshot);
|
|
78
79
|
const nextErrorPayload = instrumentation.getErrorPayload(snapshot);
|
|
80
|
+
const nextStateName = instrumentation.getStateName?.(snapshot);
|
|
79
81
|
if (currentScreenName === nextScreenName) {
|
|
82
|
+
const previousStateName = currentStateName;
|
|
83
|
+
currentStateName = nextStateName;
|
|
84
|
+
if (currentScreenName !== void 0 && nextStateName !== void 0 && nextStateName !== previousStateName) instrumentation.onStateChanged?.(instrumentation.moduleName, currentScreenName, nextStateName);
|
|
80
85
|
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, currentScreenName, nextErrorPayload);
|
|
81
86
|
currentErrorName = nextErrorName;
|
|
82
87
|
currentErrorPayload = nextErrorPayload;
|
|
@@ -85,6 +90,7 @@ function createManager(options) {
|
|
|
85
90
|
if (currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
86
91
|
if (nextScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, nextScreenName);
|
|
87
92
|
currentScreenName = nextScreenName;
|
|
93
|
+
currentStateName = nextStateName;
|
|
88
94
|
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextScreenName, nextErrorPayload);
|
|
89
95
|
currentErrorName = nextErrorName;
|
|
90
96
|
currentErrorPayload = nextErrorPayload;
|
|
@@ -104,6 +110,7 @@ function createManager(options) {
|
|
|
104
110
|
stopVisibility?.();
|
|
105
111
|
if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
106
112
|
currentScreenName = void 0;
|
|
113
|
+
currentStateName = void 0;
|
|
107
114
|
currentErrorName = void 0;
|
|
108
115
|
currentErrorPayload = void 0;
|
|
109
116
|
instrumentation?.onModuleClosed(instrumentation.moduleName);
|
package/package.json
CHANGED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as addDeviceStats } from "./stats-Dz3XWA64.esm.js";
|
|
3
|
-
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
4
|
-
//#region src/internal/virtualCameraCheck.ts
|
|
5
|
-
const frameSources = {
|
|
6
|
-
front: "FRONT_ID",
|
|
7
|
-
back: "BACK_ID",
|
|
8
|
-
selfie: "SELFIE"
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Sends the analyzed frame image to the backend for logging.
|
|
12
|
-
*/
|
|
13
|
-
async function logFrame({ source, base64Image, token }) {
|
|
14
|
-
try {
|
|
15
|
-
return (await api.post("/omni/log/frame/v2", { base64Image }, {
|
|
16
|
-
query: { source },
|
|
17
|
-
headers: { "X-Incode-Hardware-Id": token }
|
|
18
|
-
})).data;
|
|
19
|
-
} catch {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Runs the WASM virtual camera check and handles logging and stats.
|
|
25
|
-
*/
|
|
26
|
-
async function runVirtualCameraCheck({ wasmUtil, source, token }) {
|
|
27
|
-
const output = {
|
|
28
|
-
canvas: null,
|
|
29
|
-
itr: null,
|
|
30
|
-
skipped: null
|
|
31
|
-
};
|
|
32
|
-
await wasmUtil.poc(output);
|
|
33
|
-
if (output.skipped !== false) return;
|
|
34
|
-
if (output.canvas && token) {
|
|
35
|
-
const base64Image = new IncodeCanvas(output.canvas).getBase64Image();
|
|
36
|
-
if (base64Image) logFrame({
|
|
37
|
-
source,
|
|
38
|
-
base64Image,
|
|
39
|
-
token
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
if (output.itr === true) {
|
|
43
|
-
addDeviceStats({ virtualCameraDetected: true });
|
|
44
|
-
wasmUtil.setZc("FAIL");
|
|
45
|
-
} else if (output.itr === false) wasmUtil.setZc("PASS");
|
|
46
|
-
}
|
|
47
|
-
//#endregion
|
|
48
|
-
export { runVirtualCameraCheck as n, frameSources as t };
|