@incodetech/core 0.0.0-dev-20260205-bb46959 → 0.0.0-dev-20260205-3c3a4bf
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/{deepsightLoader-CGdK3U_s.esm.js → deepsightLoader-k3wsWNe9.esm.js} +2 -2
- package/dist/{deepsightService-BqN04Xvz.esm.js → deepsightService-cv8dG6Xt.esm.js} +7 -44
- package/dist/email.esm.js +3 -3
- package/dist/{events-CLVaKe2J.esm.js → events-17x9_Rhn.esm.js} +1 -1
- package/dist/flow.esm.js +4 -4
- package/dist/{id-DE76bgjS.esm.js → id-B5Mot-OC.esm.js} +52 -170
- package/dist/id.esm.js +6 -6
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +7 -7
- package/dist/phone.esm.js +3 -3
- package/dist/selfie.esm.js +6 -6
- package/dist/{src-BEaVRVtC.esm.js → src-B7aPHCq5.esm.js} +2940 -23
- package/dist/{streamingEvents-EcGvh3bl.esm.js → streamingEvents-B13rmFOY.esm.js} +2 -3
- package/package.json +1 -1
- /package/dist/{endpoints-CmGlc9UG.esm.js → endpoints-C8rHyk-E.esm.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as createDeepsightService } from "./deepsightService-
|
|
1
|
+
import { g as BrowserEnvironmentProvider, l as MotionSensorProvider, r as WasmUtilProvider, s as VisibilityProvider } from "./src-B7aPHCq5.esm.js";
|
|
2
|
+
import { t as createDeepsightService } from "./deepsightService-cv8dG6Xt.esm.js";
|
|
3
3
|
import "./api-DfRLAneb.esm.js";
|
|
4
4
|
import "./stats-onWUN0tY.esm.js";
|
|
5
5
|
|
|
@@ -1,48 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as getUserAgent, O as getDeviceInfo, T as stopCameraStream, b as createHiddenVideoElement, w as requestCameraAccess, x as IncodeCanvas } from "./src-B7aPHCq5.esm.js";
|
|
2
2
|
import { t as api } from "./api-DfRLAneb.esm.js";
|
|
3
3
|
import { t as addDeviceStats } from "./stats-onWUN0tY.esm.js";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
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
|
|
45
|
-
//#region src/internal/deepsight/metadataService.ts
|
|
5
|
+
//#region src/internal/device/browserSimulation.ts
|
|
46
6
|
const AUTOMATION_MARKERS = {
|
|
47
7
|
window: [
|
|
48
8
|
"callPhantom",
|
|
@@ -54,12 +14,15 @@ const AUTOMATION_MARKERS = {
|
|
|
54
14
|
],
|
|
55
15
|
navigator: ["webdriver"]
|
|
56
16
|
};
|
|
57
|
-
const IP_PROVIDER_URL = "https://api.ipify.org?format=json";
|
|
58
17
|
function isBrowserSimulation(browserEnv) {
|
|
59
18
|
for (const prop of AUTOMATION_MARKERS.window) if (browserEnv.getWindowProperty(prop)) return true;
|
|
60
19
|
for (const prop of AUTOMATION_MARKERS.navigator) if (browserEnv.getNavigatorProperty(prop)) return true;
|
|
61
20
|
return false;
|
|
62
21
|
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/internal/deepsight/metadataService.ts
|
|
25
|
+
const IP_PROVIDER_URL = "https://api.ipify.org?format=json";
|
|
63
26
|
async function fetchPublicIp(browserEnv) {
|
|
64
27
|
return (await browserEnv.fetchJson(IP_PROVIDER_URL, 3e3))?.ip || "";
|
|
65
28
|
}
|
|
@@ -281,4 +244,4 @@ function createDeepsightService(config) {
|
|
|
281
244
|
}
|
|
282
245
|
|
|
283
246
|
//#endregion
|
|
284
|
-
export {
|
|
247
|
+
export { isBrowserSimulation as n, createDeepsightService as t };
|
package/dist/email.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
1
|
+
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-17x9_Rhn.esm.js";
|
|
2
|
+
import { E as createManager, p as BrowserTimerProvider } from "./src-B7aPHCq5.esm.js";
|
|
3
|
+
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-C8rHyk-E.esm.js";
|
|
4
4
|
import { t as api } from "./api-DfRLAneb.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/email/emailServices.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { t as endpoints } from "./endpoints-C8rHyk-E.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.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-
|
|
1
|
+
import { E as createManager } from "./src-B7aPHCq5.esm.js";
|
|
2
|
+
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-C8rHyk-E.esm.js";
|
|
3
3
|
import { t as api } from "./api-DfRLAneb.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/flow/flowAnalyzer.ts
|
|
@@ -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,8 +1,8 @@
|
|
|
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 {
|
|
1
|
+
import { d as addEvent, m as revokeObjectURL, n as eventModuleNames } from "./events-17x9_Rhn.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-B7aPHCq5.esm.js";
|
|
3
|
+
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-C8rHyk-E.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-B13rmFOY.esm.js";
|
|
5
|
+
import { n as isBrowserSimulation } from "./deepsightService-cv8dG6Xt.esm.js";
|
|
6
6
|
import { n as getApi, r as getToken, t as api } from "./api-DfRLAneb.esm.js";
|
|
7
7
|
import { t as addDeviceStats } from "./stats-onWUN0tY.esm.js";
|
|
8
8
|
|
|
@@ -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-k3wsWNe9.esm.js");
|
|
1242
1124
|
return loadDeepsightSession({
|
|
1243
1125
|
ds: input.ds,
|
|
1244
1126
|
storage: input.dependencies.storage,
|
package/dist/id.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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 "./
|
|
1
|
+
import "./events-17x9_Rhn.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-B5Mot-OC.esm.js";
|
|
3
|
+
import { i as IdCaptureProvider } from "./src-B7aPHCq5.esm.js";
|
|
4
|
+
import "./endpoints-C8rHyk-E.esm.js";
|
|
5
|
+
import "./streamingEvents-B13rmFOY.esm.js";
|
|
6
|
+
import "./deepsightService-cv8dG6Xt.esm.js";
|
|
7
7
|
import "./api-DfRLAneb.esm.js";
|
|
8
8
|
import "./stats-onWUN0tY.esm.js";
|
|
9
9
|
|
package/dist/index.d.ts
CHANGED
|
@@ -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,9 +1,9 @@
|
|
|
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
|
|
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-17x9_Rhn.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-B5Mot-OC.esm.js";
|
|
3
|
+
import { D as createApi_default, i as IdCaptureProvider, o as warmupWasm, r as WasmUtilProvider } from "./src-B7aPHCq5.esm.js";
|
|
4
|
+
import "./endpoints-C8rHyk-E.esm.js";
|
|
5
|
+
import { c as getDeviceClass, l as getBrowser, o as checkPermission, s as requestPermission } from "./streamingEvents-B13rmFOY.esm.js";
|
|
6
|
+
import "./deepsightService-cv8dG6Xt.esm.js";
|
|
7
7
|
import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-DfRLAneb.esm.js";
|
|
8
8
|
import "./stats-onWUN0tY.esm.js";
|
|
9
9
|
|
|
@@ -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
|
}
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
1
|
+
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-17x9_Rhn.esm.js";
|
|
2
|
+
import { E as createManager, p as BrowserTimerProvider } from "./src-B7aPHCq5.esm.js";
|
|
3
|
+
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-C8rHyk-E.esm.js";
|
|
4
4
|
import { t as api } from "./api-DfRLAneb.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/phone/phoneServices.ts
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames } from "./events-
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import { a as
|
|
5
|
-
import
|
|
1
|
+
import { d as addEvent, n as eventModuleNames } from "./events-17x9_Rhn.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-B7aPHCq5.esm.js";
|
|
3
|
+
import { a as fromPromise, i as fromCallback, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-C8rHyk-E.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-B13rmFOY.esm.js";
|
|
5
|
+
import "./deepsightService-cv8dG6Xt.esm.js";
|
|
6
6
|
import { r as getToken, t as api } from "./api-DfRLAneb.esm.js";
|
|
7
7
|
import { t as addDeviceStats } from "./stats-onWUN0tY.esm.js";
|
|
8
8
|
|
|
@@ -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-k3wsWNe9.esm.js");
|
|
377
377
|
return loadDeepsightSession({
|
|
378
378
|
ds: options.ds,
|
|
379
379
|
storage: options.storage
|