@incodetech/core 0.0.0-dev-20260323-d5fdccb → 0.0.0-dev-20260324-90ddcfd
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/{addressSearch-BBIa1heY.esm.js → addressSearch-DCaEdoev.esm.js} +4 -4
- package/dist/authentication.d.ts +10 -10
- package/dist/authentication.esm.js +11 -10
- package/dist/{authenticationManager-DZFI79F5.d.ts → authenticationManager-C-Mmg1uU.d.ts} +2 -2
- package/dist/{authenticationManager-h6dB_vib.esm.js → authenticationManager-CEGYyu8r.esm.js} +6 -6
- package/dist/{backCameraStream-BPxNH3Pg.esm.js → backCameraStream-BPzo60FO.esm.js} +1 -1
- package/dist/browserSimulation-DYAk0Ipe.esm.js +20 -0
- package/dist/consent.d.ts +56 -56
- package/dist/consent.esm.js +4 -4
- package/dist/curp-validation.d.ts +4 -4
- package/dist/curp-validation.esm.js +4 -4
- package/dist/{deepsightLoader-CZ_4kZPK.esm.js → deepsightLoader-ErxPZUBZ.esm.js} +5 -4
- package/dist/{deepsightService-DFek2Sxh.esm.js → deepsightService-BcdwWkYD.esm.js} +5 -23
- package/dist/{deepsightService-foKxxo3y.d.ts → deepsightService-C47Uyf6m.d.ts} +1 -1
- package/dist/document-capture.d.ts +60 -60
- package/dist/document-capture.esm.js +5 -5
- package/dist/document-upload.d.ts +52 -52
- package/dist/document-upload.esm.js +5 -5
- package/dist/ekyb.d.ts +2 -2
- package/dist/ekyb.esm.js +8 -6
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +5 -5
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +5 -5
- package/dist/{emailManager-OpJLWD9-.esm.js → emailManager-1W2Uh6du.esm.js} +4 -4
- package/dist/{emailManager-lUXVfa0R.d.ts → emailManager-CN9sSCz6.d.ts} +2 -2
- package/dist/{endpoints-Bydn-Ave.esm.js → endpoints-b2PxFIku.esm.js} +2 -0
- package/dist/{events-DzHYCTUI.esm.js → events-CbNkXF2Q.esm.js} +2 -2
- package/dist/extensibility.d.ts +14 -14
- package/dist/extensibility.esm.js +16 -14
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +4 -4
- package/dist/{faceCaptureManagerFactory-Bavynz5Q.d.ts → faceCaptureManagerFactory-UFhWTbej.d.ts} +7 -7
- package/dist/{faceCaptureSetup-BOmXn1op.esm.js → faceCaptureSetup-CoeOjXeo.esm.js} +8 -8
- package/dist/flow.d.ts +7 -7
- package/dist/flow.esm.js +8 -6
- package/dist/{flowCompletionService-C-pC9OZ9.esm.js → flowCompletionService-DkbMP576.esm.js} +2 -2
- package/dist/{flowServices-Cc1HxYIC.esm.js → flowServices-jrv5Zxbr.esm.js} +48 -4
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +4 -4
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +4 -4
- package/dist/id.d.ts +9 -9
- package/dist/id.esm.js +12 -10
- package/dist/{idCaptureManager-DPzinE1o.esm.js → idCaptureManager-BniIgM20.esm.js} +43 -226
- package/dist/{idCaptureManager-Ih_zvBCr.d.ts → idCaptureManager-Dn7_eHt9.d.ts} +22 -8
- package/dist/index.d.ts +19 -10
- package/dist/index.esm.js +12 -10
- package/dist/{lib-3ivDs79I.esm.js → lib-VFNBaz_7.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +411 -0
- package/dist/mandatory-consent.esm.js +198 -0
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +5 -5
- package/dist/{phoneManager-pTIOvlCD.d.ts → phoneManager-B0MT8wYz.d.ts} +2 -2
- package/dist/{phoneManager-BwBW-tRA.esm.js → phoneManager-Cvp5LFN7.esm.js} +4 -4
- package/dist/{recordingsRepository-DVPWOR9j.esm.js → recordingsRepository-DGWSMj-_.esm.js} +3 -3
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +4 -4
- package/dist/selfie.d.ts +10 -10
- package/dist/selfie.esm.js +11 -10
- package/dist/{selfieManager-DT0oJmpD.esm.js → selfieManager-BxwT4tDD.esm.js} +3 -3
- package/dist/{selfieManager-uSCpF37G.d.ts → selfieManager-DSn8EPLE.d.ts} +2 -2
- package/dist/session-4QVMNIs5.esm.js +243 -0
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +3 -3
- package/dist/{src-Cmpz4Jmw.esm.js → src-BX-m0lbm.esm.js} +2 -2
- package/dist/{stats-D76Thmqp.esm.js → stats-BaWAv541.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-DSJflCEU.d.ts → types-0A1THNYO.d.ts} +5 -2
- package/dist/{types-CHzupruc.d.ts → types-BYFeUhw0.d.ts} +1 -1
- package/package.json +7 -3
- /package/dist/{Actor-D6rhGxJy.d.ts → Actor-By8WNHi-.d.ts} +0 -0
- /package/dist/{Manager-CVDYGoSq.d.ts → Manager-BWqHEUjI.d.ts} +0 -0
- /package/dist/{StateMachine-BqtRw_hz.d.ts → StateMachine-dxjI9q0V.d.ts} +0 -0
- /package/dist/{api-3fZO5bmj.esm.js → api-C2uzxrpN.esm.js} +0 -0
- /package/dist/{camera-CVBwqx-j.d.ts → camera-BCRgkMoe.d.ts} +0 -0
- /package/dist/{chunk-C24vxluH.esm.js → chunk-NXK2ElUW.esm.js} +0 -0
- /package/dist/{displayErrors-BgtBHbfb.d.ts → displayErrors-CV7ux9Fr.d.ts} +0 -0
- /package/dist/{flowCompletionService-De8JDo87.d.ts → flowCompletionService-sG6KA8y2.d.ts} +0 -0
- /package/dist/{id-r_CoQ3r-.esm.js → id-C3aKMJhc.esm.js} +0 -0
- /package/dist/{index-LKrIp3Oo.d.ts → index-DGdyPh8A.d.ts} +0 -0
- /package/dist/{warmup-DoQLFT3z.d.ts → warmup-B_dntecl.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as isApiConfigured, r as getToken, t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { i as isApiConfigured, r as getToken, t as api } from "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
|
|
3
3
|
|
|
4
4
|
//#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
|
|
5
5
|
function getTimestamp() {
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { S as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-
|
|
2
|
-
import { a as IStorageCapability } from "./deepsightService-
|
|
3
|
-
import { C as WasmUtilConfig, S as VirtualCameraCheckOutput, b as BaseWasmProvider, c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine, x as IWasmUtilCapability } from "./faceCaptureManagerFactory-
|
|
4
|
-
import "./warmup-
|
|
5
|
-
import "./Manager-
|
|
6
|
-
import "./camera-
|
|
7
|
-
import { n as createActor } from "./Actor-
|
|
8
|
-
import { r as fromPromise } from "./StateMachine-
|
|
9
|
-
import "./types-
|
|
10
|
-
import "./types-
|
|
11
|
-
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-
|
|
12
|
-
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-
|
|
13
|
-
import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-
|
|
14
|
-
import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-
|
|
1
|
+
import { S as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-Dn7_eHt9.js";
|
|
2
|
+
import { a as IStorageCapability } from "./deepsightService-C47Uyf6m.js";
|
|
3
|
+
import { C as WasmUtilConfig, S as VirtualCameraCheckOutput, b as BaseWasmProvider, c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine, x as IWasmUtilCapability } from "./faceCaptureManagerFactory-UFhWTbej.js";
|
|
4
|
+
import "./warmup-B_dntecl.js";
|
|
5
|
+
import "./Manager-BWqHEUjI.js";
|
|
6
|
+
import "./camera-BCRgkMoe.js";
|
|
7
|
+
import { n as createActor } from "./Actor-By8WNHi-.js";
|
|
8
|
+
import { r as fromPromise } from "./StateMachine-dxjI9q0V.js";
|
|
9
|
+
import "./types-BYFeUhw0.js";
|
|
10
|
+
import "./types-0A1THNYO.js";
|
|
11
|
+
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-DSn8EPLE.js";
|
|
12
|
+
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-C-Mmg1uU.js";
|
|
13
|
+
import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CN9sSCz6.js";
|
|
14
|
+
import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-B0MT8wYz.js";
|
|
15
15
|
|
|
16
16
|
//#region ../infra/src/providers/browser/BrowserStorageProvider.d.ts
|
|
17
17
|
/**
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { S as createActor, x as fromPromise } from "./events-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-
|
|
4
|
-
import "./recordingsRepository-
|
|
5
|
-
import "./
|
|
6
|
-
import "./api-
|
|
7
|
-
import "./endpoints-
|
|
8
|
-
import
|
|
9
|
-
import "./
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import { n as
|
|
14
|
-
import { n as
|
|
1
|
+
import { S as createActor, x as fromPromise } from "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import "./backCameraStream-BPzo60FO.esm.js";
|
|
3
|
+
import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-BX-m0lbm.esm.js";
|
|
4
|
+
import "./recordingsRepository-DGWSMj-_.esm.js";
|
|
5
|
+
import "./browserSimulation-DYAk0Ipe.esm.js";
|
|
6
|
+
import "./api-C2uzxrpN.esm.js";
|
|
7
|
+
import "./endpoints-b2PxFIku.esm.js";
|
|
8
|
+
import "./session-4QVMNIs5.esm.js";
|
|
9
|
+
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-BniIgM20.esm.js";
|
|
10
|
+
import "./deepsightService-BcdwWkYD.esm.js";
|
|
11
|
+
import "./stats-BaWAv541.esm.js";
|
|
12
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-CoeOjXeo.esm.js";
|
|
13
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CEGYyu8r.esm.js";
|
|
14
|
+
import { n as createEmailManagerFromActor } from "./emailManager-1W2Uh6du.esm.js";
|
|
15
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-BxwT4tDD.esm.js";
|
|
16
|
+
import { n as createPhoneManagerFromActor } from "./phoneManager-Cvp5LFN7.esm.js";
|
|
15
17
|
|
|
16
18
|
export { BrowserStorageProvider, WasmUtilProvider, createActor, createAuthenticationManagerFromActor, createEmailManagerFromActor, createIdCaptureManagerFromActor, createPhoneManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromPromise };
|
package/dist/face-match.d.ts
CHANGED
package/dist/face-match.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-
|
|
2
|
-
import { A as createManager } from "./src-
|
|
3
|
-
import { t as api } from "./api-
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import { A as createManager } from "./src-BX-m0lbm.esm.js";
|
|
3
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/face-match/faceMatchServices.ts
|
|
7
7
|
/**
|
package/dist/{faceCaptureManagerFactory-Bavynz5Q.d.ts → faceCaptureManagerFactory-UFhWTbej.d.ts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as IStorageCapability, d as IncodeCanvas, i as StreamCanvasCapture, l as IMLProviderCapability, n as PermissionResult, o as IRecordingCapability, r as PermissionStatus, t as DeepsightService, u as MLProviderConfig } from "./deepsightService-
|
|
2
|
-
import { n as WasmPipeline } from "./warmup-
|
|
3
|
-
import { t as Manager } from "./Manager-
|
|
4
|
-
import { t as CameraStream } from "./camera-
|
|
5
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
6
|
-
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-
|
|
7
|
-
import { r as FlowModuleConfig, t as Flow } from "./types-
|
|
1
|
+
import { a as IStorageCapability, d as IncodeCanvas, i as StreamCanvasCapture, l as IMLProviderCapability, n as PermissionResult, o as IRecordingCapability, r as PermissionStatus, t as DeepsightService, u as MLProviderConfig } from "./deepsightService-C47Uyf6m.js";
|
|
2
|
+
import { n as WasmPipeline } from "./warmup-B_dntecl.js";
|
|
3
|
+
import { t as Manager } from "./Manager-BWqHEUjI.js";
|
|
4
|
+
import { t as CameraStream } from "./camera-BCRgkMoe.js";
|
|
5
|
+
import { t as ActorRefFrom } from "./Actor-By8WNHi-.js";
|
|
6
|
+
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-dxjI9q0V.js";
|
|
7
|
+
import { r as FlowModuleConfig, t as Flow } from "./types-0A1THNYO.js";
|
|
8
8
|
|
|
9
9
|
//#region ../infra/src/capabilities/IFaceDetectionCapability.d.ts
|
|
10
10
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import { A as createManager, O as requestCameraAccess, S as StreamCanvasCapture, d as OpenViduRecordingProvider, k as stopCameraStream, p as LocalRecordingProvider, s as FaceDetectionProvider, x as StreamCanvasProcessingSession } from "./src-
|
|
4
|
-
import { a as checkPermission, c as getDeviceClass, i as uploadDeepsightVideo, n as startRecording, o as requestPermission, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-
|
|
5
|
-
import { r as getToken, t as api } from "./api-
|
|
6
|
-
import { t as endpoints } from "./endpoints-
|
|
7
|
-
import { t as addDeviceStats } from "./stats-
|
|
1
|
+
import { b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-BPzo60FO.esm.js";
|
|
3
|
+
import { A as createManager, O as requestCameraAccess, S as StreamCanvasCapture, d as OpenViduRecordingProvider, k as stopCameraStream, p as LocalRecordingProvider, s as FaceDetectionProvider, x as StreamCanvasProcessingSession } from "./src-BX-m0lbm.esm.js";
|
|
4
|
+
import { a as checkPermission, c as getDeviceClass, i as uploadDeepsightVideo, n as startRecording, o as requestPermission, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-DGWSMj-_.esm.js";
|
|
5
|
+
import { r as getToken, t as api } from "./api-C2uzxrpN.esm.js";
|
|
6
|
+
import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
|
|
7
|
+
import { t as addDeviceStats } from "./stats-BaWAv541.esm.js";
|
|
8
8
|
|
|
9
9
|
//#region src/internal/faceCapture/faceCaptureManagerFactory.ts
|
|
10
10
|
function getPermissionStatus(snapshot) {
|
|
@@ -364,7 +364,7 @@ async function stopRecording(session) {
|
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
async function initializeDeepsightSession(options) {
|
|
367
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
367
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-ErxPZUBZ.esm.js");
|
|
368
368
|
return loadDeepsightSession({
|
|
369
369
|
ds: options.ds,
|
|
370
370
|
storage: options.storage
|
package/dist/flow.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as WasmPipeline } from "./warmup-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./camera-
|
|
4
|
-
import { t as AnyStateMachine } from "./StateMachine-
|
|
5
|
-
import "./types-
|
|
6
|
-
import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-
|
|
7
|
-
import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-
|
|
1
|
+
import { n as WasmPipeline } from "./warmup-B_dntecl.js";
|
|
2
|
+
import { t as Manager } from "./Manager-BWqHEUjI.js";
|
|
3
|
+
import "./camera-BCRgkMoe.js";
|
|
4
|
+
import { t as AnyStateMachine } from "./StateMachine-dxjI9q0V.js";
|
|
5
|
+
import "./types-BYFeUhw0.js";
|
|
6
|
+
import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-0A1THNYO.js";
|
|
7
|
+
import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-sG6KA8y2.js";
|
|
8
8
|
|
|
9
9
|
//#region src/modules/flow/flowUtils.d.ts
|
|
10
10
|
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { S as createActor, b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-
|
|
2
|
-
import { A as createManager } from "./src-
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { S as createActor, b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import { A as createManager } from "./src-BX-m0lbm.esm.js";
|
|
3
|
+
import "./browserSimulation-DYAk0Ipe.esm.js";
|
|
4
|
+
import "./api-C2uzxrpN.esm.js";
|
|
5
|
+
import "./endpoints-b2PxFIku.esm.js";
|
|
6
|
+
import "./session-4QVMNIs5.esm.js";
|
|
7
|
+
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-jrv5Zxbr.esm.js";
|
|
8
|
+
import { t as getFinishStatus } from "./flowCompletionService-DkbMP576.esm.js";
|
|
7
9
|
|
|
8
10
|
//#region src/modules/flow/flowStateMachine.ts
|
|
9
11
|
const flowMachine = setup({
|
package/dist/{flowCompletionService-C-pC9OZ9.esm.js → flowCompletionService-DkbMP576.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-b2PxFIku.esm.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/flow/flowCompletionService.ts
|
|
5
5
|
const getFinishStatus = async (flowId, signal) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
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-b2PxFIku.esm.js";
|
|
3
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./session-4QVMNIs5.esm.js";
|
|
3
4
|
|
|
4
5
|
//#region src/modules/flow/flowUtils.ts
|
|
5
6
|
const WASM_MODULE_PIPELINES = {
|
|
@@ -68,15 +69,58 @@ function normalizeFlowModules(modules) {
|
|
|
68
69
|
|
|
69
70
|
//#endregion
|
|
70
71
|
//#region src/modules/flow/flowServices.ts
|
|
72
|
+
const REGULATION_TYPES = [
|
|
73
|
+
"US",
|
|
74
|
+
"Worldwide",
|
|
75
|
+
"Other",
|
|
76
|
+
"US_Illinois",
|
|
77
|
+
"US_Texas",
|
|
78
|
+
"US_California",
|
|
79
|
+
"US_Washington"
|
|
80
|
+
];
|
|
81
|
+
const REGULATION_TYPE_ALIASES = {
|
|
82
|
+
us: "US",
|
|
83
|
+
worldwide: "Worldwide",
|
|
84
|
+
worldwide_consent: "Worldwide",
|
|
85
|
+
other: "Other",
|
|
86
|
+
us_illinois: "US_Illinois",
|
|
87
|
+
usillinois: "US_Illinois",
|
|
88
|
+
us_texas: "US_Texas",
|
|
89
|
+
ustexas: "US_Texas",
|
|
90
|
+
us_california: "US_California",
|
|
91
|
+
uscalifornia: "US_California",
|
|
92
|
+
us_washington: "US_Washington",
|
|
93
|
+
uswashington: "US_Washington"
|
|
94
|
+
};
|
|
95
|
+
function toRegulationType(value) {
|
|
96
|
+
if (!value) return "Other";
|
|
97
|
+
if (REGULATION_TYPES.includes(value)) return value;
|
|
98
|
+
return REGULATION_TYPE_ALIASES[value.trim().toLowerCase().replace(/[\s-]+/g, "_")] ?? "Other";
|
|
99
|
+
}
|
|
100
|
+
function prependMandatoryConsent(flow) {
|
|
101
|
+
if (flow.mandatoryConsentCheck === false) return flow;
|
|
102
|
+
const fingerprintResult = getSessionFingerprintResult();
|
|
103
|
+
if (!fingerprintResult?.showMandatoryConsent) return flow;
|
|
104
|
+
if (flow.flowModules.find((module) => module.key === "MANDATORY_CONSENT")) return flow;
|
|
105
|
+
const mandatoryConsentModule = {
|
|
106
|
+
key: "MANDATORY_CONSENT",
|
|
107
|
+
configuration: { consentType: toRegulationType(fingerprintResult.regulationType) }
|
|
108
|
+
};
|
|
109
|
+
return {
|
|
110
|
+
...flow,
|
|
111
|
+
flowModules: [mandatoryConsentModule, ...flow.flowModules]
|
|
112
|
+
};
|
|
113
|
+
}
|
|
71
114
|
const getFlow = async (signal) => {
|
|
115
|
+
await initializeSession({ signal }).catch(() => void 0);
|
|
72
116
|
const res = await api.get(endpoints.flow, { signal });
|
|
73
117
|
if (!res.ok) throw new Error(`GET /flow failed: ${res.status} ${res.statusText}`);
|
|
74
118
|
const data = res.data;
|
|
75
119
|
const normalizedModules = normalizeFlowModules(data.flowModules ?? []);
|
|
76
|
-
return {
|
|
120
|
+
return prependMandatoryConsent({
|
|
77
121
|
...data,
|
|
78
122
|
flowModules: normalizedModules
|
|
79
|
-
};
|
|
123
|
+
});
|
|
80
124
|
};
|
|
81
125
|
|
|
82
126
|
//#endregion
|
package/dist/geolocation.d.ts
CHANGED
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-
|
|
2
|
-
import { A as createManager, F as isAndroid, L as isIOS, b as BrowserGeolocationProvider } from "./src-
|
|
3
|
-
import { t as api } from "./api-
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import { A as createManager, F as isAndroid, L as isIOS, b as BrowserGeolocationProvider } from "./src-BX-m0lbm.esm.js";
|
|
3
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/geolocation/geolocationServices.ts
|
|
7
7
|
async function addGeolocation(params, signal) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as createActor, b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-
|
|
2
|
-
import { A as createManager, g as BrowserTimerProvider } from "./src-
|
|
3
|
-
import { t as api } from "./api-
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { S as createActor, b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import { A as createManager, g as BrowserTimerProvider } from "./src-BX-m0lbm.esm.js";
|
|
3
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-b2PxFIku.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 { 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-
|
|
2
|
-
import { n as PermissionResult, r as PermissionStatus } from "./deepsightService-
|
|
3
|
-
import "./Manager-
|
|
4
|
-
import { t as CameraStream } from "./camera-
|
|
5
|
-
import "./Actor-
|
|
6
|
-
import "./StateMachine-
|
|
7
|
-
import "./types-
|
|
8
|
-
import "./types-
|
|
9
|
-
import "./index-
|
|
1
|
+
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-Dn7_eHt9.js";
|
|
2
|
+
import { n as PermissionResult, r as PermissionStatus } from "./deepsightService-C47Uyf6m.js";
|
|
3
|
+
import "./Manager-BWqHEUjI.js";
|
|
4
|
+
import { t as CameraStream } from "./camera-BCRgkMoe.js";
|
|
5
|
+
import "./Actor-By8WNHi-.js";
|
|
6
|
+
import "./StateMachine-dxjI9q0V.js";
|
|
7
|
+
import "./types-BYFeUhw0.js";
|
|
8
|
+
import "./types-0A1THNYO.js";
|
|
9
|
+
import "./index-DGdyPh8A.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,12 +1,14 @@
|
|
|
1
|
-
import "./events-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
4
|
-
import "./recordingsRepository-
|
|
5
|
-
import "./
|
|
6
|
-
import "./api-
|
|
7
|
-
import "./endpoints-
|
|
8
|
-
import
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
1
|
+
import "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import "./backCameraStream-BPzo60FO.esm.js";
|
|
3
|
+
import "./src-BX-m0lbm.esm.js";
|
|
4
|
+
import "./recordingsRepository-DGWSMj-_.esm.js";
|
|
5
|
+
import "./browserSimulation-DYAk0Ipe.esm.js";
|
|
6
|
+
import "./api-C2uzxrpN.esm.js";
|
|
7
|
+
import "./endpoints-b2PxFIku.esm.js";
|
|
8
|
+
import "./session-4QVMNIs5.esm.js";
|
|
9
|
+
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-BniIgM20.esm.js";
|
|
10
|
+
import "./deepsightService-BcdwWkYD.esm.js";
|
|
11
|
+
import "./stats-BaWAv541.esm.js";
|
|
12
|
+
import "./id-C3aKMJhc.esm.js";
|
|
11
13
|
|
|
12
14
|
export { ID_ERROR_CODES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|