@incodetech/core 2.3.0-rc.0 → 2.3.0-rc.1
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-C_9o3L2L.esm.js → BrowserDiagnosticsCryptoProvider-CU6kBvqv.esm.js} +1 -1
- package/dist/{FaceDetectionProvider-DTetAE8H.esm.js → FaceDetectionProvider-BfhWkK90.esm.js} +7 -52
- package/dist/{IWasmUtilCapability-CXXDA5l1.d.ts → IWasmUtilCapability-CNWRl7jr.d.ts} +1 -43
- package/dist/{StreamCanvasCapture-B3YT2Bt6.d.ts → StreamCanvasCapture-_8gdW5Lk.d.ts} +1 -1
- package/dist/{recordingsRepository-CCWy13M-.esm.js → StreamCanvasProcessingSession-CBnbTnOr.esm.js} +1 -31
- package/dist/{addressSearch-BRSu_aGA.esm.js → addressSearch-DyHGgeX8.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-Bg9ynGum.esm.js → antifraudManager-DNkw66oW.esm.js} +1 -1
- package/dist/{antifraudStateMachine-BHxehiJZ.esm.js → antifraudStateMachine-DBeq47D2.esm.js} +1 -1
- package/dist/{apiError-D0v5hFyN.esm.js → apiError-Budb6m6w.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DXTIUcma.d.ts → authenticationManager-CjXBjC-c.d.ts} +1 -1
- package/dist/{authenticationManager-C4B4-29g.esm.js → authenticationManager-cMXhG70r.esm.js} +3 -3
- package/dist/{authenticationStateMachine-DJ0zUm-A.esm.js → authenticationStateMachine-MOYz4HCf.esm.js} +3 -3
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-Bfvkq7Cy.esm.js → certificateIssuanceManager-C3-CI0_s.esm.js} +1 -1
- package/dist/{certificateIssuanceStateMachine-BBD5h8c4.esm.js → certificateIssuanceStateMachine-CxqS_nD-.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-B5Vqdez-.esm.js → consentManager-B6E1XJDw.esm.js} +1 -1
- package/dist/{consentManager-uhDPdU6i.d.ts → consentManager-BhYFeKiG.d.ts} +8 -8
- package/dist/{consentStateMachine-DbUmqWgV.esm.js → consentStateMachine-DTSfdGiW.esm.js} +1 -1
- package/dist/{createCameraCycleOwnership-DQ5-F2oW.esm.js → createCameraCycleOwnership-CX3hJGKc.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-QMOGwHXR.esm.js → crossDocumentDataMatchManager-9XhFVZ5S.esm.js} +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-D1ppROcF.esm.js → curpValidationManager-DbIMYFcJ.esm.js} +1 -1
- package/dist/{curpValidationStateMachine-DvUPC_8S.esm.js → curpValidationStateMachine-g5kMfuLj.esm.js} +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-2j_PBq4U.esm.js → customFieldsManager-CzWZTkW-.esm.js} +1 -1
- package/dist/{customWatchlistManager-DUVrEdw9.esm.js → customWatchlistManager-DWTED5Ur.esm.js} +1 -1
- package/dist/{customWatchlistStateMachine-qZVgkKgP.esm.js → customWatchlistStateMachine-DOQou6TW.esm.js} +1 -1
- package/dist/{deepsightLoader-Dm7ejW4v.esm.js → deepsightLoader-DDv3vhXU.esm.js} +4 -4
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DR_Wv-3H.esm.js → documentCaptureManager-CwAiM9WY.esm.js} +1 -1
- package/dist/{documentCaptureStateMachine-CWOATHfE.esm.js → documentCaptureStateMachine-DfGOBapD.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-Dt98SDfV.esm.js → dynamicFormsManager-BbS-XMFc.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-obKr4IIp.esm.js → dynamicFormsStateMachine-D8zHBCh4.esm.js} +2 -2
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-DNZKrKF3.esm.js → ekybManager-5aiac8wL.esm.js} +1 -1
- package/dist/{ekybStateMachine-DjhHQXZ8.esm.js → ekybStateMachine-Bn2IE9rx.esm.js} +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-CmQBpeiI.esm.js → ekycManager-BlQ-Qj4E.esm.js} +1 -1
- package/dist/{ekycStateMachine-CmdW2gVm.esm.js → ekycStateMachine-CshSNJhh.esm.js} +2 -2
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DzulxM4_.esm.js → electronicSignatureManager-BJJH0Tvi.esm.js} +2 -2
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-B5ek_UfM.esm.js → emailManager-bR1N5rV_.esm.js} +1 -1
- package/dist/{emailStateMachine-CyPFZ7dW.esm.js → emailStateMachine-Bc_6oIYw.esm.js} +1 -1
- package/dist/{endpoints-D3B9mUHh.esm.js → endpoints-B-3Q-LUw.esm.js} +0 -3
- package/dist/extensibility.d.ts +10 -10
- package/dist/extensibility.esm.js +33 -33
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-pCmG4MeF.esm.js → faceCaptureManagerFactory-B7Ms6pSs.esm.js} +1 -1
- package/dist/{faceCaptureManagerFactory-CvtqcLxs.d.ts → faceCaptureManagerFactory-BeUl8fl1.d.ts} +4 -5
- package/dist/{faceCaptureSetup-BSextack.esm.js → faceCaptureSetup-bkAlr5d8.esm.js} +25 -64
- package/dist/{faceMatchManager-Caal2zyV.esm.js → faceMatchManager-Bmv0HzuY.esm.js} +1 -1
- package/dist/{faceMatchStateMachine-BUc5FXYy.esm.js → faceMatchStateMachine-mRIHQ3dA.esm.js} +1 -1
- package/dist/{feature-management-B0sGlozZ.esm.js → feature-management-E0mq0pMs.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-BIs6HPJG.esm.js → fieldComparisonManager-CC-klG0h.esm.js} +1 -1
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-CHcBJwUM.d.ts → fiscalQrManager-B1STmT6z.d.ts} +4 -1
- package/dist/{fiscalQrManager-Bp_-3LJr.esm.js → fiscalQrManager-BunLVFbd.esm.js} +16 -4
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-CLtbWhSK.esm.js → flowCompletionService-DJp1odGN.esm.js} +2 -2
- package/dist/{flowServices-B5FwukTQ.esm.js → flowServices-DjPFGs_D.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DIw-xq9a.esm.js → geolocationManager-D5906YXx.esm.js} +1 -1
- package/dist/{geolocationStateMachine-DpG0TFOU.esm.js → geolocationStateMachine-BVOduc3y.esm.js} +2 -2
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-TjC9iVjH.esm.js → governmentValidationManager-CacFOtKO.esm.js} +1 -1
- package/dist/{governmentValidationStateMachine-D1ZnEqdd.esm.js → governmentValidationStateMachine-CoaZOSTP.esm.js} +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +9 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-BcxjQDI3.esm.js → idCaptureDefaults-CbPA-Auz.esm.js} +272 -29
- package/dist/{idCaptureManager-CvmHOWWd.d.ts → idCaptureManager-DKESug0R.d.ts} +11 -12
- package/dist/{idCaptureManager-Vby8oYqh.esm.js → idCaptureManager-rfV9dIXy.esm.js} +3 -3
- package/dist/{idCaptureServices-CJIxD9ep.esm.js → idCaptureServices-i1KxugN7.esm.js} +21 -119
- package/dist/{idCaptureStateMachine-CmqihkUy.esm.js → idCaptureStateMachine-Ne_PXth_.esm.js} +16 -26
- package/dist/{idOcrManager-DHU22hVn.esm.js → idOcrManager-r46XfZGE.esm.js} +1 -1
- package/dist/{idOcrStateMachine-33UvRAHE.esm.js → idOcrStateMachine-ClDEP-VI.esm.js} +1 -1
- package/dist/{idVerificationManager-CyaixD0D.esm.js → idVerificationManager-DT42c77H.esm.js} +1 -1
- package/dist/{idVerificationStateMachine-BPGrQZEm.esm.js → idVerificationStateMachine-DbDVIh9t.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-CWaNHBO3.esm.js → identityReuseManager-yG3acUrQ.esm.js} +1 -1
- package/dist/{identityReuseStateMachine-CQgnATo5.esm.js → identityReuseStateMachine-BhAkuIra.esm.js} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Du-m-tZ_.esm.js → mandatoryConsentManager-7dI0D08q.esm.js} +1 -1
- package/dist/{mandatoryConsentManager-CJSyhTpi.d.ts → mandatoryConsentManager-vhv1co_n.d.ts} +4 -4
- package/dist/{mandatoryConsentStateMachine-DSDAk7WZ.esm.js → mandatoryConsentStateMachine-DC5Mo6M1.esm.js} +1 -1
- package/dist/{multipartRecordingService-B3C_zlev.esm.js → multipartRecordingService-OEgIRvqC.esm.js} +14 -3
- package/dist/personhood.d.ts +3 -3
- package/dist/personhood.esm.js +5 -5
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-N1-sbrY4.esm.js → phoneManager-IjhSv5XS.esm.js} +1 -1
- package/dist/{phoneStateMachine-jl8LJKCo.esm.js → phoneStateMachine-CXdXufKg.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-DsFzdTwA.esm.js → redirectToMobileManager-FLEWJtv8.esm.js} +1 -1
- package/dist/{redirectToMobileStateMachine-v3otpT-L.esm.js → redirectToMobileStateMachine-CSWWgUTO.esm.js} +1 -1
- package/dist/{runChildModule-TuyGE00X.esm.js → runChildModule-CI1gGWN1.esm.js} +1 -1
- package/dist/{sdkVersion-CLxKvdyz.esm.js → sdkVersion-BZh6dj53.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-C77GXJH6.esm.js → selfieErrorUtils-UiQ46EBa.esm.js} +2 -2
- package/dist/{selfieManager-D1KRJ39M.d.ts → selfieManager-4RRLi21P.d.ts} +1 -1
- package/dist/{selfieManager-CihVnODO.esm.js → selfieManager-B-2c1n_x.esm.js} +3 -3
- package/dist/{selfieStateMachine-fwMmNtOi.esm.js → selfieStateMachine-Bzx41R8d.esm.js} +4 -4
- package/dist/{session-BHIeAamR.esm.js → session-3LmvAU4S.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BLoK7SP9.esm.js → sessionInitializer-BFk33E67.esm.js} +5 -5
- package/dist/{setup-msLybMbC.esm.js → setup-BWG-hivt.esm.js} +6 -6
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-ChsB-nMD.esm.js → signatureManager-B72np4ZO.esm.js} +1 -1
- package/dist/{signatureStateMachine-BHPwkJZS.esm.js → signatureStateMachine-ce_XMA3l.esm.js} +1 -1
- package/dist/{stats-DkK-f8JT.esm.js → stats-CZcy2J53.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService-CKrrfV0Q.esm.js → trueSightService-BN-Hzw82.esm.js} +3 -3
- package/dist/{types-CM-jtjJ2.d.ts → types-Bnl58jUQ.d.ts} +2 -6
- package/dist/{types-ZT1XFIJ8.d.ts → types-ChAowIxT.d.ts} +1 -1
- package/dist/{types-CjKBS37a2.d.ts → types-byBHOzCG2.d.ts} +5 -15
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +6 -6
- package/dist/{videoSelfieCameraWarmer-CB1IzZkt.esm.js → videoSelfieCameraWarmer-B8PcYqmz.esm.js} +6 -6
- package/dist/{videoSelfieStepDetector-5YHFe0Mq.d.ts → videoSelfieStepDetector-Co0Gu2k2.d.ts} +43 -13
- package/dist/{virtualCameraCheck-WOloJ-do.esm.js → virtualCameraCheck-Cjab7FTI.esm.js} +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CpuuB1J2.esm.js → watchlistForBusinessManager-CIMkpEhu.esm.js} +1 -1
- package/dist/{watchlistForBusinessStateMachine-DEzgjz7C.esm.js → watchlistForBusinessStateMachine-CJ-MvUre.esm.js} +1 -1
- package/dist/{watchlistManager-CI8BHFob.esm.js → watchlistManager-CixcLNDT.esm.js} +1 -1
- package/dist/{watchlistStateMachine-DvOby3a-.esm.js → watchlistStateMachine-CBqk2w-h.esm.js} +1 -1
- package/dist/workflow.esm.js +34 -34
- package/package.json +1 -1
|
@@ -1,16 +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-BWG-hivt.esm.js";
|
|
2
|
+
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-E0mq0pMs.esm.js";
|
|
3
3
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
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
8
|
import { s as queryCameraPermission } from "./permissionServices-Bj_fyWtv.esm.js";
|
|
9
|
-
import { n as startRecording, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-CCWy13M-.esm.js";
|
|
10
9
|
import { a as isBackFacingTrack, n as getBackCameraStream } from "./backCameraStream-BOtyQowf.esm.js";
|
|
11
10
|
import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
|
|
12
|
-
import { t as MultipartRecordingService } from "./multipartRecordingService-
|
|
13
|
-
import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-
|
|
11
|
+
import { t as MultipartRecordingService } from "./multipartRecordingService-OEgIRvqC.esm.js";
|
|
12
|
+
import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CbPA-Auz.esm.js";
|
|
14
13
|
//#region src/internal/camera/cameraServices.ts
|
|
15
14
|
function createCameraServices(camera) {
|
|
16
15
|
return {
|
|
@@ -569,50 +568,10 @@ async function uploadIdImage(params) {
|
|
|
569
568
|
throw new Error(`${ID_ERROR_CODES.UPLOAD_ERROR}: ${errorMessage}`);
|
|
570
569
|
}
|
|
571
570
|
}
|
|
572
|
-
function buildStandardResolution(width, height) {
|
|
573
|
-
return height > width ? {
|
|
574
|
-
width: 1080,
|
|
575
|
-
height: 1920
|
|
576
|
-
} : {
|
|
577
|
-
width: 1920,
|
|
578
|
-
height: 1080
|
|
579
|
-
};
|
|
580
|
-
}
|
|
581
|
-
function buildResolutionFromStream(stream) {
|
|
582
|
-
const track = stream.getVideoTracks()[0];
|
|
583
|
-
if (!track) return "1080x1920";
|
|
584
|
-
const settings = track.getSettings();
|
|
585
|
-
const width = settings.width;
|
|
586
|
-
const height = settings.height;
|
|
587
|
-
if (typeof width === "number" && typeof height === "number") {
|
|
588
|
-
const standard = buildStandardResolution(width, height);
|
|
589
|
-
return `${standard.width}x${standard.height}`;
|
|
590
|
-
}
|
|
591
|
-
return "1080x1920";
|
|
592
|
-
}
|
|
593
|
-
function preloadIdRecordingProvider(config) {}
|
|
594
571
|
const multipartIdSessions = /* @__PURE__ */ new WeakMap();
|
|
595
|
-
const legacyIdRecordingStreams = /* @__PURE__ */ new WeakMap();
|
|
596
572
|
const idRecordingFinalizations = /* @__PURE__ */ new WeakMap();
|
|
597
|
-
|
|
598
|
-
const
|
|
599
|
-
function createMultipartSessionHandle(service, compositor, recordingSource, resolution, hasAudio) {
|
|
600
|
-
const session = {
|
|
601
|
-
token: "",
|
|
602
|
-
sessionId: "",
|
|
603
|
-
videoRecordingId: "",
|
|
604
|
-
connection: {
|
|
605
|
-
sessionId: void 0,
|
|
606
|
-
publisher: {
|
|
607
|
-
getStreamId: () => void 0,
|
|
608
|
-
replaceVideoTrack: async () => {},
|
|
609
|
-
destroy: () => {}
|
|
610
|
-
},
|
|
611
|
-
disconnect: async () => {}
|
|
612
|
-
},
|
|
613
|
-
resolution,
|
|
614
|
-
hasAudio
|
|
615
|
-
};
|
|
573
|
+
function createMultipartSessionHandle(service, compositor, recordingSource) {
|
|
574
|
+
const session = {};
|
|
616
575
|
multipartIdSessions.set(session, {
|
|
617
576
|
compositor,
|
|
618
577
|
needsVideoSourceReplacement: false,
|
|
@@ -639,46 +598,18 @@ async function startRecordingSession(params) {
|
|
|
639
598
|
if (multipartSession) multipartSession.recorderPaused = false;
|
|
640
599
|
return params.existing;
|
|
641
600
|
}
|
|
642
|
-
const
|
|
643
|
-
const
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
const
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
compositor.stop();
|
|
653
|
-
service.cleanup();
|
|
654
|
-
throw error;
|
|
655
|
-
}
|
|
656
|
-
return createMultipartSessionHandle(service, compositor, recordingSource, resolution, hasAudio);
|
|
601
|
+
const service = new MultipartRecordingService(params.type);
|
|
602
|
+
const recordingSource = params.stream.clone();
|
|
603
|
+
const compositor = new CameraCompositor({ fps: 30 });
|
|
604
|
+
try {
|
|
605
|
+
const recordingStream = compositor.start(recordingSource);
|
|
606
|
+
await service.start(recordingStream);
|
|
607
|
+
} catch (error) {
|
|
608
|
+
compositor.stop();
|
|
609
|
+
service.cleanup();
|
|
610
|
+
throw error;
|
|
657
611
|
}
|
|
658
|
-
|
|
659
|
-
const clonedStream = params.stream.clone();
|
|
660
|
-
const session = await createRecordingSession(params.type);
|
|
661
|
-
const connection = await provider.connect({
|
|
662
|
-
sessionToken: session.token,
|
|
663
|
-
stream: clonedStream,
|
|
664
|
-
events: {}
|
|
665
|
-
});
|
|
666
|
-
await startRecording({
|
|
667
|
-
videoRecordingId: session.videoRecordingId,
|
|
668
|
-
type: params.type,
|
|
669
|
-
resolution,
|
|
670
|
-
hasAudio
|
|
671
|
-
});
|
|
672
|
-
const recordingSession = {
|
|
673
|
-
token: session.token,
|
|
674
|
-
sessionId: session.sessionId,
|
|
675
|
-
videoRecordingId: session.videoRecordingId,
|
|
676
|
-
connection,
|
|
677
|
-
resolution,
|
|
678
|
-
hasAudio
|
|
679
|
-
};
|
|
680
|
-
legacyIdRecordingStreams.set(recordingSession, clonedStream);
|
|
681
|
-
return recordingSession;
|
|
612
|
+
return createMultipartSessionHandle(service, compositor, recordingSource);
|
|
682
613
|
}
|
|
683
614
|
function pauseRecordingForAttempt(session) {
|
|
684
615
|
const multipartSession = multipartIdSessions.get(session);
|
|
@@ -693,25 +624,6 @@ function prepareRecordingForCameraRetry(session) {
|
|
|
693
624
|
multipartSession.recordingSource.getVideoTracks().forEach((track) => track.stop());
|
|
694
625
|
multipartSession.needsVideoSourceReplacement = true;
|
|
695
626
|
}
|
|
696
|
-
function releaseLegacyRecordingResources(session) {
|
|
697
|
-
if (releasedLegacyIdRecordings.has(session)) return;
|
|
698
|
-
releasedLegacyIdRecordings.add(session);
|
|
699
|
-
try {
|
|
700
|
-
session.connection.publisher.destroy();
|
|
701
|
-
} catch {}
|
|
702
|
-
const clonedStream = legacyIdRecordingStreams.get(session);
|
|
703
|
-
legacyIdRecordingStreams.delete(session);
|
|
704
|
-
for (const track of clonedStream?.getTracks() ?? []) try {
|
|
705
|
-
track.stop();
|
|
706
|
-
} catch {}
|
|
707
|
-
}
|
|
708
|
-
function disconnectLegacyRecording(session) {
|
|
709
|
-
const existing = legacyIdDisconnects.get(session);
|
|
710
|
-
if (existing) return existing;
|
|
711
|
-
const disconnect = session.connection.disconnect();
|
|
712
|
-
legacyIdDisconnects.set(session, disconnect);
|
|
713
|
-
return disconnect;
|
|
714
|
-
}
|
|
715
627
|
/**
|
|
716
628
|
* Fully drains an ID recording before the protected camera cycle runs POC.
|
|
717
629
|
* Every recorder clone is stopped before this promise settles.
|
|
@@ -720,21 +632,14 @@ async function finalizeRecordingSession(session) {
|
|
|
720
632
|
const existing = idRecordingFinalizations.get(session);
|
|
721
633
|
if (existing) return existing;
|
|
722
634
|
const multipartSession = multipartIdSessions.get(session);
|
|
723
|
-
|
|
635
|
+
if (!multipartSession) return {};
|
|
636
|
+
const finalization = (async () => {
|
|
724
637
|
multipartIdSessions.delete(session);
|
|
725
638
|
try {
|
|
726
639
|
return await multipartSession.service.stop();
|
|
727
640
|
} finally {
|
|
728
641
|
multipartSession.compositor.stop();
|
|
729
642
|
}
|
|
730
|
-
})() : (async () => {
|
|
731
|
-
try {
|
|
732
|
-
await stopRecording$1(session.videoRecordingId);
|
|
733
|
-
return { recordingId: session.videoRecordingId || null };
|
|
734
|
-
} finally {
|
|
735
|
-
releaseLegacyRecordingResources(session);
|
|
736
|
-
await disconnectLegacyRecording(session);
|
|
737
|
-
}
|
|
738
643
|
})();
|
|
739
644
|
idRecordingFinalizations.set(session, finalization);
|
|
740
645
|
return finalization;
|
|
@@ -747,10 +652,7 @@ function disposeRecordingSession(session) {
|
|
|
747
652
|
const finalization = multipartSession.service.stop().finally(() => multipartSession.compositor.stop());
|
|
748
653
|
idRecordingFinalizations.set(session, finalization);
|
|
749
654
|
finalization.catch(() => {});
|
|
750
|
-
return;
|
|
751
655
|
}
|
|
752
|
-
releaseLegacyRecordingResources(session);
|
|
753
|
-
disconnectLegacyRecording(session).catch(() => {});
|
|
754
656
|
}
|
|
755
657
|
function stopRecording(session) {
|
|
756
658
|
finalizeRecordingSession(session).catch(() => {});
|
|
@@ -830,4 +732,4 @@ async function addBarcode(params) {
|
|
|
830
732
|
return res.data;
|
|
831
733
|
}
|
|
832
734
|
//#endregion
|
|
833
|
-
export {
|
|
735
|
+
export { resolveCaptureOptimizingTreatment as _, getRealQualityValue as a, OPTIMIZING_WATCHDOG_MARGIN_MS as b, prepareRecordingForCameraRetry as c, stopRecording as d, stopStream as f, ID_ERROR_CODES as g, validateUploadResponse as h, finalizeRecordingSession as i, processId as l, uploadManualIdFile as m, barcodeToBase64 as n, initializeIdCapture as o, uploadIdImage as p, disposeRecordingSession as r, pauseRecordingForAttempt as s, addBarcode as t, startRecordingSession as u, resolveIdCaptureThresholds as v, getIdCameraStream as x, CAPTURE_OPTIMIZING as y };
|
package/dist/{idCaptureStateMachine-CmqihkUy.esm.js → idCaptureStateMachine-Ne_PXth_.esm.js}
RENAMED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-BWG-hivt.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
4
|
+
import { s as exposeExperimentOnce } from "./feature-management-E0mq0pMs.esm.js";
|
|
5
5
|
import { n as revokeObjectURL, t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
6
6
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
7
|
-
import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
7
|
+
import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-BN-Hzw82.esm.js";
|
|
8
8
|
import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-ijlbX_Wx.esm.js";
|
|
9
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
10
|
-
import { t as endpoints } from "./endpoints-
|
|
11
|
-
import { t as addDeviceStats } from "./stats-
|
|
9
|
+
import { t as getDisableIpify } from "./sessionInitializer-BFk33E67.esm.js";
|
|
10
|
+
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
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-3LmvAU4S.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
18
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-Bj_fyWtv.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-
|
|
19
|
+
import { i as imageFileToDataUrl, n as runProtectedAttempt, o as flagIdManualReview, r as cameraCycleProvider, s as PROTECTED_CAPTURE_TARGET, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-CX3hJGKc.esm.js";
|
|
20
20
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
21
21
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-uYZYFu4J.esm.js";
|
|
22
|
-
import {
|
|
22
|
+
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.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
|
-
import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-
|
|
27
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-
|
|
28
|
-
import {
|
|
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-CbPA-Auz.esm.js";
|
|
28
|
+
import { a as getRealQualityValue, b as OPTIMIZING_WATCHDOG_MARGIN_MS, c as prepareRecordingForCameraRetry, d as stopRecording, f as stopStream, g as ID_ERROR_CODES, h as validateUploadResponse, i as finalizeRecordingSession, l as processId, m as uploadManualIdFile, o as initializeIdCapture, p as uploadIdImage, r as disposeRecordingSession, t as addBarcode, u as startRecordingSession, v as resolveIdCaptureThresholds, x as getIdCameraStream, y as CAPTURE_OPTIMIZING } from "./idCaptureServices-i1KxugN7.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-DDv3vhXU.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-DDv3vhXU.esm.js")).loadDeepsightSession(input)) {
|
|
2228
2228
|
let disposed = false;
|
|
2229
2229
|
let preparation;
|
|
2230
2230
|
let service;
|
|
@@ -3884,10 +3884,6 @@ const idCaptureMachine = setup({
|
|
|
3884
3884
|
reportCaptureOptimizingAssignment: ({ context }) => {
|
|
3885
3885
|
performReportCaptureOptimizingAssignment(context);
|
|
3886
3886
|
},
|
|
3887
|
-
preloadRecordingProvider: ({ context }) => {
|
|
3888
|
-
if (isCaptureOnlyConfig(context.config)) return;
|
|
3889
|
-
context.config;
|
|
3890
|
-
},
|
|
3891
3887
|
resetContext: assign(({ context }) => getResetContextValues(context)),
|
|
3892
3888
|
resetDetection: () => {},
|
|
3893
3889
|
captureImage: assign({ qualityElements: ({ event }) => {
|
|
@@ -4311,7 +4307,7 @@ const idCaptureMachine = setup({
|
|
|
4311
4307
|
}] }
|
|
4312
4308
|
},
|
|
4313
4309
|
loading: {
|
|
4314
|
-
entry:
|
|
4310
|
+
entry: "startProtectedMetadataPreparation",
|
|
4315
4311
|
type: "parallel",
|
|
4316
4312
|
states: {
|
|
4317
4313
|
permissionCheck: {
|
|
@@ -4344,11 +4340,7 @@ const idCaptureMachine = setup({
|
|
|
4344
4340
|
},
|
|
4345
4341
|
tutorial: {
|
|
4346
4342
|
initial: "checkingPermission",
|
|
4347
|
-
entry: [
|
|
4348
|
-
"startProtectedMetadataPreparation",
|
|
4349
|
-
"trackTutorialId",
|
|
4350
|
-
"preloadRecordingProvider"
|
|
4351
|
-
],
|
|
4343
|
+
entry: ["startProtectedMetadataPreparation", "trackTutorialId"],
|
|
4352
4344
|
states: {
|
|
4353
4345
|
checkingPermission: {
|
|
4354
4346
|
invoke: {
|
|
@@ -4461,7 +4453,6 @@ const idCaptureMachine = setup({
|
|
|
4461
4453
|
}
|
|
4462
4454
|
},
|
|
4463
4455
|
permissions: {
|
|
4464
|
-
entry: "preloadRecordingProvider",
|
|
4465
4456
|
initial: "idle",
|
|
4466
4457
|
states: {
|
|
4467
4458
|
idle: {
|
|
@@ -4555,7 +4546,6 @@ const idCaptureMachine = setup({
|
|
|
4555
4546
|
initial: "checkingStream",
|
|
4556
4547
|
entry: [
|
|
4557
4548
|
"trackCameraId",
|
|
4558
|
-
"preloadRecordingProvider",
|
|
4559
4549
|
"initializeProtectedProvider",
|
|
4560
4550
|
"bindProtectedAttempt",
|
|
4561
4551
|
"startProtectedAttempt"
|
|
@@ -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 idOcrStateMachine } from "./idOcrStateMachine-
|
|
3
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-ClDEP-VI.esm.js";
|
|
4
4
|
//#region src/modules/id-ocr/idOcrActor.ts
|
|
5
5
|
function createIdOcrActor(options) {
|
|
6
6
|
return createActor(idOcrStateMachine, { input: { config: options.config } }).start();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
+
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
6
|
import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
|
package/dist/{idVerificationManager-CyaixD0D.esm.js → idVerificationManager-DT42c77H.esm.js}
RENAMED
|
@@ -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 idVerificationMachine } from "./idVerificationStateMachine-
|
|
3
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-DbDVIh9t.esm.js";
|
|
4
4
|
//#region src/modules/id-verification/idVerificationActor.ts
|
|
5
5
|
function createIdVerificationActor(options) {
|
|
6
6
|
return createActor(idVerificationMachine, { input: { config: options.config } }).start();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
3
3
|
import { t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
5
|
//#region src/modules/id-verification/idVerificationServices.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-
|
|
2
|
-
import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-
|
|
1
|
+
import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-BhAkuIra.esm.js";
|
|
2
|
+
import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-yG3acUrQ.esm.js";
|
|
3
3
|
export { SCAN_NEW_DOCUMENT, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -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 { n as identityReuseMachine } from "./identityReuseStateMachine-
|
|
3
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-BhAkuIra.esm.js";
|
|
4
4
|
//#region src/modules/identity-reuse/identityReuseActor.ts
|
|
5
5
|
/**
|
|
6
6
|
* Creates and starts an IdentityReuse actor.
|
package/dist/{identityReuseStateMachine-CQgnATo5.esm.js → identityReuseStateMachine-BhAkuIra.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
5
|
//#region src/modules/identity-reuse/identityReuseServices.ts
|
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-BWG-hivt.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-vhv1co_n.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
2
|
-
import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-
|
|
1
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DC5Mo6M1.esm.js";
|
|
2
|
+
import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-7dI0D08q.esm.js";
|
|
3
3
|
export { createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-Du-m-tZ_.esm.js → mandatoryConsentManager-7dI0D08q.esm.js}
RENAMED
|
@@ -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 mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
3
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DC5Mo6M1.esm.js";
|
|
4
4
|
//#region src/modules/mandatory-consent/mandatoryConsentActor.ts
|
|
5
5
|
function createMandatoryConsentActor(options) {
|
|
6
6
|
return createActor(mandatoryConsentMachine, { input: { config: options.config } }).start();
|
package/dist/{mandatoryConsentManager-CJSyhTpi.d.ts → mandatoryConsentManager-vhv1co_n.d.ts}
RENAMED
|
@@ -57,10 +57,6 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
57
57
|
type: "setError";
|
|
58
58
|
params: NonReducibleUnknown;
|
|
59
59
|
};
|
|
60
|
-
toggleSigned: {
|
|
61
|
-
type: "toggleSigned";
|
|
62
|
-
params: NonReducibleUnknown;
|
|
63
|
-
};
|
|
64
60
|
clearError: {
|
|
65
61
|
type: "clearError";
|
|
66
62
|
params: NonReducibleUnknown;
|
|
@@ -69,6 +65,10 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
69
65
|
type: "resetContext";
|
|
70
66
|
params: NonReducibleUnknown;
|
|
71
67
|
};
|
|
68
|
+
toggleSigned: {
|
|
69
|
+
type: "toggleSigned";
|
|
70
|
+
params: NonReducibleUnknown;
|
|
71
|
+
};
|
|
72
72
|
}>, {
|
|
73
73
|
type: "canSubmit";
|
|
74
74
|
params: unknown;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
5
|
//#region src/modules/mandatory-consent/mandatoryConsentServices.ts
|
package/dist/{multipartRecordingService-B3C_zlev.esm.js → multipartRecordingService-OEgIRvqC.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import { a as isIOS } from "./platform-DkcRc9JV.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
4
|
+
import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
|
|
5
5
|
//#region ../infra/src/media/mediaRecorderOptions.ts
|
|
6
6
|
/**
|
|
7
7
|
* Picks a `MediaRecorder` mime type the current browser actually supports.
|
|
@@ -19,6 +19,17 @@ function getSupportedMediaRecorderMimeType() {
|
|
|
19
19
|
return "";
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
+
* Mime type for the multipart (video-selfie-service) recorder. Android
|
|
23
|
+
* Chromium gets hardware H.264 in fragmented MP4 first — the fragment shape
|
|
24
|
+
* the service already ingests from Safari. Measured on a Galaxy S21 under ID
|
|
25
|
+
* detection load (ENG-55397): 720p VP8 dropped 16% of frames, H.264 dropped
|
|
26
|
+
* none. Everything else keeps the WebM-first order.
|
|
27
|
+
*/
|
|
28
|
+
function getMultipartRecorderMimeType() {
|
|
29
|
+
if (isAndroid() && MediaRecorder.isTypeSupported("video/mp4;codecs=avc1")) return "video/mp4;codecs=avc1";
|
|
30
|
+
return getSupportedMediaRecorderMimeType();
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
22
33
|
* `MediaRecorder` options tuned per platform — a higher bitrate on iOS, lower
|
|
23
34
|
* elsewhere — paired with the supported mime type.
|
|
24
35
|
*/
|
|
@@ -89,7 +100,7 @@ var MultipartRecordingProvider = class {
|
|
|
89
100
|
this.partNumber = 0;
|
|
90
101
|
this.onPart = onPart;
|
|
91
102
|
try {
|
|
92
|
-
this.mimeType =
|
|
103
|
+
this.mimeType = getMultipartRecorderMimeType();
|
|
93
104
|
const recorder = new MediaRecorder(stream.clone(), {
|
|
94
105
|
mimeType: this.mimeType,
|
|
95
106
|
videoBitsPerSecond: VIDEO_BITS_PER_SECOND
|
package/dist/personhood.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import "./StateMachine-EDpYWy0i.js";
|
|
|
3
3
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
5
|
import { y as IncodeCanvas } from "./createFaceAvatar-BlcTYgJv.js";
|
|
6
|
-
import { i as IStorageCapability, t as IWasmUtilCapability } from "./IWasmUtilCapability-
|
|
6
|
+
import { i as IStorageCapability, t as IWasmUtilCapability } from "./IWasmUtilCapability-CNWRl7jr.js";
|
|
7
7
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
8
|
-
import { n as DetectionStatus } from "./types-
|
|
9
|
-
import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-
|
|
8
|
+
import { n as DetectionStatus } from "./types-Bnl58jUQ.js";
|
|
9
|
+
import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-_8gdW5Lk.js";
|
|
10
10
|
import { t as FaceDetectionProvider } from "./FaceDetectionProvider-LdZ47bWy.js";
|
|
11
11
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
12
12
|
//#region src/modules/personhood/types.d.ts
|
package/dist/personhood.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-BWG-hivt.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.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 { b as getStoredHttpConfig, w as createApi$1, y as randomUUID } from "./trueSightService-
|
|
5
|
+
import { b as getStoredHttpConfig, w as createApi$1, y as randomUUID } from "./trueSightService-BN-Hzw82.esm.js";
|
|
6
6
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
7
|
-
import { b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, v as getThumbmarkId, y as getDeviceFingerprintInfo } from "./sessionInitializer-
|
|
8
|
-
import { t as endpoints } from "./endpoints-
|
|
7
|
+
import { b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, v as getThumbmarkId, y as getDeviceFingerprintInfo } from "./sessionInitializer-BFk33E67.esm.js";
|
|
8
|
+
import { t as endpoints } from "./endpoints-B-3Q-LUw.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 { i as requestCameraAccess, o as stopCameraStream } from "./camera-sIa9ceW2.esm.js";
|
|
12
12
|
import { i as requestPermission, t as checkPermission } from "./permissionServices-Bj_fyWtv.esm.js";
|
|
13
|
-
import { i as initializeDeepsightSession,
|
|
13
|
+
import { i as initializeDeepsightSession, o as startDetection, s as stopStream, t as FaceDetectionProvider } from "./FaceDetectionProvider-BfhWkK90.esm.js";
|
|
14
14
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
15
15
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
16
16
|
//#region src/modules/personhood/personhoodServices.ts
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
2
|
-
import { t as createPhoneManager } from "./phoneManager-
|
|
1
|
+
import { t as phoneMachine } from "./phoneStateMachine-CXdXufKg.esm.js";
|
|
2
|
+
import { t as createPhoneManager } from "./phoneManager-IjhSv5XS.esm.js";
|
|
3
3
|
export { createPhoneManager, phoneMachine };
|
|
@@ -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 phoneMachine } from "./phoneStateMachine-
|
|
3
|
+
import { t as phoneMachine } from "./phoneStateMachine-CXdXufKg.esm.js";
|
|
4
4
|
//#region src/modules/phone/phoneActor.ts
|
|
5
5
|
function createPhoneActor(options) {
|
|
6
6
|
return createActor(phoneMachine, { input: { config: options.config } }).start();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
+
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
6
|
import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BJJH0Tvi.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine-
|
|
2
|
-
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-
|
|
1
|
+
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine-CSWWgUTO.esm.js";
|
|
2
|
+
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-FLEWJtv8.esm.js";
|
|
3
3
|
export { createRedirectToMobileManager, createRedirectToMobileManagerFromActor, defaultRedirectToMobileServices, redirectToMobileMachine };
|
package/dist/{redirectToMobileManager-DsFzdTwA.esm.js → redirectToMobileManager-FLEWJtv8.esm.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.j
|
|
|
2
2
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
|
-
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine-
|
|
5
|
+
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine-CSWWgUTO.esm.js";
|
|
6
6
|
//#region src/modules/redirect-to-mobile/redirectToMobileActor.ts
|
|
7
7
|
const POLL_INTERVAL_MS = 5e3;
|
|
8
8
|
const QR_REFRESH_INTERVAL_MS = 5e3;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
+
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
6
|
import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-D6phjq1-.esm.js";
|
|
@@ -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-BN-Hzw82.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";
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
|
-
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-
|
|
2
|
+
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-BeUl8fl1.js";
|
|
3
3
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
4
|
-
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-
|
|
5
|
-
import { n as DeepsightService } from "./StreamCanvasCapture-
|
|
4
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-Bnl58jUQ.js";
|
|
5
|
+
import { n as DeepsightService } from "./StreamCanvasCapture-_8gdW5Lk.js";
|
|
6
6
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
7
|
-
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-
|
|
7
|
+
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-4RRLi21P.js";
|
|
8
8
|
//#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
|
|
9
9
|
type SelfieCaptureOnlyState = FaceCaptureManagerState;
|
|
10
10
|
type SelfieCaptureOnlyManager = FaceCaptureManager;
|