@incodetech/core 2.1.0-rc.0 → 2.1.0-rc.1
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/{WasmUtilProvider-CiEN7Gjn.esm.js → WasmUtilProvider-BKWm8rSA.esm.js} +19 -0
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +8 -8
- package/dist/{authenticationManager-ZNotsWnC.esm.js → authenticationManager-BlR6mSaG.esm.js} +3 -3
- package/dist/{authenticationManager-CIVY80H9.d.ts → authenticationManager-CaiQbp-q.d.ts} +1 -1
- package/dist/{authenticationStateMachine-DksVbF_H.esm.js → authenticationStateMachine-DkcGUMw5.esm.js} +2 -2
- package/dist/camera.esm.js +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-BLd51QiW.d.ts → consentManager-Cg5Sk2tv.d.ts} +53 -53
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-BnieFXuG.d.ts → cpfOcrManager-Dg1s_TY5.d.ts} +17 -17
- package/dist/{deepsightLoader-65k1Appi.esm.js → deepsightLoader-8tnddNx-.esm.js} +1 -1
- package/dist/{deepsightService-B7ShOkWL.d.ts → deepsightService-Dh5P-hLf.d.ts} +5 -0
- package/dist/document-capture.d.ts +222 -222
- package/dist/document-capture.esm.js +4 -4
- package/dist/document-upload.d.ts +43 -43
- package/dist/{documentCaptureStateMachine-WYV1r9le.esm.js → documentCaptureStateMachine-CUTUzUw_.esm.js} +2 -2
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-aYixw2sL.esm.js → ekybStateMachine-klc-AImJ.esm.js} +1 -1
- package/dist/extensibility.d.ts +18 -9
- package/dist/extensibility.esm.js +13 -13
- package/dist/face-match.d.ts +0 -11
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureManagerFactory-C_hRHx8a.d.ts → faceCaptureManagerFactory-CjdBUS6s.d.ts} +14 -7
- package/dist/{faceCaptureManagerFactory-kqbUqtrr.esm.js → faceCaptureManagerFactory-ej2j1LMr.esm.js} +1 -1
- package/dist/{faceCaptureSetup-CtvHWd3x.esm.js → faceCaptureSetup-B9t6bYze.esm.js} +3 -3
- package/dist/{faceMatchStateMachine-DdGXUBnx.esm.js → faceMatchStateMachine-DeXXzSuz.esm.js} +6 -4
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +2 -9
- package/dist/{flowServices-BTuHLHVr.esm.js → flowServices-ChgTNggJ.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +52 -52
- package/dist/id-verification.d.ts +25 -25
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +41 -8
- package/dist/{idCaptureManager-D-QYESvF.d.ts → idCaptureManager-ChCNmgBj.d.ts} +13 -7
- package/dist/{idCaptureManager-DGVv5l1_.esm.js → idCaptureManager-D3pwWutw.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-DHi7HydI.esm.js → idCaptureStateMachine-B3AiDIsT.esm.js} +6 -6
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-DwLtVzUn.d.ts → identityReuseManager-Cww-NDtd.d.ts} +34 -34
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-KfIlURRY.d.ts → mandatoryConsentManager-Dq6WiOZh.d.ts} +50 -50
- package/dist/{permissionGuards-C1ispV96.esm.js → permissionGuards-D0wGddy7.esm.js} +1 -1
- package/dist/{permissionServices-CG3bMSfG.esm.js → permissionServices-Doec4X5L.esm.js} +1 -1
- package/dist/{recordingService-Bn9EdCmz.esm.js → recordingService-yRw7hfzU.esm.js} +2 -2
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +34 -9
- package/dist/{selfieManager-BjCoKRy0.esm.js → selfieManager-BNuTIGAz.esm.js} +3 -3
- package/dist/{selfieManager-dUbKRzOh.d.ts → selfieManager-C2y_t6DG.d.ts} +1 -1
- package/dist/{selfieStateMachine-b4F2q9zw.esm.js → selfieStateMachine-Bv99bZJE.esm.js} +2 -2
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-B8H5MsXM.esm.js → sessionInitializer-DRB-hgbV.esm.js} +1 -1
- package/dist/{setup-BbkprdVv.d.ts → setup-BwCluiw3.d.ts} +29 -0
- package/dist/{setup-BqEfrdja.esm.js → setup-CUO4mErT.esm.js} +16 -4
- package/dist/trust-graph.d.ts +2 -2
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +3 -3
- package/dist/workflow.d.ts +88 -95
- package/dist/workflow.esm.js +27 -53
- package/package.json +1 -1
package/dist/{idCaptureStateMachine-DHi7HydI.esm.js → idCaptureStateMachine-B3AiDIsT.esm.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { d as IdCaptureModelType, i as mlWasmJSApi_default, n as BaseWasmProvider, u as WasmPipelineType } from "./WasmUtilProvider-
|
|
1
|
+
import { d as IdCaptureModelType, i as mlWasmJSApi_default, n as BaseWasmProvider, u as WasmPipelineType } from "./WasmUtilProvider-BKWm8rSA.esm.js";
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-DhNc_x02.esm.js";
|
|
3
3
|
import { r as getToken, t as api } from "./api-CESGtpbH.esm.js";
|
|
4
4
|
import { S as revokeObjectURL } from "./events-Dvvriq9l.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-BeTK0Mlt.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-BMNUG1AU.esm.js";
|
|
7
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
7
|
+
import { t as getDisableIpify } from "./sessionInitializer-DRB-hgbV.esm.js";
|
|
8
8
|
import { n as isDesktop } from "./platform-SKvEfCBh.esm.js";
|
|
9
9
|
import { a as fromPromise, i as fromCallback, n as sendTo, o as and, r as assign, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
|
|
10
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
11
|
-
import { _ as startRecording, g as createRecordingSession, i as flagIdManualReview, n as preloadOpenViduProvider, v as stopRecording$1, y as StreamCanvasProcessingSession } from "./recordingService-
|
|
10
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-Doec4X5L.esm.js";
|
|
11
|
+
import { _ as startRecording, g as createRecordingSession, i as flagIdManualReview, n as preloadOpenViduProvider, v as stopRecording$1, y as StreamCanvasProcessingSession } from "./recordingService-yRw7hfzU.esm.js";
|
|
12
12
|
import { t as IncodeCanvas } from "./canvas-SKcRBxsk.esm.js";
|
|
13
13
|
import { n as getBackCameraStream } from "./backCameraStream-D7Wo4Nbx.esm.js";
|
|
14
14
|
import { n as getWindowDimensions } from "./getDeviceClass-C0olyNFS.esm.js";
|
|
15
15
|
import { t as getDeviceClass } from "./getDeviceClass-C8Do2qYu.esm.js";
|
|
16
16
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-ImiDQdVA.esm.js";
|
|
17
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
17
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-D0wGddy7.esm.js";
|
|
18
18
|
|
|
19
19
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
20
20
|
const TERMINAL_FAIL_REASONS = new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
@@ -1507,7 +1507,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
1507
1507
|
});
|
|
1508
1508
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1509
1509
|
if (!input.dependencies) return;
|
|
1510
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1510
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-8tnddNx-.esm.js");
|
|
1511
1511
|
return loadDeepsightSession({
|
|
1512
1512
|
ds: input.ds,
|
|
1513
1513
|
storage: input.dependencies.storage,
|
package/dist/identity-reuse.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./Manager-BHn8wH8K.js";
|
|
2
2
|
import "./Actor-Y0_Fj-KL.js";
|
|
3
|
-
import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-
|
|
3
|
+
import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-Cww-NDtd.js";
|
|
4
4
|
export { type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-BHn8wH8K.js";
|
|
2
2
|
import { t as ActorRefFrom } from "./Actor-Y0_Fj-KL.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate596 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/identity-reuse/types.d.ts
|
|
6
6
|
|
|
@@ -76,7 +76,7 @@ type IdentityReuseContext = {
|
|
|
76
76
|
type IdentityReuseInput = {
|
|
77
77
|
config: IdentityReuseConfig;
|
|
78
78
|
};
|
|
79
|
-
declare const identityReuseMachine:
|
|
79
|
+
declare const identityReuseMachine: xstate596.StateMachine<IdentityReuseContext, {
|
|
80
80
|
type: "LOAD";
|
|
81
81
|
} | {
|
|
82
82
|
type: "DOCUMENT_CHOSEN";
|
|
@@ -88,36 +88,36 @@ declare const identityReuseMachine: xstate0.StateMachine<IdentityReuseContext, {
|
|
|
88
88
|
} | {
|
|
89
89
|
type: "RETRY";
|
|
90
90
|
}, {
|
|
91
|
-
[x: string]:
|
|
92
|
-
},
|
|
91
|
+
[x: string]: xstate596.ActorRefFromLogic<xstate596.PromiseActorLogic<FetchDocumentsResponse, void, xstate596.EventObject>> | xstate596.ActorRefFromLogic<xstate596.PromiseActorLogic<SubmitResponse, SubmitParams, xstate596.EventObject>> | undefined;
|
|
92
|
+
}, xstate596.Values<{
|
|
93
93
|
fetchDocuments: {
|
|
94
94
|
src: "fetchDocuments";
|
|
95
|
-
logic:
|
|
95
|
+
logic: xstate596.PromiseActorLogic<FetchDocumentsResponse, void, xstate596.EventObject>;
|
|
96
96
|
id: string | undefined;
|
|
97
97
|
};
|
|
98
98
|
submitDocument: {
|
|
99
99
|
src: "submitDocument";
|
|
100
|
-
logic:
|
|
100
|
+
logic: xstate596.PromiseActorLogic<SubmitResponse, SubmitParams, xstate596.EventObject>;
|
|
101
101
|
id: string | undefined;
|
|
102
102
|
};
|
|
103
|
-
}>,
|
|
103
|
+
}>, xstate596.Values<{
|
|
104
104
|
setDocuments: {
|
|
105
105
|
type: "setDocuments";
|
|
106
|
-
params:
|
|
107
|
-
};
|
|
108
|
-
setSelectedDocument: {
|
|
109
|
-
type: "setSelectedDocument";
|
|
110
|
-
params: xstate0.NonReducibleUnknown;
|
|
106
|
+
params: xstate596.NonReducibleUnknown;
|
|
111
107
|
};
|
|
112
108
|
setError: {
|
|
113
109
|
type: "setError";
|
|
114
|
-
params:
|
|
110
|
+
params: xstate596.NonReducibleUnknown;
|
|
115
111
|
};
|
|
116
112
|
clearError: {
|
|
117
113
|
type: "clearError";
|
|
118
|
-
params:
|
|
114
|
+
params: xstate596.NonReducibleUnknown;
|
|
115
|
+
};
|
|
116
|
+
setSelectedDocument: {
|
|
117
|
+
type: "setSelectedDocument";
|
|
118
|
+
params: xstate596.NonReducibleUnknown;
|
|
119
119
|
};
|
|
120
|
-
}>,
|
|
120
|
+
}>, xstate596.Values<{
|
|
121
121
|
hasDocuments: {
|
|
122
122
|
type: "hasDocuments";
|
|
123
123
|
params: unknown;
|
|
@@ -126,7 +126,7 @@ declare const identityReuseMachine: xstate0.StateMachine<IdentityReuseContext, {
|
|
|
126
126
|
type: "hasSelection";
|
|
127
127
|
params: unknown;
|
|
128
128
|
};
|
|
129
|
-
}>, never, "error" | "idle" | "finished" | "loading" | "
|
|
129
|
+
}>, never, "error" | "idle" | "finished" | "loading" | "submitting" | "documentsFound", string, IdentityReuseInput, xstate596.NonReducibleUnknown, xstate596.EventObject, xstate596.MetaObject, {
|
|
130
130
|
readonly id: "identityReuse";
|
|
131
131
|
readonly initial: "idle";
|
|
132
132
|
readonly context: ({
|
|
@@ -135,55 +135,55 @@ declare const identityReuseMachine: xstate0.StateMachine<IdentityReuseContext, {
|
|
|
135
135
|
spawn: {
|
|
136
136
|
<TSrc extends "fetchDocuments" | "submitDocument">(logic: TSrc, ...[options]: ({
|
|
137
137
|
src: "fetchDocuments";
|
|
138
|
-
logic:
|
|
138
|
+
logic: xstate596.PromiseActorLogic<FetchDocumentsResponse, void, xstate596.EventObject>;
|
|
139
139
|
id: string | undefined;
|
|
140
140
|
} extends infer T ? T extends {
|
|
141
141
|
src: "fetchDocuments";
|
|
142
|
-
logic:
|
|
142
|
+
logic: xstate596.PromiseActorLogic<FetchDocumentsResponse, void, xstate596.EventObject>;
|
|
143
143
|
id: string | undefined;
|
|
144
144
|
} ? T extends {
|
|
145
145
|
src: TSrc;
|
|
146
|
-
} ?
|
|
146
|
+
} ? xstate596.ConditionalRequired<[options?: ({
|
|
147
147
|
id?: T["id"] | undefined;
|
|
148
148
|
systemId?: string;
|
|
149
|
-
input?:
|
|
149
|
+
input?: xstate596.InputFrom<T["logic"]> | undefined;
|
|
150
150
|
syncSnapshot?: boolean;
|
|
151
|
-
} & { [K in
|
|
151
|
+
} & { [K in xstate596.RequiredActorOptions<T>]: unknown }) | undefined], xstate596.IsNotNever<xstate596.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
152
152
|
src: "submitDocument";
|
|
153
|
-
logic:
|
|
153
|
+
logic: xstate596.PromiseActorLogic<SubmitResponse, SubmitParams, xstate596.EventObject>;
|
|
154
154
|
id: string | undefined;
|
|
155
155
|
} extends infer T_1 ? T_1 extends {
|
|
156
156
|
src: "submitDocument";
|
|
157
|
-
logic:
|
|
157
|
+
logic: xstate596.PromiseActorLogic<SubmitResponse, SubmitParams, xstate596.EventObject>;
|
|
158
158
|
id: string | undefined;
|
|
159
159
|
} ? T_1 extends {
|
|
160
160
|
src: TSrc;
|
|
161
|
-
} ?
|
|
161
|
+
} ? xstate596.ConditionalRequired<[options?: ({
|
|
162
162
|
id?: T_1["id"] | undefined;
|
|
163
163
|
systemId?: string;
|
|
164
|
-
input?:
|
|
164
|
+
input?: xstate596.InputFrom<T_1["logic"]> | undefined;
|
|
165
165
|
syncSnapshot?: boolean;
|
|
166
|
-
} & { [K_1 in
|
|
166
|
+
} & { [K_1 in xstate596.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate596.IsNotNever<xstate596.RequiredActorOptions<T_1>>> : never : never : never)): xstate596.ActorRefFromLogic<xstate596.GetConcreteByKey<xstate596.Values<{
|
|
167
167
|
fetchDocuments: {
|
|
168
168
|
src: "fetchDocuments";
|
|
169
|
-
logic:
|
|
169
|
+
logic: xstate596.PromiseActorLogic<FetchDocumentsResponse, void, xstate596.EventObject>;
|
|
170
170
|
id: string | undefined;
|
|
171
171
|
};
|
|
172
172
|
submitDocument: {
|
|
173
173
|
src: "submitDocument";
|
|
174
|
-
logic:
|
|
174
|
+
logic: xstate596.PromiseActorLogic<SubmitResponse, SubmitParams, xstate596.EventObject>;
|
|
175
175
|
id: string | undefined;
|
|
176
176
|
};
|
|
177
177
|
}>, "src", TSrc>["logic"]>;
|
|
178
|
-
<TLogic extends
|
|
178
|
+
<TLogic extends xstate596.AnyActorLogic>(src: TLogic, ...[options]: xstate596.ConditionalRequired<[options?: ({
|
|
179
179
|
id?: never;
|
|
180
180
|
systemId?: string;
|
|
181
|
-
input?:
|
|
181
|
+
input?: xstate596.InputFrom<TLogic> | undefined;
|
|
182
182
|
syncSnapshot?: boolean;
|
|
183
|
-
} & { [K in
|
|
183
|
+
} & { [K in xstate596.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate596.IsNotNever<xstate596.RequiredLogicInput<TLogic>>>): xstate596.ActorRefFromLogic<TLogic>;
|
|
184
184
|
};
|
|
185
185
|
input: IdentityReuseInput;
|
|
186
|
-
self:
|
|
186
|
+
self: xstate596.ActorRef<xstate596.MachineSnapshot<IdentityReuseContext, {
|
|
187
187
|
type: "LOAD";
|
|
188
188
|
} | {
|
|
189
189
|
type: "DOCUMENT_CHOSEN";
|
|
@@ -194,7 +194,7 @@ declare const identityReuseMachine: xstate0.StateMachine<IdentityReuseContext, {
|
|
|
194
194
|
type: "SKIP";
|
|
195
195
|
} | {
|
|
196
196
|
type: "RETRY";
|
|
197
|
-
}, Record<string,
|
|
197
|
+
}, Record<string, xstate596.AnyActorRef | undefined>, xstate596.StateValue, string, unknown, any, any>, {
|
|
198
198
|
type: "LOAD";
|
|
199
199
|
} | {
|
|
200
200
|
type: "DOCUMENT_CHOSEN";
|
|
@@ -205,7 +205,7 @@ declare const identityReuseMachine: xstate0.StateMachine<IdentityReuseContext, {
|
|
|
205
205
|
type: "SKIP";
|
|
206
206
|
} | {
|
|
207
207
|
type: "RETRY";
|
|
208
|
-
},
|
|
208
|
+
}, xstate596.AnyEventObject>;
|
|
209
209
|
}) => {
|
|
210
210
|
config: IdentityReuseConfig;
|
|
211
211
|
documents: never[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "./warmup-Dg8Lh-50.js";
|
|
2
|
-
import { a as reset, i as isConfigured, s as setup, t as SetupOptions } from "./setup-
|
|
2
|
+
import { a as reset, i as isConfigured, s as setup, t as SetupOptions } from "./setup-BwCluiw3.js";
|
|
3
3
|
export { type SetupOptions, isConfigured, reset, setup };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./WasmUtilProvider-
|
|
2
|
-
import { a as setup, n as isConfigured, r as reset } from "./setup-
|
|
1
|
+
import "./WasmUtilProvider-BKWm8rSA.esm.js";
|
|
2
|
+
import { a as setup, n as isConfigured, r as reset } from "./setup-CUO4mErT.esm.js";
|
|
3
3
|
import "./BrowserTimerProvider-DhNc_x02.esm.js";
|
|
4
4
|
import "./api-CESGtpbH.esm.js";
|
|
5
5
|
import "./events-Dvvriq9l.esm.js";
|
|
@@ -7,7 +7,7 @@ import "./endpoints-BeTK0Mlt.esm.js";
|
|
|
7
7
|
import "./stats-BMNUG1AU.esm.js";
|
|
8
8
|
import "./IpifyProvider-D4LWD15E.esm.js";
|
|
9
9
|
import "./browserSimulation-B1dWiXp7.esm.js";
|
|
10
|
-
import "./sessionInitializer-
|
|
10
|
+
import "./sessionInitializer-DRB-hgbV.esm.js";
|
|
11
11
|
import "./platform-SKvEfCBh.esm.js";
|
|
12
12
|
import "./getBrowser-C8DP7oTB.esm.js";
|
|
13
13
|
|
|
@@ -4,5 +4,5 @@ import "./camera-SRBpPq2X.js";
|
|
|
4
4
|
import "./types-Bj9hdFjU.js";
|
|
5
5
|
import "./types-DvGZI7BF.js";
|
|
6
6
|
import "./types-DOUhndhT.js";
|
|
7
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, s as MandatoryConsentConfig, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
7
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, s as MandatoryConsentConfig, t as MandatoryConsentManager } from "./mandatoryConsentManager-Dq6WiOZh.js";
|
|
8
8
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-KfIlURRY.d.ts → mandatoryConsentManager-Dq6WiOZh.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-BHn8wH8K.js";
|
|
2
2
|
import { t as ActorRefFrom } from "./Actor-Y0_Fj-KL.js";
|
|
3
3
|
import { a as RegulationTypes } from "./types-DOUhndhT.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as xstate226 from "xstate";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/mandatory-consent/types.d.ts
|
|
7
7
|
type RegulatoryConsentType = 'MANDATORY' | 'ML';
|
|
@@ -32,7 +32,7 @@ type MandatoryConsentContext = {
|
|
|
32
32
|
type MandatoryConsentInput = {
|
|
33
33
|
config: MandatoryConsentConfig;
|
|
34
34
|
};
|
|
35
|
-
declare const mandatoryConsentMachine:
|
|
35
|
+
declare const mandatoryConsentMachine: xstate226.StateMachine<MandatoryConsentContext, {
|
|
36
36
|
type: "LOAD";
|
|
37
37
|
} | {
|
|
38
38
|
type: "TOGGLE";
|
|
@@ -45,53 +45,53 @@ declare const mandatoryConsentMachine: xstate591.StateMachine<MandatoryConsentCo
|
|
|
45
45
|
} | {
|
|
46
46
|
type: "RESET";
|
|
47
47
|
}, {
|
|
48
|
-
[x: string]:
|
|
48
|
+
[x: string]: xstate226.ActorRefFromLogic<xstate226.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
49
49
|
config: MandatoryConsentConfig;
|
|
50
|
-
},
|
|
50
|
+
}, xstate226.EventObject>> | xstate226.ActorRefFromLogic<xstate226.PromiseActorLogic<void, {
|
|
51
51
|
consentId: string;
|
|
52
52
|
isSigned: boolean;
|
|
53
|
-
},
|
|
54
|
-
},
|
|
53
|
+
}, xstate226.EventObject>> | undefined;
|
|
54
|
+
}, xstate226.Values<{
|
|
55
55
|
fetchConsent: {
|
|
56
56
|
src: "fetchConsent";
|
|
57
|
-
logic:
|
|
57
|
+
logic: xstate226.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
58
58
|
config: MandatoryConsentConfig;
|
|
59
|
-
},
|
|
59
|
+
}, xstate226.EventObject>;
|
|
60
60
|
id: string | undefined;
|
|
61
61
|
};
|
|
62
62
|
submitConsent: {
|
|
63
63
|
src: "submitConsent";
|
|
64
|
-
logic:
|
|
64
|
+
logic: xstate226.PromiseActorLogic<void, {
|
|
65
65
|
consentId: string;
|
|
66
66
|
isSigned: boolean;
|
|
67
|
-
},
|
|
67
|
+
}, xstate226.EventObject>;
|
|
68
68
|
id: string | undefined;
|
|
69
69
|
};
|
|
70
|
-
}>,
|
|
70
|
+
}>, xstate226.Values<{
|
|
71
71
|
setConsent: {
|
|
72
72
|
type: "setConsent";
|
|
73
|
-
params:
|
|
73
|
+
params: xstate226.NonReducibleUnknown;
|
|
74
74
|
};
|
|
75
75
|
setError: {
|
|
76
76
|
type: "setError";
|
|
77
|
-
params:
|
|
77
|
+
params: xstate226.NonReducibleUnknown;
|
|
78
78
|
};
|
|
79
79
|
clearError: {
|
|
80
80
|
type: "clearError";
|
|
81
|
-
params:
|
|
82
|
-
};
|
|
83
|
-
toggleSigned: {
|
|
84
|
-
type: "toggleSigned";
|
|
85
|
-
params: xstate591.NonReducibleUnknown;
|
|
81
|
+
params: xstate226.NonReducibleUnknown;
|
|
86
82
|
};
|
|
87
83
|
resetContext: {
|
|
88
84
|
type: "resetContext";
|
|
89
|
-
params:
|
|
85
|
+
params: xstate226.NonReducibleUnknown;
|
|
86
|
+
};
|
|
87
|
+
toggleSigned: {
|
|
88
|
+
type: "toggleSigned";
|
|
89
|
+
params: xstate226.NonReducibleUnknown;
|
|
90
90
|
};
|
|
91
91
|
}>, {
|
|
92
92
|
type: "canSubmit";
|
|
93
93
|
params: unknown;
|
|
94
|
-
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "
|
|
94
|
+
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate226.NonReducibleUnknown, xstate226.EventObject, xstate226.MetaObject, {
|
|
95
95
|
readonly id: "mandatoryConsent";
|
|
96
96
|
readonly initial: "idle";
|
|
97
97
|
readonly context: ({
|
|
@@ -100,70 +100,70 @@ declare const mandatoryConsentMachine: xstate591.StateMachine<MandatoryConsentCo
|
|
|
100
100
|
spawn: {
|
|
101
101
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
102
102
|
src: "fetchConsent";
|
|
103
|
-
logic:
|
|
103
|
+
logic: xstate226.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
104
104
|
config: MandatoryConsentConfig;
|
|
105
|
-
},
|
|
105
|
+
}, xstate226.EventObject>;
|
|
106
106
|
id: string | undefined;
|
|
107
107
|
} extends infer T ? T extends {
|
|
108
108
|
src: "fetchConsent";
|
|
109
|
-
logic:
|
|
109
|
+
logic: xstate226.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
110
110
|
config: MandatoryConsentConfig;
|
|
111
|
-
},
|
|
111
|
+
}, xstate226.EventObject>;
|
|
112
112
|
id: string | undefined;
|
|
113
113
|
} ? T extends {
|
|
114
114
|
src: TSrc;
|
|
115
|
-
} ?
|
|
115
|
+
} ? xstate226.ConditionalRequired<[options?: ({
|
|
116
116
|
id?: T["id"] | undefined;
|
|
117
117
|
systemId?: string;
|
|
118
|
-
input?:
|
|
118
|
+
input?: xstate226.InputFrom<T["logic"]> | undefined;
|
|
119
119
|
syncSnapshot?: boolean;
|
|
120
|
-
} & { [K in
|
|
120
|
+
} & { [K in xstate226.RequiredActorOptions<T>]: unknown }) | undefined], xstate226.IsNotNever<xstate226.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
121
121
|
src: "submitConsent";
|
|
122
|
-
logic:
|
|
122
|
+
logic: xstate226.PromiseActorLogic<void, {
|
|
123
123
|
consentId: string;
|
|
124
124
|
isSigned: boolean;
|
|
125
|
-
},
|
|
125
|
+
}, xstate226.EventObject>;
|
|
126
126
|
id: string | undefined;
|
|
127
127
|
} extends infer T_1 ? T_1 extends {
|
|
128
128
|
src: "submitConsent";
|
|
129
|
-
logic:
|
|
129
|
+
logic: xstate226.PromiseActorLogic<void, {
|
|
130
130
|
consentId: string;
|
|
131
131
|
isSigned: boolean;
|
|
132
|
-
},
|
|
132
|
+
}, xstate226.EventObject>;
|
|
133
133
|
id: string | undefined;
|
|
134
134
|
} ? T_1 extends {
|
|
135
135
|
src: TSrc;
|
|
136
|
-
} ?
|
|
136
|
+
} ? xstate226.ConditionalRequired<[options?: ({
|
|
137
137
|
id?: T_1["id"] | undefined;
|
|
138
138
|
systemId?: string;
|
|
139
|
-
input?:
|
|
139
|
+
input?: xstate226.InputFrom<T_1["logic"]> | undefined;
|
|
140
140
|
syncSnapshot?: boolean;
|
|
141
|
-
} & { [K_1 in
|
|
141
|
+
} & { [K_1 in xstate226.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate226.IsNotNever<xstate226.RequiredActorOptions<T_1>>> : never : never : never)): xstate226.ActorRefFromLogic<xstate226.GetConcreteByKey<xstate226.Values<{
|
|
142
142
|
fetchConsent: {
|
|
143
143
|
src: "fetchConsent";
|
|
144
|
-
logic:
|
|
144
|
+
logic: xstate226.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
145
145
|
config: MandatoryConsentConfig;
|
|
146
|
-
},
|
|
146
|
+
}, xstate226.EventObject>;
|
|
147
147
|
id: string | undefined;
|
|
148
148
|
};
|
|
149
149
|
submitConsent: {
|
|
150
150
|
src: "submitConsent";
|
|
151
|
-
logic:
|
|
151
|
+
logic: xstate226.PromiseActorLogic<void, {
|
|
152
152
|
consentId: string;
|
|
153
153
|
isSigned: boolean;
|
|
154
|
-
},
|
|
154
|
+
}, xstate226.EventObject>;
|
|
155
155
|
id: string | undefined;
|
|
156
156
|
};
|
|
157
157
|
}>, "src", TSrc>["logic"]>;
|
|
158
|
-
<TLogic extends
|
|
158
|
+
<TLogic extends xstate226.AnyActorLogic>(src: TLogic, ...[options]: xstate226.ConditionalRequired<[options?: ({
|
|
159
159
|
id?: never;
|
|
160
160
|
systemId?: string;
|
|
161
|
-
input?:
|
|
161
|
+
input?: xstate226.InputFrom<TLogic> | undefined;
|
|
162
162
|
syncSnapshot?: boolean;
|
|
163
|
-
} & { [K in
|
|
163
|
+
} & { [K in xstate226.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate226.IsNotNever<xstate226.RequiredLogicInput<TLogic>>>): xstate226.ActorRefFromLogic<TLogic>;
|
|
164
164
|
};
|
|
165
165
|
input: MandatoryConsentInput;
|
|
166
|
-
self:
|
|
166
|
+
self: xstate226.ActorRef<xstate226.MachineSnapshot<MandatoryConsentContext, {
|
|
167
167
|
type: "LOAD";
|
|
168
168
|
} | {
|
|
169
169
|
type: "TOGGLE";
|
|
@@ -175,7 +175,7 @@ declare const mandatoryConsentMachine: xstate591.StateMachine<MandatoryConsentCo
|
|
|
175
175
|
type: "RETRY";
|
|
176
176
|
} | {
|
|
177
177
|
type: "RESET";
|
|
178
|
-
}, Record<string,
|
|
178
|
+
}, Record<string, xstate226.AnyActorRef | undefined>, xstate226.StateValue, string, unknown, any, any>, {
|
|
179
179
|
type: "LOAD";
|
|
180
180
|
} | {
|
|
181
181
|
type: "TOGGLE";
|
|
@@ -187,7 +187,7 @@ declare const mandatoryConsentMachine: xstate591.StateMachine<MandatoryConsentCo
|
|
|
187
187
|
type: "RETRY";
|
|
188
188
|
} | {
|
|
189
189
|
type: "RESET";
|
|
190
|
-
},
|
|
190
|
+
}, xstate226.AnyEventObject>;
|
|
191
191
|
}) => {
|
|
192
192
|
config: MandatoryConsentConfig;
|
|
193
193
|
consent: undefined;
|
|
@@ -224,7 +224,7 @@ declare const mandatoryConsentMachine: xstate591.StateMachine<MandatoryConsentCo
|
|
|
224
224
|
} | {
|
|
225
225
|
type: "RESET";
|
|
226
226
|
};
|
|
227
|
-
self:
|
|
227
|
+
self: xstate226.ActorRef<xstate226.MachineSnapshot<MandatoryConsentContext, {
|
|
228
228
|
type: "LOAD";
|
|
229
229
|
} | {
|
|
230
230
|
type: "TOGGLE";
|
|
@@ -236,7 +236,7 @@ declare const mandatoryConsentMachine: xstate591.StateMachine<MandatoryConsentCo
|
|
|
236
236
|
type: "RETRY";
|
|
237
237
|
} | {
|
|
238
238
|
type: "RESET";
|
|
239
|
-
}, Record<string,
|
|
239
|
+
}, Record<string, xstate226.AnyActorRef>, xstate226.StateValue, string, unknown, any, any>, {
|
|
240
240
|
type: "LOAD";
|
|
241
241
|
} | {
|
|
242
242
|
type: "TOGGLE";
|
|
@@ -248,7 +248,7 @@ declare const mandatoryConsentMachine: xstate591.StateMachine<MandatoryConsentCo
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "RESET";
|
|
251
|
-
},
|
|
251
|
+
}, xstate226.AnyEventObject>;
|
|
252
252
|
}) => {
|
|
253
253
|
config: MandatoryConsentConfig;
|
|
254
254
|
};
|
|
@@ -301,7 +301,7 @@ declare const mandatoryConsentMachine: xstate591.StateMachine<MandatoryConsentCo
|
|
|
301
301
|
} | {
|
|
302
302
|
type: "RESET";
|
|
303
303
|
};
|
|
304
|
-
self:
|
|
304
|
+
self: xstate226.ActorRef<xstate226.MachineSnapshot<MandatoryConsentContext, {
|
|
305
305
|
type: "LOAD";
|
|
306
306
|
} | {
|
|
307
307
|
type: "TOGGLE";
|
|
@@ -313,7 +313,7 @@ declare const mandatoryConsentMachine: xstate591.StateMachine<MandatoryConsentCo
|
|
|
313
313
|
type: "RETRY";
|
|
314
314
|
} | {
|
|
315
315
|
type: "RESET";
|
|
316
|
-
}, Record<string,
|
|
316
|
+
}, Record<string, xstate226.AnyActorRef>, xstate226.StateValue, string, unknown, any, any>, {
|
|
317
317
|
type: "LOAD";
|
|
318
318
|
} | {
|
|
319
319
|
type: "TOGGLE";
|
|
@@ -325,7 +325,7 @@ declare const mandatoryConsentMachine: xstate591.StateMachine<MandatoryConsentCo
|
|
|
325
325
|
type: "RETRY";
|
|
326
326
|
} | {
|
|
327
327
|
type: "RESET";
|
|
328
|
-
},
|
|
328
|
+
}, xstate226.AnyEventObject>;
|
|
329
329
|
}) => {
|
|
330
330
|
consentId: string;
|
|
331
331
|
isSigned: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isWasmMotionPrimedForModule } from "./permissionServices-
|
|
1
|
+
import { a as isWasmMotionPrimedForModule } from "./permissionServices-Doec4X5L.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region src/internal/permissions/permissionGuards.ts
|
|
4
4
|
function resolveStoredPermissionResult(fromEvent, fromContext) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BKWm8rSA.esm.js";
|
|
2
2
|
import { t as MotionSensorProvider } from "./MotionSensorProvider-Bx7Mpzt0.esm.js";
|
|
3
3
|
import { i as stopCameraStream, r as requestCameraAccess } from "./camera-DJWm3V4g.esm.js";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as mlWasmJSApi_default, n as BaseWasmProvider, u as WasmPipelineType } from "./WasmUtilProvider-
|
|
1
|
+
import { i as mlWasmJSApi_default, n as BaseWasmProvider, u as WasmPipelineType } from "./WasmUtilProvider-BKWm8rSA.esm.js";
|
|
2
2
|
import { r as getToken, t as api } from "./api-CESGtpbH.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-BeTK0Mlt.esm.js";
|
|
4
4
|
import { t as addDeviceStats } from "./stats-BMNUG1AU.esm.js";
|
|
@@ -530,7 +530,7 @@ async function stopRecording(session) {
|
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
async function initializeDeepsightSession(options) {
|
|
533
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
533
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-8tnddNx-.esm.js");
|
|
534
534
|
return loadDeepsightSession({
|
|
535
535
|
ds: options.ds,
|
|
536
536
|
storage: options.storage
|
package/dist/selfie.d.ts
CHANGED
|
@@ -2,15 +2,15 @@ import "./warmup-Dg8Lh-50.js";
|
|
|
2
2
|
import "./Manager-BHn8wH8K.js";
|
|
3
3
|
import "./Actor-Y0_Fj-KL.js";
|
|
4
4
|
import "./StateMachine-BC_nGvrc.js";
|
|
5
|
-
import { C as DetectionStatus, E as FaceErrorCode, T as FaceCapturedImageData, a as SelfieCaptureOnlyMachine, g as SelfieConfig, h as SelfieCaptureOnlyConfig, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, w as FaceCaptureOnlyResponse } from "./faceCaptureManagerFactory-
|
|
5
|
+
import { C as DetectionStatus, E as FaceErrorCode, T as FaceCapturedImageData, a as SelfieCaptureOnlyMachine, g as SelfieConfig, h as SelfieCaptureOnlyConfig, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, w as FaceCaptureOnlyResponse } from "./faceCaptureManagerFactory-CjdBUS6s.js";
|
|
6
6
|
import { t as CameraStream } from "./camera-SRBpPq2X.js";
|
|
7
7
|
import "./types-Bj9hdFjU.js";
|
|
8
8
|
import "./types-DvGZI7BF.js";
|
|
9
9
|
import "./types-DOUhndhT.js";
|
|
10
|
-
import { t as DeepsightService } from "./deepsightService-
|
|
10
|
+
import { t as DeepsightService } from "./deepsightService-Dh5P-hLf.js";
|
|
11
11
|
import { n as PermissionStatus, t as PermissionResult } from "./types-ya0LN_MX.js";
|
|
12
12
|
import "./StreamCanvasCapture-yyl20qd9.js";
|
|
13
|
-
import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-
|
|
13
|
+
import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-C2y_t6DG.js";
|
|
14
14
|
|
|
15
15
|
//#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
|
|
16
16
|
type SelfieCaptureOnlyState = FaceCaptureManagerState;
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BKWm8rSA.esm.js";
|
|
2
2
|
import "./api-CESGtpbH.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-Dvvriq9l.esm.js";
|
|
4
4
|
import "./endpoints-BeTK0Mlt.esm.js";
|
|
@@ -9,10 +9,10 @@ import "./getBrowser-C8DP7oTB.esm.js";
|
|
|
9
9
|
import { a as fromPromise, r as assign, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
|
|
10
10
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-BpJM-gIl.esm.js";
|
|
11
11
|
import "./MotionSensorProvider-Bx7Mpzt0.esm.js";
|
|
12
|
-
import "./permissionServices-
|
|
12
|
+
import "./permissionServices-Doec4X5L.esm.js";
|
|
13
13
|
import "./camera-DJWm3V4g.esm.js";
|
|
14
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
15
|
-
import { m as processFace } from "./recordingService-
|
|
14
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-ej2j1LMr.esm.js";
|
|
15
|
+
import { m as processFace } from "./recordingService-yRw7hfzU.esm.js";
|
|
16
16
|
import "./ITimerCapability-CB0I1Uf2.esm.js";
|
|
17
17
|
import "./canvas-SKcRBxsk.esm.js";
|
|
18
18
|
import "./backCameraStream-D7Wo4Nbx.esm.js";
|
|
@@ -21,10 +21,10 @@ import "./getDeviceClass-C0olyNFS.esm.js";
|
|
|
21
21
|
import "./getDeviceClass-C8Do2qYu.esm.js";
|
|
22
22
|
import "./types-DsnEVMhr.esm.js";
|
|
23
23
|
import "./StreamCanvasCapture-ImiDQdVA.esm.js";
|
|
24
|
-
import "./permissionGuards-
|
|
25
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
26
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
27
|
-
import { t as createSelfieManager } from "./selfieManager-
|
|
24
|
+
import "./permissionGuards-D0wGddy7.esm.js";
|
|
25
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-B9t6bYze.esm.js";
|
|
26
|
+
import { t as selfieMachine } from "./selfieStateMachine-Bv99bZJE.esm.js";
|
|
27
|
+
import { t as createSelfieManager } from "./selfieManager-BNuTIGAz.esm.js";
|
|
28
28
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-ygByVdnn.esm.js";
|
|
29
29
|
|
|
30
30
|
//#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
|
|
@@ -92,13 +92,38 @@ const selfieCaptureOnlyMachine = _selfieCaptureOnlyMachine;
|
|
|
92
92
|
|
|
93
93
|
//#endregion
|
|
94
94
|
//#region src/modules/selfie/selfieCaptureOnlyActor.ts
|
|
95
|
+
/**
|
|
96
|
+
* Defaults the capture-only flow applies for every {@link SelfieConfig} option
|
|
97
|
+
* the integrator doesn't set. Capture-only doesn't talk to a backend, so the
|
|
98
|
+
* face validations and recording all default off and liveness defaults to the
|
|
99
|
+
* lightest on-device mode. The integrator overrides only what they care about —
|
|
100
|
+
* `onCapture` is the one field they must supply.
|
|
101
|
+
*/
|
|
102
|
+
const DEFAULT_SELFIE_CAPTURE_ONLY_CONFIG = {
|
|
103
|
+
showTutorial: true,
|
|
104
|
+
showPreview: false,
|
|
105
|
+
assistedOnboarding: false,
|
|
106
|
+
enableFaceRecording: false,
|
|
107
|
+
validateLenses: false,
|
|
108
|
+
validateFaceMask: false,
|
|
109
|
+
validateHeadCover: false,
|
|
110
|
+
validateClosedEyes: false,
|
|
111
|
+
validateBrightness: false,
|
|
112
|
+
deepsightLiveness: "SINGLE_FRAME",
|
|
113
|
+
captureAttempts: 3,
|
|
114
|
+
ds: false,
|
|
115
|
+
autoCaptureTimeout: 1e4
|
|
116
|
+
};
|
|
95
117
|
function createSelfieCaptureOnlyActor(options) {
|
|
96
118
|
const dependencies = options.dependencies ?? {
|
|
97
119
|
storage: new BrowserStorageProvider(),
|
|
98
120
|
getWasmUtil: () => WasmUtilProvider.getInstance()
|
|
99
121
|
};
|
|
100
122
|
return createActor(selfieCaptureOnlyMachine, { input: {
|
|
101
|
-
config:
|
|
123
|
+
config: {
|
|
124
|
+
...DEFAULT_SELFIE_CAPTURE_ONLY_CONFIG,
|
|
125
|
+
...options.config
|
|
126
|
+
},
|
|
102
127
|
dependencies
|
|
103
128
|
} }).start();
|
|
104
129
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BKWm8rSA.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./events-Dvvriq9l.esm.js";
|
|
3
3
|
import { s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
|
|
4
4
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-BpJM-gIl.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-ej2j1LMr.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-Bv99bZJE.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/selfie/selfieActor.ts
|
|
9
9
|
function createSelfieActor(options) {
|