@incodetech/core 0.0.0-dev-20260402-682edb5 → 0.0.0-dev-20260402-7cf9db4
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/Actor-phIcsUhv.d.ts +2 -0
- package/dist/BaseWasmProvider-BFXU7jj8.esm.js +1536 -0
- package/dist/BrowserEnvironmentProvider-DApG6lNu.esm.js +89 -0
- package/dist/BrowserTimerProvider-CRhCvln7.esm.js +22 -0
- package/dist/Manager-BndLda4_.d.ts +19 -0
- package/dist/{events-Cc1xUUgF.esm.js → Manager-D_DMzMWz.esm.js} +114 -11
- package/dist/{warmup-CzfSiaMj.d.ts → StateMachine-CGAi8x_b.d.ts} +4 -1
- package/dist/StreamCanvasCapture-9VAzOfOv.esm.js +410 -0
- package/dist/WasmUtilProvider-DctESPCy.esm.js +114 -0
- package/dist/{addressSearch-DzOdaNEA.esm.js → addressSearch-CYGzuJJ3.esm.js} +3 -3
- package/dist/authentication.d.ts +9 -7
- package/dist/authentication.esm.js +12 -10
- package/dist/{authenticationManager-TaI12wf3.d.ts → authenticationManager-B5Yv9bDw.d.ts} +2 -2
- package/dist/{authenticationManager-CBSPCdJc.esm.js → authenticationManager-C9iQ1d2a.esm.js} +5 -5
- package/dist/{backCameraStream-BGAbuvw1.esm.js → backCameraStream-BJwEXNl4.esm.js} +2 -1
- package/dist/camera-D-MPXRbZ.esm.js +22 -0
- package/dist/camera-Dv2WEhGe.d.ts +4 -0
- package/dist/consent.d.ts +55 -54
- package/dist/consent.esm.js +2 -3
- package/dist/curp-validation.d.ts +5 -3
- package/dist/curp-validation.esm.js +2 -3
- package/dist/deepsightLoader-D2MKmB5z.esm.js +48 -0
- package/dist/{deepsightService-DxA--87N.d.ts → deepsightService-CWnhwXLw.d.ts} +223 -17
- package/dist/document-capture.d.ts +58 -56
- package/dist/document-capture.esm.js +5 -4
- package/dist/document-upload.d.ts +47 -45
- package/dist/document-upload.esm.js +5 -4
- package/dist/ekyb.d.ts +3 -2
- package/dist/ekyb.esm.js +8 -7
- package/dist/ekyc.d.ts +3 -2
- package/dist/ekyc.esm.js +133 -123
- package/dist/email.d.ts +3 -2
- package/dist/email.esm.js +4 -4
- package/dist/{emailManager-DN_q_zxy.d.ts → emailManager-BIq6pJa8.d.ts} +11 -4
- package/dist/{emailManager-DSR9gQLX.esm.js → emailManager-C5GCSw78.esm.js} +43 -23
- package/dist/extensibility.d.ts +45 -43
- package/dist/extensibility.esm.js +26 -15
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -3
- package/dist/{faceCaptureManagerFactory-CGpkO_S3.d.ts → faceCaptureManagerFactory-CN5-GRxP.d.ts} +89 -142
- package/dist/{faceCaptureSetup-Rr7LUbBm.esm.js → faceCaptureSetup-DYRykM5Y.esm.js} +413 -7
- package/dist/flow.d.ts +6 -5
- package/dist/flow.esm.js +7 -7
- package/dist/{flowCompletionService-Bkaerugt.esm.js → flowCompletionService-CBvXiMKa.esm.js} +1 -1
- package/dist/{flowServices-Bt6lMLUI.esm.js → flowServices-CQ3rTJLE.esm.js} +2 -2
- package/dist/geolocation.d.ts +2 -1
- package/dist/geolocation.esm.js +16 -3
- package/dist/government-validation.d.ts +2 -1
- package/dist/government-validation.esm.js +3 -3
- package/dist/id.d.ts +9 -6
- package/dist/id.esm.js +14 -11
- package/dist/{idCaptureManager-Dc2NJMy_.d.ts → idCaptureManager-B1RWflj0.d.ts} +15 -12
- package/dist/{idCaptureManager-QyM4nIKM.esm.js → idCaptureManager-D5rjCu9r.esm.js} +178 -8
- package/dist/index.d.ts +68 -21
- package/dist/index.esm.js +440 -11
- package/dist/mandatory-consent.d.ts +58 -56
- package/dist/mandatory-consent.esm.js +2 -3
- package/dist/phone.d.ts +3 -2
- package/dist/phone.esm.js +4 -4
- package/dist/{phoneManager-D2A0hXXq.d.ts → phoneManager-Ba66ysK2.d.ts} +9 -2
- package/dist/{phoneManager-D2nZtu-b.esm.js → phoneManager-CQJim-Ky.esm.js} +32 -21
- package/dist/platform-B3nGssGZ.esm.js +83 -0
- package/dist/redirect-to-mobile.d.ts +2 -1
- package/dist/redirect-to-mobile.esm.js +3 -3
- package/dist/selfie.d.ts +9 -7
- package/dist/selfie.esm.js +12 -10
- package/dist/{selfieManager-B4Nnp7ws.d.ts → selfieManager-BnfnTPcx.d.ts} +2 -2
- package/dist/{selfieManager-CvE35L72.esm.js → selfieManager-DYW1C2GP.esm.js} +4 -3
- package/dist/session-TBPhHmyy.esm.js +3130 -0
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +2 -2
- package/dist/signature.d.ts +3 -3
- package/dist/signature.esm.js +3 -4
- package/dist/{stats-D0m3TvIg.esm.js → stats-D4C7iDy1.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-oveF7RrS.d.ts → types-BWGxcjiZ.d.ts} +1 -1
- package/dist/{types-mQLzH6uw.d.ts → types-BX1ZlbSR.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/deepsightLoader-B93Oa9pS.esm.js +0 -24
- package/dist/deepsightService-CLUMQ5ee.esm.js +0 -235
- package/dist/index-BTaLQSj9.d.ts +0 -219
- package/dist/recordingsRepository-Djt_In2b.esm.js +0 -122
- package/dist/session-CUy9-Yzi.esm.js +0 -250
- package/dist/src-8rn6DoH7.esm.js +0 -6554
- /package/dist/{api-G4JA8CXK.esm.js → api-3fZO5bmj.esm.js} +0 -0
- /package/dist/{browserSimulation-C8gNnn5p.esm.js → browserSimulation-zWJAZ1vA.esm.js} +0 -0
- /package/dist/{displayErrors-BgtBHbfb.d.ts → displayErrors-DzzB3fcR.d.ts} +0 -0
- /package/dist/{flowCompletionService-De8JDo87.d.ts → flowCompletionService-C_CShl_d.d.ts} +0 -0
- /package/dist/{id-B30uqGbp.esm.js → id-Dv0it9CY.esm.js} +0 -0
- /package/dist/{index-LKrIp3Oo.d.ts → index-CuY8tqBC.d.ts} +0 -0
- /package/dist/{lib-qeMam2F_.esm.js → lib-B5byelWf.esm.js} +0 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { l as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-BFXU7jj8.esm.js";
|
|
2
|
+
|
|
3
|
+
//#region ../infra/src/providers/wasm/WasmUtilProvider.ts
|
|
4
|
+
var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
|
|
5
|
+
static async getInstance() {
|
|
6
|
+
if (WasmUtilProvider.instance) return WasmUtilProvider.instance;
|
|
7
|
+
if (WasmUtilProvider.initPromise) return WasmUtilProvider.initPromise;
|
|
8
|
+
WasmUtilProvider.initPromise = (async () => {
|
|
9
|
+
const instance = new WasmUtilProvider();
|
|
10
|
+
await instance.initializeBase({}, "selfie");
|
|
11
|
+
WasmUtilProvider.instance = instance;
|
|
12
|
+
return instance;
|
|
13
|
+
})();
|
|
14
|
+
return WasmUtilProvider.initPromise;
|
|
15
|
+
}
|
|
16
|
+
static resetInstance() {
|
|
17
|
+
WasmUtilProvider.instance = void 0;
|
|
18
|
+
WasmUtilProvider.initPromise = void 0;
|
|
19
|
+
}
|
|
20
|
+
constructor() {
|
|
21
|
+
super(void 0);
|
|
22
|
+
}
|
|
23
|
+
async initialize(config) {
|
|
24
|
+
if (this.initialized) return;
|
|
25
|
+
const pipeline = config.pipelines?.[0] ?? "selfie";
|
|
26
|
+
await this.initializeBase(config, pipeline);
|
|
27
|
+
}
|
|
28
|
+
async processFrame(_image) {
|
|
29
|
+
throw new Error("WasmUtilProvider does not support frame processing. Use encryptImage() instead.");
|
|
30
|
+
}
|
|
31
|
+
encryptImage(image) {
|
|
32
|
+
this.ensureInitialized();
|
|
33
|
+
return mlWasmJSApi_default.ens(image);
|
|
34
|
+
}
|
|
35
|
+
setSdkVersion(version) {
|
|
36
|
+
this.ensureInitialized();
|
|
37
|
+
mlWasmJSApi_default.setSdkVersion(version);
|
|
38
|
+
}
|
|
39
|
+
setSdkPlatform(platform) {
|
|
40
|
+
this.ensureInitialized();
|
|
41
|
+
mlWasmJSApi_default.setSdkPlatform(platform);
|
|
42
|
+
}
|
|
43
|
+
setDeviceInfo(deviceInfo, overrideExisting = true) {
|
|
44
|
+
this.ensureInitialized();
|
|
45
|
+
mlWasmJSApi_default.setDeviceInfo(deviceInfo, overrideExisting);
|
|
46
|
+
}
|
|
47
|
+
setBrowserInfo(browserInfo, overrideExisting = true) {
|
|
48
|
+
this.ensureInitialized();
|
|
49
|
+
mlWasmJSApi_default.setBrowserInfo(browserInfo, overrideExisting);
|
|
50
|
+
}
|
|
51
|
+
setCameraInfo(cameraInfo, overrideExisting = true) {
|
|
52
|
+
this.ensureInitialized();
|
|
53
|
+
mlWasmJSApi_default.setCameraInfo(cameraInfo, overrideExisting);
|
|
54
|
+
}
|
|
55
|
+
setMotionStatus(status) {
|
|
56
|
+
this.ensureInitialized();
|
|
57
|
+
mlWasmJSApi_default.setMotionStatus(status);
|
|
58
|
+
}
|
|
59
|
+
setBackgroundMode(backgroundMode) {
|
|
60
|
+
this.ensureInitialized();
|
|
61
|
+
mlWasmJSApi_default.setBackgroundMode(backgroundMode);
|
|
62
|
+
}
|
|
63
|
+
setZc(zc) {
|
|
64
|
+
this.ensureInitialized();
|
|
65
|
+
mlWasmJSApi_default.setZc(zc);
|
|
66
|
+
}
|
|
67
|
+
setInspectorOpened(opened) {
|
|
68
|
+
this.ensureInitialized();
|
|
69
|
+
mlWasmJSApi_default.setInspectorOpened(opened);
|
|
70
|
+
}
|
|
71
|
+
getMetadata() {
|
|
72
|
+
this.ensureInitialized();
|
|
73
|
+
return mlWasmJSApi_default.getMetadata();
|
|
74
|
+
}
|
|
75
|
+
async analyzeFrame(image) {
|
|
76
|
+
this.ensureInitialized();
|
|
77
|
+
await mlWasmJSApi_default.analyzeFrame(image);
|
|
78
|
+
}
|
|
79
|
+
getCheck() {
|
|
80
|
+
this.ensureInitialized();
|
|
81
|
+
return mlWasmJSApi_default.getCheck();
|
|
82
|
+
}
|
|
83
|
+
getPipelineState() {
|
|
84
|
+
this.ensureInitialized();
|
|
85
|
+
return mlWasmJSApi_default.getPipelineState();
|
|
86
|
+
}
|
|
87
|
+
estimatePerformance() {
|
|
88
|
+
this.ensureInitialized();
|
|
89
|
+
return mlWasmJSApi_default.estimatePerformance();
|
|
90
|
+
}
|
|
91
|
+
isVirtualCamera(label) {
|
|
92
|
+
this.ensureInitialized();
|
|
93
|
+
return mlWasmJSApi_default.isVirtualCamera(label);
|
|
94
|
+
}
|
|
95
|
+
async prc() {
|
|
96
|
+
this.ensureInitialized();
|
|
97
|
+
await mlWasmJSApi_default.prc();
|
|
98
|
+
}
|
|
99
|
+
async poc(output) {
|
|
100
|
+
this.ensureInitialized();
|
|
101
|
+
await mlWasmJSApi_default.poc(output);
|
|
102
|
+
}
|
|
103
|
+
ckvcks(data) {
|
|
104
|
+
this.ensureInitialized();
|
|
105
|
+
mlWasmJSApi_default.ckvcks(data);
|
|
106
|
+
}
|
|
107
|
+
async getVersions() {
|
|
108
|
+
this.ensureInitialized();
|
|
109
|
+
return mlWasmJSApi_default.getVersions();
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
//#endregion
|
|
114
|
+
export { WasmUtilProvider as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
1
|
+
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
2
|
+
import { S as fromCallback } from "./Manager-D_DMzMWz.esm.js";
|
|
4
3
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
4
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CRhCvln7.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/shared/usStates.ts
|
|
7
7
|
const usStates = {
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import "./
|
|
5
|
-
import "./types-
|
|
6
|
-
import "./types-
|
|
7
|
-
import
|
|
1
|
+
import "./StateMachine-CGAi8x_b.js";
|
|
2
|
+
import "./Actor-phIcsUhv.js";
|
|
3
|
+
import "./deepsightService-CWnhwXLw.js";
|
|
4
|
+
import "./camera-Dv2WEhGe.js";
|
|
5
|
+
import "./types-BWGxcjiZ.js";
|
|
6
|
+
import "./types-BX1ZlbSR.js";
|
|
7
|
+
import "./Manager-BndLda4_.js";
|
|
8
|
+
import { _ as AuthenticationConfig, b as authenticationMachine, g as createAuthenticationActor, h as CreateAuthenticationActorOptions, m as AuthenticationActor } from "./faceCaptureManagerFactory-CN5-GRxP.js";
|
|
9
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-B5Yv9bDw.js";
|
|
8
10
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
1
|
+
import "./platform-B3nGssGZ.esm.js";
|
|
2
|
+
import "./BaseWasmProvider-BFXU7jj8.esm.js";
|
|
3
|
+
import "./StreamCanvasCapture-9VAzOfOv.esm.js";
|
|
4
|
+
import "./browserSimulation-zWJAZ1vA.esm.js";
|
|
5
|
+
import "./api-3fZO5bmj.esm.js";
|
|
6
|
+
import "./Manager-D_DMzMWz.esm.js";
|
|
7
7
|
import "./endpoints-CCuj1KZH.esm.js";
|
|
8
|
-
import "./
|
|
9
|
-
import "./stats-
|
|
10
|
-
import "./
|
|
11
|
-
import
|
|
8
|
+
import "./camera-D-MPXRbZ.esm.js";
|
|
9
|
+
import "./stats-D4C7iDy1.esm.js";
|
|
10
|
+
import "./backCameraStream-BJwEXNl4.esm.js";
|
|
11
|
+
import "./WasmUtilProvider-DctESPCy.esm.js";
|
|
12
|
+
import "./faceCaptureSetup-DYRykM5Y.esm.js";
|
|
13
|
+
import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-C9iQ1d2a.esm.js";
|
|
12
14
|
|
|
13
15
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as Manager } from "./Manager-BndLda4_.js";
|
|
2
|
+
import { h as CreateAuthenticationActorOptions, m as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CN5-GRxP.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
package/dist/{authenticationManager-CBSPCdJc.esm.js → authenticationManager-C9iQ1d2a.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
1
|
+
import { f as BrowserStorageProvider, p as getDeviceClass } from "./StreamCanvasCapture-9VAzOfOv.esm.js";
|
|
2
|
+
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
3
|
+
import { C as fromPromise, r as eventModuleNames, w as createActor, x as assign } from "./Manager-D_DMzMWz.esm.js";
|
|
5
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
6
|
-
import {
|
|
5
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-DctESPCy.esm.js";
|
|
6
|
+
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, t as faceCaptureMachine } from "./faceCaptureSetup-DYRykM5Y.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
9
9
|
const AUTH_ERROR_MAP = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-B3nGssGZ.esm.js";
|
|
2
|
+
import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-D-MPXRbZ.esm.js";
|
|
2
3
|
|
|
3
4
|
//#region ../infra/src/capabilities/ITimerCapability.ts
|
|
4
5
|
function sleep(ms) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region ../infra/src/media/camera.ts
|
|
2
|
+
/**
|
|
3
|
+
* Request camera access with specific constraints.
|
|
4
|
+
* Throws if the request fails - no automatic fallback.
|
|
5
|
+
*/
|
|
6
|
+
async function requestCameraAccess(constraints) {
|
|
7
|
+
if (typeof navigator === "undefined" || !navigator.mediaDevices) throw new Error("MediaDevices API not available");
|
|
8
|
+
return navigator.mediaDevices.getUserMedia(constraints);
|
|
9
|
+
}
|
|
10
|
+
function stopCameraStream(stream) {
|
|
11
|
+
for (const track of stream.getTracks()) track.stop();
|
|
12
|
+
}
|
|
13
|
+
async function enumerateVideoDevices() {
|
|
14
|
+
if (typeof navigator === "undefined" || !navigator.mediaDevices) return [];
|
|
15
|
+
return (await navigator.mediaDevices.enumerateDevices()).filter((d) => d.kind === "videoinput");
|
|
16
|
+
}
|
|
17
|
+
async function applyTrackConstraints(track, constraints) {
|
|
18
|
+
await track.applyConstraints(constraints);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { stopCameraStream as i, enumerateVideoDevices as n, requestCameraAccess as r, applyTrackConstraints as t };
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "./Actor-phIcsUhv.js";
|
|
2
|
+
import { t as Manager } from "./Manager-BndLda4_.js";
|
|
3
|
+
import * as xstate0 from "xstate";
|
|
3
4
|
|
|
4
5
|
//#region src/modules/consent/types.d.ts
|
|
5
6
|
type ConsentConfig = {
|
|
@@ -35,7 +36,7 @@ type ConsentContext = {
|
|
|
35
36
|
type ConsentInput = {
|
|
36
37
|
config: ConsentConfig;
|
|
37
38
|
};
|
|
38
|
-
declare const consentMachine:
|
|
39
|
+
declare const consentMachine: xstate0.StateMachine<ConsentContext, {
|
|
39
40
|
type: "LOAD";
|
|
40
41
|
} | {
|
|
41
42
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -47,53 +48,53 @@ declare const consentMachine: xstate131.StateMachine<ConsentContext, {
|
|
|
47
48
|
} | {
|
|
48
49
|
type: "RESET";
|
|
49
50
|
}, {
|
|
50
|
-
[x: string]:
|
|
51
|
+
[x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
51
52
|
consentId: string;
|
|
52
|
-
},
|
|
53
|
+
}, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
|
|
53
54
|
languageConsentId: string;
|
|
54
55
|
checkboxes: ConsentCheckbox[];
|
|
55
|
-
},
|
|
56
|
-
},
|
|
56
|
+
}, xstate0.EventObject>> | undefined;
|
|
57
|
+
}, xstate0.Values<{
|
|
57
58
|
fetchConsent: {
|
|
58
59
|
src: "fetchConsent";
|
|
59
|
-
logic:
|
|
60
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
60
61
|
consentId: string;
|
|
61
|
-
},
|
|
62
|
+
}, xstate0.EventObject>;
|
|
62
63
|
id: string | undefined;
|
|
63
64
|
};
|
|
64
65
|
submitConsent: {
|
|
65
66
|
src: "submitConsent";
|
|
66
|
-
logic:
|
|
67
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
67
68
|
languageConsentId: string;
|
|
68
69
|
checkboxes: ConsentCheckbox[];
|
|
69
|
-
},
|
|
70
|
+
}, xstate0.EventObject>;
|
|
70
71
|
id: string | undefined;
|
|
71
72
|
};
|
|
72
|
-
}>,
|
|
73
|
+
}>, xstate0.Values<{
|
|
74
|
+
setConsentData: {
|
|
75
|
+
type: "setConsentData";
|
|
76
|
+
params: xstate0.NonReducibleUnknown;
|
|
77
|
+
};
|
|
78
|
+
toggleCheckbox: {
|
|
79
|
+
type: "toggleCheckbox";
|
|
80
|
+
params: xstate0.NonReducibleUnknown;
|
|
81
|
+
};
|
|
73
82
|
setError: {
|
|
74
83
|
type: "setError";
|
|
75
|
-
params:
|
|
84
|
+
params: xstate0.NonReducibleUnknown;
|
|
76
85
|
};
|
|
77
86
|
clearError: {
|
|
78
87
|
type: "clearError";
|
|
79
|
-
params:
|
|
88
|
+
params: xstate0.NonReducibleUnknown;
|
|
80
89
|
};
|
|
81
90
|
resetContext: {
|
|
82
91
|
type: "resetContext";
|
|
83
|
-
params:
|
|
84
|
-
};
|
|
85
|
-
setConsentData: {
|
|
86
|
-
type: "setConsentData";
|
|
87
|
-
params: xstate131.NonReducibleUnknown;
|
|
88
|
-
};
|
|
89
|
-
toggleCheckbox: {
|
|
90
|
-
type: "toggleCheckbox";
|
|
91
|
-
params: xstate131.NonReducibleUnknown;
|
|
92
|
+
params: xstate0.NonReducibleUnknown;
|
|
92
93
|
};
|
|
93
94
|
}>, {
|
|
94
95
|
type: "canSubmit";
|
|
95
96
|
params: unknown;
|
|
96
|
-
}, never, "error" | "idle" | "loading" | "display" | "submitting" | "finished", string, ConsentInput,
|
|
97
|
+
}, never, "error" | "idle" | "loading" | "display" | "submitting" | "finished", string, ConsentInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
|
|
97
98
|
readonly id: "consent";
|
|
98
99
|
readonly initial: "idle";
|
|
99
100
|
readonly context: ({
|
|
@@ -102,70 +103,70 @@ declare const consentMachine: xstate131.StateMachine<ConsentContext, {
|
|
|
102
103
|
spawn: {
|
|
103
104
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
104
105
|
src: "fetchConsent";
|
|
105
|
-
logic:
|
|
106
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
106
107
|
consentId: string;
|
|
107
|
-
},
|
|
108
|
+
}, xstate0.EventObject>;
|
|
108
109
|
id: string | undefined;
|
|
109
110
|
} extends infer T ? T extends {
|
|
110
111
|
src: "fetchConsent";
|
|
111
|
-
logic:
|
|
112
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
112
113
|
consentId: string;
|
|
113
|
-
},
|
|
114
|
+
}, xstate0.EventObject>;
|
|
114
115
|
id: string | undefined;
|
|
115
116
|
} ? T extends {
|
|
116
117
|
src: TSrc;
|
|
117
|
-
} ?
|
|
118
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
118
119
|
id?: T["id"] | undefined;
|
|
119
120
|
systemId?: string;
|
|
120
|
-
input?:
|
|
121
|
+
input?: xstate0.InputFrom<T["logic"]> | undefined;
|
|
121
122
|
syncSnapshot?: boolean;
|
|
122
|
-
} & { [K in
|
|
123
|
+
} & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
123
124
|
src: "submitConsent";
|
|
124
|
-
logic:
|
|
125
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
125
126
|
languageConsentId: string;
|
|
126
127
|
checkboxes: ConsentCheckbox[];
|
|
127
|
-
},
|
|
128
|
+
}, xstate0.EventObject>;
|
|
128
129
|
id: string | undefined;
|
|
129
130
|
} extends infer T_1 ? T_1 extends {
|
|
130
131
|
src: "submitConsent";
|
|
131
|
-
logic:
|
|
132
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
132
133
|
languageConsentId: string;
|
|
133
134
|
checkboxes: ConsentCheckbox[];
|
|
134
|
-
},
|
|
135
|
+
}, xstate0.EventObject>;
|
|
135
136
|
id: string | undefined;
|
|
136
137
|
} ? T_1 extends {
|
|
137
138
|
src: TSrc;
|
|
138
|
-
} ?
|
|
139
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
139
140
|
id?: T_1["id"] | undefined;
|
|
140
141
|
systemId?: string;
|
|
141
|
-
input?:
|
|
142
|
+
input?: xstate0.InputFrom<T_1["logic"]> | undefined;
|
|
142
143
|
syncSnapshot?: boolean;
|
|
143
|
-
} & { [K_1 in
|
|
144
|
+
} & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
|
|
144
145
|
fetchConsent: {
|
|
145
146
|
src: "fetchConsent";
|
|
146
|
-
logic:
|
|
147
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
147
148
|
consentId: string;
|
|
148
|
-
},
|
|
149
|
+
}, xstate0.EventObject>;
|
|
149
150
|
id: string | undefined;
|
|
150
151
|
};
|
|
151
152
|
submitConsent: {
|
|
152
153
|
src: "submitConsent";
|
|
153
|
-
logic:
|
|
154
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
154
155
|
languageConsentId: string;
|
|
155
156
|
checkboxes: ConsentCheckbox[];
|
|
156
|
-
},
|
|
157
|
+
}, xstate0.EventObject>;
|
|
157
158
|
id: string | undefined;
|
|
158
159
|
};
|
|
159
160
|
}>, "src", TSrc>["logic"]>;
|
|
160
|
-
<TLogic extends
|
|
161
|
+
<TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
|
|
161
162
|
id?: never;
|
|
162
163
|
systemId?: string;
|
|
163
|
-
input?:
|
|
164
|
+
input?: xstate0.InputFrom<TLogic> | undefined;
|
|
164
165
|
syncSnapshot?: boolean;
|
|
165
|
-
} & { [K in
|
|
166
|
+
} & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
|
|
166
167
|
};
|
|
167
168
|
input: ConsentInput;
|
|
168
|
-
self:
|
|
169
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
|
|
169
170
|
type: "LOAD";
|
|
170
171
|
} | {
|
|
171
172
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -176,7 +177,7 @@ declare const consentMachine: xstate131.StateMachine<ConsentContext, {
|
|
|
176
177
|
type: "RETRY";
|
|
177
178
|
} | {
|
|
178
179
|
type: "RESET";
|
|
179
|
-
}, Record<string,
|
|
180
|
+
}, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
|
|
180
181
|
type: "LOAD";
|
|
181
182
|
} | {
|
|
182
183
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -187,7 +188,7 @@ declare const consentMachine: xstate131.StateMachine<ConsentContext, {
|
|
|
187
188
|
type: "RETRY";
|
|
188
189
|
} | {
|
|
189
190
|
type: "RESET";
|
|
190
|
-
},
|
|
191
|
+
}, xstate0.AnyEventObject>;
|
|
191
192
|
}) => {
|
|
192
193
|
config: ConsentConfig;
|
|
193
194
|
title: string;
|
|
@@ -225,7 +226,7 @@ declare const consentMachine: xstate131.StateMachine<ConsentContext, {
|
|
|
225
226
|
} | {
|
|
226
227
|
type: "RESET";
|
|
227
228
|
};
|
|
228
|
-
self:
|
|
229
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
|
|
229
230
|
type: "LOAD";
|
|
230
231
|
} | {
|
|
231
232
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -236,7 +237,7 @@ declare const consentMachine: xstate131.StateMachine<ConsentContext, {
|
|
|
236
237
|
type: "RETRY";
|
|
237
238
|
} | {
|
|
238
239
|
type: "RESET";
|
|
239
|
-
}, Record<string,
|
|
240
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
240
241
|
type: "LOAD";
|
|
241
242
|
} | {
|
|
242
243
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -247,7 +248,7 @@ declare const consentMachine: xstate131.StateMachine<ConsentContext, {
|
|
|
247
248
|
type: "RETRY";
|
|
248
249
|
} | {
|
|
249
250
|
type: "RESET";
|
|
250
|
-
},
|
|
251
|
+
}, xstate0.AnyEventObject>;
|
|
251
252
|
}) => {
|
|
252
253
|
consentId: string;
|
|
253
254
|
};
|
|
@@ -296,7 +297,7 @@ declare const consentMachine: xstate131.StateMachine<ConsentContext, {
|
|
|
296
297
|
} | {
|
|
297
298
|
type: "RESET";
|
|
298
299
|
};
|
|
299
|
-
self:
|
|
300
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
|
|
300
301
|
type: "LOAD";
|
|
301
302
|
} | {
|
|
302
303
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -307,7 +308,7 @@ declare const consentMachine: xstate131.StateMachine<ConsentContext, {
|
|
|
307
308
|
type: "RETRY";
|
|
308
309
|
} | {
|
|
309
310
|
type: "RESET";
|
|
310
|
-
}, Record<string,
|
|
311
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
311
312
|
type: "LOAD";
|
|
312
313
|
} | {
|
|
313
314
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -318,7 +319,7 @@ declare const consentMachine: xstate131.StateMachine<ConsentContext, {
|
|
|
318
319
|
type: "RETRY";
|
|
319
320
|
} | {
|
|
320
321
|
type: "RESET";
|
|
321
|
-
},
|
|
322
|
+
}, xstate0.AnyEventObject>;
|
|
322
323
|
}) => {
|
|
323
324
|
languageConsentId: string;
|
|
324
325
|
checkboxes: ConsentCheckbox[];
|
package/dist/consent.esm.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
1
|
+
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
2
|
+
import { C as fromPromise, b as setup, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, w as createActor, x as assign } from "./Manager-D_DMzMWz.esm.js";
|
|
4
3
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
4
|
|
|
6
5
|
//#region src/modules/consent/consentServices.ts
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
1
|
+
import "./Actor-phIcsUhv.js";
|
|
2
|
+
import "./camera-Dv2WEhGe.js";
|
|
3
|
+
import "./types-BWGxcjiZ.js";
|
|
4
|
+
import { r as FlowModuleConfig } from "./types-BX1ZlbSR.js";
|
|
5
|
+
import { t as Manager } from "./Manager-BndLda4_.js";
|
|
4
6
|
|
|
5
7
|
//#region src/modules/curp-validation/types.d.ts
|
|
6
8
|
type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
1
|
+
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
2
|
+
import { C as fromPromise, b as setup, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, w as createActor, x as assign } from "./Manager-D_DMzMWz.esm.js";
|
|
4
3
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
4
|
|
|
6
5
|
//#region src/modules/curp-validation/curpValidationUtils.ts
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { n as MotionSensorProvider, r as createDeepsightService } from "./BaseWasmProvider-BFXU7jj8.esm.js";
|
|
2
|
+
import "./browserSimulation-zWJAZ1vA.esm.js";
|
|
3
|
+
import "./api-3fZO5bmj.esm.js";
|
|
4
|
+
import { t as BrowserEnvironmentProvider } from "./BrowserEnvironmentProvider-DApG6lNu.esm.js";
|
|
5
|
+
import "./camera-D-MPXRbZ.esm.js";
|
|
6
|
+
import "./stats-D4C7iDy1.esm.js";
|
|
7
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-DctESPCy.esm.js";
|
|
8
|
+
|
|
9
|
+
//#region ../infra/src/providers/browser/VisibilityProvider.ts
|
|
10
|
+
var VisibilityProvider = class {
|
|
11
|
+
constructor() {
|
|
12
|
+
this._wasBackgrounded = false;
|
|
13
|
+
this.visibilityChangeHandler = this.onVisibilityChange.bind(this);
|
|
14
|
+
document.addEventListener("visibilitychange", this.visibilityChangeHandler);
|
|
15
|
+
}
|
|
16
|
+
get wasBackgrounded() {
|
|
17
|
+
return this._wasBackgrounded;
|
|
18
|
+
}
|
|
19
|
+
reset() {
|
|
20
|
+
this._wasBackgrounded = false;
|
|
21
|
+
}
|
|
22
|
+
cleanup() {
|
|
23
|
+
document.removeEventListener("visibilitychange", this.visibilityChangeHandler);
|
|
24
|
+
}
|
|
25
|
+
onVisibilityChange() {
|
|
26
|
+
if (document.hidden) this._wasBackgrounded = true;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/internal/deepsight/deepsightLoader.ts
|
|
32
|
+
const SDK_VERSION = "2.0.0";
|
|
33
|
+
async function loadDeepsightSession(options) {
|
|
34
|
+
await options.storage.set("ds", options.ds ? 1 : 0);
|
|
35
|
+
const service = createDeepsightService({
|
|
36
|
+
sdkVersion: SDK_VERSION,
|
|
37
|
+
wasmUtil: await WasmUtilProvider.getInstance(),
|
|
38
|
+
visibility: new VisibilityProvider(),
|
|
39
|
+
browserEnv: new BrowserEnvironmentProvider(),
|
|
40
|
+
motionSensor: new MotionSensorProvider()
|
|
41
|
+
});
|
|
42
|
+
await service.initialize(options.disableIpify);
|
|
43
|
+
await service.startMotionSensors();
|
|
44
|
+
return service;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
export { loadDeepsightSession };
|