@incodetech/core 0.0.0-dev-20260407-2c382da → 0.0.0-dev-20260407-ebd92aa
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--AzPfwOm.esm.js → BaseWasmProvider-CQgeReKV.esm.js} +1 -785
- package/dist/MotionSensorProvider-BTDLt08l.esm.js +254 -0
- package/dist/OpenViduRecordingProvider-PvkEhhDq.esm.js +87 -0
- package/dist/StateMachine-DU1S4Cik.d.ts +2 -0
- package/dist/{WasmUtilProvider-BonqBWdj.esm.js → WasmUtilProvider-C45HStLj.esm.js} +1 -1
- package/dist/{addressSearch-B8Fo4v9V.esm.js → addressSearch-C5qzDvkN.esm.js} +4 -4
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +3 -3
- package/dist/authentication.d.ts +11 -9
- package/dist/authentication.esm.js +18 -13
- package/dist/{authenticationManager-Bd10YGSO.d.ts → authenticationManager-CXTPgE_2.d.ts} +2 -2
- package/dist/{authenticationManager-B4gSCgrO.esm.js → authenticationManager-D4esVx-z.esm.js} +7 -6
- package/dist/{backCameraStream-DF_d7hTz.esm.js → backCameraStream-CUo1USCT.esm.js} +2 -2
- package/dist/camera.d.ts +16 -0
- package/dist/camera.esm.js +5 -0
- package/dist/consent.d.ts +52 -52
- 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-DKgEdLIS.esm.js → deepsightLoader-Bs5jHgca.esm.js} +10 -7
- package/dist/deepsightService-C3gQ_9Ml.esm.js +493 -0
- package/dist/{deepsightService-Ciu0atv5.d.ts → deepsightService-CyEcAH-I.d.ts} +193 -197
- package/dist/device.d.ts +46 -0
- package/dist/device.esm.js +106 -0
- package/dist/document-capture.d.ts +3 -3
- package/dist/document-capture.esm.js +6 -6
- package/dist/document-upload.d.ts +4 -4
- package/dist/document-upload.esm.js +6 -6
- 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-CpAwvP3v.esm.js → emailManager-CZ2IGW0g.esm.js} +4 -4
- package/dist/{emailManager-BQPIJR_O.d.ts → emailManager-CtA6Tvry.d.ts} +2 -2
- package/dist/events-BlVGS-8F.esm.js +472 -0
- package/dist/events.d.ts +232 -0
- package/dist/events.esm.js +4 -0
- package/dist/extensibility.d.ts +15 -13
- package/dist/extensibility.esm.js +25 -20
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +3 -3
- package/dist/{faceCaptureManagerFactory-CdwpYykv.d.ts → faceCaptureManagerFactory-Bp_mC9b2.d.ts} +8 -6
- package/dist/faceCaptureSetup-DzlTPjT9.esm.js +828 -0
- package/dist/flow.d.ts +17 -9
- package/dist/flow.esm.js +68 -21
- package/dist/{flowCompletionService-TnWijsSw.esm.js → flowCompletionService-N6-xypy-.esm.js} +2 -2
- package/dist/{flowServices-CO2sIR3D.esm.js → flowServices-xgqnJ64L.esm.js} +3 -3
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +4 -4
- package/dist/getBrowser-B800KRAi.esm.js +41 -0
- package/dist/getDeviceClass-BKd2FOAf.esm.js +14 -0
- package/dist/government-validation.d.ts +2 -2
- package/dist/government-validation.esm.js +4 -4
- package/dist/http.d.ts +57 -0
- package/dist/http.esm.js +3 -0
- package/dist/id.d.ts +11 -10
- package/dist/id.esm.js +20 -16
- package/dist/{idCaptureManager-IdqsAASp.d.ts → idCaptureManager-Bx298yFC.d.ts} +9 -7
- package/dist/{idCaptureManager-DaLU1ug7.esm.js → idCaptureManager-bowLKHEs.esm.js} +75 -58
- package/dist/index.d.ts +3 -611
- package/dist/index.esm.js +10 -562
- package/dist/{lib-i-4qLKdG.esm.js → lib-Cq5Wc-Hd.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +55 -55
- package/dist/mandatory-consent.esm.js +3 -3
- package/dist/openviduLazy-BdsxPGgp.esm.js +12 -0
- package/dist/openviduLazy-NTgGtkeK.esm.js +3 -0
- package/dist/permissionServices-CDqkkway.esm.js +50 -0
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +5 -5
- package/dist/{phoneManager-BAPHSXx8.esm.js → phoneManager-CscgaER2.esm.js} +4 -4
- package/dist/{phoneManager-DA8WUJtl.d.ts → phoneManager-DlaiZtwZ.d.ts} +2 -2
- package/dist/recordingService-BDx_6XR9.esm.js +1024 -0
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +4 -4
- package/dist/selfie.d.ts +11 -9
- package/dist/selfie.esm.js +18 -13
- package/dist/{selfieManager-BSkzncsa.esm.js → selfieManager-DVvvlMMf.esm.js} +5 -4
- package/dist/{selfieManager-Dft5wZQ_.d.ts → selfieManager-UBgYgVnw.d.ts} +2 -2
- package/dist/{session-OglUYC9l.esm.js → session-PLjFj_T3.esm.js} +5 -19
- package/dist/session.d.ts +46 -2
- package/dist/session.esm.js +7 -4
- package/dist/setup-DfinQjIF.d.ts +120 -0
- package/dist/setup-fvDWE7f8.esm.js +450 -0
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +3 -3
- package/dist/{stats-BVigf5Rn.esm.js → stats-BZ1kFW4p.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-CiLyvJGb.d.ts → types-DcqFYowa.d.ts} +1 -1
- package/dist/{types-D8Y1faI5.d.ts → types-DufUK-_f.d.ts} +1 -1
- package/dist/types-UPqCMQKa.d.ts +5 -0
- package/dist/{StateMachine-CM_aOfNL.d.ts → warmup-yzJJKXFi.d.ts} +1 -4
- package/dist/wasm.d.ts +15 -0
- package/dist/wasm.esm.js +10 -0
- package/dist/{Manager-C6AGXEq_.esm.js → xstate.esm-BXrcOcSC.esm.js} +103 -507
- package/package.json +18 -2
- package/dist/StreamCanvasCapture-DkpkIgyL.esm.js +0 -410
- package/dist/endpoints-CI5-28jT.esm.js +0 -69
- package/dist/faceCaptureSetup-DbXgtcp7.esm.js +0 -1561
- package/dist/id-CzDAG_kM.esm.js +0 -0
- package/dist/index-BuVKc9bv.d.ts +0 -1
- /package/dist/{Actor-By8WNHi-.d.ts → Actor-Cz_KnN47.d.ts} +0 -0
- /package/dist/{BrowserEnvironmentProvider-BECjyw3_.esm.js → BrowserEnvironmentProvider--xQUs3sg.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-CIqH6hJp.esm.js → BrowserTimerProvider-CkHEwJFa.esm.js} +0 -0
- /package/dist/{Manager-CCT_-HuZ.d.ts → Manager-N01KfnVA.d.ts} +0 -0
- /package/dist/{api-C2uzxrpN.esm.js → api-CyI8qTie.esm.js} +0 -0
- /package/dist/{browserSimulation-DYAk0Ipe.esm.js → browserSimulation-yzDdWSBf.esm.js} +0 -0
- /package/dist/{camera-6XJdOeBF.d.ts → camera-BcVDCZxW.d.ts} +0 -0
- /package/dist/{camera-DAuRUvnp.esm.js → camera-CsT06Zqy.esm.js} +0 -0
- /package/dist/{chunk-D6hkk-hd.esm.js → chunk-BcQWkoAq.esm.js} +0 -0
- /package/dist/{displayErrors-CGJwvrTl.d.ts → displayErrors-C0mf2glb.d.ts} +0 -0
- /package/dist/{flowCompletionService-BOd4Rk8n.d.ts → flowCompletionService-Dloh6J8n.d.ts} +0 -0
- /package/dist/{platform-DdhkonXk.esm.js → platform-Dcuv6w60.esm.js} +0 -0
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as addDeviceStats } from "./stats-
|
|
10
|
-
import { t as
|
|
1
|
+
import { a as IdCaptureModelType, i as WasmPipelineType, r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-CQgeReKV.esm.js";
|
|
2
|
+
import { r as getToken, t as api } from "./api-CyI8qTie.esm.js";
|
|
3
|
+
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames, v as revokeObjectURL } from "./events-BlVGS-8F.esm.js";
|
|
4
|
+
import { t as getDisableIpify } from "./session-PLjFj_T3.esm.js";
|
|
5
|
+
import { a as createActor, i as fromPromise, n as assign, o as createManager, r as fromCallback, t as setup } from "./xstate.esm-BXrcOcSC.esm.js";
|
|
6
|
+
import { _ as StreamCanvasCapture, d as createRecordingSession, f as startRecording, g as flagIdManualReview, m as StreamCanvasProcessingSession, n as preloadOpenViduProvider, p as stopRecording$1, y as BrowserStorageProvider } from "./recordingService-BDx_6XR9.esm.js";
|
|
7
|
+
import { n as IncodeCanvas } from "./deepsightService-C3gQ_9Ml.esm.js";
|
|
8
|
+
import { r as getWindowDimensions } from "./getBrowser-B800KRAi.esm.js";
|
|
9
|
+
import { t as addDeviceStats } from "./stats-BZ1kFW4p.esm.js";
|
|
10
|
+
import { n as requestPermission, t as checkPermission } from "./permissionServices-CDqkkway.esm.js";
|
|
11
|
+
import { n as isDesktop } from "./platform-Dcuv6w60.esm.js";
|
|
12
|
+
import { t as getBackCameraStream } from "./backCameraStream-CUo1USCT.esm.js";
|
|
13
|
+
import { t as getDeviceClass } from "./getDeviceClass-BKd2FOAf.esm.js";
|
|
14
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CkHEwJFa.esm.js";
|
|
11
15
|
|
|
12
16
|
//#region src/modules/id/idCaptureHelpers.ts
|
|
13
17
|
/**
|
|
@@ -33,49 +37,6 @@ function getAvailableDocumentTypes(config) {
|
|
|
33
37
|
return adjustedDocumentTypes;
|
|
34
38
|
}
|
|
35
39
|
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region src/modules/id/types.ts
|
|
38
|
-
const ID_ERROR_CODES = {
|
|
39
|
-
UPLOAD_ERROR: "UPLOAD_ERROR",
|
|
40
|
-
CLASSIFICATION_FAILED: "CLASSIFICATION_FAILED",
|
|
41
|
-
LOW_SHARPNESS: "LOW_SHARPNESS",
|
|
42
|
-
GLARE_DETECTED: "GLARE_DETECTED",
|
|
43
|
-
WRONG_DOCUMENT_SIDE: "WRONG_DOCUMENT_SIDE",
|
|
44
|
-
ID_TYPE_UNACCEPTABLE: "ID_TYPE_UNACCEPTABLE",
|
|
45
|
-
READABILITY_ISSUE: "READABILITY_ISSUE",
|
|
46
|
-
RETRY_EXHAUSTED_CONTINUE_TO_BACK: "RETRY_EXHAUSTED_CONTINUE_TO_BACK",
|
|
47
|
-
RETRY_EXHAUSTED_SKIP_BACK: "RETRY_EXHAUSTED_SKIP_BACK",
|
|
48
|
-
NO_MORE_TRIES: "NO_MORE_TRIES",
|
|
49
|
-
UNEXPECTED_ERROR: "UNEXPECTED_ERROR",
|
|
50
|
-
NO_TOKEN: "NO_TOKEN",
|
|
51
|
-
PERMISSION_DENIED: "PERMISSION_DENIED",
|
|
52
|
-
USER_CANCELLED: "USER_CANCELLED",
|
|
53
|
-
SERVER: "SERVER_ERROR"
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region ../infra/src/wasm/idCaptureDefaults.ts
|
|
58
|
-
/**
|
|
59
|
-
* Default WASM thresholds for ID capture quality checks.
|
|
60
|
-
* Based on legacy pipelinesConfig.ts values.
|
|
61
|
-
*/
|
|
62
|
-
const DEFAULT_ID_CAPTURE_THRESHOLDS = {
|
|
63
|
-
blurThreshold: .2,
|
|
64
|
-
blurChangeThreshold: .2,
|
|
65
|
-
glareThreshold: .3,
|
|
66
|
-
clsThreshold: .98,
|
|
67
|
-
sideThreshold: .8,
|
|
68
|
-
iouThreshold: .8,
|
|
69
|
-
idDetectedTimeout: 1e4,
|
|
70
|
-
autocaptureTimeout: 5e3,
|
|
71
|
-
framesAggregationInterval: 3e3,
|
|
72
|
-
minFaceIdQualityScore: .62
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Default model version for ID capture.
|
|
76
|
-
*/
|
|
77
|
-
const DEFAULT_ID_CAPTURE_MODEL_VERSION = "v2";
|
|
78
|
-
|
|
79
40
|
//#endregion
|
|
80
41
|
//#region ../infra/src/providers/wasm/IdCaptureProvider.ts
|
|
81
42
|
var IdCaptureProvider = class extends BaseWasmProvider {
|
|
@@ -235,6 +196,26 @@ async function getIdCameraStream(deviceId) {
|
|
|
235
196
|
return getBackCameraStream(deviceId);
|
|
236
197
|
}
|
|
237
198
|
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region src/modules/id/types.ts
|
|
201
|
+
const ID_ERROR_CODES = {
|
|
202
|
+
UPLOAD_ERROR: "UPLOAD_ERROR",
|
|
203
|
+
CLASSIFICATION_FAILED: "CLASSIFICATION_FAILED",
|
|
204
|
+
LOW_SHARPNESS: "LOW_SHARPNESS",
|
|
205
|
+
GLARE_DETECTED: "GLARE_DETECTED",
|
|
206
|
+
WRONG_DOCUMENT_SIDE: "WRONG_DOCUMENT_SIDE",
|
|
207
|
+
ID_TYPE_UNACCEPTABLE: "ID_TYPE_UNACCEPTABLE",
|
|
208
|
+
READABILITY_ISSUE: "READABILITY_ISSUE",
|
|
209
|
+
RETRY_EXHAUSTED_CONTINUE_TO_BACK: "RETRY_EXHAUSTED_CONTINUE_TO_BACK",
|
|
210
|
+
RETRY_EXHAUSTED_SKIP_BACK: "RETRY_EXHAUSTED_SKIP_BACK",
|
|
211
|
+
NO_MORE_TRIES: "NO_MORE_TRIES",
|
|
212
|
+
UNEXPECTED_ERROR: "UNEXPECTED_ERROR",
|
|
213
|
+
NO_TOKEN: "NO_TOKEN",
|
|
214
|
+
PERMISSION_DENIED: "PERMISSION_DENIED",
|
|
215
|
+
USER_CANCELLED: "USER_CANCELLED",
|
|
216
|
+
SERVER: "SERVER_ERROR"
|
|
217
|
+
};
|
|
218
|
+
|
|
238
219
|
//#endregion
|
|
239
220
|
//#region src/modules/id/idCaptureServices.ts
|
|
240
221
|
/**
|
|
@@ -440,10 +421,18 @@ function buildResolutionFromStream(stream) {
|
|
|
440
421
|
}
|
|
441
422
|
return "1080x1920";
|
|
442
423
|
}
|
|
424
|
+
function preloadIdRecordingProvider(config) {
|
|
425
|
+
if (config.enableIdRecording !== true) return;
|
|
426
|
+
preloadOpenViduProvider();
|
|
427
|
+
}
|
|
428
|
+
async function createOpenViduRecordingProvider() {
|
|
429
|
+
const { OpenViduRecordingProvider } = await import("./OpenViduRecordingProvider-PvkEhhDq.esm.js");
|
|
430
|
+
return new OpenViduRecordingProvider();
|
|
431
|
+
}
|
|
443
432
|
async function startRecordingSession(params) {
|
|
444
433
|
if (params.config.enableIdRecording !== true) return;
|
|
445
434
|
if (params.existing) return params.existing;
|
|
446
|
-
const provider = params.config.recording?.capability ??
|
|
435
|
+
const provider = params.config.recording?.capability ?? await createOpenViduRecordingProvider();
|
|
447
436
|
const clonedStream = params.stream.clone();
|
|
448
437
|
const hasAudio = clonedStream.getAudioTracks().length > 0;
|
|
449
438
|
const resolution = buildResolutionFromStream(clonedStream);
|
|
@@ -483,6 +472,29 @@ async function processId(isSecondId = false, queueName = "", signal) {
|
|
|
483
472
|
return { isDocumentExpired: (await api.post(url, {}, { signal })).data?.isDocumentExpired ?? false };
|
|
484
473
|
}
|
|
485
474
|
|
|
475
|
+
//#endregion
|
|
476
|
+
//#region ../infra/src/wasm/idCaptureDefaults.ts
|
|
477
|
+
/**
|
|
478
|
+
* Default WASM thresholds for ID capture quality checks.
|
|
479
|
+
* Based on legacy pipelinesConfig.ts values.
|
|
480
|
+
*/
|
|
481
|
+
const DEFAULT_ID_CAPTURE_THRESHOLDS = {
|
|
482
|
+
blurThreshold: .2,
|
|
483
|
+
blurChangeThreshold: .2,
|
|
484
|
+
glareThreshold: .3,
|
|
485
|
+
clsThreshold: .98,
|
|
486
|
+
sideThreshold: .8,
|
|
487
|
+
iouThreshold: .8,
|
|
488
|
+
idDetectedTimeout: 1e4,
|
|
489
|
+
autocaptureTimeout: 5e3,
|
|
490
|
+
framesAggregationInterval: 3e3,
|
|
491
|
+
minFaceIdQualityScore: .62
|
|
492
|
+
};
|
|
493
|
+
/**
|
|
494
|
+
* Default model version for ID capture.
|
|
495
|
+
*/
|
|
496
|
+
const DEFAULT_ID_CAPTURE_MODEL_VERSION = "v2";
|
|
497
|
+
|
|
486
498
|
//#endregion
|
|
487
499
|
//#region src/modules/id/idCaptureActors.ts
|
|
488
500
|
const checkPermissionActor = fromPromise(async () => {
|
|
@@ -787,7 +799,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
|
|
|
787
799
|
});
|
|
788
800
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
789
801
|
if (!input.dependencies) return;
|
|
790
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
802
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-Bs5jHgca.esm.js");
|
|
791
803
|
return loadDeepsightSession({
|
|
792
804
|
ds: input.ds,
|
|
793
805
|
storage: input.dependencies.storage,
|
|
@@ -1194,6 +1206,9 @@ const _idCaptureMachine = setup({
|
|
|
1194
1206
|
trackCameraId: ({ context }) => {
|
|
1195
1207
|
/* @__PURE__ */ performTrackCameraId(context);
|
|
1196
1208
|
},
|
|
1209
|
+
preloadRecordingProvider: ({ context }) => {
|
|
1210
|
+
preloadIdRecordingProvider(context.config);
|
|
1211
|
+
},
|
|
1197
1212
|
resetContext: assign(({ context }) => getResetContextValues(context)),
|
|
1198
1213
|
resetDetection: ({ context }) => {
|
|
1199
1214
|
performResetDetection(context);
|
|
@@ -1336,6 +1351,7 @@ const _idCaptureMachine = setup({
|
|
|
1336
1351
|
actions: ["setSelectedDocument", "setCurrentMode"]
|
|
1337
1352
|
}] } },
|
|
1338
1353
|
loading: {
|
|
1354
|
+
entry: "preloadRecordingProvider",
|
|
1339
1355
|
type: "parallel",
|
|
1340
1356
|
states: {
|
|
1341
1357
|
permissionCheck: {
|
|
@@ -1390,7 +1406,7 @@ const _idCaptureMachine = setup({
|
|
|
1390
1406
|
},
|
|
1391
1407
|
tutorial: {
|
|
1392
1408
|
initial: "checkingPermission",
|
|
1393
|
-
entry: "trackTutorialId",
|
|
1409
|
+
entry: ["trackTutorialId", "preloadRecordingProvider"],
|
|
1394
1410
|
states: {
|
|
1395
1411
|
checkingPermission: {
|
|
1396
1412
|
invoke: {
|
|
@@ -1491,6 +1507,7 @@ const _idCaptureMachine = setup({
|
|
|
1491
1507
|
}
|
|
1492
1508
|
},
|
|
1493
1509
|
permissions: {
|
|
1510
|
+
entry: "preloadRecordingProvider",
|
|
1494
1511
|
initial: "idle",
|
|
1495
1512
|
states: {
|
|
1496
1513
|
idle: {
|
|
@@ -1557,7 +1574,7 @@ const _idCaptureMachine = setup({
|
|
|
1557
1574
|
},
|
|
1558
1575
|
capture: {
|
|
1559
1576
|
initial: "checkingStream",
|
|
1560
|
-
entry: "trackCameraId",
|
|
1577
|
+
entry: ["trackCameraId", "preloadRecordingProvider"],
|
|
1561
1578
|
exit: ["stopMediaRecording", "clearRecordingSession"],
|
|
1562
1579
|
on: { SET_FRAME_RECT: { actions: "setFrameRect" } },
|
|
1563
1580
|
states: {
|
|
@@ -2294,4 +2311,4 @@ function createIdCaptureManagerFromActor(actor) {
|
|
|
2294
2311
|
}
|
|
2295
2312
|
|
|
2296
2313
|
//#endregion
|
|
2297
|
-
export { initializeIdCapture as a,
|
|
2314
|
+
export { initializeIdCapture as a, startRecordingSession as c, uploadIdImage as d, validateUploadResponse as f, idCaptureMachine as i, stopRecording as l, createIdCaptureManagerFromActor as n, preloadIdRecordingProvider as o, ID_ERROR_CODES as p, createIdCaptureActor as r, processId as s, createIdCaptureManager as t, stopStream as u };
|