@incodetech/core 0.0.0-dev-20260402-682edb5 → 0.0.0-dev-20260402-7cf9db4
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/Actor-phIcsUhv.d.ts +2 -0
- package/dist/BaseWasmProvider-BFXU7jj8.esm.js +1536 -0
- package/dist/BrowserEnvironmentProvider-DApG6lNu.esm.js +89 -0
- package/dist/BrowserTimerProvider-CRhCvln7.esm.js +22 -0
- package/dist/Manager-BndLda4_.d.ts +19 -0
- package/dist/{events-Cc1xUUgF.esm.js → Manager-D_DMzMWz.esm.js} +114 -11
- package/dist/{warmup-CzfSiaMj.d.ts → StateMachine-CGAi8x_b.d.ts} +4 -1
- package/dist/StreamCanvasCapture-9VAzOfOv.esm.js +410 -0
- package/dist/WasmUtilProvider-DctESPCy.esm.js +114 -0
- package/dist/{addressSearch-DzOdaNEA.esm.js → addressSearch-CYGzuJJ3.esm.js} +3 -3
- package/dist/authentication.d.ts +9 -7
- package/dist/authentication.esm.js +12 -10
- package/dist/{authenticationManager-TaI12wf3.d.ts → authenticationManager-B5Yv9bDw.d.ts} +2 -2
- package/dist/{authenticationManager-CBSPCdJc.esm.js → authenticationManager-C9iQ1d2a.esm.js} +5 -5
- package/dist/{backCameraStream-BGAbuvw1.esm.js → backCameraStream-BJwEXNl4.esm.js} +2 -1
- package/dist/camera-D-MPXRbZ.esm.js +22 -0
- package/dist/camera-Dv2WEhGe.d.ts +4 -0
- package/dist/consent.d.ts +55 -54
- package/dist/consent.esm.js +2 -3
- package/dist/curp-validation.d.ts +5 -3
- package/dist/curp-validation.esm.js +2 -3
- package/dist/deepsightLoader-D2MKmB5z.esm.js +48 -0
- package/dist/{deepsightService-DxA--87N.d.ts → deepsightService-CWnhwXLw.d.ts} +223 -17
- package/dist/document-capture.d.ts +58 -56
- package/dist/document-capture.esm.js +5 -4
- package/dist/document-upload.d.ts +47 -45
- package/dist/document-upload.esm.js +5 -4
- package/dist/ekyb.d.ts +3 -2
- package/dist/ekyb.esm.js +8 -7
- package/dist/ekyc.d.ts +3 -2
- package/dist/ekyc.esm.js +133 -123
- package/dist/email.d.ts +3 -2
- package/dist/email.esm.js +4 -4
- package/dist/{emailManager-DN_q_zxy.d.ts → emailManager-BIq6pJa8.d.ts} +11 -4
- package/dist/{emailManager-DSR9gQLX.esm.js → emailManager-C5GCSw78.esm.js} +43 -23
- package/dist/extensibility.d.ts +45 -43
- package/dist/extensibility.esm.js +26 -15
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -3
- package/dist/{faceCaptureManagerFactory-CGpkO_S3.d.ts → faceCaptureManagerFactory-CN5-GRxP.d.ts} +89 -142
- package/dist/{faceCaptureSetup-Rr7LUbBm.esm.js → faceCaptureSetup-DYRykM5Y.esm.js} +413 -7
- package/dist/flow.d.ts +6 -5
- package/dist/flow.esm.js +7 -7
- package/dist/{flowCompletionService-Bkaerugt.esm.js → flowCompletionService-CBvXiMKa.esm.js} +1 -1
- package/dist/{flowServices-Bt6lMLUI.esm.js → flowServices-CQ3rTJLE.esm.js} +2 -2
- package/dist/geolocation.d.ts +2 -1
- package/dist/geolocation.esm.js +16 -3
- package/dist/government-validation.d.ts +2 -1
- package/dist/government-validation.esm.js +3 -3
- package/dist/id.d.ts +9 -6
- package/dist/id.esm.js +14 -11
- package/dist/{idCaptureManager-Dc2NJMy_.d.ts → idCaptureManager-B1RWflj0.d.ts} +15 -12
- package/dist/{idCaptureManager-QyM4nIKM.esm.js → idCaptureManager-D5rjCu9r.esm.js} +178 -8
- package/dist/index.d.ts +68 -21
- package/dist/index.esm.js +440 -11
- package/dist/mandatory-consent.d.ts +58 -56
- package/dist/mandatory-consent.esm.js +2 -3
- package/dist/phone.d.ts +3 -2
- package/dist/phone.esm.js +4 -4
- package/dist/{phoneManager-D2A0hXXq.d.ts → phoneManager-Ba66ysK2.d.ts} +9 -2
- package/dist/{phoneManager-D2nZtu-b.esm.js → phoneManager-CQJim-Ky.esm.js} +32 -21
- package/dist/platform-B3nGssGZ.esm.js +83 -0
- package/dist/redirect-to-mobile.d.ts +2 -1
- package/dist/redirect-to-mobile.esm.js +3 -3
- package/dist/selfie.d.ts +9 -7
- package/dist/selfie.esm.js +12 -10
- package/dist/{selfieManager-B4Nnp7ws.d.ts → selfieManager-BnfnTPcx.d.ts} +2 -2
- package/dist/{selfieManager-CvE35L72.esm.js → selfieManager-DYW1C2GP.esm.js} +4 -3
- package/dist/session-TBPhHmyy.esm.js +3130 -0
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +2 -2
- package/dist/signature.d.ts +3 -3
- package/dist/signature.esm.js +3 -4
- package/dist/{stats-D0m3TvIg.esm.js → stats-D4C7iDy1.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-oveF7RrS.d.ts → types-BWGxcjiZ.d.ts} +1 -1
- package/dist/{types-mQLzH6uw.d.ts → types-BX1ZlbSR.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/deepsightLoader-B93Oa9pS.esm.js +0 -24
- package/dist/deepsightService-CLUMQ5ee.esm.js +0 -235
- package/dist/index-BTaLQSj9.d.ts +0 -219
- package/dist/recordingsRepository-Djt_In2b.esm.js +0 -122
- package/dist/session-CUy9-Yzi.esm.js +0 -250
- package/dist/src-8rn6DoH7.esm.js +0 -6554
- /package/dist/{api-G4JA8CXK.esm.js → api-3fZO5bmj.esm.js} +0 -0
- /package/dist/{browserSimulation-C8gNnn5p.esm.js → browserSimulation-zWJAZ1vA.esm.js} +0 -0
- /package/dist/{displayErrors-BgtBHbfb.d.ts → displayErrors-DzzB3fcR.d.ts} +0 -0
- /package/dist/{flowCompletionService-De8JDo87.d.ts → flowCompletionService-C_CShl_d.d.ts} +0 -0
- /package/dist/{id-B30uqGbp.esm.js → id-Dv0it9CY.esm.js} +0 -0
- /package/dist/{index-LKrIp3Oo.d.ts → index-CuY8tqBC.d.ts} +0 -0
- /package/dist/{lib-qeMam2F_.esm.js → lib-B5byelWf.esm.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
1
|
+
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
2
|
+
import { C as fromPromise, S as fromCallback, b as setup, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, w as createActor, x as assign } from "./Manager-D_DMzMWz.esm.js";
|
|
4
3
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
4
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CRhCvln7.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/email/emailServices.ts
|
|
7
7
|
async function fetchEmail(signal) {
|
|
@@ -46,13 +46,14 @@ const emailMachine = setup({
|
|
|
46
46
|
verifyOtp: fromPromise(async ({ input, signal }) => {
|
|
47
47
|
return verifyEmailOtp(input.code, signal);
|
|
48
48
|
}),
|
|
49
|
-
resendTimer: fromCallback(({ sendBack }) => {
|
|
49
|
+
resendTimer: fromCallback(({ input, sendBack }) => {
|
|
50
50
|
const timer = BrowserTimerProvider.getInstance();
|
|
51
|
-
let
|
|
51
|
+
let remaining = input.seconds;
|
|
52
|
+
if (remaining <= 0) return () => {};
|
|
52
53
|
const interval = timer.setInterval(() => {
|
|
53
|
-
seconds -= 1;
|
|
54
54
|
sendBack({ type: "TICK" });
|
|
55
|
-
|
|
55
|
+
remaining -= 1;
|
|
56
|
+
if (remaining <= 0) timer.clearInterval(interval);
|
|
56
57
|
}, 1e3);
|
|
57
58
|
return () => timer.clearInterval(interval);
|
|
58
59
|
})
|
|
@@ -100,7 +101,6 @@ const emailMachine = setup({
|
|
|
100
101
|
resendTimerActive: newTimer > 0
|
|
101
102
|
};
|
|
102
103
|
}),
|
|
103
|
-
stopResendTimer: assign({ resendTimerActive: () => false }),
|
|
104
104
|
resetContext: assign(({ context }) => ({
|
|
105
105
|
config: context.config,
|
|
106
106
|
email: "",
|
|
@@ -113,11 +113,7 @@ const emailMachine = setup({
|
|
|
113
113
|
attemptsRemaining: context.config.maxOtpAttempts ?? 3,
|
|
114
114
|
resendTimer: 0,
|
|
115
115
|
resendTimerActive: false
|
|
116
|
-
}))
|
|
117
|
-
clearResendTimer: assign({
|
|
118
|
-
resendTimer: () => 0,
|
|
119
|
-
resendTimerActive: () => false
|
|
120
|
-
})
|
|
116
|
+
}))
|
|
121
117
|
},
|
|
122
118
|
guards: {
|
|
123
119
|
hasPrefill: ({ context }) => context.config.prefill,
|
|
@@ -171,7 +167,7 @@ const emailMachine = setup({
|
|
|
171
167
|
src: "submitEmail",
|
|
172
168
|
input: ({ context }) => ({ email: context.email }),
|
|
173
169
|
onDone: [{
|
|
174
|
-
target: "
|
|
170
|
+
target: "sendingInitialOtp",
|
|
175
171
|
guard: "hasOtpVerification"
|
|
176
172
|
}, { target: "finished" }],
|
|
177
173
|
onError: {
|
|
@@ -179,27 +175,42 @@ const emailMachine = setup({
|
|
|
179
175
|
actions: "setEmailError"
|
|
180
176
|
}
|
|
181
177
|
} },
|
|
182
|
-
|
|
178
|
+
sendingInitialOtp: { invoke: {
|
|
183
179
|
id: "sendOtp",
|
|
184
180
|
src: "sendOtp",
|
|
185
|
-
onDone: {
|
|
181
|
+
onDone: {
|
|
182
|
+
target: "awaitingOtp",
|
|
183
|
+
actions: "startResendTimer"
|
|
184
|
+
},
|
|
186
185
|
onError: {
|
|
187
186
|
target: "awaitingOtp",
|
|
188
|
-
actions: "setError"
|
|
187
|
+
actions: ["setError", "startResendTimer"]
|
|
188
|
+
}
|
|
189
|
+
} },
|
|
190
|
+
resendingOtp: { invoke: {
|
|
191
|
+
id: "sendOtp",
|
|
192
|
+
src: "sendOtp",
|
|
193
|
+
onDone: {
|
|
194
|
+
target: "awaitingOtp",
|
|
195
|
+
actions: "startResendTimer"
|
|
196
|
+
},
|
|
197
|
+
onError: {
|
|
198
|
+
target: "awaitingOtp",
|
|
199
|
+
actions: ["setError", "startResendTimer"]
|
|
189
200
|
}
|
|
190
201
|
} },
|
|
191
202
|
awaitingOtp: {
|
|
192
|
-
entry: "startResendTimer",
|
|
193
203
|
invoke: {
|
|
194
204
|
id: "resendTimer",
|
|
195
|
-
src: "resendTimer"
|
|
205
|
+
src: "resendTimer",
|
|
206
|
+
input: ({ context }) => ({ seconds: context.resendTimer })
|
|
196
207
|
},
|
|
197
208
|
on: {
|
|
198
209
|
TICK: { actions: "tickResendTimer" },
|
|
199
210
|
OTP_CHANGED: { actions: "setOtpCode" },
|
|
200
211
|
VERIFY_OTP: { target: "verifyingOtp" },
|
|
201
212
|
RESEND_OTP: {
|
|
202
|
-
target: "
|
|
213
|
+
target: "resendingOtp",
|
|
203
214
|
guard: "canResend"
|
|
204
215
|
},
|
|
205
216
|
BACK: { target: "inputting" }
|
|
@@ -237,14 +248,19 @@ const emailMachine = setup({
|
|
|
237
248
|
}]
|
|
238
249
|
} },
|
|
239
250
|
otpError: {
|
|
240
|
-
|
|
251
|
+
invoke: {
|
|
252
|
+
id: "resendTimer",
|
|
253
|
+
src: "resendTimer",
|
|
254
|
+
input: ({ context }) => ({ seconds: context.resendTimer })
|
|
255
|
+
},
|
|
241
256
|
on: {
|
|
257
|
+
TICK: { actions: "tickResendTimer" },
|
|
242
258
|
OTP_CHANGED: {
|
|
243
259
|
target: "awaitingOtp",
|
|
244
260
|
actions: "setOtpCode"
|
|
245
261
|
},
|
|
246
262
|
RESEND_OTP: {
|
|
247
|
-
target: "
|
|
263
|
+
target: "resendingOtp",
|
|
248
264
|
guard: "canResend"
|
|
249
265
|
},
|
|
250
266
|
BACK: { target: "inputting" }
|
|
@@ -373,7 +389,11 @@ function mapState(snapshot) {
|
|
|
373
389
|
canResend: !context.resendTimerActive,
|
|
374
390
|
attemptsRemaining: context.attemptsRemaining
|
|
375
391
|
};
|
|
376
|
-
if (typedSnapshot.matches("verifyingOtp")) return {
|
|
392
|
+
if (typedSnapshot.matches("verifyingOtp")) return {
|
|
393
|
+
status: "verifyingOtp",
|
|
394
|
+
resendTimer: context.resendTimer,
|
|
395
|
+
canResend: !context.resendTimerActive
|
|
396
|
+
};
|
|
377
397
|
if (typedSnapshot.matches("otpError")) return {
|
|
378
398
|
status: "otpError",
|
|
379
399
|
otpError: context.otpError ?? "Invalid OTP code",
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -1,37 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as IStorageCapability } from "./deepsightService-
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import "./types-
|
|
7
|
-
import "./types-
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import { i as
|
|
11
|
-
import { i as
|
|
1
|
+
import { r as fromPromise } from "./StateMachine-CGAi8x_b.js";
|
|
2
|
+
import { n as createActor } from "./Actor-phIcsUhv.js";
|
|
3
|
+
import { i as WasmUtilConfig, n as IWasmUtilCapability, o as IStorageCapability, r as VirtualCameraCheckOutput } from "./deepsightService-CWnhwXLw.js";
|
|
4
|
+
import { S as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-B1RWflj0.js";
|
|
5
|
+
import "./camera-Dv2WEhGe.js";
|
|
6
|
+
import "./types-BWGxcjiZ.js";
|
|
7
|
+
import "./types-BX1ZlbSR.js";
|
|
8
|
+
import "./Manager-BndLda4_.js";
|
|
9
|
+
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-CN5-GRxP.js";
|
|
10
|
+
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-BnfnTPcx.js";
|
|
11
|
+
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-B5Yv9bDw.js";
|
|
12
|
+
import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-BIq6pJa8.js";
|
|
13
|
+
import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-Ba66ysK2.js";
|
|
12
14
|
|
|
13
|
-
//#region
|
|
14
|
-
type
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
name?: string;
|
|
20
|
-
version?: string;
|
|
15
|
+
//#region src/modules/authentication/authenticationUploadService.d.ts
|
|
16
|
+
type AuthenticationUploadResponse = {
|
|
17
|
+
overallStatus: 'PASS' | 'FAIL';
|
|
18
|
+
captureAttemptsLimit: {
|
|
19
|
+
max: number;
|
|
20
|
+
remaining: number;
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
candidate: string;
|
|
23
|
+
error: {
|
|
24
|
+
name: string;
|
|
25
|
+
message: string;
|
|
25
26
|
};
|
|
27
|
+
imageBase64?: string;
|
|
28
|
+
selfieEncryptedBase64?: string;
|
|
29
|
+
metadata?: string;
|
|
26
30
|
};
|
|
27
|
-
type FingerprintResult = {
|
|
28
|
-
visitorId: string;
|
|
29
|
-
ip: string;
|
|
30
|
-
deviceInfo: DeviceFingerprintInfo;
|
|
31
|
-
};
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region ../infra/src/device/getDeviceData.d.ts
|
|
34
|
-
declare function getDeviceFingerprintInfo(): Promise<DeviceFingerprintInfo>;
|
|
35
31
|
//#endregion
|
|
36
32
|
//#region ../infra/src/providers/browser/BrowserStorageProvider.d.ts
|
|
37
33
|
/**
|
|
@@ -95,22 +91,28 @@ declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapa
|
|
|
95
91
|
getVersions(): Promise<unknown>;
|
|
96
92
|
}
|
|
97
93
|
//#endregion
|
|
98
|
-
//#region src/
|
|
99
|
-
type
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
max: number;
|
|
103
|
-
remaining: number;
|
|
94
|
+
//#region ../infra/src/capabilities/IFingerprintCapability.d.ts
|
|
95
|
+
type DeviceFingerprintInfo = {
|
|
96
|
+
device: {
|
|
97
|
+
model?: string;
|
|
104
98
|
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
99
|
+
os: {
|
|
100
|
+
name?: string;
|
|
101
|
+
version?: string;
|
|
102
|
+
};
|
|
103
|
+
browser: {
|
|
104
|
+
name?: string;
|
|
105
|
+
version?: string;
|
|
109
106
|
};
|
|
110
|
-
imageBase64?: string;
|
|
111
|
-
selfieEncryptedBase64?: string;
|
|
112
|
-
metadata?: string;
|
|
113
107
|
};
|
|
108
|
+
type FingerprintResult = {
|
|
109
|
+
visitorId: string;
|
|
110
|
+
ip: string;
|
|
111
|
+
deviceInfo: DeviceFingerprintInfo;
|
|
112
|
+
};
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region ../infra/src/device/getDeviceData.d.ts
|
|
115
|
+
declare function getDeviceFingerprintInfo(): Promise<DeviceFingerprintInfo>;
|
|
114
116
|
//#endregion
|
|
115
117
|
//#region src/internal/fingerprint/fingerprintApi.d.ts
|
|
116
118
|
declare function getFingerprint(disableIpify?: boolean): Promise<FingerprintResult>;
|
|
@@ -1,18 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
1
|
+
import "./platform-B3nGssGZ.esm.js";
|
|
2
|
+
import "./BaseWasmProvider-BFXU7jj8.esm.js";
|
|
3
|
+
import { f as BrowserStorageProvider } from "./StreamCanvasCapture-9VAzOfOv.esm.js";
|
|
4
|
+
import "./browserSimulation-zWJAZ1vA.esm.js";
|
|
5
|
+
import "./api-3fZO5bmj.esm.js";
|
|
6
|
+
import { C as fromPromise, w as createActor } from "./Manager-D_DMzMWz.esm.js";
|
|
7
7
|
import "./endpoints-CCuj1KZH.esm.js";
|
|
8
|
-
import { s as
|
|
9
|
-
import
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
8
|
+
import { c as FingerprintProvider, l as getDeviceFingerprintInfo, s as IpifyProvider, t as getDisableIpify } from "./session-TBPhHmyy.esm.js";
|
|
9
|
+
import "./BrowserEnvironmentProvider-DApG6lNu.esm.js";
|
|
10
|
+
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-D5rjCu9r.esm.js";
|
|
11
|
+
import "./BrowserTimerProvider-CRhCvln7.esm.js";
|
|
12
|
+
import "./camera-D-MPXRbZ.esm.js";
|
|
13
|
+
import "./stats-D4C7iDy1.esm.js";
|
|
14
|
+
import "./backCameraStream-BJwEXNl4.esm.js";
|
|
15
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-DctESPCy.esm.js";
|
|
16
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-DYRykM5Y.esm.js";
|
|
17
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-C9iQ1d2a.esm.js";
|
|
18
|
+
import { n as createEmailManagerFromActor } from "./emailManager-C5GCSw78.esm.js";
|
|
19
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-DYW1C2GP.esm.js";
|
|
20
|
+
import { n as createPhoneManagerFromActor } from "./phoneManager-CQJim-Ky.esm.js";
|
|
17
21
|
|
|
22
|
+
//#region src/internal/fingerprint/fingerprintApi.ts
|
|
23
|
+
async function getFingerprint(disableIpify) {
|
|
24
|
+
const shouldDisableIpify = disableIpify ?? getDisableIpify();
|
|
25
|
+
return new FingerprintProvider(new IpifyProvider()).getFingerprint(shouldDisableIpify);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
18
29
|
export { BrowserStorageProvider, WasmUtilProvider, createActor, createAuthenticationManagerFromActor, createEmailManagerFromActor, createIdCaptureManagerFromActor, createPhoneManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
package/dist/face-match.d.ts
CHANGED
package/dist/face-match.esm.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
1
|
+
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
2
|
+
import { C as fromPromise, b as setup, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, w as createActor, x as assign } from "./Manager-D_DMzMWz.esm.js";
|
|
4
3
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
4
|
|
|
6
5
|
//#region src/modules/face-match/faceMatchServices.ts
|
package/dist/{faceCaptureManagerFactory-CGpkO_S3.d.ts → faceCaptureManagerFactory-CN5-GRxP.d.ts}
RENAMED
|
@@ -1,8 +1,92 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import {
|
|
1
|
+
import { a as WasmPipeline, n as StateMachine, t as AnyStateMachine } from "./StateMachine-CGAi8x_b.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-phIcsUhv.js";
|
|
3
|
+
import { a as StreamCanvasCapture, c as PermissionResult, f as IMLProviderCapability, l as PermissionStatus, m as IncodeCanvas, n as IWasmUtilCapability, o as IStorageCapability, p as MLProviderConfig, t as DeepsightService, u as IRecordingCapability } from "./deepsightService-CWnhwXLw.js";
|
|
4
|
+
import { t as CameraStream } from "./camera-Dv2WEhGe.js";
|
|
5
|
+
import { r as FlowModuleConfig, t as Flow } from "./types-BX1ZlbSR.js";
|
|
6
|
+
import { t as Manager } from "./Manager-BndLda4_.js";
|
|
5
7
|
|
|
8
|
+
//#region src/modules/authentication/authenticationStateMachine.d.ts
|
|
9
|
+
declare const _authenticationMachine: AnyStateMachine;
|
|
10
|
+
type AuthenticationMachine = typeof _authenticationMachine;
|
|
11
|
+
declare const authenticationMachine: AnyStateMachine;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/internal/faceCapture/types.d.ts
|
|
14
|
+
type CameraResolution = {
|
|
15
|
+
width?: number;
|
|
16
|
+
height?: number;
|
|
17
|
+
};
|
|
18
|
+
type BaseFaceCaptureConfig = {
|
|
19
|
+
showTutorial: boolean;
|
|
20
|
+
showPreview?: boolean;
|
|
21
|
+
assistedOnboarding?: boolean;
|
|
22
|
+
enableFaceRecording?: boolean;
|
|
23
|
+
autoCaptureTimeout: number;
|
|
24
|
+
captureAttempts?: number;
|
|
25
|
+
numberOfAttempts?: number;
|
|
26
|
+
validateLenses?: boolean;
|
|
27
|
+
validateFaceMask?: boolean;
|
|
28
|
+
validateHeadCover?: boolean;
|
|
29
|
+
validateClosedEyes?: boolean;
|
|
30
|
+
validateBrightness?: boolean;
|
|
31
|
+
deepsightLiveness?: 'SINGLE_FRAME' | 'MULTIMODAL' | 'VIDEOLIVENESS';
|
|
32
|
+
cameraResolution?: CameraResolution;
|
|
33
|
+
recording?: {
|
|
34
|
+
capability?: IRecordingCapability;
|
|
35
|
+
};
|
|
36
|
+
ds?: Flow['ds'];
|
|
37
|
+
};
|
|
38
|
+
type FaceCaptureDependencies = {
|
|
39
|
+
storage: IStorageCapability;
|
|
40
|
+
getWasmUtil: () => Promise<IWasmUtilCapability>;
|
|
41
|
+
trackCaptureAttemptFinished?: (payload: {
|
|
42
|
+
logs: string;
|
|
43
|
+
}) => void;
|
|
44
|
+
};
|
|
45
|
+
type DetectionStatus = 'idle' | 'detecting' | 'noFace' | 'tooManyFaces' | 'tooClose' | 'tooFar' | 'blur' | 'dark' | 'faceAngle' | 'headWear' | 'lenses' | 'eyesClosed' | 'faceMask' | 'centerFace' | 'manualCapture' | 'success' | 'error' | 'capturing' | 'getReady' | 'getReadyFinished' | 'offline';
|
|
46
|
+
declare const FACE_ERROR_CODES: {
|
|
47
|
+
readonly FACE_OCCLUDED: "FACE_OCCLUDED";
|
|
48
|
+
readonly LIVENESS: "LIVENESS_ERROR";
|
|
49
|
+
readonly BRIGHTNESS: "BRIGHTNESS_ERROR";
|
|
50
|
+
readonly LENSES: "LENSES_ERROR";
|
|
51
|
+
readonly MASK: "MASK_ERROR";
|
|
52
|
+
readonly CLOSED_EYES: "CLOSED_EYES_ERROR";
|
|
53
|
+
readonly HEAD_COVER: "HEAD_COVER_ERROR";
|
|
54
|
+
readonly SERVER: "SERVER_ERROR";
|
|
55
|
+
readonly FACE_NOT_FOUND: "FACE_NOT_FOUND";
|
|
56
|
+
readonly MULTIPLE_FACES: "MULTIPLE_FACES";
|
|
57
|
+
readonly TOO_BLURRY: "TOO_BLURRY_ERROR";
|
|
58
|
+
readonly TOO_DARK: "TOO_DARK_ERROR";
|
|
59
|
+
readonly USER_IS_NOT_RECOGNIZED: "USER_IS_NOT_RECOGNIZED";
|
|
60
|
+
readonly SPOOF_ATTEMPT_DETECTED: "SPOOF_ATTEMPT_DETECTED";
|
|
61
|
+
readonly FACE_TOO_DARK: "FACE_TOO_DARK";
|
|
62
|
+
readonly LENSES_DETECTED: "LENSES_DETECTED";
|
|
63
|
+
readonly FACE_MASK_DETECTED: "FACE_MASK_DETECTED";
|
|
64
|
+
readonly CLOSED_EYES_DETECTED: "CLOSED_EYES_DETECTED";
|
|
65
|
+
readonly HEAD_COVER_DETECTED: "HEAD_COVER_DETECTED";
|
|
66
|
+
readonly FACE_CROPPING_FAILED: "FACE_CROPPING_FAILED";
|
|
67
|
+
readonly FACE_TOO_SMALL: "FACE_TOO_SMALL";
|
|
68
|
+
readonly FACE_TOO_BLURRY: "FACE_TOO_BLURRY";
|
|
69
|
+
readonly BAD_PHOTO_QUALITY: "BAD_PHOTO_QUALITY";
|
|
70
|
+
readonly PROCESSING_ERROR: "PROCESSING_ERROR";
|
|
71
|
+
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
72
|
+
readonly NONEXISTENT_CUSTOMER: "NONEXISTENT_CUSTOMER";
|
|
73
|
+
readonly HINT_NOT_PROVIDED: "HINT_NOT_PROVIDED";
|
|
74
|
+
readonly SELFIE_IMAGE_LOW_QUALITY: "SELFIE_IMAGE_LOW_QUALITY";
|
|
75
|
+
};
|
|
76
|
+
type FaceErrorCode = (typeof FACE_ERROR_CODES)[keyof typeof FACE_ERROR_CODES];
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/modules/authentication/types.d.ts
|
|
79
|
+
type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/modules/authentication/authenticationActor.d.ts
|
|
82
|
+
type CreateAuthenticationActorOptions = {
|
|
83
|
+
config: AuthenticationConfig;
|
|
84
|
+
dependencies?: FaceCaptureDependencies;
|
|
85
|
+
authHint?: string;
|
|
86
|
+
};
|
|
87
|
+
type AuthenticationActor = ActorRefFrom<AuthenticationMachine>;
|
|
88
|
+
declare function createAuthenticationActor(options: CreateAuthenticationActorOptions): AuthenticationActor;
|
|
89
|
+
//#endregion
|
|
6
90
|
//#region ../infra/src/capabilities/IFaceDetectionCapability.d.ts
|
|
7
91
|
/**
|
|
8
92
|
* Configuration for face detection provider.
|
|
@@ -143,61 +227,6 @@ interface IFaceDetectionCapability extends IMLProviderCapability<FaceDetectionCo
|
|
|
143
227
|
setVideoSelfieMode(enabled: boolean): void;
|
|
144
228
|
}
|
|
145
229
|
//#endregion
|
|
146
|
-
//#region ../infra/src/capabilities/IWasmUtilCapability.d.ts
|
|
147
|
-
type WasmUtilConfig = MLProviderConfig & {
|
|
148
|
-
pipelines?: WasmPipeline[];
|
|
149
|
-
};
|
|
150
|
-
type VirtualCameraCheckOutput = {
|
|
151
|
-
canvas: HTMLCanvasElement | null;
|
|
152
|
-
itr: boolean | null;
|
|
153
|
-
skipped: boolean | null;
|
|
154
|
-
};
|
|
155
|
-
type IWasmUtilCapability = {
|
|
156
|
-
/**
|
|
157
|
-
* Whether the provider has been initialized and is ready to be used.
|
|
158
|
-
*/
|
|
159
|
-
readonly initialized: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Initializes the provider with the given configuration.
|
|
162
|
-
* If WASM was already warmed up via `warmupWasm()`, this returns almost instantly.
|
|
163
|
-
* @param config - Provider configuration including WASM paths
|
|
164
|
-
*/
|
|
165
|
-
initialize(config: WasmUtilConfig): Promise<void>;
|
|
166
|
-
/**
|
|
167
|
-
* Encrypts a base64 image using the WASM utility API.
|
|
168
|
-
* @param image - Base64 image string (no data URL prefix)
|
|
169
|
-
* @returns Encrypted string
|
|
170
|
-
*/
|
|
171
|
-
encryptImage(image: string): string;
|
|
172
|
-
setSdkVersion(version: string): void;
|
|
173
|
-
setSdkPlatform(platform: string): void;
|
|
174
|
-
setDeviceInfo(deviceInfo: object, overrideExisting?: boolean): void;
|
|
175
|
-
setBrowserInfo(browserInfo: object, overrideExisting?: boolean): void;
|
|
176
|
-
setCameraInfo(cameraInfo: object, overrideExisting?: boolean): void;
|
|
177
|
-
setMotionStatus(status: string): void;
|
|
178
|
-
setBackgroundMode(backgroundMode: boolean): void;
|
|
179
|
-
setZc(zc: string): void;
|
|
180
|
-
setInspectorOpened(opened: boolean): void;
|
|
181
|
-
getMetadata(): string;
|
|
182
|
-
analyzeFrame(image: ImageData): Promise<void>;
|
|
183
|
-
getCheck(): string;
|
|
184
|
-
/**
|
|
185
|
-
* Gets the current pipeline state. Must be called before setMotionStatus(),
|
|
186
|
-
* getCheck(), setBackgroundMode(), and getMetadata() for proper metadata generation.
|
|
187
|
-
*/
|
|
188
|
-
getPipelineState(): string;
|
|
189
|
-
estimatePerformance(): string;
|
|
190
|
-
isVirtualCamera(label: string | null): boolean;
|
|
191
|
-
prc(): Promise<void>;
|
|
192
|
-
poc(output: VirtualCameraCheckOutput): Promise<void>;
|
|
193
|
-
ckvcks(data: ArrayBuffer): void;
|
|
194
|
-
getVersions(): Promise<unknown>;
|
|
195
|
-
/**
|
|
196
|
-
* Disposes of resources and resets initialization state.
|
|
197
|
-
*/
|
|
198
|
-
dispose(): Promise<void>;
|
|
199
|
-
};
|
|
200
|
-
//#endregion
|
|
201
230
|
//#region ../infra/src/wasm/WasmPipelineType.d.ts
|
|
202
231
|
declare enum WasmPipelineType {
|
|
203
232
|
IdBlurGlarePipeline = 0,
|
|
@@ -298,88 +327,6 @@ declare class FaceDetectionProvider extends BaseWasmProvider implements IFaceDet
|
|
|
298
327
|
private formatFaceCoordinates;
|
|
299
328
|
}
|
|
300
329
|
//#endregion
|
|
301
|
-
//#region src/modules/authentication/authenticationStateMachine.d.ts
|
|
302
|
-
declare const _authenticationMachine: AnyStateMachine;
|
|
303
|
-
type AuthenticationMachine = typeof _authenticationMachine;
|
|
304
|
-
declare const authenticationMachine: AnyStateMachine;
|
|
305
|
-
//#endregion
|
|
306
|
-
//#region src/internal/faceCapture/types.d.ts
|
|
307
|
-
type CameraResolution = {
|
|
308
|
-
width?: number;
|
|
309
|
-
height?: number;
|
|
310
|
-
};
|
|
311
|
-
type BaseFaceCaptureConfig = {
|
|
312
|
-
showTutorial: boolean;
|
|
313
|
-
showPreview?: boolean;
|
|
314
|
-
assistedOnboarding?: boolean;
|
|
315
|
-
enableFaceRecording?: boolean;
|
|
316
|
-
autoCaptureTimeout: number;
|
|
317
|
-
captureAttempts?: number;
|
|
318
|
-
numberOfAttempts?: number;
|
|
319
|
-
validateLenses?: boolean;
|
|
320
|
-
validateFaceMask?: boolean;
|
|
321
|
-
validateHeadCover?: boolean;
|
|
322
|
-
validateClosedEyes?: boolean;
|
|
323
|
-
validateBrightness?: boolean;
|
|
324
|
-
deepsightLiveness?: 'SINGLE_FRAME' | 'MULTIMODAL' | 'VIDEOLIVENESS';
|
|
325
|
-
cameraResolution?: CameraResolution;
|
|
326
|
-
recording?: {
|
|
327
|
-
capability?: IRecordingCapability;
|
|
328
|
-
};
|
|
329
|
-
ds?: Flow['ds'];
|
|
330
|
-
};
|
|
331
|
-
type FaceCaptureDependencies = {
|
|
332
|
-
storage: IStorageCapability;
|
|
333
|
-
getWasmUtil: () => Promise<IWasmUtilCapability>;
|
|
334
|
-
trackCaptureAttemptFinished?: (payload: {
|
|
335
|
-
logs: string;
|
|
336
|
-
}) => void;
|
|
337
|
-
};
|
|
338
|
-
type DetectionStatus = 'idle' | 'detecting' | 'noFace' | 'tooManyFaces' | 'tooClose' | 'tooFar' | 'blur' | 'dark' | 'faceAngle' | 'headWear' | 'lenses' | 'eyesClosed' | 'faceMask' | 'centerFace' | 'manualCapture' | 'success' | 'error' | 'capturing' | 'getReady' | 'getReadyFinished' | 'offline';
|
|
339
|
-
declare const FACE_ERROR_CODES: {
|
|
340
|
-
readonly FACE_OCCLUDED: "FACE_OCCLUDED";
|
|
341
|
-
readonly LIVENESS: "LIVENESS_ERROR";
|
|
342
|
-
readonly BRIGHTNESS: "BRIGHTNESS_ERROR";
|
|
343
|
-
readonly LENSES: "LENSES_ERROR";
|
|
344
|
-
readonly MASK: "MASK_ERROR";
|
|
345
|
-
readonly CLOSED_EYES: "CLOSED_EYES_ERROR";
|
|
346
|
-
readonly HEAD_COVER: "HEAD_COVER_ERROR";
|
|
347
|
-
readonly SERVER: "SERVER_ERROR";
|
|
348
|
-
readonly FACE_NOT_FOUND: "FACE_NOT_FOUND";
|
|
349
|
-
readonly MULTIPLE_FACES: "MULTIPLE_FACES";
|
|
350
|
-
readonly TOO_BLURRY: "TOO_BLURRY_ERROR";
|
|
351
|
-
readonly TOO_DARK: "TOO_DARK_ERROR";
|
|
352
|
-
readonly USER_IS_NOT_RECOGNIZED: "USER_IS_NOT_RECOGNIZED";
|
|
353
|
-
readonly SPOOF_ATTEMPT_DETECTED: "SPOOF_ATTEMPT_DETECTED";
|
|
354
|
-
readonly FACE_TOO_DARK: "FACE_TOO_DARK";
|
|
355
|
-
readonly LENSES_DETECTED: "LENSES_DETECTED";
|
|
356
|
-
readonly FACE_MASK_DETECTED: "FACE_MASK_DETECTED";
|
|
357
|
-
readonly CLOSED_EYES_DETECTED: "CLOSED_EYES_DETECTED";
|
|
358
|
-
readonly HEAD_COVER_DETECTED: "HEAD_COVER_DETECTED";
|
|
359
|
-
readonly FACE_CROPPING_FAILED: "FACE_CROPPING_FAILED";
|
|
360
|
-
readonly FACE_TOO_SMALL: "FACE_TOO_SMALL";
|
|
361
|
-
readonly FACE_TOO_BLURRY: "FACE_TOO_BLURRY";
|
|
362
|
-
readonly BAD_PHOTO_QUALITY: "BAD_PHOTO_QUALITY";
|
|
363
|
-
readonly PROCESSING_ERROR: "PROCESSING_ERROR";
|
|
364
|
-
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
365
|
-
readonly NONEXISTENT_CUSTOMER: "NONEXISTENT_CUSTOMER";
|
|
366
|
-
readonly HINT_NOT_PROVIDED: "HINT_NOT_PROVIDED";
|
|
367
|
-
readonly SELFIE_IMAGE_LOW_QUALITY: "SELFIE_IMAGE_LOW_QUALITY";
|
|
368
|
-
};
|
|
369
|
-
type FaceErrorCode = (typeof FACE_ERROR_CODES)[keyof typeof FACE_ERROR_CODES];
|
|
370
|
-
//#endregion
|
|
371
|
-
//#region src/modules/authentication/types.d.ts
|
|
372
|
-
type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
|
|
373
|
-
//#endregion
|
|
374
|
-
//#region src/modules/authentication/authenticationActor.d.ts
|
|
375
|
-
type CreateAuthenticationActorOptions = {
|
|
376
|
-
config: AuthenticationConfig;
|
|
377
|
-
dependencies?: FaceCaptureDependencies;
|
|
378
|
-
authHint?: string;
|
|
379
|
-
};
|
|
380
|
-
type AuthenticationActor = ActorRefFrom<AuthenticationMachine>;
|
|
381
|
-
declare function createAuthenticationActor(options: CreateAuthenticationActorOptions): AuthenticationActor;
|
|
382
|
-
//#endregion
|
|
383
330
|
//#region src/modules/selfie/types.d.ts
|
|
384
331
|
type SelfieConfig = FlowModuleConfig['SELFIE'] & BaseFaceCaptureConfig;
|
|
385
332
|
type SelfieDependencies = FaceCaptureDependencies;
|
|
@@ -612,4 +559,4 @@ declare function createFaceCaptureManagerFromActor(actor: FaceCaptureActor, modu
|
|
|
612
559
|
};
|
|
613
560
|
type FaceCaptureManager = ReturnType<typeof createFaceCaptureManagerFromActor>;
|
|
614
561
|
//#endregion
|
|
615
|
-
export {
|
|
562
|
+
export { AuthenticationConfig as _, SelfieMachine as a, authenticationMachine as b, FaceCaptureEvent as c, SelfieConfig as d, SendFaceImageResponse as f, createAuthenticationActor as g, CreateAuthenticationActorOptions as h, SelfieActor as i, FaceCaptureInput as l, AuthenticationActor as m, FaceCaptureManagerState as n, selfieMachine as o, BaseWasmProvider as p, CreateSelfieActorOptions as r, FaceCaptureContext as s, FaceCaptureManager as t, faceCaptureMachine as u, DetectionStatus as v, FaceErrorCode as y };
|