@incodetech/core 0.0.0-dev-20260323-d5fdccb → 0.0.0-dev-20260324-90ddcfd
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/{addressSearch-BBIa1heY.esm.js → addressSearch-DCaEdoev.esm.js} +4 -4
- package/dist/authentication.d.ts +10 -10
- package/dist/authentication.esm.js +11 -10
- package/dist/{authenticationManager-DZFI79F5.d.ts → authenticationManager-C-Mmg1uU.d.ts} +2 -2
- package/dist/{authenticationManager-h6dB_vib.esm.js → authenticationManager-CEGYyu8r.esm.js} +6 -6
- package/dist/{backCameraStream-BPxNH3Pg.esm.js → backCameraStream-BPzo60FO.esm.js} +1 -1
- package/dist/browserSimulation-DYAk0Ipe.esm.js +20 -0
- package/dist/consent.d.ts +56 -56
- package/dist/consent.esm.js +4 -4
- package/dist/curp-validation.d.ts +4 -4
- package/dist/curp-validation.esm.js +4 -4
- package/dist/{deepsightLoader-CZ_4kZPK.esm.js → deepsightLoader-ErxPZUBZ.esm.js} +5 -4
- package/dist/{deepsightService-DFek2Sxh.esm.js → deepsightService-BcdwWkYD.esm.js} +5 -23
- package/dist/{deepsightService-foKxxo3y.d.ts → deepsightService-C47Uyf6m.d.ts} +1 -1
- package/dist/document-capture.d.ts +60 -60
- package/dist/document-capture.esm.js +5 -5
- package/dist/document-upload.d.ts +52 -52
- package/dist/document-upload.esm.js +5 -5
- package/dist/ekyb.d.ts +2 -2
- package/dist/ekyb.esm.js +8 -6
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +5 -5
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +5 -5
- package/dist/{emailManager-OpJLWD9-.esm.js → emailManager-1W2Uh6du.esm.js} +4 -4
- package/dist/{emailManager-lUXVfa0R.d.ts → emailManager-CN9sSCz6.d.ts} +2 -2
- package/dist/{endpoints-Bydn-Ave.esm.js → endpoints-b2PxFIku.esm.js} +2 -0
- package/dist/{events-DzHYCTUI.esm.js → events-CbNkXF2Q.esm.js} +2 -2
- package/dist/extensibility.d.ts +14 -14
- package/dist/extensibility.esm.js +16 -14
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +4 -4
- package/dist/{faceCaptureManagerFactory-Bavynz5Q.d.ts → faceCaptureManagerFactory-UFhWTbej.d.ts} +7 -7
- package/dist/{faceCaptureSetup-BOmXn1op.esm.js → faceCaptureSetup-CoeOjXeo.esm.js} +8 -8
- package/dist/flow.d.ts +7 -7
- package/dist/flow.esm.js +8 -6
- package/dist/{flowCompletionService-C-pC9OZ9.esm.js → flowCompletionService-DkbMP576.esm.js} +2 -2
- package/dist/{flowServices-Cc1HxYIC.esm.js → flowServices-jrv5Zxbr.esm.js} +48 -4
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +4 -4
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +4 -4
- package/dist/id.d.ts +9 -9
- package/dist/id.esm.js +12 -10
- package/dist/{idCaptureManager-DPzinE1o.esm.js → idCaptureManager-BniIgM20.esm.js} +43 -226
- package/dist/{idCaptureManager-Ih_zvBCr.d.ts → idCaptureManager-Dn7_eHt9.d.ts} +22 -8
- package/dist/index.d.ts +19 -10
- package/dist/index.esm.js +12 -10
- package/dist/{lib-3ivDs79I.esm.js → lib-VFNBaz_7.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +411 -0
- package/dist/mandatory-consent.esm.js +198 -0
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +5 -5
- package/dist/{phoneManager-pTIOvlCD.d.ts → phoneManager-B0MT8wYz.d.ts} +2 -2
- package/dist/{phoneManager-BwBW-tRA.esm.js → phoneManager-Cvp5LFN7.esm.js} +4 -4
- package/dist/{recordingsRepository-DVPWOR9j.esm.js → recordingsRepository-DGWSMj-_.esm.js} +3 -3
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +4 -4
- package/dist/selfie.d.ts +10 -10
- package/dist/selfie.esm.js +11 -10
- package/dist/{selfieManager-DT0oJmpD.esm.js → selfieManager-BxwT4tDD.esm.js} +3 -3
- package/dist/{selfieManager-uSCpF37G.d.ts → selfieManager-DSn8EPLE.d.ts} +2 -2
- package/dist/session-4QVMNIs5.esm.js +243 -0
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +3 -3
- package/dist/{src-Cmpz4Jmw.esm.js → src-BX-m0lbm.esm.js} +2 -2
- package/dist/{stats-D76Thmqp.esm.js → stats-BaWAv541.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-DSJflCEU.d.ts → types-0A1THNYO.d.ts} +5 -2
- package/dist/{types-CHzupruc.d.ts → types-BYFeUhw0.d.ts} +1 -1
- package/package.json +7 -3
- /package/dist/{Actor-D6rhGxJy.d.ts → Actor-By8WNHi-.d.ts} +0 -0
- /package/dist/{Manager-CVDYGoSq.d.ts → Manager-BWqHEUjI.d.ts} +0 -0
- /package/dist/{StateMachine-BqtRw_hz.d.ts → StateMachine-dxjI9q0V.d.ts} +0 -0
- /package/dist/{api-3fZO5bmj.esm.js → api-C2uzxrpN.esm.js} +0 -0
- /package/dist/{camera-CVBwqx-j.d.ts → camera-BCRgkMoe.d.ts} +0 -0
- /package/dist/{chunk-C24vxluH.esm.js → chunk-NXK2ElUW.esm.js} +0 -0
- /package/dist/{displayErrors-BgtBHbfb.d.ts → displayErrors-CV7ux9Fr.d.ts} +0 -0
- /package/dist/{flowCompletionService-De8JDo87.d.ts → flowCompletionService-sG6KA8y2.d.ts} +0 -0
- /package/dist/{id-r_CoQ3r-.esm.js → id-C3aKMJhc.esm.js} +0 -0
- /package/dist/{index-LKrIp3Oo.d.ts → index-DGdyPh8A.d.ts} +0 -0
- /package/dist/{warmup-DoQLFT3z.d.ts → warmup-B_dntecl.d.ts} +0 -0
package/dist/selfie.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as PermissionResult, r as PermissionStatus, t as DeepsightService } from "./deepsightService-
|
|
2
|
-
import { _ as DetectionStatus, a as SelfieMachine, d as SelfieConfig, o as selfieMachine, v as FaceErrorCode } from "./faceCaptureManagerFactory-
|
|
3
|
-
import "./warmup-
|
|
4
|
-
import "./Manager-
|
|
5
|
-
import { t as CameraStream } from "./camera-
|
|
6
|
-
import "./Actor-
|
|
7
|
-
import "./StateMachine-
|
|
8
|
-
import "./types-
|
|
9
|
-
import "./types-
|
|
10
|
-
import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-
|
|
1
|
+
import { n as PermissionResult, r as PermissionStatus, t as DeepsightService } from "./deepsightService-C47Uyf6m.js";
|
|
2
|
+
import { _ as DetectionStatus, a as SelfieMachine, d as SelfieConfig, o as selfieMachine, v as FaceErrorCode } from "./faceCaptureManagerFactory-UFhWTbej.js";
|
|
3
|
+
import "./warmup-B_dntecl.js";
|
|
4
|
+
import "./Manager-BWqHEUjI.js";
|
|
5
|
+
import { t as CameraStream } from "./camera-BCRgkMoe.js";
|
|
6
|
+
import "./Actor-By8WNHi-.js";
|
|
7
|
+
import "./StateMachine-dxjI9q0V.js";
|
|
8
|
+
import "./types-BYFeUhw0.js";
|
|
9
|
+
import "./types-0A1THNYO.js";
|
|
10
|
+
import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-DSn8EPLE.js";
|
|
11
11
|
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 };
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import "./events-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
4
|
-
import "./recordingsRepository-
|
|
5
|
-
import "./
|
|
6
|
-
import "./api-
|
|
7
|
-
import "./endpoints-
|
|
8
|
-
import "./
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
1
|
+
import "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import "./backCameraStream-BPzo60FO.esm.js";
|
|
3
|
+
import "./src-BX-m0lbm.esm.js";
|
|
4
|
+
import "./recordingsRepository-DGWSMj-_.esm.js";
|
|
5
|
+
import "./browserSimulation-DYAk0Ipe.esm.js";
|
|
6
|
+
import "./api-C2uzxrpN.esm.js";
|
|
7
|
+
import "./endpoints-b2PxFIku.esm.js";
|
|
8
|
+
import "./deepsightService-BcdwWkYD.esm.js";
|
|
9
|
+
import "./stats-BaWAv541.esm.js";
|
|
10
|
+
import { n as processFace } from "./faceCaptureSetup-CoeOjXeo.esm.js";
|
|
11
|
+
import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-BxwT4tDD.esm.js";
|
|
11
12
|
|
|
12
13
|
export { createSelfieManager, processFace, selfieMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as createActor, n as eventModuleNames, x as fromPromise, y as assign } from "./events-
|
|
2
|
-
import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-
|
|
3
|
-
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
1
|
+
import { S as createActor, n as eventModuleNames, x as fromPromise, y as assign } from "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-BX-m0lbm.esm.js";
|
|
3
|
+
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-CoeOjXeo.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
6
6
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as SelfieActor, n as FaceCaptureManagerState, r as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import { i as SelfieActor, n as FaceCaptureManagerState, r as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-UFhWTbej.js";
|
|
2
|
+
import { t as Manager } from "./Manager-BWqHEUjI.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/selfie/selfieUploadService.d.ts
|
|
5
5
|
type ProcessFaceImageType = 'selfie' | 'videoSelfie';
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { h as addEvent } from "./events-CbNkXF2Q.esm.js";
|
|
2
|
+
import { h as FingerprintProvider, m as IpifyProvider, v as BrowserInfoProvider, y as BrowserEnvironmentProvider } from "./src-BX-m0lbm.esm.js";
|
|
3
|
+
import { t as isBrowserSimulation } from "./browserSimulation-DYAk0Ipe.esm.js";
|
|
4
|
+
import { n as getApi, t as api } from "./api-C2uzxrpN.esm.js";
|
|
5
|
+
import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
|
|
6
|
+
|
|
7
|
+
//#region src/internal/session/sessionService.ts
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new onboarding session.
|
|
10
|
+
*
|
|
11
|
+
* @param apiKey - The API key from the Incode dashboard
|
|
12
|
+
* @param options - Session creation options
|
|
13
|
+
* @param signal - Optional AbortSignal for request cancellation
|
|
14
|
+
* @returns The created session with token
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const session = await createSession('your-api-key', {
|
|
19
|
+
* configurationId: 'your-flow-id',
|
|
20
|
+
* language: 'en-US',
|
|
21
|
+
* });
|
|
22
|
+
* console.log(session.token); // Use this token for subsequent API calls
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
async function createSession(apiKey, options, signal) {
|
|
26
|
+
const res = await getApi().post(endpoints.createSession, {
|
|
27
|
+
configurationId: options.configurationId,
|
|
28
|
+
externalId: options.externalId,
|
|
29
|
+
externalCustomerId: options.externalCustomerId,
|
|
30
|
+
language: options.language ?? "en-US",
|
|
31
|
+
customFields: options.customFields,
|
|
32
|
+
uuid: options.uuid ?? null,
|
|
33
|
+
interviewId: options.interviewId ?? null
|
|
34
|
+
}, {
|
|
35
|
+
headers: {
|
|
36
|
+
"x-api-key": apiKey,
|
|
37
|
+
"api-version": "1.0"
|
|
38
|
+
},
|
|
39
|
+
signal
|
|
40
|
+
});
|
|
41
|
+
if (!res.ok) throw new Error(`POST ${endpoints.createSession} failed: ${res.status} ${res.statusText}`);
|
|
42
|
+
return res.data;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/internal/featureConfig/featureConfigService.ts
|
|
47
|
+
let cachedFeatures$1 = null;
|
|
48
|
+
/**
|
|
49
|
+
* Checks if a feature is enabled in the feature config.
|
|
50
|
+
*/
|
|
51
|
+
function isFeatureEnabled(feature, features) {
|
|
52
|
+
return features?.find((f) => f.feature === feature)?.enabled ?? false;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Fetches feature configuration from the backend.
|
|
56
|
+
* Results are cached for the session lifetime.
|
|
57
|
+
*/
|
|
58
|
+
async function fetchFeatureConfig(signal) {
|
|
59
|
+
if (cachedFeatures$1) return cachedFeatures$1;
|
|
60
|
+
const response = await api.get(endpoints.featureConfig, { signal });
|
|
61
|
+
if (!response.ok) throw new Error(`Failed to fetch feature config: ${response.status} ${response.statusText}`);
|
|
62
|
+
cachedFeatures$1 = response.data;
|
|
63
|
+
return cachedFeatures$1;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Resets the cached feature config (useful for testing).
|
|
67
|
+
*/
|
|
68
|
+
function resetFeatureConfigCache() {
|
|
69
|
+
cachedFeatures$1 = null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/internal/fingerprint/fingerprintService.ts
|
|
74
|
+
const SDK_VERSION = "2.0.0";
|
|
75
|
+
function formatOsVersion(os) {
|
|
76
|
+
return `${os.name || "Unknown"} ${os.version || ""}`.trim();
|
|
77
|
+
}
|
|
78
|
+
function formatBrowser(browser) {
|
|
79
|
+
if (!browser.name || !browser.version) return "Unknown";
|
|
80
|
+
return `${browser.name} ${browser.version}`;
|
|
81
|
+
}
|
|
82
|
+
async function submitDeviceFingerprint(options = {}, dependencies) {
|
|
83
|
+
const { disableIpify = false, hostingApp, signal } = options;
|
|
84
|
+
const fingerprint = await dependencies.fingerprintProvider.getFingerprint(disableIpify);
|
|
85
|
+
const hasLiedBrowser = isBrowserSimulation(dependencies.browserEnv);
|
|
86
|
+
const payload = {
|
|
87
|
+
hash: fingerprint.visitorId || "",
|
|
88
|
+
ip: fingerprint.ip || "",
|
|
89
|
+
deviceType: "WEBAPP",
|
|
90
|
+
data: JSON.stringify(fingerprint),
|
|
91
|
+
osVersion: formatOsVersion(fingerprint.deviceInfo.os),
|
|
92
|
+
deviceModel: fingerprint.deviceInfo.device.model || "",
|
|
93
|
+
browser: formatBrowser(fingerprint.deviceInfo.browser),
|
|
94
|
+
hasLiedBrowser,
|
|
95
|
+
sdkVersion: SDK_VERSION,
|
|
96
|
+
hostingApp: hostingApp ?? "Web SDK"
|
|
97
|
+
};
|
|
98
|
+
const response = await api.post(endpoints.deviceFingerprint, payload, { signal });
|
|
99
|
+
if (!response.ok) throw new Error(`Failed to submit fingerprint: ${response.status} ${response.statusText}`);
|
|
100
|
+
return response.data;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/internal/session/sessionInitializer.ts
|
|
105
|
+
let sessionInitialized = false;
|
|
106
|
+
let cachedFeatures = null;
|
|
107
|
+
let cachedDisableIpify = false;
|
|
108
|
+
let cachedFingerprintSuccess = false;
|
|
109
|
+
let cachedFingerprintResult;
|
|
110
|
+
let sessionInitPromise = null;
|
|
111
|
+
/**
|
|
112
|
+
* Initializes session-level services after the token is set.
|
|
113
|
+
* This should be called once after createSession() or setToken().
|
|
114
|
+
*
|
|
115
|
+
* Performs:
|
|
116
|
+
* 1. Fetches feature configuration from backend
|
|
117
|
+
* 2. Submits device fingerprint
|
|
118
|
+
*
|
|
119
|
+
* Results are cached for the session lifetime.
|
|
120
|
+
*
|
|
121
|
+
* @param options - Optional configuration
|
|
122
|
+
* @returns Session initialization result with feature config
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* ```ts
|
|
126
|
+
* // After creating a session
|
|
127
|
+
* const session = await createSession('api-key', options);
|
|
128
|
+
* setup({ apiURL, token: session.token });
|
|
129
|
+
* const { features } = await initializeSession();
|
|
130
|
+
*
|
|
131
|
+
* // Check feature flags
|
|
132
|
+
* if (isFeatureEnabled('DISABLE_IPIFY', features.features)) {
|
|
133
|
+
* // Handle disabled ipify
|
|
134
|
+
* }
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
async function initializeSession(options = {}) {
|
|
138
|
+
const { hostingApp, signal } = options;
|
|
139
|
+
if (sessionInitialized && cachedFeatures) return {
|
|
140
|
+
features: cachedFeatures,
|
|
141
|
+
disableIpify: cachedDisableIpify,
|
|
142
|
+
fingerprintSuccess: cachedFingerprintSuccess,
|
|
143
|
+
fingerprintResult: cachedFingerprintResult
|
|
144
|
+
};
|
|
145
|
+
if (sessionInitPromise) return sessionInitPromise;
|
|
146
|
+
sessionInitPromise = (async () => {
|
|
147
|
+
let features;
|
|
148
|
+
let disableIpify = false;
|
|
149
|
+
try {
|
|
150
|
+
features = await fetchFeatureConfig(signal);
|
|
151
|
+
disableIpify = isFeatureEnabled("DISABLE_IPIFY", features.features);
|
|
152
|
+
} catch {
|
|
153
|
+
features = { sessionIdentifier: "" };
|
|
154
|
+
}
|
|
155
|
+
let fingerprintSuccess = false;
|
|
156
|
+
let fingerprintResult;
|
|
157
|
+
try {
|
|
158
|
+
const fingerprintProvider = new FingerprintProvider(new IpifyProvider());
|
|
159
|
+
const browserEnv = new BrowserEnvironmentProvider();
|
|
160
|
+
fingerprintResult = await submitDeviceFingerprint({
|
|
161
|
+
disableIpify,
|
|
162
|
+
hostingApp,
|
|
163
|
+
signal
|
|
164
|
+
}, {
|
|
165
|
+
fingerprintProvider,
|
|
166
|
+
browserEnv
|
|
167
|
+
});
|
|
168
|
+
fingerprintSuccess = true;
|
|
169
|
+
} catch (error) {
|
|
170
|
+
console.warn("Failed to submit device fingerprint:", error);
|
|
171
|
+
}
|
|
172
|
+
try {
|
|
173
|
+
const browserInfo = new BrowserInfoProvider().getBrowserInfo();
|
|
174
|
+
addEvent({
|
|
175
|
+
code: "browser",
|
|
176
|
+
payload: {
|
|
177
|
+
userAgent: browserInfo.userAgent,
|
|
178
|
+
isWebRtcSupported: browserInfo.isWebRtcSupported,
|
|
179
|
+
browser: browserInfo.browser,
|
|
180
|
+
os: browserInfo.os,
|
|
181
|
+
device: browserInfo.device,
|
|
182
|
+
engine: browserInfo.engine,
|
|
183
|
+
cpu: browserInfo.cpu
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
} catch (error) {
|
|
187
|
+
console.warn("Failed to send browser info event:", error);
|
|
188
|
+
}
|
|
189
|
+
sessionInitialized = true;
|
|
190
|
+
cachedFeatures = features;
|
|
191
|
+
cachedDisableIpify = disableIpify;
|
|
192
|
+
cachedFingerprintSuccess = fingerprintSuccess;
|
|
193
|
+
cachedFingerprintResult = fingerprintResult;
|
|
194
|
+
return {
|
|
195
|
+
features,
|
|
196
|
+
disableIpify,
|
|
197
|
+
fingerprintSuccess,
|
|
198
|
+
fingerprintResult
|
|
199
|
+
};
|
|
200
|
+
})().finally(() => {
|
|
201
|
+
sessionInitPromise = null;
|
|
202
|
+
});
|
|
203
|
+
return sessionInitPromise;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Gets the cached feature configuration.
|
|
207
|
+
* Returns undefined if session hasn't been initialized.
|
|
208
|
+
*/
|
|
209
|
+
function getSessionFeatures() {
|
|
210
|
+
return cachedFeatures ?? void 0;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Gets the cached disableIpify flag.
|
|
214
|
+
* Returns false if session hasn't been initialized.
|
|
215
|
+
*/
|
|
216
|
+
function getDisableIpify() {
|
|
217
|
+
return cachedDisableIpify;
|
|
218
|
+
}
|
|
219
|
+
function getSessionFingerprintResult() {
|
|
220
|
+
return cachedFingerprintResult;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Checks if the session has been initialized.
|
|
224
|
+
*/
|
|
225
|
+
function isSessionInitialized() {
|
|
226
|
+
return sessionInitialized;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Resets session initialization state.
|
|
230
|
+
* Useful for testing or when starting a new session.
|
|
231
|
+
*/
|
|
232
|
+
function resetSessionInit() {
|
|
233
|
+
sessionInitialized = false;
|
|
234
|
+
cachedFeatures = null;
|
|
235
|
+
cachedDisableIpify = false;
|
|
236
|
+
cachedFingerprintSuccess = false;
|
|
237
|
+
cachedFingerprintResult = void 0;
|
|
238
|
+
sessionInitPromise = null;
|
|
239
|
+
resetFeatureConfigCache();
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
//#endregion
|
|
243
|
+
export { isSessionInitialized as a, initializeSession as i, getSessionFeatures as n, resetSessionInit as o, getSessionFingerprintResult as r, createSession as s, getDisableIpify as t };
|
package/dist/session.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as GetFinishStatusFn, r as getFinishStatus, t as FinishStatus } from "./flowCompletionService-
|
|
1
|
+
import { n as GetFinishStatusFn, r as getFinishStatus, t as FinishStatus } from "./flowCompletionService-sG6KA8y2.js";
|
|
2
2
|
export { type FinishStatus, type GetFinishStatusFn, getFinishStatus };
|
package/dist/session.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./endpoints-
|
|
3
|
-
import { t as getFinishStatus } from "./flowCompletionService-
|
|
1
|
+
import "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import "./endpoints-b2PxFIku.esm.js";
|
|
3
|
+
import { t as getFinishStatus } from "./flowCompletionService-DkbMP576.esm.js";
|
|
4
4
|
|
|
5
5
|
export { getFinishStatus };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __toDynamicImportESM } from "./chunk-
|
|
1
|
+
import { a as __toDynamicImportESM } from "./chunk-NXK2ElUW.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/capabilities/platform.ts
|
|
4
4
|
/**
|
|
@@ -4461,7 +4461,7 @@ var MotionSensorProvider = class {
|
|
|
4461
4461
|
let openViduImport;
|
|
4462
4462
|
async function loadOpenVidu() {
|
|
4463
4463
|
if (openViduImport) return openViduImport;
|
|
4464
|
-
openViduImport = import("./lib-
|
|
4464
|
+
openViduImport = import("./lib-VFNBaz_7.esm.js").then(__toDynamicImportESM(1));
|
|
4465
4465
|
return openViduImport;
|
|
4466
4466
|
}
|
|
4467
4467
|
|
package/dist/stats.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DocumentUploadConfig } from "./types-
|
|
1
|
+
import { t as DocumentUploadConfig } from "./types-BYFeUhw0.js";
|
|
2
2
|
|
|
3
3
|
//#region src/modules/flow/types.d.ts
|
|
4
4
|
type EmptyConfig = Record<string, never>;
|
|
@@ -169,6 +169,9 @@ type FlowModuleConfig = {
|
|
|
169
169
|
bavVendorCountry: 'US' | 'CA' | 'AU' | 'NZ' | 'BR' | 'MX' | 'CO' | 'UK' | 'EU';
|
|
170
170
|
bavNumberOfRetries: number;
|
|
171
171
|
};
|
|
172
|
+
MANDATORY_CONSENT: {
|
|
173
|
+
consentType: RegulationTypes;
|
|
174
|
+
};
|
|
172
175
|
ML_CONSENT: {
|
|
173
176
|
consentType: RegulationTypes;
|
|
174
177
|
};
|
|
@@ -304,4 +307,4 @@ type Flow = {
|
|
|
304
307
|
ds?: boolean;
|
|
305
308
|
};
|
|
306
309
|
//#endregion
|
|
307
|
-
export { TutorialIdConfig as i, FlowModule as n, FlowModuleConfig as r, Flow as t };
|
|
310
|
+
export { TutorialIdConfig as a, RegulationTypes as i, FlowModule as n, FlowModuleConfig as r, Flow as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260324-90ddcfd",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -33,6 +33,10 @@
|
|
|
33
33
|
"types": "./dist/consent.d.ts",
|
|
34
34
|
"import": "./dist/consent.esm.js"
|
|
35
35
|
},
|
|
36
|
+
"./mandatory-consent": {
|
|
37
|
+
"types": "./dist/mandatory-consent.d.ts",
|
|
38
|
+
"import": "./dist/mandatory-consent.esm.js"
|
|
39
|
+
},
|
|
36
40
|
"./id": {
|
|
37
41
|
"types": "./dist/id.d.ts",
|
|
38
42
|
"import": "./dist/id.esm.js"
|
|
@@ -94,8 +98,8 @@
|
|
|
94
98
|
"tsdown": "^0.16.6",
|
|
95
99
|
"typescript": "^5.9.3",
|
|
96
100
|
"vitest": "^4.0.13",
|
|
97
|
-
"@incodetech/
|
|
98
|
-
"@incodetech/
|
|
101
|
+
"@incodetech/config": "1.0.0",
|
|
102
|
+
"@incodetech/infra": "1.0.0"
|
|
99
103
|
},
|
|
100
104
|
"scripts": {
|
|
101
105
|
"build": "tsdown -c tsdown.config.ts",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|