@incodetech/core 0.0.0-dev-20260302-e38ab90 → 0.0.0-dev-20260303-96fc807
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/authentication.d.ts +8 -8
- package/dist/authentication.esm.js +10 -9
- package/dist/{backCameraStream-u3xcpGFM.esm.js → backCameraStream-CvzBcQqz.esm.js} +1 -1
- package/dist/curp-validation.d.ts +3 -3
- package/dist/curp-validation.esm.js +5 -4
- package/dist/{deepsightLoader-C3qKZdo7.esm.js → deepsightLoader-BYoe0Nsv.esm.js} +4 -4
- package/dist/{deepsightService-c3UUVOav.d.ts → deepsightService-BpVsx9qI.d.ts} +1 -1
- package/dist/{deepsightService-BaQxZ72c.esm.js → deepsightService-nqR8Q7AS.esm.js} +3 -3
- package/dist/document-upload.d.ts +2 -2
- package/dist/document-upload.esm.js +5 -4
- package/dist/ekyb.d.ts +2 -2
- package/dist/ekyb.esm.js +6 -5
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +6 -5
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +5 -4
- package/dist/endpoints-DZ8tQH8V.esm.js +52 -0
- package/dist/{events-1rBD3IOL.esm.js → events-B4Z68p21.esm.js} +2 -2
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +5 -4
- package/dist/{faceCaptureManagerFactory-YsqEukVD.d.ts → faceCaptureManagerFactory-tyJQU0bQ.d.ts} +5 -5
- package/dist/{faceCaptureSetup-D5B3BosZ.esm.js → faceCaptureSetup-C6JFWLvG.esm.js} +9 -8
- package/dist/flow.d.ts +6 -13
- package/dist/flow.esm.js +5 -12
- package/dist/flowCompletionService-BxrOI23Q.esm.js +13 -0
- package/dist/flowCompletionService-CSeT3Po7.d.ts +10 -0
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +5 -4
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +4 -3
- package/dist/{id-CkOglsyM.esm.js → id-CB9JwRKh.esm.js} +25 -11
- package/dist/id.d.ts +8 -8
- package/dist/id.esm.js +10 -9
- package/dist/{index-DjI-ueIb.d.ts → index-BRPR-rem.d.ts} +7 -7
- package/dist/index.d.ts +9 -9
- package/dist/index.esm.js +10 -9
- package/dist/{lib-0ctN_ZlJ.esm.js → lib-DhQ9gAaS.esm.js} +1 -1
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +5 -4
- package/dist/selfie.d.ts +8 -8
- package/dist/selfie.esm.js +10 -9
- package/dist/session.d.ts +2 -0
- package/dist/session.esm.js +5 -0
- package/dist/{src-BAxRO0Rv.esm.js → src-jvUXRQjK.esm.js} +2 -2
- package/dist/{stats-Df76BRkJ.esm.js → stats-CIdlLJwO.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{streamingEvents-Cf-UwbXh.esm.js → streamingEvents-evH8YUFP.esm.js} +3 -3
- package/dist/{types-Lr7oy_-5.d.ts → types-CCmurMLG.d.ts} +1 -1
- package/dist/{endpoints-DsYhzvVt.esm.js → xstate.esm-Be4HOnoi.esm.js} +1 -51
- package/package.json +7 -3
- /package/dist/{Actor-pA_tOrQP.d.ts → Actor-BWuqxR_a.d.ts} +0 -0
- /package/dist/{Manager-DxhSby9F.d.ts → Manager-WfeWDo3j.d.ts} +0 -0
- /package/dist/{StateMachine-CZg50Irf.d.ts → StateMachine-DQeBZwAJ.d.ts} +0 -0
- /package/dist/{api-BgBQu3t4.esm.js → api-utDuOVDZ.esm.js} +0 -0
- /package/dist/{chunk-DdchHsRp.esm.js → chunk-B6vU4TSh.esm.js} +0 -0
- /package/dist/{types-Za6hs44v.d.ts → types-Cd8ODk69.d.ts} +0 -0
- /package/dist/{types-BOC09Z_x.d.ts → types-CnKs94Sr.d.ts} +0 -0
- /package/dist/{types-DGmAf_rg.d.ts → types-M1Q7M45h.d.ts} +0 -0
- /package/dist/{usStates-D0l6Y6l7.esm.js → usStates-BAjX-Al7.esm.js} +0 -0
- /package/dist/{warmup-Cli0uoFe.d.ts → warmup-G1qbIG0g.d.ts} +0 -0
package/dist/authentication.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import "./warmup-
|
|
3
|
-
import { a as FaceCaptureDependencies, n as FaceCaptureManagerState, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
4
|
-
import { t as Manager } from "./Manager-
|
|
5
|
-
import "./types-
|
|
6
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
7
|
-
import { t as AnyStateMachine } from "./StateMachine-
|
|
8
|
-
import { r as FlowModuleConfig } from "./types-
|
|
1
|
+
import "./types-M1Q7M45h.js";
|
|
2
|
+
import "./warmup-G1qbIG0g.js";
|
|
3
|
+
import { a as FaceCaptureDependencies, n as FaceCaptureManagerState, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-tyJQU0bQ.js";
|
|
4
|
+
import { t as Manager } from "./Manager-WfeWDo3j.js";
|
|
5
|
+
import "./types-Cd8ODk69.js";
|
|
6
|
+
import { t as ActorRefFrom } from "./Actor-BWuqxR_a.js";
|
|
7
|
+
import { t as AnyStateMachine } from "./StateMachine-DQeBZwAJ.js";
|
|
8
|
+
import { r as FlowModuleConfig } from "./types-CCmurMLG.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/authentication/authenticationStateMachine.d.ts
|
|
11
11
|
declare const _authenticationMachine: AnyStateMachine;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames } from "./events-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import { m as BrowserStorageProvider, r as WasmUtilProvider } from "./src-
|
|
4
|
-
import { a as
|
|
5
|
-
import { c as getDeviceClass } from "./streamingEvents-
|
|
6
|
-
import "./deepsightService-
|
|
7
|
-
import { t as api } from "./api-
|
|
8
|
-
import "./
|
|
9
|
-
import
|
|
1
|
+
import { d as addEvent, n as eventModuleNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
+
import "./backCameraStream-CvzBcQqz.esm.js";
|
|
3
|
+
import { m as BrowserStorageProvider, r as WasmUtilProvider } from "./src-jvUXRQjK.esm.js";
|
|
4
|
+
import { a as createActor, i as fromPromise, n as assign } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
5
|
+
import { c as getDeviceClass } from "./streamingEvents-evH8YUFP.esm.js";
|
|
6
|
+
import "./deepsightService-nqR8Q7AS.esm.js";
|
|
7
|
+
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
8
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
9
|
+
import "./stats-CIdlLJwO.esm.js";
|
|
10
|
+
import { a as FACE_ERROR_CODES, n as faceCaptureMachine, o as createFaceCaptureManager, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-C6JFWLvG.esm.js";
|
|
10
11
|
|
|
11
12
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
12
13
|
const AUTH_ERROR_MAP = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as applyTrackConstraints, E as stopCameraStream, F as isIPhone14OrHigher, I as isSafari, M as isAndroid, P as isIOS, T as requestCameraAccess, w as enumerateVideoDevices } from "./src-
|
|
1
|
+
import { C as applyTrackConstraints, E as stopCameraStream, F as isIPhone14OrHigher, I as isSafari, M as isAndroid, P as isIOS, T as requestCameraAccess, w as enumerateVideoDevices } from "./src-jvUXRQjK.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/capabilities/ITimerCapability.ts
|
|
4
4
|
function sleep(ms) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./types-
|
|
3
|
-
import { r as FlowModuleConfig } from "./types-
|
|
1
|
+
import { t as Manager } from "./Manager-WfeWDo3j.js";
|
|
2
|
+
import "./types-Cd8ODk69.js";
|
|
3
|
+
import { r as FlowModuleConfig } from "./types-CCmurMLG.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/curp-validation/types.d.ts
|
|
6
6
|
type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { n as eventModuleNames, r as eventScreenNames, u as screenOpened } from "./events-
|
|
2
|
-
import { D as createManager } from "./src-
|
|
3
|
-
import { a as
|
|
4
|
-
import { t as api } from "./api-
|
|
1
|
+
import { n as eventModuleNames, r as eventScreenNames, u as screenOpened } from "./events-B4Z68p21.esm.js";
|
|
2
|
+
import { D as createManager } from "./src-jvUXRQjK.esm.js";
|
|
3
|
+
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
|
+
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
5
6
|
|
|
6
7
|
//#region src/modules/curp-validation/curpValidationUtils.ts
|
|
7
8
|
const CURP_PATTERN = /^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HMX](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as BrowserEnvironmentProvider, l as MotionSensorProvider, r as WasmUtilProvider, s as VisibilityProvider } from "./src-
|
|
2
|
-
import { t as createDeepsightService } from "./deepsightService-
|
|
3
|
-
import "./api-
|
|
4
|
-
import "./stats-
|
|
1
|
+
import { g as BrowserEnvironmentProvider, l as MotionSensorProvider, r as WasmUtilProvider, s as VisibilityProvider } from "./src-jvUXRQjK.esm.js";
|
|
2
|
+
import { t as createDeepsightService } from "./deepsightService-nqR8Q7AS.esm.js";
|
|
3
|
+
import "./api-utDuOVDZ.esm.js";
|
|
4
|
+
import "./stats-CIdlLJwO.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/internal/deepsight/deepsightLoader.ts
|
|
7
7
|
const SDK_VERSION = "2.0.0";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as stopCameraStream, S as IncodeCanvas, T as requestCameraAccess, j as getUserAgent, k as getDeviceInfo, x as createHiddenVideoElement } from "./src-
|
|
2
|
-
import { t as api } from "./api-
|
|
3
|
-
import { t as addDeviceStats } from "./stats-
|
|
1
|
+
import { E as stopCameraStream, S as IncodeCanvas, T as requestCameraAccess, j as getUserAgent, k as getDeviceInfo, x as createHiddenVideoElement } from "./src-jvUXRQjK.esm.js";
|
|
2
|
+
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
3
|
+
import { t as addDeviceStats } from "./stats-CIdlLJwO.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/internal/device/browserSimulation.ts
|
|
6
6
|
const AUTOMATION_MARKERS = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-
|
|
1
|
+
import { t as Manager } from "./Manager-WfeWDo3j.js";
|
|
2
|
+
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-Cd8ODk69.js";
|
|
3
3
|
import * as xstate0 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
2
|
-
import { D as createManager, E as stopCameraStream } from "./src-
|
|
3
|
-
import { a as
|
|
4
|
-
import { t as api } from "./api-
|
|
1
|
+
import { t as getBackCameraStream } from "./backCameraStream-CvzBcQqz.esm.js";
|
|
2
|
+
import { D as createManager, E as stopCameraStream } from "./src-jvUXRQjK.esm.js";
|
|
3
|
+
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
|
+
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
5
6
|
|
|
6
7
|
//#region src/modules/document-upload/documentUploadServices.ts
|
|
7
8
|
async function uploadDocument({ imageBase64, documentType, onProgress, signal }) {
|
package/dist/ekyb.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as FieldDef } from "./types-
|
|
1
|
+
import { t as Manager } from "./Manager-WfeWDo3j.js";
|
|
2
|
+
import { t as FieldDef } from "./types-CnKs94Sr.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/ekyb/types.d.ts
|
|
5
5
|
type UboEntry = {
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-
|
|
2
|
-
import { D as createManager } from "./src-
|
|
3
|
-
import { a as
|
|
4
|
-
import { t as api } from "./api-
|
|
5
|
-
import { t as
|
|
1
|
+
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
+
import { D as createManager } from "./src-jvUXRQjK.esm.js";
|
|
3
|
+
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
|
+
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
6
|
+
import { t as usStateOptions } from "./usStates-BAjX-Al7.esm.js";
|
|
6
7
|
|
|
7
8
|
//#region src/modules/ekyb/ekybConstants.ts
|
|
8
9
|
const UBO_INPUT_LIMIT = 8;
|
package/dist/ekyc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as FieldDef } from "./types-
|
|
1
|
+
import { t as Manager } from "./Manager-WfeWDo3j.js";
|
|
2
|
+
import { t as FieldDef } from "./types-CnKs94Sr.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/ekyc/types.d.ts
|
|
5
5
|
type EkycFieldSource = 'user_input' | 'document_scan' | 'poa_document' | 'phone_module_input' | 'email_module_input' | false;
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-
|
|
2
|
-
import { D as createManager, p as BrowserTimerProvider } from "./src-
|
|
3
|
-
import { a as
|
|
4
|
-
import { t as api } from "./api-
|
|
5
|
-
import { t as
|
|
1
|
+
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
+
import { D as createManager, p as BrowserTimerProvider } from "./src-jvUXRQjK.esm.js";
|
|
3
|
+
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
|
+
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
6
|
+
import { t as usStateOptions } from "./usStates-BAjX-Al7.esm.js";
|
|
6
7
|
|
|
7
8
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/metadata.min.json.js
|
|
8
9
|
var metadata_min_json_default = {
|
package/dist/email.d.ts
CHANGED
package/dist/email.esm.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-
|
|
2
|
-
import { D as createManager, p as BrowserTimerProvider } from "./src-
|
|
3
|
-
import { a as
|
|
4
|
-
import { t as api } from "./api-
|
|
1
|
+
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
+
import { D as createManager, p as BrowserTimerProvider } from "./src-jvUXRQjK.esm.js";
|
|
3
|
+
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
|
+
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
5
6
|
|
|
6
7
|
//#region src/modules/email/emailServices.ts
|
|
7
8
|
async function fetchEmail(signal) {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//#region src/internal/http/endpoints.ts
|
|
2
|
+
const endpoints = {
|
|
3
|
+
createSession: "/omni/start",
|
|
4
|
+
flow: "/omni/onboarding/flow",
|
|
5
|
+
events: "/omni/interview-events",
|
|
6
|
+
selfie: "/omni/add/face",
|
|
7
|
+
authenticate: "/omni/onboarding-authentications/authenticate",
|
|
8
|
+
recordingCreateSessionV2: "/omni/recordings/create-session/v2",
|
|
9
|
+
recordingStartV2: "/omni/recordings/record-start/v2",
|
|
10
|
+
recordingStopV2: "/omni/recordings/record-stop/v2",
|
|
11
|
+
deepsightVideoImport: "/omni/recordings/import",
|
|
12
|
+
phone: "/omni/add/phone",
|
|
13
|
+
phoneInstant: "/omni/instant/add/phone",
|
|
14
|
+
getPhone: "/omni/get/phone",
|
|
15
|
+
startInfo: "/omni/start-info",
|
|
16
|
+
sendSmsOtp: "/omni/send/sms-otp",
|
|
17
|
+
compareOtp: "/omni/compare/otp",
|
|
18
|
+
email: "/omni/add/email",
|
|
19
|
+
getEmail: "/omni/get/email",
|
|
20
|
+
frontId: "/omni/add/front-id/v2",
|
|
21
|
+
backId: "/omni/add/back-id/v2",
|
|
22
|
+
frontSecondId: "/omni/add/front-second-id/v2",
|
|
23
|
+
backSecondId: "/omni/add/back-second-id/v2",
|
|
24
|
+
getImages: "/omni/get/images",
|
|
25
|
+
getImagesV2: "/omni/get/images/v2",
|
|
26
|
+
getScore: "/omni/get/score",
|
|
27
|
+
getImagesSecondId: "/omni/get/images-second-id",
|
|
28
|
+
processId: "/omni/process/id",
|
|
29
|
+
processSecondId: "/omni/process/second-id",
|
|
30
|
+
processFace: "/omni/process/face",
|
|
31
|
+
governmentValidation: "/omni/process/government-validation",
|
|
32
|
+
deviceStats: "/omni/device/stats",
|
|
33
|
+
featureConfig: "/omni/feature-config",
|
|
34
|
+
deviceFingerprint: "/omni/add/device-fingerprint",
|
|
35
|
+
onboardingStatus: "/omni/get/onboarding/status",
|
|
36
|
+
customFields: "/omni/get/custom-fields",
|
|
37
|
+
deviceRiskClientId: "/omni/device-risk-client-id",
|
|
38
|
+
ocrData: "/omni/get/ocr-data",
|
|
39
|
+
addCurp: "/omni/add/curp",
|
|
40
|
+
addCurpV2: "/omni/add/curp/v2",
|
|
41
|
+
addGeolocation: "/omni/add/geolocation",
|
|
42
|
+
ekycSubmit: "/omni/externalVerification/ekyc",
|
|
43
|
+
ekybSubmit: "/omni/externalVerification/ekyb",
|
|
44
|
+
addressAutocomplete: "/omni/externalVerification/addressAutocomplete",
|
|
45
|
+
otpStatus: "/omni/session/otp-status",
|
|
46
|
+
moduleConfig: "/omni/flow/onboarding/configuration",
|
|
47
|
+
addDocument: "/omni/add/document/v2",
|
|
48
|
+
finishStatus: "/omni/finish-status"
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
export { endpoints as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
1
|
+
import { i as isApiConfigured, r as getToken, t as api } from "./api-utDuOVDZ.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
3
3
|
|
|
4
4
|
//#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
|
|
5
5
|
function getTimestamp() {
|
package/dist/face-match.d.ts
CHANGED
package/dist/face-match.esm.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-
|
|
2
|
-
import { D as createManager } from "./src-
|
|
3
|
-
import { a as
|
|
4
|
-
import { t as api } from "./api-
|
|
1
|
+
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
+
import { D as createManager } from "./src-jvUXRQjK.esm.js";
|
|
3
|
+
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
|
+
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
5
6
|
|
|
6
7
|
//#region src/modules/face-match/faceMatchServices.ts
|
|
7
8
|
/**
|
package/dist/{faceCaptureManagerFactory-YsqEukVD.d.ts → faceCaptureManagerFactory-tyJQU0bQ.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as IRecordingCapability, n as PermissionStatus, r as IStorageCapability, s as MLProviderConfig } from "./types-
|
|
2
|
-
import { t as WasmPipeline } from "./warmup-
|
|
3
|
-
import { t as Manager } from "./Manager-
|
|
4
|
-
import { i as CameraStream } from "./types-
|
|
5
|
-
import { t as Flow } from "./types-
|
|
1
|
+
import { i as IRecordingCapability, n as PermissionStatus, r as IStorageCapability, s as MLProviderConfig } from "./types-M1Q7M45h.js";
|
|
2
|
+
import { t as WasmPipeline } from "./warmup-G1qbIG0g.js";
|
|
3
|
+
import { t as Manager } from "./Manager-WfeWDo3j.js";
|
|
4
|
+
import { i as CameraStream } from "./types-Cd8ODk69.js";
|
|
5
|
+
import { t as Flow } from "./types-CCmurMLG.js";
|
|
6
6
|
|
|
7
7
|
//#region ../infra/src/capabilities/IWasmUtilCapability.d.ts
|
|
8
8
|
type WasmUtilConfig = MLProviderConfig & {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames } from "./events-
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import { D as createManager, E as stopCameraStream, T as requestCameraAccess, a as FaceDetectionProvider, c as OpenViduRecordingProvider, u as LocalRecordingProvider, v as StreamCanvasProcessingSession, y as StreamCanvasCapture } from "./src-
|
|
4
|
-
import {
|
|
5
|
-
import { a as uploadDeepsightVideo, c as getDeviceClass, i as stopRecording$1, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-
|
|
6
|
-
import { r as getToken, t as api } from "./api-
|
|
7
|
-
import { t as
|
|
1
|
+
import { d as addEvent, n as eventModuleNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-CvzBcQqz.esm.js";
|
|
3
|
+
import { D as createManager, E as stopCameraStream, T as requestCameraAccess, a as FaceDetectionProvider, c as OpenViduRecordingProvider, u as LocalRecordingProvider, v as StreamCanvasProcessingSession, y as StreamCanvasCapture } from "./src-jvUXRQjK.esm.js";
|
|
4
|
+
import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
5
|
+
import { a as uploadDeepsightVideo, c as getDeviceClass, i as stopRecording$1, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-evH8YUFP.esm.js";
|
|
6
|
+
import { r as getToken, t as api } from "./api-utDuOVDZ.esm.js";
|
|
7
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
8
|
+
import { t as addDeviceStats } from "./stats-CIdlLJwO.esm.js";
|
|
8
9
|
|
|
9
10
|
//#region src/internal/faceCapture/faceCaptureManagerFactory.ts
|
|
10
11
|
function getPermissionStatus(snapshot) {
|
|
@@ -444,7 +445,7 @@ async function stopRecording(session) {
|
|
|
444
445
|
}
|
|
445
446
|
}
|
|
446
447
|
async function initializeDeepsightSession(options) {
|
|
447
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
448
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-BYoe0Nsv.esm.js");
|
|
448
449
|
return loadDeepsightSession({
|
|
449
450
|
ds: options.ds,
|
|
450
451
|
storage: options.storage
|
package/dist/flow.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { t as WasmPipeline } from "./warmup-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./types-
|
|
4
|
-
import { t as AnyStateMachine } from "./StateMachine-
|
|
5
|
-
import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-
|
|
1
|
+
import { t as WasmPipeline } from "./warmup-G1qbIG0g.js";
|
|
2
|
+
import { t as Manager } from "./Manager-WfeWDo3j.js";
|
|
3
|
+
import "./types-Cd8ODk69.js";
|
|
4
|
+
import { t as AnyStateMachine } from "./StateMachine-DQeBZwAJ.js";
|
|
5
|
+
import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-CCmurMLG.js";
|
|
6
|
+
import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-CSeT3Po7.js";
|
|
6
7
|
|
|
7
8
|
//#region src/modules/flow/flowUtils.d.ts
|
|
8
9
|
|
|
@@ -33,14 +34,6 @@ declare function getRequiredWasmPipelines(flow: Flow): WasmPipeline[];
|
|
|
33
34
|
*/
|
|
34
35
|
declare function normalizeFlowModules(modules: FlowModule[]): FlowModule[];
|
|
35
36
|
//#endregion
|
|
36
|
-
//#region src/modules/flow/flowCompletionService.d.ts
|
|
37
|
-
type FinishStatus = {
|
|
38
|
-
redirectionUrl: string;
|
|
39
|
-
action: 'approved' | 'rejected' | 'none';
|
|
40
|
-
scoreStatus: 'OK' | 'WARN' | 'MANUAL_OK' | 'FAIL' | 'UNKNOWN' | 'MANUAL_FAIL';
|
|
41
|
-
};
|
|
42
|
-
type GetFinishStatusFn = (flowId: string | undefined | null, signal?: AbortSignal) => Promise<FinishStatus>;
|
|
43
|
-
//#endregion
|
|
44
37
|
//#region src/modules/flow/flowServices.d.ts
|
|
45
38
|
type GetFlow = (signal: AbortSignal) => Promise<Flow>;
|
|
46
39
|
//#endregion
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { D as createManager } from "./src-
|
|
2
|
-
import { a as
|
|
3
|
-
import { t as api } from "./api-
|
|
1
|
+
import { D as createManager } from "./src-jvUXRQjK.esm.js";
|
|
2
|
+
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
3
|
+
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
5
|
+
import { t as getFinishStatus } from "./flowCompletionService-BxrOI23Q.esm.js";
|
|
4
6
|
|
|
5
7
|
//#region src/modules/flow/flowUtils.ts
|
|
6
8
|
const WASM_MODULE_PIPELINES = {
|
|
@@ -358,15 +360,6 @@ function createModuleLoader(registry) {
|
|
|
358
360
|
return new ModuleLoaderImpl(registry);
|
|
359
361
|
}
|
|
360
362
|
|
|
361
|
-
//#endregion
|
|
362
|
-
//#region src/modules/flow/flowCompletionService.ts
|
|
363
|
-
const getFinishStatus = async (flowId, signal) => {
|
|
364
|
-
const url = `/omni/finish-status${flowId ? `?flowId=${flowId}` : ""}`;
|
|
365
|
-
const res = await api.get(url, { signal });
|
|
366
|
-
if (!res.ok) throw new Error(`GET ${url} failed: ${res.status} ${res.statusText}`);
|
|
367
|
-
return res.data;
|
|
368
|
-
};
|
|
369
|
-
|
|
370
363
|
//#endregion
|
|
371
364
|
//#region src/modules/flow/orchestratedFlowStateMachine.ts
|
|
372
365
|
const orchestratedFlowMachine = setup({
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
3
|
+
|
|
4
|
+
//#region src/modules/flow/flowCompletionService.ts
|
|
5
|
+
const getFinishStatus = async (flowId, signal) => {
|
|
6
|
+
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
7
|
+
const res = await api.get(url, { signal });
|
|
8
|
+
if (!res.ok) throw new Error(`GET ${url} failed: ${res.status} ${res.statusText}`);
|
|
9
|
+
return res.data;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { getFinishStatus as t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/modules/flow/flowCompletionService.d.ts
|
|
2
|
+
type FinishStatus = {
|
|
3
|
+
redirectionUrl: string;
|
|
4
|
+
action: 'approved' | 'rejected' | 'none';
|
|
5
|
+
scoreStatus: 'OK' | 'WARN' | 'MANUAL_OK' | 'FAIL' | 'UNKNOWN' | 'MANUAL_FAIL';
|
|
6
|
+
};
|
|
7
|
+
type GetFinishStatusFn = (flowId: string | undefined | null, signal?: AbortSignal) => Promise<FinishStatus>;
|
|
8
|
+
declare const getFinishStatus: GetFinishStatusFn;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { GetFinishStatusFn as n, getFinishStatus as r, FinishStatus as t };
|
package/dist/geolocation.d.ts
CHANGED
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames } from "./events-
|
|
2
|
-
import { D as createManager, M as isAndroid, P as isIOS, _ as BrowserGeolocationProvider } from "./src-
|
|
3
|
-
import { a as
|
|
4
|
-
import { t as api } from "./api-
|
|
1
|
+
import { d as addEvent, n as eventModuleNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
+
import { D as createManager, M as isAndroid, P as isIOS, _ as BrowserGeolocationProvider } from "./src-jvUXRQjK.esm.js";
|
|
3
|
+
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
|
+
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
5
6
|
|
|
6
7
|
//#region src/modules/geolocation/geolocationServices.ts
|
|
7
8
|
async function addGeolocation(params, signal) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { D as createManager, p as BrowserTimerProvider } from "./src-
|
|
2
|
-
import { a as
|
|
3
|
-
import { t as api } from "./api-
|
|
1
|
+
import { D as createManager, p as BrowserTimerProvider } from "./src-jvUXRQjK.esm.js";
|
|
2
|
+
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
3
|
+
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
4
5
|
|
|
5
6
|
//#region src/modules/government-validation/governmentValidationServices.ts
|
|
6
7
|
async function processGovernmentValidation(signal) {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { d as addEvent, m as revokeObjectURL, n as eventModuleNames } from "./events-
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import { A as getWindowDimensions, D as createManager, N as isDesktop, S as IncodeCanvas, c as OpenViduRecordingProvider, d as IpifyProvider, f as FingerprintProvider, g as BrowserEnvironmentProvider, h as BrowserInfoProvider, i as IdCaptureProvider, m as BrowserStorageProvider, n as DEFAULT_ID_CAPTURE_THRESHOLDS, p as BrowserTimerProvider, t as DEFAULT_ID_CAPTURE_MODEL_VERSION, v as StreamCanvasProcessingSession, y as StreamCanvasCapture } from "./src-
|
|
4
|
-
import { a as
|
|
5
|
-
import { c as getDeviceClass, i as stopRecording$1, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-
|
|
6
|
-
import { n as isBrowserSimulation } from "./deepsightService-
|
|
7
|
-
import { n as getApi, r as getToken, t as api } from "./api-
|
|
8
|
-
import { t as
|
|
1
|
+
import { d as addEvent, m as revokeObjectURL, n as eventModuleNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-CvzBcQqz.esm.js";
|
|
3
|
+
import { A as getWindowDimensions, D as createManager, N as isDesktop, S as IncodeCanvas, c as OpenViduRecordingProvider, d as IpifyProvider, f as FingerprintProvider, g as BrowserEnvironmentProvider, h as BrowserInfoProvider, i as IdCaptureProvider, m as BrowserStorageProvider, n as DEFAULT_ID_CAPTURE_THRESHOLDS, p as BrowserTimerProvider, t as DEFAULT_ID_CAPTURE_MODEL_VERSION, v as StreamCanvasProcessingSession, y as StreamCanvasCapture } from "./src-jvUXRQjK.esm.js";
|
|
4
|
+
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
5
|
+
import { c as getDeviceClass, i as stopRecording$1, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-evH8YUFP.esm.js";
|
|
6
|
+
import { n as isBrowserSimulation } from "./deepsightService-nqR8Q7AS.esm.js";
|
|
7
|
+
import { n as getApi, r as getToken, t as api } from "./api-utDuOVDZ.esm.js";
|
|
8
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
9
|
+
import { t as addDeviceStats } from "./stats-CIdlLJwO.esm.js";
|
|
9
10
|
|
|
10
11
|
//#region src/internal/session/sessionService.ts
|
|
11
12
|
/**
|
|
@@ -898,7 +899,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
|
|
|
898
899
|
});
|
|
899
900
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
900
901
|
if (!input.dependencies) return;
|
|
901
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
902
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-BYoe0Nsv.esm.js");
|
|
902
903
|
return loadDeepsightSession({
|
|
903
904
|
ds: input.ds,
|
|
904
905
|
storage: input.dependencies.storage,
|
|
@@ -1311,6 +1312,15 @@ const _idCaptureMachine = setup({
|
|
|
1311
1312
|
context.frameCapturer?.getLatestCanvas();
|
|
1312
1313
|
},
|
|
1313
1314
|
clearUploadFailure: assign(({ context }) => getClearUploadFailureValues(context)),
|
|
1315
|
+
clearStreamForRetry: assign(({ context }) => {
|
|
1316
|
+
performStopMediaStream(context);
|
|
1317
|
+
performDisposeProvider(context);
|
|
1318
|
+
return {
|
|
1319
|
+
stream: void 0,
|
|
1320
|
+
provider: void 0,
|
|
1321
|
+
frameCapturer: void 0
|
|
1322
|
+
};
|
|
1323
|
+
}),
|
|
1314
1324
|
decrementAttemptsRemaining: assign(({ context }) => ({ attemptsRemaining: context.attemptsRemaining - 1 })),
|
|
1315
1325
|
setUploadErrorFromUploadValidation: assign({ uploadError: ({ context }) => getUploadValidationError(context) }),
|
|
1316
1326
|
stopMediaRecording: ({ context }) => {
|
|
@@ -1852,9 +1862,13 @@ const _idCaptureMachine = setup({
|
|
|
1852
1862
|
}, { target: "success" }] },
|
|
1853
1863
|
uploadError: { on: { CONTINUE_FROM_ERROR: [
|
|
1854
1864
|
{
|
|
1855
|
-
target: "
|
|
1865
|
+
target: "checkingStream",
|
|
1856
1866
|
guard: "hasAttemptsRemaining",
|
|
1857
|
-
actions: [
|
|
1867
|
+
actions: [
|
|
1868
|
+
"resetDetection",
|
|
1869
|
+
"clearUploadFailure",
|
|
1870
|
+
"clearStreamForRetry"
|
|
1871
|
+
]
|
|
1858
1872
|
},
|
|
1859
1873
|
{
|
|
1860
1874
|
target: "#idCapture.frontFinished",
|
package/dist/id.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as IdCaptureGeometry, B as DetectionOrientation, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, I as IdErrorCode, L as IdFlowStep, M as IdCaptureMode, N as IdCaptureThresholds, O as IdCaptureDependencies, P as IdDocumentType, R as RecordingSession, S as CapturedImage, T as ID_ERROR_CODES, V as IdCaptureSettings, _ as IdCaptureActor, a as InitializeIdCaptureParams, b as idCaptureMachine, c as ValidationError, d as startRecordingSession, f as stopRecording, g as CreateIdCaptureActorOptions, h as validateUploadResponse, i as IdCaptureInitResult, j as IdCaptureInput, k as IdCaptureEvent, l as initializeIdCapture, m as uploadIdImage, n as IdCaptureState, o as StartRecordingParams, p as stopStream, r as createIdCaptureManager, s as UploadIdImageParams, t as IdCaptureManager, u as processId, v as createIdCaptureActor, w as DetectionStatus, x as CaptureIdResponse, y as IdCaptureMachine, z as UploadIdResponse } from "./index-
|
|
2
|
-
import "./deepsightService-
|
|
3
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-
|
|
4
|
-
import "./Manager-
|
|
5
|
-
import { i as CameraStream } from "./types-
|
|
6
|
-
import "./Actor-
|
|
7
|
-
import "./StateMachine-
|
|
8
|
-
import "./types-
|
|
1
|
+
import { A as IdCaptureGeometry, B as DetectionOrientation, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, I as IdErrorCode, L as IdFlowStep, M as IdCaptureMode, N as IdCaptureThresholds, O as IdCaptureDependencies, P as IdDocumentType, R as RecordingSession, S as CapturedImage, T as ID_ERROR_CODES, V as IdCaptureSettings, _ as IdCaptureActor, a as InitializeIdCaptureParams, b as idCaptureMachine, c as ValidationError, d as startRecordingSession, f as stopRecording, g as CreateIdCaptureActorOptions, h as validateUploadResponse, i as IdCaptureInitResult, j as IdCaptureInput, k as IdCaptureEvent, l as initializeIdCapture, m as uploadIdImage, n as IdCaptureState, o as StartRecordingParams, p as stopStream, r as createIdCaptureManager, s as UploadIdImageParams, t as IdCaptureManager, u as processId, v as createIdCaptureActor, w as DetectionStatus, x as CaptureIdResponse, y as IdCaptureMachine, z as UploadIdResponse } from "./index-BRPR-rem.js";
|
|
2
|
+
import "./deepsightService-BpVsx9qI.js";
|
|
3
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-M1Q7M45h.js";
|
|
4
|
+
import "./Manager-WfeWDo3j.js";
|
|
5
|
+
import { i as CameraStream } from "./types-Cd8ODk69.js";
|
|
6
|
+
import "./Actor-BWuqxR_a.js";
|
|
7
|
+
import "./StateMachine-DQeBZwAJ.js";
|
|
8
|
+
import "./types-CCmurMLG.js";
|
|
9
9
|
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,11 +1,12 @@
|
|
|
1
|
-
import "./events-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
4
|
-
import "./
|
|
5
|
-
import "./streamingEvents-
|
|
6
|
-
import "./deepsightService-
|
|
7
|
-
import "./api-
|
|
8
|
-
import
|
|
9
|
-
import "./
|
|
1
|
+
import "./events-B4Z68p21.esm.js";
|
|
2
|
+
import "./backCameraStream-CvzBcQqz.esm.js";
|
|
3
|
+
import "./src-jvUXRQjK.esm.js";
|
|
4
|
+
import "./xstate.esm-Be4HOnoi.esm.js";
|
|
5
|
+
import "./streamingEvents-evH8YUFP.esm.js";
|
|
6
|
+
import "./deepsightService-nqR8Q7AS.esm.js";
|
|
7
|
+
import "./api-utDuOVDZ.esm.js";
|
|
8
|
+
import "./endpoints-DZ8tQH8V.esm.js";
|
|
9
|
+
import { a as processId, c as stopStream, d as ID_ERROR_CODES, i as initializeIdCapture, l as uploadIdImage, n as createIdCaptureActor, o as startRecordingSession, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-CB9JwRKh.esm.js";
|
|
10
|
+
import "./stats-CIdlLJwO.esm.js";
|
|
10
11
|
|
|
11
12
|
export { ID_ERROR_CODES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as IncodeCanvas, n as StreamCanvasCapture, r as IMotionSensorCapability, t as DeepsightService } from "./deepsightService-
|
|
2
|
-
import { a as RecordingConnection, i as IRecordingCapability, n as PermissionStatus, o as IMLProviderCapability, r as IStorageCapability, s as MLProviderConfig, t as PermissionResult } from "./types-
|
|
3
|
-
import { t as Manager } from "./Manager-
|
|
4
|
-
import { i as CameraStream } from "./types-
|
|
5
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
6
|
-
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-
|
|
7
|
-
import { i as TutorialIdConfig, t as Flow } from "./types-
|
|
1
|
+
import { i as IncodeCanvas, n as StreamCanvasCapture, r as IMotionSensorCapability, t as DeepsightService } from "./deepsightService-BpVsx9qI.js";
|
|
2
|
+
import { a as RecordingConnection, i as IRecordingCapability, n as PermissionStatus, o as IMLProviderCapability, r as IStorageCapability, s as MLProviderConfig, t as PermissionResult } from "./types-M1Q7M45h.js";
|
|
3
|
+
import { t as Manager } from "./Manager-WfeWDo3j.js";
|
|
4
|
+
import { i as CameraStream } from "./types-Cd8ODk69.js";
|
|
5
|
+
import { t as ActorRefFrom } from "./Actor-BWuqxR_a.js";
|
|
6
|
+
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-DQeBZwAJ.js";
|
|
7
|
+
import { i as TutorialIdConfig, t as Flow } from "./types-CCmurMLG.js";
|
|
8
8
|
|
|
9
9
|
//#region ../infra/src/capabilities/IAnalyticsCapability.d.ts
|
|
10
10
|
interface IAnalyticsCapability {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as IdCaptureGeometry, B as DetectionOrientation, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, I as IdErrorCode, L as IdFlowStep, M as IdCaptureMode, N as IdCaptureThresholds, O as IdCaptureDependencies, P as IdDocumentType, R as RecordingSession, S as CapturedImage, T as ID_ERROR_CODES, V as IdCaptureSettings, _ as IdCaptureActor, a as InitializeIdCaptureParams, b as idCaptureMachine, c as ValidationError, d as startRecordingSession, f as stopRecording, g as CreateIdCaptureActorOptions, h as validateUploadResponse, i as IdCaptureInitResult, j as IdCaptureInput, k as IdCaptureEvent, l as initializeIdCapture, m as uploadIdImage, n as IdCaptureState, o as StartRecordingParams, p as stopStream, r as createIdCaptureManager, s as UploadIdImageParams, t as IdCaptureManager, u as processId, v as createIdCaptureActor, w as DetectionStatus, x as CaptureIdResponse, y as IdCaptureMachine, z as UploadIdResponse } from "./index-
|
|
2
|
-
import "./deepsightService-
|
|
3
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-
|
|
4
|
-
import { n as warmupWasm, t as WasmPipeline } from "./warmup-
|
|
5
|
-
import "./Manager-
|
|
6
|
-
import { i as CameraStream } from "./types-
|
|
7
|
-
import "./Actor-
|
|
8
|
-
import "./StateMachine-
|
|
9
|
-
import "./types-
|
|
1
|
+
import { A as IdCaptureGeometry, B as DetectionOrientation, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, I as IdErrorCode, L as IdFlowStep, M as IdCaptureMode, N as IdCaptureThresholds, O as IdCaptureDependencies, P as IdDocumentType, R as RecordingSession, S as CapturedImage, T as ID_ERROR_CODES, V as IdCaptureSettings, _ as IdCaptureActor, a as InitializeIdCaptureParams, b as idCaptureMachine, c as ValidationError, d as startRecordingSession, f as stopRecording, g as CreateIdCaptureActorOptions, h as validateUploadResponse, i as IdCaptureInitResult, j as IdCaptureInput, k as IdCaptureEvent, l as initializeIdCapture, m as uploadIdImage, n as IdCaptureState, o as StartRecordingParams, p as stopStream, r as createIdCaptureManager, s as UploadIdImageParams, t as IdCaptureManager, u as processId, v as createIdCaptureActor, w as DetectionStatus, x as CaptureIdResponse, y as IdCaptureMachine, z as UploadIdResponse } from "./index-BRPR-rem.js";
|
|
2
|
+
import "./deepsightService-BpVsx9qI.js";
|
|
3
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-M1Q7M45h.js";
|
|
4
|
+
import { n as warmupWasm, t as WasmPipeline } from "./warmup-G1qbIG0g.js";
|
|
5
|
+
import "./Manager-WfeWDo3j.js";
|
|
6
|
+
import { i as CameraStream } from "./types-Cd8ODk69.js";
|
|
7
|
+
import "./Actor-BWuqxR_a.js";
|
|
8
|
+
import "./StateMachine-DQeBZwAJ.js";
|
|
9
|
+
import "./types-CCmurMLG.js";
|
|
10
10
|
|
|
11
11
|
//#region ../infra/src/http/types.d.ts
|
|
12
12
|
type CreateApiConfig = {
|
package/dist/index.esm.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { a as videoSelfieEvents, c as screenClosed, d as addEvent, f as flushEventQueue, i as tutorialScreenNamesMapper, l as screenEvent, n as eventModuleNames, o as moduleClosed, p as subscribeEvent, r as eventScreenNames, s as moduleOpened, t as cameraScreenNamesMapper, u as screenOpened } from "./events-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import { O as createApi_default, o as warmupWasm, r as WasmUtilProvider } from "./src-
|
|
4
|
-
import "./
|
|
5
|
-
import { c as getDeviceClass, l as getBrowser, o as checkPermission, s as requestPermission } from "./streamingEvents-
|
|
6
|
-
import "./deepsightService-
|
|
7
|
-
import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-
|
|
8
|
-
import
|
|
9
|
-
import "./
|
|
1
|
+
import { a as videoSelfieEvents, c as screenClosed, d as addEvent, f as flushEventQueue, i as tutorialScreenNamesMapper, l as screenEvent, n as eventModuleNames, o as moduleClosed, p as subscribeEvent, r as eventScreenNames, s as moduleOpened, t as cameraScreenNamesMapper, u as screenOpened } from "./events-B4Z68p21.esm.js";
|
|
2
|
+
import "./backCameraStream-CvzBcQqz.esm.js";
|
|
3
|
+
import { O as createApi_default, o as warmupWasm, r as WasmUtilProvider } from "./src-jvUXRQjK.esm.js";
|
|
4
|
+
import "./xstate.esm-Be4HOnoi.esm.js";
|
|
5
|
+
import { c as getDeviceClass, l as getBrowser, o as checkPermission, s as requestPermission } from "./streamingEvents-evH8YUFP.esm.js";
|
|
6
|
+
import "./deepsightService-nqR8Q7AS.esm.js";
|
|
7
|
+
import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-utDuOVDZ.esm.js";
|
|
8
|
+
import "./endpoints-DZ8tQH8V.esm.js";
|
|
9
|
+
import { _ as createSession, a as processId, c as stopStream, d as ID_ERROR_CODES, f as getDisableIpify, g as resetSessionInit, h as isSessionInitialized, i as initializeIdCapture, l as uploadIdImage, m as initializeSession, n as createIdCaptureActor, o as startRecordingSession, p as getSessionFeatures, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-CB9JwRKh.esm.js";
|
|
10
|
+
import "./stats-CIdlLJwO.esm.js";
|
|
10
11
|
|
|
11
12
|
//#region src/setup.ts
|
|
12
13
|
let wasmConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-
|
|
1
|
+
import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-B6vU4TSh.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js
|
|
4
4
|
var require_jsnlog = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js": ((exports) => {
|
package/dist/phone.d.ts
CHANGED
package/dist/phone.esm.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-
|
|
2
|
-
import { D as createManager, p as BrowserTimerProvider } from "./src-
|
|
3
|
-
import { a as
|
|
4
|
-
import { t as api } from "./api-
|
|
1
|
+
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
+
import { D as createManager, p as BrowserTimerProvider } from "./src-jvUXRQjK.esm.js";
|
|
3
|
+
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
4
|
+
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
5
6
|
|
|
6
7
|
//#region src/modules/phone/phoneServices.ts
|
|
7
8
|
async function fetchPhone(signal) {
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as IncodeCanvas, n as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-
|
|
2
|
-
import { n as PermissionStatus, o as IMLProviderCapability, s as MLProviderConfig, t as PermissionResult } from "./types-
|
|
3
|
-
import { t as WasmPipeline } from "./warmup-
|
|
4
|
-
import { a as FaceCaptureDependencies, i as DetectionStatus, n as FaceCaptureManagerState, o as FaceErrorCode, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
5
|
-
import { t as Manager } from "./Manager-
|
|
6
|
-
import { i as CameraStream } from "./types-
|
|
7
|
-
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-
|
|
8
|
-
import { r as FlowModuleConfig } from "./types-
|
|
1
|
+
import { i as IncodeCanvas, n as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-BpVsx9qI.js";
|
|
2
|
+
import { n as PermissionStatus, o as IMLProviderCapability, s as MLProviderConfig, t as PermissionResult } from "./types-M1Q7M45h.js";
|
|
3
|
+
import { t as WasmPipeline } from "./warmup-G1qbIG0g.js";
|
|
4
|
+
import { a as FaceCaptureDependencies, i as DetectionStatus, n as FaceCaptureManagerState, o as FaceErrorCode, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-tyJQU0bQ.js";
|
|
5
|
+
import { t as Manager } from "./Manager-WfeWDo3j.js";
|
|
6
|
+
import { i as CameraStream } from "./types-Cd8ODk69.js";
|
|
7
|
+
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-DQeBZwAJ.js";
|
|
8
|
+
import { r as FlowModuleConfig } from "./types-CCmurMLG.js";
|
|
9
9
|
|
|
10
10
|
//#region ../infra/src/capabilities/IFaceDetectionCapability.d.ts
|
|
11
11
|
/**
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames } from "./events-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import { m as BrowserStorageProvider, r as WasmUtilProvider } from "./src-
|
|
4
|
-
import { a as
|
|
5
|
-
import "./streamingEvents-
|
|
6
|
-
import "./deepsightService-
|
|
7
|
-
import "./api-
|
|
8
|
-
import "./
|
|
9
|
-
import
|
|
1
|
+
import { d as addEvent, n as eventModuleNames } from "./events-B4Z68p21.esm.js";
|
|
2
|
+
import "./backCameraStream-CvzBcQqz.esm.js";
|
|
3
|
+
import { m as BrowserStorageProvider, r as WasmUtilProvider } from "./src-jvUXRQjK.esm.js";
|
|
4
|
+
import { a as createActor, i as fromPromise, n as assign } from "./xstate.esm-Be4HOnoi.esm.js";
|
|
5
|
+
import "./streamingEvents-evH8YUFP.esm.js";
|
|
6
|
+
import "./deepsightService-nqR8Q7AS.esm.js";
|
|
7
|
+
import "./api-utDuOVDZ.esm.js";
|
|
8
|
+
import "./endpoints-DZ8tQH8V.esm.js";
|
|
9
|
+
import "./stats-CIdlLJwO.esm.js";
|
|
10
|
+
import { a as FACE_ERROR_CODES, i as uploadSelfie, n as faceCaptureMachine, o as createFaceCaptureManager, r as processFace, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-C6JFWLvG.esm.js";
|
|
10
11
|
|
|
11
12
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
12
13
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __toDynamicImportESM } from "./chunk-
|
|
1
|
+
import { a as __toDynamicImportESM } from "./chunk-B6vU4TSh.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/capabilities/platform.ts
|
|
4
4
|
/**
|
|
@@ -4414,7 +4414,7 @@ var MotionSensorProvider = class {
|
|
|
4414
4414
|
let openViduImport;
|
|
4415
4415
|
async function loadOpenVidu() {
|
|
4416
4416
|
if (openViduImport) return openViduImport;
|
|
4417
|
-
openViduImport = import("./lib-
|
|
4417
|
+
openViduImport = import("./lib-DhQ9gAaS.esm.js").then(__toDynamicImportESM(1));
|
|
4418
4418
|
return openViduImport;
|
|
4419
4419
|
}
|
|
4420
4420
|
|
package/dist/stats.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as stopCameraStream, T as requestCameraAccess, b as queryCameraPermission, j as getUserAgent, k as getDeviceInfo, l as MotionSensorProvider } from "./src-
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
1
|
+
import { E as stopCameraStream, T as requestCameraAccess, b as queryCameraPermission, j as getUserAgent, k as getDeviceInfo, l as MotionSensorProvider } from "./src-jvUXRQjK.esm.js";
|
|
2
|
+
import { t as api } from "./api-utDuOVDZ.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-DZ8tQH8V.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/internal/device/getBrowser.ts
|
|
6
6
|
function getBrowser() {
|
|
@@ -3258,54 +3258,4 @@ function setup({ schemas, actors, actions, guards, delays }) {
|
|
|
3258
3258
|
}
|
|
3259
3259
|
|
|
3260
3260
|
//#endregion
|
|
3261
|
-
|
|
3262
|
-
const endpoints = {
|
|
3263
|
-
createSession: "/omni/start",
|
|
3264
|
-
flow: "/omni/onboarding/flow",
|
|
3265
|
-
events: "/omni/interview-events",
|
|
3266
|
-
selfie: "/omni/add/face",
|
|
3267
|
-
authenticate: "/omni/onboarding-authentications/authenticate",
|
|
3268
|
-
recordingCreateSessionV2: "/omni/recordings/create-session/v2",
|
|
3269
|
-
recordingStartV2: "/omni/recordings/record-start/v2",
|
|
3270
|
-
recordingStopV2: "/omni/recordings/record-stop/v2",
|
|
3271
|
-
deepsightVideoImport: "/omni/recordings/import",
|
|
3272
|
-
phone: "/omni/add/phone",
|
|
3273
|
-
phoneInstant: "/omni/instant/add/phone",
|
|
3274
|
-
getPhone: "/omni/get/phone",
|
|
3275
|
-
startInfo: "/omni/start-info",
|
|
3276
|
-
sendSmsOtp: "/omni/send/sms-otp",
|
|
3277
|
-
compareOtp: "/omni/compare/otp",
|
|
3278
|
-
email: "/omni/add/email",
|
|
3279
|
-
getEmail: "/omni/get/email",
|
|
3280
|
-
frontId: "/omni/add/front-id/v2",
|
|
3281
|
-
backId: "/omni/add/back-id/v2",
|
|
3282
|
-
frontSecondId: "/omni/add/front-second-id/v2",
|
|
3283
|
-
backSecondId: "/omni/add/back-second-id/v2",
|
|
3284
|
-
getImages: "/omni/get/images",
|
|
3285
|
-
getImagesV2: "/omni/get/images/v2",
|
|
3286
|
-
getScore: "/omni/get/score",
|
|
3287
|
-
getImagesSecondId: "/omni/get/images-second-id",
|
|
3288
|
-
processId: "/omni/process/id",
|
|
3289
|
-
processSecondId: "/omni/process/second-id",
|
|
3290
|
-
processFace: "/omni/process/face",
|
|
3291
|
-
governmentValidation: "/omni/process/government-validation",
|
|
3292
|
-
deviceStats: "/omni/device/stats",
|
|
3293
|
-
featureConfig: "/omni/feature-config",
|
|
3294
|
-
deviceFingerprint: "/omni/add/device-fingerprint",
|
|
3295
|
-
onboardingStatus: "/omni/get/onboarding/status",
|
|
3296
|
-
customFields: "/omni/get/custom-fields",
|
|
3297
|
-
deviceRiskClientId: "/omni/device-risk-client-id",
|
|
3298
|
-
ocrData: "/omni/get/ocr-data",
|
|
3299
|
-
addCurp: "/omni/add/curp",
|
|
3300
|
-
addCurpV2: "/omni/add/curp/v2",
|
|
3301
|
-
addGeolocation: "/omni/add/geolocation",
|
|
3302
|
-
ekycSubmit: "/omni/externalVerification/ekyc",
|
|
3303
|
-
ekybSubmit: "/omni/externalVerification/ekyb",
|
|
3304
|
-
addressAutocomplete: "/omni/externalVerification/addressAutocomplete",
|
|
3305
|
-
otpStatus: "/omni/session/otp-status",
|
|
3306
|
-
moduleConfig: "/omni/flow/onboarding/configuration",
|
|
3307
|
-
addDocument: "/omni/add/document/v2"
|
|
3308
|
-
};
|
|
3309
|
-
|
|
3310
|
-
//#endregion
|
|
3311
|
-
export { fromPromise as a, fromCallback as i, setup as n, createActor as o, assign as r, endpoints as t };
|
|
3261
|
+
export { createActor as a, fromPromise as i, assign as n, fromCallback as r, setup as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260303-96fc807",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -64,6 +64,10 @@
|
|
|
64
64
|
"./document-upload": {
|
|
65
65
|
"types": "./dist/document-upload.d.ts",
|
|
66
66
|
"import": "./dist/document-upload.esm.js"
|
|
67
|
+
},
|
|
68
|
+
"./session": {
|
|
69
|
+
"types": "./dist/session.d.ts",
|
|
70
|
+
"import": "./dist/session.esm.js"
|
|
67
71
|
}
|
|
68
72
|
},
|
|
69
73
|
"files": [
|
|
@@ -74,8 +78,8 @@
|
|
|
74
78
|
"tsdown": "^0.16.6",
|
|
75
79
|
"typescript": "^5.9.3",
|
|
76
80
|
"vitest": "^4.0.13",
|
|
77
|
-
"@incodetech/
|
|
78
|
-
"@incodetech/
|
|
81
|
+
"@incodetech/infra": "1.0.0",
|
|
82
|
+
"@incodetech/config": "1.0.0"
|
|
79
83
|
},
|
|
80
84
|
"scripts": {
|
|
81
85
|
"build": "tsdown -c tsdown.config.ts",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|