@incodetech/core 0.0.0-dev-20260207-ef0d08c → 0.0.0-dev-20260209-168e887
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/Actor-uC1hxvGo.d.ts +2 -0
- package/dist/{OpenViduLogger-DrE4_cHh.esm.js → OpenViduLogger-Cut9zn-U.esm.js} +1 -1
- package/dist/OpenViduLogger-D_YCgaLD.esm.js +3 -0
- package/dist/authentication.d.ts +75 -0
- package/dist/authentication.esm.js +194 -0
- package/dist/{deepsightLoader-CHzDt5p2.esm.js → deepsightLoader-DHzfMqHS.esm.js} +4 -4
- package/dist/{deepsightService-D8qaikEi.d.ts → deepsightService-D9Isk8fg.d.ts} +4 -134
- package/dist/{deepsightService-C_AyxXhJ.esm.js → deepsightService-DLabZ49g.esm.js} +3 -3
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +4 -4
- package/dist/{endpoints-Q2cBwc8v.esm.js → endpoints-CJtl25ka.esm.js} +1 -0
- package/dist/{events-BN5bIhsN.esm.js → events-CieIKgPk.esm.js} +3 -2
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +4 -4
- package/dist/faceCaptureManagerFactory-CZgmP4pc.d.ts +227 -0
- package/dist/faceCaptureSetup-DRbBF7AJ.esm.js +1202 -0
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +3 -3
- package/dist/{id-B6VREnGU.esm.js → id-2r4nZyH_.esm.js} +8 -8
- package/dist/id.d.ts +6 -4
- package/dist/id.esm.js +8 -8
- package/dist/{index-BOpNqAs7.d.ts → index-C0SJR9cc.d.ts} +5 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.esm.js +8 -8
- package/dist/{lib-ieMlAKG1.esm.js → lib-BbiUxUyg.esm.js} +2 -2
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +4 -4
- package/dist/selfie.d.ts +38 -224
- package/dist/selfie.esm.js +22 -1145
- package/dist/{src-B0UBQ8zw.esm.js → src-BFHUdMI6.esm.js} +3 -3
- package/dist/{stats-CpcCA-Ml.esm.js → stats-DuS7aVaJ.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{streamingEvents-DhMoimL8.esm.js → streamingEvents-DM6KFfsz.esm.js} +3 -3
- package/dist/types-u31qr1MR.d.ts +133 -0
- package/package.json +5 -1
- package/dist/OpenViduLogger-B6-UWyJe.esm.js +0 -3
- /package/dist/{Manager-CWwvSZqZ.d.ts → Manager-BiAYYF50.d.ts} +0 -0
- /package/dist/{api-BkkE6cfa.esm.js → api-Cqrn4bGi.esm.js} +0 -0
- /package/dist/{chunk-CiY78uGR.esm.js → chunk-CbPq_V01.esm.js} +0 -0
- /package/dist/{types-BHcijCvX.d.ts → types-Dc1nBvy2.d.ts} +0 -0
package/dist/flow.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AnyStateMachine, n as FlowModule, r as FlowModuleConfig, s as WasmPipeline, t as Flow } from "./types-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import { a as AnyStateMachine, n as FlowModule, r as FlowModuleConfig, s as WasmPipeline, t as Flow } from "./types-Dc1nBvy2.js";
|
|
2
|
+
import { t as Manager } from "./Manager-BiAYYF50.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/flow/flowAnalyzer.d.ts
|
|
5
5
|
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as createManager } from "./src-
|
|
2
|
-
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-
|
|
3
|
-
import { t as api } from "./api-
|
|
1
|
+
import { E as createManager } from "./src-BFHUdMI6.esm.js";
|
|
2
|
+
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-CJtl25ka.esm.js";
|
|
3
|
+
import { t as api } from "./api-Cqrn4bGi.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/flow/flowAnalyzer.ts
|
|
6
6
|
const WASM_MODULE_PIPELINES = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as addEvent, m as revokeObjectURL, n as eventModuleNames } from "./events-
|
|
2
|
-
import { C as enumerateVideoDevices, E as createManager, F as isSafari, M as isDesktop, N as isIOS, P as isIPhone14OrHigher, S as applyTrackConstraints, T as stopCameraStream, _ as StreamCanvasProcessingSession, c as OpenViduRecordingProvider, d as IpifyProvider, f as FingerprintProvider, g as BrowserEnvironmentProvider, h as BrowserInfoProvider, j as isAndroid, k as getWindowDimensions, m as BrowserStorageProvider, n as DEFAULT_ID_CAPTURE_THRESHOLDS, p as BrowserTimerProvider, t as DEFAULT_ID_CAPTURE_MODEL_VERSION, v as StreamCanvasCapture, w as requestCameraAccess, x as IncodeCanvas } from "./src-
|
|
3
|
-
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-
|
|
4
|
-
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-
|
|
5
|
-
import { n as isBrowserSimulation } from "./deepsightService-
|
|
6
|
-
import { n as getApi, r as getToken, t as api } from "./api-
|
|
7
|
-
import { t as addDeviceStats } from "./stats-
|
|
1
|
+
import { d as addEvent, m as revokeObjectURL, n as eventModuleNames } from "./events-CieIKgPk.esm.js";
|
|
2
|
+
import { C as enumerateVideoDevices, E as createManager, F as isSafari, M as isDesktop, N as isIOS, P as isIPhone14OrHigher, S as applyTrackConstraints, T as stopCameraStream, _ as StreamCanvasProcessingSession, c as OpenViduRecordingProvider, d as IpifyProvider, f as FingerprintProvider, g as BrowserEnvironmentProvider, h as BrowserInfoProvider, j as isAndroid, k as getWindowDimensions, m as BrowserStorageProvider, n as DEFAULT_ID_CAPTURE_THRESHOLDS, p as BrowserTimerProvider, t as DEFAULT_ID_CAPTURE_MODEL_VERSION, v as StreamCanvasCapture, w as requestCameraAccess, x as IncodeCanvas } from "./src-BFHUdMI6.esm.js";
|
|
3
|
+
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-CJtl25ka.esm.js";
|
|
4
|
+
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-DM6KFfsz.esm.js";
|
|
5
|
+
import { n as isBrowserSimulation } from "./deepsightService-DLabZ49g.esm.js";
|
|
6
|
+
import { n as getApi, r as getToken, t as api } from "./api-Cqrn4bGi.esm.js";
|
|
7
|
+
import { t as addDeviceStats } from "./stats-DuS7aVaJ.esm.js";
|
|
8
8
|
|
|
9
9
|
//#region ../infra/src/capabilities/ITimerCapability.ts
|
|
10
10
|
function sleep(ms) {
|
|
@@ -1120,7 +1120,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
|
|
|
1120
1120
|
});
|
|
1121
1121
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1122
1122
|
if (!input.dependencies) return;
|
|
1123
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1123
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-DHzfMqHS.esm.js");
|
|
1124
1124
|
return loadDeepsightSession({
|
|
1125
1125
|
ds: input.ds,
|
|
1126
1126
|
storage: input.dependencies.storage,
|
package/dist/id.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { A as IdCaptureGeometry, B as IdCaptureProvider, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, H as IIdCaptureCapability, 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, U as IdCaptureSettings, V as DetectionOrientation, _ 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
|
|
3
|
-
import "./types-
|
|
4
|
-
import "./
|
|
1
|
+
import { A as IdCaptureGeometry, B as IdCaptureProvider, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, H as IIdCaptureCapability, 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, U as IdCaptureSettings, V as DetectionOrientation, _ 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-C0SJR9cc.js";
|
|
2
|
+
import "./deepsightService-D9Isk8fg.js";
|
|
3
|
+
import { n as PermissionStatus, r as CameraStream, t as PermissionResult } from "./types-u31qr1MR.js";
|
|
4
|
+
import "./types-Dc1nBvy2.js";
|
|
5
|
+
import "./Manager-BiAYYF50.js";
|
|
6
|
+
import "./Actor-uC1hxvGo.js";
|
|
5
7
|
export { CameraStream, CaptureIdResponse, CapturedImage, CreateIdCaptureActorOptions, DetectionArea, DetectionOrientation, DetectionStatus, ID_ERROR_CODES, IIdCaptureCapability, IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, IdCaptureMachine, IdCaptureManager, IdCaptureMode, IdCaptureProvider, 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,10 +1,10 @@
|
|
|
1
|
-
import "./events-
|
|
2
|
-
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-
|
|
3
|
-
import { i as IdCaptureProvider } from "./src-
|
|
4
|
-
import "./endpoints-
|
|
5
|
-
import "./streamingEvents-
|
|
6
|
-
import "./deepsightService-
|
|
7
|
-
import "./api-
|
|
8
|
-
import "./stats-
|
|
1
|
+
import "./events-CieIKgPk.esm.js";
|
|
2
|
+
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-2r4nZyH_.esm.js";
|
|
3
|
+
import { i as IdCaptureProvider } from "./src-BFHUdMI6.esm.js";
|
|
4
|
+
import "./endpoints-CJtl25ka.esm.js";
|
|
5
|
+
import "./streamingEvents-DM6KFfsz.esm.js";
|
|
6
|
+
import "./deepsightService-DLabZ49g.esm.js";
|
|
7
|
+
import "./api-Cqrn4bGi.esm.js";
|
|
8
|
+
import "./stats-DuS7aVaJ.esm.js";
|
|
9
9
|
|
|
10
10
|
export { ID_ERROR_CODES, IdCaptureProvider, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { a as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
1
|
+
import { a as IncodeCanvas, i as IMotionSensorCapability, n as BaseWasmProvider, r as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-D9Isk8fg.js";
|
|
2
|
+
import { a as IRecordingCapability, c as MLProviderConfig, i as IStorageCapability, n as PermissionStatus, o as RecordingConnection, r as CameraStream, s as IMLProviderCapability, t as PermissionResult } from "./types-u31qr1MR.js";
|
|
3
|
+
import { a as AnyStateMachine, i as TutorialIdConfig, o as StateMachine, t as Flow } from "./types-Dc1nBvy2.js";
|
|
4
|
+
import { t as Manager } from "./Manager-BiAYYF50.js";
|
|
5
|
+
import { t as ActorRefFrom } from "./Actor-uC1hxvGo.js";
|
|
5
6
|
|
|
6
7
|
//#region ../infra/src/capabilities/IAnalyticsCapability.d.ts
|
|
7
8
|
interface IAnalyticsCapability {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { A as IdCaptureGeometry, B as IdCaptureProvider, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, H as IIdCaptureCapability, 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, U as IdCaptureSettings, V as DetectionOrientation, _ 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
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
1
|
+
import { A as IdCaptureGeometry, B as IdCaptureProvider, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, H as IIdCaptureCapability, 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, U as IdCaptureSettings, V as DetectionOrientation, _ 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-C0SJR9cc.js";
|
|
2
|
+
import "./deepsightService-D9Isk8fg.js";
|
|
3
|
+
import { n as PermissionStatus, r as CameraStream, t as PermissionResult } from "./types-u31qr1MR.js";
|
|
4
|
+
import { c as warmupWasm, s as WasmPipeline } from "./types-Dc1nBvy2.js";
|
|
5
|
+
import "./Manager-BiAYYF50.js";
|
|
6
|
+
import "./Actor-uC1hxvGo.js";
|
|
5
7
|
|
|
6
8
|
//#region ../infra/src/http/types.d.ts
|
|
7
9
|
type CreateApiConfig = {
|
|
@@ -311,6 +313,7 @@ type Event = {
|
|
|
311
313
|
};
|
|
312
314
|
declare const eventModuleNames: {
|
|
313
315
|
readonly selfie: "SELFIE";
|
|
316
|
+
readonly authentication: "AUTHENTICATION";
|
|
314
317
|
readonly authFace: "AUTH_FACE";
|
|
315
318
|
readonly mlConsent: "ML_CONSENT";
|
|
316
319
|
readonly combinedConsent: "COMBINED_CONSENT";
|
package/dist/index.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 { _ 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-
|
|
3
|
-
import { D as createApi_default, i as IdCaptureProvider, o as warmupWasm, r as WasmUtilProvider } from "./src-
|
|
4
|
-
import "./endpoints-
|
|
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 "./stats-
|
|
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-CieIKgPk.esm.js";
|
|
2
|
+
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-2r4nZyH_.esm.js";
|
|
3
|
+
import { D as createApi_default, i as IdCaptureProvider, o as warmupWasm, r as WasmUtilProvider } from "./src-BFHUdMI6.esm.js";
|
|
4
|
+
import "./endpoints-CJtl25ka.esm.js";
|
|
5
|
+
import { c as getDeviceClass, l as getBrowser, o as checkPermission, s as requestPermission } from "./streamingEvents-DM6KFfsz.esm.js";
|
|
6
|
+
import "./deepsightService-DLabZ49g.esm.js";
|
|
7
|
+
import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-Cqrn4bGi.esm.js";
|
|
8
|
+
import "./stats-DuS7aVaJ.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/setup.ts
|
|
11
11
|
let wasmConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-
|
|
2
|
-
import { n as require_jsnlog, t as require_OpenViduLogger } from "./OpenViduLogger-
|
|
1
|
+
import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-CbPq_V01.esm.js";
|
|
2
|
+
import { n as require_jsnlog, t as require_OpenViduLogger } from "./OpenViduLogger-Cut9zn-U.esm.js";
|
|
3
3
|
|
|
4
4
|
//#region ../../node_modules/.pnpm/openvidu-browser@2.32.1/node_modules/openvidu-browser/lib/OpenViduInternal/Enums/LocalRecorderState.js
|
|
5
5
|
var require_LocalRecorderState = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/openvidu-browser@2.32.1/node_modules/openvidu-browser/lib/OpenViduInternal/Enums/LocalRecorderState.js": ((exports) => {
|
package/dist/phone.d.ts
CHANGED
package/dist/phone.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-
|
|
2
|
-
import { E as createManager, p as BrowserTimerProvider } from "./src-
|
|
3
|
-
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-
|
|
4
|
-
import { t as api } from "./api-
|
|
1
|
+
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-CieIKgPk.esm.js";
|
|
2
|
+
import { E as createManager, p as BrowserTimerProvider } from "./src-BFHUdMI6.esm.js";
|
|
3
|
+
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-CJtl25ka.esm.js";
|
|
4
|
+
import { t as api } from "./api-Cqrn4bGi.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/phone/phoneServices.ts
|
|
7
7
|
async function fetchPhone(signal) {
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as IncodeCanvas, n as BaseWasmProvider, r as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-D9Isk8fg.js";
|
|
2
|
+
import { c as MLProviderConfig, n as PermissionStatus, r as CameraStream, s as IMLProviderCapability, t as PermissionResult } from "./types-u31qr1MR.js";
|
|
3
|
+
import { a as AnyStateMachine, o as StateMachine, r as FlowModuleConfig } from "./types-Dc1nBvy2.js";
|
|
4
|
+
import { a as FaceCaptureDependencies, i as DetectionStatus, n as FaceCaptureManagerState, o as FaceErrorCode, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CZgmP4pc.js";
|
|
5
|
+
import { t as Manager } from "./Manager-BiAYYF50.js";
|
|
4
6
|
|
|
5
7
|
//#region ../infra/src/capabilities/IFaceDetectionCapability.d.ts
|
|
6
|
-
|
|
7
8
|
/**
|
|
8
9
|
* Configuration for face detection provider.
|
|
9
10
|
* Extends base ML provider config with face-detection specific options.
|
|
@@ -143,61 +144,6 @@ interface IFaceDetectionCapability extends IMLProviderCapability<FaceDetectionCo
|
|
|
143
144
|
setVideoSelfieMode(enabled: boolean): void;
|
|
144
145
|
}
|
|
145
146
|
//#endregion
|
|
146
|
-
//#region ../infra/src/capabilities/IWasmUtilCapability.d.ts
|
|
147
|
-
type WasmUtilConfig = MLProviderConfig & {
|
|
148
|
-
pipelines?: WasmPipeline[];
|
|
149
|
-
};
|
|
150
|
-
type VirtualCameraCheckOutput = {
|
|
151
|
-
canvas: HTMLCanvasElement | null;
|
|
152
|
-
itr: boolean | null;
|
|
153
|
-
skipped: boolean | null;
|
|
154
|
-
};
|
|
155
|
-
type IWasmUtilCapability = {
|
|
156
|
-
/**
|
|
157
|
-
* Whether the provider has been initialized and is ready to be used.
|
|
158
|
-
*/
|
|
159
|
-
readonly initialized: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Initializes the provider with the given configuration.
|
|
162
|
-
* If WASM was already warmed up via `warmupWasm()`, this returns almost instantly.
|
|
163
|
-
* @param config - Provider configuration including WASM paths
|
|
164
|
-
*/
|
|
165
|
-
initialize(config: WasmUtilConfig): Promise<void>;
|
|
166
|
-
/**
|
|
167
|
-
* Encrypts a base64 image using the WASM utility API.
|
|
168
|
-
* @param image - Base64 image string (no data URL prefix)
|
|
169
|
-
* @returns Encrypted string
|
|
170
|
-
*/
|
|
171
|
-
encryptImage(image: string): string;
|
|
172
|
-
setSdkVersion(version: string): void;
|
|
173
|
-
setSdkPlatform(platform: string): void;
|
|
174
|
-
setDeviceInfo(deviceInfo: object, overrideExisting?: boolean): void;
|
|
175
|
-
setBrowserInfo(browserInfo: object, overrideExisting?: boolean): void;
|
|
176
|
-
setCameraInfo(cameraInfo: object, overrideExisting?: boolean): void;
|
|
177
|
-
setMotionStatus(status: string): void;
|
|
178
|
-
setBackgroundMode(backgroundMode: boolean): void;
|
|
179
|
-
setZc(zc: string): void;
|
|
180
|
-
setInspectorOpened(opened: boolean): void;
|
|
181
|
-
getMetadata(): string;
|
|
182
|
-
analyzeFrame(image: ImageData): Promise<void>;
|
|
183
|
-
getCheck(): string;
|
|
184
|
-
/**
|
|
185
|
-
* Gets the current pipeline state. Must be called before setMotionStatus(),
|
|
186
|
-
* getCheck(), setBackgroundMode(), and getMetadata() for proper metadata generation.
|
|
187
|
-
*/
|
|
188
|
-
getPipelineState(): string;
|
|
189
|
-
estimatePerformance(): string;
|
|
190
|
-
isVirtualCamera(label: string | null): boolean;
|
|
191
|
-
prc(): Promise<void>;
|
|
192
|
-
poc(output: VirtualCameraCheckOutput): Promise<void>;
|
|
193
|
-
ckvcks(data: ArrayBuffer): void;
|
|
194
|
-
getVersions(): Promise<unknown>;
|
|
195
|
-
/**
|
|
196
|
-
* Disposes of resources and resets initialization state.
|
|
197
|
-
*/
|
|
198
|
-
dispose(): Promise<void>;
|
|
199
|
-
};
|
|
200
|
-
//#endregion
|
|
201
147
|
//#region ../infra/src/providers/wasm/FaceDetectionProvider.d.ts
|
|
202
148
|
declare class FaceDetectionProvider extends BaseWasmProvider implements IFaceDetectionCapability {
|
|
203
149
|
private defaultThresholds;
|
|
@@ -222,60 +168,8 @@ declare class FaceDetectionProvider extends BaseWasmProvider implements IFaceDet
|
|
|
222
168
|
}
|
|
223
169
|
//#endregion
|
|
224
170
|
//#region src/modules/selfie/types.d.ts
|
|
225
|
-
type SelfieConfig = FlowModuleConfig['SELFIE'] &
|
|
226
|
-
|
|
227
|
-
capability?: IRecordingCapability;
|
|
228
|
-
};
|
|
229
|
-
ds?: Flow['ds'];
|
|
230
|
-
};
|
|
231
|
-
type SelfieDependencies = {
|
|
232
|
-
storage: IStorageCapability;
|
|
233
|
-
getWasmUtil: () => Promise<IWasmUtilCapability>;
|
|
234
|
-
};
|
|
235
|
-
type DetectionStatus = 'idle' | 'detecting' | 'noFace' | 'tooManyFaces' | 'tooClose' | 'tooFar' | 'blur' | 'dark' | 'faceAngle' | 'headWear' | 'lenses' | 'eyesClosed' | 'faceMask' | 'centerFace' | 'manualCapture' | 'success' | 'error' | 'capturing' | 'getReady' | 'getReadyFinished' | 'offline';
|
|
236
|
-
type SendFaceImageResponse = {
|
|
237
|
-
age: number;
|
|
238
|
-
confidence: number;
|
|
239
|
-
hasClosedEyes: boolean;
|
|
240
|
-
hasFaceMask: boolean;
|
|
241
|
-
hasHeadCover: boolean;
|
|
242
|
-
hasLenses: boolean;
|
|
243
|
-
isBright: boolean;
|
|
244
|
-
liveness: boolean;
|
|
245
|
-
imageBase64: string;
|
|
246
|
-
sessionStatus: string;
|
|
247
|
-
};
|
|
248
|
-
declare const FACE_ERROR_CODES: {
|
|
249
|
-
readonly FACE_OCCLUDED: "FACE_OCCLUDED";
|
|
250
|
-
readonly LIVENESS: "LIVENESS_ERROR";
|
|
251
|
-
readonly BRIGHTNESS: "BRIGHTNESS_ERROR";
|
|
252
|
-
readonly LENSES: "LENSES_ERROR";
|
|
253
|
-
readonly MASK: "MASK_ERROR";
|
|
254
|
-
readonly CLOSED_EYES: "CLOSED_EYES_ERROR";
|
|
255
|
-
readonly HEAD_COVER: "HEAD_COVER_ERROR";
|
|
256
|
-
readonly SERVER: "SERVER_ERROR";
|
|
257
|
-
readonly FACE_NOT_FOUND: "FACE_NOT_FOUND";
|
|
258
|
-
readonly MULTIPLE_FACES: "MULTIPLE_FACES";
|
|
259
|
-
readonly TOO_BLURRY: "TOO_BLURRY_ERROR";
|
|
260
|
-
readonly TOO_DARK: "TOO_DARK_ERROR";
|
|
261
|
-
readonly USER_IS_NOT_RECOGNIZED: "USER_IS_NOT_RECOGNIZED";
|
|
262
|
-
readonly SPOOF_ATTEMPT_DETECTED: "SPOOF_ATTEMPT_DETECTED";
|
|
263
|
-
readonly FACE_TOO_DARK: "FACE_TOO_DARK";
|
|
264
|
-
readonly LENSES_DETECTED: "LENSES_DETECTED";
|
|
265
|
-
readonly FACE_MASK_DETECTED: "FACE_MASK_DETECTED";
|
|
266
|
-
readonly CLOSED_EYES_DETECTED: "CLOSED_EYES_DETECTED";
|
|
267
|
-
readonly HEAD_COVER_DETECTED: "HEAD_COVER_DETECTED";
|
|
268
|
-
readonly FACE_CROPPING_FAILED: "FACE_CROPPING_FAILED";
|
|
269
|
-
readonly FACE_TOO_SMALL: "FACE_TOO_SMALL";
|
|
270
|
-
readonly FACE_TOO_BLURRY: "FACE_TOO_BLURRY";
|
|
271
|
-
readonly BAD_PHOTO_QUALITY: "BAD_PHOTO_QUALITY";
|
|
272
|
-
readonly PROCESSING_ERROR: "PROCESSING_ERROR";
|
|
273
|
-
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
274
|
-
readonly NONEXISTENT_CUSTOMER: "NONEXISTENT_CUSTOMER";
|
|
275
|
-
readonly HINT_NOT_PROVIDED: "HINT_NOT_PROVIDED";
|
|
276
|
-
readonly SELFIE_IMAGE_LOW_QUALITY: "SELFIE_IMAGE_LOW_QUALITY";
|
|
277
|
-
};
|
|
278
|
-
type FaceErrorCode = (typeof FACE_ERROR_CODES)[keyof typeof FACE_ERROR_CODES];
|
|
171
|
+
type SelfieConfig = FlowModuleConfig['SELFIE'] & BaseFaceCaptureConfig;
|
|
172
|
+
type SelfieDependencies = FaceCaptureDependencies;
|
|
279
173
|
//#endregion
|
|
280
174
|
//#region src/modules/selfie/selfieUploadService.d.ts
|
|
281
175
|
type ProcessFaceImageType = 'selfie' | 'videoSelfie';
|
|
@@ -286,7 +180,7 @@ type ProcessFaceResponse = {
|
|
|
286
180
|
};
|
|
287
181
|
declare function processFace(imageType?: ProcessFaceImageType, signal?: AbortSignal): Promise<ProcessFaceResponse>;
|
|
288
182
|
//#endregion
|
|
289
|
-
//#region src/
|
|
183
|
+
//#region src/internal/faceCapture/recordingService.d.ts
|
|
290
184
|
type RecordingService = {
|
|
291
185
|
start(stream: MediaStream): Promise<void>;
|
|
292
186
|
stop(): Promise<{
|
|
@@ -295,28 +189,41 @@ type RecordingService = {
|
|
|
295
189
|
cleanup(): void;
|
|
296
190
|
};
|
|
297
191
|
//#endregion
|
|
298
|
-
//#region src/
|
|
299
|
-
type
|
|
300
|
-
|
|
301
|
-
|
|
192
|
+
//#region src/internal/faceCapture/faceCaptureSetup.d.ts
|
|
193
|
+
type FaceCaptureConfig = BaseFaceCaptureConfig;
|
|
194
|
+
type FaceCaptureInput = {
|
|
195
|
+
config: FaceCaptureConfig;
|
|
196
|
+
dependencies: FaceCaptureDependencies;
|
|
197
|
+
authHint?: string;
|
|
198
|
+
};
|
|
199
|
+
type FaceErrorObject = {
|
|
200
|
+
type: string;
|
|
201
|
+
message: string;
|
|
202
|
+
};
|
|
203
|
+
type FaceCaptureContext = {
|
|
204
|
+
config: FaceCaptureConfig;
|
|
205
|
+
dependencies: FaceCaptureDependencies;
|
|
206
|
+
authHint: string | undefined;
|
|
302
207
|
stream: CameraStream | undefined;
|
|
303
208
|
provider: FaceDetectionProvider | undefined;
|
|
304
209
|
frameCapturer: StreamCanvasCapture | undefined;
|
|
305
|
-
error: string | undefined;
|
|
210
|
+
error: string | FaceErrorObject | undefined;
|
|
306
211
|
detectionStatus: DetectionStatus;
|
|
307
212
|
debugFrame: ImageData | undefined;
|
|
308
213
|
capturedImage: IncodeCanvas | undefined;
|
|
309
214
|
faceCoordinates: FaceCoordinates | undefined;
|
|
310
|
-
uploadResponse:
|
|
311
|
-
processResponse:
|
|
215
|
+
uploadResponse: Record<string, unknown> | undefined;
|
|
216
|
+
processResponse: Record<string, unknown> | undefined;
|
|
312
217
|
recordingService: RecordingService | undefined;
|
|
313
218
|
attemptsRemaining: number;
|
|
314
219
|
uploadError: FaceErrorCode | undefined;
|
|
315
220
|
permissionResult: PermissionResult | 'refresh' | undefined;
|
|
316
221
|
resetDetection: (() => void) | undefined;
|
|
317
222
|
deepsightService: DeepsightService | undefined;
|
|
223
|
+
encryptedBase64Image: string | undefined;
|
|
224
|
+
uploadRecordingId: string | null | undefined;
|
|
318
225
|
};
|
|
319
|
-
type
|
|
226
|
+
type FaceCaptureEvent = {
|
|
320
227
|
type: 'LOAD';
|
|
321
228
|
} | {
|
|
322
229
|
type: 'NEXT_STEP';
|
|
@@ -348,10 +255,11 @@ type SelfieEvent = {
|
|
|
348
255
|
} | {
|
|
349
256
|
type: 'RETRY_CAPTURE';
|
|
350
257
|
};
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region src/modules/selfie/selfieStateMachine.d.ts
|
|
260
|
+
type SelfieContext = FaceCaptureContext;
|
|
261
|
+
type SelfieEvent = FaceCaptureEvent;
|
|
262
|
+
type SelfieInput = FaceCaptureInput;
|
|
355
263
|
/**
|
|
356
264
|
* The selfie capture state machine.
|
|
357
265
|
*
|
|
@@ -369,66 +277,11 @@ type SelfieMachine = StateMachine<SelfieContext, SelfieEvent, any, any, any, any
|
|
|
369
277
|
type CreateSelfieActorOptions = {
|
|
370
278
|
config: SelfieConfig;
|
|
371
279
|
dependencies?: SelfieDependencies;
|
|
280
|
+
authHint?: string;
|
|
372
281
|
};
|
|
373
282
|
//#endregion
|
|
374
283
|
//#region src/modules/selfie/selfieManager.d.ts
|
|
375
|
-
type
|
|
376
|
-
/** Selfie manager is waiting to be started */
|
|
377
|
-
type SelfieIdleState = {
|
|
378
|
-
status: 'idle';
|
|
379
|
-
};
|
|
380
|
-
/** Checking camera permissions (when no tutorial) */
|
|
381
|
-
type SelfieLoadingState = {
|
|
382
|
-
status: 'loading';
|
|
383
|
-
};
|
|
384
|
-
/** Showing selfie tutorial */
|
|
385
|
-
type SelfieTutorialState = {
|
|
386
|
-
status: 'tutorial';
|
|
387
|
-
};
|
|
388
|
-
/** Handling camera permissions */
|
|
389
|
-
type SelfiePermissionsState = {
|
|
390
|
-
status: 'permissions';
|
|
391
|
-
/** Current permission sub-state: initial, requesting, denied, or learnMore */
|
|
392
|
-
permissionStatus: PermissionStatus;
|
|
393
|
-
};
|
|
394
|
-
/** Camera is ready for selfie capture */
|
|
395
|
-
type SelfieCaptureState = {
|
|
396
|
-
status: 'capture';
|
|
397
|
-
/** Current capture sub-state */
|
|
398
|
-
captureStatus: CaptureStatus;
|
|
399
|
-
/** The active camera stream */
|
|
400
|
-
stream: CameraStream | undefined;
|
|
401
|
-
/** Current face detection status */
|
|
402
|
-
detectionStatus: DetectionStatus;
|
|
403
|
-
/** Latest frame processed in the detection loop (for UI debug rendering) */
|
|
404
|
-
debugFrame: ImageData | undefined;
|
|
405
|
-
/** Number of capture attempts remaining */
|
|
406
|
-
attemptsRemaining: number;
|
|
407
|
-
/** Error message from failed upload */
|
|
408
|
-
uploadError: string | undefined;
|
|
409
|
-
};
|
|
410
|
-
/** Processing the captured selfie */
|
|
411
|
-
type SelfieProcessingState = {
|
|
412
|
-
status: 'processing';
|
|
413
|
-
};
|
|
414
|
-
/** Selfie capture completed successfully */
|
|
415
|
-
type SelfieFinishedState = {
|
|
416
|
-
status: 'finished';
|
|
417
|
-
/** Face processing result (face match, confidence, existing user) */
|
|
418
|
-
processResponse: ProcessFaceResponse | undefined;
|
|
419
|
-
};
|
|
420
|
-
/** User closed the selfie flow */
|
|
421
|
-
type SelfieClosedState = {
|
|
422
|
-
status: 'closed';
|
|
423
|
-
};
|
|
424
|
-
/** An error occurred during the flow */
|
|
425
|
-
type SelfieErrorState = {
|
|
426
|
-
status: 'error';
|
|
427
|
-
/** The error message */
|
|
428
|
-
error: string;
|
|
429
|
-
};
|
|
430
|
-
/** Union of all possible selfie states */
|
|
431
|
-
type SelfieState = SelfieIdleState | SelfieLoadingState | SelfieTutorialState | SelfiePermissionsState | SelfieCaptureState | SelfieProcessingState | SelfieFinishedState | SelfieClosedState | SelfieErrorState;
|
|
284
|
+
type SelfieState = FaceCaptureManagerState;
|
|
432
285
|
/**
|
|
433
286
|
* Creates a selfie manager instance for handling selfie capture flow.
|
|
434
287
|
*
|
|
@@ -458,56 +311,17 @@ type SelfieState = SelfieIdleState | SelfieLoadingState | SelfieTutorialState |
|
|
|
458
311
|
* selfieManager.load();
|
|
459
312
|
* ```
|
|
460
313
|
*/
|
|
461
|
-
declare function createSelfieManager(options: CreateSelfieActorOptions): Manager<
|
|
462
|
-
/**
|
|
463
|
-
* Starts the selfie flow.
|
|
464
|
-
* Goes to `tutorial` if showTutorial is true, otherwise to `loading`.
|
|
465
|
-
* Requires setup() to have been called with a token first.
|
|
466
|
-
*/
|
|
314
|
+
declare function createSelfieManager(options: CreateSelfieActorOptions): Manager<FaceCaptureManagerState> & {
|
|
467
315
|
load(): void;
|
|
468
|
-
/**
|
|
469
|
-
* Advances to the next step.
|
|
470
|
-
* From `tutorial` → permissions or capture (based on permission status).
|
|
471
|
-
* From `capture` → finished.
|
|
472
|
-
*/
|
|
473
316
|
nextStep(): void;
|
|
474
|
-
/**
|
|
475
|
-
* Requests camera permission via getUserMedia.
|
|
476
|
-
* Only effective when in `permissions.idle` or `permissions.learnMore` state.
|
|
477
|
-
*/
|
|
478
317
|
requestPermission(): void;
|
|
479
|
-
/**
|
|
480
|
-
* Navigates to the "learn more" permission screen.
|
|
481
|
-
* Only effective when in `permissions.idle` state.
|
|
482
|
-
*/
|
|
483
318
|
goToLearnMore(): void;
|
|
484
|
-
/**
|
|
485
|
-
* Goes back from "learn more" to the initial permission screen.
|
|
486
|
-
* Only effective when in `permissions.learnMore` state.
|
|
487
|
-
*/
|
|
488
319
|
back(): void;
|
|
489
|
-
/**
|
|
490
|
-
* Closes the selfie flow and transitions to `closed` state.
|
|
491
|
-
* Can be called from any state.
|
|
492
|
-
*/
|
|
493
320
|
close(): void;
|
|
494
|
-
/**
|
|
495
|
-
* Resets the selfie manager to its initial `idle` state.
|
|
496
|
-
* Can be called from `error` state. Not available from `finished` (final state).
|
|
497
|
-
*/
|
|
498
321
|
reset(): void;
|
|
499
|
-
/**
|
|
500
|
-
* Retries the capture after an upload error.
|
|
501
|
-
* Only effective when in `capture.uploadError` state and `attemptsRemaining > 0`.
|
|
502
|
-
* If no attempts remaining, the transition is blocked.
|
|
503
|
-
*/
|
|
504
322
|
retryCapture(): void;
|
|
505
|
-
/**
|
|
506
|
-
* Captures a selfie in manual capture mode.
|
|
507
|
-
* Only effective when in `capture.detecting` state and `detectionStatus === 'manualCapture'`.
|
|
508
|
-
*/
|
|
509
323
|
capture(): void;
|
|
510
324
|
};
|
|
511
|
-
type SelfieManager =
|
|
325
|
+
type SelfieManager = FaceCaptureManager;
|
|
512
326
|
//#endregion
|
|
513
327
|
export { type CameraStream, type DeepsightService, type DetectionStatus, type FaceErrorCode, type PermissionResult, type PermissionStatus, type ProcessFaceResponse, type SelfieConfig, type SelfieMachine, type SelfieManager, type SelfieState, createSelfieManager, processFace, selfieMachine };
|