@incodetech/core 0.0.0-dev-20260408-a355630 → 0.0.0-dev-20260409-09dfd52
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/BrowserStorageProvider-CXaS5Ooj.esm.js +55 -0
- package/dist/{OpenViduRecordingProvider-Bn2meybK.esm.js → OpenViduRecordingProvider-D_cVAwYQ.esm.js} +1 -1
- package/dist/{WasmUtilProvider-BpZSvZbg.esm.js → WasmUtilProvider-mWSXzp7b.esm.js} +1 -1
- package/dist/{addressSearch-DOFI7lwy.esm.js → addressSearch-C26OZIx0.esm.js} +4 -4
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +4 -37
- package/dist/antifraudStateMachine-B74mO8vr.esm.js +39 -0
- package/dist/authentication.d.ts +11 -11
- package/dist/authentication.esm.js +22 -19
- package/dist/authenticationManager-BBQHippG.esm.js +67 -0
- package/dist/{authenticationManager-C2mk36yK.d.ts → authenticationManager-DOTo1EYF.d.ts} +2 -2
- package/dist/{authenticationManager-C7dL_avf.esm.js → authenticationStateMachine-DCJ0ArAt.esm.js} +7 -67
- package/dist/{backCameraStream-tabTmwDS.esm.js → backCameraStream-D9g2wyil.esm.js} +3 -3
- package/dist/camera.d.ts +1 -1
- package/dist/camera.esm.js +3 -3
- package/dist/consent.d.ts +49 -49
- package/dist/consent.esm.js +4 -149
- package/dist/consentStateMachine-DIdJXJW0.esm.js +151 -0
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +4 -4
- package/dist/curp-validation.d.ts +5 -5
- package/dist/curp-validation.esm.js +4 -417
- package/dist/curpValidationStateMachine-Dp5WB6__.esm.js +419 -0
- package/dist/{deepsightLoader-Cj6SyUQ-.esm.js → deepsightLoader-CaULV07H.esm.js} +10 -10
- package/dist/{deepsightService-ByD6uIs7.d.ts → deepsightService-S-tU77m-.d.ts} +2 -2
- package/dist/{deepsightService-BjgXl5hs.esm.js → deepsightService-rPGLH8Xp.esm.js} +5 -5
- package/dist/device.esm.js +3 -3
- package/dist/document-capture.d.ts +75 -73
- package/dist/document-capture.esm.js +8 -403
- package/dist/document-upload.d.ts +50 -50
- package/dist/document-upload.esm.js +7 -7
- package/dist/documentCaptureStateMachine-ByYOCKz5.esm.js +403 -0
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +10 -655
- package/dist/ekybStateMachine-DRku_YmR.esm.js +653 -0
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +6 -10614
- package/dist/ekycStateMachine-CSWaaWVl.esm.js +10615 -0
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +6 -5
- package/dist/{emailManager-CU_hzrsl.d.ts → emailManager-D6CHM2QO.d.ts} +4 -3
- package/dist/emailManager-DByjyeY8.esm.js +238 -0
- package/dist/{emailManager-_9R4vm6g.esm.js → emailStateMachine-BoIkeCw5.esm.js} +6 -239
- package/dist/{events-DlHrOIRc.esm.js → events-W91zLpx4.esm.js} +5 -1
- package/dist/events.esm.js +2 -2
- package/dist/extensibility.d.ts +15 -15
- package/dist/extensibility.esm.js +33 -26
- package/dist/face-match.d.ts +7 -6
- package/dist/face-match.esm.js +8 -129
- package/dist/faceCaptureManagerFactory-Bspg2Tyf.esm.js +117 -0
- package/dist/{faceCaptureManagerFactory-Da_-ohdg.d.ts → faceCaptureManagerFactory-P2yy30KU.d.ts} +8 -8
- package/dist/{faceCaptureSetup-CaVWkjvE.esm.js → faceCaptureSetup-CQevz86q.esm.js} +5 -119
- package/dist/faceMatchStateMachine-CLterVEC.esm.js +127 -0
- package/dist/flow.d.ts +8 -13
- package/dist/flow.esm.js +10 -29
- package/dist/{flowCompletionService-B5JemmC6.esm.js → flowCompletionService-DZSDUXus.esm.js} +2 -2
- package/dist/{flowServices-p22wrYPf.esm.js → flowServices-YATk0fgY.esm.js} +3 -3
- package/dist/geolocation.d.ts +7 -6
- package/dist/geolocation.esm.js +7 -105
- package/dist/geolocationStateMachine-CRRUCl9K.esm.js +105 -0
- package/dist/{getDeviceClass-DEzz4cmY.esm.js → getDeviceClass-DBF-ExLR.esm.js} +1 -1
- package/dist/government-validation.d.ts +2 -2
- package/dist/government-validation.esm.js +5 -269
- package/dist/governmentValidationStateMachine-C_iPX9VE.esm.js +271 -0
- package/dist/http.esm.js +1 -1
- package/dist/id.d.ts +10 -10
- package/dist/id.esm.js +22 -20
- package/dist/idCaptureManager-CJfatzuY.esm.js +335 -0
- package/dist/{idCaptureManager-CV08v1e3.d.ts → idCaptureManager-CbZvdr9y.d.ts} +7 -7
- package/dist/{idCaptureManager-dyZzKv8L.esm.js → idCaptureStateMachine-gf-Q9piu.esm.js} +17 -346
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +8 -8
- package/dist/{lib-Bavz2qmt.esm.js → lib-BzVJ-zxG.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +58 -58
- package/dist/mandatory-consent.esm.js +4 -124
- package/dist/mandatoryConsentStateMachine-BZNBJ1fK.esm.js +126 -0
- package/dist/{openviduLazy-vhrVZCr_.esm.js → openviduLazy-CLg_-u0m.esm.js} +2 -2
- package/dist/openviduLazy-rFXBtZVZ.esm.js +3 -0
- package/dist/{permissionServices-Cskq32Yd.esm.js → permissionServices-Cisv73eQ.esm.js} +2 -2
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +6 -5
- package/dist/phoneManager-DhC4obPF.esm.js +258 -0
- package/dist/{phoneManager-ulJuGvJ8.d.ts → phoneManager-Zwr-qCnC.d.ts} +2 -2
- package/dist/{phoneManager-DerdUfd4.esm.js → phoneStateMachine-Cc_w4tC0.esm.js} +5 -258
- package/dist/{recordingService-483wQ6kR.esm.js → recordingService-CCfxUY7-.esm.js} +14 -68
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +5 -247
- package/dist/redirectToMobileStateMachine-vOe27Ufw.esm.js +249 -0
- package/dist/runChildModule-DVC4JEjp.esm.js +27 -0
- package/dist/selfie.d.ts +11 -11
- package/dist/selfie.esm.js +22 -19
- package/dist/selfieManager-CorEST5h.esm.js +60 -0
- package/dist/{selfieManager-DCRP7X75.d.ts → selfieManager-DNwfxieF.d.ts} +2 -2
- package/dist/selfieStateMachine-3b19ON1z.esm.js +56 -0
- package/dist/{session-CUh77zj3.esm.js → session-B_rKSRql.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +6 -6
- package/dist/{setup-DpHakxsC.d.ts → setup-BYqwVLiv.d.ts} +1 -1
- package/dist/{setup-XpxfZgKn.esm.js → setup-DLvhsDol.esm.js} +6 -5
- package/dist/signature.d.ts +4 -3
- package/dist/signature.esm.js +6 -189
- package/dist/signatureStateMachine-CU92zCXU.esm.js +189 -0
- package/dist/{stats-DHDoqSBV.esm.js → stats-gFD2351t.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-2OPf1pyv.d.ts → types-CYJ0Ish6.d.ts} +1 -1
- package/dist/types-CjsEZRcz.d.ts +35 -0
- package/dist/{types-CVJVQ7fp.d.ts → types-DU8HmI5U.d.ts} +1 -1
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +8 -8
- package/dist/workflow.d.ts +813 -0
- package/dist/workflow.esm.js +600 -0
- package/package.json +5 -1
- package/dist/openviduLazy-BIPHozOu.esm.js +0 -3
- package/dist/selfieManager-DeOcNel4.esm.js +0 -110
- /package/dist/{Actor-Ba71-_30.d.ts → Actor-DbWH1K6E.d.ts} +0 -0
- /package/dist/{BaseWasmProvider-D-s_6M5H.esm.js → BaseWasmProvider-DoYDYH1z.esm.js} +0 -0
- /package/dist/{BrowserEnvironmentProvider-DaHeLJQw.esm.js → BrowserEnvironmentProvider-BtKLxTx4.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-BhD2MlHg.esm.js → BrowserTimerProvider-v7bpbrAk.esm.js} +0 -0
- /package/dist/{ITimerCapability-oixwa6nj.esm.js → ITimerCapability-BZO_FsCo.esm.js} +0 -0
- /package/dist/{Manager-BN2g_I8W.d.ts → Manager-DcPMRgTm.d.ts} +0 -0
- /package/dist/{MotionSensorProvider-CodM3e0E.esm.js → MotionSensorProvider-D90R4qwV.esm.js} +0 -0
- /package/dist/{StateMachine-BoJsfMvg.d.ts → StateMachine-BBuIgsHT.d.ts} +0 -0
- /package/dist/{api-DzpnV6O7.esm.js → api-aa9Mx20l.esm.js} +0 -0
- /package/dist/{browserSimulation-B4ubb2OL.esm.js → browserSimulation-DFqGKQAD.esm.js} +0 -0
- /package/dist/{camera-1eeGnAaL.d.ts → camera-DATT31my.d.ts} +0 -0
- /package/dist/{camera-DmkFpf5N.esm.js → camera-DpPQS_-5.esm.js} +0 -0
- /package/dist/{chunk-DsxENsBR.esm.js → chunk-YGHKo4MY.esm.js} +0 -0
- /package/dist/{displayErrors-BZLX7idb.d.ts → displayErrors-xrg0ejaS.d.ts} +0 -0
- /package/dist/{flowCompletionService-D-3YCHyO.d.ts → flowCompletionService-gxt5reFV.d.ts} +0 -0
- /package/dist/{getBrowser-Dtyt9J_h.esm.js → getBrowser-DCcD7H-M.esm.js} +0 -0
- /package/dist/{platform-Dv7a2fv-.esm.js → platform-DctkySJU.esm.js} +0 -0
- /package/dist/{types-D_QfFKxT.d.ts → types-CIjb0FKu.d.ts} +0 -0
- /package/dist/{warmup-CIj_wEV_.d.ts → warmup-Ckb1hN85.d.ts} +0 -0
- /package/dist/{xstate.esm-Bv55-lJ4.esm.js → xstate.esm-B7FPE6br.esm.js} +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
//#region ../infra/src/providers/browser/BrowserStorageProvider.ts
|
|
2
|
+
/**
|
|
3
|
+
* Browser-based storage provider wrapping localStorage.
|
|
4
|
+
* Handles JSON serialization/deserialization automatically.
|
|
5
|
+
*/
|
|
6
|
+
var BrowserStorageProvider = class {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a value from localStorage.
|
|
9
|
+
* @param key - The storage key
|
|
10
|
+
* @returns The stored value or null if not found
|
|
11
|
+
* @throws Error if stored value is invalid JSON
|
|
12
|
+
*/
|
|
13
|
+
async get(key) {
|
|
14
|
+
try {
|
|
15
|
+
const item = localStorage.getItem(key);
|
|
16
|
+
if (item === null) return null;
|
|
17
|
+
return JSON.parse(item);
|
|
18
|
+
} catch (error) {
|
|
19
|
+
if (error instanceof SyntaxError) throw new Error(`Invalid JSON stored at key "${key}": ${error.message}`);
|
|
20
|
+
throw error;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Stores a value in localStorage.
|
|
25
|
+
* @param key - The storage key
|
|
26
|
+
* @param value - The value to store (will be serialized as JSON)
|
|
27
|
+
* @throws Error if value cannot be serialized or quota is exceeded
|
|
28
|
+
*/
|
|
29
|
+
async set(key, value) {
|
|
30
|
+
try {
|
|
31
|
+
const serialized = JSON.stringify(value);
|
|
32
|
+
localStorage.setItem(key, serialized);
|
|
33
|
+
} catch (error) {
|
|
34
|
+
if ((error instanceof DOMException || error.name === "QuotaExceededError") && error.name === "QuotaExceededError") throw new Error(`Storage quota exceeded for key "${key}"`);
|
|
35
|
+
if (error instanceof TypeError) throw new Error(`Failed to serialize value for key "${key}": ${error.message}`);
|
|
36
|
+
throw error;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Removes a value from localStorage.
|
|
41
|
+
* @param key - The storage key to remove
|
|
42
|
+
*/
|
|
43
|
+
async remove(key) {
|
|
44
|
+
localStorage.removeItem(key);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Clears all values from localStorage.
|
|
48
|
+
*/
|
|
49
|
+
async clear() {
|
|
50
|
+
localStorage.clear();
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
export { BrowserStorageProvider as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-
|
|
1
|
+
import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-DoYDYH1z.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/providers/wasm/WasmUtilProvider.ts
|
|
4
4
|
var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
3
|
-
import { r as fromCallback } from "./xstate.esm-
|
|
4
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
1
|
+
import { t as api } from "./api-aa9Mx20l.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-W91zLpx4.esm.js";
|
|
3
|
+
import { r as fromCallback } from "./xstate.esm-B7FPE6br.esm.js";
|
|
4
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-v7bpbrAk.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/shared/usStates.ts
|
|
7
7
|
const usStates = {
|
package/dist/antifraud.d.ts
CHANGED
package/dist/antifraud.esm.js
CHANGED
|
@@ -1,41 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { a as createActor,
|
|
1
|
+
import "./api-aa9Mx20l.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-W91zLpx4.esm.js";
|
|
3
|
+
import { a as createActor, o as createManager } from "./xstate.esm-B7FPE6br.esm.js";
|
|
4
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-B74mO8vr.esm.js";
|
|
4
5
|
|
|
5
|
-
//#region src/modules/antifraud/antifraudServices.ts
|
|
6
|
-
async function processAntifraud(signal) {
|
|
7
|
-
const res = await api.get(endpoints.processAntifraud, { signal });
|
|
8
|
-
if (!res.ok) throw new Error(`GET ${endpoints.processAntifraud} failed: ${res.status} ${res.statusText}`);
|
|
9
|
-
return res.data;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/modules/antifraud/antifraudStateMachine.ts
|
|
14
|
-
const antifraudMachine = setup({
|
|
15
|
-
types: {
|
|
16
|
-
context: {},
|
|
17
|
-
events: {}
|
|
18
|
-
},
|
|
19
|
-
actors: { processAntifraud: fromPromise(async ({ signal }) => {
|
|
20
|
-
return processAntifraud(signal);
|
|
21
|
-
}) }
|
|
22
|
-
}).createMachine({
|
|
23
|
-
id: "antifraud",
|
|
24
|
-
initial: "idle",
|
|
25
|
-
context: {},
|
|
26
|
-
states: {
|
|
27
|
-
idle: { on: { LOAD: { target: "processing" } } },
|
|
28
|
-
processing: { invoke: {
|
|
29
|
-
id: "processAntifraud",
|
|
30
|
-
src: "processAntifraud",
|
|
31
|
-
onDone: { target: "finished" },
|
|
32
|
-
onError: { target: "finished" }
|
|
33
|
-
} },
|
|
34
|
-
finished: { type: "final" }
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
6
|
//#region src/modules/antifraud/antifraudActor.ts
|
|
40
7
|
function createAntifraudActor() {
|
|
41
8
|
return createActor(antifraudMachine).start();
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as api } from "./api-aa9Mx20l.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-W91zLpx4.esm.js";
|
|
3
|
+
import { i as fromPromise, t as setup } from "./xstate.esm-B7FPE6br.esm.js";
|
|
4
|
+
|
|
5
|
+
//#region src/modules/antifraud/antifraudServices.ts
|
|
6
|
+
async function processAntifraud(signal) {
|
|
7
|
+
const res = await api.get(endpoints.processAntifraud, { signal });
|
|
8
|
+
if (!res.ok) throw new Error(`GET ${endpoints.processAntifraud} failed: ${res.status} ${res.statusText}`);
|
|
9
|
+
return res.data;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/modules/antifraud/antifraudStateMachine.ts
|
|
14
|
+
const antifraudMachine = setup({
|
|
15
|
+
types: {
|
|
16
|
+
context: {},
|
|
17
|
+
events: {}
|
|
18
|
+
},
|
|
19
|
+
actors: { processAntifraud: fromPromise(async ({ signal }) => {
|
|
20
|
+
return processAntifraud(signal);
|
|
21
|
+
}) }
|
|
22
|
+
}).createMachine({
|
|
23
|
+
id: "antifraud",
|
|
24
|
+
initial: "idle",
|
|
25
|
+
context: {},
|
|
26
|
+
states: {
|
|
27
|
+
idle: { on: { LOAD: { target: "processing" } } },
|
|
28
|
+
processing: { invoke: {
|
|
29
|
+
id: "processAntifraud",
|
|
30
|
+
src: "processAntifraud",
|
|
31
|
+
onDone: { target: "finished" },
|
|
32
|
+
onError: { target: "finished" }
|
|
33
|
+
} },
|
|
34
|
+
finished: { type: "final" }
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { antifraudMachine as t };
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./warmup-
|
|
2
|
-
import "./Manager-
|
|
3
|
-
import "./Actor-
|
|
4
|
-
import "./StateMachine-
|
|
5
|
-
import { _ as AuthenticationConfig, b as authenticationMachine, g as createAuthenticationActor, h as CreateAuthenticationActorOptions, m as AuthenticationActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import "./camera-
|
|
7
|
-
import "./types-
|
|
8
|
-
import "./types-
|
|
9
|
-
import "./deepsightService-
|
|
10
|
-
import "./types-
|
|
11
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import "./warmup-Ckb1hN85.js";
|
|
2
|
+
import "./Manager-DcPMRgTm.js";
|
|
3
|
+
import "./Actor-DbWH1K6E.js";
|
|
4
|
+
import "./StateMachine-BBuIgsHT.js";
|
|
5
|
+
import { _ as AuthenticationConfig, b as authenticationMachine, g as createAuthenticationActor, h as CreateAuthenticationActorOptions, m as AuthenticationActor } from "./faceCaptureManagerFactory-P2yy30KU.js";
|
|
6
|
+
import "./camera-DATT31my.js";
|
|
7
|
+
import "./types-CYJ0Ish6.js";
|
|
8
|
+
import "./types-DU8HmI5U.js";
|
|
9
|
+
import "./deepsightService-S-tU77m-.js";
|
|
10
|
+
import "./types-CIjb0FKu.js";
|
|
11
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-DOTo1EYF.js";
|
|
12
12
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import "./BaseWasmProvider-
|
|
2
|
-
import "./WasmUtilProvider-
|
|
3
|
-
import "./api-
|
|
4
|
-
import "./events-
|
|
5
|
-
import "./browserSimulation-
|
|
6
|
-
import "./xstate.esm-
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
16
|
-
import "./
|
|
17
|
-
import "./
|
|
18
|
-
import "./
|
|
19
|
-
import
|
|
1
|
+
import "./BaseWasmProvider-DoYDYH1z.esm.js";
|
|
2
|
+
import "./WasmUtilProvider-mWSXzp7b.esm.js";
|
|
3
|
+
import "./api-aa9Mx20l.esm.js";
|
|
4
|
+
import "./events-W91zLpx4.esm.js";
|
|
5
|
+
import "./browserSimulation-DFqGKQAD.esm.js";
|
|
6
|
+
import "./xstate.esm-B7FPE6br.esm.js";
|
|
7
|
+
import "./faceCaptureManagerFactory-Bspg2Tyf.esm.js";
|
|
8
|
+
import "./BrowserStorageProvider-CXaS5Ooj.esm.js";
|
|
9
|
+
import "./recordingService-CCfxUY7-.esm.js";
|
|
10
|
+
import "./deepsightService-rPGLH8Xp.esm.js";
|
|
11
|
+
import "./camera-DpPQS_-5.esm.js";
|
|
12
|
+
import "./getBrowser-DCcD7H-M.esm.js";
|
|
13
|
+
import "./stats-gFD2351t.esm.js";
|
|
14
|
+
import "./MotionSensorProvider-D90R4qwV.esm.js";
|
|
15
|
+
import "./permissionServices-Cisv73eQ.esm.js";
|
|
16
|
+
import "./platform-DctkySJU.esm.js";
|
|
17
|
+
import "./ITimerCapability-BZO_FsCo.esm.js";
|
|
18
|
+
import "./backCameraStream-D9g2wyil.esm.js";
|
|
19
|
+
import "./getDeviceClass-DBF-ExLR.esm.js";
|
|
20
|
+
import "./faceCaptureSetup-CQevz86q.esm.js";
|
|
21
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DCJ0ArAt.esm.js";
|
|
22
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BBQHippG.esm.js";
|
|
20
23
|
|
|
21
24
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-mWSXzp7b.esm.js";
|
|
2
|
+
import { n as eventModuleNames } from "./events-W91zLpx4.esm.js";
|
|
3
|
+
import { a as createActor } from "./xstate.esm-B7FPE6br.esm.js";
|
|
4
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Bspg2Tyf.esm.js";
|
|
5
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CXaS5Ooj.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DCJ0ArAt.esm.js";
|
|
7
|
+
|
|
8
|
+
//#region src/modules/authentication/authenticationActor.ts
|
|
9
|
+
function createAuthenticationActor(options) {
|
|
10
|
+
const dependencies = options.dependencies ?? {
|
|
11
|
+
storage: new BrowserStorageProvider(),
|
|
12
|
+
getWasmUtil: () => WasmUtilProvider.getInstance()
|
|
13
|
+
};
|
|
14
|
+
return createActor(authenticationMachine, { input: {
|
|
15
|
+
config: options.config,
|
|
16
|
+
dependencies,
|
|
17
|
+
authHint: options.authHint
|
|
18
|
+
} }).start();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/modules/authentication/authenticationManager.ts
|
|
23
|
+
function createAuthenticationManagerFromActor(actor) {
|
|
24
|
+
return createFaceCaptureManagerFromActor(actor, eventModuleNames.authentication);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Creates an authentication manager instance for handling face authentication flow.
|
|
28
|
+
*
|
|
29
|
+
* The authentication manager provides:
|
|
30
|
+
* - State management with statuses: `idle`, `loading`, `tutorial`, `permissions`, `capture`, `finished`, `closed`, `error`
|
|
31
|
+
* - Permission handling with nested states: `idle`, `requesting`, `denied`, `learnMore`
|
|
32
|
+
* - Capture handling with nested states: `initializing`, `startingRecorder`, `recordingActive`, `detecting`, `capturing`, `uploading`, `uploadError`, `success`
|
|
33
|
+
* - Camera stream access when in `capture` state
|
|
34
|
+
* - Detection status feedback during face detection
|
|
35
|
+
* - Attempt tracking with `attemptsRemaining`
|
|
36
|
+
*
|
|
37
|
+
* @param options - Configuration for the authentication actor
|
|
38
|
+
* @param options.config - The authentication module configuration from the flow
|
|
39
|
+
* @param options.authHint - Hint for identifying the user (e.g., phone number, email)
|
|
40
|
+
* @returns A manager instance with state subscription, API methods, and lifecycle controls
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const authManager = createAuthenticationManager({
|
|
45
|
+
* config: authConfig,
|
|
46
|
+
* authHint: 'user@example.com'
|
|
47
|
+
* });
|
|
48
|
+
*
|
|
49
|
+
* authManager.subscribe((state) => {
|
|
50
|
+
* if (state.status === 'capture') {
|
|
51
|
+
* console.log('Camera ready:', state.stream);
|
|
52
|
+
* console.log('Detection status:', state.detectionStatus);
|
|
53
|
+
* }
|
|
54
|
+
* if (state.status === 'finished') {
|
|
55
|
+
* console.log('Authentication successful!');
|
|
56
|
+
* }
|
|
57
|
+
* });
|
|
58
|
+
*
|
|
59
|
+
* authManager.load();
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
function createAuthenticationManager(options) {
|
|
63
|
+
return createFaceCaptureManagerFromActor(createAuthenticationActor(options), eventModuleNames.authentication);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { createAuthenticationManagerFromActor as n, createAuthenticationActor as r, createAuthenticationManager as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { h as CreateAuthenticationActorOptions, m as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
1
|
+
import { t as Manager } from "./Manager-DcPMRgTm.js";
|
|
2
|
+
import { h as CreateAuthenticationActorOptions, m as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager } from "./faceCaptureManagerFactory-P2yy30KU.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
package/dist/{authenticationManager-C7dL_avf.esm.js → authenticationStateMachine-DCJ0ArAt.esm.js}
RENAMED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as getDeviceClass } from "./getDeviceClass-DEzz4cmY.esm.js";
|
|
1
|
+
import { t as api } from "./api-aa9Mx20l.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-W91zLpx4.esm.js";
|
|
3
|
+
import { i as fromPromise, n as assign } from "./xstate.esm-B7FPE6br.esm.js";
|
|
4
|
+
import { v as FACE_ERROR_CODES } from "./recordingService-CCfxUY7-.esm.js";
|
|
5
|
+
import { t as getDeviceClass } from "./getDeviceClass-DBF-ExLR.esm.js";
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-CQevz86q.esm.js";
|
|
8
7
|
|
|
9
8
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
10
9
|
const AUTH_ERROR_MAP = {
|
|
@@ -129,63 +128,4 @@ const _authenticationMachine = faceCaptureMachine.provide({
|
|
|
129
128
|
const authenticationMachine = _authenticationMachine;
|
|
130
129
|
|
|
131
130
|
//#endregion
|
|
132
|
-
|
|
133
|
-
function createAuthenticationActor(options) {
|
|
134
|
-
const dependencies = options.dependencies ?? {
|
|
135
|
-
storage: new BrowserStorageProvider(),
|
|
136
|
-
getWasmUtil: () => WasmUtilProvider.getInstance()
|
|
137
|
-
};
|
|
138
|
-
return createActor(authenticationMachine, { input: {
|
|
139
|
-
config: options.config,
|
|
140
|
-
dependencies,
|
|
141
|
-
authHint: options.authHint
|
|
142
|
-
} }).start();
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
//#endregion
|
|
146
|
-
//#region src/modules/authentication/authenticationManager.ts
|
|
147
|
-
function createAuthenticationManagerFromActor(actor) {
|
|
148
|
-
return createFaceCaptureManagerFromActor(actor, eventModuleNames.authentication);
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Creates an authentication manager instance for handling face authentication flow.
|
|
152
|
-
*
|
|
153
|
-
* The authentication manager provides:
|
|
154
|
-
* - State management with statuses: `idle`, `loading`, `tutorial`, `permissions`, `capture`, `finished`, `closed`, `error`
|
|
155
|
-
* - Permission handling with nested states: `idle`, `requesting`, `denied`, `learnMore`
|
|
156
|
-
* - Capture handling with nested states: `initializing`, `startingRecorder`, `recordingActive`, `detecting`, `capturing`, `uploading`, `uploadError`, `success`
|
|
157
|
-
* - Camera stream access when in `capture` state
|
|
158
|
-
* - Detection status feedback during face detection
|
|
159
|
-
* - Attempt tracking with `attemptsRemaining`
|
|
160
|
-
*
|
|
161
|
-
* @param options - Configuration for the authentication actor
|
|
162
|
-
* @param options.config - The authentication module configuration from the flow
|
|
163
|
-
* @param options.authHint - Hint for identifying the user (e.g., phone number, email)
|
|
164
|
-
* @returns A manager instance with state subscription, API methods, and lifecycle controls
|
|
165
|
-
*
|
|
166
|
-
* @example
|
|
167
|
-
* ```ts
|
|
168
|
-
* const authManager = createAuthenticationManager({
|
|
169
|
-
* config: authConfig,
|
|
170
|
-
* authHint: 'user@example.com'
|
|
171
|
-
* });
|
|
172
|
-
*
|
|
173
|
-
* authManager.subscribe((state) => {
|
|
174
|
-
* if (state.status === 'capture') {
|
|
175
|
-
* console.log('Camera ready:', state.stream);
|
|
176
|
-
* console.log('Detection status:', state.detectionStatus);
|
|
177
|
-
* }
|
|
178
|
-
* if (state.status === 'finished') {
|
|
179
|
-
* console.log('Authentication successful!');
|
|
180
|
-
* }
|
|
181
|
-
* });
|
|
182
|
-
*
|
|
183
|
-
* authManager.load();
|
|
184
|
-
* ```
|
|
185
|
-
*/
|
|
186
|
-
function createAuthenticationManager(options) {
|
|
187
|
-
return createFaceCaptureManagerFromActor(createAuthenticationActor(options), eventModuleNames.authentication);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
//#endregion
|
|
191
|
-
export { authenticationMachine as i, createAuthenticationManagerFromActor as n, createAuthenticationActor as r, createAuthenticationManager as t };
|
|
131
|
+
export { authenticationMachine as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-
|
|
2
|
-
import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-
|
|
3
|
-
import { t as sleep } from "./ITimerCapability-
|
|
1
|
+
import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-DpPQS_-5.esm.js";
|
|
2
|
+
import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-DctkySJU.esm.js";
|
|
3
|
+
import { t as sleep } from "./ITimerCapability-BZO_FsCo.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/internal/camera/backCameraStream.ts
|
|
6
6
|
const BACK_CAMERA_KEYWORDS = [
|
package/dist/camera.d.ts
CHANGED
package/dist/camera.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./camera-
|
|
2
|
-
import "./MotionSensorProvider-
|
|
3
|
-
import { n as requestPermission, t as checkPermission } from "./permissionServices-
|
|
1
|
+
import "./camera-DpPQS_-5.esm.js";
|
|
2
|
+
import "./MotionSensorProvider-D90R4qwV.esm.js";
|
|
3
|
+
import { n as requestPermission, t as checkPermission } from "./permissionServices-Cisv73eQ.esm.js";
|
|
4
4
|
|
|
5
5
|
export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
|