@incodetech/core 0.0.0-dev-20260323-d29613f → 0.0.0-dev-20260324-90ddcfd
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/{addressSearch-B3sA8vgs.esm.js → addressSearch-DCaEdoev.esm.js} +4 -4
- package/dist/authentication.d.ts +10 -10
- package/dist/authentication.esm.js +11 -10
- package/dist/{authenticationManager-BjTgDn8A.d.ts → authenticationManager-C-Mmg1uU.d.ts} +2 -2
- package/dist/{authenticationManager-CVEXKvB3.esm.js → authenticationManager-CEGYyu8r.esm.js} +6 -6
- package/dist/{backCameraStream-BxXYKUoc.esm.js → backCameraStream-BPzo60FO.esm.js} +1 -1
- package/dist/browserSimulation-DYAk0Ipe.esm.js +20 -0
- package/dist/consent.d.ts +56 -56
- package/dist/consent.esm.js +4 -4
- package/dist/curp-validation.d.ts +4 -4
- package/dist/curp-validation.esm.js +4 -4
- package/dist/{deepsightLoader-CF1OkQt_.esm.js → deepsightLoader-ErxPZUBZ.esm.js} +5 -4
- package/dist/{deepsightService-tFm-XfrF.esm.js → deepsightService-BcdwWkYD.esm.js} +11 -23
- package/dist/{deepsightService-CdGGD_BP.d.ts → deepsightService-C47Uyf6m.d.ts} +3 -1
- package/dist/document-capture.d.ts +60 -60
- package/dist/document-capture.esm.js +5 -5
- package/dist/document-upload.d.ts +52 -52
- package/dist/document-upload.esm.js +5 -5
- package/dist/ekyb.d.ts +2 -2
- package/dist/ekyb.esm.js +8 -6
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +5 -5
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +5 -5
- package/dist/{emailManager-CtSwZTSn.esm.js → emailManager-1W2Uh6du.esm.js} +4 -4
- package/dist/{emailManager-lUXVfa0R.d.ts → emailManager-CN9sSCz6.d.ts} +2 -2
- package/dist/{endpoints-Bydn-Ave.esm.js → endpoints-b2PxFIku.esm.js} +2 -0
- package/dist/{events-c-r7jhs3.esm.js → events-CbNkXF2Q.esm.js} +12 -3
- package/dist/extensibility.d.ts +14 -14
- package/dist/extensibility.esm.js +16 -14
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +4 -4
- package/dist/{faceCaptureManagerFactory-BulU7xFu.d.ts → faceCaptureManagerFactory-UFhWTbej.d.ts} +10 -7
- package/dist/{faceCaptureSetup-yPrsOQES.esm.js → faceCaptureSetup-CoeOjXeo.esm.js} +13 -9
- package/dist/flow.d.ts +7 -7
- package/dist/flow.esm.js +8 -6
- package/dist/{flowCompletionService-C-pC9OZ9.esm.js → flowCompletionService-DkbMP576.esm.js} +2 -2
- package/dist/{flowServices-Cc1HxYIC.esm.js → flowServices-jrv5Zxbr.esm.js} +48 -4
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +4 -4
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +4 -4
- package/dist/id.d.ts +9 -9
- package/dist/id.esm.js +12 -10
- package/dist/{idCaptureManager-Dkzxvhrt.esm.js → idCaptureManager-BniIgM20.esm.js} +50 -228
- package/dist/{idCaptureManager-DCXMoCXo.d.ts → idCaptureManager-Dn7_eHt9.d.ts} +25 -8
- package/dist/index.d.ts +24 -11
- package/dist/index.esm.js +13 -11
- package/dist/{lib-3ivDs79I.esm.js → lib-VFNBaz_7.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +411 -0
- package/dist/mandatory-consent.esm.js +198 -0
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +5 -5
- package/dist/{phoneManager-pTIOvlCD.d.ts → phoneManager-B0MT8wYz.d.ts} +2 -2
- package/dist/{phoneManager-D18wCI69.esm.js → phoneManager-Cvp5LFN7.esm.js} +4 -4
- package/dist/{recordingsRepository-CIzyj6XC.esm.js → recordingsRepository-DGWSMj-_.esm.js} +3 -3
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +4 -4
- package/dist/selfie.d.ts +10 -10
- package/dist/selfie.esm.js +11 -10
- package/dist/{selfieManager-5_CouEZs.esm.js → selfieManager-BxwT4tDD.esm.js} +3 -3
- package/dist/{selfieManager-BqX2VFj1.d.ts → selfieManager-DSn8EPLE.d.ts} +2 -2
- package/dist/session-4QVMNIs5.esm.js +243 -0
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +3 -3
- package/dist/{src-DevpZoey.esm.js → src-BX-m0lbm.esm.js} +5 -2
- package/dist/{stats-D76Thmqp.esm.js → stats-BaWAv541.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-DSJflCEU.d.ts → types-0A1THNYO.d.ts} +5 -2
- package/dist/{types-CHzupruc.d.ts → types-BYFeUhw0.d.ts} +1 -1
- package/package.json +5 -1
- /package/dist/{Actor-D6rhGxJy.d.ts → Actor-By8WNHi-.d.ts} +0 -0
- /package/dist/{Manager-CVDYGoSq.d.ts → Manager-BWqHEUjI.d.ts} +0 -0
- /package/dist/{StateMachine-BqtRw_hz.d.ts → StateMachine-dxjI9q0V.d.ts} +0 -0
- /package/dist/{api-3fZO5bmj.esm.js → api-C2uzxrpN.esm.js} +0 -0
- /package/dist/{camera-CVBwqx-j.d.ts → camera-BCRgkMoe.d.ts} +0 -0
- /package/dist/{chunk-C24vxluH.esm.js → chunk-NXK2ElUW.esm.js} +0 -0
- /package/dist/{displayErrors-BgtBHbfb.d.ts → displayErrors-CV7ux9Fr.d.ts} +0 -0
- /package/dist/{flowCompletionService-De8JDo87.d.ts → flowCompletionService-sG6KA8y2.d.ts} +0 -0
- /package/dist/{id-r_CoQ3r-.esm.js → id-C3aKMJhc.esm.js} +0 -0
- /package/dist/{index-LKrIp3Oo.d.ts → index-DGdyPh8A.d.ts} +0 -0
- /package/dist/{warmup-DoQLFT3z.d.ts → warmup-B_dntecl.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as BrowserTimerProvider } from "./src-
|
|
3
|
-
import { t as api } from "./api-
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { b as fromCallback } from "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import { g as BrowserTimerProvider } from "./src-BX-m0lbm.esm.js";
|
|
3
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/shared/usStates.ts
|
|
7
7
|
const usStates = {
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./deepsightService-
|
|
2
|
-
import { g as AuthenticationConfig, h as createAuthenticationActor, m as CreateAuthenticationActorOptions, p as AuthenticationActor, y as authenticationMachine } from "./faceCaptureManagerFactory-
|
|
3
|
-
import "./warmup-
|
|
4
|
-
import "./Manager-
|
|
5
|
-
import "./camera-
|
|
6
|
-
import "./Actor-
|
|
7
|
-
import "./StateMachine-
|
|
8
|
-
import "./types-
|
|
9
|
-
import "./types-
|
|
10
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import "./deepsightService-C47Uyf6m.js";
|
|
2
|
+
import { g as AuthenticationConfig, h as createAuthenticationActor, m as CreateAuthenticationActorOptions, p as AuthenticationActor, y as authenticationMachine } from "./faceCaptureManagerFactory-UFhWTbej.js";
|
|
3
|
+
import "./warmup-B_dntecl.js";
|
|
4
|
+
import "./Manager-BWqHEUjI.js";
|
|
5
|
+
import "./camera-BCRgkMoe.js";
|
|
6
|
+
import "./Actor-By8WNHi-.js";
|
|
7
|
+
import "./StateMachine-dxjI9q0V.js";
|
|
8
|
+
import "./types-BYFeUhw0.js";
|
|
9
|
+
import "./types-0A1THNYO.js";
|
|
10
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-C-Mmg1uU.js";
|
|
11
11
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import "./events-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
4
|
-
import "./recordingsRepository-
|
|
5
|
-
import "./
|
|
6
|
-
import "./api-
|
|
7
|
-
import "./endpoints-
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import
|
|
1
|
+
import "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import "./backCameraStream-BPzo60FO.esm.js";
|
|
3
|
+
import "./src-BX-m0lbm.esm.js";
|
|
4
|
+
import "./recordingsRepository-DGWSMj-_.esm.js";
|
|
5
|
+
import "./browserSimulation-DYAk0Ipe.esm.js";
|
|
6
|
+
import "./api-C2uzxrpN.esm.js";
|
|
7
|
+
import "./endpoints-b2PxFIku.esm.js";
|
|
8
|
+
import "./deepsightService-BcdwWkYD.esm.js";
|
|
9
|
+
import "./stats-BaWAv541.esm.js";
|
|
10
|
+
import "./faceCaptureSetup-CoeOjXeo.esm.js";
|
|
11
|
+
import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CEGYyu8r.esm.js";
|
|
11
12
|
|
|
12
13
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, p as AuthenticationActor, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import { m as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, p as AuthenticationActor, t as FaceCaptureManager } from "./faceCaptureManagerFactory-UFhWTbej.js";
|
|
2
|
+
import { t as Manager } from "./Manager-BWqHEUjI.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
package/dist/{authenticationManager-CVEXKvB3.esm.js → authenticationManager-CEGYyu8r.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-
|
|
3
|
-
import { c as getDeviceClass } from "./recordingsRepository-
|
|
4
|
-
import { t as api } from "./api-
|
|
5
|
-
import { t as endpoints } from "./endpoints-
|
|
6
|
-
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
1
|
+
import { S as createActor, n as eventModuleNames, x as fromPromise, y as assign } from "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-BX-m0lbm.esm.js";
|
|
3
|
+
import { c as getDeviceClass } from "./recordingsRepository-DGWSMj-_.esm.js";
|
|
4
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
|
|
6
|
+
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, t as faceCaptureMachine } from "./faceCaptureSetup-CoeOjXeo.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
9
9
|
const AUTH_ERROR_MAP = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as isSafari, D as enumerateVideoDevices, E as applyTrackConstraints, F as isAndroid, L as isIOS, O as requestCameraAccess, k as stopCameraStream, z as isIPhone14OrHigher } from "./src-
|
|
1
|
+
import { B as isSafari, D as enumerateVideoDevices, E as applyTrackConstraints, F as isAndroid, L as isIOS, O as requestCameraAccess, k as stopCameraStream, z as isIPhone14OrHigher } from "./src-BX-m0lbm.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/capabilities/ITimerCapability.ts
|
|
4
4
|
function sleep(ms) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/internal/device/browserSimulation.ts
|
|
2
|
+
const AUTOMATION_MARKERS = {
|
|
3
|
+
window: [
|
|
4
|
+
"callPhantom",
|
|
5
|
+
"_phantom",
|
|
6
|
+
"phantom",
|
|
7
|
+
"__nightmare",
|
|
8
|
+
"domAutomation",
|
|
9
|
+
"domAutomationController"
|
|
10
|
+
],
|
|
11
|
+
navigator: ["webdriver"]
|
|
12
|
+
};
|
|
13
|
+
function isBrowserSimulation(browserEnv) {
|
|
14
|
+
for (const prop of AUTOMATION_MARKERS.window) if (browserEnv.getWindowProperty(prop)) return true;
|
|
15
|
+
for (const prop of AUTOMATION_MARKERS.navigator) if (browserEnv.getNavigatorProperty(prop)) return true;
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { isBrowserSimulation as t };
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Manager } from "./Manager-BWqHEUjI.js";
|
|
2
|
+
import * as xstate285 from "xstate";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/consent/types.d.ts
|
|
5
5
|
type ConsentConfig = {
|
|
@@ -35,7 +35,7 @@ type ConsentContext = {
|
|
|
35
35
|
type ConsentInput = {
|
|
36
36
|
config: ConsentConfig;
|
|
37
37
|
};
|
|
38
|
-
declare const consentMachine:
|
|
38
|
+
declare const consentMachine: xstate285.StateMachine<ConsentContext, {
|
|
39
39
|
type: "LOAD";
|
|
40
40
|
} | {
|
|
41
41
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -47,53 +47,53 @@ declare const consentMachine: xstate0.StateMachine<ConsentContext, {
|
|
|
47
47
|
} | {
|
|
48
48
|
type: "RESET";
|
|
49
49
|
}, {
|
|
50
|
-
[x: string]:
|
|
50
|
+
[x: string]: xstate285.ActorRefFromLogic<xstate285.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
51
51
|
consentId: string;
|
|
52
|
-
},
|
|
52
|
+
}, xstate285.EventObject>> | xstate285.ActorRefFromLogic<xstate285.PromiseActorLogic<void, {
|
|
53
53
|
languageConsentId: string;
|
|
54
54
|
checkboxes: ConsentCheckbox[];
|
|
55
|
-
},
|
|
56
|
-
},
|
|
55
|
+
}, xstate285.EventObject>> | undefined;
|
|
56
|
+
}, xstate285.Values<{
|
|
57
57
|
fetchConsent: {
|
|
58
58
|
src: "fetchConsent";
|
|
59
|
-
logic:
|
|
59
|
+
logic: xstate285.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
60
60
|
consentId: string;
|
|
61
|
-
},
|
|
61
|
+
}, xstate285.EventObject>;
|
|
62
62
|
id: string | undefined;
|
|
63
63
|
};
|
|
64
64
|
submitConsent: {
|
|
65
65
|
src: "submitConsent";
|
|
66
|
-
logic:
|
|
66
|
+
logic: xstate285.PromiseActorLogic<void, {
|
|
67
67
|
languageConsentId: string;
|
|
68
68
|
checkboxes: ConsentCheckbox[];
|
|
69
|
-
},
|
|
69
|
+
}, xstate285.EventObject>;
|
|
70
70
|
id: string | undefined;
|
|
71
71
|
};
|
|
72
|
-
}>,
|
|
73
|
-
|
|
74
|
-
type: "
|
|
75
|
-
params:
|
|
72
|
+
}>, xstate285.Values<{
|
|
73
|
+
clearError: {
|
|
74
|
+
type: "clearError";
|
|
75
|
+
params: xstate285.NonReducibleUnknown;
|
|
76
76
|
};
|
|
77
|
-
|
|
78
|
-
type: "
|
|
79
|
-
params:
|
|
77
|
+
resetContext: {
|
|
78
|
+
type: "resetContext";
|
|
79
|
+
params: xstate285.NonReducibleUnknown;
|
|
80
80
|
};
|
|
81
81
|
setError: {
|
|
82
82
|
type: "setError";
|
|
83
|
-
params:
|
|
83
|
+
params: xstate285.NonReducibleUnknown;
|
|
84
84
|
};
|
|
85
|
-
|
|
86
|
-
type: "
|
|
87
|
-
params:
|
|
85
|
+
setConsentData: {
|
|
86
|
+
type: "setConsentData";
|
|
87
|
+
params: xstate285.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
|
-
|
|
90
|
-
type: "
|
|
91
|
-
params:
|
|
89
|
+
toggleCheckbox: {
|
|
90
|
+
type: "toggleCheckbox";
|
|
91
|
+
params: xstate285.NonReducibleUnknown;
|
|
92
92
|
};
|
|
93
93
|
}>, {
|
|
94
94
|
type: "canSubmit";
|
|
95
95
|
params: unknown;
|
|
96
|
-
}, never, "error" | "
|
|
96
|
+
}, never, "error" | "finished" | "idle" | "loading" | "display" | "submitting", string, ConsentInput, xstate285.NonReducibleUnknown, xstate285.EventObject, xstate285.MetaObject, {
|
|
97
97
|
readonly id: "consent";
|
|
98
98
|
readonly initial: "idle";
|
|
99
99
|
readonly context: ({
|
|
@@ -102,70 +102,70 @@ declare const consentMachine: xstate0.StateMachine<ConsentContext, {
|
|
|
102
102
|
spawn: {
|
|
103
103
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
104
104
|
src: "fetchConsent";
|
|
105
|
-
logic:
|
|
105
|
+
logic: xstate285.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
106
106
|
consentId: string;
|
|
107
|
-
},
|
|
107
|
+
}, xstate285.EventObject>;
|
|
108
108
|
id: string | undefined;
|
|
109
109
|
} extends infer T ? T extends {
|
|
110
110
|
src: "fetchConsent";
|
|
111
|
-
logic:
|
|
111
|
+
logic: xstate285.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
112
112
|
consentId: string;
|
|
113
|
-
},
|
|
113
|
+
}, xstate285.EventObject>;
|
|
114
114
|
id: string | undefined;
|
|
115
115
|
} ? T extends {
|
|
116
116
|
src: TSrc;
|
|
117
|
-
} ?
|
|
117
|
+
} ? xstate285.ConditionalRequired<[options?: ({
|
|
118
118
|
id?: T["id"] | undefined;
|
|
119
119
|
systemId?: string;
|
|
120
|
-
input?:
|
|
120
|
+
input?: xstate285.InputFrom<T["logic"]> | undefined;
|
|
121
121
|
syncSnapshot?: boolean;
|
|
122
|
-
} & { [K in
|
|
122
|
+
} & { [K in xstate285.RequiredActorOptions<T>]: unknown }) | undefined], xstate285.IsNotNever<xstate285.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
123
123
|
src: "submitConsent";
|
|
124
|
-
logic:
|
|
124
|
+
logic: xstate285.PromiseActorLogic<void, {
|
|
125
125
|
languageConsentId: string;
|
|
126
126
|
checkboxes: ConsentCheckbox[];
|
|
127
|
-
},
|
|
127
|
+
}, xstate285.EventObject>;
|
|
128
128
|
id: string | undefined;
|
|
129
129
|
} extends infer T_1 ? T_1 extends {
|
|
130
130
|
src: "submitConsent";
|
|
131
|
-
logic:
|
|
131
|
+
logic: xstate285.PromiseActorLogic<void, {
|
|
132
132
|
languageConsentId: string;
|
|
133
133
|
checkboxes: ConsentCheckbox[];
|
|
134
|
-
},
|
|
134
|
+
}, xstate285.EventObject>;
|
|
135
135
|
id: string | undefined;
|
|
136
136
|
} ? T_1 extends {
|
|
137
137
|
src: TSrc;
|
|
138
|
-
} ?
|
|
138
|
+
} ? xstate285.ConditionalRequired<[options?: ({
|
|
139
139
|
id?: T_1["id"] | undefined;
|
|
140
140
|
systemId?: string;
|
|
141
|
-
input?:
|
|
141
|
+
input?: xstate285.InputFrom<T_1["logic"]> | undefined;
|
|
142
142
|
syncSnapshot?: boolean;
|
|
143
|
-
} & { [K_1 in
|
|
143
|
+
} & { [K_1 in xstate285.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate285.IsNotNever<xstate285.RequiredActorOptions<T_1>>> : never : never : never)): xstate285.ActorRefFromLogic<xstate285.GetConcreteByKey<xstate285.Values<{
|
|
144
144
|
fetchConsent: {
|
|
145
145
|
src: "fetchConsent";
|
|
146
|
-
logic:
|
|
146
|
+
logic: xstate285.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
147
147
|
consentId: string;
|
|
148
|
-
},
|
|
148
|
+
}, xstate285.EventObject>;
|
|
149
149
|
id: string | undefined;
|
|
150
150
|
};
|
|
151
151
|
submitConsent: {
|
|
152
152
|
src: "submitConsent";
|
|
153
|
-
logic:
|
|
153
|
+
logic: xstate285.PromiseActorLogic<void, {
|
|
154
154
|
languageConsentId: string;
|
|
155
155
|
checkboxes: ConsentCheckbox[];
|
|
156
|
-
},
|
|
156
|
+
}, xstate285.EventObject>;
|
|
157
157
|
id: string | undefined;
|
|
158
158
|
};
|
|
159
159
|
}>, "src", TSrc>["logic"]>;
|
|
160
|
-
<TLogic extends
|
|
160
|
+
<TLogic extends xstate285.AnyActorLogic>(src: TLogic, ...[options]: xstate285.ConditionalRequired<[options?: ({
|
|
161
161
|
id?: never;
|
|
162
162
|
systemId?: string;
|
|
163
|
-
input?:
|
|
163
|
+
input?: xstate285.InputFrom<TLogic> | undefined;
|
|
164
164
|
syncSnapshot?: boolean;
|
|
165
|
-
} & { [K in
|
|
165
|
+
} & { [K in xstate285.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate285.IsNotNever<xstate285.RequiredLogicInput<TLogic>>>): xstate285.ActorRefFromLogic<TLogic>;
|
|
166
166
|
};
|
|
167
167
|
input: ConsentInput;
|
|
168
|
-
self:
|
|
168
|
+
self: xstate285.ActorRef<xstate285.MachineSnapshot<ConsentContext, {
|
|
169
169
|
type: "LOAD";
|
|
170
170
|
} | {
|
|
171
171
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -176,7 +176,7 @@ declare const consentMachine: xstate0.StateMachine<ConsentContext, {
|
|
|
176
176
|
type: "RETRY";
|
|
177
177
|
} | {
|
|
178
178
|
type: "RESET";
|
|
179
|
-
}, Record<string,
|
|
179
|
+
}, Record<string, xstate285.AnyActorRef | undefined>, xstate285.StateValue, string, unknown, any, any>, {
|
|
180
180
|
type: "LOAD";
|
|
181
181
|
} | {
|
|
182
182
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -187,7 +187,7 @@ declare const consentMachine: xstate0.StateMachine<ConsentContext, {
|
|
|
187
187
|
type: "RETRY";
|
|
188
188
|
} | {
|
|
189
189
|
type: "RESET";
|
|
190
|
-
},
|
|
190
|
+
}, xstate285.AnyEventObject>;
|
|
191
191
|
}) => {
|
|
192
192
|
config: ConsentConfig;
|
|
193
193
|
title: string;
|
|
@@ -225,7 +225,7 @@ declare const consentMachine: xstate0.StateMachine<ConsentContext, {
|
|
|
225
225
|
} | {
|
|
226
226
|
type: "RESET";
|
|
227
227
|
};
|
|
228
|
-
self:
|
|
228
|
+
self: xstate285.ActorRef<xstate285.MachineSnapshot<ConsentContext, {
|
|
229
229
|
type: "LOAD";
|
|
230
230
|
} | {
|
|
231
231
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -236,7 +236,7 @@ declare const consentMachine: xstate0.StateMachine<ConsentContext, {
|
|
|
236
236
|
type: "RETRY";
|
|
237
237
|
} | {
|
|
238
238
|
type: "RESET";
|
|
239
|
-
}, Record<string,
|
|
239
|
+
}, Record<string, xstate285.AnyActorRef>, xstate285.StateValue, string, unknown, any, any>, {
|
|
240
240
|
type: "LOAD";
|
|
241
241
|
} | {
|
|
242
242
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -247,7 +247,7 @@ declare const consentMachine: xstate0.StateMachine<ConsentContext, {
|
|
|
247
247
|
type: "RETRY";
|
|
248
248
|
} | {
|
|
249
249
|
type: "RESET";
|
|
250
|
-
},
|
|
250
|
+
}, xstate285.AnyEventObject>;
|
|
251
251
|
}) => {
|
|
252
252
|
consentId: string;
|
|
253
253
|
};
|
|
@@ -296,7 +296,7 @@ declare const consentMachine: xstate0.StateMachine<ConsentContext, {
|
|
|
296
296
|
} | {
|
|
297
297
|
type: "RESET";
|
|
298
298
|
};
|
|
299
|
-
self:
|
|
299
|
+
self: xstate285.ActorRef<xstate285.MachineSnapshot<ConsentContext, {
|
|
300
300
|
type: "LOAD";
|
|
301
301
|
} | {
|
|
302
302
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -307,7 +307,7 @@ declare const consentMachine: xstate0.StateMachine<ConsentContext, {
|
|
|
307
307
|
type: "RETRY";
|
|
308
308
|
} | {
|
|
309
309
|
type: "RESET";
|
|
310
|
-
}, Record<string,
|
|
310
|
+
}, Record<string, xstate285.AnyActorRef>, xstate285.StateValue, string, unknown, any, any>, {
|
|
311
311
|
type: "LOAD";
|
|
312
312
|
} | {
|
|
313
313
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -318,7 +318,7 @@ declare const consentMachine: xstate0.StateMachine<ConsentContext, {
|
|
|
318
318
|
type: "RETRY";
|
|
319
319
|
} | {
|
|
320
320
|
type: "RESET";
|
|
321
|
-
},
|
|
321
|
+
}, xstate285.AnyEventObject>;
|
|
322
322
|
}) => {
|
|
323
323
|
languageConsentId: string;
|
|
324
324
|
checkboxes: ConsentCheckbox[];
|
package/dist/consent.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as createManager } from "./src-
|
|
3
|
-
import { t as api } from "./api-
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import { A as createManager } from "./src-BX-m0lbm.esm.js";
|
|
3
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/consent/consentServices.ts
|
|
7
7
|
async function fetchCombinedConsent(consentId, signal) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./camera-
|
|
3
|
-
import "./types-
|
|
4
|
-
import { r as FlowModuleConfig } from "./types-
|
|
1
|
+
import { t as Manager } from "./Manager-BWqHEUjI.js";
|
|
2
|
+
import "./camera-BCRgkMoe.js";
|
|
3
|
+
import "./types-BYFeUhw0.js";
|
|
4
|
+
import { r as FlowModuleConfig } from "./types-0A1THNYO.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/curp-validation/types.d.ts
|
|
7
7
|
type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as createManager } from "./src-
|
|
3
|
-
import { t as api } from "./api-
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import { A as createManager } from "./src-BX-m0lbm.esm.js";
|
|
3
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/curp-validation/curpValidationUtils.ts
|
|
7
7
|
const CURP_PATTERN = /^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HMX](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { a as WasmUtilProvider, f as MotionSensorProvider, l as VisibilityProvider, y as BrowserEnvironmentProvider } from "./src-
|
|
2
|
-
import
|
|
3
|
-
import "./api-
|
|
4
|
-
import "./
|
|
1
|
+
import { a as WasmUtilProvider, f as MotionSensorProvider, l as VisibilityProvider, y as BrowserEnvironmentProvider } from "./src-BX-m0lbm.esm.js";
|
|
2
|
+
import "./browserSimulation-DYAk0Ipe.esm.js";
|
|
3
|
+
import "./api-C2uzxrpN.esm.js";
|
|
4
|
+
import { t as createDeepsightService } from "./deepsightService-BcdwWkYD.esm.js";
|
|
5
|
+
import "./stats-BaWAv541.esm.js";
|
|
5
6
|
|
|
6
7
|
//#region src/internal/deepsight/deepsightLoader.ts
|
|
7
8
|
const SDK_VERSION = "2.0.0";
|
|
@@ -1,26 +1,8 @@
|
|
|
1
|
-
import { M as getDeviceInfo, O as requestCameraAccess, P as getUserAgent, T as IncodeCanvas, k as stopCameraStream, w as createHiddenVideoElement } from "./src-
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
1
|
+
import { M as getDeviceInfo, O as requestCameraAccess, P as getUserAgent, T as IncodeCanvas, k as stopCameraStream, w as createHiddenVideoElement } from "./src-BX-m0lbm.esm.js";
|
|
2
|
+
import { t as isBrowserSimulation } from "./browserSimulation-DYAk0Ipe.esm.js";
|
|
3
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
4
|
+
import { t as addDeviceStats } from "./stats-BaWAv541.esm.js";
|
|
4
5
|
|
|
5
|
-
//#region src/internal/device/browserSimulation.ts
|
|
6
|
-
const AUTOMATION_MARKERS = {
|
|
7
|
-
window: [
|
|
8
|
-
"callPhantom",
|
|
9
|
-
"_phantom",
|
|
10
|
-
"phantom",
|
|
11
|
-
"__nightmare",
|
|
12
|
-
"domAutomation",
|
|
13
|
-
"domAutomationController"
|
|
14
|
-
],
|
|
15
|
-
navigator: ["webdriver"]
|
|
16
|
-
};
|
|
17
|
-
function isBrowserSimulation(browserEnv) {
|
|
18
|
-
for (const prop of AUTOMATION_MARKERS.window) if (browserEnv.getWindowProperty(prop)) return true;
|
|
19
|
-
for (const prop of AUTOMATION_MARKERS.navigator) if (browserEnv.getNavigatorProperty(prop)) return true;
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
6
|
//#region src/internal/deepsight/metadataService.ts
|
|
25
7
|
const IP_PROVIDER_URL = "https://api.ipify.org?format=json";
|
|
26
8
|
async function fetchPublicIp(browserEnv) {
|
|
@@ -107,6 +89,9 @@ function createMetadataService(wasmUtil, visibility, browserEnv) {
|
|
|
107
89
|
getCheck() {
|
|
108
90
|
return wasmUtil.getCheck();
|
|
109
91
|
},
|
|
92
|
+
getPipelineState() {
|
|
93
|
+
return wasmUtil.getPipelineState();
|
|
94
|
+
},
|
|
110
95
|
preparePipelineState() {
|
|
111
96
|
wasmUtil.getPipelineState();
|
|
112
97
|
}
|
|
@@ -237,6 +222,9 @@ function createDeepsightService(config) {
|
|
|
237
222
|
getAnalysisStatus() {
|
|
238
223
|
return metadata.getCheck();
|
|
239
224
|
},
|
|
225
|
+
getPipelineState() {
|
|
226
|
+
return metadata.getPipelineState();
|
|
227
|
+
},
|
|
240
228
|
cleanup() {
|
|
241
229
|
motion.stop();
|
|
242
230
|
}
|
|
@@ -244,4 +232,4 @@ function createDeepsightService(config) {
|
|
|
244
232
|
}
|
|
245
233
|
|
|
246
234
|
//#endregion
|
|
247
|
-
export {
|
|
235
|
+
export { createDeepsightService as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as CameraStream } from "./camera-
|
|
1
|
+
import { t as CameraStream } from "./camera-BCRgkMoe.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/media/canvas.d.ts
|
|
4
4
|
/**
|
|
@@ -301,6 +301,7 @@ type MetadataService = {
|
|
|
301
301
|
estimatePerformance(): string;
|
|
302
302
|
getMetadata(): string;
|
|
303
303
|
getCheck(): string;
|
|
304
|
+
getPipelineState(): string;
|
|
304
305
|
/**
|
|
305
306
|
* Prepares pipeline state for metadata collection.
|
|
306
307
|
* Must be called before setMotionStatus, getCheck, setBackgroundMode, and getMetadata.
|
|
@@ -344,6 +345,7 @@ type DeepsightService = {
|
|
|
344
345
|
getMetadata(): string;
|
|
345
346
|
getMotionStatus(): string;
|
|
346
347
|
getAnalysisStatus(): string;
|
|
348
|
+
getPipelineState(): string;
|
|
347
349
|
cleanup(): void;
|
|
348
350
|
};
|
|
349
351
|
type DeepsightPrcCheckParams = {
|