@incodetech/core 0.0.0-dev-20260909-14ef44cf → 0.0.0-dev-20260911-3c28f170
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/{BrowserDiagnosticsCryptoProvider-BqvOagjI.esm.js → BrowserDiagnosticsCryptoProvider-D8H3nWpr.esm.js} +1 -1
- package/dist/{MotionSensorProvider-nnSH-kVd.esm.js → MotionSensorProvider-Vlyhbcty.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-CE5YD5T0.esm.js → apiError-CY6lWIaQ.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BMqAIjH1.esm.js → authenticationManager-BxkiSz79.esm.js} +4 -4
- package/dist/{authenticationStateMachine-BKMxS3yH.esm.js → authenticationStateMachine-DAQ4dBAD.esm.js} +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/{deepsightLoader-nTArZgT2.esm.js → deepsightLoader-Cpjfw3EQ.esm.js} +5 -5
- package/dist/device.esm.js +5 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-BqY_B0Ii.esm.js → documentCaptureManager-BTpHZMgW.esm.js} +1 -1
- package/dist/{documentCaptureStateMachine-D_9dw5b1.esm.js → documentCaptureStateMachine-CPizkpcg.esm.js} +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-HVbJKaF8.esm.js → dynamicFormsManager-CKkEm4x5.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-BGYqEGcO.esm.js → dynamicFormsStateMachine-CoBVJjYk.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-D080qI3d.esm.js → ekybManager-hFZnmQzb.esm.js} +1 -1
- package/dist/{ekybStateMachine-4Ac_gP-0.esm.js → ekybStateMachine-CHzi9XHk.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-CuZp9R8p.esm.js → electronicSignatureManager-vLj_aBwI.esm.js} +1 -1
- package/dist/extensibility.esm.js +12 -12
- package/dist/{faceCaptureManagerFactory-waLeHRj_.esm.js → faceCaptureManagerFactory-BRuA7cbI.esm.js} +3 -3
- package/dist/{faceCaptureSetup-JxQbmDt_.esm.js → faceCaptureSetup-Bhpk__dy.esm.js} +3 -3
- package/dist/{feature-management-DkbzJPHi.esm.js → feature-management-Dd_npJ0p.esm.js} +30 -5
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.d.ts +202 -177
- package/dist/flow.esm.js +107 -24
- package/dist/{flowCompletionService-1HFgv9BU.esm.js → flowCompletionService-cuWgokHI.esm.js} +1 -1
- package/dist/{flowServices-C2pUbFWe.esm.js → flowServices-CzgZ-VRv.esm.js} +83 -14
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CeDChUNS.esm.js → geolocationManager-Vh9KYMeo.esm.js} +1 -1
- package/dist/{geolocationStateMachine-C1fxKLJP.esm.js → geolocationStateMachine-BPzG-LrP.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +8 -8
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-CbCpNaoY.esm.js → idCaptureDefaults-Dic5mQfO.esm.js} +3 -2
- package/dist/{idCaptureManager-Cpd9uT8z.esm.js → idCaptureManager-De-5JavX.esm.js} +5 -5
- package/dist/{idCaptureServices-X5poMwbu.esm.js → idCaptureServices-BZvFZyyy.esm.js} +4 -4
- package/dist/{idCaptureStateMachine-BZPAUJzI.esm.js → idCaptureStateMachine-UTll8mMx.esm.js} +9 -9
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{onDeviceFaceResults-BgIPrRr2.esm.js → onDeviceFaceResults-CU5XlhqG.esm.js} +6 -5
- package/dist/{permissionGuards-BHw_SD3h.esm.js → permissionGuards-DxbvOoZJ.esm.js} +1 -1
- package/dist/{permissionServices-J5S1dEIf.esm.js → permissionServices-f7nBnW5P.esm.js} +2 -2
- package/dist/personhood.esm.js +6 -6
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-Bq791c2t.esm.js → runChildModule-6P8ofHxL.esm.js} +1 -1
- package/dist/safeStorage-Dp9m6aOh.esm.js +422 -0
- package/dist/{sdkVersion-Bc55H50S.esm.js → sdkVersion-DlL6SxXs.esm.js} +1 -1
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieManager-I_h3YE2X.esm.js → selfieManager-C4esDm_H.esm.js} +4 -4
- package/dist/{selfieStateMachine-DJwDxPAT.esm.js → selfieStateMachine-B7vhKLV7.esm.js} +2 -2
- package/dist/{session-CoY3St8F.esm.js → session-DWnBmR2a.esm.js} +3 -3
- package/dist/session.d.ts +16 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-BEjB0UVH.esm.js → sessionInitializer-DUpE6yBR.esm.js} +92 -33
- package/dist/{setup-DLn1eHU9.esm.js → setup-CQNSur1c.esm.js} +8 -6
- package/dist/{setup-B9s2jaZK.d.ts → setup-D6yz9se2.d.ts} +14 -0
- package/dist/{trueSightService-VUN8WK4N.esm.js → trueSightService-CvdDnFul.esm.js} +2 -2
- package/dist/video-selfie.esm.js +5 -5
- package/dist/{videoSelfieCameraWarmer-Dkey7P7h.esm.js → videoSelfieCameraWarmer-Gcgw9ze7.esm.js} +4 -4
- package/dist/{safeStorage-0bZuUtSP.esm.js → warmup-BOM-sD-6.esm.js} +14 -434
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +2 -2
- package/dist/{wasmDsFlagSync-CyCdsfox.esm.js → wasmDsFlagSync-C3k_VK9o.esm.js} +1 -1
- package/dist/workflow.esm.js +15 -15
- package/package.json +3 -3
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as getWasmStatus } from "./warmup-BOM-sD-6.esm.js";
|
|
2
|
+
import { E as updateFeatureManagementUser } from "./feature-management-Dd_npJ0p.esm.js";
|
|
2
3
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { c as
|
|
4
|
+
import { c as whenSessionFingerprintSettled, i as initializeSession, l as getStandaloneFlowPolicy, r as getSessionFingerprintResult } from "./sessionInitializer-DUpE6yBR.esm.js";
|
|
4
5
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
5
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
6
|
-
import "./session-
|
|
6
|
+
import { i as toIncodeApiError } from "./apiError-CY6lWIaQ.esm.js";
|
|
7
|
+
import "./session-DWnBmR2a.esm.js";
|
|
7
8
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
8
9
|
//#region src/modules/flow/dashboardConfig.ts
|
|
9
10
|
function isPlainObject(value) {
|
|
@@ -348,6 +349,30 @@ function getRequiredWasmPipelines(flow) {
|
|
|
348
349
|
return [...pipelines];
|
|
349
350
|
}
|
|
350
351
|
/**
|
|
352
|
+
* The current capture requirement, then one capture ahead once it is ready.
|
|
353
|
+
* Home never looks past its first capture, and redirects stop lookahead.
|
|
354
|
+
* @internal Used by the shared flow shell after rendering.
|
|
355
|
+
*/
|
|
356
|
+
function getNextRequiredWasmPipelines(state, loadedPipelines = getWasmStatus().loadedPipelines) {
|
|
357
|
+
const { flow, currentStepIndex, homeScreen } = state;
|
|
358
|
+
if (currentStepIndex < 0) return [];
|
|
359
|
+
let currentPipelines = [];
|
|
360
|
+
for (let index = currentStepIndex; index < flow.flowModules.length; index++) {
|
|
361
|
+
const module = flow.flowModules[index];
|
|
362
|
+
if (module.key === "REDIRECT_TO_MOBILE") return [];
|
|
363
|
+
const required = getRequiredWasmPipelines({
|
|
364
|
+
...flow,
|
|
365
|
+
flowModules: [module]
|
|
366
|
+
});
|
|
367
|
+
if (index === currentStepIndex && !homeScreen.visible) currentPipelines = required;
|
|
368
|
+
if (required.length === 0) continue;
|
|
369
|
+
const missing = required.filter((pipeline) => !loadedPipelines.includes(pipeline));
|
|
370
|
+
if (missing.length > 0) return missing;
|
|
371
|
+
if (homeScreen.visible || required.some((pipeline) => !currentPipelines.includes(pipeline))) return [];
|
|
372
|
+
}
|
|
373
|
+
return [];
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
351
376
|
* Normalizes flow modules by expanding TUTORIAL_ID into ID + SECOND_ID
|
|
352
377
|
* based on configuration flags. Matches legacy flowService behavior.
|
|
353
378
|
*
|
|
@@ -491,16 +516,52 @@ function prependMandatoryConsent(flow) {
|
|
|
491
516
|
flowModules: [mandatoryConsentModule, ...flow.flowModules]
|
|
492
517
|
};
|
|
493
518
|
}
|
|
519
|
+
/**
|
|
520
|
+
* Deferred counterpart of the activation steps `getFlow` performs when
|
|
521
|
+
* `deferActivation` is off: waits for session activation, sends the flow id to
|
|
522
|
+
* feature management, waits for the device fingerprint, then inserts
|
|
523
|
+
* MANDATORY_CONSENT where `getFlow` would have put it — first, or right after an
|
|
524
|
+
* injected REDIRECT_TO_MOBILE (normalization adds that one in front of
|
|
525
|
+
* everything). Returns the same object when nothing is injected.
|
|
526
|
+
*/
|
|
527
|
+
async function completeDeferredActivation(flow, signal) {
|
|
528
|
+
await initializeSession({ signal }).catch(() => void 0);
|
|
529
|
+
throwIfAborted(signal);
|
|
530
|
+
await updateFeatureManagementUser({ customIDs: { flow_id: flow.flowId } });
|
|
531
|
+
throwIfAborted(signal);
|
|
532
|
+
await whenSessionFingerprintSettled();
|
|
533
|
+
throwIfAborted(signal);
|
|
534
|
+
const withConsent = prependMandatoryConsent(flow);
|
|
535
|
+
if (withConsent === flow) return flow;
|
|
536
|
+
const [consent, ...rest] = withConsent.flowModules;
|
|
537
|
+
if (rest[0]?.key !== "REDIRECT_TO_MOBILE") return withConsent;
|
|
538
|
+
return {
|
|
539
|
+
...flow,
|
|
540
|
+
flowModules: [
|
|
541
|
+
rest[0],
|
|
542
|
+
consent,
|
|
543
|
+
...rest.slice(1)
|
|
544
|
+
]
|
|
545
|
+
};
|
|
546
|
+
}
|
|
494
547
|
function requireActiveToken() {
|
|
495
548
|
const token = getToken();
|
|
496
549
|
if (!token) throw new Error("Standalone module configuration requires an active Flow session");
|
|
497
550
|
return token;
|
|
498
551
|
}
|
|
499
|
-
|
|
552
|
+
function fetchOnboardingStatus(signal) {
|
|
553
|
+
return api.get(endpoints.onboardingStatus, { signal }).then((res) => res.data);
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* `statusPromise` is started alongside the flow fetch so the check does not
|
|
557
|
+
* add a round trip after it; the flow only decides whether the answer matters
|
|
558
|
+
* (`enableMultipleOnboardings`), so its failure is reported only when it does.
|
|
559
|
+
*/
|
|
560
|
+
async function assertSessionCanStart(flow, statusPromise) {
|
|
500
561
|
if (flow.enableMultipleOnboardings) return;
|
|
501
562
|
let data;
|
|
502
563
|
try {
|
|
503
|
-
data =
|
|
564
|
+
data = await statusPromise;
|
|
504
565
|
} catch (error) {
|
|
505
566
|
toIncodeApiError(endpoints.onboardingStatus, error);
|
|
506
567
|
}
|
|
@@ -562,11 +623,16 @@ function resetDashboardFlowCache() {
|
|
|
562
623
|
}
|
|
563
624
|
async function normalizeDashboardFlow(rawFlow, options, signal) {
|
|
564
625
|
throwIfAborted(signal);
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
626
|
+
let flow = rawFlow;
|
|
627
|
+
if (options.deferActivation !== true) {
|
|
628
|
+
await initializeSession({ signal }).catch(() => void 0);
|
|
629
|
+
throwIfAborted(signal);
|
|
630
|
+
await updateFeatureManagementUser({ customIDs: { flow_id: rawFlow.flowId } });
|
|
631
|
+
throwIfAborted(signal);
|
|
632
|
+
await whenSessionFingerprintSettled();
|
|
633
|
+
throwIfAborted(signal);
|
|
634
|
+
flow = prependMandatoryConsent(rawFlow);
|
|
635
|
+
}
|
|
570
636
|
const normalizedModules = normalizeFlowModules(flow, options);
|
|
571
637
|
throwIfAborted(signal);
|
|
572
638
|
return {
|
|
@@ -576,9 +642,12 @@ async function normalizeDashboardFlow(rawFlow, options, signal) {
|
|
|
576
642
|
}
|
|
577
643
|
const getFlow = async (signal, options = {}) => {
|
|
578
644
|
throwIfAborted(signal);
|
|
579
|
-
const
|
|
645
|
+
const rawFlowPromise = preloadDashboardFlow(signal);
|
|
646
|
+
const statusPromise = fetchOnboardingStatus(signal);
|
|
647
|
+
statusPromise.catch(() => void 0);
|
|
648
|
+
const rawFlow = await rawFlowPromise;
|
|
580
649
|
throwIfAborted(signal);
|
|
581
|
-
await assertSessionCanStart(rawFlow,
|
|
650
|
+
await assertSessionCanStart(rawFlow, statusPromise);
|
|
582
651
|
throwIfAborted(signal);
|
|
583
652
|
return normalizeDashboardFlow(rawFlow, options, signal);
|
|
584
653
|
};
|
|
@@ -613,4 +682,4 @@ async function resolveDashboardModuleConfig(options) {
|
|
|
613
682
|
return flowConfig;
|
|
614
683
|
}
|
|
615
684
|
//#endregion
|
|
616
|
-
export {
|
|
685
|
+
export { isSupportedCountry as A, COUNTRIES_WITH_CNPJ_VALIDATION as C, INVALID_CNPJ_PATTERNS as D, FIELD_ORDER as E, SUPPORTED_COUNTRIES as O, CNPJ_SECOND_DIGIT_FACTORS as S, FIELD_NAME_MAPPING as T, sortModulesByOrder as _, resolveDashboardModuleConfig as a, ALL_COUNTRIES as b, getRequiredWasmPipelines as c, facingModeForStep as d, resolveVideoSelfieSteps as f, requiresAddressValidation as g, isFieldOptional as h, resetDashboardFlowCache as i, mergeDashboardConfig as j, UBO_FIELD_LABELS as k, normalizeFlowModules as l, hasAtLeastOneAddressField as m, getFlow as n, enrichFlowModuleConfig as o, videoSelfieWasmPipelines as p, preloadDashboardFlow as r, getNextRequiredWasmPipelines as s, completeDeferredActivation as t, resolveFlowModuleConfig as u, toEkybConfig as v, DEV_ONLY_COUNTRIES as w, CNPJ_FIRST_DIGIT_FACTORS as x, ADDRESS_FIELDS as y };
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createGeolocationManager } from "./geolocationManager-
|
|
2
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
1
|
+
import { t as createGeolocationManager } from "./geolocationManager-Vh9KYMeo.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-BPzG-LrP.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
3
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
3
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-BPzG-LrP.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
5
5
|
var BrowserGeolocationProvider = class {
|
|
6
6
|
getCurrentPosition() {
|
package/dist/{geolocationStateMachine-C1fxKLJP.esm.js → geolocationStateMachine-BPzG-LrP.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
3
3
|
import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
|
|
4
|
-
import { n as isConnectivityError } from "./apiError-
|
|
4
|
+
import { n as isConnectivityError } from "./apiError-CY6lWIaQ.esm.js";
|
|
5
5
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
7
7
|
//#region src/modules/geolocation/geolocationServices.ts
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
-
import { r as WasmUtilProvider } from "./safeStorage-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-CQNSur1c.esm.js";
|
|
2
|
+
import { r as WasmUtilProvider } from "./safeStorage-Dp9m6aOh.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-CzgZ-VRv.esm.js";
|
|
5
5
|
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
7
|
-
import { a as encryptSelfieImage, l as startDetection, p as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
7
|
+
import { a as encryptSelfieImage, l as startDetection, p as FaceDetectionProvider } from "./onDeviceFaceResults-CU5XlhqG.esm.js";
|
|
8
8
|
import { a as StreamCanvasProcessingSession } from "./recordingsRepository-CCWy13M-.esm.js";
|
|
9
9
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
10
10
|
import { a as uploadSelfie, r as processFace } from "./selfieErrorUtils-C6gC06J7.esm.js";
|
|
11
11
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
12
|
-
import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-
|
|
13
|
-
import { d as uploadIdImage, m as ID_ERROR_CODES, p as validateUploadResponse, s as processId } from "./idCaptureServices-
|
|
14
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
15
|
-
import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-
|
|
12
|
+
import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-Dic5mQfO.esm.js";
|
|
13
|
+
import { d as uploadIdImage, m as ID_ERROR_CODES, p as validateUploadResponse, s as processId } from "./idCaptureServices-BZvFZyyy.esm.js";
|
|
14
|
+
import { n as getFinishStatus } from "./flowCompletionService-cuWgokHI.esm.js";
|
|
15
|
+
import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-Gcgw9ze7.esm.js";
|
|
16
16
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
17
17
|
/** Default autocapture window for the selfie step. */
|
|
18
18
|
const SELFIE_AUTOCAPTURE_MS = 1e4;
|
package/dist/id.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-CQNSur1c.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
3
3
|
import { i as assign, s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
|
-
import { a as isRedirectFlowType, c as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, i as DIGITAL_ID_REGISTRY, l as MANUAL_UPLOAD_MAX_RETRIES, o as resolveDigitalIdImplementation, r as DIGITAL_ID_DOCUMENT_TYPES, s as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine, u as resolveWalletPlatform } from "./idCaptureStateMachine-
|
|
6
|
-
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
7
|
-
import { a as preloadIdRecordingProvider, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as resolveIdCaptureThresholds, i as pauseRecordingForAttempt, l as stopRecording, m as ID_ERROR_CODES, n as barcodeToBase64, o as prepareRecordingForCameraRetry, p as validateUploadResponse, r as initializeIdCapture, s as processId, t as addBarcode, u as stopStream } from "./idCaptureServices-
|
|
5
|
+
import { a as isRedirectFlowType, c as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, i as DIGITAL_ID_REGISTRY, l as MANUAL_UPLOAD_MAX_RETRIES, o as resolveDigitalIdImplementation, r as DIGITAL_ID_DOCUMENT_TYPES, s as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine, u as resolveWalletPlatform } from "./idCaptureStateMachine-UTll8mMx.esm.js";
|
|
6
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-De-5JavX.esm.js";
|
|
7
|
+
import { a as preloadIdRecordingProvider, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as resolveIdCaptureThresholds, i as pauseRecordingForAttempt, l as stopRecording, m as ID_ERROR_CODES, n as barcodeToBase64, o as prepareRecordingForCameraRetry, p as validateUploadResponse, r as initializeIdCapture, s as processId, t as addBarcode, u as stopStream } from "./idCaptureServices-BZvFZyyy.esm.js";
|
|
8
8
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BjzPjJ_p.esm.js";
|
|
9
9
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.ts
|
|
10
10
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { _ as resolveWasmSource, f as WASM_MODEL_FILES } from "./wasmWebClient-BJCaFeBL.esm.js";
|
|
2
|
-
import { p as getBarcodeEnhanceModelUrl } from "./setup-
|
|
3
|
-
import {
|
|
2
|
+
import { p as getBarcodeEnhanceModelUrl } from "./setup-CQNSur1c.esm.js";
|
|
3
|
+
import { s as wasmRuntime, t as getResolvedModelSource } from "./warmup-BOM-sD-6.esm.js";
|
|
4
|
+
import { i as BaseWasmProvider } from "./safeStorage-Dp9m6aOh.esm.js";
|
|
4
5
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
5
6
|
//#region ../infra/src/media/CameraCompositor.ts
|
|
6
7
|
const MAX_COMPOSITE_LONG_EDGE = 1280;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-CQNSur1c.esm.js";
|
|
2
2
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
|
-
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-
|
|
5
|
+
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-C3k_VK9o.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
7
|
-
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
8
|
-
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
9
|
-
import { g as resolveIdCaptureThresholds, h as resolveCaptureOptimizingTreatment } from "./idCaptureServices-
|
|
7
|
+
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-f7nBnW5P.esm.js";
|
|
8
|
+
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-UTll8mMx.esm.js";
|
|
9
|
+
import { g as resolveIdCaptureThresholds, h as resolveCaptureOptimizingTreatment } from "./idCaptureServices-BZvFZyyy.esm.js";
|
|
10
10
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
11
11
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
12
12
|
function isHoldingState(value) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
-
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-CQNSur1c.esm.js";
|
|
2
|
+
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-Dd_npJ0p.esm.js";
|
|
3
3
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
5
5
|
import { i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
6
6
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
8
|
-
import { s as queryCameraPermission } from "./permissionServices-
|
|
8
|
+
import { s as queryCameraPermission } from "./permissionServices-f7nBnW5P.esm.js";
|
|
9
9
|
import { n as startRecording, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-CCWy13M-.esm.js";
|
|
10
10
|
import { a as isBackFacingTrack, n as getBackCameraStream } from "./backCameraStream-DE_5qY04.esm.js";
|
|
11
11
|
import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
|
|
12
12
|
import { t as MultipartRecordingService } from "./multipartRecordingService-B3C_zlev.esm.js";
|
|
13
|
-
import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-
|
|
13
|
+
import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-Dic5mQfO.esm.js";
|
|
14
14
|
//#region src/internal/camera/cameraServices.ts
|
|
15
15
|
function createCameraServices(camera) {
|
|
16
16
|
return {
|
package/dist/{idCaptureStateMachine-BZPAUJzI.esm.js → idCaptureStateMachine-UTll8mMx.esm.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-CQNSur1c.esm.js";
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
3
|
+
import { s as exposeExperimentOnce } from "./feature-management-Dd_npJ0p.esm.js";
|
|
4
4
|
import { n as revokeObjectURL } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
5
5
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
6
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
6
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-CvdDnFul.esm.js";
|
|
7
7
|
import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-ijlbX_Wx.esm.js";
|
|
8
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
8
|
+
import { t as getDisableIpify } from "./sessionInitializer-DUpE6yBR.esm.js";
|
|
9
9
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
10
10
|
import { t as addDeviceStats } from "./stats-DkK-f8JT.esm.js";
|
|
11
11
|
import { a as isIOS, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-DkcRc9JV.esm.js";
|
|
12
|
-
import "./session-
|
|
12
|
+
import "./session-DWnBmR2a.esm.js";
|
|
13
13
|
import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
14
14
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
15
15
|
import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-D6phjq1-.esm.js";
|
|
16
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
16
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-f7nBnW5P.esm.js";
|
|
17
17
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
18
18
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
19
19
|
import { a as StreamCanvasProcessingSession } from "./recordingsRepository-CCWy13M-.esm.js";
|
|
20
20
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
21
21
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
22
22
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
23
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
23
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DxbvOoZJ.esm.js";
|
|
24
24
|
import { r as flagIdManualReview, t as imageFileToDataUrl } from "./imageFile-CLaua6xO.esm.js";
|
|
25
|
-
import { _ as CAPTURE_OPTIMIZING, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as resolveIdCaptureThresholds, i as pauseRecordingForAttempt, l as stopRecording, m as ID_ERROR_CODES, o as prepareRecordingForCameraRetry, p as validateUploadResponse, r as initializeIdCapture, s as processId, t as addBarcode, u as stopStream, v as OPTIMIZING_WATCHDOG_MARGIN_MS, y as getIdCameraStream } from "./idCaptureServices-
|
|
25
|
+
import { _ as CAPTURE_OPTIMIZING, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as resolveIdCaptureThresholds, i as pauseRecordingForAttempt, l as stopRecording, m as ID_ERROR_CODES, o as prepareRecordingForCameraRetry, p as validateUploadResponse, r as initializeIdCapture, s as processId, t as addBarcode, u as stopStream, v as OPTIMIZING_WATCHDOG_MARGIN_MS, y as getIdCameraStream } from "./idCaptureServices-BZvFZyyy.esm.js";
|
|
26
26
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
27
27
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
28
28
|
function isKnownFailReason(reason) {
|
|
@@ -2133,7 +2133,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
2133
2133
|
});
|
|
2134
2134
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
2135
2135
|
if (!input.dependencies) return;
|
|
2136
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
2136
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-Cpjfw3EQ.esm.js");
|
|
2137
2137
|
return loadDeepsightSession({
|
|
2138
2138
|
ds: input.ds,
|
|
2139
2139
|
storage: input.dependencies.storage,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-
|
|
1
|
+
import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-D6yz9se2.js";
|
|
2
2
|
export { type SetupOptions, isConfigured, reset, setup };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, r as isConfigured, s as setup } from "./setup-
|
|
1
|
+
import { i as reset, r as isConfigured, s as setup } from "./setup-CQNSur1c.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
-
import {
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-CQNSur1c.esm.js";
|
|
2
|
+
import { s as wasmRuntime } from "./warmup-BOM-sD-6.esm.js";
|
|
3
|
+
import { i as BaseWasmProvider } from "./safeStorage-Dp9m6aOh.esm.js";
|
|
3
4
|
import { r as getToken } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
5
|
-
import "./sessionInitializer-
|
|
5
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-CvdDnFul.esm.js";
|
|
6
|
+
import "./sessionInitializer-DUpE6yBR.esm.js";
|
|
6
7
|
import { t as addDeviceStats } from "./stats-DkK-f8JT.esm.js";
|
|
7
8
|
import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
8
9
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
|
|
@@ -516,7 +517,7 @@ async function stopRecording(session) {
|
|
|
516
517
|
}
|
|
517
518
|
}
|
|
518
519
|
async function initializeDeepsightSession(options) {
|
|
519
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
520
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-Cpjfw3EQ.esm.js");
|
|
520
521
|
return loadDeepsightSession({
|
|
521
522
|
ds: options.ds,
|
|
522
523
|
storage: options.storage
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isWasmMotionPrimedForModule } from "./permissionServices-
|
|
1
|
+
import { a as isWasmMotionPrimedForModule } from "./permissionServices-f7nBnW5P.esm.js";
|
|
2
2
|
//#region src/internal/permissions/permissionGuards.ts
|
|
3
3
|
function resolveStoredPermissionResult(fromEvent, fromContext) {
|
|
4
4
|
if (fromEvent === "granted" || fromEvent === "denied" || fromEvent === "prompt" || fromEvent === "refresh") return fromEvent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as WasmUtilProvider } from "./safeStorage-
|
|
1
|
+
import { r as WasmUtilProvider } from "./safeStorage-Dp9m6aOh.esm.js";
|
|
2
2
|
import { n as isAndroidWebView } from "./platform-DkcRc9JV.esm.js";
|
|
3
|
-
import { t as MotionSensorProvider } from "./MotionSensorProvider-
|
|
3
|
+
import { t as MotionSensorProvider } from "./MotionSensorProvider-Vlyhbcty.esm.js";
|
|
4
4
|
import { a as stopCameraStream, o as clearCameraGrantedInDocument, r as requestCameraAccess, s as isCameraGrantedInDocument } from "./camera-_2sXMXiF.esm.js";
|
|
5
5
|
//#region ../infra/src/media/permissions.ts
|
|
6
6
|
async function queryPermission(name) {
|
package/dist/personhood.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
2
|
-
import { r as WasmUtilProvider } from "./safeStorage-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-CQNSur1c.esm.js";
|
|
2
|
+
import { r as WasmUtilProvider } from "./safeStorage-Dp9m6aOh.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
|
-
import { C as createApi$1, v as randomUUID, y as getStoredHttpConfig } from "./trueSightService-
|
|
5
|
+
import { C as createApi$1, v as randomUUID, y as getStoredHttpConfig } from "./trueSightService-CvdDnFul.esm.js";
|
|
6
6
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
7
|
-
import { _ as
|
|
7
|
+
import { _ as getThumbmarkId, m as isBrowserSimulation, n as getFingerprintEnabled, v as getDeviceFingerprintInfo, y as BrowserEnvironmentProvider } from "./sessionInitializer-DUpE6yBR.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
9
9
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
10
10
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
11
11
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
|
|
12
|
-
import { i as requestPermission, t as checkPermission } from "./permissionServices-
|
|
13
|
-
import { f as stopStream, l as startDetection, p as FaceDetectionProvider, s as initializeDeepsightSession } from "./onDeviceFaceResults-
|
|
12
|
+
import { i as requestPermission, t as checkPermission } from "./permissionServices-f7nBnW5P.esm.js";
|
|
13
|
+
import { f as stopStream, l as startDetection, p as FaceDetectionProvider, s as initializeDeepsightSession } from "./onDeviceFaceResults-CU5XlhqG.esm.js";
|
|
14
14
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
15
15
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
16
16
|
//#region src/modules/personhood/personhoodServices.ts
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-vLj_aBwI.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
2
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-
|
|
2
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-CvdDnFul.esm.js";
|
|
3
3
|
import { C as createEventBus } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|