@incodetech/core 0.0.0-dev-20260324-5c4350d → 0.0.0-dev-20260324-36152f0
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-DCaEdoev.esm.js → addressSearch-DMCx27ye.esm.js} +4 -4
- package/dist/authentication.d.ts +7 -10
- package/dist/authentication.esm.js +11 -11
- package/dist/{authenticationManager-C-Mmg1uU.d.ts → authenticationManager-DbKSx46Q.d.ts} +2 -2
- package/dist/{authenticationManager-CEGYyu8r.esm.js → authenticationManager-EodxuZuL.esm.js} +6 -6
- package/dist/{backCameraStream-BPzo60FO.esm.js → backCameraStream-DtcVhHEz.esm.js} +1 -1
- package/dist/consent.d.ts +51 -51
- package/dist/consent.esm.js +4 -4
- package/dist/curp-validation.d.ts +3 -4
- package/dist/curp-validation.esm.js +4 -4
- package/dist/{deepsightLoader-ErxPZUBZ.esm.js → deepsightLoader-BRQ6an4b.esm.js} +5 -5
- package/dist/{deepsightService-C47Uyf6m.d.ts → deepsightService-DxA--87N.d.ts} +2 -152
- package/dist/{deepsightService-BcdwWkYD.esm.js → deepsightService-lTQvj-Wf.esm.js} +4 -4
- package/dist/document-capture.d.ts +59 -60
- package/dist/document-capture.esm.js +5 -5
- package/dist/document-upload.d.ts +48 -49
- package/dist/document-upload.esm.js +5 -5
- package/dist/ekyb.d.ts +2 -2
- package/dist/ekyb.esm.js +8 -8
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +5 -5
- package/dist/email.d.ts +2 -3
- package/dist/email.esm.js +5 -5
- package/dist/{emailManager-1W2Uh6du.esm.js → emailManager-BEO3UGMG.esm.js} +4 -4
- package/dist/{emailManager-CN9sSCz6.d.ts → emailManager-DsAtfVR-.d.ts} +1 -2
- package/dist/{endpoints-b2PxFIku.esm.js → endpoints-C5u2nbAn.esm.js} +4 -1
- package/dist/{events-CbNkXF2Q.esm.js → events-CrFdvDAv.esm.js} +3 -2
- package/dist/extensibility.d.ts +11 -14
- package/dist/extensibility.esm.js +16 -16
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +4 -4
- package/dist/{faceCaptureManagerFactory-UFhWTbej.d.ts → faceCaptureManagerFactory-MPKxiFCQ.d.ts} +4 -7
- package/dist/{faceCaptureSetup-CoeOjXeo.esm.js → faceCaptureSetup-CbIdVzbo.esm.js} +8 -8
- package/dist/flow.d.ts +5 -7
- package/dist/flow.esm.js +8 -8
- package/dist/{flowCompletionService-DkbMP576.esm.js → flowCompletionService-_6Rh05wL.esm.js} +2 -2
- package/dist/{flowServices-jrv5Zxbr.esm.js → flowServices-D0mSVlVe.esm.js} +3 -3
- 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 +6 -9
- package/dist/id.esm.js +12 -12
- package/dist/{idCaptureManager-BniIgM20.esm.js → idCaptureManager-BKTNRlc5.esm.js} +9 -9
- package/dist/{idCaptureManager-Dn7_eHt9.d.ts → idCaptureManager-Dc2NJMy_.d.ts} +3 -6
- package/dist/index-BTaLQSj9.d.ts +219 -0
- package/dist/index.d.ts +8 -55
- package/dist/index.esm.js +12 -12
- package/dist/{lib-VFNBaz_7.esm.js → lib-qeMam2F_.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +53 -54
- package/dist/mandatory-consent.esm.js +4 -4
- package/dist/phone.d.ts +2 -3
- package/dist/phone.esm.js +5 -5
- package/dist/{phoneManager-B0MT8wYz.d.ts → phoneManager-CenWu6bP.d.ts} +1 -2
- package/dist/{phoneManager-Cvp5LFN7.esm.js → phoneManager-DoEAPqlN.esm.js} +4 -4
- package/dist/{recordingsRepository-DGWSMj-_.esm.js → recordingsRepository-Df79FRz8.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 +7 -10
- package/dist/selfie.esm.js +11 -11
- package/dist/{selfieManager-BxwT4tDD.esm.js → selfieManager-ClRYLjlE.esm.js} +3 -3
- package/dist/{selfieManager-DSn8EPLE.d.ts → selfieManager-qS-A0pXo.d.ts} +2 -2
- package/dist/{session-4QVMNIs5.esm.js → session-g68X7iNm.esm.js} +5 -5
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +3 -3
- package/dist/signature.d.ts +91 -0
- package/dist/signature.esm.js +240 -0
- package/dist/{src-BX-m0lbm.esm.js → src-DCc0dMkT.esm.js} +622 -3
- package/dist/{stats-BaWAv541.esm.js → stats-D0m3TvIg.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-0A1THNYO.d.ts → types-mQLzH6uw.d.ts} +1 -1
- package/dist/{types-BYFeUhw0.d.ts → types-oveF7RrS.d.ts} +1 -1
- package/package.json +5 -1
- package/dist/Actor-By8WNHi-.d.ts +0 -2
- package/dist/Manager-BWqHEUjI.d.ts +0 -19
- package/dist/StateMachine-dxjI9q0V.d.ts +0 -2
- package/dist/camera-BCRgkMoe.d.ts +0 -4
- /package/dist/{api-C2uzxrpN.esm.js → api-G4JA8CXK.esm.js} +0 -0
- /package/dist/{browserSimulation-DYAk0Ipe.esm.js → browserSimulation-C8gNnn5p.esm.js} +0 -0
- /package/dist/{chunk-NXK2ElUW.esm.js → chunk-Boje8faD.esm.js} +0 -0
- /package/dist/{displayErrors-CV7ux9Fr.d.ts → displayErrors-BgtBHbfb.d.ts} +0 -0
- /package/dist/{flowCompletionService-sG6KA8y2.d.ts → flowCompletionService-De8JDo87.d.ts} +0 -0
- /package/dist/{id-C3aKMJhc.esm.js → id-B30uqGbp.esm.js} +0 -0
- /package/dist/{index-DGdyPh8A.d.ts → index-LKrIp3Oo.d.ts} +0 -0
- /package/dist/{warmup-B_dntecl.d.ts → warmup-CzfSiaMj.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as fromCallback } from "./events-
|
|
2
|
-
import {
|
|
3
|
-
import { t as api } from "./api-
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { b as fromCallback } from "./events-CrFdvDAv.esm.js";
|
|
2
|
+
import { _ as BrowserTimerProvider } from "./src-DCc0dMkT.esm.js";
|
|
3
|
+
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-C5u2nbAn.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/shared/usStates.ts
|
|
7
7
|
const usStates = {
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
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";
|
|
1
|
+
import "./index-BTaLQSj9.js";
|
|
2
|
+
import "./deepsightService-DxA--87N.js";
|
|
3
|
+
import { g as AuthenticationConfig, h as createAuthenticationActor, m as CreateAuthenticationActorOptions, p as AuthenticationActor, y as authenticationMachine } from "./faceCaptureManagerFactory-MPKxiFCQ.js";
|
|
4
|
+
import "./warmup-CzfSiaMj.js";
|
|
5
|
+
import "./types-oveF7RrS.js";
|
|
6
|
+
import "./types-mQLzH6uw.js";
|
|
7
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-DbKSx46Q.js";
|
|
11
8
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./events-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
4
|
-
import "./recordingsRepository-
|
|
5
|
-
import "./browserSimulation-
|
|
6
|
-
import "./api-
|
|
7
|
-
import "./endpoints-
|
|
8
|
-
import "./deepsightService-
|
|
9
|
-
import "./stats-
|
|
10
|
-
import "./faceCaptureSetup-
|
|
11
|
-
import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import "./events-CrFdvDAv.esm.js";
|
|
2
|
+
import "./backCameraStream-DtcVhHEz.esm.js";
|
|
3
|
+
import "./src-DCc0dMkT.esm.js";
|
|
4
|
+
import "./recordingsRepository-Df79FRz8.esm.js";
|
|
5
|
+
import "./browserSimulation-C8gNnn5p.esm.js";
|
|
6
|
+
import "./api-G4JA8CXK.esm.js";
|
|
7
|
+
import "./endpoints-C5u2nbAn.esm.js";
|
|
8
|
+
import "./deepsightService-lTQvj-Wf.esm.js";
|
|
9
|
+
import "./stats-D0m3TvIg.esm.js";
|
|
10
|
+
import "./faceCaptureSetup-CbIdVzbo.esm.js";
|
|
11
|
+
import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-EodxuZuL.esm.js";
|
|
12
12
|
|
|
13
13
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
1
|
+
import { f as Manager } from "./index-BTaLQSj9.js";
|
|
2
|
+
import { m as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, p as AuthenticationActor, t as FaceCaptureManager } from "./faceCaptureManagerFactory-MPKxiFCQ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
package/dist/{authenticationManager-CEGYyu8r.esm.js → authenticationManager-EodxuZuL.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as createActor, n as eventModuleNames, x as fromPromise, y as assign } from "./events-
|
|
2
|
-
import {
|
|
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-CrFdvDAv.esm.js";
|
|
2
|
+
import { o as WasmUtilProvider, v as BrowserStorageProvider } from "./src-DCc0dMkT.esm.js";
|
|
3
|
+
import { c as getDeviceClass } from "./recordingsRepository-Df79FRz8.esm.js";
|
|
4
|
+
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-C5u2nbAn.esm.js";
|
|
6
|
+
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, t as faceCaptureMachine } from "./faceCaptureSetup-CbIdVzbo.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
9
9
|
const AUTH_ERROR_MAP = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as stopCameraStream, B as isIPhone14OrHigher, D as applyTrackConstraints, I as isAndroid, O as enumerateVideoDevices, R as isIOS, V as isSafari, k as requestCameraAccess } from "./src-DCc0dMkT.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/capabilities/ITimerCapability.ts
|
|
4
4
|
function sleep(ms) {
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
1
|
+
import { f as Manager } from "./index-BTaLQSj9.js";
|
|
2
|
+
import * as xstate63 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: xstate63.StateMachine<ConsentContext, {
|
|
39
39
|
type: "LOAD";
|
|
40
40
|
} | {
|
|
41
41
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -47,53 +47,53 @@ declare const consentMachine: xstate72.StateMachine<ConsentContext, {
|
|
|
47
47
|
} | {
|
|
48
48
|
type: "RESET";
|
|
49
49
|
}, {
|
|
50
|
-
[x: string]:
|
|
50
|
+
[x: string]: xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
51
51
|
consentId: string;
|
|
52
|
-
},
|
|
52
|
+
}, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<void, {
|
|
53
53
|
languageConsentId: string;
|
|
54
54
|
checkboxes: ConsentCheckbox[];
|
|
55
|
-
},
|
|
56
|
-
},
|
|
55
|
+
}, xstate63.EventObject>> | undefined;
|
|
56
|
+
}, xstate63.Values<{
|
|
57
57
|
fetchConsent: {
|
|
58
58
|
src: "fetchConsent";
|
|
59
|
-
logic:
|
|
59
|
+
logic: xstate63.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
60
60
|
consentId: string;
|
|
61
|
-
},
|
|
61
|
+
}, xstate63.EventObject>;
|
|
62
62
|
id: string | undefined;
|
|
63
63
|
};
|
|
64
64
|
submitConsent: {
|
|
65
65
|
src: "submitConsent";
|
|
66
|
-
logic:
|
|
66
|
+
logic: xstate63.PromiseActorLogic<void, {
|
|
67
67
|
languageConsentId: string;
|
|
68
68
|
checkboxes: ConsentCheckbox[];
|
|
69
|
-
},
|
|
69
|
+
}, xstate63.EventObject>;
|
|
70
70
|
id: string | undefined;
|
|
71
71
|
};
|
|
72
|
-
}>,
|
|
72
|
+
}>, xstate63.Values<{
|
|
73
|
+
setError: {
|
|
74
|
+
type: "setError";
|
|
75
|
+
params: xstate63.NonReducibleUnknown;
|
|
76
|
+
};
|
|
73
77
|
clearError: {
|
|
74
78
|
type: "clearError";
|
|
75
|
-
params:
|
|
79
|
+
params: xstate63.NonReducibleUnknown;
|
|
76
80
|
};
|
|
77
81
|
setConsentData: {
|
|
78
82
|
type: "setConsentData";
|
|
79
|
-
params:
|
|
83
|
+
params: xstate63.NonReducibleUnknown;
|
|
80
84
|
};
|
|
81
85
|
toggleCheckbox: {
|
|
82
86
|
type: "toggleCheckbox";
|
|
83
|
-
params:
|
|
84
|
-
};
|
|
85
|
-
setError: {
|
|
86
|
-
type: "setError";
|
|
87
|
-
params: xstate72.NonReducibleUnknown;
|
|
87
|
+
params: xstate63.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
89
|
resetContext: {
|
|
90
90
|
type: "resetContext";
|
|
91
|
-
params:
|
|
91
|
+
params: xstate63.NonReducibleUnknown;
|
|
92
92
|
};
|
|
93
93
|
}>, {
|
|
94
94
|
type: "canSubmit";
|
|
95
95
|
params: unknown;
|
|
96
|
-
}, never, "error" | "
|
|
96
|
+
}, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate63.NonReducibleUnknown, xstate63.EventObject, xstate63.MetaObject, {
|
|
97
97
|
readonly id: "consent";
|
|
98
98
|
readonly initial: "idle";
|
|
99
99
|
readonly context: ({
|
|
@@ -102,70 +102,70 @@ declare const consentMachine: xstate72.StateMachine<ConsentContext, {
|
|
|
102
102
|
spawn: {
|
|
103
103
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
104
104
|
src: "fetchConsent";
|
|
105
|
-
logic:
|
|
105
|
+
logic: xstate63.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
106
106
|
consentId: string;
|
|
107
|
-
},
|
|
107
|
+
}, xstate63.EventObject>;
|
|
108
108
|
id: string | undefined;
|
|
109
109
|
} extends infer T ? T extends {
|
|
110
110
|
src: "fetchConsent";
|
|
111
|
-
logic:
|
|
111
|
+
logic: xstate63.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
112
112
|
consentId: string;
|
|
113
|
-
},
|
|
113
|
+
}, xstate63.EventObject>;
|
|
114
114
|
id: string | undefined;
|
|
115
115
|
} ? T extends {
|
|
116
116
|
src: TSrc;
|
|
117
|
-
} ?
|
|
117
|
+
} ? xstate63.ConditionalRequired<[options?: ({
|
|
118
118
|
id?: T["id"] | undefined;
|
|
119
119
|
systemId?: string;
|
|
120
|
-
input?:
|
|
120
|
+
input?: xstate63.InputFrom<T["logic"]> | undefined;
|
|
121
121
|
syncSnapshot?: boolean;
|
|
122
|
-
} & { [K in
|
|
122
|
+
} & { [K in xstate63.RequiredActorOptions<T>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
123
123
|
src: "submitConsent";
|
|
124
|
-
logic:
|
|
124
|
+
logic: xstate63.PromiseActorLogic<void, {
|
|
125
125
|
languageConsentId: string;
|
|
126
126
|
checkboxes: ConsentCheckbox[];
|
|
127
|
-
},
|
|
127
|
+
}, xstate63.EventObject>;
|
|
128
128
|
id: string | undefined;
|
|
129
129
|
} extends infer T_1 ? T_1 extends {
|
|
130
130
|
src: "submitConsent";
|
|
131
|
-
logic:
|
|
131
|
+
logic: xstate63.PromiseActorLogic<void, {
|
|
132
132
|
languageConsentId: string;
|
|
133
133
|
checkboxes: ConsentCheckbox[];
|
|
134
|
-
},
|
|
134
|
+
}, xstate63.EventObject>;
|
|
135
135
|
id: string | undefined;
|
|
136
136
|
} ? T_1 extends {
|
|
137
137
|
src: TSrc;
|
|
138
|
-
} ?
|
|
138
|
+
} ? xstate63.ConditionalRequired<[options?: ({
|
|
139
139
|
id?: T_1["id"] | undefined;
|
|
140
140
|
systemId?: string;
|
|
141
|
-
input?:
|
|
141
|
+
input?: xstate63.InputFrom<T_1["logic"]> | undefined;
|
|
142
142
|
syncSnapshot?: boolean;
|
|
143
|
-
} & { [K_1 in
|
|
143
|
+
} & { [K_1 in xstate63.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_1>>> : never : never : never)): xstate63.ActorRefFromLogic<xstate63.GetConcreteByKey<xstate63.Values<{
|
|
144
144
|
fetchConsent: {
|
|
145
145
|
src: "fetchConsent";
|
|
146
|
-
logic:
|
|
146
|
+
logic: xstate63.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
147
147
|
consentId: string;
|
|
148
|
-
},
|
|
148
|
+
}, xstate63.EventObject>;
|
|
149
149
|
id: string | undefined;
|
|
150
150
|
};
|
|
151
151
|
submitConsent: {
|
|
152
152
|
src: "submitConsent";
|
|
153
|
-
logic:
|
|
153
|
+
logic: xstate63.PromiseActorLogic<void, {
|
|
154
154
|
languageConsentId: string;
|
|
155
155
|
checkboxes: ConsentCheckbox[];
|
|
156
|
-
},
|
|
156
|
+
}, xstate63.EventObject>;
|
|
157
157
|
id: string | undefined;
|
|
158
158
|
};
|
|
159
159
|
}>, "src", TSrc>["logic"]>;
|
|
160
|
-
<TLogic extends
|
|
160
|
+
<TLogic extends xstate63.AnyActorLogic>(src: TLogic, ...[options]: xstate63.ConditionalRequired<[options?: ({
|
|
161
161
|
id?: never;
|
|
162
162
|
systemId?: string;
|
|
163
|
-
input?:
|
|
163
|
+
input?: xstate63.InputFrom<TLogic> | undefined;
|
|
164
164
|
syncSnapshot?: boolean;
|
|
165
|
-
} & { [K in
|
|
165
|
+
} & { [K in xstate63.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredLogicInput<TLogic>>>): xstate63.ActorRefFromLogic<TLogic>;
|
|
166
166
|
};
|
|
167
167
|
input: ConsentInput;
|
|
168
|
-
self:
|
|
168
|
+
self: xstate63.ActorRef<xstate63.MachineSnapshot<ConsentContext, {
|
|
169
169
|
type: "LOAD";
|
|
170
170
|
} | {
|
|
171
171
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -176,7 +176,7 @@ declare const consentMachine: xstate72.StateMachine<ConsentContext, {
|
|
|
176
176
|
type: "RETRY";
|
|
177
177
|
} | {
|
|
178
178
|
type: "RESET";
|
|
179
|
-
}, Record<string,
|
|
179
|
+
}, Record<string, xstate63.AnyActorRef | undefined>, xstate63.StateValue, string, unknown, any, any>, {
|
|
180
180
|
type: "LOAD";
|
|
181
181
|
} | {
|
|
182
182
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -187,7 +187,7 @@ declare const consentMachine: xstate72.StateMachine<ConsentContext, {
|
|
|
187
187
|
type: "RETRY";
|
|
188
188
|
} | {
|
|
189
189
|
type: "RESET";
|
|
190
|
-
},
|
|
190
|
+
}, xstate63.AnyEventObject>;
|
|
191
191
|
}) => {
|
|
192
192
|
config: ConsentConfig;
|
|
193
193
|
title: string;
|
|
@@ -225,7 +225,7 @@ declare const consentMachine: xstate72.StateMachine<ConsentContext, {
|
|
|
225
225
|
} | {
|
|
226
226
|
type: "RESET";
|
|
227
227
|
};
|
|
228
|
-
self:
|
|
228
|
+
self: xstate63.ActorRef<xstate63.MachineSnapshot<ConsentContext, {
|
|
229
229
|
type: "LOAD";
|
|
230
230
|
} | {
|
|
231
231
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -236,7 +236,7 @@ declare const consentMachine: xstate72.StateMachine<ConsentContext, {
|
|
|
236
236
|
type: "RETRY";
|
|
237
237
|
} | {
|
|
238
238
|
type: "RESET";
|
|
239
|
-
}, Record<string,
|
|
239
|
+
}, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
|
|
240
240
|
type: "LOAD";
|
|
241
241
|
} | {
|
|
242
242
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -247,7 +247,7 @@ declare const consentMachine: xstate72.StateMachine<ConsentContext, {
|
|
|
247
247
|
type: "RETRY";
|
|
248
248
|
} | {
|
|
249
249
|
type: "RESET";
|
|
250
|
-
},
|
|
250
|
+
}, xstate63.AnyEventObject>;
|
|
251
251
|
}) => {
|
|
252
252
|
consentId: string;
|
|
253
253
|
};
|
|
@@ -296,7 +296,7 @@ declare const consentMachine: xstate72.StateMachine<ConsentContext, {
|
|
|
296
296
|
} | {
|
|
297
297
|
type: "RESET";
|
|
298
298
|
};
|
|
299
|
-
self:
|
|
299
|
+
self: xstate63.ActorRef<xstate63.MachineSnapshot<ConsentContext, {
|
|
300
300
|
type: "LOAD";
|
|
301
301
|
} | {
|
|
302
302
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -307,7 +307,7 @@ declare const consentMachine: xstate72.StateMachine<ConsentContext, {
|
|
|
307
307
|
type: "RETRY";
|
|
308
308
|
} | {
|
|
309
309
|
type: "RESET";
|
|
310
|
-
}, Record<string,
|
|
310
|
+
}, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
|
|
311
311
|
type: "LOAD";
|
|
312
312
|
} | {
|
|
313
313
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -318,7 +318,7 @@ declare const consentMachine: xstate72.StateMachine<ConsentContext, {
|
|
|
318
318
|
type: "RETRY";
|
|
319
319
|
} | {
|
|
320
320
|
type: "RESET";
|
|
321
|
-
},
|
|
321
|
+
}, xstate63.AnyEventObject>;
|
|
322
322
|
}) => {
|
|
323
323
|
languageConsentId: string;
|
|
324
324
|
checkboxes: ConsentCheckbox[];
|
package/dist/consent.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-
|
|
2
|
-
import {
|
|
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-CrFdvDAv.esm.js";
|
|
2
|
+
import { j as createManager } from "./src-DCc0dMkT.esm.js";
|
|
3
|
+
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-C5u2nbAn.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/consent/consentServices.ts
|
|
7
7
|
async function fetchCombinedConsent(consentId, signal) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import "./types-
|
|
4
|
-
import { r as FlowModuleConfig } from "./types-0A1THNYO.js";
|
|
1
|
+
import { f as Manager } from "./index-BTaLQSj9.js";
|
|
2
|
+
import "./types-oveF7RrS.js";
|
|
3
|
+
import { r as FlowModuleConfig } from "./types-mQLzH6uw.js";
|
|
5
4
|
|
|
6
5
|
//#region src/modules/curp-validation/types.d.ts
|
|
7
6
|
type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-
|
|
2
|
-
import {
|
|
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-CrFdvDAv.esm.js";
|
|
2
|
+
import { j as createManager } from "./src-DCc0dMkT.esm.js";
|
|
3
|
+
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-C5u2nbAn.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,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./browserSimulation-
|
|
3
|
-
import "./api-
|
|
4
|
-
import { t as createDeepsightService } from "./deepsightService-
|
|
5
|
-
import "./stats-
|
|
1
|
+
import { b as BrowserEnvironmentProvider, o as WasmUtilProvider, p as MotionSensorProvider, u as VisibilityProvider } from "./src-DCc0dMkT.esm.js";
|
|
2
|
+
import "./browserSimulation-C8gNnn5p.esm.js";
|
|
3
|
+
import "./api-G4JA8CXK.esm.js";
|
|
4
|
+
import { t as createDeepsightService } from "./deepsightService-lTQvj-Wf.esm.js";
|
|
5
|
+
import "./stats-D0m3TvIg.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/internal/deepsight/deepsightLoader.ts
|
|
8
8
|
const SDK_VERSION = "2.0.0";
|
|
@@ -1,116 +1,3 @@
|
|
|
1
|
-
import { t as CameraStream } from "./camera-BCRgkMoe.js";
|
|
2
|
-
|
|
3
|
-
//#region ../infra/src/media/canvas.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Class representing a canvas element for image capture and manipulation.
|
|
6
|
-
*/
|
|
7
|
-
declare class IncodeCanvas {
|
|
8
|
-
canvas: HTMLCanvasElement;
|
|
9
|
-
private base64Image;
|
|
10
|
-
private blobData;
|
|
11
|
-
/**
|
|
12
|
-
* Creates an {@link IncodeCanvas} from a raw {@link ImageData} frame.
|
|
13
|
-
* @param imageData - Frame pixels in RGBA format
|
|
14
|
-
* @returns An {@link IncodeCanvas} containing the provided pixels
|
|
15
|
-
*/
|
|
16
|
-
static fromImageData(imageData: ImageData): IncodeCanvas;
|
|
17
|
-
/**
|
|
18
|
-
* Create a new canvas element.
|
|
19
|
-
* @param canvas_ - The canvas element to clone.
|
|
20
|
-
*/
|
|
21
|
-
constructor(canvas_: HTMLCanvasElement);
|
|
22
|
-
/**
|
|
23
|
-
* Check if the current canvas is valid.
|
|
24
|
-
*/
|
|
25
|
-
private checkCanvas;
|
|
26
|
-
/**
|
|
27
|
-
* Disposes of resources, including revoking object URLs to prevent memory leaks.
|
|
28
|
-
*/
|
|
29
|
-
dispose(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Release the data stored by IncodeCanvas.
|
|
32
|
-
*/
|
|
33
|
-
release(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Revokes the object URL if one exists, preventing memory leaks.
|
|
36
|
-
* Use this when you no longer need the preview image URL.
|
|
37
|
-
*/
|
|
38
|
-
revokeObjectURL(): void;
|
|
39
|
-
/**
|
|
40
|
-
* Get the width of the canvas.
|
|
41
|
-
*/
|
|
42
|
-
width(): number | null;
|
|
43
|
-
/**
|
|
44
|
-
* Get the height of the canvas.
|
|
45
|
-
*/
|
|
46
|
-
height(): number | null;
|
|
47
|
-
/**
|
|
48
|
-
* Set the width of the canvas.
|
|
49
|
-
*/
|
|
50
|
-
setWidth(width: number): void;
|
|
51
|
-
/**
|
|
52
|
-
* Set the height of the canvas.
|
|
53
|
-
*/
|
|
54
|
-
setHeight(height: number): void;
|
|
55
|
-
/**
|
|
56
|
-
* Clone the current canvas.
|
|
57
|
-
*/
|
|
58
|
-
clone(): IncodeCanvas | null;
|
|
59
|
-
/**
|
|
60
|
-
* Deep clone the current IncodeCanvas including blob data.
|
|
61
|
-
*/
|
|
62
|
-
deepClone(): Promise<IncodeCanvas | null>;
|
|
63
|
-
/**
|
|
64
|
-
* Returns the drawing context on the canvas.
|
|
65
|
-
*/
|
|
66
|
-
getContext(contextId: '2d', contextAttributes?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
|
|
67
|
-
/**
|
|
68
|
-
* Retrieves the image data from the canvas.
|
|
69
|
-
*/
|
|
70
|
-
getImageData(): ImageData | null;
|
|
71
|
-
/**
|
|
72
|
-
* Updates the base64 representation of the current canvas image.
|
|
73
|
-
*/
|
|
74
|
-
updateBase64Image(jpegQuality?: number): void;
|
|
75
|
-
/**
|
|
76
|
-
* Converts the current canvas element to a base64 string.
|
|
77
|
-
*/
|
|
78
|
-
getBase64Image(jpegQuality?: number, includeDataURLPrefix?: boolean): string | null;
|
|
79
|
-
/**
|
|
80
|
-
* Sets the base64 representation of the current canvas image.
|
|
81
|
-
*/
|
|
82
|
-
setBase64Image(base64Image: string | null): void;
|
|
83
|
-
/**
|
|
84
|
-
* Updates the Blob representation of the current canvas image.
|
|
85
|
-
*/
|
|
86
|
-
updateBlob(jpegQuality?: number, includeDataURLPrefix?: boolean): void;
|
|
87
|
-
/**
|
|
88
|
-
* Converts a base64 string to a Blob and creates a URL for it.
|
|
89
|
-
*/
|
|
90
|
-
static base64ToBlob(base64: string): {
|
|
91
|
-
blob: Blob;
|
|
92
|
-
url: string;
|
|
93
|
-
} | null;
|
|
94
|
-
/**
|
|
95
|
-
* Retrieves the Blob data and its URL from the current canvas.
|
|
96
|
-
*/
|
|
97
|
-
getBlobData(jpegQuality?: number, includeDataURLPrefix?: boolean): {
|
|
98
|
-
blob: Blob;
|
|
99
|
-
url: string;
|
|
100
|
-
} | null;
|
|
101
|
-
/**
|
|
102
|
-
* Sets the Blob data of the current canvas image.
|
|
103
|
-
*/
|
|
104
|
-
setBlobData(blobData: {
|
|
105
|
-
blob: Blob;
|
|
106
|
-
url: string;
|
|
107
|
-
}): Promise<void>;
|
|
108
|
-
/**
|
|
109
|
-
* Returns a resized canvas according to video element size.
|
|
110
|
-
*/
|
|
111
|
-
getResizedCanvas(videoElementWidth: number, videoElementHeight: number): IncodeCanvas | null;
|
|
112
|
-
}
|
|
113
|
-
//#endregion
|
|
114
1
|
//#region ../infra/src/capabilities/IMLProviderCapability.d.ts
|
|
115
2
|
/**
|
|
116
3
|
* Base configuration shared by all ML provider capabilities.
|
|
@@ -166,6 +53,7 @@ interface IMLProviderCapability<TConfig extends MLProviderConfig> {
|
|
|
166
53
|
}
|
|
167
54
|
//#endregion
|
|
168
55
|
//#region ../infra/src/capabilities/IMotionSensorCapability.d.ts
|
|
56
|
+
|
|
169
57
|
type MotionStatus = 'PASS' | 'FAIL' | 'UNCLEAR';
|
|
170
58
|
type MotionPermissionState = 'granted' | 'denied' | 'not-required';
|
|
171
59
|
type IMotionSensorCapability = {
|
|
@@ -248,44 +136,6 @@ interface IStorageCapability {
|
|
|
248
136
|
clear(): Promise<void>;
|
|
249
137
|
}
|
|
250
138
|
//#endregion
|
|
251
|
-
//#region ../infra/src/media/StreamCanvasCapture.d.ts
|
|
252
|
-
type StreamCanvasCaptureOptions = {
|
|
253
|
-
fps?: number;
|
|
254
|
-
width?: number;
|
|
255
|
-
height?: number;
|
|
256
|
-
};
|
|
257
|
-
type StreamCanvasCaptureEventMap = {
|
|
258
|
-
frame: Event;
|
|
259
|
-
};
|
|
260
|
-
declare class StreamCanvasCapture {
|
|
261
|
-
private video;
|
|
262
|
-
private canvas;
|
|
263
|
-
private ctx;
|
|
264
|
-
private rafId;
|
|
265
|
-
private lastFrameTimeSeconds;
|
|
266
|
-
private lastTickTimeMs;
|
|
267
|
-
private hasFrame;
|
|
268
|
-
private disposed;
|
|
269
|
-
private eventTarget;
|
|
270
|
-
constructor(stream: CameraStream, options?: StreamCanvasCaptureOptions);
|
|
271
|
-
addEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
|
|
272
|
-
removeEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | EventListenerOptions): void;
|
|
273
|
-
/**
|
|
274
|
-
* Returns the latest cached frame as an {@link IncodeCanvas}.
|
|
275
|
-
*/
|
|
276
|
-
getLatestCanvas(): IncodeCanvas | null;
|
|
277
|
-
/**
|
|
278
|
-
* Returns the latest cached frame as raw {@link ImageData}.
|
|
279
|
-
*/
|
|
280
|
-
getLatestFrame(): ImageData | null;
|
|
281
|
-
/**
|
|
282
|
-
* Disposes internal resources and stops the capture loop.
|
|
283
|
-
*/
|
|
284
|
-
dispose(): void;
|
|
285
|
-
private rafLoop;
|
|
286
|
-
private tick;
|
|
287
|
-
}
|
|
288
|
-
//#endregion
|
|
289
139
|
//#region src/internal/permissions/types.d.ts
|
|
290
140
|
type PermissionResult = 'granted' | 'denied' | 'prompt';
|
|
291
141
|
type PermissionStatus = 'idle' | 'requesting' | 'denied' | 'learnMore';
|
|
@@ -352,4 +202,4 @@ type DeepsightPrcCheckParams = {
|
|
|
352
202
|
constraints: MediaStreamConstraints;
|
|
353
203
|
};
|
|
354
204
|
//#endregion
|
|
355
|
-
export {
|
|
205
|
+
export { IRecordingCapability as a, IMLProviderCapability as c, IStorageCapability as i, MLProviderConfig as l, PermissionResult as n, RecordingConnection as o, PermissionStatus as r, IMotionSensorCapability as s, DeepsightService as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as isBrowserSimulation } from "./browserSimulation-
|
|
3
|
-
import { t as api } from "./api-
|
|
4
|
-
import { t as addDeviceStats } from "./stats-
|
|
1
|
+
import { A as stopCameraStream, E as IncodeCanvas, F as getUserAgent, N as getDeviceInfo, T as createHiddenVideoElement, k as requestCameraAccess } from "./src-DCc0dMkT.esm.js";
|
|
2
|
+
import { t as isBrowserSimulation } from "./browserSimulation-C8gNnn5p.esm.js";
|
|
3
|
+
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
|
+
import { t as addDeviceStats } from "./stats-D0m3TvIg.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/internal/deepsight/metadataService.ts
|
|
7
7
|
const IP_PROVIDER_URL = "https://api.ipify.org?format=json";
|