@incodetech/core 0.0.0-dev-20261029-a725a1aa → 0.0.0-dev-20261030-25da0fd5
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/{FaceDetectionProvider-DyPUMA8q.esm.js → FaceDetectionProvider-IQUzWgoQ.esm.js} +23 -61
- package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
- package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
- package/dist/{WasmUtilProvider-DqtPEKsY.esm.js → WasmUtilProvider-DZOGC2HE.esm.js} +71 -22
- package/dist/{addressSearch-B0cu1Cuf.esm.js → addressSearch-41sMcnJk.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-Bcv2EsSL.esm.js → antifraudManager-CQ08atTC.esm.js} +2 -2
- package/dist/{antifraudStateMachine-C0Fvysdf.esm.js → antifraudStateMachine-BcsUTTIr.esm.js} +1 -1
- package/dist/{api-BG98lkot.esm.js → api-BO8JA7Pf.esm.js} +4 -4
- package/dist/{apiError-B30TKIvV.esm.js → apiError-yoXb-Uyb.esm.js} +1 -1
- package/dist/{attemptCarry-DpuNCHQS.esm.js → attemptCarry-BjTJ6bMQ.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-Cnixv5FG.esm.js → authenticationManager-BOasUkUz.esm.js} +5 -5
- package/dist/{authenticationManager-CfD9LLbU.d.ts → authenticationManager-CVDBB_4A.d.ts} +1 -1
- package/dist/{authenticationStateMachine-vqX2IRlb.esm.js → authenticationStateMachine-BrNJAQqh.esm.js} +3 -3
- package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-DkOFEXvI.esm.js} +2 -42
- package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-BQP6WIJ9.esm.js → certificateIssuanceManager-CM0fuqDC.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-CWRTfSXx.esm.js → certificateIssuanceStateMachine-kksIUOPD.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-D8TzUU2I.esm.js → consentManager-CBwFozhv.esm.js} +2 -2
- package/dist/{consentManager-sjhjBNVr.d.ts → consentManager-DXetSxcx.d.ts} +1 -1
- package/dist/{consentStateMachine-fujN6qEM.esm.js → consentStateMachine-CpmRAcr2.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-BN35sW3g.esm.js → crossDocumentDataMatchManager-64O8t10a.esm.js} +2 -2
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-HRRI_djy.esm.js → curpValidationManager-CLgJQcx0.esm.js} +2 -2
- package/dist/{curpValidationStateMachine-CFmEkT4f.esm.js → curpValidationStateMachine-Bx9YhVkJ.esm.js} +2 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-BJlPFi1I.esm.js → customFieldsManager-DWt_0YtJ.esm.js} +2 -2
- package/dist/{customWatchlistManager-Dqzf_LJ3.esm.js → customWatchlistManager-D8o-2Nej.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-BOaxa3XO.esm.js → customWatchlistStateMachine-Sbi6DIcK.esm.js} +1 -1
- package/dist/{deepsightLoader-Bb-pXoX7.esm.js → deepsightLoader-B1XqVJWL.esm.js} +6 -28
- package/dist/{deepsightService-BZDzMNFo.esm.js → deepsightService-BAkzK3Nb.esm.js} +19 -54
- package/dist/{createCameraCycleOwnership-c3noNWxH.esm.js → desktopCameraElection-NmoOMLSk.esm.js} +176 -39
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DuITDiyf.esm.js → documentCaptureManager-DWLtB2Dk.esm.js} +2 -2
- package/dist/{documentCaptureStateMachine-C9uhv5g5.esm.js → documentCaptureStateMachine-d5Vt5_Re.esm.js} +6 -6
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-D9dELeyW.esm.js → dynamicFormsManager-74zdG2yy.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-D7_a2Zvz.esm.js → dynamicFormsStateMachine-OwsSxFVw.esm.js} +2 -2
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-B5tGjaVU.esm.js → ekybManager-BMDJEcSv.esm.js} +2 -2
- package/dist/{ekybStateMachine-w6YNF3Ce.esm.js → ekybStateMachine-D91Zp08D.esm.js} +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-BnHD1My0.esm.js → ekycManager-Bn88hVYe.esm.js} +2 -2
- package/dist/{ekycStateMachine-DflJVAT5.esm.js → ekycStateMachine-BpVVBgoS.esm.js} +2 -2
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BvZrv57e.esm.js → electronicSignatureManager-CScqZVks.esm.js} +3 -3
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-Csi-HAvd.esm.js → emailManager-FH_CP0cT.esm.js} +2 -2
- package/dist/{emailStateMachine-c7tzsD7w.esm.js → emailStateMachine-Cx-uTaBV.esm.js} +2 -2
- package/dist/{events-Dh1gMk0J.esm.js → events-CQteqXfy.esm.js} +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +11 -11
- package/dist/extensibility.esm.js +34 -34
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-DEfqLONA.esm.js → faceCaptureManagerFactory-B7vE9xhl.esm.js} +4 -4
- package/dist/{faceCaptureManagerFactory-C3RG3oYt.d.ts → faceCaptureManagerFactory-QYEShK-c.d.ts} +65 -65
- package/dist/{faceCaptureSetup-aTSEvqZn.esm.js → faceCaptureSetup-CRsR2ivT.esm.js} +59 -60
- package/dist/{faceMatchManager-4Hh6X-G6.esm.js → faceMatchManager-CxP5KtOf.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-CosVB4iL.esm.js → faceMatchStateMachine-JkSYu0c3.esm.js} +1 -1
- package/dist/{feature-management-CV5IUhP5.esm.js → feature-management-C80dfJAV.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager--56VbIeN.esm.js → fieldComparisonManager-CC0vKmpf.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-C7PppK9Z.esm.js → fiscalQrManager-DuzweTAa.esm.js} +4 -4
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +4 -4
- package/dist/{flowCompletionService-D-0YwWEk.esm.js → flowCompletionService-BHubOkN6.esm.js} +2 -2
- package/dist/{flowServices-DZ-ixWxT.esm.js → flowServices-BlPwlfi9.esm.js} +6 -6
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DG88qNi5.esm.js → geolocationManager-f-X3Smp2.esm.js} +2 -2
- package/dist/{geolocationStateMachine-C5Yc7tMy.esm.js → geolocationStateMachine-QWnkiGR7.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-BF5jvOkb.esm.js → governmentValidationManager-CkX9TEkh.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-Bq75J8Ts.esm.js → governmentValidationStateMachine-PTPCP26N.esm.js} +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +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 +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-Bf57Ll9V.esm.js → idCaptureDefaults-BOIM1God.esm.js} +3 -3
- package/dist/{idCaptureManager-CrgYoRoE.esm.js → idCaptureManager-De6sKqvE.esm.js} +7 -7
- package/dist/{idCaptureManager-8w07suSB.d.ts → idCaptureManager-ffxqF7Ph.d.ts} +17 -3
- package/dist/{idCaptureServices-DQjG0h23.esm.js → idCaptureServices-CgwL0K-i.esm.js} +7 -7
- package/dist/{idCaptureStateMachine-DjoIP_DU.esm.js → idCaptureStateMachine-B3450XQ6.esm.js} +100 -100
- package/dist/{idOcrManager-D80xAPDt.esm.js → idOcrManager-B64-fjWg.esm.js} +2 -2
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-BTdHlJ9D.d.ts} +1 -1
- package/dist/{idOcrStateMachine-BCapxb9c.esm.js → idOcrStateMachine-B1aZnobs.esm.js} +1 -1
- package/dist/{idVerificationManager-C82KSWQl.esm.js → idVerificationManager-_Kebv-Ue.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-ex6gNfKa.esm.js → idVerificationStateMachine-DQn6c84z.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-BUNksfYU.d.ts → identityReuseManager-B1birg5X.d.ts} +4 -4
- package/dist/{identityReuseManager-MQMMPAs3.esm.js → identityReuseManager-DDXkNVZi.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-HnlJq2ed.esm.js → identityReuseStateMachine-Bcnkbjf8.esm.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-DzdtCRnn.esm.js → invokeOnCaptureCallback-CXIBwBeE.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-BRlzM19u.esm.js → mandatoryConsentManager-43W5d_8G.esm.js} +2 -2
- package/dist/{mandatoryConsentManager-DXLb7wjM.d.ts → mandatoryConsentManager-DJC0IyqV.d.ts} +1 -1
- package/dist/{mandatoryConsentStateMachine-CN-7xivA.esm.js → mandatoryConsentStateMachine-CVlgdlnt.esm.js} +1 -1
- package/dist/{multipartRecordingService-YhlbyjI4.esm.js → multipartRecordingService-BwyB15vd.esm.js} +1 -1
- package/dist/{permissionGuards-CL5GLmDp.esm.js → permissionGuards-IByIZJGX.esm.js} +1 -1
- package/dist/{permissionServices-DJyei2yK.esm.js → permissionServices-Ca4Uhdb-.esm.js} +2 -2
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-Dcj-iewA.esm.js → phoneManager-D0cLg7iV.esm.js} +2 -2
- package/dist/{phoneStateMachine-9F2yAf0d.esm.js → phoneStateMachine-CeZvtfk5.esm.js} +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-DQsYcUcF.esm.js → redirectToMobileManager-BJXC6Kx9.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-BzIdw6Os.esm.js → redirectToMobileStateMachine-BBMAc2Gb.esm.js} +1 -1
- package/dist/{runChildModule-BK4Y9-7S.esm.js → runChildModule-BHNhaELD.esm.js} +2 -2
- package/dist/{sdkVersion-yNv61tP8.esm.js → sdkVersion-DsYK-iZ4.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-Cv4o_Pfj.esm.js → selfieErrorUtils-DNoYoTIf.esm.js} +1 -1
- package/dist/{selfieManager-Cn3sNT6-.esm.js → selfieManager-B8LUutGU.esm.js} +5 -5
- package/dist/{selfieManager-CFgylJo7.d.ts → selfieManager-BFGMsYmc.d.ts} +1 -1
- package/dist/{selfieStateMachine-DnL1VnNP.esm.js → selfieStateMachine-BABRmBWk.esm.js} +3 -3
- package/dist/{session-Bw8ubKxw.esm.js → session-CdCJ2dJi.esm.js} +4 -4
- package/dist/session.d.ts +11 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-D9AZfKtF.esm.js → sessionInitializer-CWj60x1d.esm.js} +21 -8
- package/dist/{setup-XyKmxnYs.esm.js → setup-DsyIImNv.esm.js} +10 -10
- package/dist/{setup-YPKTUCY5.d.ts → setup-voDlOyiQ.d.ts} +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-DWOZ-uMN.esm.js → signatureManager-BeEVCcsC.esm.js} +2 -2
- package/dist/{signatureStateMachine-BTRIXJGb.esm.js → signatureStateMachine-_1c1vSid.esm.js} +1 -1
- package/dist/{stats-D3Cxg6PL.esm.js → stats-BpMz-hTP.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService-CKRS-Zz7.esm.js → trueSightService-CKxjX0fA.esm.js} +4 -4
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-fNjgqdt2.d.ts → types--3HDl2SF.d.ts} +1 -1
- package/dist/{types-C3dgFVhg.d.ts → types-D9r3zRfY.d.ts} +1 -1
- package/dist/{types-O88kK1QD.d.ts → types-Dcf7-Mf8.d.ts} +2 -2
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +7 -7
- package/dist/{videoSelfieCameraWarmer-B0qpOvsI.esm.js → videoSelfieCameraWarmer-Duo73E7c.esm.js} +9 -9
- package/dist/{videoSelfieStepDetector-FJ0osSpU.d.ts → videoSelfieStepDetector-RfSmlFFW.d.ts} +2 -2
- package/dist/{warmup-D-Y2iAoP.esm.js → warmup-DPfXWeBq.esm.js} +146 -8
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-CWvvmM2E.esm.js → wasmDsFlagSync-Ck2Lt6OY.esm.js} +1 -1
- package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
- package/dist/{wasmWebClient-DpRiJOHd.esm.js → wasmWebClient-DClKyqNR.esm.js} +19 -15
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-PKTQ09-2.esm.js → watchlistForBusinessManager-CVay6-9A.esm.js} +2 -2
- package/dist/{watchlistForBusinessStateMachine-CBgJuLJC.esm.js → watchlistForBusinessStateMachine-DA6K5na4.esm.js} +1 -1
- package/dist/{watchlistManager-G9pWQPfr.esm.js → watchlistManager-B8gQ_rw3.esm.js} +2 -2
- package/dist/{watchlistStateMachine-DH_Mm5h-.esm.js → watchlistStateMachine-CSi_ZhtT.esm.js} +1 -1
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +35 -35
- package/package.json +3 -3
package/dist/{FaceDetectionProvider-DyPUMA8q.esm.js → FaceDetectionProvider-IQUzWgoQ.esm.js}
RENAMED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { l as wasmRuntime } from "./warmup-
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
3
|
-
import { r as BaseWasmProvider } from "./WasmUtilProvider-
|
|
4
|
-
import { t as api, u as endpoints } from "./api-
|
|
5
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
6
|
-
import "./sessionInitializer-
|
|
7
|
-
import { t as addDeviceStats } from "./stats-
|
|
8
|
-
import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
9
|
-
import { i as requestCameraAccess, o as stopCameraStream, r as getCameraReacquisitionConstraints } from "./camera-sIa9ceW2.esm.js";
|
|
1
|
+
import { l as wasmRuntime } from "./warmup-DPfXWeBq.esm.js";
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-DsyIImNv.esm.js";
|
|
3
|
+
import { r as BaseWasmProvider } from "./WasmUtilProvider-DZOGC2HE.esm.js";
|
|
4
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
5
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-CKxjX0fA.esm.js";
|
|
6
|
+
import "./sessionInitializer-CWj60x1d.esm.js";
|
|
7
|
+
import { t as addDeviceStats } from "./stats-BpMz-hTP.esm.js";
|
|
10
8
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
11
|
-
import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-
|
|
12
|
-
import {
|
|
13
|
-
import "./deepsightService-
|
|
9
|
+
import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-BwyB15vd.esm.js";
|
|
10
|
+
import { n as hasBackCamera } from "./backCameraStream-DkOFEXvI.esm.js";
|
|
11
|
+
import "./deepsightService-BAkzK3Nb.esm.js";
|
|
14
12
|
import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
|
|
15
13
|
//#region src/internal/faceCapture/onDeviceFaceResults.ts
|
|
16
14
|
/**
|
|
@@ -136,54 +134,18 @@ async function processFace(imageType = "selfie", signal) {
|
|
|
136
134
|
function sendLabelInspectionEvent() {
|
|
137
135
|
return addDeviceStats({ cameraLabelInspectionStatus: "FAIL" });
|
|
138
136
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
audio: false
|
|
150
|
-
};
|
|
151
|
-
function buildCameraConstraints(resolution, deviceId) {
|
|
152
|
-
if (resolution) return {
|
|
153
|
-
video: {
|
|
154
|
-
facingMode: "user",
|
|
155
|
-
deviceId: deviceId ? { exact: deviceId } : void 0,
|
|
156
|
-
height: resolution.height ? { ideal: resolution.height } : void 0,
|
|
157
|
-
width: resolution.width ? { ideal: resolution.width } : void 0
|
|
158
|
-
},
|
|
159
|
-
audio: false
|
|
160
|
-
};
|
|
161
|
-
if (isIPhone14OrHigher()) return IPHONE14_SELFIE_CONSTRAINTS;
|
|
162
|
-
return MOBILE_SELFIE_CONSTRAINTS;
|
|
163
|
-
}
|
|
164
|
-
function stopStream(stream) {
|
|
165
|
-
stopCameraStream(stream);
|
|
166
|
-
}
|
|
167
|
-
async function getFrontCameraStream(resolution) {
|
|
168
|
-
if (isDesktop()) {
|
|
169
|
-
if (resolution) return ensureFrontCameraStream((deviceId) => requestCameraAccess(buildCameraConstraints(resolution, deviceId)));
|
|
170
|
-
return ensureFrontCameraStream((deviceId) => getDesktopCameraStream(deviceId ? { deviceId } : {}));
|
|
171
|
-
}
|
|
172
|
-
return requestCameraAccess(resolution ? buildCameraConstraints(resolution) : buildCameraConstraints());
|
|
173
|
-
}
|
|
174
|
-
async function initializeCamera(params) {
|
|
175
|
-
const { config } = params;
|
|
137
|
+
/**
|
|
138
|
+
* Camera-free preparation for one protected face attempt: warms the WASM
|
|
139
|
+
* pipeline the attempt will run and decides which lens to request. Since
|
|
140
|
+
* ml-wasm-kit v2.14.52 the kit acquires the camera itself inside the
|
|
141
|
+
* protected camera step (`ICameraCycleCapability.startCameraCycle`), so no
|
|
142
|
+
* camera opens here. Runs once per
|
|
143
|
+
* attempt — from the tutorial pre-acquire when there is one, otherwise at
|
|
144
|
+
* attempt start.
|
|
145
|
+
*/
|
|
146
|
+
async function probeFaceCamera(config) {
|
|
176
147
|
await ensureWasmPipelines([isOnDeviceMode(config) ? "onDeviceSelfie" : "selfie"]);
|
|
177
|
-
|
|
178
|
-
const backCamera = usingBackCamera ? await getBackCameraStream() : void 0;
|
|
179
|
-
const stream = backCamera?.stream ?? await getFrontCameraStream(config.cameraResolution);
|
|
180
|
-
const constraints = getCameraReacquisitionConstraints(stream.getVideoTracks()[0], backCamera?.constraints);
|
|
181
|
-
return {
|
|
182
|
-
stream,
|
|
183
|
-
provider: params.provider,
|
|
184
|
-
usingBackCamera,
|
|
185
|
-
constraints
|
|
186
|
-
};
|
|
148
|
+
return { usingBackCamera: config.assistedOnboarding === true && await hasBackCamera() };
|
|
187
149
|
}
|
|
188
150
|
/**
|
|
189
151
|
* Encrypts the provided selfie image using WASM.
|
|
@@ -271,7 +233,7 @@ function startDetection(params) {
|
|
|
271
233
|
};
|
|
272
234
|
}
|
|
273
235
|
async function initializeDeepsightSession(options) {
|
|
274
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
236
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-B1XqVJWL.esm.js");
|
|
275
237
|
return loadDeepsightSession({
|
|
276
238
|
ds: options.ds,
|
|
277
239
|
storage: options.storage
|
|
@@ -543,4 +505,4 @@ var FaceDetectionProvider = class extends BaseWasmProvider {
|
|
|
543
505
|
}
|
|
544
506
|
};
|
|
545
507
|
//#endregion
|
|
546
|
-
export { sendLabelInspectionEvent as a,
|
|
508
|
+
export { sendLabelInspectionEvent as a, uploadSelfie as c, isOnDeviceMode as d, probeFaceCamera as i, getFaceUploadErrorCode as l, encryptSelfieImage as n, startDetection as o, initializeDeepsightSession as r, processFace as s, FaceDetectionProvider as t, FACE_ERROR_CODES as u };
|
|
@@ -33,6 +33,12 @@ interface IStorageCapability {
|
|
|
33
33
|
type WasmUtilConfig = MLProviderConfig & {
|
|
34
34
|
pipelines?: WasmPipeline[];
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* Output object handed to {@link IWasmUtilCapability.poc}. Since ml-wasm-kit
|
|
38
|
+
* v2.14.53 the native check writes nothing into it (`itr` and `skipped` stay
|
|
39
|
+
* as the caller left them): the post-capture verdicts travel only in the
|
|
40
|
+
* signed capture metadata. Kept for the binding's arity.
|
|
41
|
+
*/
|
|
36
42
|
type VirtualCameraCheckOutput = {
|
|
37
43
|
canvas: HTMLCanvasElement | null;
|
|
38
44
|
itr: boolean | null;
|
|
@@ -66,6 +72,11 @@ type IWasmUtilCapability = {
|
|
|
66
72
|
setBrowserInfo(browserInfo: object, overrideExisting?: boolean): void;
|
|
67
73
|
setCameraInfo(cameraInfo: object, overrideExisting?: boolean): void;
|
|
68
74
|
setMotionStatus(status: string): void;
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated Native-free no-op since ml-wasm-kit v2.14.54, which removed
|
|
77
|
+
* the binding: the kit's own visibility observers record background time.
|
|
78
|
+
* Scheduled for removal in 3.0.0.
|
|
79
|
+
*/
|
|
69
80
|
setBackgroundMode(backgroundMode: boolean): void;
|
|
70
81
|
/**
|
|
71
82
|
* @deprecated Compatibility-only no-op since ml-wasm-kit v2.14.49-post1.
|
|
@@ -77,6 +88,11 @@ type IWasmUtilCapability = {
|
|
|
77
88
|
* for client-side gating.
|
|
78
89
|
*/
|
|
79
90
|
setOnDeviceMode(enabled: boolean): void;
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated Native-free no-op since ml-wasm-kit v2.14.54, which removed
|
|
93
|
+
* the binding: the zoom check is gone and `iad.zc` is the constant `PASS`.
|
|
94
|
+
* Scheduled for removal in 3.0.0.
|
|
95
|
+
*/
|
|
80
96
|
setZc(zc: string): void;
|
|
81
97
|
setInspectorOpened(opened: boolean): void;
|
|
82
98
|
/**
|
|
@@ -112,18 +128,29 @@ type IWasmUtilCapability = {
|
|
|
112
128
|
getCheck(): string;
|
|
113
129
|
/**
|
|
114
130
|
* Gets the current pipeline state. Must be called before setMotionStatus(),
|
|
115
|
-
* getCheck(),
|
|
131
|
+
* getCheck(), and getMetadata() for proper metadata generation.
|
|
116
132
|
*/
|
|
117
133
|
getPipelineState(): string;
|
|
118
134
|
estimatePerformance(): string;
|
|
119
135
|
/**
|
|
120
136
|
* @deprecated Returns `false` for compatibility; scheduled for removal in
|
|
121
|
-
* 3.0.0.
|
|
122
|
-
*
|
|
123
|
-
*
|
|
137
|
+
* 3.0.0. The protected camera step (`ICameraCycleCapability.startCameraCycle`)
|
|
138
|
+
* runs the pre-capture checks and the signed capture metadata carries the
|
|
139
|
+
* verdicts; nothing is decided from the track label.
|
|
124
140
|
*/
|
|
125
141
|
isVirtualCamera(label: string | null): boolean;
|
|
142
|
+
/**
|
|
143
|
+
* @deprecated Resolves without doing anything since ml-wasm-kit v2.14.52,
|
|
144
|
+
* which removed the binding: the pre-capture check runs inside the protected
|
|
145
|
+
* camera step (`ICameraCycleCapability.startCameraCycle`), so a `prc()` then
|
|
146
|
+
* `poc()` sequence keeps working. Scheduled for removal in 3.0.0.
|
|
147
|
+
*/
|
|
126
148
|
prc(): Promise<void>;
|
|
149
|
+
/**
|
|
150
|
+
* Runs the native post-capture check. `output` is kept for the binding's
|
|
151
|
+
* arity and is not written since ml-wasm-kit v2.14.53 — see
|
|
152
|
+
* {@link VirtualCameraCheckOutput}.
|
|
153
|
+
*/
|
|
127
154
|
poc(output: VirtualCameraCheckOutput): Promise<void>;
|
|
128
155
|
rsp(): Promise<void>;
|
|
129
156
|
ssl(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { y as IncodeCanvas } from "./createFaceAvatar-lYX0VTYs.js";
|
|
2
|
-
import "./IWasmUtilCapability-
|
|
2
|
+
import "./IWasmUtilCapability-Cqiaxydi.js";
|
|
3
3
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
4
4
|
//#region ../infra/src/capabilities/IMotionSensorCapability.d.ts
|
|
5
5
|
type MotionStatus = 'PASS' | 'FAIL' | 'UNCLEAR';
|
|
@@ -12,6 +12,11 @@ type MetadataService = {
|
|
|
12
12
|
checkForVirtualCameraByLabel(videoTrack: MediaStreamTrack | null): Promise<boolean>;
|
|
13
13
|
analyzeFrame(imageData: ImageData): Promise<void>;
|
|
14
14
|
setMotionStatus(status: string): void;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated No-op since ml-wasm-kit v2.14.54 removed `setBackgroundMode`:
|
|
17
|
+
* the kit's own visibility observers record background time in the capture
|
|
18
|
+
* metadata. Scheduled for removal in 3.0.0.
|
|
19
|
+
*/
|
|
15
20
|
setBackgroundMode(backgroundMode: boolean): void;
|
|
16
21
|
estimatePerformance(): string;
|
|
17
22
|
getMetadata(): string;
|
|
@@ -19,7 +24,7 @@ type MetadataService = {
|
|
|
19
24
|
getPipelineState(): string;
|
|
20
25
|
/**
|
|
21
26
|
* Prepares pipeline state for metadata collection.
|
|
22
|
-
* Must be called before setMotionStatus, getCheck,
|
|
27
|
+
* Must be called before setMotionStatus, getCheck, and getMetadata.
|
|
23
28
|
*/
|
|
24
29
|
preparePipelineState(): void;
|
|
25
30
|
};
|
|
@@ -53,7 +58,11 @@ type DeepsightService = {
|
|
|
53
58
|
checkVirtualCamera(videoTrack: MediaStreamTrack): Promise<boolean>;
|
|
54
59
|
performVirtualCameraCheck(sessionToken: string | null, source: FrameSource): Promise<void>;
|
|
55
60
|
/**
|
|
56
|
-
*
|
|
61
|
+
* @deprecated No-op since ml-wasm-kit v2.14.52 removed `prc`: the
|
|
62
|
+
* pre-capture check runs inside the protected camera step
|
|
63
|
+
* (`ICameraCycleCapability.startCameraCycle`) that the protected attempt
|
|
64
|
+
* drives, and there is no stand-alone warm-up any more. Scheduled for
|
|
65
|
+
* removal in 3.0.0.
|
|
57
66
|
*/
|
|
58
67
|
performPrcCheck(params: DeepsightPrcCheckParams): Promise<void>;
|
|
59
68
|
analyzeFrame(imageData: ImageData): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
-
import { c as wasmCallWrapper, d as noteUnlockedCallStart, s as ML_CALL_MAX_POLLS, u as noteUnlockedCallEnd } from "./wasmWebClient-
|
|
3
|
-
import { i as isWasmReady, l as wasmRuntime, o as waitForWasm, r as getWasmStatus, s as warmupWasm } from "./warmup-
|
|
2
|
+
import { c as wasmCallWrapper, d as noteUnlockedCallStart, s as ML_CALL_MAX_POLLS, u as noteUnlockedCallEnd } from "./wasmWebClient-DClKyqNR.esm.js";
|
|
3
|
+
import { i as isWasmReady, l as wasmRuntime, o as waitForWasm, r as getWasmStatus, s as warmupWasm } from "./warmup-DPfXWeBq.esm.js";
|
|
4
4
|
//#region ../infra/src/wasm/utilityWasmApi.ts
|
|
5
5
|
/**
|
|
6
6
|
* Utility / metadata domain facade over {@link WasmRuntime}.
|
|
@@ -10,7 +10,8 @@ import { i as isWasmReady, l as wasmRuntime, o as waitForWasm, r as getWasmStatu
|
|
|
10
10
|
* persist and that must be replayed into it at call time —
|
|
11
11
|
*
|
|
12
12
|
* - `dsEnabled_` (deepsight) is passed as an argument on every
|
|
13
|
-
* `
|
|
13
|
+
* `poc`/`rsp`/`ssl` call, and read back through {@link getDsEnabled} by
|
|
14
|
+
* `CameraCycleProvider` for the camera step's `ds` option;
|
|
14
15
|
* - `inspectorOpened_` is pushed into C++ inside {@link getMetadata}, right
|
|
15
16
|
* before reading the metadata, because `setInspectorOpened` may legitimately be
|
|
16
17
|
* called before WASM is initialized.
|
|
@@ -21,10 +22,24 @@ import { i as isWasmReady, l as wasmRuntime, o as waitForWasm, r as getWasmStatu
|
|
|
21
22
|
* `fpPrefetch_` is a third, derived piece of JS state: the memoized `ppf` poll
|
|
22
23
|
* that `getFPData` awaits, keyed by the embind handle it was started on.
|
|
23
24
|
*
|
|
24
|
-
* `
|
|
25
|
+
* `poc`/`rsp` are the only methods here that hold the ML semaphore (the camera
|
|
26
|
+
* step's `cst` holds it from `WasmRuntime`).
|
|
25
27
|
* `ssl`/`stl`/`osv`/`oev`/`ckvcks`/`sbc`/`ppf` and everything else are unlocked **by design**
|
|
26
28
|
* (decision D6) — never add locking.
|
|
27
29
|
*
|
|
30
|
+
* Three members are deprecated native-free shims for bindings ml-wasm-kit
|
|
31
|
+
* deleted: `prc` (v2.14.52) rejects with a fixed error; `setZc` and
|
|
32
|
+
* `setBackgroundMode` (v2.14.54) are no-ops. `WasmUtilProvider` is public
|
|
33
|
+
* (`@incodetech/core/extensibility`) and `major` changesets are forbidden, so
|
|
34
|
+
* they follow the `isVirtualCamera` / `processPhoto` precedent until 3.0.0.
|
|
35
|
+
*
|
|
36
|
+
* `smv` (restored in ml-wasm-kit v2.14.54-pre5; `true` selects v2 since pre6)
|
|
37
|
+
* is guarded like upstream but routes through `WasmRuntime.setMetadataV2Enabled`,
|
|
38
|
+
* which latches the
|
|
39
|
+
* selection and replays it after every `initialize()` — the kit keeps it as
|
|
40
|
+
* realm state (ADR 0009 §6). The SDK-facing unguarded entry is
|
|
41
|
+
* `wasmMetadataVersionSync.ts`.
|
|
42
|
+
*
|
|
28
43
|
* Method names, argument order and the pre-initialization error strings are
|
|
29
44
|
* copied verbatim from the mirrored upstream `wasmApi.ts` so a WASM version bump
|
|
30
45
|
* stays a diff against upstream (`docs/processes/WASM_VERSION_MIGRATION.md`).
|
|
@@ -58,8 +73,9 @@ var UtilityWasmApi = class {
|
|
|
58
73
|
}
|
|
59
74
|
/**
|
|
60
75
|
* @deprecated Native label inspection has been unavailable since
|
|
61
|
-
* v2.14.49-post1; scheduled for removal in 3.0.0.
|
|
62
|
-
*
|
|
76
|
+
* v2.14.49-post1; scheduled for removal in 3.0.0. The protected camera step
|
|
77
|
+
* (`ICameraCycleCapability.startCameraCycle`) runs the pre-capture checks
|
|
78
|
+
* and the signed capture metadata carries the verdicts.
|
|
63
79
|
*/
|
|
64
80
|
isVirtualCamera(_label) {
|
|
65
81
|
return false;
|
|
@@ -105,9 +121,12 @@ var UtilityWasmApi = class {
|
|
|
105
121
|
setCameraInfo(cameraInfo, overrideExisting = true) {
|
|
106
122
|
this.runtime.requireUtilityApi("Unable to set camera info, cpp API hasn't been initialized").setCameraInfo(cameraInfo, overrideExisting);
|
|
107
123
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
124
|
+
/**
|
|
125
|
+
* @deprecated Native-free no-op. ml-wasm-kit v2.14.54 removed `setZc`: the
|
|
126
|
+
* zoom check is gone and `iad.zc` is the constant `PASS` in the capture
|
|
127
|
+
* metadata. Scheduled for removal in 3.0.0.
|
|
128
|
+
*/
|
|
129
|
+
setZc(_zc) {}
|
|
111
130
|
setMotionStatus(motionStatus) {
|
|
112
131
|
this.runtime.requireUtilityApi("Unable to set motion status, cpp API hasn't been initialized").setMotionStatus(motionStatus);
|
|
113
132
|
}
|
|
@@ -117,12 +136,19 @@ var UtilityWasmApi = class {
|
|
|
117
136
|
getInspectorOpened() {
|
|
118
137
|
return this.inspectorOpened_;
|
|
119
138
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
139
|
+
/**
|
|
140
|
+
* @deprecated Native-free no-op. ml-wasm-kit v2.14.54 removed
|
|
141
|
+
* `setBackgroundMode`: the kit's own visibility observers record background
|
|
142
|
+
* time. Scheduled for removal in 3.0.0.
|
|
143
|
+
*/
|
|
144
|
+
setBackgroundMode(_backgroundMode) {}
|
|
123
145
|
setDsEnabled(enabled) {
|
|
124
146
|
this.dsEnabled_ = enabled;
|
|
125
147
|
}
|
|
148
|
+
/** The JS-side deepsight flag, for callers that replay it into the kit themselves. */
|
|
149
|
+
getDsEnabled() {
|
|
150
|
+
return this.dsEnabled_;
|
|
151
|
+
}
|
|
126
152
|
getCheck() {
|
|
127
153
|
const utilityApi = this.runtime.requireUtilityApi("Unable to get check, cpp API hasn't been initialized");
|
|
128
154
|
noteUnlockedCallStart("getCheck");
|
|
@@ -146,6 +172,16 @@ var UtilityWasmApi = class {
|
|
|
146
172
|
this.runtime.requireUtilityApi("Unable to sbc, cpp API hasn't been initialized").sbc(enabled);
|
|
147
173
|
}
|
|
148
174
|
/**
|
|
175
|
+
* Capture-metadata format selector (`smv`, ml-wasm-kit v2.14.54-pre6):
|
|
176
|
+
* `true` selects the v2 document, `false` the v1 document (the module
|
|
177
|
+
* default). Guarded like upstream; the selection is latched on the runtime
|
|
178
|
+
* so it survives re-initialization (ADR 0009 §6).
|
|
179
|
+
*/
|
|
180
|
+
smv(enabled) {
|
|
181
|
+
this.runtime.requireUtilityApi("Unable to smv, cpp API hasn't been initialized");
|
|
182
|
+
this.runtime.setMetadataV2Enabled(enabled);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
149
185
|
* Reads one fingerprint signal bucket (see {@link SignalDataType}), encrypted
|
|
150
186
|
* by the native module. Waits for the one-time async prefetch (`ppf`) first.
|
|
151
187
|
* An empty string means the bucket has no data.
|
|
@@ -184,13 +220,15 @@ var UtilityWasmApi = class {
|
|
|
184
220
|
});
|
|
185
221
|
return promise;
|
|
186
222
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
223
|
+
/**
|
|
224
|
+
* @deprecated Resolves without doing anything. ml-wasm-kit v2.14.52 removed
|
|
225
|
+
* `prc`: the pre-capture check runs inside the protected camera step
|
|
226
|
+
* (`ICameraCycleCapability.startCameraCycle`), which holds the ML semaphore
|
|
227
|
+
* for it, so a caller that still awaits `prc()` before `poc()` loses
|
|
228
|
+
* nothing. Scheduled for removal in 3.0.0.
|
|
229
|
+
*/
|
|
230
|
+
prc() {
|
|
231
|
+
return Promise.resolve();
|
|
194
232
|
}
|
|
195
233
|
async poc(output) {
|
|
196
234
|
const message = "Unable to poc, cpp API hasn't been initialized";
|
|
@@ -389,15 +427,21 @@ var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
|
|
|
389
427
|
this.ensureInitialized();
|
|
390
428
|
utilityWasmApi.setMotionStatus(status);
|
|
391
429
|
}
|
|
430
|
+
/**
|
|
431
|
+
* @deprecated Native-free no-op since ml-wasm-kit v2.14.54; scheduled for
|
|
432
|
+
* removal in 3.0.0. Like the other shims it never requires initialization.
|
|
433
|
+
*/
|
|
392
434
|
setBackgroundMode(backgroundMode) {
|
|
393
|
-
this.ensureInitialized();
|
|
394
435
|
utilityWasmApi.setBackgroundMode(backgroundMode);
|
|
395
436
|
}
|
|
396
437
|
setOnDeviceMode(enabled) {
|
|
397
438
|
wasmRuntime.setOnDeviceMode(enabled);
|
|
398
439
|
}
|
|
440
|
+
/**
|
|
441
|
+
* @deprecated Native-free no-op since ml-wasm-kit v2.14.54; scheduled for
|
|
442
|
+
* removal in 3.0.0. Like the other shims it never requires initialization.
|
|
443
|
+
*/
|
|
399
444
|
setZc(zc) {
|
|
400
|
-
this.ensureInitialized();
|
|
401
445
|
utilityWasmApi.setZc(zc);
|
|
402
446
|
}
|
|
403
447
|
setInspectorOpened(opened) {
|
|
@@ -452,8 +496,13 @@ var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
|
|
|
452
496
|
isVirtualCamera(label) {
|
|
453
497
|
return utilityWasmApi.isVirtualCamera(label);
|
|
454
498
|
}
|
|
499
|
+
/**
|
|
500
|
+
* @deprecated Resolves without doing anything since ml-wasm-kit v2.14.52:
|
|
501
|
+
* the pre-capture check runs inside the protected camera step, so existing
|
|
502
|
+
* `prc()` then `poc()` call sites keep working. Scheduled for removal in
|
|
503
|
+
* 3.0.0.
|
|
504
|
+
*/
|
|
455
505
|
async prc() {
|
|
456
|
-
this.ensureInitialized();
|
|
457
506
|
await utilityWasmApi.prc();
|
|
458
507
|
}
|
|
459
508
|
async poc(output) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
3
|
import { t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
4
|
//#region src/shared/usStates.ts
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-CScqZVks.esm.js";
|
|
2
2
|
//#region src/modules/ae-signature/index.ts
|
|
3
3
|
function createAeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
package/dist/antifraud.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
2
|
-
import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-
|
|
1
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-BcsUTTIr.esm.js";
|
|
2
|
+
import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-CQ08atTC.esm.js";
|
|
3
3
|
export { antifraudMachine, createAntifraudManager, createAntifraudManagerFromActor };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
4
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-BcsUTTIr.esm.js";
|
|
5
5
|
//#region src/modules/antifraud/antifraudActor.ts
|
|
6
6
|
function createAntifraudActor() {
|
|
7
7
|
return createActor(antifraudMachine).start();
|
package/dist/{antifraudStateMachine-C0Fvysdf.esm.js → antifraudStateMachine-BcsUTTIr.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
2
2
|
import { t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
4
|
//#region src/modules/antifraud/antifraudServices.ts
|
|
@@ -271,10 +271,10 @@ async function withTiming(method, url, call) {
|
|
|
271
271
|
* (later keys overwrite earlier ones in object spread).
|
|
272
272
|
*
|
|
273
273
|
* Existing call sites that already pass an explicit
|
|
274
|
-
* `X-Incode-Hardware-Id` header (`recordingsRepository.uploadDeepsightVideo
|
|
275
|
-
* `internal/virtualCameraCheck.logFrame`) now use the
|
|
276
|
-
* passed in unconditionally — previously the auto-injection
|
|
277
|
-
* clobbered them.
|
|
274
|
+
* `X-Incode-Hardware-Id` header (`recordingsRepository.uploadDeepsightVideo`;
|
|
275
|
+
* the retired `internal/virtualCameraCheck.logFrame` did too) now use the
|
|
276
|
+
* value they passed in unconditionally — previously the auto-injection
|
|
277
|
+
* silently clobbered them. Those call sites pass tokens that are already
|
|
278
278
|
* supposed to be the active session token, so behaviour is
|
|
279
279
|
* unchanged in practice; the change unblocks personhood (which
|
|
280
280
|
* needs to attach its own slot's token) without bypassing the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getToken } from "./api-
|
|
1
|
+
import { r as getToken } from "./api-BO8JA7Pf.esm.js";
|
|
2
2
|
import { a as watchConnectivity } from "./connectivity-HSl0diCx.esm.js";
|
|
3
3
|
//#region src/internal/session/attemptCarry.ts
|
|
4
4
|
const carried = /* @__PURE__ */ new Map();
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
2
|
-
import { t as AuthenticationConfig } from "./types-
|
|
3
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-QYEShK-c.js";
|
|
2
|
+
import { t as AuthenticationConfig } from "./types-D9r3zRfY.js";
|
|
3
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CVDBB_4A.js";
|
|
4
4
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
2
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-BrNJAQqh.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BOasUkUz.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-Cnixv5FG.esm.js → authenticationManager-BOasUkUz.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
3
|
-
import { n as eventModuleNames } from "./events-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-DsyIImNv.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-DZOGC2HE.esm.js";
|
|
3
|
+
import { n as eventModuleNames } from "./events-CQteqXfy.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-B7vE9xhl.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-BrNJAQqh.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationActor.ts
|
|
8
8
|
function createAuthenticationActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-QYEShK-c.js";
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
3
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { d as
|
|
5
|
-
import {
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-CRsR2ivT.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-IQUzWgoQ.esm.js";
|
|
5
|
+
import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-NmoOMLSk.esm.js";
|
|
6
6
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
7
7
|
const AUTH_ERROR_MAP = {
|
|
8
8
|
SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as isIOS, c as isIPhone14OrHigher, d as isSafari, i as isDesktop, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-E_Kcre4O.esm.js";
|
|
3
3
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
4
4
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
5
5
|
//#region src/internal/camera/backCameraStream.ts
|
|
@@ -396,9 +396,6 @@ async function getDesktopCameraStreamResult(options, fallbackLevel = 0) {
|
|
|
396
396
|
return getDesktopCameraStreamResult(options, nextLevel);
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
async function getDesktopCameraStream(options, fallbackLevel = 0) {
|
|
400
|
-
return (await getDesktopCameraStreamResult(options, fallbackLevel)).stream;
|
|
401
|
-
}
|
|
402
399
|
/**
|
|
403
400
|
* Pick the best back-facing device from a list already filtered by label.
|
|
404
401
|
* Prefers the highest megapixel count when labels advertise it, else the first.
|
|
@@ -450,43 +447,6 @@ async function getDesktopBackCameraStream(deviceId) {
|
|
|
450
447
|
return original;
|
|
451
448
|
}
|
|
452
449
|
}
|
|
453
|
-
/**
|
|
454
|
-
* Desktop front-camera (selfie) acquisition with verify-and-correct.
|
|
455
|
-
*
|
|
456
|
-
* Counterpart to {@link getDesktopBackCameraStream}. Requesting a front camera
|
|
457
|
-
* uses an *advisory* `facingMode: 'user'` hint, which the browser may ignore —
|
|
458
|
-
* notably on a Surface after the back camera was explicitly opened by deviceId
|
|
459
|
-
* for ID capture, the browser remembers the rear camera as its preferred device
|
|
460
|
-
* and hands it back for the selfie too.
|
|
461
|
-
*
|
|
462
|
-
* The caller supplies an `open(deviceId?)` callback so this stays agnostic to
|
|
463
|
-
* the selfie resolution strategy. We then verify by LABEL only (never
|
|
464
|
-
* facingMode):
|
|
465
|
-
* 1. Open via the callback.
|
|
466
|
-
* 2. If the opened track is NOT a back camera → trust it, return as-is.
|
|
467
|
-
* 3. If it IS a back camera, enumerate and reopen the first non-back device.
|
|
468
|
-
* 4. If there is no non-back device, or the reopen fails → keep the original.
|
|
469
|
-
*
|
|
470
|
-
* Note: "first non-back device" is intentionally simple — on machines that also
|
|
471
|
-
* expose a Windows Hello IR sensor this could pick the IR camera. Accepted
|
|
472
|
-
* tradeoff; revisit with a front-label allowlist if it proves a problem.
|
|
473
|
-
*/
|
|
474
|
-
async function ensureFrontCameraStream(open) {
|
|
475
|
-
const original = await open();
|
|
476
|
-
const track = original.getVideoTracks()[0];
|
|
477
|
-
if (!track || !isBackCameraLabel(track.label)) return original;
|
|
478
|
-
const frontDevices = (await enumerateVideoDevices()).filter((d) => !isBackCameraLabel(d.label));
|
|
479
|
-
if (frontDevices.length === 0) return original;
|
|
480
|
-
const target = frontDevices[0];
|
|
481
|
-
if (track.getSettings().deviceId === target.deviceId) return original;
|
|
482
|
-
try {
|
|
483
|
-
const corrected = await open(target.deviceId);
|
|
484
|
-
stopCameraStream(original);
|
|
485
|
-
return corrected;
|
|
486
|
-
} catch {
|
|
487
|
-
return original;
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
450
|
async function getBackCameraStream(deviceId) {
|
|
491
451
|
if (isIOS()) return getIOSCameraStream();
|
|
492
452
|
if (isAndroid()) {
|
|
@@ -501,4 +461,4 @@ async function getBackCameraStream(deviceId) {
|
|
|
501
461
|
};
|
|
502
462
|
}
|
|
503
463
|
//#endregion
|
|
504
|
-
export {
|
|
464
|
+
export { selectBestBackDevice as a, isBackFacingTrack as i, hasBackCamera as n, isBackCameraLabel as r, getBackCameraStream as t };
|