@incodetech/core 0.0.0-dev-20260205-bb46959 → 0.0.0-dev-20260206-cd4d6ec
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/OpenViduLogger-B6-UWyJe.esm.js +3 -0
- package/dist/{OpenViduLogger-XKcjntVs.esm.js → OpenViduLogger-DrE4_cHh.esm.js} +1 -1
- package/dist/{deepsightLoader-CGdK3U_s.esm.js → deepsightLoader-CHzDt5p2.esm.js} +4 -4
- package/dist/{deepsightService-BqN04Xvz.esm.js → deepsightService-C_AyxXhJ.esm.js} +9 -46
- package/dist/{deepsightService-C-8SR9TZ.d.ts → deepsightService-D8qaikEi.d.ts} +1 -1
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +4 -4
- package/dist/{endpoints-CmGlc9UG.esm.js → endpoints-Q2cBwc8v.esm.js} +3 -0
- package/dist/{events-CLVaKe2J.esm.js → events-BN5bIhsN.esm.js} +2 -2
- package/dist/face-match.d.ts +227 -0
- package/dist/face-match.esm.js +312 -0
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +5 -5
- package/dist/{id-DE76bgjS.esm.js → id-B6VREnGU.esm.js} +54 -172
- package/dist/id.d.ts +4 -4
- package/dist/id.esm.js +8 -8
- package/dist/{index-aadmCg5s.d.ts → index-BOpNqAs7.d.ts} +3 -3
- package/dist/index.d.ts +6 -4
- package/dist/index.esm.js +9 -9
- package/dist/{lib-Cmee0CBZ.esm.js → lib-ieMlAKG1.esm.js} +2 -2
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +4 -4
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +8 -8
- package/dist/{src-BEaVRVtC.esm.js → src-B0UBQ8zw.esm.js} +2943 -26
- package/dist/{stats-onWUN0tY.esm.js → stats-CpcCA-Ml.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{streamingEvents-EcGvh3bl.esm.js → streamingEvents-DhMoimL8.esm.js} +3 -4
- package/package.json +5 -1
- package/dist/OpenViduLogger-Cu0BjUgP.esm.js +0 -3
- /package/dist/{Manager-WTb99jnh.d.ts → Manager-CWwvSZqZ.d.ts} +0 -0
- /package/dist/{api-DfRLAneb.esm.js → api-BkkE6cfa.esm.js} +0 -0
- /package/dist/{chunk-V5DOKNPJ.esm.js → chunk-CiY78uGR.esm.js} +0 -0
- /package/dist/{types-CflhN94Q.d.ts → types-BHcijCvX.d.ts} +0 -0
package/dist/flow.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
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-B0UBQ8zw.esm.js";
|
|
2
|
+
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-Q2cBwc8v.esm.js";
|
|
3
|
+
import { t as api } from "./api-BkkE6cfa.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/flow/flowAnalyzer.ts
|
|
6
6
|
const WASM_MODULE_PIPELINES = {
|
|
@@ -543,9 +543,9 @@ const orchestratedFlowMachine = setup({
|
|
|
543
543
|
//#region src/modules/flow/orchestratedFlowManager.ts
|
|
544
544
|
function mapState(snapshot) {
|
|
545
545
|
const { value, context } = snapshot;
|
|
546
|
+
if (value === "idle") return { status: "idle" };
|
|
547
|
+
if (value === "loading" || typeof value === "object") return { status: "loading" };
|
|
546
548
|
switch (value) {
|
|
547
|
-
case "idle": return { status: "idle" };
|
|
548
|
-
case "loading": return { status: "loading" };
|
|
549
549
|
case "runningModule": {
|
|
550
550
|
const childSnapshot = snapshot.children.currentModule?.getSnapshot();
|
|
551
551
|
return {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as addEvent, m as revokeObjectURL, n as eventModuleNames } from "./events-
|
|
2
|
-
import { C as createManager,
|
|
3
|
-
import { i as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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-BN5bIhsN.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-B0UBQ8zw.esm.js";
|
|
3
|
+
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-Q2cBwc8v.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-DhMoimL8.esm.js";
|
|
5
|
+
import { n as isBrowserSimulation } from "./deepsightService-C_AyxXhJ.esm.js";
|
|
6
|
+
import { n as getApi, r as getToken, t as api } from "./api-BkkE6cfa.esm.js";
|
|
7
|
+
import { t as addDeviceStats } from "./stats-CpcCA-Ml.esm.js";
|
|
8
8
|
|
|
9
9
|
//#region ../infra/src/capabilities/ITimerCapability.ts
|
|
10
10
|
function sleep(ms) {
|
|
@@ -79,175 +79,37 @@ function resetFeatureConfigCache() {
|
|
|
79
79
|
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region src/internal/fingerprint/fingerprintService.ts
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
return false;
|
|
98
|
-
}
|
|
99
|
-
async function fetchPublicIp(browserEnv) {
|
|
100
|
-
try {
|
|
101
|
-
return (await browserEnv.fetchJson(IP_PROVIDER_URL, 3e3))?.ip || "";
|
|
102
|
-
} catch {
|
|
103
|
-
return "";
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
function parseBrowserInfo(ua) {
|
|
107
|
-
const uaLower = ua.toLowerCase();
|
|
108
|
-
if (uaLower.includes("edg/")) {
|
|
109
|
-
const match = ua.match(/edg\/(\d+)/i);
|
|
110
|
-
return {
|
|
111
|
-
name: "Edge",
|
|
112
|
-
version: match ? match[1] : "Unknown"
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
if (uaLower.includes("chrome/") && !uaLower.includes("edg/")) {
|
|
116
|
-
const match = ua.match(/chrome\/(\d+)/i);
|
|
117
|
-
return {
|
|
118
|
-
name: "Chrome",
|
|
119
|
-
version: match ? match[1] : "Unknown"
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
if (uaLower.includes("firefox/")) {
|
|
123
|
-
const match = ua.match(/firefox\/(\d+)/i);
|
|
124
|
-
return {
|
|
125
|
-
name: "Firefox",
|
|
126
|
-
version: match ? match[1] : "Unknown"
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
if (uaLower.includes("safari/") && !uaLower.includes("chrome/")) {
|
|
130
|
-
const match = ua.match(/version\/(\d+)/i);
|
|
131
|
-
return {
|
|
132
|
-
name: "Safari",
|
|
133
|
-
version: match ? match[1] : "Unknown"
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
return {
|
|
137
|
-
name: "Unknown",
|
|
138
|
-
version: "Unknown"
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
function parseOSInfo(ua, platform) {
|
|
142
|
-
if (/iphone|ipad|ipod/i.test(ua)) {
|
|
143
|
-
const match = ua.match(/os (\d+)[._](\d+)/i);
|
|
144
|
-
if (match) return {
|
|
145
|
-
name: "iOS",
|
|
146
|
-
version: `${match[1]}.${match[2]}`
|
|
147
|
-
};
|
|
148
|
-
return {
|
|
149
|
-
name: "iOS",
|
|
150
|
-
version: "Unknown"
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
if (/android/i.test(ua)) {
|
|
154
|
-
const match = ua.match(/android (\d+(?:\.\d+)?)/i);
|
|
155
|
-
return {
|
|
156
|
-
name: "Android",
|
|
157
|
-
version: match ? match[1] : "Unknown"
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
if (/windows/i.test(ua)) {
|
|
161
|
-
const match = ua.match(/windows nt (\d+\.\d+)/i);
|
|
162
|
-
return {
|
|
163
|
-
name: "Windows",
|
|
164
|
-
version: match ? match[1] : "Unknown"
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
if (/macintosh|mac os x/i.test(ua)) {
|
|
168
|
-
const match = ua.match(/mac os x (\d+)[._](\d+)/i);
|
|
169
|
-
if (match) return {
|
|
170
|
-
name: "macOS",
|
|
171
|
-
version: `${match[1]}.${match[2]}`
|
|
172
|
-
};
|
|
173
|
-
return {
|
|
174
|
-
name: "macOS",
|
|
175
|
-
version: "Unknown"
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
if (/linux/i.test(ua)) return {
|
|
179
|
-
name: "Linux",
|
|
180
|
-
version: "Unknown"
|
|
181
|
-
};
|
|
182
|
-
return {
|
|
183
|
-
name: platform || "Unknown",
|
|
184
|
-
version: "Unknown"
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
function isWebview(ua) {
|
|
188
|
-
const uaLower = ua.toLowerCase();
|
|
189
|
-
return uaLower.includes("wv") || uaLower.includes("webview") || uaLower.includes("android") && !uaLower.includes("chrome");
|
|
190
|
-
}
|
|
191
|
-
function getDeviceModel(ua, platform) {
|
|
192
|
-
if (/iphone/i.test(ua)) {
|
|
193
|
-
const match = ua.match(/iphone\s*(\w+)/i);
|
|
194
|
-
return match ? `iPhone ${match[1]}` : "iPhone";
|
|
195
|
-
}
|
|
196
|
-
if (/ipad/i.test(ua)) return ua.match(/ipad/i) ? "iPad" : "iPad";
|
|
197
|
-
if (/android/i.test(ua)) {
|
|
198
|
-
const match = ua.match(/android.*;\s*([^)]+)\)/i);
|
|
199
|
-
return match ? match[1].trim() : "Android Device";
|
|
200
|
-
}
|
|
201
|
-
return platform || "Unknown";
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Collects device fingerprint data and submits it to the backend.
|
|
205
|
-
*/
|
|
206
|
-
async function submitDeviceFingerprint(options) {
|
|
207
|
-
const { browserEnv, sdkVersion, disableIpify = false, hostingApp, signal } = options;
|
|
208
|
-
const ua = getUserAgent();
|
|
209
|
-
const deviceInfo = getDeviceInfo();
|
|
210
|
-
const hash = browserEnv.generateCanvasFingerprint();
|
|
211
|
-
const ip = disableIpify ? "" : await fetchPublicIp(browserEnv);
|
|
212
|
-
const browserInfo = parseBrowserInfo(ua);
|
|
213
|
-
const osInfo = parseOSInfo(ua, deviceInfo.platform);
|
|
214
|
-
const deviceModel = getDeviceModel(ua, deviceInfo.platform);
|
|
215
|
-
const browserString = isWebview(ua) ? "webview" : `${browserInfo.name} ${browserInfo.version}`;
|
|
216
|
-
const fingerprintData = {
|
|
217
|
-
hash,
|
|
218
|
-
ip,
|
|
82
|
+
const SDK_VERSION = "2.0.0";
|
|
83
|
+
function formatOsVersion(os) {
|
|
84
|
+
return `${os.name || "Unknown"} ${os.version || ""}`.trim();
|
|
85
|
+
}
|
|
86
|
+
function formatBrowser(browser) {
|
|
87
|
+
if (!browser.name || !browser.version) return "Unknown";
|
|
88
|
+
return `${browser.name} ${browser.version}`;
|
|
89
|
+
}
|
|
90
|
+
async function submitDeviceFingerprint(options = {}, dependencies) {
|
|
91
|
+
const { disableIpify = false, hostingApp, signal } = options;
|
|
92
|
+
const fingerprint = await dependencies.fingerprintProvider.getFingerprint(disableIpify);
|
|
93
|
+
const hasLiedBrowser = isBrowserSimulation(dependencies.browserEnv);
|
|
94
|
+
const payload = {
|
|
95
|
+
hash: fingerprint.visitorId || "",
|
|
96
|
+
ip: fingerprint.ip || "",
|
|
219
97
|
deviceType: "WEBAPP",
|
|
220
|
-
data: JSON.stringify(
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
sdkVersion,
|
|
228
|
-
hasLiedBrowser: isBrowserSimulation(browserEnv),
|
|
229
|
-
hostingApp
|
|
98
|
+
data: JSON.stringify(fingerprint),
|
|
99
|
+
osVersion: formatOsVersion(fingerprint.deviceInfo.os),
|
|
100
|
+
deviceModel: fingerprint.deviceInfo.device.model || "",
|
|
101
|
+
browser: formatBrowser(fingerprint.deviceInfo.browser),
|
|
102
|
+
hasLiedBrowser,
|
|
103
|
+
sdkVersion: SDK_VERSION,
|
|
104
|
+
hostingApp: hostingApp ?? "Web SDK"
|
|
230
105
|
};
|
|
231
|
-
const response = await api.post(endpoints.deviceFingerprint, {
|
|
232
|
-
|
|
233
|
-
ip: fingerprintData.ip,
|
|
234
|
-
deviceType: fingerprintData.deviceType,
|
|
235
|
-
data: fingerprintData.data,
|
|
236
|
-
osVersion: fingerprintData.osVersion,
|
|
237
|
-
deviceModel: fingerprintData.deviceModel,
|
|
238
|
-
browser: fingerprintData.browser,
|
|
239
|
-
hasLiedBrowser: fingerprintData.hasLiedBrowser,
|
|
240
|
-
sdkVersion: fingerprintData.sdkVersion,
|
|
241
|
-
hostingApp: fingerprintData.hostingApp,
|
|
242
|
-
ipLocation: fingerprintData.ipLocation
|
|
243
|
-
}, { signal });
|
|
244
|
-
if (!response.ok) throw new Error(`Failed to submit device fingerprint: ${response.status} ${response.statusText}`);
|
|
106
|
+
const response = await api.post(endpoints.deviceFingerprint, payload, { signal });
|
|
107
|
+
if (!response.ok) throw new Error(`Failed to submit fingerprint: ${response.status} ${response.statusText}`);
|
|
245
108
|
return response.data;
|
|
246
109
|
}
|
|
247
110
|
|
|
248
111
|
//#endregion
|
|
249
112
|
//#region src/internal/session/sessionInitializer.ts
|
|
250
|
-
const SDK_VERSION = "2.0.0";
|
|
251
113
|
let sessionInitialized = false;
|
|
252
114
|
let cachedFeatures = null;
|
|
253
115
|
let cachedDisableIpify = false;
|
|
@@ -295,17 +157,37 @@ async function initializeSession(options = {}) {
|
|
|
295
157
|
}
|
|
296
158
|
let fingerprintSuccess = false;
|
|
297
159
|
try {
|
|
160
|
+
const fingerprintProvider = new FingerprintProvider(new IpifyProvider());
|
|
161
|
+
const browserEnv = new BrowserEnvironmentProvider();
|
|
298
162
|
await submitDeviceFingerprint({
|
|
299
|
-
browserEnv: new BrowserEnvironmentProvider(),
|
|
300
|
-
sdkVersion: SDK_VERSION,
|
|
301
163
|
disableIpify,
|
|
302
164
|
hostingApp,
|
|
303
165
|
signal
|
|
166
|
+
}, {
|
|
167
|
+
fingerprintProvider,
|
|
168
|
+
browserEnv
|
|
304
169
|
});
|
|
305
170
|
fingerprintSuccess = true;
|
|
306
171
|
} catch (error) {
|
|
307
172
|
console.warn("Failed to submit device fingerprint:", error);
|
|
308
173
|
}
|
|
174
|
+
try {
|
|
175
|
+
const browserInfo = new BrowserInfoProvider().getBrowserInfo();
|
|
176
|
+
addEvent({
|
|
177
|
+
code: "browser",
|
|
178
|
+
payload: {
|
|
179
|
+
userAgent: browserInfo.userAgent,
|
|
180
|
+
isWebRtcSupported: browserInfo.isWebRtcSupported,
|
|
181
|
+
browser: browserInfo.browser,
|
|
182
|
+
os: browserInfo.os,
|
|
183
|
+
device: browserInfo.device,
|
|
184
|
+
engine: browserInfo.engine,
|
|
185
|
+
cpu: browserInfo.cpu
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
} catch (error) {
|
|
189
|
+
console.warn("Failed to send browser info event:", error);
|
|
190
|
+
}
|
|
309
191
|
sessionInitialized = true;
|
|
310
192
|
cachedFeatures = features;
|
|
311
193
|
cachedDisableIpify = disableIpify;
|
|
@@ -1238,7 +1120,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
|
|
|
1238
1120
|
});
|
|
1239
1121
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1240
1122
|
if (!input.dependencies) return;
|
|
1241
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1123
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-CHzDt5p2.esm.js");
|
|
1242
1124
|
return loadDeepsightSession({
|
|
1243
1125
|
ds: input.ds,
|
|
1244
1126
|
storage: input.dependencies.storage,
|
package/dist/id.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 { n as PermissionResult, o as CameraStream, r as PermissionStatus } from "./deepsightService-
|
|
3
|
-
import "./types-
|
|
4
|
-
import "./Manager-
|
|
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-BOpNqAs7.js";
|
|
2
|
+
import { n as PermissionResult, o as CameraStream, r as PermissionStatus } from "./deepsightService-D8qaikEi.js";
|
|
3
|
+
import "./types-BHcijCvX.js";
|
|
4
|
+
import "./Manager-CWwvSZqZ.js";
|
|
5
5
|
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 "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./api-
|
|
8
|
-
import "./stats-
|
|
1
|
+
import "./events-BN5bIhsN.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-B6VREnGU.esm.js";
|
|
3
|
+
import { i as IdCaptureProvider } from "./src-B0UBQ8zw.esm.js";
|
|
4
|
+
import "./endpoints-Q2cBwc8v.esm.js";
|
|
5
|
+
import "./streamingEvents-DhMoimL8.esm.js";
|
|
6
|
+
import "./deepsightService-C_AyxXhJ.esm.js";
|
|
7
|
+
import "./api-BkkE6cfa.esm.js";
|
|
8
|
+
import "./stats-CpcCA-Ml.esm.js";
|
|
9
9
|
|
|
10
10
|
export { ID_ERROR_CODES, IdCaptureProvider, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as StreamCanvasCapture, c as IRecordingCapability, d as IMLProviderCapability, f as MLProviderConfig, i as BaseWasmProvider, l as RecordingConnection, n as PermissionResult, o as CameraStream, p as IncodeCanvas, r as PermissionStatus, s as IStorageCapability, t as DeepsightService, u as IMotionSensorCapability } from "./deepsightService-
|
|
2
|
-
import { a as AnyStateMachine, i as TutorialIdConfig, o as StateMachine, t as Flow } from "./types-
|
|
3
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import { a as StreamCanvasCapture, c as IRecordingCapability, d as IMLProviderCapability, f as MLProviderConfig, i as BaseWasmProvider, l as RecordingConnection, n as PermissionResult, o as CameraStream, p as IncodeCanvas, r as PermissionStatus, s as IStorageCapability, t as DeepsightService, u as IMotionSensorCapability } from "./deepsightService-D8qaikEi.js";
|
|
2
|
+
import { a as AnyStateMachine, i as TutorialIdConfig, o as StateMachine, t as Flow } from "./types-BHcijCvX.js";
|
|
3
|
+
import { t as Manager } from "./Manager-CWwvSZqZ.js";
|
|
4
4
|
import { ActorRefFrom } from "xstate";
|
|
5
5
|
|
|
6
6
|
//#region ../infra/src/capabilities/IAnalyticsCapability.d.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +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 { n as PermissionResult, o as CameraStream, r as PermissionStatus } from "./deepsightService-
|
|
3
|
-
import { c as warmupWasm, s as WasmPipeline } from "./types-
|
|
4
|
-
import "./Manager-
|
|
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-BOpNqAs7.js";
|
|
2
|
+
import { n as PermissionResult, o as CameraStream, r as PermissionStatus } from "./deepsightService-D8qaikEi.js";
|
|
3
|
+
import { c as warmupWasm, s as WasmPipeline } from "./types-BHcijCvX.js";
|
|
4
|
+
import "./Manager-CWwvSZqZ.js";
|
|
5
5
|
|
|
6
6
|
//#region ../infra/src/http/types.d.ts
|
|
7
7
|
type CreateApiConfig = {
|
|
@@ -235,6 +235,8 @@ type SetupOptions = {
|
|
|
235
235
|
timeout?: number;
|
|
236
236
|
/** Optional WASM warmup config - if provided, preloads WASM and ML models */
|
|
237
237
|
wasm?: WasmConfig;
|
|
238
|
+
/** Optional hosting app identifier for fingerprint tracking */
|
|
239
|
+
hostingApp?: string;
|
|
238
240
|
};
|
|
239
241
|
/**
|
|
240
242
|
* Initializes the SDK with the provided configuration.
|
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 { i as IdCaptureProvider, o as warmupWasm, r as WasmUtilProvider
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
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-BN5bIhsN.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-B6VREnGU.esm.js";
|
|
3
|
+
import { D as createApi_default, i as IdCaptureProvider, o as warmupWasm, r as WasmUtilProvider } from "./src-B0UBQ8zw.esm.js";
|
|
4
|
+
import "./endpoints-Q2cBwc8v.esm.js";
|
|
5
|
+
import { c as getDeviceClass, l as getBrowser, o as checkPermission, s as requestPermission } from "./streamingEvents-DhMoimL8.esm.js";
|
|
6
|
+
import "./deepsightService-C_AyxXhJ.esm.js";
|
|
7
|
+
import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-BkkE6cfa.esm.js";
|
|
8
|
+
import "./stats-CpcCA-Ml.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/setup.ts
|
|
11
11
|
let wasmConfig;
|
|
@@ -54,7 +54,7 @@ async function setup(options) {
|
|
|
54
54
|
if (options.token) {
|
|
55
55
|
setToken(options.token);
|
|
56
56
|
flushEventQueue();
|
|
57
|
-
initializeSession().catch((error) => {
|
|
57
|
+
initializeSession({ hostingApp: options.hostingApp }).catch((error) => {
|
|
58
58
|
console.warn("Session initialization failed:", error);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
@@ -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-CiY78uGR.esm.js";
|
|
2
|
+
import { n as require_jsnlog, t as require_OpenViduLogger } from "./OpenViduLogger-DrE4_cHh.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 {
|
|
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-BN5bIhsN.esm.js";
|
|
2
|
+
import { E as createManager, p as BrowserTimerProvider } from "./src-B0UBQ8zw.esm.js";
|
|
3
|
+
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-Q2cBwc8v.esm.js";
|
|
4
|
+
import { t as api } from "./api-BkkE6cfa.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,6 +1,6 @@
|
|
|
1
|
-
import { a as StreamCanvasCapture, c as IRecordingCapability, d as IMLProviderCapability, f as MLProviderConfig, i as BaseWasmProvider, n as PermissionResult, o as CameraStream, p as IncodeCanvas, r as PermissionStatus, s as IStorageCapability, t as DeepsightService } from "./deepsightService-
|
|
2
|
-
import { a as AnyStateMachine, o as StateMachine, r as FlowModuleConfig, s as WasmPipeline, t as Flow } from "./types-
|
|
3
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import { a as StreamCanvasCapture, c as IRecordingCapability, d as IMLProviderCapability, f as MLProviderConfig, i as BaseWasmProvider, n as PermissionResult, o as CameraStream, p as IncodeCanvas, r as PermissionStatus, s as IStorageCapability, t as DeepsightService } from "./deepsightService-D8qaikEi.js";
|
|
2
|
+
import { a as AnyStateMachine, o as StateMachine, r as FlowModuleConfig, s as WasmPipeline, t as Flow } from "./types-BHcijCvX.js";
|
|
3
|
+
import { t as Manager } from "./Manager-CWwvSZqZ.js";
|
|
4
4
|
|
|
5
5
|
//#region ../infra/src/capabilities/IFaceDetectionCapability.d.ts
|
|
6
6
|
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames } from "./events-
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import { a as
|
|
5
|
-
import
|
|
6
|
-
import { r as getToken, t as api } from "./api-
|
|
7
|
-
import { t as addDeviceStats } from "./stats-
|
|
1
|
+
import { d as addEvent, n as eventModuleNames } from "./events-BN5bIhsN.esm.js";
|
|
2
|
+
import { E as createManager, T as stopCameraStream, _ as StreamCanvasProcessingSession, a as FaceDetectionProvider, c as OpenViduRecordingProvider, m as BrowserStorageProvider, r as WasmUtilProvider, u as LocalRecordingProvider, v as StreamCanvasCapture, w as requestCameraAccess } from "./src-B0UBQ8zw.esm.js";
|
|
3
|
+
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-Q2cBwc8v.esm.js";
|
|
4
|
+
import { a as uploadDeepsightVideo, c as getDeviceClass, i as stopRecording$1, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-DhMoimL8.esm.js";
|
|
5
|
+
import "./deepsightService-C_AyxXhJ.esm.js";
|
|
6
|
+
import { r as getToken, t as api } from "./api-BkkE6cfa.esm.js";
|
|
7
|
+
import { t as addDeviceStats } from "./stats-CpcCA-Ml.esm.js";
|
|
8
8
|
|
|
9
9
|
//#region src/modules/selfie/types.ts
|
|
10
10
|
const FACE_ERROR_CODES = {
|
|
@@ -373,7 +373,7 @@ function stopRecording(session) {
|
|
|
373
373
|
})();
|
|
374
374
|
}
|
|
375
375
|
async function initializeDeepsightSession(options) {
|
|
376
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
376
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-CHzDt5p2.esm.js");
|
|
377
377
|
return loadDeepsightSession({
|
|
378
378
|
ds: options.ds,
|
|
379
379
|
storage: options.storage
|