@incodetech/core 0.0.0-dev-20260402-728ce7f → 0.0.0-dev-20260403-eccc51c
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/{BaseWasmProvider-BFXU7jj8.esm.js → BaseWasmProvider--AzPfwOm.esm.js} +4 -4
- package/dist/{Manager-9L3Rmc6X.esm.js → Manager-C6AGXEq_.esm.js} +4 -3
- package/dist/{StreamCanvasCapture-BowJVbkC.esm.js → StreamCanvasCapture-DkpkIgyL.esm.js} +6 -6
- package/dist/{WasmUtilProvider-DctESPCy.esm.js → WasmUtilProvider-BonqBWdj.esm.js} +1 -1
- package/dist/{addressSearch-uoJHvUT9.esm.js → addressSearch-DC5By0cC.esm.js} +4 -4
- package/dist/antifraud.d.ts +57 -0
- package/dist/antifraud.esm.js +77 -0
- package/dist/authentication.d.ts +9 -9
- package/dist/authentication.esm.js +13 -13
- package/dist/{authenticationManager-xQrUkboA.esm.js → authenticationManager-B4gSCgrO.esm.js} +6 -6
- package/dist/{authenticationManager-B5Yv9bDw.d.ts → authenticationManager-Bd10YGSO.d.ts} +2 -2
- package/dist/{backCameraStream-BJwEXNl4.esm.js → backCameraStream-DF_d7hTz.esm.js} +50 -21
- package/dist/consent.d.ts +55 -55
- package/dist/consent.esm.js +3 -3
- package/dist/curp-validation.d.ts +5 -5
- package/dist/curp-validation.esm.js +3 -3
- package/dist/{deepsightLoader-D2MKmB5z.esm.js → deepsightLoader-DKgEdLIS.esm.js} +7 -7
- package/dist/{deepsightService-CWnhwXLw.d.ts → deepsightService-Ciu0atv5.d.ts} +2 -2
- package/dist/document-capture.d.ts +73 -73
- package/dist/document-capture.esm.js +8 -7
- package/dist/document-upload.d.ts +50 -50
- package/dist/document-upload.esm.js +8 -7
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +9 -9
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +5 -5
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +5 -5
- package/dist/{emailManager-BIq6pJa8.d.ts → emailManager-BQPIJR_O.d.ts} +2 -2
- package/dist/{emailManager-JowzcrAP.esm.js → emailManager-CpAwvP3v.esm.js} +5 -5
- package/dist/{endpoints-DEXxYYFi.esm.js → endpoints-CI5-28jT.esm.js} +2 -1
- package/dist/extensibility.d.ts +13 -13
- package/dist/extensibility.esm.js +20 -20
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +3 -3
- package/dist/{faceCaptureManagerFactory-CN5-GRxP.d.ts → faceCaptureManagerFactory-CdwpYykv.d.ts} +6 -6
- package/dist/{faceCaptureSetup-Bq4TPX5D.esm.js → faceCaptureSetup-DbXgtcp7.esm.js} +11 -11
- package/dist/flow.d.ts +6 -6
- package/dist/flow.esm.js +8 -8
- package/dist/{flowCompletionService-CUT-cibE.esm.js → flowCompletionService-TnWijsSw.esm.js} +2 -2
- package/dist/{flowServices-Bi3F1654.esm.js → flowServices-CO2sIR3D.esm.js} +3 -3
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +4 -4
- package/dist/government-validation.d.ts +2 -2
- package/dist/government-validation.esm.js +4 -4
- package/dist/id.d.ts +9 -9
- package/dist/id.esm.js +15 -15
- package/dist/{idCaptureManager-DlZXRwne.esm.js → idCaptureManager-DaLU1ug7.esm.js} +53 -24
- package/dist/{idCaptureManager-B1RWflj0.d.ts → idCaptureManager-IdqsAASp.d.ts} +14 -6
- package/dist/index.d.ts +10 -9
- package/dist/index.esm.js +16 -16
- package/dist/{lib-B5byelWf.esm.js → lib-i-4qLKdG.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +60 -60
- package/dist/mandatory-consent.esm.js +3 -3
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +5 -5
- package/dist/{phoneManager-zIENJkK4.esm.js → phoneManager-BAPHSXx8.esm.js} +5 -5
- package/dist/{phoneManager-Ba66ysK2.d.ts → phoneManager-DA8WUJtl.d.ts} +2 -2
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +4 -4
- package/dist/selfie.d.ts +9 -9
- package/dist/selfie.esm.js +13 -13
- package/dist/{selfieManager-DSEpKb7Q.esm.js → selfieManager-BSkzncsa.esm.js} +4 -4
- package/dist/{selfieManager-BnfnTPcx.d.ts → selfieManager-Dft5wZQ_.d.ts} +2 -2
- package/dist/{session-Cr89qxxK.esm.js → session-OglUYC9l.esm.js} +5 -5
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +3 -3
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +3 -3
- package/dist/{stats-D4C7iDy1.esm.js → stats-BVigf5Rn.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-BWGxcjiZ.d.ts → types-CiLyvJGb.d.ts} +1 -1
- package/dist/{types-BX1ZlbSR.d.ts → types-D8Y1faI5.d.ts} +1 -1
- package/package.json +5 -1
- /package/dist/{Actor-phIcsUhv.d.ts → Actor-By8WNHi-.d.ts} +0 -0
- /package/dist/{BrowserEnvironmentProvider-DApG6lNu.esm.js → BrowserEnvironmentProvider-BECjyw3_.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-CRhCvln7.esm.js → BrowserTimerProvider-CIqH6hJp.esm.js} +0 -0
- /package/dist/{Manager-BndLda4_.d.ts → Manager-CCT_-HuZ.d.ts} +0 -0
- /package/dist/{StateMachine-CGAi8x_b.d.ts → StateMachine-CM_aOfNL.d.ts} +0 -0
- /package/dist/{api-3fZO5bmj.esm.js → api-C2uzxrpN.esm.js} +0 -0
- /package/dist/{browserSimulation-zWJAZ1vA.esm.js → browserSimulation-DYAk0Ipe.esm.js} +0 -0
- /package/dist/{camera-Dv2WEhGe.d.ts → camera-6XJdOeBF.d.ts} +0 -0
- /package/dist/{camera-D-MPXRbZ.esm.js → camera-DAuRUvnp.esm.js} +0 -0
- /package/dist/{chunk-Boje8faD.esm.js → chunk-D6hkk-hd.esm.js} +0 -0
- /package/dist/{displayErrors-DzzB3fcR.d.ts → displayErrors-CGJwvrTl.d.ts} +0 -0
- /package/dist/{flowCompletionService-C_CShl_d.d.ts → flowCompletionService-BOd4Rk8n.d.ts} +0 -0
- /package/dist/{id-Dv0it9CY.esm.js → id-CzDAG_kM.esm.js} +0 -0
- /package/dist/{index-CuY8tqBC.d.ts → index-BuVKc9bv.d.ts} +0 -0
- /package/dist/{platform-B3nGssGZ.esm.js → platform-DdhkonXk.esm.js} +0 -0
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./browserSimulation-
|
|
2
|
-
import { t as api } from "./api-
|
|
3
|
-
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
5
|
-
import "./session-
|
|
6
|
-
import "./BrowserEnvironmentProvider-
|
|
7
|
-
import "./BrowserTimerProvider-
|
|
8
|
-
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-
|
|
9
|
-
import { t as getFlow } from "./flowServices-
|
|
1
|
+
import "./browserSimulation-DYAk0Ipe.esm.js";
|
|
2
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
3
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-C6AGXEq_.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
5
|
+
import "./session-OglUYC9l.esm.js";
|
|
6
|
+
import "./BrowserEnvironmentProvider-BECjyw3_.esm.js";
|
|
7
|
+
import "./BrowserTimerProvider-CIqH6hJp.esm.js";
|
|
8
|
+
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-DC5By0cC.esm.js";
|
|
9
|
+
import { t as getFlow } from "./flowServices-CO2sIR3D.esm.js";
|
|
10
10
|
|
|
11
11
|
//#region src/modules/ekyb/ekybConstants.ts
|
|
12
12
|
const UBO_INPUT_LIMIT = 8;
|
package/dist/ekyc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./Actor-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-
|
|
1
|
+
import "./Actor-By8WNHi-.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CCT_-HuZ.js";
|
|
3
|
+
import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-CGJwvrTl.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/ekyc/types.d.ts
|
|
6
6
|
type EkycFieldSource = 'user_input' | 'document_scan' | 'poa_document' | 'phone_module_input' | 'email_module_input' | false;
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import "./BrowserTimerProvider-
|
|
5
|
-
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-
|
|
1
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-C6AGXEq_.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
4
|
+
import "./BrowserTimerProvider-CIqH6hJp.esm.js";
|
|
5
|
+
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-DC5By0cC.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/ekyc/ekycConsts.ts
|
|
8
8
|
const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER"];
|
package/dist/email.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./Actor-
|
|
2
|
-
import "./Manager-
|
|
3
|
-
import { a as emailMachine, n as EmailState, o as EmailConfig, r as createEmailManager, t as EmailManager } from "./emailManager-
|
|
1
|
+
import "./Actor-By8WNHi-.js";
|
|
2
|
+
import "./Manager-CCT_-HuZ.js";
|
|
3
|
+
import { a as emailMachine, n as EmailState, o as EmailConfig, r as createEmailManager, t as EmailManager } from "./emailManager-BQPIJR_O.js";
|
|
4
4
|
export { type EmailConfig, type EmailManager, type EmailState, createEmailManager, emailMachine };
|
package/dist/email.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./Manager-
|
|
3
|
-
import "./endpoints-
|
|
4
|
-
import "./BrowserTimerProvider-
|
|
5
|
-
import { r as emailMachine, t as createEmailManager } from "./emailManager-
|
|
1
|
+
import "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import "./Manager-C6AGXEq_.esm.js";
|
|
3
|
+
import "./endpoints-CI5-28jT.esm.js";
|
|
4
|
+
import "./BrowserTimerProvider-CIqH6hJp.esm.js";
|
|
5
|
+
import { r as emailMachine, t as createEmailManager } from "./emailManager-CpAwvP3v.esm.js";
|
|
6
6
|
|
|
7
7
|
export { createEmailManager, emailMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import { t as ActorRefFrom } from "./Actor-By8WNHi-.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CCT_-HuZ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/email/types.d.ts
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
1
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-C6AGXEq_.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
4
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CIqH6hJp.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/email/emailServices.ts
|
|
7
7
|
async function fetchEmail(signal) {
|
|
@@ -119,7 +119,7 @@ const emailMachine = setup({
|
|
|
119
119
|
hasPrefill: ({ context }) => context.config.prefill,
|
|
120
120
|
hasOtpVerification: ({ context }) => context.config.otpVerification,
|
|
121
121
|
isValidEmail: ({ context }) => context.isValid,
|
|
122
|
-
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining >
|
|
122
|
+
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 1,
|
|
123
123
|
canResend: ({ context }) => !context.resendTimerActive
|
|
124
124
|
}
|
|
125
125
|
}).createMachine({
|
|
@@ -61,7 +61,8 @@ const endpoints = {
|
|
|
61
61
|
qrRefreshUuid: "/omni/qr/refresh",
|
|
62
62
|
addSignature: "/omni/add/signature",
|
|
63
63
|
addSignatureV2: "/omni/add/signature/v2",
|
|
64
|
-
addInitials: "/omni/add/initial"
|
|
64
|
+
addInitials: "/omni/add/initial",
|
|
65
|
+
processAntifraud: "/omni/process/antifraud"
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
//#endregion
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { r as fromPromise } from "./StateMachine-
|
|
2
|
-
import { n as createActor } from "./Actor-
|
|
3
|
-
import { i as WasmUtilConfig, n as IWasmUtilCapability, o as IStorageCapability, r as VirtualCameraCheckOutput } from "./deepsightService-
|
|
4
|
-
import { S as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-
|
|
5
|
-
import "./camera-
|
|
6
|
-
import "./types-
|
|
7
|
-
import "./types-
|
|
8
|
-
import "./Manager-
|
|
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-
|
|
10
|
-
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-
|
|
11
|
-
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-
|
|
12
|
-
import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-
|
|
13
|
-
import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-
|
|
1
|
+
import { r as fromPromise } from "./StateMachine-CM_aOfNL.js";
|
|
2
|
+
import { n as createActor } from "./Actor-By8WNHi-.js";
|
|
3
|
+
import { i as WasmUtilConfig, n as IWasmUtilCapability, o as IStorageCapability, r as VirtualCameraCheckOutput } from "./deepsightService-Ciu0atv5.js";
|
|
4
|
+
import { S as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-IdqsAASp.js";
|
|
5
|
+
import "./camera-6XJdOeBF.js";
|
|
6
|
+
import "./types-CiLyvJGb.js";
|
|
7
|
+
import "./types-D8Y1faI5.js";
|
|
8
|
+
import "./Manager-CCT_-HuZ.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-CdwpYykv.js";
|
|
10
|
+
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-Dft5wZQ_.js";
|
|
11
|
+
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-Bd10YGSO.js";
|
|
12
|
+
import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-BQPIJR_O.js";
|
|
13
|
+
import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-DA8WUJtl.js";
|
|
14
14
|
|
|
15
15
|
//#region src/modules/authentication/authenticationUploadService.d.ts
|
|
16
16
|
type AuthenticationUploadResponse = {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import "./platform-
|
|
2
|
-
import "./BaseWasmProvider
|
|
3
|
-
import { f as BrowserStorageProvider } from "./StreamCanvasCapture-
|
|
4
|
-
import "./browserSimulation-
|
|
5
|
-
import "./api-
|
|
6
|
-
import { C as createActor, S as fromPromise } from "./Manager-
|
|
7
|
-
import "./endpoints-
|
|
8
|
-
import { c as FingerprintProvider, l as getDeviceFingerprintInfo, s as IpifyProvider, t as getDisableIpify } from "./session-
|
|
9
|
-
import "./BrowserEnvironmentProvider-
|
|
10
|
-
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
11
|
-
import "./BrowserTimerProvider-
|
|
12
|
-
import "./camera-
|
|
13
|
-
import "./stats-
|
|
14
|
-
import "./backCameraStream-
|
|
15
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
16
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
17
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
18
|
-
import { n as createEmailManagerFromActor } from "./emailManager-
|
|
19
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
20
|
-
import { n as createPhoneManagerFromActor } from "./phoneManager-
|
|
1
|
+
import "./platform-DdhkonXk.esm.js";
|
|
2
|
+
import "./BaseWasmProvider--AzPfwOm.esm.js";
|
|
3
|
+
import { f as BrowserStorageProvider } from "./StreamCanvasCapture-DkpkIgyL.esm.js";
|
|
4
|
+
import "./browserSimulation-DYAk0Ipe.esm.js";
|
|
5
|
+
import "./api-C2uzxrpN.esm.js";
|
|
6
|
+
import { C as createActor, S as fromPromise } from "./Manager-C6AGXEq_.esm.js";
|
|
7
|
+
import "./endpoints-CI5-28jT.esm.js";
|
|
8
|
+
import { c as FingerprintProvider, l as getDeviceFingerprintInfo, s as IpifyProvider, t as getDisableIpify } from "./session-OglUYC9l.esm.js";
|
|
9
|
+
import "./BrowserEnvironmentProvider-BECjyw3_.esm.js";
|
|
10
|
+
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-DaLU1ug7.esm.js";
|
|
11
|
+
import "./BrowserTimerProvider-CIqH6hJp.esm.js";
|
|
12
|
+
import "./camera-DAuRUvnp.esm.js";
|
|
13
|
+
import "./stats-BVigf5Rn.esm.js";
|
|
14
|
+
import "./backCameraStream-DF_d7hTz.esm.js";
|
|
15
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BonqBWdj.esm.js";
|
|
16
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-DbXgtcp7.esm.js";
|
|
17
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-B4gSCgrO.esm.js";
|
|
18
|
+
import { n as createEmailManagerFromActor } from "./emailManager-CpAwvP3v.esm.js";
|
|
19
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-BSkzncsa.esm.js";
|
|
20
|
+
import { n as createPhoneManagerFromActor } from "./phoneManager-BAPHSXx8.esm.js";
|
|
21
21
|
|
|
22
22
|
//#region src/internal/fingerprint/fingerprintApi.ts
|
|
23
23
|
async function getFingerprint(disableIpify) {
|
package/dist/face-match.d.ts
CHANGED
package/dist/face-match.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-C6AGXEq_.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/face-match/faceMatchServices.ts
|
|
6
6
|
/**
|
package/dist/{faceCaptureManagerFactory-CN5-GRxP.d.ts → faceCaptureManagerFactory-CdwpYykv.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as WasmPipeline, n as StateMachine, t as AnyStateMachine } from "./StateMachine-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
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-
|
|
4
|
-
import { t as CameraStream } from "./camera-
|
|
5
|
-
import { r as FlowModuleConfig, t as Flow } from "./types-
|
|
6
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import { a as WasmPipeline, n as StateMachine, t as AnyStateMachine } from "./StateMachine-CM_aOfNL.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-By8WNHi-.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-Ciu0atv5.js";
|
|
4
|
+
import { t as CameraStream } from "./camera-6XJdOeBF.js";
|
|
5
|
+
import { r as FlowModuleConfig, t as Flow } from "./types-D8Y1faI5.js";
|
|
6
|
+
import { t as Manager } from "./Manager-CCT_-HuZ.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationStateMachine.d.ts
|
|
9
9
|
declare const _authenticationMachine: AnyStateMachine;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as isIPhone14OrHigher, n as isDesktop, r as isIOS, t as isAndroid } from "./platform-
|
|
2
|
-
import { i as IncodeCanvas, l as mlWasmJSApi_default, t as BaseWasmProvider, u as WasmPipelineType } from "./BaseWasmProvider
|
|
3
|
-
import { a as uploadDeepsightVideo, c as requestPermission, i as stopRecording$1, l as StreamCanvasProcessingSession, n as createRecordingSession, o as OpenViduRecordingProvider, p as getDeviceClass, r as startRecording, s as checkPermission, t as StreamCanvasCapture, u as flagFaceManualReview } from "./StreamCanvasCapture-
|
|
4
|
-
import { r as getToken, t as api } from "./api-
|
|
5
|
-
import { S as fromPromise, b as assign, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-
|
|
6
|
-
import { t as endpoints } from "./endpoints-
|
|
7
|
-
import { i as stopCameraStream, r as requestCameraAccess } from "./camera-
|
|
8
|
-
import { t as addDeviceStats } from "./stats-
|
|
9
|
-
import { n as getDesktopCameraStream, t as getBackCameraStream } from "./backCameraStream-
|
|
1
|
+
import { a as isIPhone14OrHigher, n as isDesktop, r as isIOS, t as isAndroid } from "./platform-DdhkonXk.esm.js";
|
|
2
|
+
import { i as IncodeCanvas, l as mlWasmJSApi_default, t as BaseWasmProvider, u as WasmPipelineType } from "./BaseWasmProvider--AzPfwOm.esm.js";
|
|
3
|
+
import { a as uploadDeepsightVideo, c as requestPermission, i as stopRecording$1, l as StreamCanvasProcessingSession, n as createRecordingSession, o as OpenViduRecordingProvider, p as getDeviceClass, r as startRecording, s as checkPermission, t as StreamCanvasCapture, u as flagFaceManualReview } from "./StreamCanvasCapture-DkpkIgyL.esm.js";
|
|
4
|
+
import { r as getToken, t as api } from "./api-C2uzxrpN.esm.js";
|
|
5
|
+
import { S as fromPromise, b as assign, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-C6AGXEq_.esm.js";
|
|
6
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
7
|
+
import { i as stopCameraStream, r as requestCameraAccess } from "./camera-DAuRUvnp.esm.js";
|
|
8
|
+
import { t as addDeviceStats } from "./stats-BVigf5Rn.esm.js";
|
|
9
|
+
import { n as getDesktopCameraStream, t as getBackCameraStream } from "./backCameraStream-DF_d7hTz.esm.js";
|
|
10
10
|
|
|
11
11
|
//#region src/internal/faceCapture/faceCaptureManagerFactory.ts
|
|
12
12
|
function getPermissionStatus(snapshot) {
|
|
@@ -413,7 +413,7 @@ async function initializeCamera(params) {
|
|
|
413
413
|
});
|
|
414
414
|
await params.deepsightService.performPrcCheck({ constraints: { video: prcConstraints.video } });
|
|
415
415
|
return {
|
|
416
|
-
stream: config.assistedOnboarding ? await getBackCameraStream() : await getFrontCameraStream(config.cameraResolution),
|
|
416
|
+
stream: config.assistedOnboarding ? (await getBackCameraStream()).stream : await getFrontCameraStream(config.cameraResolution),
|
|
417
417
|
provider
|
|
418
418
|
};
|
|
419
419
|
}
|
|
@@ -543,7 +543,7 @@ async function stopRecording(session) {
|
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
async function initializeDeepsightSession(options) {
|
|
546
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
546
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-DKgEdLIS.esm.js");
|
|
547
547
|
return loadDeepsightSession({
|
|
548
548
|
ds: options.ds,
|
|
549
549
|
storage: options.storage
|
package/dist/flow.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as WasmPipeline, t as AnyStateMachine } from "./StateMachine-
|
|
2
|
-
import "./camera-
|
|
3
|
-
import "./types-
|
|
4
|
-
import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-
|
|
5
|
-
import { t as Manager } from "./Manager-
|
|
6
|
-
import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-
|
|
1
|
+
import { a as WasmPipeline, t as AnyStateMachine } from "./StateMachine-CM_aOfNL.js";
|
|
2
|
+
import "./camera-6XJdOeBF.js";
|
|
3
|
+
import "./types-CiLyvJGb.js";
|
|
4
|
+
import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-D8Y1faI5.js";
|
|
5
|
+
import { t as Manager } from "./Manager-CCT_-HuZ.js";
|
|
6
|
+
import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-BOd4Rk8n.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/flow/flowUtils.d.ts
|
|
9
9
|
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./browserSimulation-
|
|
2
|
-
import "./api-
|
|
3
|
-
import { C as createActor, S as fromPromise, b as assign, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-
|
|
4
|
-
import "./endpoints-
|
|
5
|
-
import "./session-
|
|
6
|
-
import "./BrowserEnvironmentProvider-
|
|
7
|
-
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-
|
|
8
|
-
import { t as getFinishStatus } from "./flowCompletionService-
|
|
1
|
+
import "./browserSimulation-DYAk0Ipe.esm.js";
|
|
2
|
+
import "./api-C2uzxrpN.esm.js";
|
|
3
|
+
import { C as createActor, S as fromPromise, b as assign, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-C6AGXEq_.esm.js";
|
|
4
|
+
import "./endpoints-CI5-28jT.esm.js";
|
|
5
|
+
import "./session-OglUYC9l.esm.js";
|
|
6
|
+
import "./BrowserEnvironmentProvider-BECjyw3_.esm.js";
|
|
7
|
+
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-CO2sIR3D.esm.js";
|
|
8
|
+
import { t as getFinishStatus } from "./flowCompletionService-TnWijsSw.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/flow/flowStateMachine.ts
|
|
11
11
|
const flowMachine = setup({
|
package/dist/{flowCompletionService-CUT-cibE.esm.js → flowCompletionService-TnWijsSw.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/flow/flowCompletionService.ts
|
|
5
5
|
const getFinishStatus = async (flowId, signal) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./session-
|
|
1
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
3
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./session-OglUYC9l.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/flow/flowUtils.ts
|
|
6
6
|
const WASM_MODULE_PIPELINES = {
|
package/dist/geolocation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./Actor-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import "./Actor-By8WNHi-.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CCT_-HuZ.js";
|
|
3
3
|
|
|
4
4
|
//#region ../infra/src/capabilities/IGeolocationCapability.d.ts
|
|
5
5
|
type GeolocationCoords = {
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as isIOS, t as isAndroid } from "./platform-
|
|
2
|
-
import { t as api } from "./api-
|
|
3
|
-
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { r as isIOS, t as isAndroid } from "./platform-DdhkonXk.esm.js";
|
|
2
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
3
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-C6AGXEq_.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
7
7
|
var BrowserGeolocationProvider = class {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./Actor-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import "./Actor-By8WNHi-.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CCT_-HuZ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/government-validation/types.d.ts
|
|
5
5
|
type GovernmentValidationConfig = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { C as createActor, S as fromPromise, b as assign, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
1
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-C6AGXEq_.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
4
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CIqH6hJp.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/government-validation/governmentValidationServices.ts
|
|
7
7
|
async function processGovernmentValidation(signal) {
|
package/dist/id.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./StateMachine-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { c as PermissionResult, l as PermissionStatus } from "./deepsightService-
|
|
4
|
-
import { A as IdCaptureEvent, B as UploadIdResponse, C as CapturedImage, D as IdCaptureConfig, E as ID_ERROR_CODES, F as IdDocumentType, H as IdCaptureSettings, I as IdError, L as IdErrorCode, M as IdCaptureInput, N as IdCaptureMode, O as IdCaptureContext, P as IdCaptureThresholds, R as IdFlowStep, S as CaptureIdResponse, T as DetectionStatus, V as DetectionOrientation, _ as CreateIdCaptureActorOptions, a as IdCaptureInitResult, b as IdCaptureMachine, c as UploadIdImageParams, d as processId, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, j as IdCaptureGeometry, k as IdCaptureDependencies, l as ValidationError, m as stopStream, n as IdCaptureState, o as InitializeIdCaptureParams, p as stopRecording, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as initializeIdCapture, v as IdCaptureActor, w as DetectionArea, x as idCaptureMachine, y as createIdCaptureActor, z as RecordingSession } from "./idCaptureManager-
|
|
5
|
-
import { t as CameraStream } from "./camera-
|
|
6
|
-
import "./types-
|
|
7
|
-
import "./types-
|
|
8
|
-
import "./Manager-
|
|
9
|
-
import "./index-
|
|
1
|
+
import "./StateMachine-CM_aOfNL.js";
|
|
2
|
+
import "./Actor-By8WNHi-.js";
|
|
3
|
+
import { c as PermissionResult, l as PermissionStatus } from "./deepsightService-Ciu0atv5.js";
|
|
4
|
+
import { A as IdCaptureEvent, B as UploadIdResponse, C as CapturedImage, D as IdCaptureConfig, E as ID_ERROR_CODES, F as IdDocumentType, H as IdCaptureSettings, I as IdError, L as IdErrorCode, M as IdCaptureInput, N as IdCaptureMode, O as IdCaptureContext, P as IdCaptureThresholds, R as IdFlowStep, S as CaptureIdResponse, T as DetectionStatus, V as DetectionOrientation, _ as CreateIdCaptureActorOptions, a as IdCaptureInitResult, b as IdCaptureMachine, c as UploadIdImageParams, d as processId, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, j as IdCaptureGeometry, k as IdCaptureDependencies, l as ValidationError, m as stopStream, n as IdCaptureState, o as InitializeIdCaptureParams, p as stopRecording, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as initializeIdCapture, v as IdCaptureActor, w as DetectionArea, x as idCaptureMachine, y as createIdCaptureActor, z as RecordingSession } from "./idCaptureManager-IdqsAASp.js";
|
|
5
|
+
import { t as CameraStream } from "./camera-6XJdOeBF.js";
|
|
6
|
+
import "./types-CiLyvJGb.js";
|
|
7
|
+
import "./types-D8Y1faI5.js";
|
|
8
|
+
import "./Manager-CCT_-HuZ.js";
|
|
9
|
+
import "./index-BuVKc9bv.js";
|
|
10
10
|
export { CameraStream, CaptureIdResponse, CapturedImage, CreateIdCaptureActorOptions, DetectionArea, DetectionOrientation, DetectionStatus, ID_ERROR_CODES, IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, IdCaptureMachine, IdCaptureManager, IdCaptureMode, IdCaptureSettings, IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, PermissionResult, PermissionStatus, RecordingSession, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
package/dist/id.esm.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./platform-
|
|
2
|
-
import "./BaseWasmProvider
|
|
3
|
-
import "./StreamCanvasCapture-
|
|
4
|
-
import "./browserSimulation-
|
|
5
|
-
import "./api-
|
|
6
|
-
import "./Manager-
|
|
7
|
-
import "./endpoints-
|
|
8
|
-
import "./session-
|
|
9
|
-
import "./BrowserEnvironmentProvider-
|
|
10
|
-
import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-
|
|
11
|
-
import "./BrowserTimerProvider-
|
|
12
|
-
import "./camera-
|
|
13
|
-
import "./stats-
|
|
14
|
-
import "./backCameraStream-
|
|
15
|
-
import "./id-
|
|
1
|
+
import "./platform-DdhkonXk.esm.js";
|
|
2
|
+
import "./BaseWasmProvider--AzPfwOm.esm.js";
|
|
3
|
+
import "./StreamCanvasCapture-DkpkIgyL.esm.js";
|
|
4
|
+
import "./browserSimulation-DYAk0Ipe.esm.js";
|
|
5
|
+
import "./api-C2uzxrpN.esm.js";
|
|
6
|
+
import "./Manager-C6AGXEq_.esm.js";
|
|
7
|
+
import "./endpoints-CI5-28jT.esm.js";
|
|
8
|
+
import "./session-OglUYC9l.esm.js";
|
|
9
|
+
import "./BrowserEnvironmentProvider-BECjyw3_.esm.js";
|
|
10
|
+
import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-DaLU1ug7.esm.js";
|
|
11
|
+
import "./BrowserTimerProvider-CIqH6hJp.esm.js";
|
|
12
|
+
import "./camera-DAuRUvnp.esm.js";
|
|
13
|
+
import "./stats-BVigf5Rn.esm.js";
|
|
14
|
+
import "./backCameraStream-DF_d7hTz.esm.js";
|
|
15
|
+
import "./id-CzDAG_kM.esm.js";
|
|
16
16
|
|
|
17
17
|
export { ID_ERROR_CODES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as isDesktop } from "./platform-
|
|
2
|
-
import { d as IdCaptureModelType, i as IncodeCanvas, l as mlWasmJSApi_default, o as getWindowDimensions, t as BaseWasmProvider, u as WasmPipelineType } from "./BaseWasmProvider
|
|
3
|
-
import { c as requestPermission, d as flagIdManualReview, f as BrowserStorageProvider, i as stopRecording$1, l as StreamCanvasProcessingSession, n as createRecordingSession, o as OpenViduRecordingProvider, p as getDeviceClass, r as startRecording, s as checkPermission, t as StreamCanvasCapture } from "./StreamCanvasCapture-
|
|
4
|
-
import { r as getToken, t as api } from "./api-
|
|
5
|
-
import { C as createActor, S as fromPromise, b as assign, i as eventScreenNames, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, v as revokeObjectURL, x as fromCallback, y as setup } from "./Manager-
|
|
6
|
-
import { t as endpoints } from "./endpoints-
|
|
7
|
-
import { t as getDisableIpify } from "./session-
|
|
8
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
9
|
-
import { t as addDeviceStats } from "./stats-
|
|
10
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
1
|
+
import { n as isDesktop } from "./platform-DdhkonXk.esm.js";
|
|
2
|
+
import { d as IdCaptureModelType, i as IncodeCanvas, l as mlWasmJSApi_default, o as getWindowDimensions, t as BaseWasmProvider, u as WasmPipelineType } from "./BaseWasmProvider--AzPfwOm.esm.js";
|
|
3
|
+
import { c as requestPermission, d as flagIdManualReview, f as BrowserStorageProvider, i as stopRecording$1, l as StreamCanvasProcessingSession, n as createRecordingSession, o as OpenViduRecordingProvider, p as getDeviceClass, r as startRecording, s as checkPermission, t as StreamCanvasCapture } from "./StreamCanvasCapture-DkpkIgyL.esm.js";
|
|
4
|
+
import { r as getToken, t as api } from "./api-C2uzxrpN.esm.js";
|
|
5
|
+
import { C as createActor, S as fromPromise, b as assign, i as eventScreenNames, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, v as revokeObjectURL, x as fromCallback, y as setup } from "./Manager-C6AGXEq_.esm.js";
|
|
6
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
7
|
+
import { t as getDisableIpify } from "./session-OglUYC9l.esm.js";
|
|
8
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CIqH6hJp.esm.js";
|
|
9
|
+
import { t as addDeviceStats } from "./stats-BVigf5Rn.esm.js";
|
|
10
|
+
import { t as getBackCameraStream } from "./backCameraStream-DF_d7hTz.esm.js";
|
|
11
11
|
|
|
12
12
|
//#region src/modules/id/idCaptureHelpers.ts
|
|
13
13
|
/**
|
|
@@ -296,14 +296,19 @@ async function initializeIdCapture(params) {
|
|
|
296
296
|
if (deepsightService) try {
|
|
297
297
|
await deepsightService.performPrcCheck({ constraints: getPrcCameraConstraints() });
|
|
298
298
|
} catch {}
|
|
299
|
-
const stream = await getIdCameraStream();
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
299
|
+
const { stream, fallbackLevel } = await getIdCameraStream();
|
|
300
|
+
const videoTrack = stream.getVideoTracks()[0];
|
|
301
|
+
let captureResolution;
|
|
302
|
+
if (videoTrack) {
|
|
303
|
+
const settings = videoTrack.getSettings();
|
|
304
|
+
if (typeof settings.width === "number" && typeof settings.height === "number") captureResolution = `${settings.width}x${settings.height}`;
|
|
303
305
|
}
|
|
306
|
+
if (deepsightService && videoTrack) deepsightService.metadata.updateCameraInfo(videoTrack);
|
|
304
307
|
return {
|
|
305
308
|
stream,
|
|
306
|
-
provider
|
|
309
|
+
provider,
|
|
310
|
+
captureResolution,
|
|
311
|
+
cameraFallbackLevel: fallbackLevel
|
|
307
312
|
};
|
|
308
313
|
}
|
|
309
314
|
function stopStream(stream) {
|
|
@@ -729,7 +734,11 @@ const uploadIdImageActor = fromPromise(async ({ input, signal }) => {
|
|
|
729
734
|
} catch {}
|
|
730
735
|
const imageData = input.canvas?.getImageData() ?? void 0;
|
|
731
736
|
const logs = input.deepsightService?.getPipelineState() ?? "";
|
|
732
|
-
input.dependencies?.trackCaptureAttemptFinished?.({
|
|
737
|
+
input.dependencies?.trackCaptureAttemptFinished?.({
|
|
738
|
+
logs,
|
|
739
|
+
resolution: input.captureResolution,
|
|
740
|
+
fallbackLevel: input.cameraFallbackLevel
|
|
741
|
+
});
|
|
733
742
|
return uploadIdImage({
|
|
734
743
|
image,
|
|
735
744
|
type: input.type,
|
|
@@ -778,7 +787,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
|
|
|
778
787
|
});
|
|
779
788
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
780
789
|
if (!input.dependencies) return;
|
|
781
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
790
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-DKgEdLIS.esm.js");
|
|
782
791
|
return loadDeepsightSession({
|
|
783
792
|
ds: input.ds,
|
|
784
793
|
storage: input.dependencies.storage,
|
|
@@ -829,6 +838,12 @@ function getStreamFromEvent(event) {
|
|
|
829
838
|
function getProviderFromEvent(event) {
|
|
830
839
|
if ("output" in event) return event.output.provider;
|
|
831
840
|
}
|
|
841
|
+
function getCaptureResolutionFromEvent(event) {
|
|
842
|
+
if ("output" in event) return event.output.captureResolution;
|
|
843
|
+
}
|
|
844
|
+
function getCameraFallbackLevelFromEvent(event) {
|
|
845
|
+
if ("output" in event) return event.output.cameraFallbackLevel;
|
|
846
|
+
}
|
|
832
847
|
function getFrameCapturerFromEvent(event) {
|
|
833
848
|
if ("output" in event) {
|
|
834
849
|
const output = event.output;
|
|
@@ -859,7 +874,9 @@ function getResetContextValues(context) {
|
|
|
859
874
|
uploadProgress: void 0,
|
|
860
875
|
currentMode,
|
|
861
876
|
selectedDocumentType: void 0,
|
|
862
|
-
manualCaptureTriggered: false
|
|
877
|
+
manualCaptureTriggered: false,
|
|
878
|
+
captureResolution: void 0,
|
|
879
|
+
cameraFallbackLevel: void 0
|
|
863
880
|
};
|
|
864
881
|
}
|
|
865
882
|
function getClearUploadFailureValues(context) {
|
|
@@ -1118,7 +1135,9 @@ const _idCaptureMachine = setup({
|
|
|
1118
1135
|
previewImageUrl: void 0,
|
|
1119
1136
|
uploadProgress: void 0,
|
|
1120
1137
|
manualCaptureTriggered: false,
|
|
1121
|
-
attemptsRemaining: context.config.captureAttempts
|
|
1138
|
+
attemptsRemaining: context.config.captureAttempts,
|
|
1139
|
+
captureResolution: void 0,
|
|
1140
|
+
cameraFallbackLevel: void 0
|
|
1122
1141
|
};
|
|
1123
1142
|
}),
|
|
1124
1143
|
resetForFrontCapture: assign(({ context }) => {
|
|
@@ -1137,7 +1156,9 @@ const _idCaptureMachine = setup({
|
|
|
1137
1156
|
previewImageUrl: void 0,
|
|
1138
1157
|
uploadProgress: void 0,
|
|
1139
1158
|
manualCaptureTriggered: false,
|
|
1140
|
-
attemptsRemaining: context.config.captureAttempts
|
|
1159
|
+
attemptsRemaining: context.config.captureAttempts,
|
|
1160
|
+
captureResolution: void 0,
|
|
1161
|
+
cameraFallbackLevel: void 0
|
|
1141
1162
|
};
|
|
1142
1163
|
}),
|
|
1143
1164
|
prepareForBackCapture: assign(({ context }) => {
|
|
@@ -1160,7 +1181,9 @@ const _idCaptureMachine = setup({
|
|
|
1160
1181
|
setStreamAndCapturer: assign({
|
|
1161
1182
|
stream: ({ event }) => getStreamFromEvent(event),
|
|
1162
1183
|
provider: ({ event }) => getProviderFromEvent(event),
|
|
1163
|
-
frameCapturer: ({ event }) => getFrameCapturerFromEvent(event)
|
|
1184
|
+
frameCapturer: ({ event }) => getFrameCapturerFromEvent(event),
|
|
1185
|
+
captureResolution: ({ event }) => getCaptureResolutionFromEvent(event),
|
|
1186
|
+
cameraFallbackLevel: ({ event }) => getCameraFallbackLevelFromEvent(event)
|
|
1164
1187
|
}),
|
|
1165
1188
|
trackTutorialId: () => {
|
|
1166
1189
|
/* @__PURE__ */ performTrackTutorialId();
|
|
@@ -1191,7 +1214,9 @@ const _idCaptureMachine = setup({
|
|
|
1191
1214
|
return {
|
|
1192
1215
|
stream: void 0,
|
|
1193
1216
|
provider: void 0,
|
|
1194
|
-
frameCapturer: void 0
|
|
1217
|
+
frameCapturer: void 0,
|
|
1218
|
+
captureResolution: void 0,
|
|
1219
|
+
cameraFallbackLevel: void 0
|
|
1195
1220
|
};
|
|
1196
1221
|
}),
|
|
1197
1222
|
decrementAttemptsRemaining: assign(({ context }) => ({ attemptsRemaining: context.attemptsRemaining - 1 })),
|
|
@@ -1281,7 +1306,9 @@ const _idCaptureMachine = setup({
|
|
|
1281
1306
|
dependencies: input.dependencies,
|
|
1282
1307
|
disableIpify: getDisableIpify(),
|
|
1283
1308
|
deepsightInitAttempted: false,
|
|
1284
|
-
availableDocumentTypes: getAvailableDocumentTypes(input.config)
|
|
1309
|
+
availableDocumentTypes: getAvailableDocumentTypes(input.config),
|
|
1310
|
+
captureResolution: void 0,
|
|
1311
|
+
cameraFallbackLevel: void 0
|
|
1285
1312
|
};
|
|
1286
1313
|
},
|
|
1287
1314
|
on: {
|
|
@@ -1695,7 +1722,9 @@ const _idCaptureMachine = setup({
|
|
|
1695
1722
|
stream: context.stream,
|
|
1696
1723
|
isSecondId: context.config.isSecondId ?? false,
|
|
1697
1724
|
onlyFront: context.config.onlyFront,
|
|
1698
|
-
dependencies: context.dependencies
|
|
1725
|
+
dependencies: context.dependencies,
|
|
1726
|
+
captureResolution: context.captureResolution,
|
|
1727
|
+
cameraFallbackLevel: context.cameraFallbackLevel
|
|
1699
1728
|
};
|
|
1700
1729
|
},
|
|
1701
1730
|
onDone: {
|