@incodetech/core 0.0.0-dev-20260831-e0b1ec3e → 0.0.0-dev-20260831-15fb9a3e
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-D-brZd0n.esm.js → BrowserDiagnosticsCryptoProvider-BQrcg6N5.esm.js} +1 -1
- package/dist/{BrowserStorageProvider-DC___749.esm.js → BrowserStorageProvider-DNJMxY8l.esm.js} +1 -1
- package/dist/{MotionSensorProvider-Dq6GJ-ke.esm.js → MotionSensorProvider-nnSH-kVd.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-pVExQuwZ.esm.js → apiError-CaDkVLZi.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-Cbqd1jY0.esm.js → authenticationManager-DJKjzC3X.esm.js} +4 -4
- package/dist/{authenticationStateMachine-Oj_QiFZM.esm.js → authenticationStateMachine-DhkYD789.esm.js} +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-uhDPdU6i.d.ts → consentManager-DLOyIZzt.d.ts} +1 -1
- package/dist/{deepsightLoader-DdgzfNqc.esm.js → deepsightLoader-uDQtiMMD.esm.js} +6 -6
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DrXzgDgl.esm.js → documentCaptureManager-BdB-QEqs.esm.js} +1 -1
- package/dist/{documentCaptureManager-DD0qtFdE.d.ts → documentCaptureManager-DensIj5F.d.ts} +1 -1
- package/dist/{documentCaptureStateMachine-P791mQyQ.esm.js → documentCaptureStateMachine-Cf_K0PkY.esm.js} +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-BT70ntas.esm.js → dynamicFormsManager-BeqCdBeB.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-Wm3Qk4Og.esm.js → dynamicFormsStateMachine-DWr_VKEO.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-D_eYl2XT.esm.js → ekybManager-CHSGM1AM.esm.js} +1 -1
- package/dist/{ekybStateMachine-BtUtCow-.esm.js → ekybStateMachine-Rsfsc4zN.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DMl5qN8w.esm.js → electronicSignatureManager-D0y_6Voy.esm.js} +1 -1
- package/dist/extensibility.d.ts +5 -5
- package/dist/extensibility.esm.js +12 -12
- package/dist/{faceCaptureManagerFactory-Bshb1ei1.esm.js → faceCaptureManagerFactory-qOOvmoWF.esm.js} +3 -3
- package/dist/{faceCaptureSetup-VhCtXFHh.esm.js → faceCaptureSetup-BFYFAdpO.esm.js} +3 -3
- package/dist/{feature-management-BGp5JXEs.esm.js → feature-management-D0Nqta0o.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-Dv1WW2pP.esm.js → flowCompletionService-B2jwbHSy.esm.js} +1 -1
- package/dist/{flowServices-D3cLNBun.esm.js → flowServices-Ba36bu0O.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DN0Bno91.esm.js → geolocationManager-DRgkLaMt.esm.js} +1 -1
- package/dist/{geolocationStateMachine-DIM4MbiT.esm.js → geolocationStateMachine-De2k5a9X.esm.js} +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +8 -8
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-SJH6Td2K.esm.js → idCaptureDefaults-B5_zmRgY.esm.js} +1 -1
- package/dist/{idCaptureManager-DUQtwq8R.esm.js → idCaptureManager-B2X9EwyK.esm.js} +5 -5
- package/dist/{idCaptureServices-eA84vRnx.esm.js → idCaptureServices-BN9nyRNy.esm.js} +3 -3
- package/dist/{idCaptureStateMachine-BHQiU_qh.esm.js → idCaptureStateMachine-yw_wKsfm.esm.js} +10 -10
- package/dist/{idOcrManager-BF_cXZq8.d.ts → idOcrManager-CFlDwUvN.d.ts} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-BFDI7iFK.d.ts → identityReuseManager-BXEBBI3N.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-DvR2XzUH.d.ts → mandatoryConsentManager-CohPXtwL.d.ts} +1 -1
- package/dist/{onDeviceFaceResults-By6JExpS.esm.js → onDeviceFaceResults-Dw1BPPDY.esm.js} +4 -4
- package/dist/{permissionGuards-tw0DA6fF.esm.js → permissionGuards-BHw_SD3h.esm.js} +1 -1
- package/dist/{permissionServices-D209jzcE.esm.js → permissionServices-J5S1dEIf.esm.js} +2 -2
- package/dist/personhood.esm.js +6 -6
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-eGnqjjQZ.esm.js → runChildModule-l4_-MDMa.esm.js} +1 -1
- package/dist/{safeStorage-7CmStgyt.esm.js → safeStorage-0bZuUtSP.esm.js} +4 -2
- package/dist/{sdkVersion-C3Ov_zq7.esm.js → sdkVersion-B3ilZndH.esm.js} +1 -1
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieManager-H-KELqyV.esm.js → selfieManager-2UQJE9WJ.esm.js} +4 -4
- package/dist/{selfieStateMachine-Dr2nfgMp.esm.js → selfieStateMachine-DWm0e-pC.esm.js} +2 -2
- package/dist/{session-BQth2eww.esm.js → session-BF1xfre9.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CqQyhPfm.esm.js → sessionInitializer-6jirjFSg.esm.js} +4 -4
- package/dist/{setup-qH3XKIRQ.esm.js → setup-D_ZJuBWy.esm.js} +7 -7
- package/dist/trueSight-BN-_8Ird.esm.js +1 -0
- package/dist/{trueSightService-QiGjDkBK.esm.js → trueSightService-2uu5sXR5.esm.js} +2 -2
- package/dist/video-selfie.esm.js +56 -17
- package/dist/{videoSelfieCameraWarmer-Bii8IaBN.esm.js → videoSelfieCameraWarmer-G3BdUnNu.esm.js} +4 -4
- package/dist/wasm.esm.js +2 -2
- package/dist/{wasmDsFlagSync-BTc8xI86.esm.js → wasmDsFlagSync-CyCdsfox.esm.js} +1 -1
- package/dist/workflow.esm.js +16 -16
- package/package.json +1 -1
- package/dist/trueSight-BzKA0pUI.esm.js +0 -1
package/dist/{idCaptureStateMachine-BHQiU_qh.esm.js → idCaptureStateMachine-yw_wKsfm.esm.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-
|
|
1
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DNJMxY8l.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-D0Nqta0o.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-2uu5sXR5.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-6jirjFSg.esm.js";
|
|
9
9
|
import { t as endpoints } from "./endpoints-CXZYMaDj.esm.js";
|
|
10
|
-
import "./trueSight-
|
|
10
|
+
import "./trueSight-BN-_8Ird.esm.js";
|
|
11
11
|
import { t as addDeviceStats } from "./stats-CI6TkL3K.esm.js";
|
|
12
12
|
import { a as isIOS, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-DkcRc9JV.esm.js";
|
|
13
|
-
import "./session-
|
|
13
|
+
import "./session-BF1xfre9.esm.js";
|
|
14
14
|
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";
|
|
15
15
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
16
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
16
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-J5S1dEIf.esm.js";
|
|
17
17
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
18
18
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
19
19
|
import { a as StreamCanvasProcessingSession } from "./recordingsRepository-BF82zFip.esm.js";
|
|
20
20
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
21
21
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
22
22
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
23
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
23
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-BHw_SD3h.esm.js";
|
|
24
24
|
import { r as flagIdManualReview, t as imageFileToDataUrl } from "./imageFile-DPRoXt59.esm.js";
|
|
25
|
-
import { _ as getIdCameraStream, a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as OPTIMIZING_WATCHDOG_MARGIN_MS, h as CAPTURE_OPTIMIZING, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-
|
|
25
|
+
import { _ as getIdCameraStream, a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as OPTIMIZING_WATCHDOG_MARGIN_MS, h as CAPTURE_OPTIMIZING, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-BN9nyRNy.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) {
|
|
@@ -2086,7 +2086,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
2086
2086
|
});
|
|
2087
2087
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
2088
2088
|
if (!input.dependencies) return;
|
|
2089
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
2089
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-uDQtiMMD.esm.js");
|
|
2090
2090
|
return loadDeepsightSession({
|
|
2091
2091
|
ds: input.ds,
|
|
2092
2092
|
storage: input.dependencies.storage,
|
|
@@ -110,7 +110,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
|
|
|
110
110
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
111
111
|
params: unknown;
|
|
112
112
|
};
|
|
113
|
-
}>, never, "error" | "idle" | "success" | "finished" | "
|
|
113
|
+
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
114
114
|
readonly id: "idOcr";
|
|
115
115
|
readonly initial: "idle";
|
|
116
116
|
readonly context: ({ input }: {
|
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-BXEBBI3N.js";
|
|
2
2
|
export { type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -125,7 +125,7 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
125
125
|
type: "hasSelection";
|
|
126
126
|
params: unknown;
|
|
127
127
|
};
|
|
128
|
-
}>, never, "error" | "idle" | "finished" | "
|
|
128
|
+
}>, never, "error" | "idle" | "finished" | "loading" | "submitting" | "documentsFound", string, IdentityReuseInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
129
129
|
readonly id: "identityReuse";
|
|
130
130
|
readonly initial: "idle";
|
|
131
131
|
readonly context: ({ input }: {
|
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-D_ZJuBWy.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as MandatoryConsentConfig } from "./types-R1jpOcvl.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-CohPXtwL.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-DvR2XzUH.d.ts → mandatoryConsentManager-CohPXtwL.d.ts}
RENAMED
|
@@ -72,7 +72,7 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
72
72
|
}>, {
|
|
73
73
|
type: "canSubmit";
|
|
74
74
|
params: unknown;
|
|
75
|
-
}, never, "error" | "idle" | "closed" | "finished" | "
|
|
75
|
+
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
76
76
|
readonly id: "mandatoryConsent";
|
|
77
77
|
readonly initial: "idle";
|
|
78
78
|
readonly context: ({ input }: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as BaseWasmProvider, l as wasmRuntime } from "./safeStorage-
|
|
1
|
+
import { i as BaseWasmProvider, l as wasmRuntime } from "./safeStorage-0bZuUtSP.esm.js";
|
|
2
2
|
import { r as getToken } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
4
|
-
import "./trueSight-
|
|
3
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-2uu5sXR5.esm.js";
|
|
4
|
+
import "./trueSight-BN-_8Ird.esm.js";
|
|
5
5
|
import { t as addDeviceStats } from "./stats-CI6TkL3K.esm.js";
|
|
6
6
|
import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
7
7
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
|
|
@@ -514,7 +514,7 @@ async function stopRecording(session) {
|
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
async function initializeDeepsightSession(options) {
|
|
517
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
517
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-uDQtiMMD.esm.js");
|
|
518
518
|
return loadDeepsightSession({
|
|
519
519
|
ds: options.ds,
|
|
520
520
|
storage: options.storage
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isWasmMotionPrimedForModule } from "./permissionServices-
|
|
1
|
+
import { a as isWasmMotionPrimedForModule } from "./permissionServices-J5S1dEIf.esm.js";
|
|
2
2
|
//#region src/internal/permissions/permissionGuards.ts
|
|
3
3
|
function resolveStoredPermissionResult(fromEvent, fromContext) {
|
|
4
4
|
if (fromEvent === "granted" || fromEvent === "denied" || fromEvent === "prompt" || fromEvent === "refresh") return fromEvent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as WasmUtilProvider } from "./safeStorage-
|
|
1
|
+
import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.esm.js";
|
|
2
2
|
import { n as isAndroidWebView } from "./platform-DkcRc9JV.esm.js";
|
|
3
|
-
import { t as MotionSensorProvider } from "./MotionSensorProvider-
|
|
3
|
+
import { t as MotionSensorProvider } from "./MotionSensorProvider-nnSH-kVd.esm.js";
|
|
4
4
|
import { a as stopCameraStream, o as clearCameraGrantedInDocument, r as requestCameraAccess, s as isCameraGrantedInDocument } from "./camera-_2sXMXiF.esm.js";
|
|
5
5
|
//#region ../infra/src/media/permissions.ts
|
|
6
6
|
async function queryPermission(name) {
|
package/dist/personhood.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { r as WasmUtilProvider } from "./safeStorage-
|
|
2
|
-
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-
|
|
1
|
+
import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.esm.js";
|
|
2
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DNJMxY8l.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-2uu5sXR5.esm.js";
|
|
6
6
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.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-6jirjFSg.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-CXZYMaDj.esm.js";
|
|
9
9
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
10
10
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
11
11
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
|
|
12
|
-
import { i as requestPermission, t as checkPermission } from "./permissionServices-
|
|
13
|
-
import { f as stopStream, l as startDetection, p as FaceDetectionProvider, s as initializeDeepsightSession } from "./onDeviceFaceResults-
|
|
12
|
+
import { i as requestPermission, t as checkPermission } from "./permissionServices-J5S1dEIf.esm.js";
|
|
13
|
+
import { f as stopStream, l as startDetection, p as FaceDetectionProvider, s as initializeDeepsightSession } from "./onDeviceFaceResults-Dw1BPPDY.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-D0y_6Voy.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-2uu5sXR5.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";
|
|
@@ -710,8 +710,10 @@ var BaseWasmProvider = class {
|
|
|
710
710
|
async initializeBase(config, pipeline) {
|
|
711
711
|
if (this._isInitialized) return;
|
|
712
712
|
const status = getWasmStatus();
|
|
713
|
-
if (status.isLoading || isWasmReady() || status.error)
|
|
714
|
-
|
|
713
|
+
if (status.isLoading || isWasmReady() || status.error) {
|
|
714
|
+
await waitForWasm();
|
|
715
|
+
if (this.pipelineType !== void 0 && !getWasmStatus().loadedPipelines.includes(pipeline)) throw new Error(`WASM pipeline "${pipeline}" is not loaded.`);
|
|
716
|
+
} else {
|
|
715
717
|
if (!config.wasmPath || !config.glueCodePath && !config.loadGlue) throw new Error("WASM path and glue code path are required. Call warmupWasm() first.");
|
|
716
718
|
await warmupWasm({
|
|
717
719
|
...config,
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as WasmUtilProvider } from "./safeStorage-
|
|
2
|
-
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-
|
|
1
|
+
import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.esm.js";
|
|
2
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DNJMxY8l.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { i as assign, s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-BFYFAdpO.esm.js";
|
|
7
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-qOOvmoWF.esm.js";
|
|
8
8
|
import { r as processFace } from "./selfieErrorUtils-YPP_eGhX.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-DWm0e-pC.esm.js";
|
|
10
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-2UQJE9WJ.esm.js";
|
|
11
11
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BjzPjJ_p.esm.js";
|
|
12
12
|
//#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
|
|
13
13
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as WasmUtilProvider } from "./safeStorage-
|
|
2
|
-
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-
|
|
1
|
+
import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.esm.js";
|
|
2
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DNJMxY8l.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-qOOvmoWF.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-DWm0e-pC.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
3
|
-
import { n as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-
|
|
3
|
+
import { n as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-BFYFAdpO.esm.js";
|
|
4
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-Dw1BPPDY.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
6
|
import { a as uploadSelfie, i as uploadManualSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-YPP_eGhX.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieStateMachine.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as getApi } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-
|
|
3
|
-
import "./sessionInitializer-
|
|
2
|
+
import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-2uu5sXR5.esm.js";
|
|
3
|
+
import "./sessionInitializer-6jirjFSg.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CXZYMaDj.esm.js";
|
|
5
|
-
import "./trueSight-
|
|
6
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
5
|
+
import "./trueSight-BN-_8Ird.esm.js";
|
|
6
|
+
import { r as toIncodeApiError } from "./apiError-CaDkVLZi.esm.js";
|
|
7
7
|
//#region src/internal/session/sessionService.ts
|
|
8
8
|
/**
|
|
9
9
|
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
package/dist/session.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as initializeSession } from "./sessionInitializer-
|
|
2
|
-
import { t as IncodeApiError } from "./apiError-
|
|
3
|
-
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
4
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
1
|
+
import { i as initializeSession } from "./sessionInitializer-6jirjFSg.esm.js";
|
|
2
|
+
import { t as IncodeApiError } from "./apiError-CaDkVLZi.esm.js";
|
|
3
|
+
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-BF1xfre9.esm.js";
|
|
4
|
+
import { n as getFinishStatus } from "./flowCompletionService-B2jwbHSy.esm.js";
|
|
5
5
|
export { IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser } from "./feature-management-D0Nqta0o.esm.js";
|
|
2
2
|
import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { _ as noteTokenActivated, d as fetchFeatureConfig, f as isFeatureEnabled, l as trueSightLog, m as noteEnvironment, p as resetFeatureConfigCache, s as startTrueSightCollection } from "./trueSightService-
|
|
3
|
+
import { _ as noteTokenActivated, d as fetchFeatureConfig, f as isFeatureEnabled, l as trueSightLog, m as noteEnvironment, p as resetFeatureConfigCache, s as startTrueSightCollection } from "./trueSightService-2uu5sXR5.esm.js";
|
|
4
4
|
import { v as addEvent, y as getAnalyticsBatcher } from "./events-ijlbX_Wx.esm.js";
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-B3ilZndH.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-CXZYMaDj.esm.js";
|
|
7
|
-
import "./trueSight-
|
|
7
|
+
import "./trueSight-BN-_8Ird.esm.js";
|
|
8
8
|
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-CI6TkL3K.esm.js";
|
|
9
9
|
import { n as UAParser, t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
|
|
10
10
|
import { a as isIOS } from "./platform-DkcRc9JV.esm.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { a as resolveWasmConfig } from "./wasmDefaults-DEOK0oAq.esm.js";
|
|
2
|
-
import { c as warmupWasm, r as WasmUtilProvider, s as setWasmOnDeviceMode } from "./safeStorage-
|
|
3
|
-
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-
|
|
2
|
+
import { c as warmupWasm, r as WasmUtilProvider, s as setWasmOnDeviceMode } from "./safeStorage-0bZuUtSP.esm.js";
|
|
3
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DNJMxY8l.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
5
|
-
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-
|
|
5
|
+
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-D0Nqta0o.esm.js";
|
|
6
6
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
7
7
|
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
8
|
-
import { S as upgradeToWasmHttpClient$1, b as installFreshHttpClient, g as noteTestingSignals, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as resetHttpClientState, y as getStoredHttpConfig } from "./trueSightService-
|
|
8
|
+
import { S as upgradeToWasmHttpClient$1, b as installFreshHttpClient, g as noteTestingSignals, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as resetHttpClientState, y as getStoredHttpConfig } from "./trueSightService-2uu5sXR5.esm.js";
|
|
9
9
|
import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-ijlbX_Wx.esm.js";
|
|
10
|
-
import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy, v as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
10
|
+
import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy, v as BrowserEnvironmentProvider } from "./sessionInitializer-6jirjFSg.esm.js";
|
|
11
11
|
import { t as endpoints } from "./endpoints-CXZYMaDj.esm.js";
|
|
12
|
-
import "./trueSight-
|
|
12
|
+
import "./trueSight-BN-_8Ird.esm.js";
|
|
13
13
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-CI6TkL3K.esm.js";
|
|
14
14
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-4RsGrIt6.esm.js";
|
|
15
|
-
import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-
|
|
15
|
+
import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-Ba36bu0O.esm.js";
|
|
16
16
|
//#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
|
|
17
17
|
var BrowserPageLifecycleProvider = class {
|
|
18
18
|
sendBeacon(url, body, contentType = "application/json") {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./trueSightService-2uu5sXR5.esm.js";
|
|
@@ -2,7 +2,7 @@ import { a as setWebApiHttpTransport, i as initializeWasmWebClient, o as setupWa
|
|
|
2
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
3
|
import { i as isApiConfigured, n as getApi, o as setClient, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
4
|
import { S as subscribeEvent, n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-B3ilZndH.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-CXZYMaDj.esm.js";
|
|
7
7
|
//#region ../infra/src/http/createApi.ts
|
|
8
8
|
var FetchHttpError = class extends Error {
|
|
@@ -1320,7 +1320,7 @@ let cryptoProviderPromise = null;
|
|
|
1320
1320
|
* the service's prewarm).
|
|
1321
1321
|
*/
|
|
1322
1322
|
function loadDiagnosticsCryptoProvider() {
|
|
1323
|
-
cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-
|
|
1323
|
+
cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-BQrcg6N5.esm.js").then((module) => new module.BrowserDiagnosticsCryptoProvider());
|
|
1324
1324
|
return cryptoProviderPromise;
|
|
1325
1325
|
}
|
|
1326
1326
|
/**
|
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { r as WasmUtilProvider } from "./safeStorage-
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.esm.js";
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-D_ZJuBWy.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
5
|
import { t as endpoints } from "./endpoints-CXZYMaDj.esm.js";
|
|
6
|
-
import { d as videoSelfieWasmPipelines, l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-
|
|
6
|
+
import { d as videoSelfieWasmPipelines, l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-Ba36bu0O.esm.js";
|
|
7
7
|
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
8
8
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
9
9
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
10
10
|
import { t as MultipartRecordingService } from "./multipartRecordingService-BLGAj7Yi.esm.js";
|
|
11
11
|
import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-CpF2cBy6.esm.js";
|
|
12
|
-
import { i as createDefaultStepDetector, n as defaultAcquireCamera, o as isConnectionError, r as CameraCompositor, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-
|
|
12
|
+
import { i as createDefaultStepDetector, n as defaultAcquireCamera, o as isConnectionError, r as CameraCompositor, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-G3BdUnNu.esm.js";
|
|
13
13
|
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BUe2uACW.esm.js";
|
|
14
|
+
//#region src/modules/video-selfie/videoSelfieWasm.ts
|
|
15
|
+
function warmupVideoSelfieWasm(config, steps = resolveVideoSelfieSteps(config)) {
|
|
16
|
+
return ensureWasmPipelines(videoSelfieWasmPipelines(config, steps));
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
14
19
|
//#region src/modules/video-selfie/videoSelfieRecordingMachine.ts
|
|
15
20
|
/** A detector that never settles — used when a step has no auto-capture yet. */
|
|
16
21
|
const manualStepDetector = () => new Promise(() => {});
|
|
@@ -77,10 +82,13 @@ function waitForDwell(ms, signal) {
|
|
|
77
82
|
* Orchestrates a multi-step Video Selfie session as ONE continuous recording
|
|
78
83
|
* that follows the camera between steps AND auto-advances per step:
|
|
79
84
|
*
|
|
80
|
-
* idle ─START▶
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
85
|
+
* idle ─START▶ [preparingWasm ─▶] acquiringCamera ─▶ starting
|
|
86
|
+
* │
|
|
87
|
+
* ▼
|
|
88
|
+
* recording ⇄ switchingCamera
|
|
89
|
+
* │ (capture validated → DETECTION_DONE,
|
|
90
|
+
* │ or manual NEXT_STEP)
|
|
91
|
+
* last step ─▶ finalizing ─▶ finished
|
|
84
92
|
*
|
|
85
93
|
* While `recording`, a per-step detector runs WASM auto-capture + backend
|
|
86
94
|
* validation; success advances the step (switching the camera when the next
|
|
@@ -105,6 +113,7 @@ const videoSelfieRecordingSetup = setup({
|
|
|
105
113
|
VALIDATION_FEEDBACK_DWELL: VALIDATION_FEEDBACK_DWELL_MS
|
|
106
114
|
},
|
|
107
115
|
actors: {
|
|
116
|
+
prepareWasm: fromPromise(async ({ input }) => input.ensure()),
|
|
108
117
|
visibilityChanges: fromCallback(({ input, sendBack }) => input.visibilityObserver.onVisibilityChange((visible) => {
|
|
109
118
|
sendBack({ type: visible ? "FOREGROUND" : "BACKGROUND" });
|
|
110
119
|
})),
|
|
@@ -293,6 +302,7 @@ const videoSelfieRecordingSetup = setup({
|
|
|
293
302
|
})
|
|
294
303
|
},
|
|
295
304
|
guards: {
|
|
305
|
+
shouldEnterWasmGate: ({ context }) => context.ensureWasmReady !== void 0 && context.errorKind !== "maxVideoLengthReached" && context.errorKind !== "validationAttemptsExhausted",
|
|
296
306
|
isLastStep: ({ context }) => context.stepIndex >= context.steps.length - 1,
|
|
297
307
|
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining === UNLIMITED_ATTEMPTS || context.attemptsRemaining > 0,
|
|
298
308
|
nextStepFlipsId: ({ context }) => context.steps[context.stepIndex] === "frontId" && context.steps[context.stepIndex + 1] === "backId",
|
|
@@ -341,6 +351,7 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
|
|
|
341
351
|
service: input.dependencies?.createRecordingService?.() ?? new MultipartRecordingService(),
|
|
342
352
|
compositor: input.dependencies?.createCompositor?.() ?? new CameraCompositor(),
|
|
343
353
|
acquireCamera: input.dependencies?.acquireCamera ?? defaultAcquireCamera,
|
|
354
|
+
ensureWasmReady: input.ensureWasmReady,
|
|
344
355
|
detect: input.dependencies?.detect ?? manualStepDetector,
|
|
345
356
|
timer: input.dependencies?.timer ?? BrowserTimerProvider.getInstance(),
|
|
346
357
|
visibilityObserver,
|
|
@@ -378,7 +389,19 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
|
|
|
378
389
|
FOREGROUND: { actions: "markPageVisible" }
|
|
379
390
|
},
|
|
380
391
|
states: {
|
|
381
|
-
idle: { on: { START: {
|
|
392
|
+
idle: { on: { START: [{
|
|
393
|
+
target: "preparingWasm",
|
|
394
|
+
guard: "shouldEnterWasmGate"
|
|
395
|
+
}, { target: "acquiringCamera" }] } },
|
|
396
|
+
preparingWasm: { invoke: {
|
|
397
|
+
src: "prepareWasm",
|
|
398
|
+
input: ({ context }) => ({ ensure: context.ensureWasmReady }),
|
|
399
|
+
onDone: { target: "acquiringCamera" },
|
|
400
|
+
onError: {
|
|
401
|
+
target: "error",
|
|
402
|
+
actions: "setTechnicalActorError"
|
|
403
|
+
}
|
|
404
|
+
} },
|
|
382
405
|
acquiringCamera: { invoke: {
|
|
383
406
|
src: "acquireCamera",
|
|
384
407
|
input: ({ context }) => ({
|
|
@@ -756,11 +779,15 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
|
|
|
756
779
|
target: "finished",
|
|
757
780
|
guard: "maxVideoLengthWasReached"
|
|
758
781
|
} },
|
|
759
|
-
on: { RETRY: {
|
|
782
|
+
on: { RETRY: [{
|
|
783
|
+
target: "preparingWasm",
|
|
784
|
+
guard: "shouldEnterWasmGate",
|
|
785
|
+
actions: "resetSession"
|
|
786
|
+
}, {
|
|
760
787
|
target: "acquiringCamera",
|
|
761
788
|
guard: "errorIsRetryable",
|
|
762
789
|
actions: "resetSession"
|
|
763
|
-
} }
|
|
790
|
+
}] }
|
|
764
791
|
},
|
|
765
792
|
aborted: {
|
|
766
793
|
type: "final",
|
|
@@ -774,15 +801,32 @@ function getRecordingSteps(options) {
|
|
|
774
801
|
if (options.steps && options.steps.length > 0) return options.steps;
|
|
775
802
|
if (options.config) return resolveVideoSelfieSteps(options.config);
|
|
776
803
|
}
|
|
804
|
+
function createRetryablePreparation(prepare) {
|
|
805
|
+
let readiness;
|
|
806
|
+
return () => {
|
|
807
|
+
if (!readiness) {
|
|
808
|
+
readiness = Promise.resolve().then(prepare).catch((error) => {
|
|
809
|
+
readiness = void 0;
|
|
810
|
+
throw error;
|
|
811
|
+
});
|
|
812
|
+
readiness.catch(() => void 0);
|
|
813
|
+
}
|
|
814
|
+
return readiness;
|
|
815
|
+
};
|
|
816
|
+
}
|
|
777
817
|
function createVideoSelfieRecordingActor(visibilityObserver, options = {}) {
|
|
778
818
|
const config = options.config;
|
|
779
819
|
const steps = getRecordingSteps(options);
|
|
780
820
|
const detect = options.dependencies?.detect ?? (config ? createDefaultStepDetector(config, { getWasmUtil: () => WasmUtilProvider.getInstance() }) : void 0);
|
|
821
|
+
const prepareWasm = config && steps ? () => warmupVideoSelfieWasm(config, steps) : void 0;
|
|
822
|
+
const ensureWasmReady = prepareWasm ? createRetryablePreparation(prepareWasm) : void 0;
|
|
823
|
+
if (ensureWasmReady) ensureWasmReady();
|
|
781
824
|
return createActor(videoSelfieRecordingMachine, { input: {
|
|
782
825
|
steps,
|
|
783
826
|
attemptsPerStep: config?.numberOfTries,
|
|
784
827
|
maxVideoLengthSeconds: config?.maxWaitingVideoSelfieFile,
|
|
785
828
|
visibilityObserver,
|
|
829
|
+
ensureWasmReady,
|
|
786
830
|
dependencies: {
|
|
787
831
|
...options.dependencies,
|
|
788
832
|
detect
|
|
@@ -794,7 +838,7 @@ function createVideoSelfieRecordingActor(visibilityObserver, options = {}) {
|
|
|
794
838
|
function mapState(snapshot) {
|
|
795
839
|
const value = typeof snapshot.value === "string" ? snapshot.value : "idle";
|
|
796
840
|
const { context } = snapshot;
|
|
797
|
-
const status = value === "acquiringCamera" ? "starting" : value === "pausing" || value === "suspended" || value === "resumingCompositor" || value === "reacquiringCamera" || value === "validatingRecoveredCamera" || value === "resumingRecorder" ? "recording" : value;
|
|
841
|
+
const status = value === "preparingWasm" || value === "acquiringCamera" ? "starting" : value === "pausing" || value === "suspended" || value === "resumingCompositor" || value === "reacquiringCamera" || value === "validatingRecoveredCamera" || value === "resumingRecorder" ? "recording" : value;
|
|
798
842
|
const steps = context.steps;
|
|
799
843
|
const stepIndex = context.stepIndex;
|
|
800
844
|
return {
|
|
@@ -859,11 +903,6 @@ function createVideoSelfieRecordingManager(options = {}) {
|
|
|
859
903
|
};
|
|
860
904
|
}
|
|
861
905
|
//#endregion
|
|
862
|
-
//#region src/modules/video-selfie/videoSelfieWasm.ts
|
|
863
|
-
function warmupVideoSelfieWasm(config, steps = resolveVideoSelfieSteps(config)) {
|
|
864
|
-
return ensureWasmPipelines(videoSelfieWasmPipelines(config, steps));
|
|
865
|
-
}
|
|
866
|
-
//#endregion
|
|
867
906
|
//#region src/modules/video-selfie/videoSelfieSpeechService.ts
|
|
868
907
|
/**
|
|
869
908
|
* Fetches `count` random challenge questions the user answers out loud. The
|
package/dist/{videoSelfieCameraWarmer-Bii8IaBN.esm.js → videoSelfieCameraWarmer-G3BdUnNu.esm.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-CXZYMaDj.esm.js";
|
|
4
|
-
import { l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-
|
|
4
|
+
import { l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-Ba36bu0O.esm.js";
|
|
5
5
|
import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
|
|
6
|
-
import { t as checkPermission } from "./permissionServices-
|
|
7
|
-
import { a as encryptSelfieImage, l as startDetection, p as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
6
|
+
import { t as checkPermission } from "./permissionServices-J5S1dEIf.esm.js";
|
|
7
|
+
import { a as encryptSelfieImage, l as startDetection, p as FaceDetectionProvider } from "./onDeviceFaceResults-Dw1BPPDY.esm.js";
|
|
8
8
|
import { a as StreamCanvasProcessingSession } from "./recordingsRepository-BF82zFip.esm.js";
|
|
9
9
|
import { n as getBackCameraStream } from "./backCameraStream-DE_5qY04.esm.js";
|
|
10
10
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
11
11
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
12
12
|
import { a as uploadSelfie, r as processFace, t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-YPP_eGhX.esm.js";
|
|
13
13
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
14
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-
|
|
14
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-B5_zmRgY.esm.js";
|
|
15
15
|
//#region src/modules/video-selfie/videoSelfieCompareService.ts
|
|
16
16
|
async function postVideoSelfieCompare(endpoint, base64Image) {
|
|
17
17
|
return (await api.post(endpoint, { base64Image })).data;
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as WASM_MODEL_FILES, h as WASM_PIPELINE_MODEL_NAMES, p as WASM_PIPELINE_LAZY_MODEL_NAMES } from "./wasmWebClient-BJCaFeBL.esm.js";
|
|
2
2
|
import { a as resolveWasmConfig, n as buildDefaultWasmConfig, r as buildWasmConfigFromBasePath, t as DEFAULT_WASM_VERSION } from "./wasmDefaults-DEOK0oAq.esm.js";
|
|
3
|
-
import { c as warmupWasm } from "./safeStorage-
|
|
4
|
-
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-
|
|
3
|
+
import { c as warmupWasm } from "./safeStorage-0bZuUtSP.esm.js";
|
|
4
|
+
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-D_ZJuBWy.esm.js";
|
|
5
5
|
//#region src/defineWasm.ts
|
|
6
6
|
function requiredModels(pipelines) {
|
|
7
7
|
const models = /* @__PURE__ */ new Set();
|