@incodetech/core 0.0.0-dev-20260129-938ff95 → 0.0.0-dev-20260130-5bb04b9

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.
Files changed (33) hide show
  1. package/dist/OpenViduLogger-Cu0BjUgP.esm.js +3 -0
  2. package/dist/{deepsightLoader-Ct3HSIhk.esm.js → deepsightLoader-CGdK3U_s.esm.js} +7 -8
  3. package/dist/{deepsightService-B8c8aZje.esm.js → deepsightService-BqN04Xvz.esm.js} +53 -5
  4. package/dist/{types-CRVSv38Q.d.ts → deepsightService-C-8SR9TZ.d.ts} +91 -2
  5. package/dist/email.d.ts +1 -1
  6. package/dist/email.esm.js +3 -3
  7. package/dist/{endpoints-BUsSVoJV.esm.js → endpoints-CmGlc9UG.esm.js} +7 -1
  8. package/dist/{events-B8ZkhAZo.esm.js → events-CLVaKe2J.esm.js} +1 -1
  9. package/dist/flow.d.ts +2 -2
  10. package/dist/flow.esm.js +3 -3
  11. package/dist/id-DE76bgjS.esm.js +2498 -0
  12. package/dist/id.d.ts +5 -5
  13. package/dist/id.esm.js +7 -6
  14. package/dist/{index-CJMK8K5u.d.ts → index-aadmCg5s.d.ts} +84 -62
  15. package/dist/index.d.ts +78 -6
  16. package/dist/index.esm.js +12 -46
  17. package/dist/{lib-CbAibJlt.esm.js → lib-Cmee0CBZ.esm.js} +1 -1
  18. package/dist/phone.d.ts +1 -1
  19. package/dist/phone.esm.js +3 -3
  20. package/dist/selfie.d.ts +8 -87
  21. package/dist/selfie.esm.js +39 -19
  22. package/dist/{src-XSoNGEQW.esm.js → src-BEaVRVtC.esm.js} +6 -2
  23. package/dist/stats.d.ts +4 -0
  24. package/dist/stats.esm.js +1 -1
  25. package/dist/{streamingEvents-J6ffKmJL.esm.js → streamingEvents-EcGvh3bl.esm.js} +13 -4
  26. package/package.json +1 -1
  27. package/dist/OpenViduLogger-DyqID_-7.esm.js +0 -3
  28. package/dist/getDeviceClass-DkfbtsIJ.esm.js +0 -41
  29. package/dist/id-GPFS1Wo_.esm.js +0 -1827
  30. /package/dist/{Manager-Co-PsiG9.d.ts → Manager-WTb99jnh.d.ts} +0 -0
  31. /package/dist/{OpenViduLogger-BLxxXoyF.esm.js → OpenViduLogger-XKcjntVs.esm.js} +0 -0
  32. /package/dist/{stats-DnU4uUFv.esm.js → stats-onWUN0tY.esm.js} +0 -0
  33. /package/dist/{types-CMR6NkxW.d.ts → types-CflhN94Q.d.ts} +0 -0
@@ -0,0 +1,3 @@
1
+ import { t as require_OpenViduLogger } from "./OpenViduLogger-XKcjntVs.esm.js";
2
+
3
+ export default require_OpenViduLogger();
@@ -1,12 +1,12 @@
1
- import { l as MotionSensorProvider, p as BrowserEnvironmentProvider, r as WasmUtilProvider, s as VisibilityProvider } from "./src-XSoNGEQW.esm.js";
2
- import "./getDeviceClass-DkfbtsIJ.esm.js";
1
+ import { l as MotionSensorProvider, p as BrowserEnvironmentProvider, r as WasmUtilProvider, s as VisibilityProvider } from "./src-BEaVRVtC.esm.js";
2
+ import { t as createDeepsightService } from "./deepsightService-BqN04Xvz.esm.js";
3
3
  import "./api-DfRLAneb.esm.js";
4
- import { t as createDeepsightService } from "./deepsightService-B8c8aZje.esm.js";
5
- import "./stats-DnU4uUFv.esm.js";
4
+ import "./stats-onWUN0tY.esm.js";
6
5
 
7
- //#region src/modules/selfie/deepsightLoader.ts
6
+ //#region src/internal/deepsight/deepsightLoader.ts
8
7
  const SDK_VERSION = "2.0.0";
9
- async function loadDeepsightSession() {
8
+ async function loadDeepsightSession(options) {
9
+ await options.storage.set("ds", options.ds ? 1 : 0);
10
10
  const service = createDeepsightService({
11
11
  sdkVersion: SDK_VERSION,
12
12
  wasmUtil: await WasmUtilProvider.getInstance(),
@@ -14,8 +14,7 @@ async function loadDeepsightSession() {
14
14
  browserEnv: new BrowserEnvironmentProvider(),
15
15
  motionSensor: new MotionSensorProvider()
16
16
  });
17
- await service.initialize();
18
- await service.requestMotionPermission();
17
+ await service.initialize(options.disableIpify);
19
18
  await service.startMotionSensors();
20
19
  return service;
21
20
  }
@@ -1,8 +1,47 @@
1
- import { S as stopCameraStream, _ as createHiddenVideoElement, v as IncodeCanvas, x as requestCameraAccess } from "./src-XSoNGEQW.esm.js";
2
- import { r as getUserAgent, t as getDeviceInfo } from "./getDeviceClass-DkfbtsIJ.esm.js";
1
+ import { S as stopCameraStream, _ as createHiddenVideoElement, v as IncodeCanvas, x as requestCameraAccess } from "./src-BEaVRVtC.esm.js";
3
2
  import { t as api } from "./api-DfRLAneb.esm.js";
4
- import { t as addDeviceStats } from "./stats-DnU4uUFv.esm.js";
3
+ import { t as addDeviceStats } from "./stats-onWUN0tY.esm.js";
5
4
 
5
+ //#region ../infra/src/device/getBrowser.ts
6
+ function getUserAgent() {
7
+ if (typeof navigator === "undefined") return "";
8
+ return navigator.userAgent;
9
+ }
10
+
11
+ //#endregion
12
+ //#region ../infra/src/device/getDeviceClass.ts
13
+ function getDeviceInfo() {
14
+ if (typeof navigator === "undefined") return {
15
+ userAgent: "",
16
+ platform: "",
17
+ maxTouchPoints: 0
18
+ };
19
+ return {
20
+ userAgent: navigator.userAgent,
21
+ platform: navigator.platform,
22
+ maxTouchPoints: navigator.maxTouchPoints
23
+ };
24
+ }
25
+ /**
26
+ * Gets the current window dimensions.
27
+ * Returns default values (1280x720) in non-browser environments.
28
+ */
29
+ function getWindowDimensions(defaultWidth = 1280, defaultHeight = 720) {
30
+ if (typeof window === "undefined") return {
31
+ outerWidth: defaultWidth,
32
+ outerHeight: defaultHeight,
33
+ innerWidth: defaultWidth,
34
+ innerHeight: defaultHeight
35
+ };
36
+ return {
37
+ outerWidth: window.outerWidth,
38
+ outerHeight: window.outerHeight,
39
+ innerWidth: window.innerWidth,
40
+ innerHeight: window.innerHeight
41
+ };
42
+ }
43
+
44
+ //#endregion
6
45
  //#region src/internal/deepsight/metadataService.ts
7
46
  const AUTOMATION_MARKERS = {
8
47
  window: [
@@ -104,6 +143,9 @@ function createMetadataService(wasmUtil, visibility, browserEnv) {
104
143
  },
105
144
  getCheck() {
106
145
  return wasmUtil.getCheck();
146
+ },
147
+ preparePipelineState() {
148
+ wasmUtil.getPipelineState();
107
149
  }
108
150
  };
109
151
  }
@@ -206,7 +248,6 @@ function createDeepsightService(config) {
206
248
  });
207
249
  },
208
250
  async performPrcCheck(params) {
209
- await params.storage.set("ds", params.ds ? 1 : 0);
210
251
  const prcStream = await requestCameraAccess(params.constraints);
211
252
  const hiddenVideo = createHiddenVideoElement(prcStream);
212
253
  try {
@@ -218,6 +259,7 @@ function createDeepsightService(config) {
218
259
  },
219
260
  async analyzeFrame(imageData) {
220
261
  await metadata.analyzeFrame(imageData);
262
+ metadata.preparePipelineState();
221
263
  const motionStatus = motion.check();
222
264
  metadata.setMotionStatus(motionStatus);
223
265
  metadata.getCheck();
@@ -226,6 +268,12 @@ function createDeepsightService(config) {
226
268
  getMetadata() {
227
269
  return metadata.getMetadata();
228
270
  },
271
+ getMotionStatus() {
272
+ return motion.check();
273
+ },
274
+ getAnalysisStatus() {
275
+ return metadata.getCheck();
276
+ },
229
277
  cleanup() {
230
278
  motion.stop();
231
279
  }
@@ -233,4 +281,4 @@ function createDeepsightService(config) {
233
281
  }
234
282
 
235
283
  //#endregion
236
- export { createDeepsightService as t };
284
+ export { getUserAgent as i, getDeviceInfo as n, getWindowDimensions as r, createDeepsightService as t };
@@ -1,4 +1,4 @@
1
- import { s as WasmPipeline } from "./types-CMR6NkxW.js";
1
+ import { s as WasmPipeline } from "./types-CflhN94Q.js";
2
2
 
3
3
  //#region ../infra/src/media/canvas.d.ts
4
4
  /**
@@ -219,6 +219,35 @@ type IRecordingCapability = {
219
219
  connect: (params: ConnectRecordingParams) => Promise<RecordingConnection>;
220
220
  };
221
221
  //#endregion
222
+ //#region ../infra/src/capabilities/IStorageCapability.d.ts
223
+ /**
224
+ * Storage capability interface for abstracting storage operations.
225
+ * Enables swapping between browser localStorage and future WASM-based storage.
226
+ */
227
+ interface IStorageCapability {
228
+ /**
229
+ * Retrieves a value from storage.
230
+ * @param key - The storage key
231
+ * @returns The stored value or null if not found
232
+ */
233
+ get<T>(key: string): Promise<T | null>;
234
+ /**
235
+ * Stores a value in storage.
236
+ * @param key - The storage key
237
+ * @param value - The value to store (will be serialized)
238
+ */
239
+ set<T>(key: string, value: T): Promise<void>;
240
+ /**
241
+ * Removes a value from storage.
242
+ * @param key - The storage key to remove
243
+ */
244
+ remove(key: string): Promise<void>;
245
+ /**
246
+ * Clears all values from storage.
247
+ */
248
+ clear(): Promise<void>;
249
+ }
250
+ //#endregion
222
251
  //#region ../infra/src/media/camera.d.ts
223
252
  type CameraStream = MediaStream;
224
253
  //#endregion
@@ -341,4 +370,64 @@ declare abstract class BaseWasmProvider {
341
370
  type PermissionResult = 'granted' | 'denied' | 'prompt';
342
371
  type PermissionStatus = 'idle' | 'requesting' | 'denied' | 'learnMore';
343
372
  //#endregion
344
- export { CameraStream as a, IMotionSensorCapability as c, IMLProviderCapability as d, MLProviderConfig as f, StreamCanvasCapture as i, MotionPermissionState as l, PermissionStatus as n, IRecordingCapability as o, IncodeCanvas as p, BaseWasmProvider as r, RecordingConnection as s, PermissionResult as t, MotionStatus as u };
373
+ //#region src/internal/deepsight/metadataService.d.ts
374
+ type MetadataService = {
375
+ initialize(sdkVersion: string, disableIpify?: boolean): Promise<void>;
376
+ updateCameraInfo(videoTrack: MediaStreamTrack): void;
377
+ checkForVirtualCameraByLabel(videoTrack: MediaStreamTrack | null): Promise<boolean>;
378
+ analyzeFrame(imageData: ImageData): Promise<void>;
379
+ setMotionStatus(status: string): void;
380
+ setBackgroundMode(backgroundMode: boolean): void;
381
+ estimatePerformance(): string;
382
+ getMetadata(): string;
383
+ getCheck(): string;
384
+ /**
385
+ * Prepares pipeline state for metadata collection.
386
+ * Must be called before setMotionStatus, getCheck, setBackgroundMode, and getMetadata.
387
+ */
388
+ preparePipelineState(): void;
389
+ };
390
+ //#endregion
391
+ //#region src/internal/deepsight/motionStatusService.d.ts
392
+ type MotionStatusService = {
393
+ requestPermission(): Promise<MotionPermissionState>;
394
+ start(): Promise<void>;
395
+ stop(): void;
396
+ check(): MotionStatus;
397
+ readonly isRunning: boolean;
398
+ readonly hasPermission: boolean;
399
+ };
400
+ //#endregion
401
+ //#region src/internal/virtualCameraCheck.d.ts
402
+ declare const frameSources: {
403
+ readonly front: "FRONT_ID";
404
+ readonly back: "BACK_ID";
405
+ readonly selfie: "SELFIE";
406
+ };
407
+ type FrameSource = (typeof frameSources)[keyof typeof frameSources];
408
+ //#endregion
409
+ //#region src/internal/deepsight/deepsightService.d.ts
410
+ type DeepsightService = {
411
+ readonly metadata: MetadataService;
412
+ readonly motion: MotionStatusService;
413
+ initialize(disableIpify?: boolean): Promise<void>;
414
+ requestMotionPermission(): Promise<'granted' | 'denied' | 'not-required'>;
415
+ startMotionSensors(): Promise<void>;
416
+ stopMotionSensors(): void;
417
+ checkVirtualCamera(videoTrack: MediaStreamTrack): Promise<boolean>;
418
+ performVirtualCameraCheck(sessionToken: string | null, source: FrameSource): Promise<void>;
419
+ /**
420
+ * Runs PRC warmup and stores DS flag using infrastructure providers.
421
+ */
422
+ performPrcCheck(params: DeepsightPrcCheckParams): Promise<void>;
423
+ analyzeFrame(imageData: ImageData): Promise<void>;
424
+ getMetadata(): string;
425
+ getMotionStatus(): string;
426
+ getAnalysisStatus(): string;
427
+ cleanup(): void;
428
+ };
429
+ type DeepsightPrcCheckParams = {
430
+ constraints: MediaStreamConstraints;
431
+ };
432
+ //#endregion
433
+ export { StreamCanvasCapture as a, IRecordingCapability as c, IMLProviderCapability as d, MLProviderConfig as f, BaseWasmProvider as i, RecordingConnection as l, PermissionResult as n, CameraStream as o, IncodeCanvas as p, PermissionStatus as r, IStorageCapability as s, DeepsightService as t, IMotionSensorCapability as u };
package/dist/email.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-Co-PsiG9.js";
1
+ import { t as Manager } from "./Manager-WTb99jnh.js";
2
2
 
3
3
  //#region src/modules/email/types.d.ts
4
4
 
package/dist/email.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-B8ZkhAZo.esm.js";
2
- import { C as createManager, d as BrowserTimerProvider } from "./src-XSoNGEQW.esm.js";
3
- import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-BUsSVoJV.esm.js";
1
+ import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-CLVaKe2J.esm.js";
2
+ import { C as createManager, d as BrowserTimerProvider } from "./src-BEaVRVtC.esm.js";
3
+ import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-CmGlc9UG.esm.js";
4
4
  import { t as api } from "./api-DfRLAneb.esm.js";
5
5
 
6
6
  //#region src/modules/email/emailServices.ts
@@ -3281,7 +3281,13 @@ const endpoints = {
3281
3281
  getImages: "/omni/get/images",
3282
3282
  processId: "/omni/process/id",
3283
3283
  processSecondId: "/omni/process/second-id",
3284
- processFace: "/omni/process/face"
3284
+ processFace: "/omni/process/face",
3285
+ deviceStats: "/omni/device/stats",
3286
+ featureConfig: "/omni/feature-config",
3287
+ deviceFingerprint: "/omni/add/device-fingerprint",
3288
+ onboardingStatus: "/omni/get/onboarding/status",
3289
+ customFields: "/omni/get/custom-fields",
3290
+ deviceRiskClientId: "/omni/device-risk-client-id"
3285
3291
  };
3286
3292
 
3287
3293
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as endpoints } from "./endpoints-BUsSVoJV.esm.js";
1
+ import { t as endpoints } from "./endpoints-CmGlc9UG.esm.js";
2
2
  import { i as isApiConfigured, r as getToken, t as api } from "./api-DfRLAneb.esm.js";
3
3
 
4
4
  //#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
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-CMR6NkxW.js";
2
- import { t as Manager } from "./Manager-Co-PsiG9.js";
1
+ import { a as AnyStateMachine, n as FlowModule, r as FlowModuleConfig, s as WasmPipeline, t as Flow } from "./types-CflhN94Q.js";
2
+ import { t as Manager } from "./Manager-WTb99jnh.js";
3
3
 
4
4
  //#region src/modules/flow/flowAnalyzer.d.ts
5
5
 
package/dist/flow.esm.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as createManager } from "./src-XSoNGEQW.esm.js";
2
- import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-BUsSVoJV.esm.js";
1
+ import { C as createManager } from "./src-BEaVRVtC.esm.js";
2
+ import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-CmGlc9UG.esm.js";
3
3
  import { t as api } from "./api-DfRLAneb.esm.js";
4
4
 
5
5
  //#region src/modules/flow/flowAnalyzer.ts
@@ -388,7 +388,7 @@ const orchestratedFlowMachine = setup({
388
388
  };
389
389
  return {
390
390
  flow,
391
- steps: Object.keys(flowModules),
391
+ steps: flowModules.map((m) => m.key),
392
392
  currentStepIndex: flowModules.length > 0 ? 0 : -1,
393
393
  currentStep: firstModule?.key,
394
394
  config