@incodetech/core 0.0.0-dev-20260909-861bc6b6 → 0.0.0-dev-20260910-30fb659a
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-Cll4dkB9.esm.js → BrowserDiagnosticsCryptoProvider-BCbOmuXk.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-CWFyaR8r.esm.js → apiError-CaZfzHR5.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-Ba4rn6NX.esm.js → authenticationManager-DGbFYQEa.esm.js} +3 -3
- package/dist/{authenticationStateMachine-1jwRYp0n.esm.js → authenticationStateMachine-ChM9tVwT.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-BhYFeKiG.d.ts → consentManager-uhDPdU6i.d.ts} +8 -8
- package/dist/{deepsightLoader-BDBZrpQE.esm.js → deepsightLoader-CgAY2Xik.esm.js} +2 -2
- package/dist/device.esm.js +5 -2
- package/dist/document-capture.d.ts +1 -1
- package/dist/{documentCaptureManager-DensIj5F.d.ts → documentCaptureManager-DD0qtFdE.d.ts} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-D_9aPtIW.esm.js → dynamicFormsManager-DbJ2sx60.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-BOI0BIQ8.esm.js → dynamicFormsStateMachine-DdOXUivK.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-CMBdh1OD.esm.js → ekybManager-DQb_i9cC.esm.js} +1 -1
- package/dist/{ekybStateMachine-BkVPuVPt.esm.js → ekybStateMachine-CbK8tAgd.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-D7BdytC-.esm.js → electronicSignatureManager-BO07Vfiv.esm.js} +1 -1
- package/dist/extensibility.d.ts +4 -4
- package/dist/extensibility.esm.js +10 -10
- package/dist/{faceCaptureManagerFactory-D19FY8SF.esm.js → faceCaptureManagerFactory-DgAdH1KT.esm.js} +1 -1
- package/dist/{faceCaptureSetup-Pa-PvJQw.esm.js → faceCaptureSetup-DdCkYn9V.esm.js} +1 -1
- package/dist/{feature-management-BWSO5AyV.esm.js → feature-management-B1auhoHt.esm.js} +30 -5
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.d.ts +19 -0
- package/dist/flow.esm.js +106 -23
- package/dist/{flowCompletionService-36hS3ze_.esm.js → flowCompletionService-DJNQBnYX.esm.js} +1 -1
- package/dist/{flowServices-CxsILNrI.esm.js → flowServices-B6Dn_OP0.esm.js} +58 -14
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Dw3GvF8e.esm.js → geolocationManager-B9Fpz7LU.esm.js} +1 -1
- package/dist/{geolocationStateMachine-CvBN4wxB.esm.js → geolocationStateMachine-iLoEsywE.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +7 -7
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-B1PRm03n.esm.js → idCaptureDefaults-R53rpPfW.esm.js} +1 -1
- package/dist/{idCaptureManager-DhUxXqGI.esm.js → idCaptureManager-CvDHZ2YE.esm.js} +3 -3
- package/dist/{idCaptureServices-h7OrVaPv.esm.js → idCaptureServices-D_mcjCtz.esm.js} +3 -3
- package/dist/{idCaptureStateMachine-Gh87MIBv.esm.js → idCaptureStateMachine-CL_f4BrG.esm.js} +7 -7
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-BFDI7iFK.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-BJnylLZO.d.ts → mandatoryConsentManager-CSh8HjSF.d.ts} +4 -4
- package/dist/{onDeviceFaceResults-DTUDp0oE.esm.js → onDeviceFaceResults-BtD_Dij3.esm.js} +4 -4
- package/dist/personhood.esm.js +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-3QjvsI3W.esm.js → runChildModule-DL_BwJt5.esm.js} +1 -1
- package/dist/{sdkVersion-DIjjbPst.esm.js → sdkVersion-CeUGP0Pv.esm.js} +1 -1
- package/dist/selfie.esm.js +5 -5
- package/dist/{selfieManager-BqyD4-mt.esm.js → selfieManager-CiVA7398.esm.js} +3 -3
- package/dist/{selfieStateMachine-DpOdcnuZ.esm.js → selfieStateMachine-BCbLR8OJ.esm.js} +2 -2
- package/dist/{session-Bc9s3uNJ.esm.js → session-B-b1IjuR.esm.js} +3 -3
- package/dist/session.d.ts +16 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-ZYnj386H.esm.js → sessionInitializer-Gw37lpQ_.esm.js} +92 -33
- package/dist/{setup-_p71PswX.esm.js → setup-CxO2a0J_.esm.js} +6 -5
- package/dist/{setup-B9s2jaZK.d.ts → setup-D6yz9se2.d.ts} +14 -0
- package/dist/{trueSightService-COFii0Q_.esm.js → trueSightService-BTf2KSpq.esm.js} +2 -2
- package/dist/video-selfie.esm.js +4 -4
- package/dist/{videoSelfieCameraWarmer-BNFWFoFn.esm.js → videoSelfieCameraWarmer-C0GHxpmK.esm.js} +3 -3
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.esm.js +14 -14
- package/package.json +1 -1
package/dist/flow.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { v as addEvent } from "./events-ijlbX_Wx.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { A as mergeDashboardConfig, a as resolveDashboardModuleConfig, c as normalizeFlowModules, l as resolveFlowModuleConfig, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getRequiredWasmPipelines, t as completeDeferredActivation } from "./flowServices-B6Dn_OP0.esm.js";
|
|
3
3
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
|
-
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-
|
|
6
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
5
|
+
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DJNQBnYX.esm.js";
|
|
6
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DL_BwJt5.esm.js";
|
|
7
7
|
import { n as isAdvanceableError } from "./advanceableErrors-CpF2cBy6.esm.js";
|
|
8
8
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
9
9
|
const noOpFlowModuleMachine = setup({}).createMachine({
|
|
@@ -363,6 +363,8 @@ function createBaseContext(context, isHomeContinueLoading) {
|
|
|
363
363
|
enableHome: context.enableHome,
|
|
364
364
|
finishStatus: void 0,
|
|
365
365
|
isHomeContinueLoading,
|
|
366
|
+
deferActivation: context.deferActivation,
|
|
367
|
+
activationResolved: false,
|
|
366
368
|
skipFaceMatch: false
|
|
367
369
|
};
|
|
368
370
|
}
|
|
@@ -372,13 +374,21 @@ function createInitialContext(input) {
|
|
|
372
374
|
registeredModules: input.modules ?? {},
|
|
373
375
|
lazyRegisteredModules: input.lazyModules ?? {},
|
|
374
376
|
getFinishStatus: input.getFinishStatus ?? getFinishStatus,
|
|
375
|
-
enableHome: input.enableHome === true
|
|
377
|
+
enableHome: input.enableHome === true,
|
|
378
|
+
deferActivation: input.deferActivation === true
|
|
376
379
|
}, false);
|
|
377
380
|
}
|
|
381
|
+
/**
|
|
382
|
+
* Whether this flow shows a home screen at all. Shared by `shouldEnterHome`
|
|
383
|
+
* (step-position aware) and the `activatesBeforeFirstModule` guard (which runs
|
|
384
|
+
* before `setFlowData`, so it reads the freshly fetched flow instead of
|
|
385
|
+
* `context.flow`) — keep the home-screen conditions in this one place.
|
|
386
|
+
*/
|
|
387
|
+
function homeScreenEnabled(context, flow) {
|
|
388
|
+
return context.enableHome === true && flow?.disableLaunchScreen !== true && context.isHomeContinueLoading !== true;
|
|
389
|
+
}
|
|
378
390
|
function shouldEnterHome(context) {
|
|
379
|
-
if (context.
|
|
380
|
-
if (context.flow?.disableLaunchScreen === true) return false;
|
|
381
|
-
if (context.isHomeContinueLoading === true) return false;
|
|
391
|
+
if (!homeScreenEnabled(context, context.flow)) return false;
|
|
382
392
|
const firstRealIndex = context.steps[0] === "REDIRECT_TO_MOBILE" ? 1 : 0;
|
|
383
393
|
return context.currentStepIndex === firstRealIndex;
|
|
384
394
|
}
|
|
@@ -408,6 +418,10 @@ const orchestratedFlowMachine = setup({
|
|
|
408
418
|
return await input.getFinishStatus(input.flowId, signal);
|
|
409
419
|
}),
|
|
410
420
|
runChildModule,
|
|
421
|
+
resolveActivation: fromPromise(async ({ input, signal }) => {
|
|
422
|
+
if (!input.flow) throw new Error("No flow loaded");
|
|
423
|
+
return completeDeferredActivation(input.flow, signal);
|
|
424
|
+
}),
|
|
411
425
|
resolveCurrentModuleMachine: fromPromise(async ({ input }) => {
|
|
412
426
|
if (!input.moduleKey) return;
|
|
413
427
|
const eagerMachine = input.modules[input.moduleKey];
|
|
@@ -438,6 +452,25 @@ const orchestratedFlowMachine = setup({
|
|
|
438
452
|
currentModuleMachine: void 0
|
|
439
453
|
};
|
|
440
454
|
}),
|
|
455
|
+
setActivatedFlow: assign(({ context, event }) => {
|
|
456
|
+
const flow = event.output;
|
|
457
|
+
const flowModules = flow.flowModules ?? [];
|
|
458
|
+
const steps = flowModules.map((m) => m.key);
|
|
459
|
+
let insertedAt = steps.findIndex((key, i) => key !== context.steps[i]);
|
|
460
|
+
if (insertedAt === -1) insertedAt = steps.length;
|
|
461
|
+
const currentStepIndex = steps.length === context.steps.length ? context.currentStepIndex : Math.min(context.currentStepIndex, insertedAt);
|
|
462
|
+
const module = flowModules[currentStepIndex];
|
|
463
|
+
return {
|
|
464
|
+
flow,
|
|
465
|
+
steps,
|
|
466
|
+
currentStepIndex,
|
|
467
|
+
currentStep: module?.key,
|
|
468
|
+
config: getModuleConfig(module, flow),
|
|
469
|
+
currentModuleMachine: void 0,
|
|
470
|
+
activationResolved: true
|
|
471
|
+
};
|
|
472
|
+
}),
|
|
473
|
+
markActivationResolved: assign({ activationResolved: true }),
|
|
441
474
|
setError: assign(({ event }) => {
|
|
442
475
|
const err = event.error;
|
|
443
476
|
return {
|
|
@@ -492,6 +525,16 @@ const orchestratedFlowMachine = setup({
|
|
|
492
525
|
canGoNext: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex < context.steps.length - 1,
|
|
493
526
|
isOnboardingFinishedSignal: ({ event }) => event.output?.action === "onboardingFinished",
|
|
494
527
|
shouldEnterHome: ({ context }) => shouldEnterHome(context),
|
|
528
|
+
needsActivation: ({ context }) => context.deferActivation && !context.activationResolved && context.currentStep !== "REDIRECT_TO_MOBILE",
|
|
529
|
+
activatesBeforeFirstModule: ({ context, event }) => {
|
|
530
|
+
if (!("output" in event)) return false;
|
|
531
|
+
if (!context.deferActivation || context.activationResolved) return false;
|
|
532
|
+
const flow = event.output;
|
|
533
|
+
const firstModuleKey = flow.flowModules?.[0]?.key;
|
|
534
|
+
if (!firstModuleKey || firstModuleKey === "REDIRECT_TO_MOBILE") return false;
|
|
535
|
+
if (!(context.registeredModules[firstModuleKey] != null || context.lazyRegisteredModules[firstModuleKey] != null)) return false;
|
|
536
|
+
return !homeScreenEnabled(context, flow);
|
|
537
|
+
},
|
|
495
538
|
hasModule: ({ context, event }) => {
|
|
496
539
|
if (!("output" in event)) return false;
|
|
497
540
|
const firstModuleKey = event.output.flowModules?.[0]?.key;
|
|
@@ -520,17 +563,25 @@ const orchestratedFlowMachine = setup({
|
|
|
520
563
|
id: "fetchFlow",
|
|
521
564
|
src: "fetchFlow",
|
|
522
565
|
input: ({ context }) => ({ getFlow: context.getFlow }),
|
|
523
|
-
onDone: [
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
566
|
+
onDone: [
|
|
567
|
+
{
|
|
568
|
+
target: "resolvingActivation",
|
|
569
|
+
guard: "activatesBeforeFirstModule",
|
|
570
|
+
actions: "setFlowData"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
target: "resolvingModule",
|
|
574
|
+
guard: "hasModule",
|
|
575
|
+
actions: "setFlowData"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
target: "error",
|
|
579
|
+
actions: assign({ error: ({ event }) => {
|
|
580
|
+
const firstModuleKey = event.output.flowModules?.[0]?.key;
|
|
581
|
+
return firstModuleKey ? `No registered module found for: ${firstModuleKey}` : "No registered module found: flow has no modules";
|
|
582
|
+
} })
|
|
583
|
+
}
|
|
584
|
+
],
|
|
534
585
|
onError: {
|
|
535
586
|
target: "error",
|
|
536
587
|
actions: "setError"
|
|
@@ -559,6 +610,11 @@ const orchestratedFlowMachine = setup({
|
|
|
559
610
|
guard: "shouldEnterHome",
|
|
560
611
|
actions: ["setCurrentModuleMachine"]
|
|
561
612
|
},
|
|
613
|
+
{
|
|
614
|
+
target: "resolvingActivation",
|
|
615
|
+
guard: "needsActivation",
|
|
616
|
+
actions: ["setCurrentModuleMachine"]
|
|
617
|
+
},
|
|
562
618
|
{
|
|
563
619
|
target: "runningModule",
|
|
564
620
|
guard: "hasCurrentModuleMachine",
|
|
@@ -583,15 +639,41 @@ const orchestratedFlowMachine = setup({
|
|
|
583
639
|
}
|
|
584
640
|
},
|
|
585
641
|
home: { on: {
|
|
586
|
-
HOME_CONTINUE: {
|
|
642
|
+
HOME_CONTINUE: [{
|
|
643
|
+
target: "resolvingActivation",
|
|
644
|
+
guard: "needsActivation",
|
|
645
|
+
actions: "setHomeContinueLoading"
|
|
646
|
+
}, {
|
|
587
647
|
target: "runningModule",
|
|
588
648
|
actions: ["clearHomeContinueLoading", "prefetchNextModule"]
|
|
589
|
-
},
|
|
649
|
+
}],
|
|
590
650
|
RESET: {
|
|
591
651
|
target: "idle",
|
|
592
652
|
actions: "resetContext"
|
|
593
653
|
}
|
|
594
654
|
} },
|
|
655
|
+
resolvingActivation: {
|
|
656
|
+
invoke: {
|
|
657
|
+
id: "resolveActivation",
|
|
658
|
+
src: "resolveActivation",
|
|
659
|
+
input: ({ context }) => ({ flow: context.flow }),
|
|
660
|
+
onDone: {
|
|
661
|
+
target: "resolvingModule",
|
|
662
|
+
actions: "setActivatedFlow"
|
|
663
|
+
},
|
|
664
|
+
onError: {
|
|
665
|
+
target: "resolvingModule",
|
|
666
|
+
actions: "markActivationResolved"
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
on: {
|
|
670
|
+
RESET: {
|
|
671
|
+
target: "idle",
|
|
672
|
+
actions: "resetContext"
|
|
673
|
+
},
|
|
674
|
+
...homeContinueOn
|
|
675
|
+
}
|
|
676
|
+
},
|
|
595
677
|
runningModule: {
|
|
596
678
|
entry: "clearHomeContinueLoading",
|
|
597
679
|
invoke: {
|
|
@@ -705,7 +787,7 @@ function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
|
|
|
705
787
|
const isCompletingPhase = snapshot.value === "completing";
|
|
706
788
|
const firstRealIndex = snapshot.context.steps[0] === "REDIRECT_TO_MOBILE" ? 1 : 0;
|
|
707
789
|
const isAtFirstRealModule = snapshot.context.currentStepIndex === firstRealIndex;
|
|
708
|
-
const isResolvingHomeAnchor = snapshot.value === "resolvingModule" && effectiveEnableHome && isAtFirstRealModule;
|
|
790
|
+
const isResolvingHomeAnchor = (snapshot.value === "resolvingModule" || snapshot.value === "resolvingActivation") && effectiveEnableHome && isAtFirstRealModule;
|
|
709
791
|
const isHomeBoundPhase = isHomePhase || isResolvingHomeAnchor;
|
|
710
792
|
const canShowHome = isTerminal === false && effectiveEnableHome && isCompletingPhase === false;
|
|
711
793
|
const visible = canShowHome ? isHomeBoundPhase : false;
|
|
@@ -727,7 +809,7 @@ function getMappedStatus(snapshot) {
|
|
|
727
809
|
const { value } = snapshot;
|
|
728
810
|
if (value === "idle") return "idle";
|
|
729
811
|
if (value === "completing") return "completing";
|
|
730
|
-
if (value === "loading" || value === "resolvingModule" || typeof value === "object") return "loading";
|
|
812
|
+
if (value === "loading" || value === "resolvingModule" || value === "resolvingActivation" || typeof value === "object") return "loading";
|
|
731
813
|
if (value === "finished") return "finished";
|
|
732
814
|
if (value === "error") return "error";
|
|
733
815
|
return "ready";
|
|
@@ -969,7 +1051,8 @@ function createOrchestratedFlowActor(options) {
|
|
|
969
1051
|
modules: options.modules,
|
|
970
1052
|
lazyModules: options.lazyModules,
|
|
971
1053
|
getFinishStatus: options.getFinishStatus,
|
|
972
|
-
enableHome: options.enableHome
|
|
1054
|
+
enableHome: options.enableHome,
|
|
1055
|
+
deferActivation: options.deferActivation
|
|
973
1056
|
} }).start();
|
|
974
1057
|
}
|
|
975
1058
|
function createOrchestratedFlowManager(options) {
|
package/dist/{flowCompletionService-36hS3ze_.esm.js → flowCompletionService-DJNQBnYX.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
3
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
3
|
+
import { i as toIncodeApiError } from "./apiError-CaZfzHR5.esm.js";
|
|
4
4
|
//#region src/modules/flow/flowCompletionService.ts
|
|
5
5
|
const getFinishStatus = async (flowId, signal) => {
|
|
6
6
|
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser } from "./feature-management-B1auhoHt.esm.js";
|
|
2
2
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as whenSessionFingerprintSettled, i as initializeSession, l as getStandaloneFlowPolicy, r as getSessionFingerprintResult } from "./sessionInitializer-Gw37lpQ_.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
5
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
6
|
-
import "./session-
|
|
5
|
+
import { i as toIncodeApiError } from "./apiError-CaZfzHR5.esm.js";
|
|
6
|
+
import "./session-B-b1IjuR.esm.js";
|
|
7
7
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
8
8
|
//#region src/modules/flow/dashboardConfig.ts
|
|
9
9
|
function isPlainObject(value) {
|
|
@@ -491,16 +491,52 @@ function prependMandatoryConsent(flow) {
|
|
|
491
491
|
flowModules: [mandatoryConsentModule, ...flow.flowModules]
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
+
/**
|
|
495
|
+
* Deferred counterpart of the activation steps `getFlow` performs when
|
|
496
|
+
* `deferActivation` is off: waits for session activation, sends the flow id to
|
|
497
|
+
* feature management, waits for the device fingerprint, then inserts
|
|
498
|
+
* MANDATORY_CONSENT where `getFlow` would have put it — first, or right after an
|
|
499
|
+
* injected REDIRECT_TO_MOBILE (normalization adds that one in front of
|
|
500
|
+
* everything). Returns the same object when nothing is injected.
|
|
501
|
+
*/
|
|
502
|
+
async function completeDeferredActivation(flow, signal) {
|
|
503
|
+
await initializeSession({ signal }).catch(() => void 0);
|
|
504
|
+
throwIfAborted(signal);
|
|
505
|
+
await updateFeatureManagementUser({ customIDs: { flow_id: flow.flowId } });
|
|
506
|
+
throwIfAborted(signal);
|
|
507
|
+
await whenSessionFingerprintSettled();
|
|
508
|
+
throwIfAborted(signal);
|
|
509
|
+
const withConsent = prependMandatoryConsent(flow);
|
|
510
|
+
if (withConsent === flow) return flow;
|
|
511
|
+
const [consent, ...rest] = withConsent.flowModules;
|
|
512
|
+
if (rest[0]?.key !== "REDIRECT_TO_MOBILE") return withConsent;
|
|
513
|
+
return {
|
|
514
|
+
...flow,
|
|
515
|
+
flowModules: [
|
|
516
|
+
rest[0],
|
|
517
|
+
consent,
|
|
518
|
+
...rest.slice(1)
|
|
519
|
+
]
|
|
520
|
+
};
|
|
521
|
+
}
|
|
494
522
|
function requireActiveToken() {
|
|
495
523
|
const token = getToken();
|
|
496
524
|
if (!token) throw new Error("Standalone module configuration requires an active Flow session");
|
|
497
525
|
return token;
|
|
498
526
|
}
|
|
499
|
-
|
|
527
|
+
function fetchOnboardingStatus(signal) {
|
|
528
|
+
return api.get(endpoints.onboardingStatus, { signal }).then((res) => res.data);
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* `statusPromise` is started alongside the flow fetch so the check does not
|
|
532
|
+
* add a round trip after it; the flow only decides whether the answer matters
|
|
533
|
+
* (`enableMultipleOnboardings`), so its failure is reported only when it does.
|
|
534
|
+
*/
|
|
535
|
+
async function assertSessionCanStart(flow, statusPromise) {
|
|
500
536
|
if (flow.enableMultipleOnboardings) return;
|
|
501
537
|
let data;
|
|
502
538
|
try {
|
|
503
|
-
data =
|
|
539
|
+
data = await statusPromise;
|
|
504
540
|
} catch (error) {
|
|
505
541
|
toIncodeApiError(endpoints.onboardingStatus, error);
|
|
506
542
|
}
|
|
@@ -562,11 +598,16 @@ function resetDashboardFlowCache() {
|
|
|
562
598
|
}
|
|
563
599
|
async function normalizeDashboardFlow(rawFlow, options, signal) {
|
|
564
600
|
throwIfAborted(signal);
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
601
|
+
let flow = rawFlow;
|
|
602
|
+
if (options.deferActivation !== true) {
|
|
603
|
+
await initializeSession({ signal }).catch(() => void 0);
|
|
604
|
+
throwIfAborted(signal);
|
|
605
|
+
await updateFeatureManagementUser({ customIDs: { flow_id: rawFlow.flowId } });
|
|
606
|
+
throwIfAborted(signal);
|
|
607
|
+
await whenSessionFingerprintSettled();
|
|
608
|
+
throwIfAborted(signal);
|
|
609
|
+
flow = prependMandatoryConsent(rawFlow);
|
|
610
|
+
}
|
|
570
611
|
const normalizedModules = normalizeFlowModules(flow, options);
|
|
571
612
|
throwIfAborted(signal);
|
|
572
613
|
return {
|
|
@@ -576,9 +617,12 @@ async function normalizeDashboardFlow(rawFlow, options, signal) {
|
|
|
576
617
|
}
|
|
577
618
|
const getFlow = async (signal, options = {}) => {
|
|
578
619
|
throwIfAborted(signal);
|
|
579
|
-
const
|
|
620
|
+
const rawFlowPromise = preloadDashboardFlow(signal);
|
|
621
|
+
const statusPromise = fetchOnboardingStatus(signal);
|
|
622
|
+
statusPromise.catch(() => void 0);
|
|
623
|
+
const rawFlow = await rawFlowPromise;
|
|
580
624
|
throwIfAborted(signal);
|
|
581
|
-
await assertSessionCanStart(rawFlow,
|
|
625
|
+
await assertSessionCanStart(rawFlow, statusPromise);
|
|
582
626
|
throwIfAborted(signal);
|
|
583
627
|
return normalizeDashboardFlow(rawFlow, options, signal);
|
|
584
628
|
};
|
|
@@ -613,4 +657,4 @@ async function resolveDashboardModuleConfig(options) {
|
|
|
613
657
|
return flowConfig;
|
|
614
658
|
}
|
|
615
659
|
//#endregion
|
|
616
|
-
export {
|
|
660
|
+
export { mergeDashboardConfig as A, DEV_ONLY_COUNTRIES as C, SUPPORTED_COUNTRIES as D, INVALID_CNPJ_PATTERNS as E, UBO_FIELD_LABELS as O, COUNTRIES_WITH_CNPJ_VALIDATION as S, FIELD_ORDER as T, toEkybConfig as _, resolveDashboardModuleConfig as a, CNPJ_FIRST_DIGIT_FACTORS as b, normalizeFlowModules as c, resolveVideoSelfieSteps as d, videoSelfieWasmPipelines as f, sortModulesByOrder as g, requiresAddressValidation as h, resetDashboardFlowCache as i, isSupportedCountry as k, resolveFlowModuleConfig as l, isFieldOptional as m, getFlow as n, enrichFlowModuleConfig as o, hasAtLeastOneAddressField as p, preloadDashboardFlow as r, getRequiredWasmPipelines as s, completeDeferredActivation as t, facingModeForStep as u, ADDRESS_FIELDS as v, FIELD_NAME_MAPPING as w, CNPJ_SECOND_DIGIT_FACTORS as x, ALL_COUNTRIES 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-B9Fpz7LU.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-iLoEsywE.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-iLoEsywE.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
5
5
|
var BrowserGeolocationProvider = class {
|
|
6
6
|
getCurrentPosition() {
|
package/dist/{geolocationStateMachine-CvBN4wxB.esm.js → geolocationStateMachine-iLoEsywE.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-CaZfzHR5.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-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-CxO2a0J_.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a as resolveDashboardModuleConfig, u as facingModeForStep } from "./flowServices-B6Dn_OP0.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-BtD_Dij3.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-R53rpPfW.esm.js";
|
|
13
|
+
import { d as uploadIdImage, m as ID_ERROR_CODES, p as validateUploadResponse, s as processId } from "./idCaptureServices-D_mcjCtz.esm.js";
|
|
14
|
+
import { n as getFinishStatus } from "./flowCompletionService-DJNQBnYX.esm.js";
|
|
15
|
+
import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-C0GHxpmK.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-CxO2a0J_.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-CL_f4BrG.esm.js";
|
|
6
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-CvDHZ2YE.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-D_mcjCtz.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,5 +1,5 @@
|
|
|
1
1
|
import { _ as resolveWasmSource, f as WASM_MODEL_FILES } from "./wasmWebClient-BJCaFeBL.esm.js";
|
|
2
|
-
import { p as getBarcodeEnhanceModelUrl } from "./setup-
|
|
2
|
+
import { p as getBarcodeEnhanceModelUrl } from "./setup-CxO2a0J_.esm.js";
|
|
3
3
|
import { i as BaseWasmProvider, l as wasmRuntime, o as getResolvedModelSource } from "./safeStorage-0bZuUtSP.esm.js";
|
|
4
4
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
5
5
|
//#region ../infra/src/media/CameraCompositor.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-CxO2a0J_.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
5
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-CyCdsfox.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
7
7
|
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-J5S1dEIf.esm.js";
|
|
8
|
-
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
9
|
-
import { g as resolveIdCaptureThresholds, h as resolveCaptureOptimizingTreatment } from "./idCaptureServices-
|
|
8
|
+
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-CL_f4BrG.esm.js";
|
|
9
|
+
import { g as resolveIdCaptureThresholds, h as resolveCaptureOptimizingTreatment } from "./idCaptureServices-D_mcjCtz.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,5 +1,5 @@
|
|
|
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-CxO2a0J_.esm.js";
|
|
2
|
+
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-B1auhoHt.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";
|
|
@@ -10,7 +10,7 @@ import { n as startRecording, r as stopRecording$1, t as createRecordingSession
|
|
|
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-R53rpPfW.esm.js";
|
|
14
14
|
//#region src/internal/camera/cameraServices.ts
|
|
15
15
|
function createCameraServices(camera) {
|
|
16
16
|
return {
|
package/dist/{idCaptureStateMachine-Gh87MIBv.esm.js → idCaptureStateMachine-CL_f4BrG.esm.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-CxO2a0J_.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-B1auhoHt.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-BTf2KSpq.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-Gw37lpQ_.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-B-b1IjuR.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";
|
|
@@ -22,7 +22,7 @@ import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
|
22
22
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
23
23
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-BHw_SD3h.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-D_mcjCtz.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-CgAY2Xik.esm.js");
|
|
2137
2137
|
return loadDeepsightSession({
|
|
2138
2138
|
ds: input.ds,
|
|
2139
2139
|
storage: input.dependencies.storage,
|
package/dist/identity-reuse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-
|
|
1
|
+
import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-BFDI7iFK.js";
|
|
2
2
|
export { type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -108,14 +108,14 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
108
108
|
type: "setError";
|
|
109
109
|
params: NonReducibleUnknown;
|
|
110
110
|
};
|
|
111
|
-
clearError: {
|
|
112
|
-
type: "clearError";
|
|
113
|
-
params: NonReducibleUnknown;
|
|
114
|
-
};
|
|
115
111
|
setSelectedDocument: {
|
|
116
112
|
type: "setSelectedDocument";
|
|
117
113
|
params: NonReducibleUnknown;
|
|
118
114
|
};
|
|
115
|
+
clearError: {
|
|
116
|
+
type: "clearError";
|
|
117
|
+
params: NonReducibleUnknown;
|
|
118
|
+
};
|
|
119
119
|
}>, Values<{
|
|
120
120
|
hasDocuments: {
|
|
121
121
|
type: "hasDocuments";
|
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-CxO2a0J_.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as MandatoryConsentConfig } from "./types-DJ2OM9rw.js";
|
|
2
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
2
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-CSh8HjSF.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-BJnylLZO.d.ts → mandatoryConsentManager-CSh8HjSF.d.ts}
RENAMED
|
@@ -61,14 +61,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
61
61
|
type: "clearError";
|
|
62
62
|
params: NonReducibleUnknown;
|
|
63
63
|
};
|
|
64
|
-
resetContext: {
|
|
65
|
-
type: "resetContext";
|
|
66
|
-
params: NonReducibleUnknown;
|
|
67
|
-
};
|
|
68
64
|
toggleSigned: {
|
|
69
65
|
type: "toggleSigned";
|
|
70
66
|
params: NonReducibleUnknown;
|
|
71
67
|
};
|
|
68
|
+
resetContext: {
|
|
69
|
+
type: "resetContext";
|
|
70
|
+
params: NonReducibleUnknown;
|
|
71
|
+
};
|
|
72
72
|
}>, {
|
|
73
73
|
type: "canSubmit";
|
|
74
74
|
params: unknown;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-CxO2a0J_.esm.js";
|
|
2
2
|
import { i as BaseWasmProvider, l as wasmRuntime } from "./safeStorage-0bZuUtSP.esm.js";
|
|
3
3
|
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-
|
|
4
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-BTf2KSpq.esm.js";
|
|
5
|
+
import "./sessionInitializer-Gw37lpQ_.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-DkK-f8JT.esm.js";
|
|
7
7
|
import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
8
8
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
|
|
@@ -516,7 +516,7 @@ async function stopRecording(session) {
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
async function initializeDeepsightSession(options) {
|
|
519
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
519
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-CgAY2Xik.esm.js");
|
|
520
520
|
return loadDeepsightSession({
|
|
521
521
|
ds: options.ds,
|
|
522
522
|
storage: options.storage
|
package/dist/personhood.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-CxO2a0J_.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.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-BTf2KSpq.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-Gw37lpQ_.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
12
|
import { i as requestPermission, t as checkPermission } from "./permissionServices-J5S1dEIf.esm.js";
|
|
13
|
-
import { f as stopStream, l as startDetection, p as FaceDetectionProvider, s as initializeDeepsightSession } from "./onDeviceFaceResults-
|
|
13
|
+
import { f as stopStream, l as startDetection, p as FaceDetectionProvider, s as initializeDeepsightSession } from "./onDeviceFaceResults-BtD_Dij3.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-BO07Vfiv.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-BTf2KSpq.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";
|