@incodetech/core 0.0.0-dev-20260819-588cf821 → 0.0.0-dev-20260819-d97c25cd
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-CYEBHxM-.esm.js → BrowserDiagnosticsCryptoProvider-C1kB1eB6.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-DjfnJEmY.esm.js → apiError-DlY6lEte.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-Djd5VRUN.esm.js → authenticationManager-C3Pdo3OC.esm.js} +2 -2
- package/dist/{authenticationManager-Bo5oW5Rh.d.ts → authenticationManager-CG7g38ad.d.ts} +1 -1
- package/dist/{authenticationStateMachine-CWI30EGE.esm.js → authenticationStateMachine-CpBOgS9i.esm.js} +2 -2
- package/dist/{backCameraStream-DtkmDQo7.esm.js → backCameraStream-D30zZBEZ.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-uhDPdU6i.d.ts → consentManager-3Pbtj-RV.d.ts} +4 -4
- package/dist/curp-validation.d.ts +1 -1
- package/dist/{curpValidationManager-BAE-uh7L.d.ts → curpValidationManager-DrMLHzVF.d.ts} +1 -1
- package/dist/{deepsightLoader-Cx7VIdZs.esm.js → deepsightLoader-Ct8Fmn7_.esm.js} +3 -3
- package/dist/device.d.ts +1 -1
- package/dist/device.esm.js +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.d.ts +4 -4
- package/dist/document-upload.esm.js +1 -1
- package/dist/{documentCaptureManager-qEXTbJmQ.esm.js → documentCaptureManager-C1UC1WYh.esm.js} +1 -1
- package/dist/{documentCaptureStateMachine-DXfStru4.esm.js → documentCaptureStateMachine-CBHmgyM7.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-7O0OYLKC.esm.js → dynamicFormsManager-CWXstugw.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-BhxBhuUG.esm.js → dynamicFormsStateMachine-BN5EojBS.esm.js} +1 -1
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-DU3ehxwx.esm.js → ekybManager-CS2eKYaZ.esm.js} +1 -1
- package/dist/{ekybStateMachine-B5r4Ovj1.esm.js → ekybStateMachine-CUbUpf93.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-eINhsO8o.esm.js → electronicSignatureManager-DAV5Qd7D.esm.js} +1 -1
- package/dist/extensibility.d.ts +10 -10
- package/dist/extensibility.esm.js +12 -12
- package/dist/{faceCaptureManagerFactory-CE-6YvEi.esm.js → faceCaptureManagerFactory-CA_aJRiS.esm.js} +1 -1
- package/dist/{faceCaptureManagerFactory-C8MlI6-0.d.ts → faceCaptureManagerFactory-D6qnBVUw.d.ts} +3 -3
- package/dist/{faceCaptureSetup-DlttCnYM.esm.js → faceCaptureSetup-q_Csi0hg.esm.js} +2 -2
- package/dist/{feature-management-Cd9XIX1T.esm.js → feature-management-Cl__Mk57.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-CP5XlFP0.esm.js → fiscalQrManager-7UH-ZMea.esm.js} +1 -1
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +5 -5
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-CwmhqmA6.esm.js → flowCompletionService-B0iuFfdZ.esm.js} +1 -1
- package/dist/{flowServices-BtS-fOVI.esm.js → flowServices-D6lWadVX.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-BqsxPcAd.esm.js → geolocationManager-CZJwhj_d.esm.js} +1 -1
- package/dist/{geolocationStateMachine-BxXAG2Et.esm.js → geolocationStateMachine-BOH8p4nS.esm.js} +1 -1
- package/dist/{getBrowser-DNrQeL4T.esm.js → getBrowser-DmNprTMV.esm.js} +1 -0
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-DUzWUMjT.d.ts → governmentValidationManager-D02vT4yY.d.ts} +11 -44
- package/dist/governmentValidationManager-DnVUyppQ.esm.js +79 -0
- package/dist/governmentValidationStateMachine-CNzJ5UQb.esm.js +54 -0
- package/dist/home.d.ts +1 -1
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-Bn1CF1jN.esm.js → idCaptureManager-CdJ5tIzZ.esm.js} +2 -2
- package/dist/{idCaptureManager-BfgptftY.d.ts → idCaptureManager-CfE4iEi0.d.ts} +2 -2
- package/dist/{idCaptureServices-CZwsPLMG.esm.js → idCaptureServices-DLNKi_EM.esm.js} +4 -4
- package/dist/{idCaptureStateMachine-CUZyF8Bl.esm.js → idCaptureStateMachine-C4UMP5JD.esm.js} +9 -9
- package/dist/{index-LHJIYIKJ.d.ts → index-LA6R9BLR.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/{mandatoryConsentManager-Cz98fh9O.d.ts → mandatoryConsentManager-DbGLEuuz.d.ts} +5 -5
- package/dist/{onDeviceFaceResults-B7628vP4.esm.js → onDeviceFaceResults-RJnRexzw.esm.js} +4 -4
- package/dist/personhood.d.ts +1 -1
- package/dist/personhood.esm.js +3 -3
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-D8KodYem.esm.js → recordingService-CLsBGwrX.esm.js} +1 -1
- package/dist/{runChildModule-CL2hhhUD.esm.js → runChildModule-btHrg-mD.esm.js} +1 -1
- package/dist/{sdkVersion-BHGhwczw.esm.js → sdkVersion-x6P2avb7.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-DDlagDor.esm.js → selfieManager-BNRQ9O-F.esm.js} +2 -2
- package/dist/{selfieManager-yz6zt2t0.d.ts → selfieManager-dki4G9tK.d.ts} +1 -1
- package/dist/{selfieStateMachine-CEZ0hvCQ.esm.js → selfieStateMachine-BCruqTSI.esm.js} +2 -2
- package/dist/{session-BDsfrJHD.esm.js → session-Bgkz0Bl9.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BMj0ulTi.esm.js → sessionInitializer-BWxNWUni.esm.js} +4 -4
- package/dist/{setup-6Ab1eT8N.esm.js → setup-CXsJAvBD.esm.js} +5 -5
- package/dist/trueSight-CzaYWY8k.esm.js +1 -0
- package/dist/{trueSightService-CFXnK5HX.esm.js → trueSightService-C8mkify_.esm.js} +2 -2
- package/dist/{types-DNNUCM_n.d.ts → types-BqezaTnP.d.ts} +0 -2
- package/dist/{types-BNs7Klh_.d.ts → types-C6pPfQxo.d.ts} +1 -1
- package/dist/{types-DqtyPNWa.d.ts → types-D10PIjOT.d.ts} +1 -1
- package/dist/types-DQpi7nkW.d.ts +6 -0
- package/dist/{types-CaqgEfzk.d.ts → types-KeV54Tt6.d.ts} +1 -1
- package/dist/{types-rpRSIpv4.d.ts → types-isCyg__O.d.ts} +1 -1
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-CEFb7dCk.esm.js → videoSelfieCameraWarmer-BwvCvHQQ.esm.js} +3 -3
- package/dist/{videoSelfieStepDetector-CcBSD8Gc.d.ts → videoSelfieStepDetector-tHovquP4.d.ts} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +5 -5
- package/dist/workflow.esm.js +17 -17
- package/package.json +3 -3
- package/dist/governmentValidationManager-Dheo7fh_.esm.js +0 -123
- package/dist/governmentValidationStateMachine-BYKYUdza.esm.js +0 -226
- package/dist/trueSight-B-rervIk.esm.js +0 -1
- package/dist/types-Dm7dzIXw.d.ts +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
3
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-BOH8p4nS.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
5
5
|
var BrowserGeolocationProvider = class {
|
|
6
6
|
getCurrentPosition() {
|
package/dist/{geolocationStateMachine-BxXAG2Et.esm.js → geolocationStateMachine-BOH8p4nS.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-CCzL3XD_.esm.js";
|
|
3
3
|
import { a as isIOS, t as isAndroid } from "./platform-Q4r1nvWX.esm.js";
|
|
4
|
-
import { n as isConnectivityError } from "./apiError-
|
|
4
|
+
import { n as isConnectivityError } from "./apiError-DlY6lEte.esm.js";
|
|
5
5
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
7
|
//#region src/modules/geolocation/geolocationServices.ts
|
|
@@ -7,6 +7,7 @@ function getBrowser() {
|
|
|
7
7
|
if (ua.includes("edg/") || ua.includes("edgios/")) return "edge";
|
|
8
8
|
if (ua.includes("samsungbrowser/")) return "samsung_browser";
|
|
9
9
|
if (ua.includes("opr/") || ua.includes("opera") || ua.includes("opios/") || ua.includes("opt/")) return "opera";
|
|
10
|
+
if (ua.includes("miuibrowser/")) return "miui_browser";
|
|
10
11
|
if (ua.includes("chrome") || ua.includes("crios")) return "chrome";
|
|
11
12
|
if (ua.includes("firefox") || ua.includes("fxios")) return "firefox";
|
|
12
13
|
if (ua.includes("safari")) return "safari";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as GovernmentValidationActor, i as createGovernmentValidationManagerFromActor, n as GovernmentValidationState, o as governmentValidationMachine, r as createGovernmentValidationManager, s as GovernmentValidationConfig, t as GovernmentValidationManager } from "./governmentValidationManager-
|
|
1
|
+
import { a as GovernmentValidationActor, i as createGovernmentValidationManagerFromActor, n as GovernmentValidationState, o as governmentValidationMachine, r as createGovernmentValidationManager, s as GovernmentValidationConfig, t as GovernmentValidationManager } from "./governmentValidationManager-D02vT4yY.js";
|
|
2
2
|
export { type GovernmentValidationActor, type GovernmentValidationConfig, type GovernmentValidationManager, type GovernmentValidationState, createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
2
|
-
import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-
|
|
1
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CNzJ5UQb.esm.js";
|
|
2
|
+
import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-DnVUyppQ.esm.js";
|
|
3
3
|
export { createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
|
package/dist/{governmentValidationManager-DUzWUMjT.d.ts → governmentValidationManager-D02vT4yY.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
3
|
import "./Actor-iTq7YY48.js";
|
|
4
|
-
import
|
|
4
|
+
import "./index-B8weJxmL.js";
|
|
5
5
|
//#region src/modules/government-validation/types.d.ts
|
|
6
6
|
type GovernmentValidationConfig = {
|
|
7
7
|
validationCountries?: string[];
|
|
@@ -20,11 +20,18 @@ type GovernmentValidationConfig = {
|
|
|
20
20
|
mockOK?: boolean;
|
|
21
21
|
facialValidation: boolean;
|
|
22
22
|
dataValidation: boolean;
|
|
23
|
-
backgroundExecution: boolean;
|
|
24
|
-
maxOtpAttempts?: number;
|
|
25
23
|
};
|
|
26
24
|
//#endregion
|
|
27
25
|
//#region src/modules/government-validation/governmentValidationStateMachine.d.ts
|
|
26
|
+
/**
|
|
27
|
+
* Government Record Validation runs as a backend-only step (see
|
|
28
|
+
* docs/_devhub/Module-Government-Validation.md): the SDK shows the standard
|
|
29
|
+
* loader while the call resolves, then advances to `finished` regardless of
|
|
30
|
+
* the validation outcome (success, failure, or unavailable for the
|
|
31
|
+
* country). The outcome is recorded server-side (BE logs / session events)
|
|
32
|
+
* for CS and debugging — nothing is surfaced to the end user, so there is
|
|
33
|
+
* no result screen and no OTP sub-flow here.
|
|
34
|
+
*/
|
|
28
35
|
declare const governmentValidationMachine: any;
|
|
29
36
|
type GovernmentValidationMachine = typeof governmentValidationMachine;
|
|
30
37
|
//#endregion
|
|
@@ -41,55 +48,15 @@ type GovernmentValidationIdleState = {
|
|
|
41
48
|
type GovernmentValidationLoadingState = {
|
|
42
49
|
status: 'loading';
|
|
43
50
|
};
|
|
44
|
-
type GovernmentValidationProcessingState = {
|
|
45
|
-
status: 'processing';
|
|
46
|
-
};
|
|
47
|
-
type GovernmentValidationAwaitingOtpState = {
|
|
48
|
-
status: 'awaitingOtp';
|
|
49
|
-
resendTimer: number;
|
|
50
|
-
canResend: boolean;
|
|
51
|
-
attemptsRemaining: number;
|
|
52
|
-
otpError?: string;
|
|
53
|
-
otpCode: string;
|
|
54
|
-
otpLength: number;
|
|
55
|
-
otpValidationErrors?: OtpValidationErrors;
|
|
56
|
-
isOtpValid: boolean;
|
|
57
|
-
};
|
|
58
|
-
type GovernmentValidationVerifyingOtpState = {
|
|
59
|
-
status: 'verifyingOtp';
|
|
60
|
-
otpCode: string;
|
|
61
|
-
otpLength: number;
|
|
62
|
-
};
|
|
63
51
|
type GovernmentValidationFinishedState = {
|
|
64
52
|
status: 'finished';
|
|
65
53
|
};
|
|
66
|
-
type
|
|
67
|
-
status: 'error';
|
|
68
|
-
error: string;
|
|
69
|
-
};
|
|
70
|
-
type GovernmentValidationSuccessState = {
|
|
71
|
-
status: 'displaySuccess';
|
|
72
|
-
};
|
|
73
|
-
type GovernmentValidationUnknownState = {
|
|
74
|
-
status: 'unknown';
|
|
75
|
-
error: string;
|
|
76
|
-
};
|
|
77
|
-
type GovernmentValidationState = GovernmentValidationIdleState | GovernmentValidationLoadingState | GovernmentValidationProcessingState | GovernmentValidationAwaitingOtpState | GovernmentValidationVerifyingOtpState | GovernmentValidationFinishedState | GovernmentValidationErrorState | GovernmentValidationSuccessState | GovernmentValidationUnknownState;
|
|
54
|
+
type GovernmentValidationState = GovernmentValidationIdleState | GovernmentValidationLoadingState | GovernmentValidationFinishedState;
|
|
78
55
|
declare function createGovernmentValidationManager(options: CreateGovernmentValidationActorOptions): Manager<GovernmentValidationState> & {
|
|
79
56
|
load(): void;
|
|
80
|
-
setOtpCode(code: string): void;
|
|
81
|
-
validateOtp(): void;
|
|
82
|
-
submitOtp(code: string): void;
|
|
83
|
-
resendOtp(): void;
|
|
84
|
-
retry(): void;
|
|
85
57
|
};
|
|
86
58
|
declare function createGovernmentValidationManagerFromActor(actor: GovernmentValidationActor): Manager<GovernmentValidationState> & {
|
|
87
59
|
load(): void;
|
|
88
|
-
setOtpCode(code: string): void;
|
|
89
|
-
validateOtp(): void;
|
|
90
|
-
submitOtp(code: string): void;
|
|
91
|
-
resendOtp(): void;
|
|
92
|
-
retry(): void;
|
|
93
60
|
};
|
|
94
61
|
type GovernmentValidationManager = ReturnType<typeof createGovernmentValidationManager>;
|
|
95
62
|
//#endregion
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
2
|
+
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
+
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CNzJ5UQb.esm.js";
|
|
5
|
+
//#region src/modules/government-validation/governmentValidationActor.ts
|
|
6
|
+
function createGovernmentValidationActor(options) {
|
|
7
|
+
return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/modules/government-validation/governmentValidationManager.ts
|
|
11
|
+
/**
|
|
12
|
+
* Maps a Government Validation state-machine snapshot to the exact Figma
|
|
13
|
+
* "Tracked Events" screen name. Source: Government Record Verification
|
|
14
|
+
* Figma file (`https://www.figma.com/design/5J4kaLMl19s8cLyRMUMW32/Government-Record-Verification---Latest-Design?node-id=25911-4095`).
|
|
15
|
+
* Family is `GovernmentRecordValidation.*` (PascalCase verbatim from
|
|
16
|
+
* Figma).
|
|
17
|
+
*
|
|
18
|
+
* The module runs as a backend-only step (no result screen, no OTP
|
|
19
|
+
* sub-flow — see docs/_devhub/Module-Government-Validation.md): only the
|
|
20
|
+
* `loading` state maps to a tracked screen, used while the standard loader
|
|
21
|
+
* is shown. `idle` and `finished` are intentionally unmapped — Figma does
|
|
22
|
+
* not define screens for them and `finished` collapses into
|
|
23
|
+
* `moduleClosed`.
|
|
24
|
+
*/
|
|
25
|
+
function getGovernmentValidationScreenName(snapshot) {
|
|
26
|
+
const stateName = topLevelStateName(snapshot.value);
|
|
27
|
+
if (stateName === void 0) return void 0;
|
|
28
|
+
switch (stateName) {
|
|
29
|
+
case "loading": return "GovernmentRecordValidation.analyzing.default";
|
|
30
|
+
default: return;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The validation outcome itself (success, failure, "unavailable for this
|
|
35
|
+
* country") is never treated as an error — it's recorded server-side once
|
|
36
|
+
* the request reaches the BE, and the flow always advances regardless. So
|
|
37
|
+
* this only fires for the one case the BE never sees: the request failing
|
|
38
|
+
* client-side (offline, timeout, DNS/CORS) before it reaches the backend at
|
|
39
|
+
* all — the state machine's `onError` transition is the sole place that
|
|
40
|
+
* sets `context.error`. Without this, that failure would be invisible both
|
|
41
|
+
* server-side (request never arrived) and client-side (no more `error`
|
|
42
|
+
* state name to drive the default instrumentation heuristic now that the
|
|
43
|
+
* result screen is gone). The UI stays silent either way — this only
|
|
44
|
+
* affects analytics/session events, never what's rendered.
|
|
45
|
+
*/
|
|
46
|
+
function getGovernmentValidationErrorName(snapshot) {
|
|
47
|
+
return snapshot.context.error !== void 0 ? "error.requestFailed" : void 0;
|
|
48
|
+
}
|
|
49
|
+
function getGovernmentValidationErrorPayload(snapshot) {
|
|
50
|
+
return snapshot.context.error !== void 0 ? { reason: "requestFailed" } : void 0;
|
|
51
|
+
}
|
|
52
|
+
function mapState(snapshot) {
|
|
53
|
+
const typedSnapshot = snapshot;
|
|
54
|
+
if (typedSnapshot.matches("loading")) return { status: "loading" };
|
|
55
|
+
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
56
|
+
return { status: "idle" };
|
|
57
|
+
}
|
|
58
|
+
function createApi({ actor }) {
|
|
59
|
+
return { load() {
|
|
60
|
+
actor.send({ type: "LOAD" });
|
|
61
|
+
} };
|
|
62
|
+
}
|
|
63
|
+
function createGovernmentValidationManager(options) {
|
|
64
|
+
return createGovernmentValidationManagerFromActor(createGovernmentValidationActor(options));
|
|
65
|
+
}
|
|
66
|
+
function createGovernmentValidationManagerFromActor(actor) {
|
|
67
|
+
return createManager({
|
|
68
|
+
actor,
|
|
69
|
+
mapState,
|
|
70
|
+
createApi,
|
|
71
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.governmentValidation, {
|
|
72
|
+
getEventScreenName: getGovernmentValidationScreenName,
|
|
73
|
+
getErrorName: getGovernmentValidationErrorName,
|
|
74
|
+
getErrorPayload: getGovernmentValidationErrorPayload
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
export { createGovernmentValidationManagerFromActor as n, createGovernmentValidationManager as t };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
3
|
+
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
+
//#region src/modules/government-validation/governmentValidationServices.ts
|
|
6
|
+
async function processGovernmentValidation(signal) {
|
|
7
|
+
const res = await api.post(endpoints.governmentValidation, {}, { signal });
|
|
8
|
+
if (!res.ok) throw new Error(`POST ${endpoints.governmentValidation} failed: ${res.status} ${res.statusText}`);
|
|
9
|
+
return res.data;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/modules/government-validation/governmentValidationStateMachine.ts
|
|
13
|
+
/**
|
|
14
|
+
* Government Record Validation runs as a backend-only step (see
|
|
15
|
+
* docs/_devhub/Module-Government-Validation.md): the SDK shows the standard
|
|
16
|
+
* loader while the call resolves, then advances to `finished` regardless of
|
|
17
|
+
* the validation outcome (success, failure, or unavailable for the
|
|
18
|
+
* country). The outcome is recorded server-side (BE logs / session events)
|
|
19
|
+
* for CS and debugging — nothing is surfaced to the end user, so there is
|
|
20
|
+
* no result screen and no OTP sub-flow here.
|
|
21
|
+
*/
|
|
22
|
+
const governmentValidationMachine = setup({
|
|
23
|
+
types: {
|
|
24
|
+
context: {},
|
|
25
|
+
events: {},
|
|
26
|
+
input: {}
|
|
27
|
+
},
|
|
28
|
+
actors: { processValidation: fromPromise(async ({ signal }) => {
|
|
29
|
+
return processGovernmentValidation(signal);
|
|
30
|
+
}) },
|
|
31
|
+
actions: { setError: assign(({ event }) => ({ error: String(event.error) })) }
|
|
32
|
+
}).createMachine({
|
|
33
|
+
id: "governmentValidation",
|
|
34
|
+
initial: "idle",
|
|
35
|
+
context: ({ input }) => ({
|
|
36
|
+
config: input.config,
|
|
37
|
+
error: void 0
|
|
38
|
+
}),
|
|
39
|
+
states: {
|
|
40
|
+
idle: { on: { LOAD: { target: "loading" } } },
|
|
41
|
+
loading: { invoke: {
|
|
42
|
+
id: "processValidation",
|
|
43
|
+
src: "processValidation",
|
|
44
|
+
onDone: { target: "finished" },
|
|
45
|
+
onError: {
|
|
46
|
+
target: "finished",
|
|
47
|
+
actions: "setError"
|
|
48
|
+
}
|
|
49
|
+
} },
|
|
50
|
+
finished: { type: "final" }
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
export { governmentValidationMachine as t };
|
package/dist/home.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as StateMachine, C as StateValue, a as ActorRefFromLogic, c as AnyEventObject, g as IsNotNever, h as InputFrom, k as MachineSnapshot, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import "./StateMachine-EDpYWy0i.js";
|
|
3
3
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
4
|
-
import { t as EmptyConfig } from "./types-
|
|
4
|
+
import { t as EmptyConfig } from "./types-BqezaTnP.js";
|
|
5
5
|
//#region src/modules/home/types.d.ts
|
|
6
6
|
type HomeConfig = EmptyConfig;
|
|
7
7
|
//#endregion
|
package/dist/id-selfie-flow.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import "./Actor-iTq7YY48.js";
|
|
|
4
4
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
5
5
|
import { t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
|
|
6
6
|
import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
7
|
-
import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-
|
|
7
|
+
import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-tHovquP4.js";
|
|
8
8
|
//#region src/modules/id-selfie-flow/types.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* The capture steps an ID + Selfie flow session can run, in flow order. A
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-2nOSCCnG.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-CXsJAvBD.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-
|
|
4
|
+
import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-D6lWadVX.esm.js";
|
|
5
5
|
import { c as createManager, n as sendTo, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
|
-
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
7
|
+
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-RJnRexzw.esm.js";
|
|
8
8
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
9
9
|
import { a as uploadSelfie, r as processFace } from "./selfieErrorUtils-ArUCoICg.esm.js";
|
|
10
10
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
11
11
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-Dowxd3J3.esm.js";
|
|
12
|
-
import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-
|
|
13
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
14
|
-
import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-
|
|
12
|
+
import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-DLNKi_EM.esm.js";
|
|
13
|
+
import { n as getFinishStatus } from "./flowCompletionService-B0iuFfdZ.esm.js";
|
|
14
|
+
import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-BwvCvHQQ.esm.js";
|
|
15
15
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
16
16
|
/** Default autocapture window for the selfie step. */
|
|
17
17
|
const SELFIE_AUTOCAPTURE_MS = 1e4;
|
package/dist/id.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapabil
|
|
|
2
2
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
3
3
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
4
4
|
import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
|
|
5
|
-
import { A as ManualUploadSide, C as RecordingSession, D as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, E as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, O as MANUAL_UPLOAD_MAX_RETRIES, S as IdFlowStep, _ as IdCaptureThresholds, a as DetectionArea, b as IdError, c as IdCaptureConfig, d as IdCaptureEvent, f as IdCaptureGeometry, g as IdCaptureOutput, h as IdCaptureOnlyConfig, i as CapturedImage, j as ManualUploadTab, k as ManualUploadContext, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, r as CaptureOnlyResponse, s as ID_ERROR_CODES, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCapturedImageData, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-
|
|
6
|
-
import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-
|
|
5
|
+
import { A as ManualUploadSide, C as RecordingSession, D as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, E as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, O as MANUAL_UPLOAD_MAX_RETRIES, S as IdFlowStep, _ as IdCaptureThresholds, a as DetectionArea, b as IdError, c as IdCaptureConfig, d as IdCaptureEvent, f as IdCaptureGeometry, g as IdCaptureOutput, h as IdCaptureOnlyConfig, i as CapturedImage, j as ManualUploadTab, k as ManualUploadContext, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, r as CaptureOnlyResponse, s as ID_ERROR_CODES, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCapturedImageData, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-isCyg__O.js";
|
|
6
|
+
import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-CfE4iEi0.js";
|
|
7
7
|
//#region src/modules/id/idCaptureOnlyManager.d.ts
|
|
8
8
|
type IdCaptureOnlyManager = IdCaptureManager;
|
|
9
9
|
/**
|
package/dist/id.esm.js
CHANGED
|
@@ -2,9 +2,9 @@ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.e
|
|
|
2
2
|
import { n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
|
|
3
3
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
-
import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
6
|
-
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
7
|
-
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-
|
|
5
|
+
import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-C4UMP5JD.esm.js";
|
|
6
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-CdJ5tIzZ.esm.js";
|
|
7
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-DLNKi_EM.esm.js";
|
|
8
8
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-GpvMuz9o.esm.js";
|
|
9
9
|
//#region src/modules/id/idCaptureOnlyStateMachine.ts
|
|
10
10
|
function buildSubImage(canvas) {
|
|
@@ -5,8 +5,8 @@ import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.
|
|
|
5
5
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-Dd7Yj25O.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
|
|
7
7
|
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Dgtg_4Lv.esm.js";
|
|
8
|
-
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
9
|
-
import { m as resolveIdCaptureThresholds, p as resolveCaptureResultPreviewTreatment } from "./idCaptureServices-
|
|
8
|
+
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-C4UMP5JD.esm.js";
|
|
9
|
+
import { m as resolveIdCaptureThresholds, p as resolveCaptureResultPreviewTreatment } from "./idCaptureServices-DLNKi_EM.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) {
|
|
@@ -5,11 +5,11 @@ import "./Actor-iTq7YY48.js";
|
|
|
5
5
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
6
6
|
import "./index-B8weJxmL.js";
|
|
7
7
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
8
|
-
import { a as RegulationTypes } from "./types-
|
|
8
|
+
import { a as RegulationTypes } from "./types-BqezaTnP.js";
|
|
9
9
|
import { n as PermissionStatus } from "./types-BEwVKkLJ.js";
|
|
10
10
|
import { t as DeepsightService } from "./deepsightService-Dr7sNZ5r.js";
|
|
11
11
|
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
|
|
12
|
-
import { A as ManualUploadSide, C as RecordingSession, T as IAnalyticsCapability, a as DetectionArea, c as IdCaptureConfig, d as IdCaptureEvent, g as IdCaptureOutput, h as IdCaptureOnlyConfig, j as ManualUploadTab, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, t as AddBarcodeV3Response, u as IdCaptureDependencies, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-
|
|
12
|
+
import { A as ManualUploadSide, C as RecordingSession, T as IAnalyticsCapability, a as DetectionArea, c as IdCaptureConfig, d as IdCaptureEvent, g as IdCaptureOutput, h as IdCaptureOnlyConfig, j as ManualUploadTab, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, t as AddBarcodeV3Response, u as IdCaptureDependencies, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-isCyg__O.js";
|
|
13
13
|
//#region src/modules/id/idCaptureStateMachine.d.ts
|
|
14
14
|
declare const idCaptureMachine: AnyStateMachine;
|
|
15
15
|
type IdCaptureMachine = StateMachine<IdCaptureContext, IdCaptureEvent, any, any, any, any, any, any, any, IdCaptureInput, any, any, any, any>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
1
|
+
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-Cl__Mk57.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
4
4
|
import { i as isDesktop } from "./platform-Q4r1nvWX.esm.js";
|
|
5
5
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
7
|
import { s as queryCameraPermission } from "./permissionServices-Dgtg_4Lv.esm.js";
|
|
8
|
-
import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-
|
|
9
|
-
import { a as isBackFacingTrack, n as getBackCameraStream } from "./backCameraStream-
|
|
8
|
+
import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-RJnRexzw.esm.js";
|
|
9
|
+
import { a as isBackFacingTrack, n as getBackCameraStream } from "./backCameraStream-D30zZBEZ.esm.js";
|
|
10
10
|
import { t as getDeviceClass } from "./getDeviceClass-Sh0zhEv7.esm.js";
|
|
11
|
-
import { n as preloadOpenViduProvider } from "./recordingService-
|
|
11
|
+
import { n as preloadOpenViduProvider } from "./recordingService-CLsBGwrX.esm.js";
|
|
12
12
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-Dowxd3J3.esm.js";
|
|
13
13
|
//#region src/internal/camera/cameraServices.ts
|
|
14
14
|
function createCameraServices(camera) {
|
package/dist/{idCaptureStateMachine-CUZyF8Bl.esm.js → idCaptureStateMachine-C4UMP5JD.esm.js}
RENAMED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
2
|
+
import { s as exposeExperimentOnce } from "./feature-management-Cl__Mk57.esm.js";
|
|
3
3
|
import { n as revokeObjectURL } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
4
4
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
5
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-C8mkify_.esm.js";
|
|
6
6
|
import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-DYiyoSlx.esm.js";
|
|
7
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
8
|
-
import "./trueSight-
|
|
7
|
+
import { t as getDisableIpify } from "./sessionInitializer-BWxNWUni.esm.js";
|
|
8
|
+
import "./trueSight-CzaYWY8k.esm.js";
|
|
9
9
|
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
10
10
|
import { t as isAndroid } from "./platform-Q4r1nvWX.esm.js";
|
|
11
|
-
import "./session-
|
|
11
|
+
import "./session-Bgkz0Bl9.esm.js";
|
|
12
12
|
import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
13
13
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
14
14
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-Dgtg_4Lv.esm.js";
|
|
15
|
-
import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-
|
|
15
|
+
import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-RJnRexzw.esm.js";
|
|
16
16
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
17
17
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
18
|
-
import { t as getBrowser } from "./getBrowser-
|
|
18
|
+
import { t as getBrowser } from "./getBrowser-DmNprTMV.esm.js";
|
|
19
19
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
20
20
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
21
21
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DJNYwEOq.esm.js";
|
|
22
22
|
import { r as flagIdManualReview, t as imageFileToDataUrl } from "./imageFile-DutiOU7n.esm.js";
|
|
23
|
-
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as getIdCameraStream, h as CAPTURE_RESULT_PREVIEW, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-
|
|
23
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as getIdCameraStream, h as CAPTURE_RESULT_PREVIEW, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-DLNKi_EM.esm.js";
|
|
24
24
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
25
25
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
26
26
|
function isKnownFailReason(reason) {
|
|
@@ -1284,7 +1284,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
1284
1284
|
});
|
|
1285
1285
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1286
1286
|
if (!input.dependencies) return;
|
|
1287
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1287
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-Ct8Fmn7_.esm.js");
|
|
1288
1288
|
return loadDeepsightSession({
|
|
1289
1289
|
ds: input.ds,
|
|
1290
1290
|
storage: input.dependencies.storage,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Manager-CQQ99QOI.js";
|
|
2
|
-
import { n as Flow } from "./types-
|
|
2
|
+
import { n as Flow } from "./types-BqezaTnP.js";
|
|
3
3
|
import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
4
4
|
//#region src/internal/flow-events/flowEvents.d.ts
|
|
5
5
|
type FlowStartedEvent = {
|
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-CXsJAvBD.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as MandatoryConsentConfig } from "./types-
|
|
2
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
1
|
+
import { r as MandatoryConsentConfig } from "./types-D10PIjOT.js";
|
|
2
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-DbGLEuuz.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-Cz98fh9O.d.ts → mandatoryConsentManager-DbGLEuuz.d.ts}
RENAMED
|
@@ -2,7 +2,7 @@ import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorR
|
|
|
2
2
|
import "./StateMachine-EDpYWy0i.js";
|
|
3
3
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
|
-
import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-
|
|
5
|
+
import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-D10PIjOT.js";
|
|
6
6
|
//#region src/modules/mandatory-consent/mandatoryConsentStateMachine.d.ts
|
|
7
7
|
type MandatoryConsentContext = {
|
|
8
8
|
config: MandatoryConsentConfig;
|
|
@@ -61,14 +61,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
61
61
|
type: "clearError";
|
|
62
62
|
params: NonReducibleUnknown;
|
|
63
63
|
};
|
|
64
|
-
toggleSigned: {
|
|
65
|
-
type: "toggleSigned";
|
|
66
|
-
params: NonReducibleUnknown;
|
|
67
|
-
};
|
|
68
64
|
resetContext: {
|
|
69
65
|
type: "resetContext";
|
|
70
66
|
params: NonReducibleUnknown;
|
|
71
67
|
};
|
|
68
|
+
toggleSigned: {
|
|
69
|
+
type: "toggleSigned";
|
|
70
|
+
params: NonReducibleUnknown;
|
|
71
|
+
};
|
|
72
72
|
}>, {
|
|
73
73
|
type: "canSubmit";
|
|
74
74
|
params: unknown;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { c as mlWasmJSApi_default, i as BaseWasmProvider } from "./safeStorage-2nOSCCnG.esm.js";
|
|
2
2
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
3
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-C8mkify_.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
-
import "./trueSight-
|
|
5
|
+
import "./trueSight-CzaYWY8k.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
7
7
|
import { i as isDesktop, s as isIPhone14OrHigher } from "./platform-Q4r1nvWX.esm.js";
|
|
8
8
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
|
|
9
9
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
10
10
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
11
|
-
import { i as hasBackCamera, n as getBackCameraStream, r as getDesktopCameraStream, t as ensureFrontCameraStream } from "./backCameraStream-
|
|
11
|
+
import { i as hasBackCamera, n as getBackCameraStream, r as getDesktopCameraStream, t as ensureFrontCameraStream } from "./backCameraStream-D30zZBEZ.esm.js";
|
|
12
12
|
//#region ../infra/src/scheduling/yieldUntilNextPaint.ts
|
|
13
13
|
/**
|
|
14
14
|
* Resolves after the browser has had a chance to commit and paint a queued
|
|
@@ -523,7 +523,7 @@ async function stopRecording(session) {
|
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
async function initializeDeepsightSession(options) {
|
|
526
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
526
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-Ct8Fmn7_.esm.js");
|
|
527
527
|
return loadDeepsightSession({
|
|
528
528
|
ds: options.ds,
|
|
529
529
|
storage: options.storage
|
package/dist/personhood.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
|
6
6
|
import { y as IncodeCanvas } from "./createFaceAvatar-pUEkdk4X.js";
|
|
7
7
|
import { i as IStorageCapability, t as IWasmUtilCapability } from "./IWasmUtilCapability-5-Pncgma.js";
|
|
8
8
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
9
|
-
import { n as DetectionStatus } from "./types-
|
|
9
|
+
import { n as DetectionStatus } from "./types-KeV54Tt6.js";
|
|
10
10
|
import { t as FaceDetectionProvider } from "./FaceDetectionProvider-Cn1wS-sA.js";
|
|
11
11
|
import { n as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-Dr7sNZ5r.js";
|
|
12
12
|
//#region src/modules/personhood/types.d.ts
|
package/dist/personhood.esm.js
CHANGED
|
@@ -2,15 +2,15 @@ import { r as WasmUtilProvider } from "./safeStorage-2nOSCCnG.esm.js";
|
|
|
2
2
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.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-C8mkify_.esm.js";
|
|
6
6
|
import { n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
|
|
7
|
-
import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
7
|
+
import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-BWxNWUni.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
9
9
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
10
10
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.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-Dgtg_4Lv.esm.js";
|
|
13
|
-
import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
13
|
+
import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-RJnRexzw.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 QE_CONSENT_KEYS, c as getDefaultConsentChecks, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-DAV5Qd7D.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 isAndroid } from "./platform-Q4r1nvWX.esm.js";
|
|
2
|
-
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-
|
|
2
|
+
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-RJnRexzw.esm.js";
|
|
3
3
|
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-vXDI73LZ.esm.js";
|
|
4
4
|
//#region ../infra/src/media/VideoTrimmer.ts
|
|
5
5
|
async function getDurationBySeek(videoBlob) {
|
|
@@ -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-C8mkify_.esm.js";
|
|
3
3
|
import { C as createEventBus } from "./events-DYiyoSlx.esm.js";
|
|
4
4
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
|
-
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-
|
|
2
|
+
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-D6qnBVUw.js";
|
|
3
3
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
4
4
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
5
|
-
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-
|
|
5
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-KeV54Tt6.js";
|
|
6
6
|
import { t as DeepsightService } from "./deepsightService-Dr7sNZ5r.js";
|
|
7
|
-
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-
|
|
7
|
+
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-dki4G9tK.js";
|
|
8
8
|
//#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
|
|
9
9
|
type SelfieCaptureOnlyState = FaceCaptureManagerState;
|
|
10
10
|
type SelfieCaptureOnlyManager = FaceCaptureManager;
|
package/dist/selfie.esm.js
CHANGED
|
@@ -3,11 +3,11 @@ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.e
|
|
|
3
3
|
import { n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
|
|
4
4
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-q_Csi0hg.esm.js";
|
|
7
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CA_aJRiS.esm.js";
|
|
8
8
|
import { r as processFace } from "./selfieErrorUtils-ArUCoICg.esm.js";
|
|
9
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
10
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
9
|
+
import { t as selfieMachine } from "./selfieStateMachine-BCruqTSI.esm.js";
|
|
10
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-BNRQ9O-F.esm.js";
|
|
11
11
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-GpvMuz9o.esm.js";
|
|
12
12
|
//#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
|
|
13
13
|
/**
|