@incodetech/core 0.0.0-dev-20261201-e37652f8 → 0.0.0-dev-20261201-bcf41e7a
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-DQYbHLxC.esm.js → FaceDetectionProvider-C5dOOMt6.esm.js} +4 -4
- package/dist/{addressSearch-gginelz3.esm.js → addressSearch-Bw456gzP.esm.js} +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-BRiJu_rv.esm.js → apiError-CJO7D9eZ.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CrBlRkAd.esm.js → authenticationManager-aN4L7zuz.esm.js} +3 -3
- package/dist/{authenticationStateMachine-DLwEyCeH.esm.js → authenticationStateMachine-CrqkFPRT.esm.js} +3 -3
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-Bow34QP_.d.ts → consentManager-9ThuTAcx.d.ts} +13 -13
- package/dist/{deepsightCaptureConfig-BVJANeRn.esm.js → deepsightCaptureConfig-C66ahpbd.esm.js} +2 -2
- package/dist/{deepsightLoader-C6nKqY9Q.esm.js → deepsightLoader-C79inICH.esm.js} +4 -4
- package/dist/{desktopCameraElection-BAq-Kaiq.esm.js → desktopCameraElection-U5cGf_FU.esm.js} +4 -4
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-signature.esm.js +1 -1
- package/dist/{documentCaptureManager-DOgJTJ4F.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +4 -4
- package/dist/{documentSignatureStateMachine-Btlg3q7j.esm.js → documentSignatureStateMachine-DqqwvvDm.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-SbEUnFoF.esm.js → dynamicFormsManager-DK7vxpMH.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-Dxv36mAP.esm.js → dynamicFormsStateMachine-DLF8DYpl.esm.js} +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-xhoOX9O9.esm.js → ekybManager-DP1MEUQ_.esm.js} +1 -1
- package/dist/{ekybStateMachine-CCjUH0j3.esm.js → ekybStateMachine-DYUl09cC.esm.js} +371 -1113
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-DrGuK0kT.esm.js → ekycManager-Y9JjrHvd.esm.js} +1 -1
- package/dist/{ekycPrefillManager-C9kdwCC6.esm.js → ekycPrefillManager-CZldcVY5.esm.js} +2 -2
- package/dist/{ekycPrefillStateMachine-DiQifkkd.esm.js → ekycPrefillStateMachine-B8T-GZIi.esm.js} +122 -140
- package/dist/ekycStateMachine-3FCrYuNv.esm.js +5072 -0
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-C6liTNbu.esm.js → electronicSignatureManager-DnpxTBha.esm.js} +1 -1
- package/dist/extensibility.d.ts +5 -5
- package/dist/extensibility.esm.js +13 -13
- package/dist/{faceCaptureManagerFactory-OL8BWaIW.esm.js → faceCaptureManagerFactory-B15Ry9Bj.esm.js} +2 -2
- package/dist/{faceCaptureSetup-DQVtmb1q.esm.js → faceCaptureSetup-B944AKd-.esm.js} +7 -7
- package/dist/{feature-management-D_T-MG_i.esm.js → feature-management-BQSa2eVc.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-L0J63ui-.esm.js → flowCompletionService-D2aikrG9.esm.js} +1 -1
- package/dist/{flowServices-3OXrEqDE.esm.js → flowServices-E3lKW8An.esm.js} +4 -4
- package/dist/{formErrors-kpskZLNT.esm.js → formErrors-BVC6OSFV.esm.js} +1 -1
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CREfQNgO.esm.js → geolocationManager-AasT8XSO.esm.js} +1 -1
- package/dist/{geolocationManager-Del2ddmt.d.ts → geolocationManager-CENrvxpK.d.ts} +1 -1
- package/dist/{geolocationStateMachine-D9_bBr19.esm.js → geolocationStateMachine-BhtSd3lc.esm.js} +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-B5ZN7scK.esm.js → idCaptureManager-DHmvbvgU.esm.js} +4 -4
- package/dist/{idCaptureServices-7zZ457LW.esm.js → idCaptureServices-DBtFQvpt.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-FP4j-qeT.esm.js → idCaptureStateMachine-BoTNUq6T.esm.js} +11 -11
- package/dist/{idOcrManager-C0C7lFGd.d.ts → idOcrManager-DflRx-_u.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-tUsFKBCN.esm.js → kybChecksManager-BN5CnCkm.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-D1q4K7Xr.esm.js → kybChecksStateMachine-CMVaVAsg.esm.js} +3 -3
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-De9ZX6o4.d.ts → mandatoryConsentManager-C5o1gUTc.d.ts} +7 -7
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-OcyZO_w6.esm.js → recordingService-Dy27FR2M.esm.js} +1 -1
- package/dist/{runChildModule-BuZFd3Df.esm.js → runChildModule-DSSE84df.esm.js} +1 -1
- package/dist/{sdkVersion-BY8g-EEL.esm.js → sdkVersion-BSGdHq76.esm.js} +1 -1
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-DIVWh0ih.esm.js → selfieErrorUtils-Bh1ocgV4.esm.js} +1 -1
- package/dist/{selfieManager-DQ5xB8y6.esm.js → selfieManager-C9ZJq0Z3.esm.js} +3 -3
- package/dist/{selfieStateMachine-fyNh2r31.esm.js → selfieStateMachine-xLHsQPLy.esm.js} +3 -3
- package/dist/{session-DKnCv6zu.esm.js → session-Bty0Uulw.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-q5b8Qwr3.esm.js → sessionInitializer-CvOQVUFs.esm.js} +4 -4
- package/dist/{setup-JGwc0kgu.esm.js → setup-BIu7oJOZ.esm.js} +5 -5
- package/dist/{trim-OmrUb6mG.esm.js → trim-JimszAvC.esm.js} +7 -1
- package/dist/trueSight-BOq-NOAC.esm.js +1 -0
- package/dist/{trueSightService-Dx8AqgKD.esm.js → trueSightService-B9lkK1VF.esm.js} +1 -1
- package/dist/{uppercase-CwlIuiwR.esm.js → uppercase-BShuo-xK.esm.js} +24 -2
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-AoMytGBD.esm.js → videoSelfieCameraWarmer-Dg-NDqO8.esm.js} +23 -8
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +18 -18
- package/package.json +2 -2
- package/dist/ekycStateMachine-BmMdLe2G.esm.js +0 -9328
- package/dist/trueSight-9VsfHXFt.esm.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
1
|
+
import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-C5dOOMt6.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,10 +1,10 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-BIu7oJOZ.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
4
4
|
import "./events-Dlkhhx5O.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
7
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
6
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-B15Ry9Bj.esm.js";
|
|
7
|
+
import { t as selfieMachine } from "./selfieStateMachine-xLHsQPLy.esm.js";
|
|
8
8
|
//#region src/modules/selfie/selfieActor.ts
|
|
9
9
|
function createSelfieActor(options) {
|
|
10
10
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
5
|
-
import { n as validateUploadResponse } from "./selfieErrorUtils-
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-B944AKd-.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-C5dOOMt6.esm.js";
|
|
5
|
+
import { n as validateUploadResponse } from "./selfieErrorUtils-Bh1ocgV4.esm.js";
|
|
6
6
|
/**
|
|
7
7
|
* The selfie capture state machine.
|
|
8
8
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as getApi, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
2
|
-
import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-
|
|
3
|
-
import "./trueSight-
|
|
4
|
-
import "./sessionInitializer-
|
|
5
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
2
|
+
import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-B9lkK1VF.esm.js";
|
|
3
|
+
import "./trueSight-BOq-NOAC.esm.js";
|
|
4
|
+
import "./sessionInitializer-CvOQVUFs.esm.js";
|
|
5
|
+
import { i as toIncodeApiError } from "./apiError-CJO7D9eZ.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,10 +1,10 @@
|
|
|
1
1
|
import { r as getToken } from "./api-CsXnB7m6.esm.js";
|
|
2
2
|
import { r as subscribeHttpErrors } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
3
|
-
import { d as whenSessionFingerprintSettled, i as initializeSession } from "./sessionInitializer-
|
|
3
|
+
import { d as whenSessionFingerprintSettled, i as initializeSession } from "./sessionInitializer-CvOQVUFs.esm.js";
|
|
4
4
|
import { n as onConnectivityChange, r as resumeConnectivity, t as isConnectivityLost } from "./connectivity-BCuEoQ-n.esm.js";
|
|
5
|
-
import { t as IncodeApiError } from "./apiError-
|
|
6
|
-
import { a as continueSession, c as validateQrUuid, i as bootstrapSession, n as QrValidationError, o as createSession, r as SESSION_CONTINUE_ERROR_CODES, s as refreshQrUrlUuid, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
7
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
5
|
+
import { t as IncodeApiError } from "./apiError-CJO7D9eZ.esm.js";
|
|
6
|
+
import { a as continueSession, c as validateQrUuid, i as bootstrapSession, n as QrValidationError, o as createSession, r as SESSION_CONTINUE_ERROR_CODES, s as refreshQrUrlUuid, t as QR_VALIDATION_ERROR_CODES } from "./session-Bty0Uulw.esm.js";
|
|
7
|
+
import { n as getFinishStatus } from "./flowCompletionService-D2aikrG9.esm.js";
|
|
8
8
|
//#region src/internal/session/sessionExpired.ts
|
|
9
9
|
var SessionExpiredError = class extends Error {
|
|
10
10
|
constructor() {
|
|
@@ -3,10 +3,10 @@ import { n as resetWasmDeepsightConfigSync } from "./wasmDeepsightConfigSync-Duk
|
|
|
3
3
|
import { S as subscribeEvent, v as addEvent, y as getAnalyticsBatcher } from "./types-DLsivQsu.esm.js";
|
|
4
4
|
import { c as setToken, r as getToken, t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
5
5
|
import "./events-Dlkhhx5O.esm.js";
|
|
6
|
-
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-
|
|
7
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
8
|
-
import "./trueSight-
|
|
9
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
6
|
+
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-B9lkK1VF.esm.js";
|
|
7
|
+
import { t as SDK_VERSION } from "./sdkVersion-BSGdHq76.esm.js";
|
|
8
|
+
import "./trueSight-BOq-NOAC.esm.js";
|
|
9
|
+
import { E as updateFeatureManagementUser } from "./feature-management-BQSa2eVc.esm.js";
|
|
10
10
|
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-D_gJvsTS.esm.js";
|
|
11
11
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
12
12
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
@@ -4,15 +4,15 @@ import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
|
4
4
|
import { b as resetAnalyticsBatcher, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./types-DLsivQsu.esm.js";
|
|
5
5
|
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
6
6
|
import { i as createAnalyticsBatchingService, r as resetExperimentAssignments } from "./events-Dlkhhx5O.esm.js";
|
|
7
|
-
import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-
|
|
8
|
-
import "./trueSight-
|
|
9
|
-
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, a as resetSessionInit, c as setClientIpLookupEnabled, g as setStandaloneFlowPolicy, h as resolveStandaloneFlowPolicy, i as initializeSession, l as setClientWasmConfig, m as resetStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as registerFlowPreloader, s as setClientHostingApp, u as setClientWasmDisabled } from "./sessionInitializer-
|
|
7
|
+
import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-B9lkK1VF.esm.js";
|
|
8
|
+
import "./trueSight-BOq-NOAC.esm.js";
|
|
9
|
+
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, a as resetSessionInit, c as setClientIpLookupEnabled, g as setStandaloneFlowPolicy, h as resolveStandaloneFlowPolicy, i as initializeSession, l as setClientWasmConfig, m as resetStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as registerFlowPreloader, s as setClientHostingApp, u as setClientWasmDisabled } from "./sessionInitializer-CvOQVUFs.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-BQSa2eVc.esm.js";
|
|
13
13
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-D_gJvsTS.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-E3lKW8An.esm.js";
|
|
16
16
|
//#region ../infra/src/wasm/wasmRuntimeProfile.ts
|
|
17
17
|
/**
|
|
18
18
|
* The WASM facts TrueSight reports as `session.webProfile.wasm`
|
|
@@ -35,6 +35,12 @@ function isEmptyValue(_field, value) {
|
|
|
35
35
|
/** The request key a field writes, or nothing when it's never sent. */
|
|
36
36
|
const keyOf = (field) => field.payload?.omit ? void 0 : field.payload?.key ?? field.name;
|
|
37
37
|
const isBlank = (value) => (value ?? "").trim() === "";
|
|
38
|
+
/** A deep copy of a JSON value: new arrays and objects, the same primitives. */
|
|
39
|
+
function copyJson(value) {
|
|
40
|
+
if (Array.isArray(value)) return value.map(copyJson);
|
|
41
|
+
if (typeof value === "object" && value !== null) return Object.fromEntries(Object.entries(value).map(([key, child]) => [key, copyJson(child)]));
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
38
44
|
/** The ids of a field's request transforms the registry doesn't implement. */
|
|
39
45
|
const unknownTransforms = (field, registry) => (field.payload?.transforms ?? []).map((ref) => ref.id).filter((id) => !registry.transforms.has(id));
|
|
40
46
|
function transform(field, value, registry, env) {
|
|
@@ -117,7 +123,7 @@ function buildPayload(form, values, registry, env, entries = {}) {
|
|
|
117
123
|
const joined = shown.has(collection.id) ? (entries[collection.id] ?? []).map((entry) => collection.payload.join.map((name) => (entry[name] ?? "").trim()).filter((part) => part !== "").join(" ")).filter((value) => value !== "") : [];
|
|
118
124
|
if (joined.length > 0 || collection.payload.always === true) write(collection.payload.key, joined, collection.id);
|
|
119
125
|
}
|
|
120
|
-
for (const [key, value] of Object.entries(definition.submit.static ?? {})) write(key, value, "static");
|
|
126
|
+
for (const [key, value] of Object.entries(definition.submit.static ?? {})) write(key, copyJson(value), "static");
|
|
121
127
|
for (const [key, name] of Object.entries(definition.submit.context ?? {})) {
|
|
122
128
|
const value = contextValue(name, definition, env);
|
|
123
129
|
if (value !== void 0) write(key, value, "context");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./trueSightService-B9lkK1VF.esm.js";
|
|
@@ -3,7 +3,7 @@ import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.
|
|
|
3
3
|
import { S as subscribeEvent, n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
4
4
|
import { i as isApiConfigured, l as withTiming, n as getApi, o as setClient, r as getToken, t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
5
5
|
import "./events-Dlkhhx5O.esm.js";
|
|
6
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
6
|
+
import { t as SDK_VERSION } from "./sdkVersion-BSGdHq76.esm.js";
|
|
7
7
|
import { n as reportHttpError, t as HttpRequestError } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
8
8
|
/** Dirty-timer half of the interrupted-snapshot rebuild debounce (module boundaries + timer). */
|
|
9
9
|
const SNAPSHOT_DIRTY_INTERVAL_MS = 15e3;
|
|
@@ -1,4 +1,26 @@
|
|
|
1
|
-
import { n as e164 } from "./trim-
|
|
1
|
+
import { n as e164 } from "./trim-JimszAvC.esm.js";
|
|
2
|
+
//#region ../form-definitions/src/expand.ts
|
|
3
|
+
/** Freezes a value and everything inside it. */
|
|
4
|
+
function deepFreeze(value) {
|
|
5
|
+
if (typeof value !== "object" || value === null) return;
|
|
6
|
+
Object.freeze(value);
|
|
7
|
+
for (const child of Object.values(value)) deepFreeze(child);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Rebuilds the plain definitions from a generated module's tables, once, on
|
|
11
|
+
* import. Forms share the field and submit objects, so those are deep-frozen:
|
|
12
|
+
* no caller can change one form through another.
|
|
13
|
+
*/
|
|
14
|
+
function expandDefinitions(fields, submits, forms) {
|
|
15
|
+
deepFreeze(fields);
|
|
16
|
+
deepFreeze(submits);
|
|
17
|
+
return Object.fromEntries(Object.entries(forms).map(([id, form]) => [id, {
|
|
18
|
+
...form,
|
|
19
|
+
fields: form.fields.map((index) => fields[index]),
|
|
20
|
+
submit: submits[form.submit]
|
|
21
|
+
}]));
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
2
24
|
//#region src/internal/forms/checks/charTemplate.ts
|
|
3
25
|
const escapeForPattern = (chars) => chars.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4
26
|
/**
|
|
@@ -112,4 +134,4 @@ const uppercase = {
|
|
|
112
134
|
apply: (value) => value.toUpperCase()
|
|
113
135
|
};
|
|
114
136
|
//#endregion
|
|
115
|
-
export { digitGroups as a, e164NoPlus as i, stripSeparators as n, createBundledDefinitionSource as o, nationalNumber as r, matchesCharTemplate as s, uppercase as t };
|
|
137
|
+
export { digitGroups as a, expandDefinitions as c, e164NoPlus as i, stripSeparators as n, createBundledDefinitionSource as o, nationalNumber as r, matchesCharTemplate as s, uppercase as t };
|
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-BIu7oJOZ.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
3
3
|
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
5
5
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
6
|
-
import { b as videoSelfieWasmPipelines, v as facingModeForStep, y as resolveVideoSelfieSteps } from "./flowServices-
|
|
6
|
+
import { b as videoSelfieWasmPipelines, v as facingModeForStep, y as resolveVideoSelfieSteps } from "./flowServices-E3lKW8An.esm.js";
|
|
7
7
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
8
8
|
import { i as assign, l as raise, r as sendTo, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
9
9
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
10
10
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
11
11
|
import { t as carryAttempts } from "./attemptCarry-8gUYc3pL.esm.js";
|
|
12
12
|
import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-CxZyPRyh.esm.js";
|
|
13
|
-
import { c as VIDEO_SELFIE_MICROPHONE_UNAVAILABLE_CODE, l as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, s as MicrophoneUnavailableError, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-
|
|
13
|
+
import { c as VIDEO_SELFIE_MICROPHONE_UNAVAILABLE_CODE, l as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, s as MicrophoneUnavailableError, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-Dg-NDqO8.esm.js";
|
|
14
14
|
import { r as createRecordingCompositor } from "./CameraCompositor-C7N1N61V.esm.js";
|
|
15
15
|
import { t as WorkerEncoderRecordingProvider } from "./WorkerEncoderRecordingProvider-BO7urYwT.esm.js";
|
|
16
16
|
import { t as MultipartRecordingService } from "./multipartRecordingService-C8v02l56.esm.js";
|
package/dist/{videoSelfieCameraWarmer-AoMytGBD.esm.js → videoSelfieCameraWarmer-Dg-NDqO8.esm.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
|
-
import { v as facingModeForStep, y as resolveVideoSelfieSteps } from "./flowServices-
|
|
3
|
+
import { v as facingModeForStep, y as resolveVideoSelfieSteps } from "./flowServices-E3lKW8An.esm.js";
|
|
4
4
|
import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-CJKApt0x.esm.js";
|
|
5
5
|
import { n as checkPermission } from "./permissionServices-GQyOY1tb.esm.js";
|
|
6
6
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
7
|
-
import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
7
|
+
import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-C5dOOMt6.esm.js";
|
|
8
8
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
9
9
|
import { n as getBackCameraStream } from "./backCameraStream-6qVHvj76.esm.js";
|
|
10
|
-
import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-
|
|
10
|
+
import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-Bh1ocgV4.esm.js";
|
|
11
11
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CFyXIRuM.esm.js";
|
|
12
12
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
|
|
13
13
|
//#region src/modules/video-selfie/videoSelfieCompareService.ts
|
|
@@ -459,14 +459,20 @@ async function validateIdFrame(step, config, base64Image) {
|
|
|
459
459
|
* stalls capture (client-side blur check is on). This mirrors the ID Capture
|
|
460
460
|
* module. `getBackCameraStream` returns video only, so audio is acquired and
|
|
461
461
|
* merged separately when the step needs it. Front (`user`) steps keep the
|
|
462
|
-
* plain fallback path
|
|
462
|
+
* plain fallback path; when that fails only because of the microphone, the
|
|
463
|
+
* acquire fails with {@link MicrophoneUnavailableError} too. Used both as the recording machine's default
|
|
463
464
|
* `acquireCamera` dependency and as this warmer's own acquire/fallback.
|
|
464
465
|
*/
|
|
465
466
|
async function defaultAcquireCamera(facingMode, withAudio) {
|
|
466
|
-
if (facingMode !== "environment")
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
467
|
+
if (facingMode !== "environment") try {
|
|
468
|
+
return await requestCameraWithFallback({
|
|
469
|
+
video: { facingMode },
|
|
470
|
+
audio: withAudio
|
|
471
|
+
});
|
|
472
|
+
} catch (error) {
|
|
473
|
+
if (withAudio && await cameraOpensWithoutAudio(facingMode)) throw new MicrophoneUnavailableError(error);
|
|
474
|
+
throw error;
|
|
475
|
+
}
|
|
470
476
|
const { stream } = await getBackCameraStream();
|
|
471
477
|
if (withAudio) try {
|
|
472
478
|
const audioStream = await requestCameraAccess({ audio: true });
|
|
@@ -477,6 +483,15 @@ async function defaultAcquireCamera(facingMode, withAudio) {
|
|
|
477
483
|
}
|
|
478
484
|
return stream;
|
|
479
485
|
}
|
|
486
|
+
/** Opens the camera alone and releases it at once: tells whether it is usable. */
|
|
487
|
+
async function cameraOpensWithoutAudio(facingMode) {
|
|
488
|
+
try {
|
|
489
|
+
(await requestCameraAccess({ video: { facingMode } })).getTracks().forEach((track) => track.stop());
|
|
490
|
+
return true;
|
|
491
|
+
} catch {
|
|
492
|
+
return false;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
480
495
|
function stopStream(stream) {
|
|
481
496
|
stream?.getTracks().forEach((track) => track.stop());
|
|
482
497
|
}
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as WASM_PIPELINE_LAZY_MODEL_NAMES, E as WASM_MODEL_FILES, S as buildWasmConfigFromBasePath, T as resolveWasmConfig, b as DEFAULT_WASM_VERSION, k as WASM_PIPELINE_MODEL_NAMES, x as buildDefaultWasmConfig } from "./wasmWebClient-BIML49JC.esm.js";
|
|
2
2
|
import { s as warmupWasm } from "./warmup-O3rAoe1-.esm.js";
|
|
3
|
-
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-
|
|
3
|
+
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-BIu7oJOZ.esm.js";
|
|
4
4
|
//#region src/defineWasm.ts
|
|
5
5
|
function requiredModels(pipelines) {
|
|
6
6
|
const models = /* @__PURE__ */ new Set();
|
package/dist/workflow.d.ts
CHANGED
|
@@ -365,10 +365,6 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
365
365
|
id: string | undefined;
|
|
366
366
|
};
|
|
367
367
|
}>, Values<{
|
|
368
|
-
setError: {
|
|
369
|
-
type: "setError";
|
|
370
|
-
params: NonReducibleUnknown;
|
|
371
|
-
};
|
|
372
368
|
setLoadingResult: {
|
|
373
369
|
type: "setLoadingResult";
|
|
374
370
|
params: NonReducibleUnknown;
|
|
@@ -401,6 +397,10 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
401
397
|
type: "setFinishStatusFailed";
|
|
402
398
|
params: NonReducibleUnknown;
|
|
403
399
|
};
|
|
400
|
+
setError: {
|
|
401
|
+
type: "setError";
|
|
402
|
+
params: NonReducibleUnknown;
|
|
403
|
+
};
|
|
404
404
|
setModuleError: {
|
|
405
405
|
type: "setModuleError";
|
|
406
406
|
params: NonReducibleUnknown;
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { n as eventModuleNames, v as addEvent } from "./types-DLsivQsu.esm.js";
|
|
2
2
|
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
3
3
|
import { t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
4
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
5
|
-
import "./trueSight-
|
|
6
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
7
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
4
|
+
import { u as trueSightLog } from "./trueSightService-B9lkK1VF.esm.js";
|
|
5
|
+
import "./trueSight-BOq-NOAC.esm.js";
|
|
6
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CvOQVUFs.esm.js";
|
|
7
|
+
import { E as updateFeatureManagementUser } from "./feature-management-BQSa2eVc.esm.js";
|
|
8
8
|
import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
|
|
9
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
9
|
+
import { i as toIncodeApiError } from "./apiError-CJO7D9eZ.esm.js";
|
|
10
10
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
11
11
|
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
12
12
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
13
|
-
import { r as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
13
|
+
import { r as electronicSignatureMachine } from "./electronicSignatureManager-DnpxTBha.esm.js";
|
|
14
14
|
import "./ae-signature.esm.js";
|
|
15
15
|
import { t as antifraudMachine } from "./antifraudStateMachine-C_d7-TUA.esm.js";
|
|
16
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
16
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CrqkFPRT.esm.js";
|
|
17
17
|
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-CBNw9Niu.esm.js";
|
|
18
18
|
import { t as consentMachine } from "./consentStateMachine-Cb7dKk_1.esm.js";
|
|
19
19
|
import { t as curpValidationMachine } from "./curpValidationStateMachine-DaSzh9OA.esm.js";
|
|
20
20
|
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-DvwFHjkC.esm.js";
|
|
21
21
|
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-C_HQH7vA.esm.js";
|
|
22
|
-
import { r as documentSignatureMachine } from "./documentSignatureStateMachine-
|
|
23
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
22
|
+
import { r as documentSignatureMachine } from "./documentSignatureStateMachine-DqqwvvDm.esm.js";
|
|
23
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DLF8DYpl.esm.js";
|
|
24
24
|
import { s as toEkybConfig } from "./ekybUtils-CX-dR5p9.esm.js";
|
|
25
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
26
|
-
import { t as ekycPrefillMachine } from "./ekycPrefillStateMachine-
|
|
25
|
+
import { t as ekybMachine } from "./ekybStateMachine-DYUl09cC.esm.js";
|
|
26
|
+
import { t as ekycPrefillMachine } from "./ekycPrefillStateMachine-B8T-GZIi.esm.js";
|
|
27
27
|
import { d as toEkycConfig } from "./ekycUtils-DfBNTcvX.esm.js";
|
|
28
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
28
|
+
import { t as ekycMachine } from "./ekycStateMachine-3FCrYuNv.esm.js";
|
|
29
29
|
import { t as emailMachine } from "./emailStateMachine-BzWHKLtW.esm.js";
|
|
30
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
31
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
30
|
+
import { t as selfieMachine } from "./selfieStateMachine-xLHsQPLy.esm.js";
|
|
31
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-BoTNUq6T.esm.js";
|
|
32
32
|
import { t as phoneMachine } from "./phoneStateMachine-B4W4CSqf.esm.js";
|
|
33
33
|
import { t as watchlistMachine } from "./watchlistStateMachine-BnKGh6Kk.esm.js";
|
|
34
34
|
import { n as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-Dr85bA22.esm.js";
|
|
@@ -37,13 +37,13 @@ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BtE
|
|
|
37
37
|
import { t as idOcrStateMachine } from "./idOcrStateMachine-DANDVn-6.esm.js";
|
|
38
38
|
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-D1wp--wG.esm.js";
|
|
39
39
|
import { t as signatureMachine } from "./signatureStateMachine-CkES2vVv.esm.js";
|
|
40
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
40
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-BhtSd3lc.esm.js";
|
|
41
41
|
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BuW6l3ah.esm.js";
|
|
42
42
|
import { t as idVerificationMachine } from "./idVerificationStateMachine-MjQmD3yQ.esm.js";
|
|
43
43
|
import { t as faceMatchMachine } from "./faceMatchStateMachine-BItwQ_yA.esm.js";
|
|
44
|
-
import { t as kybChecksMachine } from "./kybChecksStateMachine-
|
|
45
|
-
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-
|
|
46
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
44
|
+
import { t as kybChecksMachine } from "./kybChecksStateMachine-CMVaVAsg.esm.js";
|
|
45
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-D2aikrG9.esm.js";
|
|
46
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DSSE84df.esm.js";
|
|
47
47
|
import { n as isAdvanceableError } from "./advanceableErrors-CxZyPRyh.esm.js";
|
|
48
48
|
import "./qe-signature.esm.js";
|
|
49
49
|
import { t as trustGraphMachine } from "./trustGraphStateMachine-fuYq0Cxf.esm.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-20261201-
|
|
3
|
+
"version": "0.0.0-dev-20261201-bcf41e7a",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -296,8 +296,8 @@
|
|
|
296
296
|
"tsdown": "^0.22.8",
|
|
297
297
|
"typescript": "^5.9.3",
|
|
298
298
|
"vitest": "4.1.10",
|
|
299
|
-
"@incodetech/config": "1.0.2",
|
|
300
299
|
"@incodetech/form-definitions": "0.1.0",
|
|
300
|
+
"@incodetech/config": "1.0.2",
|
|
301
301
|
"@incodetech/infra": "1.6.0"
|
|
302
302
|
},
|
|
303
303
|
"scripts": {
|