@incodetech/core 0.0.0-dev-20260415-aae94ed → 0.0.0-dev-20260416-64c00e5
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/ae-signature.d.ts +2 -2
- package/dist/authentication.d.ts +4 -4
- package/dist/{authenticationManager-DKH7oRB1.d.ts → authenticationManager-DxWVcbnl.d.ts} +1 -1
- package/dist/consent.d.ts +48 -48
- package/dist/curp-validation.d.ts +2 -2
- package/dist/document-capture.d.ts +74 -74
- package/dist/document-upload.d.ts +44 -44
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybStateMachine-DwBRis0x.esm.js → ekybStateMachine-BfBs85Uj.esm.js} +1 -1
- package/dist/ekyc.d.ts +1 -1
- package/dist/electronic-signature.d.ts +2 -3
- package/dist/email.d.ts +2 -2
- package/dist/{emailManager-DocqJIVa.d.ts → emailManager-DXdv0T1X.d.ts} +1 -1
- package/dist/extensibility.d.ts +8 -8
- package/dist/{faceCaptureManagerFactory-CcdPZa7t.d.ts → faceCaptureManagerFactory-CV5lfQZg.d.ts} +2 -2
- package/dist/flow.d.ts +11 -4
- package/dist/flow.esm.js +1 -1
- package/dist/{flowServices-BHE6Lud4.esm.js → flowServices-BjihIhLr.esm.js} +32 -5
- package/dist/geolocation.d.ts +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/home.d.ts +3 -33
- package/dist/home.esm.js +0 -12
- package/dist/id.d.ts +3 -3
- package/dist/{idCaptureManager-Dk3_NAC1.d.ts → idCaptureManager-BF-9O4pN.d.ts} +2 -2
- package/dist/identity-reuse.d.ts +41 -41
- package/dist/{electronicSignatureManager-BxlFec2P.d.ts → index-D98KKBR4.d.ts} +119 -119
- package/dist/mandatory-consent.d.ts +49 -49
- package/dist/phone.d.ts +2 -2
- package/dist/{phoneManager-DnrUMrya.d.ts → phoneManager-CZkwAnZA.d.ts} +1 -1
- package/dist/qe-signature.d.ts +2 -3
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/{selfieManager-Cpawfivv.d.ts → selfieManager-J9vh9MZ6.d.ts} +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/signature.d.ts +1 -1
- package/dist/{types-DyA9ksX2.d.ts → types-Bk2AoUFA.d.ts} +8 -0
- package/dist/workflow.d.ts +84 -84
- package/dist/workflow.esm.js +2 -2
- package/package.json +1 -1
- package/dist/index--tzjwTVz.d.ts +0 -1
- /package/dist/{Actor-Bvf4Wv1O.d.ts → Actor-Cqaw-2DF.d.ts} +0 -0
- /package/dist/{flowCompletionService-wLXTzf1m.d.ts → flowCompletionService-D1DGDmXn.d.ts} +0 -0
- /package/dist/{types-BPuvIFKx.d.ts → types-DH_kbvQH.d.ts} +0 -0
package/dist/extensibility.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "./warmup-BoNCXpou.js";
|
|
2
2
|
import "./Manager-C1r-74H0.js";
|
|
3
|
-
import { n as createActor } from "./Actor-
|
|
3
|
+
import { n as createActor } from "./Actor-Cqaw-2DF.js";
|
|
4
4
|
import { r as fromPromise } from "./StateMachine-sxIjYRWS.js";
|
|
5
|
-
import { c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, p as BaseWasmProvider, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine } from "./faceCaptureManagerFactory-
|
|
5
|
+
import { c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, p as BaseWasmProvider, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine } from "./faceCaptureManagerFactory-CV5lfQZg.js";
|
|
6
6
|
import "./camera-C1Lz6NFz.js";
|
|
7
7
|
import "./types-DGwsRYfm.js";
|
|
8
|
-
import "./types-
|
|
8
|
+
import "./types-Bk2AoUFA.js";
|
|
9
9
|
import { a as IWasmUtilCapability, o as VirtualCameraCheckOutput, s as WasmUtilConfig, u as IStorageCapability } from "./deepsightService-D8Kbc-41.js";
|
|
10
10
|
import "./types-B-JXmW0H.js";
|
|
11
|
-
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-
|
|
12
|
-
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-
|
|
13
|
-
import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-
|
|
14
|
-
import { C as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-
|
|
15
|
-
import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-
|
|
11
|
+
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-J9vh9MZ6.js";
|
|
12
|
+
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-DxWVcbnl.js";
|
|
13
|
+
import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-DXdv0T1X.js";
|
|
14
|
+
import { C as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-BF-9O4pN.js";
|
|
15
|
+
import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-CZkwAnZA.js";
|
|
16
16
|
|
|
17
17
|
//#region src/modules/authentication/authenticationUploadService.d.ts
|
|
18
18
|
type AuthenticationUploadResponse = {
|
package/dist/{faceCaptureManagerFactory-CcdPZa7t.d.ts → faceCaptureManagerFactory-CV5lfQZg.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as WasmPipeline } from "./warmup-BoNCXpou.js";
|
|
2
2
|
import { t as Manager } from "./Manager-C1r-74H0.js";
|
|
3
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
3
|
+
import { t as ActorRefFrom } from "./Actor-Cqaw-2DF.js";
|
|
4
4
|
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-sxIjYRWS.js";
|
|
5
5
|
import { t as CameraStream } from "./camera-C1Lz6NFz.js";
|
|
6
|
-
import { i as FlowModuleConfig, n as Flow } from "./types-
|
|
6
|
+
import { i as FlowModuleConfig, n as Flow } from "./types-Bk2AoUFA.js";
|
|
7
7
|
import { a as IWasmUtilCapability, c as IMLProviderCapability, d as IRecordingCapability, i as IncodeCanvas, l as MLProviderConfig, r as StreamCanvasCapture, t as DeepsightService, u as IStorageCapability } from "./deepsightService-D8Kbc-41.js";
|
|
8
8
|
import { n as PermissionStatus, t as PermissionResult } from "./types-B-JXmW0H.js";
|
|
9
9
|
|
package/dist/flow.d.ts
CHANGED
|
@@ -3,14 +3,18 @@ import { t as Manager } from "./Manager-C1r-74H0.js";
|
|
|
3
3
|
import { t as AnyStateMachine } from "./StateMachine-sxIjYRWS.js";
|
|
4
4
|
import "./camera-C1Lz6NFz.js";
|
|
5
5
|
import "./types-DGwsRYfm.js";
|
|
6
|
-
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-
|
|
7
|
-
import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-
|
|
8
|
-
import { t as ModuleRegistry } from "./types-
|
|
6
|
+
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-Bk2AoUFA.js";
|
|
7
|
+
import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-D1DGDmXn.js";
|
|
8
|
+
import { t as ModuleRegistry } from "./types-DH_kbvQH.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/flow/flowUtils.d.ts
|
|
11
11
|
type NormalizeFlowModulesOptions = {
|
|
12
12
|
enableHome?: boolean;
|
|
13
|
+
isDesktop?: boolean;
|
|
14
|
+
authHint?: string;
|
|
15
|
+
lang?: string;
|
|
13
16
|
};
|
|
17
|
+
type FlowForNormalization = Pick<Flow, 'flowId' | 'flowModules' | 'redirectDesktopToMobile' | 'disableSmsOption' | 'addContinueToDesktop' | 'qrPhishingResistance'>;
|
|
14
18
|
/**
|
|
15
19
|
* Analyzes a flow configuration and returns the WASM pipelines needed.
|
|
16
20
|
* Use this to conditionally warmup WASM only when required by the flow.
|
|
@@ -36,11 +40,14 @@ declare function getRequiredWasmPipelines(flow: Flow): WasmPipeline[];
|
|
|
36
40
|
* - thirdId is deprecated and ignored; the flow continues to the next step
|
|
37
41
|
* - Bare ID following TUTORIAL_ID is dropped (already merged)
|
|
38
42
|
*/
|
|
39
|
-
declare function normalizeFlowModules(
|
|
43
|
+
declare function normalizeFlowModules(flow: FlowForNormalization, options?: NormalizeFlowModulesOptions): FlowModule[];
|
|
40
44
|
//#endregion
|
|
41
45
|
//#region src/modules/flow/flowServices.d.ts
|
|
42
46
|
type GetFlowOptions = {
|
|
43
47
|
enableHome?: boolean;
|
|
48
|
+
isDesktop?: boolean;
|
|
49
|
+
authHint?: string;
|
|
50
|
+
lang?: string;
|
|
44
51
|
};
|
|
45
52
|
type GetFlow = (signal: AbortSignal, options?: GetFlowOptions) => Promise<Flow>;
|
|
46
53
|
declare const getFlow: GetFlow;
|
package/dist/flow.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import "./session-4kX3TYAC.esm.js";
|
|
|
4
4
|
import "./BrowserEnvironmentProvider-D7IR7V-D.esm.js";
|
|
5
5
|
import "./browserSimulation-UTYyQOiB.esm.js";
|
|
6
6
|
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-BlgyVBVv.esm.js";
|
|
7
|
-
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-
|
|
7
|
+
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-BjihIhLr.esm.js";
|
|
8
8
|
import { t as getFinishStatus } from "./flowCompletionService-BoRh9z5O.esm.js";
|
|
9
9
|
import { t as runChildModule } from "./runChildModule-CPESMGyI.esm.js";
|
|
10
10
|
|
|
@@ -44,8 +44,14 @@ function getRequiredWasmPipelines(flow) {
|
|
|
44
44
|
* - thirdId is deprecated and ignored; the flow continues to the next step
|
|
45
45
|
* - Bare ID following TUTORIAL_ID is dropped (already merged)
|
|
46
46
|
*/
|
|
47
|
-
function normalizeFlowModules(
|
|
48
|
-
|
|
47
|
+
function normalizeFlowModules(flow, options = {}) {
|
|
48
|
+
let modules = normalizeIdModules(flow.flowModules);
|
|
49
|
+
if (options.enableHome === true && !hasModule(modules, "HOME")) modules = addHome(modules);
|
|
50
|
+
if (shouldInjectRedirect(flow, modules, options)) modules = addRedirect(flow, modules, options);
|
|
51
|
+
return modules;
|
|
52
|
+
}
|
|
53
|
+
function normalizeIdModules(modules) {
|
|
54
|
+
return modules.flatMap((module, idx, arr) => {
|
|
49
55
|
if (module.key === "TUTORIAL_ID") {
|
|
50
56
|
const idConfig = module.configuration;
|
|
51
57
|
const result = [{
|
|
@@ -65,11 +71,32 @@ function normalizeFlowModules(modules, options = {}) {
|
|
|
65
71
|
if (module.key === "ID" && prev?.key === "TUTORIAL_ID") return [];
|
|
66
72
|
return [module];
|
|
67
73
|
});
|
|
68
|
-
|
|
74
|
+
}
|
|
75
|
+
function addHome(modules) {
|
|
69
76
|
return [{
|
|
70
77
|
key: "HOME",
|
|
71
78
|
configuration: {}
|
|
72
|
-
}, ...
|
|
79
|
+
}, ...modules];
|
|
80
|
+
}
|
|
81
|
+
function shouldInjectRedirect(flow, modules, options) {
|
|
82
|
+
return options.isDesktop === true && flow.redirectDesktopToMobile === true && !hasModule(modules, "REDIRECT_TO_MOBILE");
|
|
83
|
+
}
|
|
84
|
+
function addRedirect(flow, modules, options) {
|
|
85
|
+
const modulesWithoutHome = modules.filter((module) => module.key !== "HOME");
|
|
86
|
+
return [{
|
|
87
|
+
key: "REDIRECT_TO_MOBILE",
|
|
88
|
+
configuration: {
|
|
89
|
+
flowId: flow.flowId,
|
|
90
|
+
disableSmsOption: flow.disableSmsOption ?? false,
|
|
91
|
+
addContinueToDesktop: flow.addContinueToDesktop ?? false,
|
|
92
|
+
qrPhishingResistance: flow.qrPhishingResistance ?? false,
|
|
93
|
+
authHint: options.authHint,
|
|
94
|
+
lang: options.lang
|
|
95
|
+
}
|
|
96
|
+
}, ...modulesWithoutHome];
|
|
97
|
+
}
|
|
98
|
+
function hasModule(modules, key) {
|
|
99
|
+
return modules.some((module) => module.key === key);
|
|
73
100
|
}
|
|
74
101
|
|
|
75
102
|
//#endregion
|
|
@@ -122,7 +149,7 @@ const getFlow = async (signal, options = {}) => {
|
|
|
122
149
|
if (!res.ok) throw new Error(`GET /flow failed: ${res.status} ${res.statusText}`);
|
|
123
150
|
const data = res.data;
|
|
124
151
|
const flow = prependMandatoryConsent(data);
|
|
125
|
-
const normalizedModules = normalizeFlowModules(flow
|
|
152
|
+
const normalizedModules = normalizeFlowModules(flow, options);
|
|
126
153
|
return {
|
|
127
154
|
...flow,
|
|
128
155
|
flowModules: normalizedModules
|
package/dist/geolocation.d.ts
CHANGED
package/dist/home.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-C1r-74H0.js";
|
|
2
2
|
import "./camera-C1Lz6NFz.js";
|
|
3
3
|
import "./types-DGwsRYfm.js";
|
|
4
|
-
import { t as EmptyConfig } from "./types-
|
|
4
|
+
import { t as EmptyConfig } from "./types-Bk2AoUFA.js";
|
|
5
5
|
import * as xstate627 from "xstate";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/home/types.d.ts
|
|
@@ -14,20 +14,15 @@ type HomeIdleState = {
|
|
|
14
14
|
type HomeMainState = {
|
|
15
15
|
status: 'main';
|
|
16
16
|
};
|
|
17
|
-
type HomeSettingsState = {
|
|
18
|
-
status: 'settings';
|
|
19
|
-
};
|
|
20
17
|
type HomeFinishedState = {
|
|
21
18
|
status: 'finished';
|
|
22
19
|
};
|
|
23
|
-
type HomeState = HomeIdleState | HomeMainState |
|
|
20
|
+
type HomeState = HomeIdleState | HomeMainState | HomeFinishedState;
|
|
24
21
|
declare function createHomeManager(options?: {
|
|
25
22
|
config?: HomeConfig;
|
|
26
23
|
}): Manager<HomeState> & {
|
|
27
24
|
load(): void;
|
|
28
25
|
complete(): void;
|
|
29
|
-
openSettings(): void;
|
|
30
|
-
closeSettings(): void;
|
|
31
26
|
reset(): void;
|
|
32
27
|
};
|
|
33
28
|
type HomeManager = ReturnType<typeof createHomeManager>;
|
|
@@ -45,11 +40,7 @@ declare const homeMachine: xstate627.StateMachine<HomeContext, {
|
|
|
45
40
|
type: "COMPLETE";
|
|
46
41
|
} | {
|
|
47
42
|
type: "RESET";
|
|
48
|
-
} | {
|
|
49
|
-
type: "OPEN_SETTINGS";
|
|
50
|
-
} | {
|
|
51
|
-
type: "CLOSE_SETTINGS";
|
|
52
|
-
}, {}, never, never, never, never, "idle" | "finished" | "main" | "settings", string, HomeInput, xstate627.NonReducibleUnknown, xstate627.EventObject, xstate627.MetaObject, {
|
|
43
|
+
}, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate627.NonReducibleUnknown, xstate627.EventObject, xstate627.MetaObject, {
|
|
53
44
|
readonly id: "home";
|
|
54
45
|
readonly initial: "idle";
|
|
55
46
|
readonly context: ({
|
|
@@ -71,20 +62,12 @@ declare const homeMachine: xstate627.StateMachine<HomeContext, {
|
|
|
71
62
|
type: "COMPLETE";
|
|
72
63
|
} | {
|
|
73
64
|
type: "RESET";
|
|
74
|
-
} | {
|
|
75
|
-
type: "OPEN_SETTINGS";
|
|
76
|
-
} | {
|
|
77
|
-
type: "CLOSE_SETTINGS";
|
|
78
65
|
}, Record<string, xstate627.AnyActorRef | undefined>, xstate627.StateValue, string, unknown, any, any>, {
|
|
79
66
|
type: "LOAD";
|
|
80
67
|
} | {
|
|
81
68
|
type: "COMPLETE";
|
|
82
69
|
} | {
|
|
83
70
|
type: "RESET";
|
|
84
|
-
} | {
|
|
85
|
-
type: "OPEN_SETTINGS";
|
|
86
|
-
} | {
|
|
87
|
-
type: "CLOSE_SETTINGS";
|
|
88
71
|
}, xstate627.AnyEventObject>;
|
|
89
72
|
}) => {
|
|
90
73
|
config: EmptyConfig;
|
|
@@ -102,19 +85,6 @@ declare const homeMachine: xstate627.StateMachine<HomeContext, {
|
|
|
102
85
|
readonly COMPLETE: {
|
|
103
86
|
readonly target: "finished";
|
|
104
87
|
};
|
|
105
|
-
readonly OPEN_SETTINGS: {
|
|
106
|
-
readonly target: "settings";
|
|
107
|
-
};
|
|
108
|
-
readonly RESET: {
|
|
109
|
-
readonly target: "idle";
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
readonly settings: {
|
|
114
|
-
readonly on: {
|
|
115
|
-
readonly CLOSE_SETTINGS: {
|
|
116
|
-
readonly target: "main";
|
|
117
|
-
};
|
|
118
88
|
readonly RESET: {
|
|
119
89
|
readonly target: "idle";
|
|
120
90
|
};
|
package/dist/home.esm.js
CHANGED
|
@@ -15,11 +15,6 @@ const homeMachine = setup({ types: {
|
|
|
15
15
|
idle: { on: { LOAD: { target: "main" } } },
|
|
16
16
|
main: { on: {
|
|
17
17
|
COMPLETE: { target: "finished" },
|
|
18
|
-
OPEN_SETTINGS: { target: "settings" },
|
|
19
|
-
RESET: { target: "idle" }
|
|
20
|
-
} },
|
|
21
|
-
settings: { on: {
|
|
22
|
-
CLOSE_SETTINGS: { target: "main" },
|
|
23
18
|
RESET: { target: "idle" }
|
|
24
19
|
} },
|
|
25
20
|
finished: { type: "final" }
|
|
@@ -37,7 +32,6 @@ function createHomeActor(options = {}) {
|
|
|
37
32
|
function mapState(snapshot) {
|
|
38
33
|
const typedSnapshot = snapshot;
|
|
39
34
|
if (typedSnapshot.matches("main")) return { status: "main" };
|
|
40
|
-
if (typedSnapshot.matches("settings")) return { status: "settings" };
|
|
41
35
|
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
42
36
|
return { status: "idle" };
|
|
43
37
|
}
|
|
@@ -49,12 +43,6 @@ function createApi({ actor }) {
|
|
|
49
43
|
complete() {
|
|
50
44
|
actor.send({ type: "COMPLETE" });
|
|
51
45
|
},
|
|
52
|
-
openSettings() {
|
|
53
|
-
actor.send({ type: "OPEN_SETTINGS" });
|
|
54
|
-
},
|
|
55
|
-
closeSettings() {
|
|
56
|
-
actor.send({ type: "CLOSE_SETTINGS" });
|
|
57
|
-
},
|
|
58
46
|
reset() {
|
|
59
47
|
actor.send({ type: "RESET" });
|
|
60
48
|
}
|
package/dist/id.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./warmup-BoNCXpou.js";
|
|
2
2
|
import "./Manager-C1r-74H0.js";
|
|
3
|
-
import "./Actor-
|
|
3
|
+
import "./Actor-Cqaw-2DF.js";
|
|
4
4
|
import "./StateMachine-sxIjYRWS.js";
|
|
5
5
|
import { t as CameraStream } from "./camera-C1Lz6NFz.js";
|
|
6
6
|
import "./types-DGwsRYfm.js";
|
|
7
|
-
import "./types-
|
|
7
|
+
import "./types-Bk2AoUFA.js";
|
|
8
8
|
import "./deepsightService-D8Kbc-41.js";
|
|
9
9
|
import { n as PermissionStatus, t as PermissionResult } from "./types-B-JXmW0H.js";
|
|
10
|
-
import { A as IdCaptureDependencies, B as RecordingSession, C as CaptureIdResponse, D as ID_ERROR_CODES, E as DetectionStatus, F as IdCaptureThresholds, H as DetectionOrientation, I as IdDocumentType, L as IdError, M as IdCaptureGeometry, N as IdCaptureInput, O as IdCaptureConfig, P as IdCaptureMode, R as IdErrorCode, S as idCaptureMachine, T as DetectionArea, U as IdCaptureSettings, V as UploadIdResponse, _ as validateUploadResponse, a as IdCaptureInitResult, b as createIdCaptureActor, c as UploadIdImageParams, d as preloadIdRecordingProvider, f as processId, g as uploadIdImage, h as stopStream, j as IdCaptureEvent, k as IdCaptureContext, l as ValidationError, m as stopRecording, n as IdCaptureState, o as InitializeIdCaptureParams, p as startRecordingSession, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as initializeIdCapture, v as CreateIdCaptureActorOptions, w as CapturedImage, x as IdCaptureMachine, y as IdCaptureActor, z as IdFlowStep } from "./idCaptureManager-
|
|
10
|
+
import { A as IdCaptureDependencies, B as RecordingSession, C as CaptureIdResponse, D as ID_ERROR_CODES, E as DetectionStatus, F as IdCaptureThresholds, H as DetectionOrientation, I as IdDocumentType, L as IdError, M as IdCaptureGeometry, N as IdCaptureInput, O as IdCaptureConfig, P as IdCaptureMode, R as IdErrorCode, S as idCaptureMachine, T as DetectionArea, U as IdCaptureSettings, V as UploadIdResponse, _ as validateUploadResponse, a as IdCaptureInitResult, b as createIdCaptureActor, c as UploadIdImageParams, d as preloadIdRecordingProvider, f as processId, g as uploadIdImage, h as stopStream, j as IdCaptureEvent, k as IdCaptureContext, l as ValidationError, m as stopRecording, n as IdCaptureState, o as InitializeIdCaptureParams, p as startRecordingSession, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as initializeIdCapture, v as CreateIdCaptureActorOptions, w as CapturedImage, x as IdCaptureMachine, y as IdCaptureActor, z as IdFlowStep } from "./idCaptureManager-BF-9O4pN.js";
|
|
11
11
|
export { CameraStream, CaptureIdResponse, CapturedImage, type CreateIdCaptureActorOptions, DetectionArea, DetectionOrientation, DetectionStatus, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, type IdCaptureContext, IdCaptureDependencies, type IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, type IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, PermissionResult, PermissionStatus, RecordingSession, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-C1r-74H0.js";
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-Cqaw-2DF.js";
|
|
3
3
|
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-sxIjYRWS.js";
|
|
4
4
|
import { t as CameraStream } from "./camera-C1Lz6NFz.js";
|
|
5
|
-
import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-
|
|
5
|
+
import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-Bk2AoUFA.js";
|
|
6
6
|
import { c as IMLProviderCapability, d as IRecordingCapability, f as RecordingConnection, i as IncodeCanvas, l as MLProviderConfig, n as IMotionSensorCapability, r as StreamCanvasCapture, t as DeepsightService, u as IStorageCapability } from "./deepsightService-D8Kbc-41.js";
|
|
7
7
|
import { n as PermissionStatus, t as PermissionResult } from "./types-B-JXmW0H.js";
|
|
8
8
|
|
package/dist/identity-reuse.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-C1r-74H0.js";
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
3
|
-
import * as
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-Cqaw-2DF.js";
|
|
3
|
+
import * as xstate67 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/identity-reuse/types.d.ts
|
|
6
6
|
|
|
@@ -32,7 +32,7 @@ type IdentityReuseContext = {
|
|
|
32
32
|
type IdentityReuseInput = {
|
|
33
33
|
config: IdentityReuseConfig;
|
|
34
34
|
};
|
|
35
|
-
declare const identityReuseMachine:
|
|
35
|
+
declare const identityReuseMachine: xstate67.StateMachine<IdentityReuseContext, {
|
|
36
36
|
type: "LOAD";
|
|
37
37
|
} | {
|
|
38
38
|
type: "START_SELECTION";
|
|
@@ -48,49 +48,49 @@ declare const identityReuseMachine: xstate393.StateMachine<IdentityReuseContext,
|
|
|
48
48
|
} | {
|
|
49
49
|
type: "RETRY";
|
|
50
50
|
}, {
|
|
51
|
-
[x: string]:
|
|
52
|
-
},
|
|
51
|
+
[x: string]: xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<FetchCandidatesResponse, void, xstate67.EventObject>> | xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<SubmitResponse, void, xstate67.EventObject>> | undefined;
|
|
52
|
+
}, xstate67.Values<{
|
|
53
53
|
fetchCandidates: {
|
|
54
54
|
src: "fetchCandidates";
|
|
55
|
-
logic:
|
|
55
|
+
logic: xstate67.PromiseActorLogic<FetchCandidatesResponse, void, xstate67.EventObject>;
|
|
56
56
|
id: string | undefined;
|
|
57
57
|
};
|
|
58
58
|
submitContinue: {
|
|
59
59
|
src: "submitContinue";
|
|
60
|
-
logic:
|
|
60
|
+
logic: xstate67.PromiseActorLogic<SubmitResponse, void, xstate67.EventObject>;
|
|
61
61
|
id: string | undefined;
|
|
62
62
|
};
|
|
63
63
|
submitSkip: {
|
|
64
64
|
src: "submitSkip";
|
|
65
|
-
logic:
|
|
65
|
+
logic: xstate67.PromiseActorLogic<SubmitResponse, void, xstate67.EventObject>;
|
|
66
66
|
id: string | undefined;
|
|
67
67
|
};
|
|
68
|
-
}>,
|
|
68
|
+
}>, xstate67.Values<{
|
|
69
69
|
setError: {
|
|
70
70
|
type: "setError";
|
|
71
|
-
params:
|
|
71
|
+
params: xstate67.NonReducibleUnknown;
|
|
72
72
|
};
|
|
73
73
|
clearError: {
|
|
74
74
|
type: "clearError";
|
|
75
|
-
params:
|
|
75
|
+
params: xstate67.NonReducibleUnknown;
|
|
76
76
|
};
|
|
77
77
|
setCandidates: {
|
|
78
78
|
type: "setCandidates";
|
|
79
|
-
params:
|
|
79
|
+
params: xstate67.NonReducibleUnknown;
|
|
80
80
|
};
|
|
81
81
|
setSelectedCandidate: {
|
|
82
82
|
type: "setSelectedCandidate";
|
|
83
|
-
params:
|
|
83
|
+
params: xstate67.NonReducibleUnknown;
|
|
84
84
|
};
|
|
85
85
|
autoSelectSingleCandidate: {
|
|
86
86
|
type: "autoSelectSingleCandidate";
|
|
87
|
-
params:
|
|
87
|
+
params: xstate67.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
89
|
clearSelection: {
|
|
90
90
|
type: "clearSelection";
|
|
91
|
-
params:
|
|
91
|
+
params: xstate67.NonReducibleUnknown;
|
|
92
92
|
};
|
|
93
|
-
}>,
|
|
93
|
+
}>, xstate67.Values<{
|
|
94
94
|
hasMultipleCandidates: {
|
|
95
95
|
type: "hasMultipleCandidates";
|
|
96
96
|
params: unknown;
|
|
@@ -105,7 +105,7 @@ declare const identityReuseMachine: xstate393.StateMachine<IdentityReuseContext,
|
|
|
105
105
|
};
|
|
106
106
|
}>, never, "error" | "idle" | "finished" | "loading" | "submitContinue" | "submitSkip" | "oneCandidateFound" | "noCandidatesFound" | {
|
|
107
107
|
multiCandidatesFound: "noCandidateSelected" | "choosingCandidate" | "candidateSelected";
|
|
108
|
-
}, string, IdentityReuseInput,
|
|
108
|
+
}, string, IdentityReuseInput, xstate67.NonReducibleUnknown, xstate67.EventObject, xstate67.MetaObject, {
|
|
109
109
|
readonly id: "identityReuse";
|
|
110
110
|
readonly initial: "idle";
|
|
111
111
|
readonly context: ({
|
|
@@ -114,75 +114,75 @@ declare const identityReuseMachine: xstate393.StateMachine<IdentityReuseContext,
|
|
|
114
114
|
spawn: {
|
|
115
115
|
<TSrc extends "fetchCandidates" | "submitContinue" | "submitSkip">(logic: TSrc, ...[options]: ({
|
|
116
116
|
src: "fetchCandidates";
|
|
117
|
-
logic:
|
|
117
|
+
logic: xstate67.PromiseActorLogic<FetchCandidatesResponse, void, xstate67.EventObject>;
|
|
118
118
|
id: string | undefined;
|
|
119
119
|
} extends infer T ? T extends {
|
|
120
120
|
src: "fetchCandidates";
|
|
121
|
-
logic:
|
|
121
|
+
logic: xstate67.PromiseActorLogic<FetchCandidatesResponse, void, xstate67.EventObject>;
|
|
122
122
|
id: string | undefined;
|
|
123
123
|
} ? T extends {
|
|
124
124
|
src: TSrc;
|
|
125
|
-
} ?
|
|
125
|
+
} ? xstate67.ConditionalRequired<[options?: ({
|
|
126
126
|
id?: T["id"] | undefined;
|
|
127
127
|
systemId?: string;
|
|
128
|
-
input?:
|
|
128
|
+
input?: xstate67.InputFrom<T["logic"]> | undefined;
|
|
129
129
|
syncSnapshot?: boolean;
|
|
130
|
-
} & { [K in
|
|
130
|
+
} & { [K in xstate67.RequiredActorOptions<T>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
131
131
|
src: "submitContinue";
|
|
132
|
-
logic:
|
|
132
|
+
logic: xstate67.PromiseActorLogic<SubmitResponse, void, xstate67.EventObject>;
|
|
133
133
|
id: string | undefined;
|
|
134
134
|
} extends infer T_1 ? T_1 extends {
|
|
135
135
|
src: "submitContinue";
|
|
136
|
-
logic:
|
|
136
|
+
logic: xstate67.PromiseActorLogic<SubmitResponse, void, xstate67.EventObject>;
|
|
137
137
|
id: string | undefined;
|
|
138
138
|
} ? T_1 extends {
|
|
139
139
|
src: TSrc;
|
|
140
|
-
} ?
|
|
140
|
+
} ? xstate67.ConditionalRequired<[options?: ({
|
|
141
141
|
id?: T_1["id"] | undefined;
|
|
142
142
|
systemId?: string;
|
|
143
|
-
input?:
|
|
143
|
+
input?: xstate67.InputFrom<T_1["logic"]> | undefined;
|
|
144
144
|
syncSnapshot?: boolean;
|
|
145
|
-
} & { [K_1 in
|
|
145
|
+
} & { [K_1 in xstate67.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
146
146
|
src: "submitSkip";
|
|
147
|
-
logic:
|
|
147
|
+
logic: xstate67.PromiseActorLogic<SubmitResponse, void, xstate67.EventObject>;
|
|
148
148
|
id: string | undefined;
|
|
149
149
|
} extends infer T_2 ? T_2 extends {
|
|
150
150
|
src: "submitSkip";
|
|
151
|
-
logic:
|
|
151
|
+
logic: xstate67.PromiseActorLogic<SubmitResponse, void, xstate67.EventObject>;
|
|
152
152
|
id: string | undefined;
|
|
153
153
|
} ? T_2 extends {
|
|
154
154
|
src: TSrc;
|
|
155
|
-
} ?
|
|
155
|
+
} ? xstate67.ConditionalRequired<[options?: ({
|
|
156
156
|
id?: T_2["id"] | undefined;
|
|
157
157
|
systemId?: string;
|
|
158
|
-
input?:
|
|
158
|
+
input?: xstate67.InputFrom<T_2["logic"]> | undefined;
|
|
159
159
|
syncSnapshot?: boolean;
|
|
160
|
-
} & { [K_2 in
|
|
160
|
+
} & { [K_2 in xstate67.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T_2>>> : never : never : never)): xstate67.ActorRefFromLogic<xstate67.GetConcreteByKey<xstate67.Values<{
|
|
161
161
|
fetchCandidates: {
|
|
162
162
|
src: "fetchCandidates";
|
|
163
|
-
logic:
|
|
163
|
+
logic: xstate67.PromiseActorLogic<FetchCandidatesResponse, void, xstate67.EventObject>;
|
|
164
164
|
id: string | undefined;
|
|
165
165
|
};
|
|
166
166
|
submitContinue: {
|
|
167
167
|
src: "submitContinue";
|
|
168
|
-
logic:
|
|
168
|
+
logic: xstate67.PromiseActorLogic<SubmitResponse, void, xstate67.EventObject>;
|
|
169
169
|
id: string | undefined;
|
|
170
170
|
};
|
|
171
171
|
submitSkip: {
|
|
172
172
|
src: "submitSkip";
|
|
173
|
-
logic:
|
|
173
|
+
logic: xstate67.PromiseActorLogic<SubmitResponse, void, xstate67.EventObject>;
|
|
174
174
|
id: string | undefined;
|
|
175
175
|
};
|
|
176
176
|
}>, "src", TSrc>["logic"]>;
|
|
177
|
-
<TLogic extends
|
|
177
|
+
<TLogic extends xstate67.AnyActorLogic>(src: TLogic, ...[options]: xstate67.ConditionalRequired<[options?: ({
|
|
178
178
|
id?: never;
|
|
179
179
|
systemId?: string;
|
|
180
|
-
input?:
|
|
180
|
+
input?: xstate67.InputFrom<TLogic> | undefined;
|
|
181
181
|
syncSnapshot?: boolean;
|
|
182
|
-
} & { [K in
|
|
182
|
+
} & { [K in xstate67.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredLogicInput<TLogic>>>): xstate67.ActorRefFromLogic<TLogic>;
|
|
183
183
|
};
|
|
184
184
|
input: IdentityReuseInput;
|
|
185
|
-
self:
|
|
185
|
+
self: xstate67.ActorRef<xstate67.MachineSnapshot<IdentityReuseContext, {
|
|
186
186
|
type: "LOAD";
|
|
187
187
|
} | {
|
|
188
188
|
type: "START_SELECTION";
|
|
@@ -197,7 +197,7 @@ declare const identityReuseMachine: xstate393.StateMachine<IdentityReuseContext,
|
|
|
197
197
|
type: "SKIP";
|
|
198
198
|
} | {
|
|
199
199
|
type: "RETRY";
|
|
200
|
-
}, Record<string,
|
|
200
|
+
}, Record<string, xstate67.AnyActorRef | undefined>, xstate67.StateValue, string, unknown, any, any>, {
|
|
201
201
|
type: "LOAD";
|
|
202
202
|
} | {
|
|
203
203
|
type: "START_SELECTION";
|
|
@@ -212,7 +212,7 @@ declare const identityReuseMachine: xstate393.StateMachine<IdentityReuseContext,
|
|
|
212
212
|
type: "SKIP";
|
|
213
213
|
} | {
|
|
214
214
|
type: "RETRY";
|
|
215
|
-
},
|
|
215
|
+
}, xstate67.AnyEventObject>;
|
|
216
216
|
}) => {
|
|
217
217
|
config: IdentityReuseConfig;
|
|
218
218
|
currentOrganizationName: undefined;
|