@incodetech/core 0.0.0-dev-20260313-18a17d6 → 0.0.0-dev-20260313-8b7649e
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 +2 -2
- package/dist/authentication.esm.js +5 -5
- package/dist/{backCameraStream-ZcgmV6ek.esm.js → backCameraStream-B57NWDGu.esm.js} +1 -1
- package/dist/curp-validation.esm.js +1 -1
- package/dist/{deepsightLoader-ChivsvQS.esm.js → deepsightLoader-BXTRzhYx.esm.js} +2 -2
- package/dist/{deepsightService-DJ6yJFWI.esm.js → deepsightService-CTK55DG8.esm.js} +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.esm.js +2 -2
- package/dist/ekyb.esm.js +1 -1
- package/dist/ekyc.esm.js +1 -1
- package/dist/email.esm.js +1 -1
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureManagerFactory-CMLiRjYr.d.ts → faceCaptureManagerFactory-D1NUo68Z.d.ts} +1 -1
- package/dist/{faceCaptureSetup-2WooW-jJ.esm.js → faceCaptureSetup-10lCb_yE.esm.js} +4 -4
- package/dist/flow.d.ts +1 -1
- package/dist/flow.esm.js +1 -1
- package/dist/geolocation.esm.js +1 -1
- package/dist/government-validation.esm.js +1 -1
- package/dist/{id-DbIx2_iD.esm.js → id-TUJyOPso.esm.js} +9 -7
- package/dist/id.d.ts +1 -1
- package/dist/id.esm.js +5 -5
- package/dist/{index-CSEcy73I.d.ts → index-5ZEjz-8I.d.ts} +1 -0
- package/dist/index.d.ts +24 -19
- package/dist/index.esm.js +18 -37
- package/dist/phone.esm.js +1 -1
- package/dist/redirect-to-mobile.esm.js +1 -1
- package/dist/selfie.d.ts +2 -2
- package/dist/selfie.esm.js +5 -5
- package/dist/{src-DJirOlIN.esm.js → src-D3v6I2la.esm.js} +20 -4
- package/dist/{streamingEvents-CuDSXpr7.esm.js → streamingEvents-CQq5fJCL.esm.js} +1 -1
- package/dist/{warmup-CAEKix9h.d.ts → warmup-Da5qDIWZ.d.ts} +1 -1
- package/package.json +3 -3
package/dist/authentication.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./types-B4KNFqC4.js";
|
|
2
|
-
import "./warmup-
|
|
3
|
-
import { a as FaceCaptureDependencies, n as FaceCaptureManagerState, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
2
|
+
import "./warmup-Da5qDIWZ.js";
|
|
3
|
+
import { a as FaceCaptureDependencies, n as FaceCaptureManagerState, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-D1NUo68Z.js";
|
|
4
4
|
import { t as Manager } from "./Manager-CG5CQ1kY.js";
|
|
5
5
|
import "./camera-D7zu0Mls.js";
|
|
6
6
|
import { t as ActorRefFrom } from "./Actor-B6Lr-x6S.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames } from "./events-b4_xvENs.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import {
|
|
2
|
+
import "./backCameraStream-B57NWDGu.esm.js";
|
|
3
|
+
import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-D3v6I2la.esm.js";
|
|
4
4
|
import { a as createActor, i as fromPromise, n as assign } from "./xstate.esm-07M59Cte.esm.js";
|
|
5
|
-
import { l as getDeviceClass } from "./streamingEvents-
|
|
6
|
-
import "./deepsightService-
|
|
5
|
+
import { l as getDeviceClass } from "./streamingEvents-CQq5fJCL.esm.js";
|
|
6
|
+
import "./deepsightService-CTK55DG8.esm.js";
|
|
7
7
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
|
9
9
|
import "./stats-D76Thmqp.esm.js";
|
|
10
|
-
import { a as FACE_ERROR_CODES, n as faceCaptureMachine, o as createFaceCaptureManager, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-
|
|
10
|
+
import { a as FACE_ERROR_CODES, n as faceCaptureMachine, o as createFaceCaptureManager, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-10lCb_yE.esm.js";
|
|
11
11
|
|
|
12
12
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
13
13
|
const AUTH_ERROR_MAP = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as isSafari, D as enumerateVideoDevices, E as applyTrackConstraints, F as isAndroid, L as isIOS, O as requestCameraAccess, k as stopCameraStream, z as isIPhone14OrHigher } from "./src-D3v6I2la.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/capabilities/ITimerCapability.ts
|
|
4
4
|
function sleep(ms) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as eventModuleNames, r as eventScreenNames, u as screenOpened } from "./events-b4_xvENs.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { A as createManager } from "./src-D3v6I2la.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-07M59Cte.esm.js";
|
|
4
4
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as createDeepsightService } from "./deepsightService-
|
|
1
|
+
import { a as WasmUtilProvider, f as MotionSensorProvider, l as VisibilityProvider, y as BrowserEnvironmentProvider } from "./src-D3v6I2la.esm.js";
|
|
2
|
+
import { t as createDeepsightService } from "./deepsightService-CTK55DG8.esm.js";
|
|
3
3
|
import "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import "./stats-D76Thmqp.esm.js";
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as getDeviceInfo, O as requestCameraAccess, P as getUserAgent, T as IncodeCanvas, k as stopCameraStream, w as createHiddenVideoElement } from "./src-D3v6I2la.esm.js";
|
|
2
2
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
3
3
|
import { t as addDeviceStats } from "./stats-D76Thmqp.esm.js";
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, r as eventScreenNames, u as screenOpened } from "./events-b4_xvENs.esm.js";
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import {
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-B57NWDGu.esm.js";
|
|
3
|
+
import { A as createManager, k as stopCameraStream } from "./src-D3v6I2la.esm.js";
|
|
4
4
|
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-07M59Cte.esm.js";
|
|
5
5
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
2
|
-
import {
|
|
1
|
+
import { t as getBackCameraStream } from "./backCameraStream-B57NWDGu.esm.js";
|
|
2
|
+
import { A as createManager, k as stopCameraStream } from "./src-D3v6I2la.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-07M59Cte.esm.js";
|
|
4
4
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-b4_xvENs.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { A as createManager } from "./src-D3v6I2la.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-07M59Cte.esm.js";
|
|
4
4
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-b4_xvENs.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { A as createManager, g as BrowserTimerProvider } from "./src-D3v6I2la.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
|
|
4
4
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
package/dist/email.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-b4_xvENs.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { A as createManager, g as BrowserTimerProvider } from "./src-D3v6I2la.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
|
|
4
4
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
package/dist/face-match.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-b4_xvENs.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { A as createManager } from "./src-D3v6I2la.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-07M59Cte.esm.js";
|
|
4
4
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
package/dist/{faceCaptureManagerFactory-CMLiRjYr.d.ts → faceCaptureManagerFactory-D1NUo68Z.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as IRecordingCapability, n as PermissionStatus, r as IStorageCapability, s as MLProviderConfig } from "./types-B4KNFqC4.js";
|
|
2
|
-
import {
|
|
2
|
+
import { n as WasmPipeline } from "./warmup-Da5qDIWZ.js";
|
|
3
3
|
import { t as Manager } from "./Manager-CG5CQ1kY.js";
|
|
4
4
|
import { t as CameraStream } from "./camera-D7zu0Mls.js";
|
|
5
5
|
import { t as Flow } from "./types-Bn54lmeM.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames } from "./events-b4_xvENs.esm.js";
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import {
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-B57NWDGu.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-D3v6I2la.esm.js";
|
|
4
4
|
import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
|
|
5
|
-
import { a as uploadDeepsightVideo, i as stopRecording$1, l as getDeviceClass, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-
|
|
5
|
+
import { a as uploadDeepsightVideo, i as stopRecording$1, l as getDeviceClass, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-CQq5fJCL.esm.js";
|
|
6
6
|
import { r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
|
|
7
7
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
|
8
8
|
import { t as addDeviceStats } from "./stats-D76Thmqp.esm.js";
|
|
@@ -445,7 +445,7 @@ async function stopRecording(session) {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
async function initializeDeepsightSession(options) {
|
|
448
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
448
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-BXTRzhYx.esm.js");
|
|
449
449
|
return loadDeepsightSession({
|
|
450
450
|
ds: options.ds,
|
|
451
451
|
storage: options.storage
|
package/dist/flow.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as WasmPipeline } from "./warmup-Da5qDIWZ.js";
|
|
2
2
|
import { t as Manager } from "./Manager-CG5CQ1kY.js";
|
|
3
3
|
import "./camera-D7zu0Mls.js";
|
|
4
4
|
import { t as AnyStateMachine } from "./StateMachine-WHeQE3lC.js";
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as createManager } from "./src-D3v6I2la.esm.js";
|
|
2
2
|
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
|
|
3
3
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames } from "./events-b4_xvENs.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { A as createManager, F as isAndroid, L as isIOS, b as BrowserGeolocationProvider } from "./src-D3v6I2la.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-07M59Cte.esm.js";
|
|
4
4
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as createManager, g as BrowserTimerProvider } from "./src-D3v6I2la.esm.js";
|
|
2
2
|
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
|
|
3
3
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { d as addEvent, m as revokeObjectURL, n as eventModuleNames } from "./events-b4_xvENs.esm.js";
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import {
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-B57NWDGu.esm.js";
|
|
3
|
+
import { A as createManager, I as isDesktop, N as getWindowDimensions, S as StreamCanvasCapture, T as IncodeCanvas, _ as BrowserStorageProvider, d as OpenViduRecordingProvider, g as BrowserTimerProvider, h as FingerprintProvider, i as DEFAULT_ID_CAPTURE_THRESHOLDS, m as IpifyProvider, o as IdCaptureProvider, r as DEFAULT_ID_CAPTURE_MODEL_VERSION, v as BrowserInfoProvider, x as StreamCanvasProcessingSession, y as BrowserEnvironmentProvider } from "./src-D3v6I2la.esm.js";
|
|
4
4
|
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
|
|
5
|
-
import { i as stopRecording$1, l as getDeviceClass, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-
|
|
6
|
-
import { n as isBrowserSimulation } from "./deepsightService-
|
|
5
|
+
import { i as stopRecording$1, l as getDeviceClass, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-CQq5fJCL.esm.js";
|
|
6
|
+
import { n as isBrowserSimulation } from "./deepsightService-CTK55DG8.esm.js";
|
|
7
7
|
import { n as getApi, r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
|
9
9
|
import { t as addDeviceStats } from "./stats-D76Thmqp.esm.js";
|
|
@@ -298,7 +298,8 @@ const DEFAULT_ID_CAPTURE_SETTINGS = {
|
|
|
298
298
|
blurCheckEnabled: false,
|
|
299
299
|
glareCheckEnabled: false,
|
|
300
300
|
faceQualityCheckEnabled: true,
|
|
301
|
-
iouCheckEnabled: true
|
|
301
|
+
iouCheckEnabled: true,
|
|
302
|
+
fpsLimitEnabled: false
|
|
302
303
|
};
|
|
303
304
|
async function initializeIdCapture(params) {
|
|
304
305
|
const { config, deepsightService } = params;
|
|
@@ -685,7 +686,8 @@ const runDetectionActor = fromCallback(({ input, sendBack }) => {
|
|
|
685
686
|
blurCheckEnabled: input.config.settings?.blurCheckEnabled ?? false,
|
|
686
687
|
glareCheckEnabled: input.config.settings?.glareCheckEnabled ?? false,
|
|
687
688
|
faceQualityCheckEnabled: input.config.settings?.faceQualityCheckEnabled ?? true,
|
|
688
|
-
iouCheckEnabled: input.config.settings?.iouCheckEnabled ?? true
|
|
689
|
+
iouCheckEnabled: input.config.settings?.iouCheckEnabled ?? true,
|
|
690
|
+
fpsLimitEnabled: input.config.settings?.fpsLimitEnabled ?? false
|
|
689
691
|
});
|
|
690
692
|
const thresholds = {
|
|
691
693
|
...DEFAULT_ID_CAPTURE_THRESHOLDS,
|
|
@@ -896,7 +898,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
|
|
|
896
898
|
});
|
|
897
899
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
898
900
|
if (!input.dependencies) return;
|
|
899
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
901
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-BXTRzhYx.esm.js");
|
|
900
902
|
return loadDeepsightSession({
|
|
901
903
|
ds: input.ds,
|
|
902
904
|
storage: input.dependencies.storage,
|
package/dist/id.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-5ZEjz-8I.js";
|
|
2
2
|
import "./deepsightService-CYCDsan2.js";
|
|
3
3
|
import { n as PermissionStatus, t as PermissionResult } from "./types-B4KNFqC4.js";
|
|
4
4
|
import "./Manager-CG5CQ1kY.js";
|
package/dist/id.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./events-b4_xvENs.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
2
|
+
import "./backCameraStream-B57NWDGu.esm.js";
|
|
3
|
+
import "./src-D3v6I2la.esm.js";
|
|
4
4
|
import "./xstate.esm-07M59Cte.esm.js";
|
|
5
|
-
import "./streamingEvents-
|
|
6
|
-
import "./deepsightService-
|
|
5
|
+
import "./streamingEvents-CQq5fJCL.esm.js";
|
|
6
|
+
import "./deepsightService-CTK55DG8.esm.js";
|
|
7
7
|
import "./api-3fZO5bmj.esm.js";
|
|
8
8
|
import "./endpoints-5sPFFmaB.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-
|
|
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-TUJyOPso.esm.js";
|
|
10
10
|
import "./stats-D76Thmqp.esm.js";
|
|
11
11
|
|
|
12
12
|
export { ID_ERROR_CODES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
|
@@ -55,6 +55,7 @@ interface IdCaptureSettings {
|
|
|
55
55
|
glareCheckEnabled: boolean;
|
|
56
56
|
faceQualityCheckEnabled: boolean;
|
|
57
57
|
iouCheckEnabled: boolean;
|
|
58
|
+
fpsLimitEnabled: boolean;
|
|
58
59
|
}
|
|
59
60
|
type IdCaptureModelType = 'v1' | 'v2' | 'v3';
|
|
60
61
|
type DetectionOrientation = 'horizontal' | 'vertical';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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-5ZEjz-8I.js";
|
|
2
2
|
import "./deepsightService-CYCDsan2.js";
|
|
3
3
|
import { n as PermissionStatus, t as PermissionResult } from "./types-B4KNFqC4.js";
|
|
4
|
-
import { n as warmupWasm, t as
|
|
4
|
+
import { n as WasmPipeline, r as warmupWasm, t as WarmupConfig } from "./warmup-Da5qDIWZ.js";
|
|
5
5
|
import "./Manager-CG5CQ1kY.js";
|
|
6
6
|
import { t as CameraStream } from "./camera-D7zu0Mls.js";
|
|
7
7
|
import "./Actor-B6Lr-x6S.js";
|
|
@@ -82,6 +82,12 @@ declare class ScreenOrientationProvider implements IScreenOrientationCapability
|
|
|
82
82
|
private updateState;
|
|
83
83
|
}
|
|
84
84
|
//#endregion
|
|
85
|
+
//#region ../infra/src/wasm/wasmDefaults.d.ts
|
|
86
|
+
/** The WASM version bundled and tested with this SDK release. */
|
|
87
|
+
declare const DEFAULT_WASM_VERSION = "v2.12.84";
|
|
88
|
+
/** Builds the standard WarmupConfig from the Incode CDN. */
|
|
89
|
+
declare function buildDefaultWasmConfig(): WarmupConfig;
|
|
90
|
+
//#endregion
|
|
85
91
|
//#region src/internal/device/getBrowser.d.ts
|
|
86
92
|
type Browser = 'chrome' | 'firefox' | 'safari' | 'edge' | 'opera' | 'other' | 'samsung_browser';
|
|
87
93
|
declare function getBrowser(): Browser;
|
|
@@ -275,8 +281,13 @@ type SetupOptions = {
|
|
|
275
281
|
customHeaders?: Record<string, string>;
|
|
276
282
|
/** Request timeout in milliseconds */
|
|
277
283
|
timeout?: number;
|
|
278
|
-
/**
|
|
279
|
-
|
|
284
|
+
/**
|
|
285
|
+
* WASM warmup config.
|
|
286
|
+
* - Omit (default): loads automatically from the Incode CDN using the SDK's built-in version.
|
|
287
|
+
* - `false`: opt out of WASM entirely.
|
|
288
|
+
* - Object: override paths for self-hosting or a specific version.
|
|
289
|
+
*/
|
|
290
|
+
wasm?: WasmConfig | false;
|
|
280
291
|
/** Optional hosting app identifier for fingerprint tracking */
|
|
281
292
|
hostingApp?: string;
|
|
282
293
|
};
|
|
@@ -284,8 +295,7 @@ type SetupOptions = {
|
|
|
284
295
|
* Initializes the SDK with the provided configuration.
|
|
285
296
|
* Must be called before using any SDK functionality.
|
|
286
297
|
*
|
|
287
|
-
*
|
|
288
|
-
* preload WASM binary and ML models. Otherwise, it's synchronous.
|
|
298
|
+
* WASM loads automatically from the Incode CDN unless explicitly disabled or overridden.
|
|
289
299
|
*
|
|
290
300
|
* @param options - Configuration options for the SDK
|
|
291
301
|
*
|
|
@@ -293,24 +303,19 @@ type SetupOptions = {
|
|
|
293
303
|
* ```ts
|
|
294
304
|
* import { setup, createSession } from '@incodetech/core';
|
|
295
305
|
*
|
|
296
|
-
* //
|
|
297
|
-
* await setup({ apiURL: 'https://api.incode.com' });
|
|
298
|
-
* const session = await createSession('api-key', { configurationId: 'flow-id' });
|
|
306
|
+
* // Zero-config: WASM loads automatically from CDN
|
|
307
|
+
* await setup({ apiURL: 'https://api.incode.com', token: 'session-token' });
|
|
299
308
|
*
|
|
300
|
-
* //
|
|
301
|
-
* await setup({
|
|
302
|
-
* apiURL: 'https://api.incode.com',
|
|
303
|
-
* token: 'session-token',
|
|
304
|
-
* });
|
|
309
|
+
* // Opt out of WASM
|
|
310
|
+
* await setup({ apiURL: 'https://api.incode.com', token: 'session-token', wasm: false });
|
|
305
311
|
*
|
|
306
|
-
* //
|
|
312
|
+
* // Self-hosted / custom version
|
|
307
313
|
* await setup({
|
|
308
314
|
* apiURL: 'https://api.incode.com',
|
|
309
315
|
* token: 'session-token',
|
|
310
316
|
* wasm: {
|
|
311
|
-
* wasmPath: '/
|
|
312
|
-
* glueCodePath: '/
|
|
313
|
-
* pipelines: ['selfie', 'idCapture'],
|
|
317
|
+
* wasmPath: '/my-cdn/webLib.wasm',
|
|
318
|
+
* glueCodePath: '/my-cdn/webLib.js',
|
|
314
319
|
* },
|
|
315
320
|
* });
|
|
316
321
|
* ```
|
|
@@ -562,4 +567,4 @@ declare function moduleClosed(module: EventModule | string, screen?: EventScreen
|
|
|
562
567
|
declare function screenOpened(module: EventModule | string, screen: EventScreen | string, payload?: Record<string, unknown>): void;
|
|
563
568
|
declare function screenClosed(module: EventModule | string, screen: EventScreen | string, payload?: Record<string, unknown>): void;
|
|
564
569
|
//#endregion
|
|
565
|
-
export { type Browser, CameraStream, CaptureIdResponse, CapturedImage, CreateIdCaptureActorOptions, type CreateSessionOptions, DetectionArea, DetectionOrientation, DetectionStatus, type DeviceClass, type Event, type EventModule, type EventScreen, type HttpClient, ID_ERROR_CODES, IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, IdCaptureMachine, IdCaptureManager, IdCaptureMode, IdCaptureSettings, IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, type PermissionResult, type PermissionStatus, RecordingSession, type ScreenOrientationObserver, ScreenOrientationProvider, type Session, type SessionInitOptions, type SessionInitResult, type SetupOptions, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, type WasmConfig, type WasmPipeline, addEvent, api, cameraScreenNamesMapper, checkPermission as checkCameraPermission, createApi, createIdCaptureActor, createIdCaptureManager, createScreenOrientationObserver, createSession, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isIPad, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
|
|
570
|
+
export { type Browser, CameraStream, CaptureIdResponse, CapturedImage, CreateIdCaptureActorOptions, type CreateSessionOptions, DEFAULT_WASM_VERSION, DetectionArea, DetectionOrientation, DetectionStatus, type DeviceClass, type Event, type EventModule, type EventScreen, type HttpClient, ID_ERROR_CODES, IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, IdCaptureMachine, IdCaptureManager, IdCaptureMode, IdCaptureSettings, IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, type PermissionResult, type PermissionStatus, RecordingSession, type ScreenOrientationObserver, ScreenOrientationProvider, type Session, type SessionInitOptions, type SessionInitResult, type SetupOptions, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, type WasmConfig, type WasmPipeline, addEvent, api, buildDefaultWasmConfig, cameraScreenNamesMapper, checkPermission as checkCameraPermission, createApi, createIdCaptureActor, createIdCaptureManager, createScreenOrientationObserver, createSession, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isIPad, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
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-b4_xvENs.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import {
|
|
2
|
+
import "./backCameraStream-B57NWDGu.esm.js";
|
|
3
|
+
import { R as isIPad, a as WasmUtilProvider, c as warmupWasm, j as createApi_default, n as buildDefaultWasmConfig, t as DEFAULT_WASM_VERSION, u as ScreenOrientationProvider } from "./src-D3v6I2la.esm.js";
|
|
4
4
|
import "./xstate.esm-07M59Cte.esm.js";
|
|
5
|
-
import { c as createScreenOrientationObserver, l as getDeviceClass, o as checkPermission, s as requestPermission, u as getBrowser } from "./streamingEvents-
|
|
6
|
-
import "./deepsightService-
|
|
5
|
+
import { c as createScreenOrientationObserver, l as getDeviceClass, o as checkPermission, s as requestPermission, u as getBrowser } from "./streamingEvents-CQq5fJCL.esm.js";
|
|
6
|
+
import "./deepsightService-CTK55DG8.esm.js";
|
|
7
7
|
import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-3fZO5bmj.esm.js";
|
|
8
8
|
import "./endpoints-5sPFFmaB.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-
|
|
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-TUJyOPso.esm.js";
|
|
10
10
|
import "./stats-D76Thmqp.esm.js";
|
|
11
11
|
|
|
12
12
|
//#region src/setup.ts
|
|
@@ -16,8 +16,7 @@ let configured = false;
|
|
|
16
16
|
* Initializes the SDK with the provided configuration.
|
|
17
17
|
* Must be called before using any SDK functionality.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
* preload WASM binary and ML models. Otherwise, it's synchronous.
|
|
19
|
+
* WASM loads automatically from the Incode CDN unless explicitly disabled or overridden.
|
|
21
20
|
*
|
|
22
21
|
* @param options - Configuration options for the SDK
|
|
23
22
|
*
|
|
@@ -25,24 +24,19 @@ let configured = false;
|
|
|
25
24
|
* ```ts
|
|
26
25
|
* import { setup, createSession } from '@incodetech/core';
|
|
27
26
|
*
|
|
28
|
-
* //
|
|
29
|
-
* await setup({ apiURL: 'https://api.incode.com' });
|
|
30
|
-
* const session = await createSession('api-key', { configurationId: 'flow-id' });
|
|
27
|
+
* // Zero-config: WASM loads automatically from CDN
|
|
28
|
+
* await setup({ apiURL: 'https://api.incode.com', token: 'session-token' });
|
|
31
29
|
*
|
|
32
|
-
* //
|
|
33
|
-
* await setup({
|
|
34
|
-
* apiURL: 'https://api.incode.com',
|
|
35
|
-
* token: 'session-token',
|
|
36
|
-
* });
|
|
30
|
+
* // Opt out of WASM
|
|
31
|
+
* await setup({ apiURL: 'https://api.incode.com', token: 'session-token', wasm: false });
|
|
37
32
|
*
|
|
38
|
-
* //
|
|
33
|
+
* // Self-hosted / custom version
|
|
39
34
|
* await setup({
|
|
40
35
|
* apiURL: 'https://api.incode.com',
|
|
41
36
|
* token: 'session-token',
|
|
42
37
|
* wasm: {
|
|
43
|
-
* wasmPath: '/
|
|
44
|
-
* glueCodePath: '/
|
|
45
|
-
* pipelines: ['selfie', 'idCapture'],
|
|
38
|
+
* wasmPath: '/my-cdn/webLib.wasm',
|
|
39
|
+
* glueCodePath: '/my-cdn/webLib.js',
|
|
46
40
|
* },
|
|
47
41
|
* });
|
|
48
42
|
* ```
|
|
@@ -61,23 +55,10 @@ async function setup(options) {
|
|
|
61
55
|
});
|
|
62
56
|
}
|
|
63
57
|
configured = true;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
glueCodePath: options.wasm.glueCodePath,
|
|
69
|
-
useSimd: options.wasm.useSimd,
|
|
70
|
-
pipelines: options.wasm.pipelines,
|
|
71
|
-
modelsBasePath: options.wasm.modelsBasePath
|
|
72
|
-
});
|
|
73
|
-
await (await WasmUtilProvider.getInstance()).initialize({
|
|
74
|
-
wasmPath: options.wasm.wasmPath,
|
|
75
|
-
wasmSimdPath: options.wasm.wasmSimdPath,
|
|
76
|
-
glueCodePath: options.wasm.glueCodePath,
|
|
77
|
-
useSimd: options.wasm.useSimd,
|
|
78
|
-
pipelines: options.wasm.pipelines,
|
|
79
|
-
modelsBasePath: options.wasm.modelsBasePath
|
|
80
|
-
});
|
|
58
|
+
const effectiveWasm = options.wasm === false ? void 0 : options.wasm ?? buildDefaultWasmConfig();
|
|
59
|
+
if (effectiveWasm) {
|
|
60
|
+
await warmupWasm({ ...effectiveWasm });
|
|
61
|
+
await (await WasmUtilProvider.getInstance()).initialize({ ...effectiveWasm });
|
|
81
62
|
}
|
|
82
63
|
}
|
|
83
64
|
/**
|
|
@@ -128,4 +109,4 @@ function reset() {
|
|
|
128
109
|
}
|
|
129
110
|
|
|
130
111
|
//#endregion
|
|
131
|
-
export { ID_ERROR_CODES, ScreenOrientationProvider, addEvent, api, cameraScreenNamesMapper, checkPermission as checkCameraPermission, createApi_default as createApi, createIdCaptureActor, createIdCaptureManager, createScreenOrientationObserver, createSession, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isIPad, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
|
|
112
|
+
export { DEFAULT_WASM_VERSION, ID_ERROR_CODES, ScreenOrientationProvider, addEvent, api, buildDefaultWasmConfig, cameraScreenNamesMapper, checkPermission as checkCameraPermission, createApi_default as createApi, createIdCaptureActor, createIdCaptureManager, createScreenOrientationObserver, createSession, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isIPad, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-b4_xvENs.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { A as createManager, g as BrowserTimerProvider } from "./src-D3v6I2la.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
|
|
4
4
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as createManager, g as BrowserTimerProvider } from "./src-D3v6I2la.esm.js";
|
|
2
2
|
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
|
|
3
3
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as IncodeCanvas, n as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-CYCDsan2.js";
|
|
2
2
|
import { n as PermissionStatus, o as IMLProviderCapability, s as MLProviderConfig, t as PermissionResult } from "./types-B4KNFqC4.js";
|
|
3
|
-
import {
|
|
4
|
-
import { a as FaceCaptureDependencies, i as DetectionStatus, n as FaceCaptureManagerState, o as FaceErrorCode, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { n as WasmPipeline } from "./warmup-Da5qDIWZ.js";
|
|
4
|
+
import { a as FaceCaptureDependencies, i as DetectionStatus, n as FaceCaptureManagerState, o as FaceErrorCode, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-D1NUo68Z.js";
|
|
5
5
|
import { t as Manager } from "./Manager-CG5CQ1kY.js";
|
|
6
6
|
import { t as CameraStream } from "./camera-D7zu0Mls.js";
|
|
7
7
|
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-WHeQE3lC.js";
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { d as addEvent, n as eventModuleNames } from "./events-b4_xvENs.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import {
|
|
2
|
+
import "./backCameraStream-B57NWDGu.esm.js";
|
|
3
|
+
import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-D3v6I2la.esm.js";
|
|
4
4
|
import { a as createActor, i as fromPromise, n as assign } from "./xstate.esm-07M59Cte.esm.js";
|
|
5
|
-
import "./streamingEvents-
|
|
6
|
-
import "./deepsightService-
|
|
5
|
+
import "./streamingEvents-CQq5fJCL.esm.js";
|
|
6
|
+
import "./deepsightService-CTK55DG8.esm.js";
|
|
7
7
|
import "./api-3fZO5bmj.esm.js";
|
|
8
8
|
import "./endpoints-5sPFFmaB.esm.js";
|
|
9
9
|
import "./stats-D76Thmqp.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-
|
|
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-10lCb_yE.esm.js";
|
|
11
11
|
|
|
12
12
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
13
13
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
@@ -4890,9 +4890,9 @@ var MlWasmJSApi = class MlWasmJSApi {
|
|
|
4890
4890
|
this.checkWasmInitialization("Unable to set geometry params, cpp API hasn't been initialized");
|
|
4891
4891
|
this.idCaptureWasmApi.setIdCaptureGeometryParams(this.pipelineTypeToWasmEnum(type), areaDown, areaUp, areaIOSPassportUp, areaIOSPassportDown, widthIOSUp, widthIOSDown, widthDown, widthUp, windowOuterWidth, windowOuterHeight, windowInnerWidth, windowInnerHeight);
|
|
4892
4892
|
}
|
|
4893
|
-
async setIdCaptureConfigParams(type, isFixedMask, isIPhone14OrHigher$1, idType, isBlurCheckEnabled, isGlareCheckEnabled, isIdFaceQualityCheckEnabled, isIouCheckEnabled) {
|
|
4893
|
+
async setIdCaptureConfigParams(type, isFixedMask, isIPhone14OrHigher$1, idType, isBlurCheckEnabled, isGlareCheckEnabled, isIdFaceQualityCheckEnabled, isIouCheckEnabled, isFPSLimitEnabled) {
|
|
4894
4894
|
this.checkWasmInitialization("Unable to set config params, cpp API hasn't been initialized");
|
|
4895
|
-
this.idCaptureWasmApi.setIdCaptureConfigParams(this.pipelineTypeToWasmEnum(type), isFixedMask, isIPhone14OrHigher$1, idType, isBlurCheckEnabled, isGlareCheckEnabled, isIdFaceQualityCheckEnabled, isIouCheckEnabled);
|
|
4895
|
+
this.idCaptureWasmApi.setIdCaptureConfigParams(this.pipelineTypeToWasmEnum(type), isFixedMask, isIPhone14OrHigher$1, idType, isBlurCheckEnabled, isGlareCheckEnabled, isIdFaceQualityCheckEnabled, isIouCheckEnabled, isFPSLimitEnabled);
|
|
4896
4896
|
}
|
|
4897
4897
|
setIdCaptureModelType(pipelineType, modelType) {
|
|
4898
4898
|
this.checkWasmInitialization("Unable to set model type, cpp API hasn't been initialized");
|
|
@@ -5536,7 +5536,7 @@ var IdCaptureProvider = class extends BaseWasmProvider {
|
|
|
5536
5536
|
}
|
|
5537
5537
|
setSettings(settings) {
|
|
5538
5538
|
this.ensureInitialized();
|
|
5539
|
-
mlWasmJSApi_default.setIdCaptureConfigParams(this.getPipelineType(), settings.isFixedMask, settings.isIPhone14OrHigher, settings.idType, settings.blurCheckEnabled, settings.glareCheckEnabled, settings.faceQualityCheckEnabled, settings.iouCheckEnabled);
|
|
5539
|
+
mlWasmJSApi_default.setIdCaptureConfigParams(this.getPipelineType(), settings.isFixedMask, settings.isIPhone14OrHigher, settings.idType, settings.blurCheckEnabled, settings.glareCheckEnabled, settings.faceQualityCheckEnabled, settings.iouCheckEnabled, settings.fpsLimitEnabled);
|
|
5540
5540
|
}
|
|
5541
5541
|
setModelType(modelType) {
|
|
5542
5542
|
this.ensureInitialized();
|
|
@@ -5787,4 +5787,20 @@ const DEFAULT_ID_CAPTURE_THRESHOLDS = {
|
|
|
5787
5787
|
const DEFAULT_ID_CAPTURE_MODEL_VERSION = "v2";
|
|
5788
5788
|
|
|
5789
5789
|
//#endregion
|
|
5790
|
-
|
|
5790
|
+
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
5791
|
+
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
5792
|
+
/** The WASM version bundled and tested with this SDK release. */
|
|
5793
|
+
const DEFAULT_WASM_VERSION = "v2.12.84";
|
|
5794
|
+
/** Builds the standard WarmupConfig from the Incode CDN. */
|
|
5795
|
+
function buildDefaultWasmConfig() {
|
|
5796
|
+
const base = `${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`;
|
|
5797
|
+
return {
|
|
5798
|
+
wasmPath: `${base}/webLib.wasm`,
|
|
5799
|
+
wasmSimdPath: `${base}/webLibSimd.wasm`,
|
|
5800
|
+
glueCodePath: `${base}/webLib.js`,
|
|
5801
|
+
modelsBasePath: `${base}/models`
|
|
5802
|
+
};
|
|
5803
|
+
}
|
|
5804
|
+
|
|
5805
|
+
//#endregion
|
|
5806
|
+
export { createManager as A, isSafari as B, queryCameraPermission as C, enumerateVideoDevices as D, applyTrackConstraints as E, isAndroid as F, isDesktop as I, isIOS as L, getDeviceInfo as M, getWindowDimensions as N, requestCameraAccess as O, getUserAgent as P, isIPad as R, StreamCanvasCapture as S, IncodeCanvas as T, BrowserStorageProvider as _, WasmUtilProvider as a, BrowserGeolocationProvider as b, warmupWasm as c, OpenViduRecordingProvider as d, MotionSensorProvider as f, BrowserTimerProvider as g, FingerprintProvider as h, DEFAULT_ID_CAPTURE_THRESHOLDS as i, createApi_default as j, stopCameraStream as k, VisibilityProvider as l, IpifyProvider as m, buildDefaultWasmConfig as n, IdCaptureProvider as o, LocalRecordingProvider as p, DEFAULT_ID_CAPTURE_MODEL_VERSION as r, FaceDetectionProvider as s, DEFAULT_WASM_VERSION as t, ScreenOrientationProvider as u, BrowserInfoProvider as v, createHiddenVideoElement as w, StreamCanvasProcessingSession as x, BrowserEnvironmentProvider as y, isIPhone14OrHigher as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as queryCameraPermission, M as getDeviceInfo, O as requestCameraAccess, P as getUserAgent, R as isIPad, f as MotionSensorProvider, k as stopCameraStream } from "./src-D3v6I2la.esm.js";
|
|
2
2
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-20260313-
|
|
3
|
+
"version": "0.0.0-dev-20260313-8b7649e",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"tsdown": "^0.16.6",
|
|
87
87
|
"typescript": "^5.9.3",
|
|
88
88
|
"vitest": "^4.0.13",
|
|
89
|
-
"@incodetech/
|
|
90
|
-
"@incodetech/
|
|
89
|
+
"@incodetech/config": "1.0.0",
|
|
90
|
+
"@incodetech/infra": "1.0.0"
|
|
91
91
|
},
|
|
92
92
|
"scripts": {
|
|
93
93
|
"build": "tsdown -c tsdown.config.ts",
|