@incodetech/core 2.1.0-rc.0 → 2.1.0-rc.1
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/{WasmUtilProvider-CiEN7Gjn.esm.js → WasmUtilProvider-BKWm8rSA.esm.js} +19 -0
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +8 -8
- package/dist/{authenticationManager-ZNotsWnC.esm.js → authenticationManager-BlR6mSaG.esm.js} +3 -3
- package/dist/{authenticationManager-CIVY80H9.d.ts → authenticationManager-CaiQbp-q.d.ts} +1 -1
- package/dist/{authenticationStateMachine-DksVbF_H.esm.js → authenticationStateMachine-DkcGUMw5.esm.js} +2 -2
- package/dist/camera.esm.js +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-BLd51QiW.d.ts → consentManager-Cg5Sk2tv.d.ts} +53 -53
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-BnieFXuG.d.ts → cpfOcrManager-Dg1s_TY5.d.ts} +17 -17
- package/dist/{deepsightLoader-65k1Appi.esm.js → deepsightLoader-8tnddNx-.esm.js} +1 -1
- package/dist/{deepsightService-B7ShOkWL.d.ts → deepsightService-Dh5P-hLf.d.ts} +5 -0
- package/dist/document-capture.d.ts +222 -222
- package/dist/document-capture.esm.js +4 -4
- package/dist/document-upload.d.ts +43 -43
- package/dist/{documentCaptureStateMachine-WYV1r9le.esm.js → documentCaptureStateMachine-CUTUzUw_.esm.js} +2 -2
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-aYixw2sL.esm.js → ekybStateMachine-klc-AImJ.esm.js} +1 -1
- package/dist/extensibility.d.ts +18 -9
- package/dist/extensibility.esm.js +13 -13
- package/dist/face-match.d.ts +0 -11
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureManagerFactory-C_hRHx8a.d.ts → faceCaptureManagerFactory-CjdBUS6s.d.ts} +14 -7
- package/dist/{faceCaptureManagerFactory-kqbUqtrr.esm.js → faceCaptureManagerFactory-ej2j1LMr.esm.js} +1 -1
- package/dist/{faceCaptureSetup-CtvHWd3x.esm.js → faceCaptureSetup-B9t6bYze.esm.js} +3 -3
- package/dist/{faceMatchStateMachine-DdGXUBnx.esm.js → faceMatchStateMachine-DeXXzSuz.esm.js} +6 -4
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +2 -9
- package/dist/{flowServices-BTuHLHVr.esm.js → flowServices-ChgTNggJ.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +52 -52
- package/dist/id-verification.d.ts +25 -25
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +41 -8
- package/dist/{idCaptureManager-D-QYESvF.d.ts → idCaptureManager-ChCNmgBj.d.ts} +13 -7
- package/dist/{idCaptureManager-DGVv5l1_.esm.js → idCaptureManager-D3pwWutw.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-DHi7HydI.esm.js → idCaptureStateMachine-B3AiDIsT.esm.js} +6 -6
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-DwLtVzUn.d.ts → identityReuseManager-Cww-NDtd.d.ts} +34 -34
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-KfIlURRY.d.ts → mandatoryConsentManager-Dq6WiOZh.d.ts} +50 -50
- package/dist/{permissionGuards-C1ispV96.esm.js → permissionGuards-D0wGddy7.esm.js} +1 -1
- package/dist/{permissionServices-CG3bMSfG.esm.js → permissionServices-Doec4X5L.esm.js} +1 -1
- package/dist/{recordingService-Bn9EdCmz.esm.js → recordingService-yRw7hfzU.esm.js} +2 -2
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +34 -9
- package/dist/{selfieManager-BjCoKRy0.esm.js → selfieManager-BNuTIGAz.esm.js} +3 -3
- package/dist/{selfieManager-dUbKRzOh.d.ts → selfieManager-C2y_t6DG.d.ts} +1 -1
- package/dist/{selfieStateMachine-b4F2q9zw.esm.js → selfieStateMachine-Bv99bZJE.esm.js} +2 -2
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-B8H5MsXM.esm.js → sessionInitializer-DRB-hgbV.esm.js} +1 -1
- package/dist/{setup-BbkprdVv.d.ts → setup-BwCluiw3.d.ts} +29 -0
- package/dist/{setup-BqEfrdja.esm.js → setup-CUO4mErT.esm.js} +16 -4
- package/dist/trust-graph.d.ts +2 -2
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +3 -3
- package/dist/workflow.d.ts +88 -95
- package/dist/workflow.esm.js +27 -53
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-BHn8wH8K.js";
|
|
2
|
-
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
2
|
+
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CjdBUS6s.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/selfie/selfieUploadService.d.ts
|
|
5
5
|
type ProcessFaceImageType = 'selfie' | 'videoSelfie';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as fromPromise, r as assign } from "./xstate.esm-C9wncMQa.esm.js";
|
|
2
|
-
import { a as defaultPrepareFaceUpload, c as prepareOnDeviceFaceUpload, h as uploadSelfie, m as processFace, o as isOnDeviceMode, s as postOnDeviceFaceResults } from "./recordingService-
|
|
2
|
+
import { a as defaultPrepareFaceUpload, c as prepareOnDeviceFaceUpload, h as uploadSelfie, m as processFace, o as isOnDeviceMode, s as postOnDeviceFaceResults } from "./recordingService-yRw7hfzU.esm.js";
|
|
3
3
|
import { t as FACE_ERROR_CODES } from "./types-DsnEVMhr.esm.js";
|
|
4
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-B9t6bYze.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
7
7
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
package/dist/session.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import "./endpoints-BeTK0Mlt.esm.js";
|
|
|
4
4
|
import "./stats-BMNUG1AU.esm.js";
|
|
5
5
|
import "./IpifyProvider-D4LWD15E.esm.js";
|
|
6
6
|
import "./browserSimulation-B1dWiXp7.esm.js";
|
|
7
|
-
import { r as initializeSession } from "./sessionInitializer-
|
|
7
|
+
import { r as initializeSession } from "./sessionInitializer-DRB-hgbV.esm.js";
|
|
8
8
|
import "./platform-SKvEfCBh.esm.js";
|
|
9
9
|
import "./getBrowser-C8DP7oTB.esm.js";
|
|
10
10
|
import { t as IncodeApiError } from "./apiError-B-j-gyDx.esm.js";
|
|
@@ -185,7 +185,7 @@ function resetFeatureConfigCache() {
|
|
|
185
185
|
|
|
186
186
|
//#endregion
|
|
187
187
|
//#region src/internal/version/sdkVersion.ts
|
|
188
|
-
const SDK_VERSION = "2.1.0-rc.
|
|
188
|
+
const SDK_VERSION = "2.1.0-rc.1";
|
|
189
189
|
|
|
190
190
|
//#endregion
|
|
191
191
|
//#region src/internal/fingerprint/fingerprintService.ts
|
|
@@ -37,6 +37,14 @@ type WasmConfig = {
|
|
|
37
37
|
* If not provided, models are expected in a 'models' subdirectory relative to the WASM binary.
|
|
38
38
|
*/
|
|
39
39
|
modelsBasePath?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Enables the WASM module's verbose debug logging/console output.
|
|
42
|
+
*
|
|
43
|
+
* Defaults to `false` — the SDK forces WASM into production mode, so the
|
|
44
|
+
* native module stays quiet. Set to `true` only when you need the WASM
|
|
45
|
+
* diagnostics while debugging.
|
|
46
|
+
*/
|
|
47
|
+
showLogs?: boolean;
|
|
40
48
|
};
|
|
41
49
|
/**
|
|
42
50
|
* Object form of the `encryption` option for {@link SetupOptions}. Reach for
|
|
@@ -154,6 +162,18 @@ type SetupOptions = {
|
|
|
154
162
|
* (lookup enabled).
|
|
155
163
|
*/
|
|
156
164
|
ipLookup?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Disables the browser devtools detector for local development. When `true`,
|
|
167
|
+
* the detector is **not** started, so devtools no longer gets repeatedly
|
|
168
|
+
* paused on the detector's `debugger` statements.
|
|
169
|
+
*
|
|
170
|
+
* Leave this `false` (default) in production: the detector feeds an
|
|
171
|
+
* anti-fraud signal and should stay on for real users.
|
|
172
|
+
*
|
|
173
|
+
* Note: WASM console logging is controlled separately via `wasm.showLogs`
|
|
174
|
+
* (off by default).
|
|
175
|
+
*/
|
|
176
|
+
devMode?: boolean;
|
|
157
177
|
};
|
|
158
178
|
/**
|
|
159
179
|
* Initializes the SDK with the provided configuration.
|
|
@@ -258,6 +278,15 @@ type SetupOptions = {
|
|
|
258
278
|
* ipLookup: false,
|
|
259
279
|
* });
|
|
260
280
|
* ```
|
|
281
|
+
*
|
|
282
|
+
* @example Local development: silence the devtools detector and surface WASM logs
|
|
283
|
+
* ```ts
|
|
284
|
+
* await setup({
|
|
285
|
+
* apiURL: 'https://api.incode.com',
|
|
286
|
+
* wasm: { showLogs: true }, // WASM logs are off by default
|
|
287
|
+
* devMode: true, // skip the devtools detector (don't ship this in prod)
|
|
288
|
+
* });
|
|
289
|
+
* ```
|
|
261
290
|
*/
|
|
262
291
|
declare function setup(options: SetupOptions): Promise<void>;
|
|
263
292
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as WasmWebClientError, c as setWebApiHttpTransport, f as deriveSiblingJsPath, l as setupWasmConnection, o as executeWasmRequest, r as warmupWasm, s as initializeWasmWebClient, t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { a as WasmWebClientError, c as setWebApiHttpTransport, f as deriveSiblingJsPath, l as setupWasmConnection, o as executeWasmRequest, r as warmupWasm, s as initializeWasmWebClient, t as WasmUtilProvider } from "./WasmUtilProvider-BKWm8rSA.esm.js";
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-DhNc_x02.esm.js";
|
|
3
3
|
import { a as resetApi, i as isApiConfigured, n as getApi, o as setClient, r as getToken, t as api } from "./api-CESGtpbH.esm.js";
|
|
4
4
|
import { _ as resetAnalyticsBatcher, g as getAnalyticsBatcher, m as createAnalyticsBatchingService, v as setAnalyticsBatcher } from "./events-Dvvriq9l.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-BeTK0Mlt.esm.js";
|
|
6
6
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-BMNUG1AU.esm.js";
|
|
7
|
-
import { a as setClientIpLookupEnabled, i as resetSessionInit, r as initializeSession } from "./sessionInitializer-
|
|
7
|
+
import { a as setClientIpLookupEnabled, i as resetSessionInit, r as initializeSession } from "./sessionInitializer-DRB-hgbV.esm.js";
|
|
8
8
|
|
|
9
9
|
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
10
10
|
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
@@ -913,6 +913,15 @@ let configured = false;
|
|
|
913
913
|
* ipLookup: false,
|
|
914
914
|
* });
|
|
915
915
|
* ```
|
|
916
|
+
*
|
|
917
|
+
* @example Local development: silence the devtools detector and surface WASM logs
|
|
918
|
+
* ```ts
|
|
919
|
+
* await setup({
|
|
920
|
+
* apiURL: 'https://api.incode.com',
|
|
921
|
+
* wasm: { showLogs: true }, // WASM logs are off by default
|
|
922
|
+
* devMode: true, // skip the devtools detector (don't ship this in prod)
|
|
923
|
+
* });
|
|
924
|
+
* ```
|
|
916
925
|
*/
|
|
917
926
|
async function setup(options) {
|
|
918
927
|
if (options.ipLookup !== void 0) setClientIpLookupEnabled(options.ipLookup);
|
|
@@ -945,11 +954,14 @@ async function setup(options) {
|
|
|
945
954
|
configured = true;
|
|
946
955
|
if (effectiveWasm) {
|
|
947
956
|
await warmupWasm(effectiveWasm);
|
|
948
|
-
|
|
957
|
+
const provider = await WasmUtilProvider.getInstance();
|
|
958
|
+
await provider.initialize({
|
|
949
959
|
...effectiveWasm,
|
|
950
960
|
pipelines: effectiveWasm.pipelines ? [...effectiveWasm.pipelines] : void 0
|
|
951
961
|
});
|
|
952
|
-
|
|
962
|
+
const showWasmLogs = typeof options.wasm === "object" && options.wasm.showLogs === true;
|
|
963
|
+
await provider.setProductionMode(!showWasmLogs);
|
|
964
|
+
if (!options.devMode) startDevtoolsDetector();
|
|
953
965
|
}
|
|
954
966
|
}
|
|
955
967
|
/**
|
package/dist/trust-graph.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-BHn8wH8K.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as xstate220 from "xstate";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/trust-graph/trustGraphManager.d.ts
|
|
5
5
|
type TrustGraphIdleState = {
|
|
@@ -59,7 +59,7 @@ type TrustGraphContext = Record<string, never>;
|
|
|
59
59
|
* Mirror the `noOpFlowModuleMachine` / `identitySearchMachine` headless pattern:
|
|
60
60
|
* start directly in the `final` state.
|
|
61
61
|
*/
|
|
62
|
-
declare const trustGraphMachine:
|
|
62
|
+
declare const trustGraphMachine: xstate220.StateMachine<TrustGraphContext, xstate220.AnyEventObject, {}, never, never, never, never, "finished", string, xstate220.NonReducibleUnknown, xstate220.NonReducibleUnknown, xstate220.EventObject, xstate220.MetaObject, {
|
|
63
63
|
readonly id: "trust-graph";
|
|
64
64
|
readonly initial: "finished";
|
|
65
65
|
readonly context: {};
|
package/dist/wasm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as WasmPipeline, r as warmupWasm, t as WarmupConfig } from "./warmup-Dg8Lh-50.js";
|
|
2
|
-
import { c as upgradeToWasmHttpClient, n as WasmConfig, o as setWasmConfig, r as initializeWasmUtil } from "./setup-
|
|
2
|
+
import { c as upgradeToWasmHttpClient, n as WasmConfig, o as setWasmConfig, r as initializeWasmUtil } from "./setup-BwCluiw3.js";
|
|
3
3
|
|
|
4
4
|
//#region ../infra/src/wasm/wasmDefaults.d.ts
|
|
5
5
|
/** The WASM version bundled and tested with this SDK release. */
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as warmupWasm } from "./WasmUtilProvider-
|
|
2
|
-
import { c as buildDefaultWasmConfig, i as setWasmConfig, l as buildWasmConfigFromBasePath, o as upgradeToWasmHttpClient, s as DEFAULT_WASM_VERSION, t as initializeWasmUtil, u as resolveWasmConfig } from "./setup-
|
|
1
|
+
import { r as warmupWasm } from "./WasmUtilProvider-BKWm8rSA.esm.js";
|
|
2
|
+
import { c as buildDefaultWasmConfig, i as setWasmConfig, l as buildWasmConfigFromBasePath, o as upgradeToWasmHttpClient, s as DEFAULT_WASM_VERSION, t as initializeWasmUtil, u as resolveWasmConfig } from "./setup-CUO4mErT.esm.js";
|
|
3
3
|
import "./BrowserTimerProvider-DhNc_x02.esm.js";
|
|
4
4
|
import "./api-CESGtpbH.esm.js";
|
|
5
5
|
import "./events-Dvvriq9l.esm.js";
|
|
@@ -7,7 +7,7 @@ import "./endpoints-BeTK0Mlt.esm.js";
|
|
|
7
7
|
import "./stats-BMNUG1AU.esm.js";
|
|
8
8
|
import "./IpifyProvider-D4LWD15E.esm.js";
|
|
9
9
|
import "./browserSimulation-B1dWiXp7.esm.js";
|
|
10
|
-
import "./sessionInitializer-
|
|
10
|
+
import "./sessionInitializer-DRB-hgbV.esm.js";
|
|
11
11
|
import "./platform-SKvEfCBh.esm.js";
|
|
12
12
|
import "./getBrowser-C8DP7oTB.esm.js";
|
|
13
13
|
|