@incodetech/core 0.0.0-dev-20261014-e4db9c02 → 0.0.0-dev-20261014-82c6fd33
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/{FaceDetectionProvider-9IwB7jcM.esm.js → FaceDetectionProvider-CjWCKcIu.esm.js} +5 -5
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-CFwIWUtz.esm.js → apiError-DgSftpa0.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DHrqI5Le.esm.js → authenticationManager--1lefT83.esm.js} +3 -3
- package/dist/{authenticationStateMachine-CDsC16Jn.esm.js → authenticationStateMachine-AVH_s6--.esm.js} +2 -2
- package/dist/{deepsightLoader-CWjI76eb.esm.js → deepsightLoader-Drgk4Jv9.esm.js} +4 -4
- package/dist/{deepsightService-Dq_9MGNi.esm.js → deepsightService-xMDI8RDs.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-CCzxliyj.esm.js → dynamicFormsManager-D7wWeNGK.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-DVbgcw96.esm.js → dynamicFormsStateMachine-9sqWyWLc.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-DtdNyCkV.esm.js → ekybManager-DLytGFSA.esm.js} +1 -1
- package/dist/{ekybStateMachine-Cd0nGdXM.esm.js → ekybStateMachine-fRzoh4AI.esm.js} +1 -1
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-DZH51PnN.esm.js → ekycManager-RaSSnmxD.esm.js} +1 -1
- package/dist/{ekycStateMachine-DnKlILfu.esm.js → ekycStateMachine-BqacNxVI.esm.js} +803 -1
- package/dist/{ekycUtils-3FIL6m1x.esm.js → ekycUtils-DrRSBMVL.esm.js} +28 -0
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-B_SHlY1L.esm.js → electronicSignatureManager-BR38Ogjf.esm.js} +1 -1
- package/dist/extensibility.d.ts +4 -4
- package/dist/extensibility.esm.js +11 -11
- package/dist/{faceCaptureManagerFactory-1uGiHaoF.esm.js → faceCaptureManagerFactory-B1BrC2K4.esm.js} +1 -1
- package/dist/{faceCaptureSetup-BYnZ3A8a.esm.js → faceCaptureSetup-Dmz6aiNH.esm.js} +3 -3
- package/dist/{feature-management-XxXkowCy.esm.js → feature-management-pS1G_jQ5.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.d.ts +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-OHsAMzl8.esm.js → flowCompletionService-CVBZUlWT.esm.js} +1 -1
- package/dist/{flowServices-D3b4BP89.esm.js → flowServices-CCPh3tqQ.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DqI8ho5R.esm.js → geolocationManager-CG3nIRbs.esm.js} +1 -1
- package/dist/{geolocationStateMachine-Je2uPWor.esm.js → geolocationStateMachine-Z9o9iDIY.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +7 -7
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-BjP8SevF.esm.js → idCaptureDefaults-DlsyJMOW.esm.js} +1 -1
- package/dist/{idCaptureManager-DW3eER4t.d.ts → idCaptureManager-BY97SRCV.d.ts} +1 -1
- package/dist/{idCaptureManager-I5L_IVbR.esm.js → idCaptureManager-DmoOx0O5.esm.js} +3 -3
- package/dist/{idCaptureServices-t11U9Anc.esm.js → idCaptureServices-D55prH0r.esm.js} +3 -3
- package/dist/{idCaptureStateMachine-Dv1tDMKs.esm.js → idCaptureStateMachine-MV0CtrZ9.esm.js} +44 -21
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-B1birg5X.d.ts} +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-BkaLkcA2.d.ts → mandatoryConsentManager-DDixKrq0.d.ts} +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-9q7BQwPd.esm.js → runChildModule-DXNgGwGn.esm.js} +1 -1
- package/dist/{sdkVersion-g8ehOQhP.esm.js → sdkVersion-DM8nidSt.esm.js} +1 -1
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieErrorUtils-zRAt9WeG.esm.js → selfieErrorUtils-B3Gdyvaf.esm.js} +1 -1
- package/dist/{selfieManager-BVcizHEI.esm.js → selfieManager-gLy-_nNC.esm.js} +3 -3
- package/dist/{selfieStateMachine-CBkLfNU3.esm.js → selfieStateMachine-BiYWExHE.esm.js} +3 -3
- package/dist/{session-XeaMJEO1.esm.js → session-CtVdey6m.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-LBbZHbPK.esm.js → sessionInitializer-V3iatb38.esm.js} +3 -3
- package/dist/{setup-CkMpP7pu.esm.js → setup-C-Nol_jL.esm.js} +22 -5
- package/dist/{setup-oKDzNC62.d.ts → setup-lgkQ8dJW.d.ts} +11 -0
- package/dist/{trueSightService-DtuHbL0_.esm.js → trueSightService-D7fIDGRl.esm.js} +1 -1
- package/dist/{types-CwCWyBEi.d.ts → types-CyPUIpzf.d.ts} +19 -5
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-pt56Pcfi.esm.js → videoSelfieCameraWarmer-MXduX5t-.esm.js} +4 -4
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.esm.js +16 -16
- package/package.json +6 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-
|
|
1
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-D7fIDGRl.esm.js";
|
|
2
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
3
|
import { C as createEventBus } from "./events-CAgFE-k3.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./events-CAgFE-k3.esm.js";
|
|
3
|
-
import {
|
|
3
|
+
import { u as BrowserStorageProvider } from "./setup-C-Nol_jL.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
8
|
-
import { c as processFace } from "./FaceDetectionProvider-
|
|
6
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-Dmz6aiNH.esm.js";
|
|
7
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-B1BrC2K4.esm.js";
|
|
8
|
+
import { c as processFace } from "./FaceDetectionProvider-CjWCKcIu.esm.js";
|
|
9
9
|
import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-kdlhkmmY.esm.js";
|
|
10
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
11
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
10
|
+
import { t as selfieMachine } from "./selfieStateMachine-BiYWExHE.esm.js";
|
|
11
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-gLy-_nNC.esm.js";
|
|
12
12
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BW7V3vub.esm.js";
|
|
13
13
|
/**
|
|
14
14
|
* Selfie state machine variant for the captureOnly flow. Shares the full base
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
1
|
+
import { d as FACE_ERROR_CODES } from "./FaceDetectionProvider-CjWCKcIu.esm.js";
|
|
2
2
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
3
3
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
4
4
|
const isFaceErrorCode = (value) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./events-CAgFE-k3.esm.js";
|
|
3
|
-
import {
|
|
3
|
+
import { u as BrowserStorageProvider } from "./setup-C-Nol_jL.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-B1BrC2K4.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-BiYWExHE.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { c as processFace, d as FACE_ERROR_CODES, f as isOnDeviceMode } from "./FaceDetectionProvider-
|
|
5
|
-
import { n as validateUploadResponse } from "./selfieErrorUtils-
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-Dmz6aiNH.esm.js";
|
|
4
|
+
import { c as processFace, d as FACE_ERROR_CODES, f as isOnDeviceMode } from "./FaceDetectionProvider-CjWCKcIu.esm.js";
|
|
5
|
+
import { n as validateUploadResponse } from "./selfieErrorUtils-B3Gdyvaf.esm.js";
|
|
6
6
|
/**
|
|
7
7
|
* The selfie capture state machine.
|
|
8
8
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as noteSessionCreated, l as trueSightLog } from "./trueSightService-
|
|
1
|
+
import { b as noteSessionCreated, l as trueSightLog } from "./trueSightService-D7fIDGRl.esm.js";
|
|
2
2
|
import { n as getApi } from "./api-Bx3gKW_y.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
4
|
-
import "./sessionInitializer-
|
|
5
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
4
|
+
import "./sessionInitializer-V3iatb38.esm.js";
|
|
5
|
+
import { i as toIncodeApiError } from "./apiError-DgSftpa0.esm.js";
|
|
6
6
|
//#region src/internal/session/sessionService.ts
|
|
7
7
|
/**
|
|
8
8
|
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
package/dist/session.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as getToken } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { r as subscribeHttpErrors } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
3
|
-
import { i as initializeSession, l as whenSessionFingerprintSettled } from "./sessionInitializer-
|
|
4
|
-
import { t as IncodeApiError } from "./apiError-
|
|
5
|
-
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
6
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
3
|
+
import { i as initializeSession, l as whenSessionFingerprintSettled } from "./sessionInitializer-V3iatb38.esm.js";
|
|
4
|
+
import { t as IncodeApiError } from "./apiError-DgSftpa0.esm.js";
|
|
5
|
+
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-CtVdey6m.esm.js";
|
|
6
|
+
import { n as getFinishStatus } from "./flowCompletionService-CVBZUlWT.esm.js";
|
|
7
7
|
//#region src/internal/session/sessionExpired.ts
|
|
8
8
|
var SessionExpiredError = class extends Error {
|
|
9
9
|
constructor() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as noteTokenActivated, _ as resetFeatureConfigCache, g as isFeatureEnabled, h as fetchFeatureConfig, l as trueSightLog, s as startTrueSightCollection, y as noteEnvironment } from "./trueSightService-
|
|
1
|
+
import { S as noteTokenActivated, _ as resetFeatureConfigCache, g as isFeatureEnabled, h as fetchFeatureConfig, l as trueSightLog, s as startTrueSightCollection, y as noteEnvironment } from "./trueSightService-D7fIDGRl.esm.js";
|
|
2
2
|
import { S as subscribeEvent, v as addEvent, y as getAnalyticsBatcher } from "./events-CAgFE-k3.esm.js";
|
|
3
3
|
import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
6
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-DM8nidSt.esm.js";
|
|
6
|
+
import { E as updateFeatureManagementUser } from "./feature-management-pS1G_jQ5.esm.js";
|
|
7
7
|
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-DmG_tkGk.esm.js";
|
|
8
8
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
9
9
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { S as setWasmIntegrityObserver } from "./wasmWebClient-kbYZ2sxw.esm.js";
|
|
2
|
-
import { D as resolveWasmConfig, d as getStoredHttpConfig, f as installFreshHttpClient, l as trueSightLog, m as upgradeToWasmHttpClient$1, o as resetTrueSight, p as resetHttpClientState, t as finalizeTrueSight } from "./trueSightService-
|
|
2
|
+
import { D as resolveWasmConfig, d as getStoredHttpConfig, f as installFreshHttpClient, l as trueSightLog, m as upgradeToWasmHttpClient$1, o as resetTrueSight, p as resetHttpClientState, t as finalizeTrueSight } from "./trueSightService-D7fIDGRl.esm.js";
|
|
3
3
|
import { i as setWasmOnDeviceMode, o as warmupWasm } from "./warmup-DMtbyb2l.esm.js";
|
|
4
4
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
5
5
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
6
6
|
import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-CAgFE-k3.esm.js";
|
|
7
7
|
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
9
|
-
import { a as resetSessionInit, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp, x as fingerprintSignalsReporter } from "./sessionInitializer-
|
|
9
|
+
import { a as resetSessionInit, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp, x as fingerprintSignalsReporter } from "./sessionInitializer-V3iatb38.esm.js";
|
|
10
10
|
import { t as resolveLocalStorage } from "./safeStorage-UxDrnjwa.esm.js";
|
|
11
11
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
12
|
-
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-
|
|
12
|
+
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-pS1G_jQ5.esm.js";
|
|
13
13
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-DmG_tkGk.esm.js";
|
|
14
14
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-xzRLIIMN.esm.js";
|
|
15
|
-
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-
|
|
15
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-CCPh3tqQ.esm.js";
|
|
16
16
|
//#region src/internal/events/AnalyticsBatchingService.ts
|
|
17
17
|
const DEFAULT_MAX_BATCH_SIZE = 50;
|
|
18
18
|
const MAX_STATE_BATCH_SIZE = 50;
|
|
@@ -394,6 +394,21 @@ function stopDevtoolsDetector() {
|
|
|
394
394
|
devtoolsDetector.stop();
|
|
395
395
|
}
|
|
396
396
|
//#endregion
|
|
397
|
+
//#region src/modules/id/deviceWallet/deviceWalletSettings.ts
|
|
398
|
+
/**
|
|
399
|
+
* Client-side device-wallet settings registered by `setup()`. Kept in a
|
|
400
|
+
* dependency-free module so `setup()` doesn't pull the wallet services into
|
|
401
|
+
* the main bundle.
|
|
402
|
+
*/
|
|
403
|
+
let googleSignedRequests = true;
|
|
404
|
+
/** Whether the Google Wallet request is fetched with `signedSupported=true`. */
|
|
405
|
+
function setGoogleWalletSignedRequests(enabled) {
|
|
406
|
+
googleSignedRequests = enabled;
|
|
407
|
+
}
|
|
408
|
+
function isGoogleWalletSignedRequestsEnabled() {
|
|
409
|
+
return googleSignedRequests;
|
|
410
|
+
}
|
|
411
|
+
//#endregion
|
|
397
412
|
//#region src/internal/wasmIntegrity/wasmIntegrityTelemetry.ts
|
|
398
413
|
const TRUESIGHT_SUBSYSTEM = "wasm.integrity";
|
|
399
414
|
function describeCheck(check) {
|
|
@@ -597,6 +612,7 @@ async function setup(options) {
|
|
|
597
612
|
setStandaloneFlowPolicy(standaloneFlowPolicy);
|
|
598
613
|
registerFlowPreloader(preloadDashboardFlow);
|
|
599
614
|
if (options.ipLookup !== void 0) setClientIpLookupEnabled(options.ipLookup);
|
|
615
|
+
if (options.deviceWallet?.googleSignedRequests !== void 0) setGoogleWalletSignedRequests(options.deviceWallet.googleSignedRequests);
|
|
600
616
|
if (options.hostingApp !== void 0) setClientHostingApp(options.hostingApp);
|
|
601
617
|
if (options.fingerprint !== void 0) {
|
|
602
618
|
setClientFingerprintEnabled(options.fingerprint);
|
|
@@ -770,6 +786,7 @@ function reset() {
|
|
|
770
786
|
resetDashboardFlowCache();
|
|
771
787
|
resetStandaloneFlowPolicy();
|
|
772
788
|
setClientIpLookupEnabled(true);
|
|
789
|
+
setGoogleWalletSignedRequests(true);
|
|
773
790
|
setClientFingerprintEnabled(true);
|
|
774
791
|
setClientHostingApp(void 0);
|
|
775
792
|
setWasmOnDeviceMode(false);
|
|
@@ -789,4 +806,4 @@ function reset() {
|
|
|
789
806
|
resetTrueSight();
|
|
790
807
|
}
|
|
791
808
|
//#endregion
|
|
792
|
-
export { resolveWasmConfigForPipelines as a, upgradeToWasmHttpClient as c, reset as i,
|
|
809
|
+
export { resolveWasmConfigForPipelines as a, upgradeToWasmHttpClient as c, reset as i, isGoogleWalletSignedRequestsEnabled as l, initializeWasmUtil as n, setWasmConfig as o, isConfigured as r, setup as s, ensureWasmPipelines as t, BrowserStorageProvider as u };
|
|
@@ -227,6 +227,17 @@ type SetupOptions = {
|
|
|
227
227
|
* (off by default).
|
|
228
228
|
*/
|
|
229
229
|
devMode?: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* Device wallet (mDL) options.
|
|
232
|
+
*
|
|
233
|
+
* `googleSignedRequests` (default `true`): Google Wallet requests are fetched
|
|
234
|
+
* as signed-capable, and the backend picks signed (`openid4vp-v1-signed`) or
|
|
235
|
+
* unsigned. Pass `false` to always get unsigned (`openid4vp-v1-unsigned`)
|
|
236
|
+
* requests, e.g. for testing. Temporary — this choice moves to the backend.
|
|
237
|
+
*/
|
|
238
|
+
deviceWallet?: {
|
|
239
|
+
googleSignedRequests?: boolean;
|
|
240
|
+
};
|
|
230
241
|
/**
|
|
231
242
|
* Transactional Risk Intelligence (TRI) telemetry configuration.
|
|
232
243
|
*
|
|
@@ -3,7 +3,7 @@ import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.
|
|
|
3
3
|
import { n as eventModuleNames } from "./events-CAgFE-k3.esm.js";
|
|
4
4
|
import { i as isApiConfigured, n as getApi, o as setClient, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
6
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
6
|
+
import { t as SDK_VERSION } from "./sdkVersion-DM8nidSt.esm.js";
|
|
7
7
|
import { n as reportHttpError, t as HttpRequestError } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
8
8
|
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
9
9
|
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
@@ -16,8 +16,12 @@ import { i as Pdf417DecodeResult, n as IIdCaptureCapability, r as IdCaptureSetti
|
|
|
16
16
|
* opaque to the SDK; the wallet's response is likewise an opaque string that
|
|
17
17
|
* is forwarded to the backend for decryption.
|
|
18
18
|
*/
|
|
19
|
-
/**
|
|
20
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Wallet protocols known to the SDK. The backend decides the protocol for
|
|
21
|
+
* Google Wallet (unsigned / signed / multisigned), so any other string the
|
|
22
|
+
* backend sends is passed through untouched.
|
|
23
|
+
*/
|
|
24
|
+
type DigitalCredentialProtocol = 'org-iso-mdoc' | 'openid4vp-v1-unsigned' | 'openid4vp-v1-signed' | 'openid4vp-v1-multisigned' | (string & {});
|
|
21
25
|
/** One entry of the Digital Credentials API `digital.requests` array. */
|
|
22
26
|
type DigitalCredentialRequest = {
|
|
23
27
|
protocol: DigitalCredentialProtocol;
|
|
@@ -25,9 +29,18 @@ type DigitalCredentialRequest = {
|
|
|
25
29
|
* Opaque protocol payload, built by the backend.
|
|
26
30
|
* Apple (`org-iso-mdoc`): `{ deviceRequest, encryptionInfo }` base64 strings.
|
|
27
31
|
* Google (`openid4vp-v1-unsigned`): the whole OIDC4VP/DCQL request object.
|
|
32
|
+
* Google (`openid4vp-v1-signed`): `{ request: <JWS> }` — covered by the
|
|
33
|
+
* signature, so it must never be modified.
|
|
28
34
|
*/
|
|
29
35
|
data: unknown;
|
|
30
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* The W3C `DigitalCredentialRequestOptions` shape — the `digital` member of
|
|
39
|
+
* `navigator.credentials.get()`. Handed to the API as-is.
|
|
40
|
+
*/
|
|
41
|
+
type DigitalCredentialRequestOptions = {
|
|
42
|
+
requests: DigitalCredentialRequest[];
|
|
43
|
+
};
|
|
31
44
|
type DigitalCredentialResult = {
|
|
32
45
|
/**
|
|
33
46
|
* Opaque wallet response (Apple: encrypted deviceResponse; Google: a JWE).
|
|
@@ -44,12 +57,13 @@ interface IDigitalCredentialsCapability {
|
|
|
44
57
|
*/
|
|
45
58
|
isAvailable(): boolean;
|
|
46
59
|
/**
|
|
47
|
-
* Presents the OS wallet sheet for the given request
|
|
60
|
+
* Presents the OS wallet sheet for the given request options (passed as the
|
|
61
|
+
* `digital` member verbatim) and resolves with the
|
|
48
62
|
* wallet's opaque response. Must be reached from a user gesture — iOS
|
|
49
63
|
* Safari requires transient user activation for `navigator.credentials.get()`.
|
|
50
64
|
* Rejects when the underlying API rejects (blocked, aborted, protocol error).
|
|
51
65
|
*/
|
|
52
|
-
get(request:
|
|
66
|
+
get(request: DigitalCredentialRequestOptions, options?: {
|
|
53
67
|
signal?: AbortSignal;
|
|
54
68
|
}): Promise<DigitalCredentialResult>;
|
|
55
69
|
}
|
|
@@ -164,7 +178,7 @@ type DeviceWalletDecryptResponse = {
|
|
|
164
178
|
/** Injectable service seam (mirrors digital-id-redirect's services pattern). */
|
|
165
179
|
type DeviceWalletServices = {
|
|
166
180
|
/** Builds the wallet request payload for the platform. */
|
|
167
|
-
requestWalletData: (platform: DeviceWalletPlatform, signal?: AbortSignal) => Promise<
|
|
181
|
+
requestWalletData: (platform: DeviceWalletPlatform, signal?: AbortSignal) => Promise<DigitalCredentialRequestOptions>;
|
|
168
182
|
/** Forwards the opaque wallet response for backend decryption. */
|
|
169
183
|
decryptWalletResponse: (platform: DeviceWalletPlatform, walletResponse: string, signal?: AbortSignal) => Promise<DeviceWalletDecryptResponse>;
|
|
170
184
|
};
|
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
3
|
+
import { t as ensureWasmPipelines } from "./setup-C-Nol_jL.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
5
5
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
6
6
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
7
|
-
import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-
|
|
7
|
+
import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-CCPh3tqQ.esm.js";
|
|
8
8
|
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
9
9
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
10
10
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
11
11
|
import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-DbeQpXdU.esm.js";
|
|
12
12
|
import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-q_pfU3Cn.esm.js";
|
|
13
|
-
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-
|
|
13
|
+
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-MXduX5t-.esm.js";
|
|
14
14
|
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js";
|
|
15
15
|
//#region ../../node_modules/.pnpm/audio-recorder-polyfill@0.4.1/node_modules/audio-recorder-polyfill/wave-encoder/index.js
|
|
16
16
|
var wave_encoder_default = () => {
|
package/dist/{videoSelfieCameraWarmer-pt56Pcfi.esm.js → videoSelfieCameraWarmer-MXduX5t-.esm.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-
|
|
4
|
+
import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-CCPh3tqQ.esm.js";
|
|
5
5
|
import { a as requestCameraWithFallback, i as requestCameraAccess } from "./camera-sIa9ceW2.esm.js";
|
|
6
6
|
import { t as checkPermission } from "./permissionServices-d2UW0r_L.esm.js";
|
|
7
|
-
import { c as processFace, d as FACE_ERROR_CODES, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
7
|
+
import { c as processFace, d as FACE_ERROR_CODES, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-CjWCKcIu.esm.js";
|
|
8
8
|
import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-DbeQpXdU.esm.js";
|
|
9
9
|
import { n as getBackCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
|
|
10
10
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
11
|
-
import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-
|
|
12
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-
|
|
11
|
+
import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-B3Gdyvaf.esm.js";
|
|
12
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-DlsyJMOW.esm.js";
|
|
13
13
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
14
14
|
//#region src/modules/video-selfie/videoSelfieCompareService.ts
|
|
15
15
|
async function postVideoSelfieCompare(endpoint, base64Image) {
|
package/dist/wasm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-BUPPRAA1.js";
|
|
2
|
-
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-
|
|
2
|
+
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-lgkQ8dJW.js";
|
|
3
3
|
//#region ../infra/src/wasm/wasmDefaults.d.ts
|
|
4
4
|
/** The WASM version bundled and tested with this SDK release. */
|
|
5
5
|
declare const DEFAULT_WASM_VERSION = "v2.14.50-post1";
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as WASM_PIPELINE_MODEL_NAMES, m as WASM_PIPELINE_LAZY_MODEL_NAMES, p as WASM_MODEL_FILES } from "./wasmWebClient-kbYZ2sxw.esm.js";
|
|
2
|
-
import { C as DEFAULT_WASM_VERSION, D as resolveWasmConfig, T as buildWasmConfigFromBasePath, w as buildDefaultWasmConfig } from "./trueSightService-
|
|
2
|
+
import { C as DEFAULT_WASM_VERSION, D as resolveWasmConfig, T as buildWasmConfigFromBasePath, w as buildDefaultWasmConfig } from "./trueSightService-D7fIDGRl.esm.js";
|
|
3
3
|
import { o as warmupWasm } from "./warmup-DMtbyb2l.esm.js";
|
|
4
|
-
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-
|
|
4
|
+
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-C-Nol_jL.esm.js";
|
|
5
5
|
//#region src/defineWasm.ts
|
|
6
6
|
function requiredModels(pipelines) {
|
|
7
7
|
const models = /* @__PURE__ */ new Set();
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { l as trueSightLog } from "./trueSightService-
|
|
1
|
+
import { l as trueSightLog } from "./trueSightService-D7fIDGRl.esm.js";
|
|
2
2
|
import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-CAgFE-k3.esm.js";
|
|
3
3
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
5
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
6
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
7
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
8
|
-
import { v as toEkybConfig } from "./flowServices-
|
|
9
|
-
import { a as toEkycConfig } from "./ekycUtils-
|
|
5
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-V3iatb38.esm.js";
|
|
6
|
+
import { E as updateFeatureManagementUser } from "./feature-management-pS1G_jQ5.esm.js";
|
|
7
|
+
import { i as toIncodeApiError } from "./apiError-DgSftpa0.esm.js";
|
|
8
|
+
import { v as toEkybConfig } from "./flowServices-CCPh3tqQ.esm.js";
|
|
9
|
+
import { a as toEkycConfig } from "./ekycUtils-DrRSBMVL.esm.js";
|
|
10
10
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
11
11
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
12
|
-
import { r as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
12
|
+
import { r as electronicSignatureMachine } from "./electronicSignatureManager-BR38Ogjf.esm.js";
|
|
13
13
|
import "./ae-signature.esm.js";
|
|
14
14
|
import { t as antifraudMachine } from "./antifraudStateMachine-DoJVzblM.esm.js";
|
|
15
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
15
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-AVH_s6--.esm.js";
|
|
16
16
|
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Cs64QmYH.esm.js";
|
|
17
17
|
import { t as consentMachine } from "./consentStateMachine-BCj5Jb3g.esm.js";
|
|
18
18
|
import { t as curpValidationMachine } from "./curpValidationStateMachine-DAxImy8p.esm.js";
|
|
19
19
|
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-D9gI5uu7.esm.js";
|
|
20
20
|
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-BHDsCfhL.esm.js";
|
|
21
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
22
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
23
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
21
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-9sqWyWLc.esm.js";
|
|
22
|
+
import { t as ekybMachine } from "./ekybStateMachine-fRzoh4AI.esm.js";
|
|
23
|
+
import { t as ekycMachine } from "./ekycStateMachine-BqacNxVI.esm.js";
|
|
24
24
|
import { t as emailMachine } from "./emailStateMachine-5Neq3rE5.esm.js";
|
|
25
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
26
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
25
|
+
import { t as selfieMachine } from "./selfieStateMachine-BiYWExHE.esm.js";
|
|
26
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-MV0CtrZ9.esm.js";
|
|
27
27
|
import { t as phoneMachine } from "./phoneStateMachine-CEm2y7yG.esm.js";
|
|
28
28
|
import { t as watchlistMachine } from "./watchlistStateMachine-Dgfm42w2.esm.js";
|
|
29
29
|
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-121XK-Et.esm.js";
|
|
@@ -32,12 +32,12 @@ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-Coa
|
|
|
32
32
|
import { t as idOcrStateMachine } from "./idOcrStateMachine-kPn7DB2I.esm.js";
|
|
33
33
|
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine--Sr9NEVT.esm.js";
|
|
34
34
|
import { t as signatureMachine } from "./signatureStateMachine-BkRSrkKp.esm.js";
|
|
35
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
35
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-Z9o9iDIY.esm.js";
|
|
36
36
|
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-C3YQ8yCZ.esm.js";
|
|
37
37
|
import { t as idVerificationMachine } from "./idVerificationStateMachine-0HTVVxse.esm.js";
|
|
38
38
|
import { t as faceMatchMachine } from "./faceMatchStateMachine-B9ZUnlyU.esm.js";
|
|
39
|
-
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-
|
|
40
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
39
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-CVBZUlWT.esm.js";
|
|
40
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DXNgGwGn.esm.js";
|
|
41
41
|
import { n as isAdvanceableError } from "./advanceableErrors-q_pfU3Cn.esm.js";
|
|
42
42
|
import "./qe-signature.esm.js";
|
|
43
43
|
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-20261014-
|
|
3
|
+
"version": "0.0.0-dev-20261014-82c6fd33",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -276,8 +276,9 @@
|
|
|
276
276
|
"tsdown": "^0.22.8",
|
|
277
277
|
"typescript": "^5.9.3",
|
|
278
278
|
"vitest": "4.1.10",
|
|
279
|
-
"@incodetech/
|
|
280
|
-
"@incodetech/
|
|
279
|
+
"@incodetech/config": "1.0.2",
|
|
280
|
+
"@incodetech/form-definitions": "0.0.0",
|
|
281
|
+
"@incodetech/infra": "1.4.0"
|
|
281
282
|
},
|
|
282
283
|
"scripts": {
|
|
283
284
|
"build": "tsdown -c tsdown.config.ts && pnpm check:dist-types",
|
|
@@ -290,6 +291,7 @@
|
|
|
290
291
|
"lint:fix": "eslint . --fix",
|
|
291
292
|
"format": "prettier --write . --ignore-path ../../.prettierignore",
|
|
292
293
|
"format:check": "prettier --check . --ignore-path ../../.prettierignore",
|
|
293
|
-
"typecheck": "tsgo -p tsconfig.json --noEmit"
|
|
294
|
+
"typecheck": "tsgo -p tsconfig.json --noEmit",
|
|
295
|
+
"parity:record": "PARITY_RECORD=1 vitest run __parity__"
|
|
294
296
|
}
|
|
295
297
|
}
|