@incodetech/core 2.1.0-rc.5 → 2.1.0-rc.6
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/ae-signature.d.ts +1 -1
- package/dist/authentication.esm.js +7 -7
- package/dist/{authenticationManager-BN5MY-hj.esm.js → authenticationManager-7J-EmPRB.esm.js} +2 -2
- package/dist/{authenticationStateMachine-C9Ie077T.esm.js → authenticationStateMachine-PRBkRdGA.esm.js} +2 -2
- package/dist/{backCameraStream-uixCSgiq.esm.js → backCameraStream-Cz2EvzSR.esm.js} +5 -9
- package/dist/certificate-issuance.d.ts +28 -28
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-Ccwh6xMM.d.ts → consentManager-mc7QdTMo.d.ts} +50 -50
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-CXf5PhZ6.d.ts → cpfOcrManager-zBticiCF.d.ts} +17 -17
- package/dist/{deepsightLoader-mHrOfFNb.esm.js → deepsightLoader-76UnowS7.esm.js} +1 -1
- package/dist/document-capture.d.ts +173 -173
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.d.ts +46 -46
- package/dist/document-upload.esm.js +1 -1
- package/dist/{documentCaptureStateMachine-4p5MuzfS.esm.js → documentCaptureStateMachine-C9Sk-unD.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-BVsSys9P.esm.js → ekybStateMachine-nxlJMOLd.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +5 -5
- package/dist/extensibility.esm.js +12 -12
- package/dist/{faceCaptureManagerFactory-BjtXPUp3.esm.js → faceCaptureManagerFactory-CzKGFnko.esm.js} +1 -1
- package/dist/{faceCaptureSetup-DMUHOk1F.esm.js → faceCaptureSetup-Cj5StqIj.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-nnIjcwZD.esm.js → flowServices-B-U4LBEz.esm.js} +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-verification.d.ts +25 -25
- package/dist/id.esm.js +6 -6
- package/dist/{idCaptureManager-DgwTu2Ad.esm.js → idCaptureManager-Bf48zlCL.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-C_LkJ5Cv.esm.js → idCaptureStateMachine-yJYkHYD0.esm.js} +5 -5
- package/dist/{idOcrManager-4y4ch6fe.d.ts → idOcrManager-BPrIg5Np.d.ts} +52 -52
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-CBcBvR0M.d.ts → identityReuseManager-CM-Jjztz.d.ts} +34 -34
- package/dist/{index-DFYycWvJ.d.ts → index-DzfsIaNl.d.ts} +150 -150
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-D4EeVURE.d.ts → mandatoryConsentManager-D6UNv_fb.d.ts} +50 -50
- package/dist/{onDeviceFaceResults-BFhwH1Ba.esm.js → onDeviceFaceResults-sz7Ixft7.esm.js} +2 -2
- package/dist/personhood.esm.js +3 -3
- package/dist/qe-signature.d.ts +1 -1
- package/dist/{recordingService-CflL9aAS.esm.js → recordingService-C49IUSu_.esm.js} +1 -1
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieManager-vgJaCuGq.esm.js → selfieManager-BpeRqH4P.esm.js} +2 -2
- package/dist/{selfieStateMachine-BrxBZpXx.esm.js → selfieStateMachine-n7bnt0gx.esm.js} +2 -2
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-IghS6XM8.esm.js → sessionInitializer-C54RAOch.esm.js} +1 -1
- package/dist/{setup-BvUZozWd.esm.js → setup-CqrU2DM3.esm.js} +1 -1
- package/dist/trust-graph.d.ts +2 -2
- package/dist/video-selfie.d.ts +5 -3
- package/dist/video-selfie.esm.js +79 -65
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.d.ts +105 -105
- package/dist/workflow.esm.js +11 -11
- package/package.json +3 -3
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-ADG54T6M.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-CqrU2DM3.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
4
4
|
import { t as api } from "./api-DsbUi7TO.esm.js";
|
|
5
5
|
import "./clientLifecycle-Ct7h9uxx.esm.js";
|
|
6
6
|
import "./events-1wxZ97yf.esm.js";
|
|
7
7
|
import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
|
|
8
8
|
import "./stats-BVy52wLy.esm.js";
|
|
9
|
-
import "./sessionInitializer-
|
|
9
|
+
import "./sessionInitializer-C54RAOch.esm.js";
|
|
10
10
|
import "./browserSimulation-CWJhFPZ2.esm.js";
|
|
11
11
|
import "./platform-0Ot-bF_a.esm.js";
|
|
12
12
|
import "./getBrowser-1yNcfFZR.esm.js";
|
|
@@ -14,11 +14,11 @@ import "./tri-CFBjqf5E.esm.js";
|
|
|
14
14
|
import { a as fromPromise, i as fromCallback, l as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
15
15
|
import "./MotionSensorProvider-BkHKMCPE.esm.js";
|
|
16
16
|
import { t as checkPermission } from "./permissionServices-D9lmzFYc.esm.js";
|
|
17
|
-
import { i as requestCameraWithFallback } from "./camera-B0yWS33x.esm.js";
|
|
18
|
-
import { a as encryptSelfieImage, b as FaceDetectionProvider, l as startDetection, m as uploadSelfie, p as processFace, y as StreamCanvasProcessingSession } from "./onDeviceFaceResults-
|
|
17
|
+
import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-B0yWS33x.esm.js";
|
|
18
|
+
import { a as encryptSelfieImage, b as FaceDetectionProvider, l as startDetection, m as uploadSelfie, p as processFace, y as StreamCanvasProcessingSession } from "./onDeviceFaceResults-sz7Ixft7.esm.js";
|
|
19
19
|
import "./ITimerCapability-G7lQg-be.esm.js";
|
|
20
20
|
import "./canvas-DsJa51yU.esm.js";
|
|
21
|
-
import "./backCameraStream-
|
|
21
|
+
import { n as getBackCameraStream } from "./backCameraStream-Cz2EvzSR.esm.js";
|
|
22
22
|
import "./video-DXf5H9rY.esm.js";
|
|
23
23
|
import { n as getWindowDimensions } from "./getDeviceClass-BdgmyOOu.esm.js";
|
|
24
24
|
import "./deepsightService-DU9yBWg_.esm.js";
|
|
@@ -625,15 +625,84 @@ var MultipartRecordingService = class {
|
|
|
625
625
|
};
|
|
626
626
|
|
|
627
627
|
//#endregion
|
|
628
|
-
//#region src/modules/video-selfie/
|
|
629
|
-
/**
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
628
|
+
//#region src/modules/video-selfie/videoSelfieCameraWarmer.ts
|
|
629
|
+
/**
|
|
630
|
+
* Acquire the camera for a Video Selfie step. The rear (`environment`) steps
|
|
631
|
+
* (frontId / backId / poa) route through {@link getBackCameraStream} so the
|
|
632
|
+
* main autofocus lens is selected — Samsung's default `facingMode:environment`
|
|
633
|
+
* camera is often a fixed-focus auxiliary lens, which blurs the ID steps and
|
|
634
|
+
* stalls capture (client-side blur check is on). This mirrors the ID Capture
|
|
635
|
+
* module. `getBackCameraStream` returns video only, so audio is acquired and
|
|
636
|
+
* merged separately when the step needs it. Front (`user`) steps keep the
|
|
637
|
+
* plain fallback path. Used both as the recording machine's default
|
|
638
|
+
* `acquireCamera` dependency and as this warmer's own acquire/fallback.
|
|
639
|
+
*/
|
|
640
|
+
async function defaultAcquireCamera(facingMode, withAudio) {
|
|
641
|
+
if (facingMode !== "environment") return requestCameraWithFallback({
|
|
633
642
|
video: { facingMode },
|
|
634
643
|
audio: withAudio
|
|
635
644
|
});
|
|
645
|
+
const { stream } = await getBackCameraStream();
|
|
646
|
+
if (withAudio) try {
|
|
647
|
+
const audioStream = await requestCameraAccess({ audio: true });
|
|
648
|
+
for (const audioTrack of audioStream.getAudioTracks()) stream.addTrack(audioTrack);
|
|
649
|
+
} catch (error$1) {
|
|
650
|
+
stream.getTracks().forEach((track) => track.stop());
|
|
651
|
+
throw error$1;
|
|
652
|
+
}
|
|
653
|
+
return stream;
|
|
654
|
+
}
|
|
655
|
+
function stopStream(stream) {
|
|
656
|
+
stream?.getTracks().forEach((track) => track.stop());
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* Creates a {@link VideoSelfieCameraWarmer} for the given config. The first
|
|
660
|
+
* camera (and whether it needs audio) is derived from the resolved step order —
|
|
661
|
+
* the same first acquire the recording machine performs on `START`.
|
|
662
|
+
*/
|
|
663
|
+
function createVideoSelfieCameraWarmer(config) {
|
|
664
|
+
const firstFacing = facingModeForStep(resolveVideoSelfieSteps(config)[0] ?? "selfie");
|
|
665
|
+
let warming = null;
|
|
666
|
+
let warmed = null;
|
|
667
|
+
let consumed = false;
|
|
668
|
+
return {
|
|
669
|
+
warm() {
|
|
670
|
+
if (warming) return;
|
|
671
|
+
warming = (async () => {
|
|
672
|
+
try {
|
|
673
|
+
if (await checkPermission() !== "granted") return null;
|
|
674
|
+
warmed = await defaultAcquireCamera(firstFacing, true);
|
|
675
|
+
return warmed;
|
|
676
|
+
} catch {
|
|
677
|
+
return null;
|
|
678
|
+
}
|
|
679
|
+
})();
|
|
680
|
+
},
|
|
681
|
+
async acquireCamera(facingMode, withAudio) {
|
|
682
|
+
if (!consumed && facingMode === firstFacing && withAudio) {
|
|
683
|
+
consumed = true;
|
|
684
|
+
const stream = warmed ?? (warming ? await warming : null);
|
|
685
|
+
warmed = null;
|
|
686
|
+
if (stream) return stream;
|
|
687
|
+
}
|
|
688
|
+
return defaultAcquireCamera(facingMode, withAudio);
|
|
689
|
+
},
|
|
690
|
+
dispose() {
|
|
691
|
+
if (consumed) return;
|
|
692
|
+
if (warmed) {
|
|
693
|
+
stopStream(warmed);
|
|
694
|
+
warmed = null;
|
|
695
|
+
} else if (warming) warming.then((stream) => {
|
|
696
|
+
if (!consumed) stopStream(stream);
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
};
|
|
636
700
|
}
|
|
701
|
+
|
|
702
|
+
//#endregion
|
|
703
|
+
//#region src/modules/video-selfie/videoSelfieRecordingMachine.ts
|
|
704
|
+
/** A detector that never settles — used when a step has no auto-capture yet. */
|
|
705
|
+
const manualStepDetector = () => new Promise(() => {});
|
|
637
706
|
function eventOutputStream(event) {
|
|
638
707
|
return event.output;
|
|
639
708
|
}
|
|
@@ -954,61 +1023,6 @@ function warmupVideoSelfieWasm(config) {
|
|
|
954
1023
|
return ensureWasmPipelines(videoSelfieWasmPipelines(config));
|
|
955
1024
|
}
|
|
956
1025
|
|
|
957
|
-
//#endregion
|
|
958
|
-
//#region src/modules/video-selfie/videoSelfieCameraWarmer.ts
|
|
959
|
-
function defaultAcquire(facingMode, withAudio) {
|
|
960
|
-
return requestCameraWithFallback({
|
|
961
|
-
video: { facingMode },
|
|
962
|
-
audio: withAudio
|
|
963
|
-
});
|
|
964
|
-
}
|
|
965
|
-
function stopStream(stream) {
|
|
966
|
-
stream?.getTracks().forEach((track) => track.stop());
|
|
967
|
-
}
|
|
968
|
-
/**
|
|
969
|
-
* Creates a {@link VideoSelfieCameraWarmer} for the given config. The first
|
|
970
|
-
* camera (and whether it needs audio) is derived from the resolved step order —
|
|
971
|
-
* the same first acquire the recording machine performs on `START`.
|
|
972
|
-
*/
|
|
973
|
-
function createVideoSelfieCameraWarmer(config) {
|
|
974
|
-
const firstFacing = facingModeForStep(resolveVideoSelfieSteps(config)[0] ?? "selfie");
|
|
975
|
-
let warming = null;
|
|
976
|
-
let warmed = null;
|
|
977
|
-
let consumed = false;
|
|
978
|
-
return {
|
|
979
|
-
warm() {
|
|
980
|
-
if (warming) return;
|
|
981
|
-
warming = (async () => {
|
|
982
|
-
try {
|
|
983
|
-
if (await checkPermission() !== "granted") return null;
|
|
984
|
-
warmed = await defaultAcquire(firstFacing, true);
|
|
985
|
-
return warmed;
|
|
986
|
-
} catch {
|
|
987
|
-
return null;
|
|
988
|
-
}
|
|
989
|
-
})();
|
|
990
|
-
},
|
|
991
|
-
async acquireCamera(facingMode, withAudio) {
|
|
992
|
-
if (!consumed && facingMode === firstFacing && withAudio) {
|
|
993
|
-
consumed = true;
|
|
994
|
-
const stream = warmed ?? (warming ? await warming : null);
|
|
995
|
-
warmed = null;
|
|
996
|
-
if (stream) return stream;
|
|
997
|
-
}
|
|
998
|
-
return defaultAcquire(facingMode, withAudio);
|
|
999
|
-
},
|
|
1000
|
-
dispose() {
|
|
1001
|
-
if (consumed) return;
|
|
1002
|
-
if (warmed) {
|
|
1003
|
-
stopStream(warmed);
|
|
1004
|
-
warmed = null;
|
|
1005
|
-
} else if (warming) warming.then((stream) => {
|
|
1006
|
-
if (!consumed) stopStream(stream);
|
|
1007
|
-
});
|
|
1008
|
-
}
|
|
1009
|
-
};
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
1026
|
//#endregion
|
|
1013
1027
|
//#region src/modules/video-selfie/videoSelfieSpeechService.ts
|
|
1014
1028
|
/**
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as warmupWasm } from "./WasmUtilProvider-ADG54T6M.esm.js";
|
|
2
|
-
import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-
|
|
2
|
+
import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-CqrU2DM3.esm.js";
|
|
3
3
|
import "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
4
4
|
import "./api-DsbUi7TO.esm.js";
|
|
5
5
|
import "./clientLifecycle-Ct7h9uxx.esm.js";
|
|
6
6
|
import "./events-1wxZ97yf.esm.js";
|
|
7
7
|
import "./endpoints-CwrFQfW7.esm.js";
|
|
8
8
|
import "./stats-BVy52wLy.esm.js";
|
|
9
|
-
import "./sessionInitializer-
|
|
9
|
+
import "./sessionInitializer-C54RAOch.esm.js";
|
|
10
10
|
import "./browserSimulation-CWJhFPZ2.esm.js";
|
|
11
11
|
import "./platform-0Ot-bF_a.esm.js";
|
|
12
12
|
import "./getBrowser-1yNcfFZR.esm.js";
|