@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.
Files changed (40) hide show
  1. package/dist/Actor-uC1hxvGo.d.ts +2 -0
  2. package/dist/{OpenViduLogger-DrE4_cHh.esm.js → OpenViduLogger-Cut9zn-U.esm.js} +1 -1
  3. package/dist/OpenViduLogger-D_YCgaLD.esm.js +3 -0
  4. package/dist/authentication.d.ts +75 -0
  5. package/dist/authentication.esm.js +194 -0
  6. package/dist/{deepsightLoader-CHzDt5p2.esm.js → deepsightLoader-DHzfMqHS.esm.js} +4 -4
  7. package/dist/{deepsightService-D8qaikEi.d.ts → deepsightService-D9Isk8fg.d.ts} +4 -134
  8. package/dist/{deepsightService-C_AyxXhJ.esm.js → deepsightService-DLabZ49g.esm.js} +3 -3
  9. package/dist/email.d.ts +1 -1
  10. package/dist/email.esm.js +4 -4
  11. package/dist/{endpoints-Q2cBwc8v.esm.js → endpoints-CJtl25ka.esm.js} +1 -0
  12. package/dist/{events-BN5bIhsN.esm.js → events-CieIKgPk.esm.js} +3 -2
  13. package/dist/face-match.d.ts +1 -1
  14. package/dist/face-match.esm.js +4 -4
  15. package/dist/faceCaptureManagerFactory-CZgmP4pc.d.ts +227 -0
  16. package/dist/faceCaptureSetup-DRbBF7AJ.esm.js +1202 -0
  17. package/dist/flow.d.ts +2 -2
  18. package/dist/flow.esm.js +3 -3
  19. package/dist/{id-B6VREnGU.esm.js → id-2r4nZyH_.esm.js} +8 -8
  20. package/dist/id.d.ts +6 -4
  21. package/dist/id.esm.js +8 -8
  22. package/dist/{index-BOpNqAs7.d.ts → index-C0SJR9cc.d.ts} +5 -4
  23. package/dist/index.d.ts +7 -4
  24. package/dist/index.esm.js +8 -8
  25. package/dist/{lib-ieMlAKG1.esm.js → lib-BbiUxUyg.esm.js} +2 -2
  26. package/dist/phone.d.ts +1 -1
  27. package/dist/phone.esm.js +4 -4
  28. package/dist/selfie.d.ts +38 -224
  29. package/dist/selfie.esm.js +22 -1145
  30. package/dist/{src-B0UBQ8zw.esm.js → src-BFHUdMI6.esm.js} +3 -3
  31. package/dist/{stats-CpcCA-Ml.esm.js → stats-DuS7aVaJ.esm.js} +1 -1
  32. package/dist/stats.esm.js +2 -2
  33. package/dist/{streamingEvents-DhMoimL8.esm.js → streamingEvents-DM6KFfsz.esm.js} +3 -3
  34. package/dist/types-u31qr1MR.d.ts +133 -0
  35. package/package.json +5 -1
  36. package/dist/OpenViduLogger-B6-UWyJe.esm.js +0 -3
  37. /package/dist/{Manager-CWwvSZqZ.d.ts → Manager-BiAYYF50.d.ts} +0 -0
  38. /package/dist/{api-BkkE6cfa.esm.js → api-Cqrn4bGi.esm.js} +0 -0
  39. /package/dist/{chunk-CiY78uGR.esm.js → chunk-CbPq_V01.esm.js} +0 -0
  40. /package/dist/{types-BHcijCvX.d.ts → types-Dc1nBvy2.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { a as __toDynamicImportESM } from "./chunk-CiY78uGR.esm.js";
1
+ import { a as __toDynamicImportESM } from "./chunk-CbPq_V01.esm.js";
2
2
 
3
3
  //#region ../infra/src/capabilities/platform.ts
4
4
  /**
@@ -4393,13 +4393,13 @@ var MotionSensorProvider = class {
4393
4393
  //#region ../infra/src/providers/browser/openviduLazy.ts
4394
4394
  let openViduImport;
4395
4395
  async function enableProdModeBeforeLoad() {
4396
- const { OpenViduLogger } = await import("./OpenViduLogger-B6-UWyJe.esm.js").then(__toDynamicImportESM(1));
4396
+ const { OpenViduLogger } = await import("./OpenViduLogger-D_YCgaLD.esm.js").then(__toDynamicImportESM(1));
4397
4397
  OpenViduLogger.getInstance().enableProdMode();
4398
4398
  }
4399
4399
  async function loadOpenVidu() {
4400
4400
  if (openViduImport) return openViduImport;
4401
4401
  await enableProdModeBeforeLoad();
4402
- openViduImport = import("./lib-ieMlAKG1.esm.js").then(__toDynamicImportESM(1));
4402
+ openViduImport = import("./lib-BbiUxUyg.esm.js").then(__toDynamicImportESM(1));
4403
4403
  return openViduImport;
4404
4404
  }
4405
4405
 
@@ -1,4 +1,4 @@
1
- import { t as api } from "./api-BkkE6cfa.esm.js";
1
+ import { t as api } from "./api-Cqrn4bGi.esm.js";
2
2
 
3
3
  //#region src/modules/stats/statsServices.ts
4
4
  /**
package/dist/stats.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./api-BkkE6cfa.esm.js";
2
- import { t as addDeviceStats } from "./stats-CpcCA-Ml.esm.js";
1
+ import "./api-Cqrn4bGi.esm.js";
2
+ import { t as addDeviceStats } from "./stats-DuS7aVaJ.esm.js";
3
3
 
4
4
  export { addDeviceStats };
@@ -1,6 +1,6 @@
1
- import { A as getUserAgent, O as getDeviceInfo, T as stopCameraStream, l as MotionSensorProvider, w as requestCameraAccess, y as queryCameraPermission } from "./src-B0UBQ8zw.esm.js";
2
- import { t as endpoints } from "./endpoints-Q2cBwc8v.esm.js";
3
- import { t as api } from "./api-BkkE6cfa.esm.js";
1
+ import { A as getUserAgent, O as getDeviceInfo, T as stopCameraStream, l as MotionSensorProvider, w as requestCameraAccess, y as queryCameraPermission } from "./src-BFHUdMI6.esm.js";
2
+ import { t as endpoints } from "./endpoints-CJtl25ka.esm.js";
3
+ import { t as api } from "./api-Cqrn4bGi.esm.js";
4
4
 
5
5
  //#region src/internal/device/getBrowser.ts
6
6
  function getBrowser() {
@@ -0,0 +1,133 @@
1
+ //#region ../infra/src/capabilities/IMLProviderCapability.d.ts
2
+ /**
3
+ * Base configuration shared by all ML provider capabilities.
4
+ */
5
+ interface MLProviderConfig {
6
+ /** Path to the WASM binary */
7
+ wasmPath?: string;
8
+ /** Path to the SIMD-optimized WASM binary (optional) */
9
+ wasmSimdPath?: string;
10
+ /** Path to the WASM glue code */
11
+ glueCodePath?: string;
12
+ /** Whether to use SIMD optimizations (default: true) */
13
+ useSimd?: boolean;
14
+ /**
15
+ * Base path for ML model files. Models will be loaded from `${modelsBasePath}/${modelFileName}`.
16
+ * If not provided, models are expected in a 'models' subdirectory relative to the WASM binary.
17
+ */
18
+ modelsBasePath?: string;
19
+ }
20
+ /**
21
+ * Base interface for ML provider capabilities.
22
+ * Provides common lifecycle and frame processing methods shared by
23
+ * FaceDetectionCapability and IdCaptureCapability.
24
+ */
25
+ interface IMLProviderCapability<TConfig extends MLProviderConfig> {
26
+ /**
27
+ * Whether the provider has been initialized and is ready to process frames.
28
+ */
29
+ readonly initialized: boolean;
30
+ /**
31
+ * Initializes the provider with the given configuration.
32
+ * If WASM was already warmed up via `setup()` or `warmupWasm()`, this returns almost instantly.
33
+ * @param config - Provider configuration including WASM paths
34
+ */
35
+ initialize(config: TConfig): Promise<void>;
36
+ /**
37
+ * Processes a frame through the ML pipeline.
38
+ * Callbacks set via `setCallbacks()` will be invoked based on the analysis results.
39
+ * @param image - Image data to process
40
+ * @throws Error if provider is not initialized
41
+ */
42
+ processFrame(image: ImageData): Promise<void>;
43
+ /**
44
+ * Resets the pipeline to its initial state.
45
+ * Safe to call even if not initialized (no-op in that case).
46
+ */
47
+ reset(): void;
48
+ /**
49
+ * Disposes of resources and resets initialization state.
50
+ * Safe to call even if not initialized.
51
+ */
52
+ dispose(): Promise<void>;
53
+ }
54
+ //#endregion
55
+ //#region ../infra/src/capabilities/IRecordingCapability.d.ts
56
+ type RecordingPublisher = {
57
+ getStreamId: () => string | undefined;
58
+ replaceVideoTrack: (track: MediaStreamTrack) => Promise<void>;
59
+ destroy: () => void;
60
+ };
61
+ type RecordingConnection = {
62
+ sessionId: string | undefined;
63
+ publisher: RecordingPublisher;
64
+ disconnect: () => Promise<void>;
65
+ };
66
+ type RecordingConnectionEvents = {
67
+ onSessionConnected?: (sessionId: string | undefined) => void;
68
+ onSessionDisconnected?: (sessionId: string | undefined) => void;
69
+ onSessionException?: (params: {
70
+ name?: string;
71
+ message?: string;
72
+ sessionId?: string;
73
+ }) => void;
74
+ onPublisherCreated?: (params: {
75
+ streamId?: string;
76
+ sessionId?: string;
77
+ }) => void;
78
+ onPublisherError?: (params: {
79
+ message?: string;
80
+ sessionId?: string;
81
+ streamId?: string;
82
+ }) => void;
83
+ };
84
+ type ConnectRecordingParams = {
85
+ sessionToken: string;
86
+ stream: MediaStream;
87
+ events?: RecordingConnectionEvents;
88
+ };
89
+ type IRecordingCapability = {
90
+ /**
91
+ * Connects to a recording session and publishes the provided media stream.
92
+ * Returns a connection handle that can be disconnected and used to manage the publisher.
93
+ */
94
+ connect: (params: ConnectRecordingParams) => Promise<RecordingConnection>;
95
+ };
96
+ //#endregion
97
+ //#region ../infra/src/capabilities/IStorageCapability.d.ts
98
+ /**
99
+ * Storage capability interface for abstracting storage operations.
100
+ * Enables swapping between browser localStorage and future WASM-based storage.
101
+ */
102
+ interface IStorageCapability {
103
+ /**
104
+ * Retrieves a value from storage.
105
+ * @param key - The storage key
106
+ * @returns The stored value or null if not found
107
+ */
108
+ get<T>(key: string): Promise<T | null>;
109
+ /**
110
+ * Stores a value in storage.
111
+ * @param key - The storage key
112
+ * @param value - The value to store (will be serialized)
113
+ */
114
+ set<T>(key: string, value: T): Promise<void>;
115
+ /**
116
+ * Removes a value from storage.
117
+ * @param key - The storage key to remove
118
+ */
119
+ remove(key: string): Promise<void>;
120
+ /**
121
+ * Clears all values from storage.
122
+ */
123
+ clear(): Promise<void>;
124
+ }
125
+ //#endregion
126
+ //#region ../infra/src/media/camera.d.ts
127
+ type CameraStream = MediaStream;
128
+ //#endregion
129
+ //#region src/internal/permissions/types.d.ts
130
+ type PermissionResult = 'granted' | 'denied' | 'prompt';
131
+ type PermissionStatus = 'idle' | 'requesting' | 'denied' | 'learnMore';
132
+ //#endregion
133
+ export { IRecordingCapability as a, MLProviderConfig as c, IStorageCapability as i, PermissionStatus as n, RecordingConnection as o, CameraStream as r, IMLProviderCapability as s, PermissionResult as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260207-ef0d08c",
3
+ "version": "0.0.0-dev-20260209-168e887",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -17,6 +17,10 @@
17
17
  "types": "./dist/selfie.d.ts",
18
18
  "import": "./dist/selfie.esm.js"
19
19
  },
20
+ "./authentication": {
21
+ "types": "./dist/authentication.d.ts",
22
+ "import": "./dist/authentication.esm.js"
23
+ },
20
24
  "./phone": {
21
25
  "types": "./dist/phone.d.ts",
22
26
  "import": "./dist/phone.esm.js"
@@ -1,3 +0,0 @@
1
- import { t as require_OpenViduLogger } from "./OpenViduLogger-DrE4_cHh.esm.js";
2
-
3
- export default require_OpenViduLogger();