@incodetech/core 2.3.0-rc.8 → 2.3.0
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-5-MGxBk6.esm.js → BrowserDiagnosticsCryptoProvider-BuzqvbhN.esm.js} +6 -24
- package/dist/{FaceDetectionProvider-DypXyX5c.esm.js → FaceDetectionProvider-Lb6i4Ilt.esm.js} +7 -7
- package/dist/{MotionSensorProvider-BgTYwg9L.esm.js → MotionSensorProvider-DyhbM4Si.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-4Pik-5MI.esm.js → apiError-Dkl9_HOx.esm.js} +1 -1
- package/dist/authentication.d.ts +2 -2
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DcTHmYmL.d.ts → authenticationManager-B23V74p7.d.ts} +1 -1
- package/dist/{authenticationManager-DOINObSm.esm.js → authenticationManager-C7BaQC99.esm.js} +4 -4
- package/dist/{authenticationStateMachine-BIFwZ10i.esm.js → authenticationStateMachine-CW7a9qpV.esm.js} +3 -3
- package/dist/camera.esm.js +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
- package/dist/{createCameraCycleOwnership-CX3hJGKc.esm.js → createCameraCycleOwnership-DnwTl1ad.esm.js} +6 -1
- package/dist/{deepsightLoader-DkFE8YIF.esm.js → deepsightLoader-DgaaacGJ.esm.js} +6 -6
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-BeR7ttQy.esm.js → documentCaptureManager-BRPxqYD2.esm.js} +1 -1
- package/dist/{documentCaptureManager-DD0qtFdE.d.ts → documentCaptureManager-W7ZXcuvL.d.ts} +14 -0
- package/dist/{documentCaptureStateMachine-C_8bQ3fw.esm.js → documentCaptureStateMachine-D312sSIu.esm.js} +12 -7
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-CBULYDVK.esm.js → dynamicFormsManager-Cm33oGqC.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-BZOa354n.esm.js → dynamicFormsStateMachine-4EVsg15i.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-TkRpTfhD.esm.js → ekybManager-CgjQ2Thl.esm.js} +1 -1
- package/dist/{ekybStateMachine-CsNFTbTv.esm.js → ekybStateMachine-Dwgt5Dqa.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-D_EKcYMu.esm.js → electronicSignatureManager-DGEUq9nY.esm.js} +1 -1
- package/dist/extensibility.d.ts +7 -7
- package/dist/extensibility.esm.js +12 -12
- package/dist/{faceCaptureManagerFactory-vZTG70oT.esm.js → faceCaptureManagerFactory-3x7qaM76.esm.js} +3 -3
- package/dist/{faceCaptureManagerFactory-Cx-8SqRy.d.ts → faceCaptureManagerFactory-DMLstvui.d.ts} +35 -3
- package/dist/{faceCaptureSetup-DJuqgytw.esm.js → faceCaptureSetup-CJzsvv1I.esm.js} +10 -9
- package/dist/{feature-management-CZ-nMsqU.esm.js → feature-management-BG6sf4O4.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-tBWtQeo7.esm.js → flowCompletionService-BusrkMdp.esm.js} +1 -1
- package/dist/{flowServices-CAgj_Her.esm.js → flowServices-pIc1cq8q.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CVuxiwBM.esm.js → geolocationManager-BbgMboZ-.esm.js} +1 -1
- package/dist/{geolocationStateMachine-CQqZ5gcL.esm.js → geolocationStateMachine-Bixn87pI.esm.js} +1 -1
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +9 -10
- package/dist/id.d.ts +1 -1
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-bznawUFX.esm.js → idCaptureDefaults-BmnsDgZZ.esm.js} +3 -3
- package/dist/{idCaptureManager-De7O0TOD.d.ts → idCaptureManager-BaHEyQyr.d.ts} +0 -1
- package/dist/{idCaptureManager-DptfJ9IG.esm.js → idCaptureManager-BpdRLyqZ.esm.js} +5 -5
- package/dist/{idCaptureServices-BEJ8nz7l.esm.js → idCaptureServices-Di_APvz_.esm.js} +9 -8
- package/dist/{idCaptureStateMachine-Cx0T0ARJ.esm.js → idCaptureStateMachine-hY-RpDH_.esm.js} +14 -14
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-vhv1co_n.d.ts → mandatoryConsentManager-Csfl7_XQ.d.ts} +4 -4
- package/dist/{multipartRecordingService-CuXLH4tK.esm.js → multipartRecordingService-mwKFTlhR.esm.js} +733 -15
- package/dist/{permissionGuards-uYZYFu4J.esm.js → permissionGuards-D6TfVop2.esm.js} +1 -1
- package/dist/{permissionServices-Bj_fyWtv.esm.js → permissionServices-EY3_Vx6c.esm.js} +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-D22IPoPN.esm.js → runChildModule-kZQwHJ21.esm.js} +1 -1
- package/dist/{safeStorage-B-trhxg6.esm.js → safeStorage-BdU9_m2E.esm.js} +1 -1
- package/dist/{sdkVersion-CRxt5823.esm.js → sdkVersion-KY79FtZx.esm.js} +1 -1
- package/dist/selfie.d.ts +2 -2
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieManager-DfH-2r_c.esm.js → selfieManager-Bjane9c3.esm.js} +4 -4
- package/dist/{selfieManager-jXqwqosi.d.ts → selfieManager-CDCTOrcg.d.ts} +1 -1
- package/dist/{selfieStateMachine-DPnxoVg_.esm.js → selfieStateMachine-OsbjyRR6.esm.js} +3 -3
- package/dist/{session-CVnTjODB.esm.js → session-D4EAR74k.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-C9m14Xqj.esm.js → sessionInitializer-BqGb0lFN.esm.js} +3 -3
- package/dist/{setup-COWDO2Xv.esm.js → setup-Cc6MzR5Q.esm.js} +7 -57
- package/dist/{setup-CLfBztP0.d.ts → setup-Cyko6cAn.d.ts} +4 -17
- package/dist/{trueSightService-DOiLWpRP.esm.js → trueSightService-Di5RGIls.esm.js} +16 -554
- package/dist/video-selfie.d.ts +61 -3
- package/dist/video-selfie.esm.js +60 -14
- package/dist/{videoSelfieCameraWarmer-Dq9ffySJ.esm.js → videoSelfieCameraWarmer-PV8PLwmD.esm.js} +5 -5
- package/dist/{videoSelfieStepDetector-Co0Gu2k2.d.ts → videoSelfieStepDetector-CAqAG2G3.d.ts} +49 -0
- package/dist/{warmup-CUUnwYxe.esm.js → warmup-ChDwHSel.esm.js} +5 -0
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-B2e8p268.esm.js → wasmDsFlagSync-DYrLUEII.esm.js} +1 -1
- package/dist/workflow.esm.js +15 -15
- package/package.json +2 -7
- package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +0 -36
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +0 -42
- package/dist/personhood.d.ts +0 -538
- package/dist/personhood.esm.js +0 -1574
- package/dist/types-BT_Oalip.d.ts +0 -1
package/dist/{faceCaptureManagerFactory-Cx-8SqRy.d.ts → faceCaptureManagerFactory-DMLstvui.d.ts}
RENAMED
|
@@ -4,15 +4,14 @@ import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
5
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
6
6
|
import "./index-B8weJxmL.js";
|
|
7
|
-
import { s as FaceFeed, t as AvatarId, u as FaceCoordinates, y as IncodeCanvas } from "./createFaceAvatar-BlcTYgJv.js";
|
|
7
|
+
import { c as FaceAttributesThresholds, d as FaceDetectionCallbacks, f as FaceDetectionConfig, h as IFaceDetectionCapability, l as FaceChecksConfig, m as FacePositionConstraints, p as FaceDetectionThresholds, s as FaceFeed, t as AvatarId, u as FaceCoordinates, v as WebApiHostRequestConfig, y as IncodeCanvas } from "./createFaceAvatar-BlcTYgJv.js";
|
|
8
8
|
import { i as FlowModuleConfig } from "./types-Do5rEXij.js";
|
|
9
9
|
import "./IWasmUtilCapability-CNWRl7jr.js";
|
|
10
10
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
11
11
|
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-Bnl58jUQ.js";
|
|
12
12
|
import { t as AuthenticationConfig } from "./types-ChAowIxT.js";
|
|
13
|
-
import "./
|
|
13
|
+
import { t as BaseWasmProvider } from "./BaseWasmProvider-Dyi6dKp1.js";
|
|
14
14
|
import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-_8gdW5Lk.js";
|
|
15
|
-
import { t as FaceDetectionProvider } from "./FaceDetectionProvider-LdZ47bWy.js";
|
|
16
15
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
17
16
|
//#region src/modules/authentication/authenticationStateMachine.d.ts
|
|
18
17
|
declare const _authenticationMachine: AnyStateMachine;
|
|
@@ -73,6 +72,39 @@ type RecordingService = {
|
|
|
73
72
|
cleanup(): void;
|
|
74
73
|
};
|
|
75
74
|
//#endregion
|
|
75
|
+
//#region ../infra/src/providers/wasm/FaceDetectionProvider.d.ts
|
|
76
|
+
declare class FaceDetectionProvider extends BaseWasmProvider implements IFaceDetectionCapability {
|
|
77
|
+
private defaultThresholds;
|
|
78
|
+
private currentThresholds;
|
|
79
|
+
private currentFrame;
|
|
80
|
+
private onFaceDataCallback;
|
|
81
|
+
constructor();
|
|
82
|
+
processFrame(image: ImageData): Promise<void>;
|
|
83
|
+
initialize(config: FaceDetectionConfig): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Last-registered onCapture callback — captured into a private
|
|
86
|
+
* field so `forceCapture()` (called from outside the WASM-callback
|
|
87
|
+
* lifecycle) can re-fire the same wrapper. `setCallbacks` rebinds
|
|
88
|
+
* this on each invocation, so the field always reflects the
|
|
89
|
+
* current consumer.
|
|
90
|
+
*/
|
|
91
|
+
private currentOnCaptureWrapper;
|
|
92
|
+
processPhoto(canvas: HTMLCanvasElement): void;
|
|
93
|
+
postFaceResults(config?: WebApiHostRequestConfig): Promise<unknown>;
|
|
94
|
+
setCallbacks(callbacks: FaceDetectionCallbacks): void;
|
|
95
|
+
setPositionConstraints(constraints: FacePositionConstraints): void;
|
|
96
|
+
applyDefaults(autocaptureInterval?: number): void;
|
|
97
|
+
setAutocaptureInterval(interval: number): void;
|
|
98
|
+
setThresholds(thresholds: FaceDetectionThresholds): void;
|
|
99
|
+
setAttributesThresholds(thresholds: FaceAttributesThresholds): void;
|
|
100
|
+
setChecksEnabled(config: FaceChecksConfig): void;
|
|
101
|
+
setVideoSelfieMode(enabled: boolean): void;
|
|
102
|
+
forceCapture(): void;
|
|
103
|
+
reset(): void;
|
|
104
|
+
private createDefaultFaceCoordinates;
|
|
105
|
+
private formatFaceCoordinates;
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
76
108
|
//#region src/modules/selfie/types.d.ts
|
|
77
109
|
/**
|
|
78
110
|
* Public selfie configuration.
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-
|
|
1
|
+
import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-Di5RGIls.esm.js";
|
|
2
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
3
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
-
import "./sessionInitializer-
|
|
4
|
+
import "./sessionInitializer-BqGb0lFN.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
|
|
7
7
|
import { t as isAndroid } from "./platform-DkcRc9JV.esm.js";
|
|
8
8
|
import { i as assign, n as enqueueActions, r as sendTo, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
9
9
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
10
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
11
|
-
import { a as sendLabelInspectionEvent, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
10
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-EY3_Vx6c.esm.js";
|
|
11
|
+
import { a as sendLabelInspectionEvent, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider } from "./FaceDetectionProvider-Lb6i4Ilt.esm.js";
|
|
12
12
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
13
|
-
import { a as flagFaceManualReview, i as imageFileToDataUrl, n as runProtectedAttempt, r as cameraCycleProvider, s as PROTECTED_CAPTURE_TARGET, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-
|
|
13
|
+
import { a as flagFaceManualReview, i as imageFileToDataUrl, n as runProtectedAttempt, r as cameraCycleProvider, s as PROTECTED_CAPTURE_TARGET, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-DnwTl1ad.esm.js";
|
|
14
14
|
import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-BNHdeFj8.esm.js";
|
|
15
15
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
16
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
16
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-D6TfVop2.esm.js";
|
|
17
|
+
import { a as getAdaptiveMediaRecorderOptions, i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-mwKFTlhR.esm.js";
|
|
17
18
|
import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
|
|
18
|
-
import { n as CameraCompositor, r as getAdaptiveMediaRecorderOptions, t as MultipartRecordingService } from "./multipartRecordingService-CuXLH4tK.esm.js";
|
|
19
19
|
//#region src/internal/avatar/concealment.ts
|
|
20
20
|
/**
|
|
21
21
|
* Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
|
|
@@ -602,7 +602,8 @@ var LocalRecordingService = class {
|
|
|
602
602
|
*/
|
|
603
603
|
var MultipartFaceRecordingService = class {
|
|
604
604
|
constructor() {
|
|
605
|
-
this.
|
|
605
|
+
this.recordingCompositor = createRecordingCompositor();
|
|
606
|
+
this.service = new MultipartRecordingService("selfie", new WorkerEncoderRecordingProvider(this.recordingCompositor));
|
|
606
607
|
this.audioSource = [];
|
|
607
608
|
this.needsVideoSourceReplacement = false;
|
|
608
609
|
this.pausedForAttempt = false;
|
|
@@ -617,7 +618,7 @@ var MultipartFaceRecordingService = class {
|
|
|
617
618
|
return;
|
|
618
619
|
}
|
|
619
620
|
const recordingSource = stream.clone();
|
|
620
|
-
const compositor =
|
|
621
|
+
const compositor = this.recordingCompositor;
|
|
621
622
|
this.startInFlight = true;
|
|
622
623
|
try {
|
|
623
624
|
const composite = compositor.start(recordingSource);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __toESM } from "./rolldown-runtime-FDOR9p9I.esm.js";
|
|
2
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
2
|
+
import { t as SDK_VERSION } from "./sdkVersion-KY79FtZx.esm.js";
|
|
3
3
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
4
4
|
let currentEnvironment;
|
|
5
5
|
/** Effective tier: the explicitly-set value, else the default (see note above). */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-BG6sf4O4.esm.js";
|
|
2
2
|
export { EXPERIMENT_UNAVAILABLE_SENTINEL, ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, enumParam, exposeExperimentOnce, getExperiment, getFeatureDynamicConfig, getFeatureGate, getFeatureManagementVersion, getFeatureParameterStore, getIsFeatureManagementInitialized, getLayer, logEvent, numberParam, resolveExperiment, resolveExperimentOnce, stringParam, subscribeFeatureManagement, updateFeatureManagementUser };
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { v as addEvent } from "./events-ijlbX_Wx.esm.js";
|
|
2
|
-
import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-
|
|
2
|
+
import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-pIc1cq8q.esm.js";
|
|
3
3
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
|
-
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-
|
|
6
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
5
|
+
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-BusrkMdp.esm.js";
|
|
6
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-kZQwHJ21.esm.js";
|
|
7
7
|
import { n as isAdvanceableError } from "./advanceableErrors-CpF2cBy6.esm.js";
|
|
8
8
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
9
9
|
const noOpFlowModuleMachine = setup({}).createMachine({
|
package/dist/{flowCompletionService-tBWtQeo7.esm.js → flowCompletionService-BusrkMdp.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
3
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
3
|
+
import { i as toIncodeApiError } from "./apiError-Dkl9_HOx.esm.js";
|
|
4
4
|
//#region src/modules/flow/flowCompletionService.ts
|
|
5
5
|
const getFinishStatus = async (flowId, signal) => {
|
|
6
6
|
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as getWasmStatus } from "./warmup-
|
|
2
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
1
|
+
import { n as getWasmStatus } from "./warmup-ChDwHSel.esm.js";
|
|
2
|
+
import { E as updateFeatureManagementUser } from "./feature-management-BG6sf4O4.esm.js";
|
|
3
3
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
-
import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-
|
|
4
|
+
import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-BqGb0lFN.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
6
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
7
|
-
import "./session-
|
|
6
|
+
import { i as toIncodeApiError } from "./apiError-Dkl9_HOx.esm.js";
|
|
7
|
+
import "./session-D4EAR74k.esm.js";
|
|
8
8
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
9
9
|
//#region src/modules/flow/dashboardConfig.ts
|
|
10
10
|
function isPlainObject(value) {
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createGeolocationManager } from "./geolocationManager-
|
|
2
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
1
|
+
import { t as createGeolocationManager } from "./geolocationManager-BbgMboZ-.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-Bixn87pI.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
3
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
3
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-Bixn87pI.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
5
5
|
var BrowserGeolocationProvider = class {
|
|
6
6
|
getCurrentPosition() {
|
package/dist/{geolocationStateMachine-CQqZ5gcL.esm.js → geolocationStateMachine-Bixn87pI.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-B-3Q-LUw.esm.js";
|
|
3
3
|
import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
|
|
4
|
-
import { n as isConnectivityError } from "./apiError-
|
|
4
|
+
import { n as isConnectivityError } from "./apiError-Dkl9_HOx.esm.js";
|
|
5
5
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
7
7
|
//#region src/modules/geolocation/geolocationServices.ts
|
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-RNiFhvXR.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-CAqAG2G3.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,19 +1,18 @@
|
|
|
1
|
-
import { r as WasmUtilProvider } from "./safeStorage-
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { r as WasmUtilProvider } from "./safeStorage-BdU9_m2E.esm.js";
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-Cc6MzR5Q.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-
|
|
4
|
+
import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-pIc1cq8q.esm.js";
|
|
5
5
|
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
7
|
-
import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
8
|
-
import {
|
|
7
|
+
import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-Lb6i4Ilt.esm.js";
|
|
8
|
+
import { o as StreamCanvasProcessingSession, r as CameraCompositor } from "./multipartRecordingService-mwKFTlhR.esm.js";
|
|
9
9
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
10
10
|
import { a as uploadSelfie, r as processFace } from "./selfieErrorUtils-UiQ46EBa.esm.js";
|
|
11
|
-
import { n as
|
|
12
|
-
import {
|
|
13
|
-
import { _ as validateUploadResponse, h as uploadIdImage, u as processId, v as ID_ERROR_CODES } from "./idCaptureServices-BEJ8nz7l.esm.js";
|
|
11
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BmnsDgZZ.esm.js";
|
|
12
|
+
import { _ as validateUploadResponse, h as uploadIdImage, u as processId, v as ID_ERROR_CODES } from "./idCaptureServices-Di_APvz_.esm.js";
|
|
14
13
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
15
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
16
|
-
import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-
|
|
14
|
+
import { n as getFinishStatus } from "./flowCompletionService-BusrkMdp.esm.js";
|
|
15
|
+
import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-PV8PLwmD.esm.js";
|
|
17
16
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
18
17
|
/** Default autocapture window for the selfie step. */
|
|
19
18
|
const SELFIE_AUTOCAPTURE_MS = 1e4;
|
package/dist/id.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.j
|
|
|
3
3
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
4
4
|
import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-RNiFhvXR.js";
|
|
5
5
|
import { A as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, B as DeviceWalletProvider, C as IdDocumentType, D as UploadIdResponse, E as IdFlowStep, F as DeviceWalletDecision, G as DigitalIdPlatformSupport, H as DIGITAL_ID_REGISTRY, I as DeviceWalletDecryptResponse, J as resolveDigitalIdImplementation, K as ResolvedDigitalIdRoute, L as DeviceWalletFailReason, M as ManualUploadContext, N as ManualUploadSide, P as ManualUploadTab, R as DeviceWalletOutput, S as IdCapturedImageData, T as IdErrorCode, U as DigitalIdDocumentType, V as DIGITAL_ID_DOCUMENT_TYPES, W as DigitalIdFunnelEntry, Y as DigitalIdProviderId, Z as RedirectReturnParams, _ as IdCaptureInput, a as CaptureOnlyResponse, b as IdCaptureOutput, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureGeometry, h as IdCaptureEvent, i as CaptureIdResponse, j as MANUAL_UPLOAD_MAX_RETRIES, k as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, q as isRedirectFlowType, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureMode, w as IdError, x as IdCaptureThresholds, y as IdCaptureOnlyConfig, z as DeviceWalletPlatform } from "./types-byBHOzCG2.js";
|
|
6
|
-
import { A as pauseRecordingForAttempt, C as addBarcode, D as getRealQualityValue, E as finalizeRecordingSession, F as stopRecording, I as stopStream, L as uploadIdImage, M as processId, N as resumeRecordingAfterPause, O as initializeIdCapture, P as startRecordingSession, R as uploadManualIdFile, S as ValidationError, T as disposeRecordingSession, _ as IdCaptureInitResult, a as CreateIdCaptureOnlyActorOptions, b as UploadIdImageParams, c as IdCaptureOnlyMachine, d as IdCaptureActor, f as createIdCaptureActor, g as FinalizedIdRecording, h as AddBarcodeParams, j as prepareRecordingForCameraRetry, k as isSuspendableRecordingSession, l as idCaptureOnlyMachine, m as idCaptureMachine, n as IdCaptureManager, o as IdCaptureOnlyActor, p as IdCaptureMachine, r as IdCaptureState, s as createIdCaptureOnlyActor, t as createIdCaptureManager, u as CreateIdCaptureActorOptions, v as InitializeIdCaptureParams, w as barcodeToBase64, x as UploadManualIdFileParams, y as StartRecordingParams, z as validateUploadResponse } from "./idCaptureManager-
|
|
6
|
+
import { A as pauseRecordingForAttempt, C as addBarcode, D as getRealQualityValue, E as finalizeRecordingSession, F as stopRecording, I as stopStream, L as uploadIdImage, M as processId, N as resumeRecordingAfterPause, O as initializeIdCapture, P as startRecordingSession, R as uploadManualIdFile, S as ValidationError, T as disposeRecordingSession, _ as IdCaptureInitResult, a as CreateIdCaptureOnlyActorOptions, b as UploadIdImageParams, c as IdCaptureOnlyMachine, d as IdCaptureActor, f as createIdCaptureActor, g as FinalizedIdRecording, h as AddBarcodeParams, j as prepareRecordingForCameraRetry, k as isSuspendableRecordingSession, l as idCaptureOnlyMachine, m as idCaptureMachine, n as IdCaptureManager, o as IdCaptureOnlyActor, p as IdCaptureMachine, r as IdCaptureState, s as createIdCaptureOnlyActor, t as createIdCaptureManager, u as CreateIdCaptureActorOptions, v as InitializeIdCaptureParams, w as barcodeToBase64, x as UploadManualIdFileParams, y as StartRecordingParams, z as validateUploadResponse } from "./idCaptureManager-BaHEyQyr.js";
|
|
7
7
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
package/dist/id.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { i as assign, s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
4
|
-
import { a as createIdProtectedCaptureController, c as DIGITAL_ID_DOCUMENT_TYPES, d as resolveDigitalIdImplementation, f as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, h as resolveWalletPlatform, i as createIdCaptureOnlyDeliveryActor, l as DIGITAL_ID_REGISTRY, m as MANUAL_UPLOAD_MAX_RETRIES, n as provideIdProtectedCaptureController, p as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as attachIdProtectedCaptureController, t as idCaptureMachine, u as isRedirectFlowType } from "./idCaptureStateMachine-
|
|
5
|
-
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
6
|
-
import { _ as validateUploadResponse, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as uploadManualIdFile, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, v as ID_ERROR_CODES } from "./idCaptureServices-
|
|
4
|
+
import { a as createIdProtectedCaptureController, c as DIGITAL_ID_DOCUMENT_TYPES, d as resolveDigitalIdImplementation, f as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, h as resolveWalletPlatform, i as createIdCaptureOnlyDeliveryActor, l as DIGITAL_ID_REGISTRY, m as MANUAL_UPLOAD_MAX_RETRIES, n as provideIdProtectedCaptureController, p as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as attachIdProtectedCaptureController, t as idCaptureMachine, u as isRedirectFlowType } from "./idCaptureStateMachine-hY-RpDH_.esm.js";
|
|
5
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-BpdRLyqZ.esm.js";
|
|
6
|
+
import { _ as validateUploadResponse, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as uploadManualIdFile, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, v as ID_ERROR_CODES } from "./idCaptureServices-Di_APvz_.esm.js";
|
|
7
7
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BjzPjJ_p.esm.js";
|
|
8
8
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.ts
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as resolveWasmSource, p as WASM_MODEL_FILES } from "./wasmWebClient-B7baE-Wf.esm.js";
|
|
2
|
-
import {
|
|
3
|
-
import { s as wasmRuntime, t as getResolvedModelSource } from "./warmup-
|
|
4
|
-
import { i as BaseWasmProvider } from "./safeStorage-
|
|
2
|
+
import { E as getBarcodeEnhanceModelUrl } from "./trueSightService-Di5RGIls.esm.js";
|
|
3
|
+
import { s as wasmRuntime, t as getResolvedModelSource } from "./warmup-ChDwHSel.esm.js";
|
|
4
|
+
import { i as BaseWasmProvider } from "./safeStorage-BdU9_m2E.esm.js";
|
|
5
5
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
6
6
|
//#region ../infra/src/wasm/idCaptureWasmApi.ts
|
|
7
7
|
var IdCaptureWasmApi = class {
|
|
@@ -9,7 +9,6 @@ import { a as RegulationTypes } from "./types-Do5rEXij.js";
|
|
|
9
9
|
import { n as VirtualCameraCheckOutput, r as WasmUtilConfig, t as IWasmUtilCapability } from "./IWasmUtilCapability-CNWRl7jr.js";
|
|
10
10
|
import { n as PermissionStatus } from "./types-BEwVKkLJ.js";
|
|
11
11
|
import { t as BaseWasmProvider } from "./BaseWasmProvider-Dyi6dKp1.js";
|
|
12
|
-
import "./types-BT_Oalip.js";
|
|
13
12
|
import { n as DeepsightService } from "./StreamCanvasCapture-_8gdW5Lk.js";
|
|
14
13
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
15
14
|
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-RNiFhvXR.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-Cc6MzR5Q.esm.js";
|
|
2
2
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
|
-
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-
|
|
5
|
+
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DYrLUEII.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
7
|
-
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
8
|
-
import { a as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, s as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
9
|
-
import { b as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-
|
|
7
|
+
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-EY3_Vx6c.esm.js";
|
|
8
|
+
import { a as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, s as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-hY-RpDH_.esm.js";
|
|
9
|
+
import { b as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-Di_APvz_.esm.js";
|
|
10
10
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
11
11
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
12
12
|
function isHoldingState(value) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
-
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-Cc6MzR5Q.esm.js";
|
|
2
|
+
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-BG6sf4O4.esm.js";
|
|
3
3
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
5
5
|
import { i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
6
6
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
8
|
-
import { s as queryCameraPermission } from "./permissionServices-
|
|
8
|
+
import { s as queryCameraPermission } from "./permissionServices-EY3_Vx6c.esm.js";
|
|
9
|
+
import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-mwKFTlhR.esm.js";
|
|
9
10
|
import { a as isBackFacingTrack, n as getBackCameraStream } from "./backCameraStream-B0-YgP_y.esm.js";
|
|
10
11
|
import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
|
|
11
|
-
import { n as
|
|
12
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-bznawUFX.esm.js";
|
|
12
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BmnsDgZZ.esm.js";
|
|
13
13
|
//#region src/internal/camera/cameraServices.ts
|
|
14
14
|
function createCameraServices(camera) {
|
|
15
15
|
return {
|
|
@@ -599,15 +599,16 @@ async function startRecordingSession(params) {
|
|
|
599
599
|
if (multipartSession) multipartSession.recorderPaused = false;
|
|
600
600
|
return params.existing;
|
|
601
601
|
}
|
|
602
|
-
const service = new MultipartRecordingService(params.type);
|
|
603
602
|
const recordingSource = params.stream.clone();
|
|
604
|
-
const compositor =
|
|
603
|
+
const compositor = createRecordingCompositor();
|
|
604
|
+
let service;
|
|
605
605
|
try {
|
|
606
606
|
const recordingStream = compositor.start(recordingSource);
|
|
607
|
+
service = new MultipartRecordingService(params.type, new WorkerEncoderRecordingProvider(compositor));
|
|
607
608
|
await service.start(recordingStream);
|
|
608
609
|
} catch (error) {
|
|
609
610
|
compositor.stop();
|
|
610
|
-
service
|
|
611
|
+
service?.cleanup();
|
|
611
612
|
throw error;
|
|
612
613
|
}
|
|
613
614
|
return createMultipartSessionHandle(service, compositor, recordingSource);
|
package/dist/{idCaptureStateMachine-Cx0T0ARJ.esm.js → idCaptureStateMachine-hY-RpDH_.esm.js}
RENAMED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
2
|
-
import { r as WasmUtilProvider } from "./safeStorage-
|
|
3
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-Di5RGIls.esm.js";
|
|
2
|
+
import { r as WasmUtilProvider } from "./safeStorage-BdU9_m2E.esm.js";
|
|
3
|
+
import { l as BrowserStorageProvider } from "./setup-Cc6MzR5Q.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
5
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
5
|
+
import { s as exposeExperimentOnce } from "./feature-management-BG6sf4O4.esm.js";
|
|
6
6
|
import { n as revokeObjectURL, t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
7
7
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
8
8
|
import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-ijlbX_Wx.esm.js";
|
|
9
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
9
|
+
import { t as getDisableIpify } from "./sessionInitializer-BqGb0lFN.esm.js";
|
|
10
10
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
11
11
|
import { t as addDeviceStats } from "./stats-CZcy2J53.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-D4EAR74k.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
16
|
import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-D6phjq1-.esm.js";
|
|
17
17
|
import { r as getCameraReacquisitionConstraints } from "./camera-sIa9ceW2.esm.js";
|
|
18
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
19
|
-
import { i as imageFileToDataUrl, n as runProtectedAttempt, o as flagIdManualReview, r as cameraCycleProvider, s as PROTECTED_CAPTURE_TARGET, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-
|
|
18
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-EY3_Vx6c.esm.js";
|
|
19
|
+
import { i as imageFileToDataUrl, n as runProtectedAttempt, o as flagIdManualReview, r as cameraCycleProvider, s as PROTECTED_CAPTURE_TARGET, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-DnwTl1ad.esm.js";
|
|
20
20
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
21
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
22
|
-
import {
|
|
21
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-D6TfVop2.esm.js";
|
|
22
|
+
import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-mwKFTlhR.esm.js";
|
|
23
23
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
24
24
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
25
25
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
26
26
|
import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-Cjab7FTI.esm.js";
|
|
27
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-
|
|
28
|
-
import { C as getIdCameraStream, S as OPTIMIZING_WATCHDOG_MARGIN_MS, _ as validateUploadResponse, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as uploadManualIdFile, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, v as ID_ERROR_CODES, x as CAPTURE_OPTIMIZING } from "./idCaptureServices-
|
|
27
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BmnsDgZZ.esm.js";
|
|
28
|
+
import { C as getIdCameraStream, S as OPTIMIZING_WATCHDOG_MARGIN_MS, _ as validateUploadResponse, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as uploadManualIdFile, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, v as ID_ERROR_CODES, x as CAPTURE_OPTIMIZING } from "./idCaptureServices-Di_APvz_.esm.js";
|
|
29
29
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
30
30
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
31
31
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
@@ -1781,7 +1781,7 @@ fromPromise(async ({ input }) => {
|
|
|
1781
1781
|
});
|
|
1782
1782
|
fromPromise(async ({ input }) => {
|
|
1783
1783
|
if (!input.dependencies) return;
|
|
1784
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1784
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-DgaaacGJ.esm.js");
|
|
1785
1785
|
return loadDeepsightSession({
|
|
1786
1786
|
ds: input.ds,
|
|
1787
1787
|
storage: input.dependencies.storage,
|
|
@@ -2224,7 +2224,7 @@ function cleanup(service) {
|
|
|
2224
2224
|
service.cleanup();
|
|
2225
2225
|
} catch {}
|
|
2226
2226
|
}
|
|
2227
|
-
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-
|
|
2227
|
+
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-DgaaacGJ.esm.js")).loadDeepsightSession(input)) {
|
|
2228
2228
|
let disposed = false;
|
|
2229
2229
|
let preparation;
|
|
2230
2230
|
let service;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-
|
|
1
|
+
import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-Cyko6cAn.js";
|
|
2
2
|
export { type SetupOptions, isConfigured, reset, setup };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, r as isConfigured, s as setup } from "./setup-
|
|
1
|
+
import { i as reset, r as isConfigured, s as setup } from "./setup-Cc6MzR5Q.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as MandatoryConsentConfig } from "./types-9_esGTPj.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-Csfl7_XQ.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-vhv1co_n.d.ts → mandatoryConsentManager-Csfl7_XQ.d.ts}
RENAMED
|
@@ -61,14 +61,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
61
61
|
type: "clearError";
|
|
62
62
|
params: NonReducibleUnknown;
|
|
63
63
|
};
|
|
64
|
-
resetContext: {
|
|
65
|
-
type: "resetContext";
|
|
66
|
-
params: NonReducibleUnknown;
|
|
67
|
-
};
|
|
68
64
|
toggleSigned: {
|
|
69
65
|
type: "toggleSigned";
|
|
70
66
|
params: NonReducibleUnknown;
|
|
71
67
|
};
|
|
68
|
+
resetContext: {
|
|
69
|
+
type: "resetContext";
|
|
70
|
+
params: NonReducibleUnknown;
|
|
71
|
+
};
|
|
72
72
|
}>, {
|
|
73
73
|
type: "canSubmit";
|
|
74
74
|
params: unknown;
|