@incodetech/core 0.0.0-dev-20261029-a725a1aa → 0.0.0-dev-20261030-3cc525ea
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-D-oC0nrr.esm.js} +24 -62
- package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
- 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-Cstx0HCp.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-BBSS7Pth.esm.js} +5 -5
- package/dist/{authenticationManager-CfD9LLbU.d.ts → authenticationManager-CVDBB_4A.d.ts} +1 -1
- package/dist/{authenticationStateMachine-vqX2IRlb.esm.js → authenticationStateMachine-C3tQvmvy.esm.js} +3 -3
- package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-C5_NNfUN.esm.js} +3 -43
- 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.esm.js +2 -2
- package/dist/{consentManager-D8TzUU2I.esm.js → consentManager-CBwFozhv.esm.js} +2 -2
- 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-CIH9QzTa.esm.js} +6 -28
- package/dist/{deepsightService-BZDzMNFo.esm.js → deepsightService-BgT5mkK0.esm.js} +19 -54
- package/dist/{createCameraCycleOwnership-c3noNWxH.esm.js → desktopCameraElection-Cxs3SIBQ.esm.js} +176 -39
- package/dist/device.esm.js +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DuITDiyf.esm.js → documentCaptureManager-Z-FgBzHi.esm.js} +2 -2
- package/dist/{documentCaptureStateMachine-C9uhv5g5.esm.js → documentCaptureStateMachine-BkZKM3yW.esm.js} +6 -6
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-D9dELeyW.esm.js → dynamicFormsManager-UdNVZUQb.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-D7_a2Zvz.esm.js → dynamicFormsStateMachine-BxwVgdPS.esm.js} +2 -2
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-B5tGjaVU.esm.js → ekybManager-CeSJFT4O.esm.js} +2 -2
- package/dist/{ekybStateMachine-w6YNF3Ce.esm.js → ekybStateMachine-s6rtlqoX.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-lG4ZMi40.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 +9 -9
- package/dist/extensibility.esm.js +34 -34
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-DEfqLONA.esm.js → faceCaptureManagerFactory-BhQfhyYF.esm.js} +4 -4
- package/dist/{faceCaptureManagerFactory-C3RG3oYt.d.ts → faceCaptureManagerFactory-QYEShK-c.d.ts} +65 -65
- package/dist/{faceCaptureSetup-aTSEvqZn.esm.js → faceCaptureSetup-Bob4XZ38.esm.js} +60 -61
- 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-DvaOIWTd.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-Be-r4oZj.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-BEn4f62h.esm.js} +2 -2
- package/dist/{flowServices-DZ-ixWxT.esm.js → flowServices-D09TmdRL.esm.js} +6 -6
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CpIjrPEG.d.ts → geolocationManager-6e1i9UIR.d.ts} +1 -9
- package/dist/{geolocationManager-DG88qNi5.esm.js → geolocationManager-DQUzZn78.esm.js} +2 -2
- package/dist/{geolocationStateMachine-C5Yc7tMy.esm.js → geolocationStateMachine-Cn2ZVep0.esm.js} +4 -4
- package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
- 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.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 -16
- 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-BuFK87IL.esm.js} +59 -12
- package/dist/{idCaptureManager-8w07suSB.d.ts → idCaptureManager-DzTfQ1Am.d.ts} +65 -4
- package/dist/{idCaptureServices-DQjG0h23.esm.js → idCaptureServices-oTJduxMD.esm.js} +9 -9
- package/dist/{idCaptureStateMachine-DjoIP_DU.esm.js → idCaptureStateMachine-B-4DGyLc.esm.js} +2782 -2502
- package/dist/{idOcrManager-D80xAPDt.esm.js → idOcrManager-B64-fjWg.esm.js} +2 -2
- 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.esm.js +2 -2
- package/dist/{mandatoryConsentManager-BRlzM19u.esm.js → mandatoryConsentManager-43W5d_8G.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-CN-7xivA.esm.js → mandatoryConsentStateMachine-CVlgdlnt.esm.js} +1 -1
- package/dist/{multipartRecordingService-YhlbyjI4.esm.js → multipartRecordingService-DMBxHKS2.esm.js} +2 -2
- package/dist/{permissionGuards-CL5GLmDp.esm.js → permissionGuards-Dck-ZReK.esm.js} +1 -1
- package/dist/{permissionServices-DJyei2yK.esm.js → permissionServices-CJSZshmj.esm.js} +4 -4
- 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/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
- 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-C6I8AEeH.esm.js} +2 -2
- package/dist/{sdkVersion-yNv61tP8.esm.js → sdkVersion-BuDwQDHZ.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-CXUdNpVH.esm.js} +1 -1
- package/dist/{selfieManager-CFgylJo7.d.ts → selfieManager-BFGMsYmc.d.ts} +1 -1
- package/dist/{selfieManager-Cn3sNT6-.esm.js → selfieManager-D4HZjS2e.esm.js} +5 -5
- package/dist/{selfieStateMachine-DnL1VnNP.esm.js → selfieStateMachine-Dy3awst5.esm.js} +3 -3
- package/dist/{session-Bw8ubKxw.esm.js → session-CrrKm9kK.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-C5QWEuMW.esm.js} +22 -9
- package/dist/{setup-XyKmxnYs.esm.js → setup-cM510hqp.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-Cp-DdiFI.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-xEEWCx1j.d.ts} +120 -45
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +7 -7
- package/dist/{videoSelfieCameraWarmer-B0qpOvsI.esm.js → videoSelfieCameraWarmer-CCLcOlqZ.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
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
* all, so nothing here can throw in hosts that delete or block the storage
|
|
14
14
|
* globals.
|
|
15
15
|
*
|
|
16
|
-
* Written by the acquisition helpers in `./camera
|
|
17
|
-
* `BrowserCameraProvider
|
|
16
|
+
* Written by the acquisition helpers in `./camera`, by
|
|
17
|
+
* `BrowserCameraProvider`, and by the WASM camera step through
|
|
18
|
+
* `CameraCycleProvider.startCameraCycle` (the kit keeps no permission state).
|
|
19
|
+
* Read by Core's `checkPermission()`, which trusts it
|
|
18
20
|
* only on Android WebView — where the Permissions API structurally cannot
|
|
19
21
|
* report a grant. See `isAndroidWebView` in `../capabilities/platform`.
|
|
20
22
|
*/
|
|
@@ -37,6 +39,15 @@ function isCameraGrantedInDocument() {
|
|
|
37
39
|
return cameraGrantedInDocument;
|
|
38
40
|
}
|
|
39
41
|
/**
|
|
42
|
+
* The one rule for "this acquisition error means the permission is gone":
|
|
43
|
+
* only the two permission names count. A busy, missing or over-constrained
|
|
44
|
+
* device says nothing about permission. Shared by {@link trackCameraAcquisition}
|
|
45
|
+
* and by the WASM camera step's `onCameraFailed` (`CameraCycleProvider`).
|
|
46
|
+
*/
|
|
47
|
+
function isCameraDenialErrorName(name) {
|
|
48
|
+
return name === "NotAllowedError" || name === "PermissionDeniedError";
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
40
51
|
* Runs a camera acquisition and records its outcome in the memo: a resolved
|
|
41
52
|
* stream marks the grant, a permission denial forgets it, and every other
|
|
42
53
|
* failure leaves the memo untouched — a busy, missing or over-constrained
|
|
@@ -52,8 +63,7 @@ async function trackCameraAcquisition(acquire) {
|
|
|
52
63
|
markCameraGrantedInDocument();
|
|
53
64
|
return result;
|
|
54
65
|
} catch (error) {
|
|
55
|
-
|
|
56
|
-
if (name === "NotAllowedError" || name === "PermissionDeniedError") clearCameraGrantedInDocument();
|
|
66
|
+
if (isCameraDenialErrorName(error instanceof Error ? error.name : void 0)) clearCameraGrantedInDocument();
|
|
57
67
|
throw error;
|
|
58
68
|
}
|
|
59
69
|
}
|
|
@@ -126,24 +136,6 @@ async function requestCameraWithFallback(baseConstraints, fallbacks = DEFAULT_RE
|
|
|
126
136
|
}
|
|
127
137
|
throw new Error("All camera resolution fallbacks failed");
|
|
128
138
|
}
|
|
129
|
-
/**
|
|
130
|
-
* Preserve the constraints used for an acquired camera while pinning future
|
|
131
|
-
* acquisitions to the device the browser actually selected.
|
|
132
|
-
*
|
|
133
|
-
* Protected WASM PRC/POC may reacquire the stream. Advisory constraints such
|
|
134
|
-
* as `facingMode` are not enough on devices with multiple matching cameras,
|
|
135
|
-
* so the selected device must be replayed as an exact constraint.
|
|
136
|
-
*/
|
|
137
|
-
function getCameraReacquisitionConstraints(track, acquisitionConstraints) {
|
|
138
|
-
if (!track) return acquisitionConstraints;
|
|
139
|
-
const constraints = acquisitionConstraints ?? track.getConstraints();
|
|
140
|
-
const selectedDeviceId = track.getSettings().deviceId;
|
|
141
|
-
if (!selectedDeviceId) return constraints;
|
|
142
|
-
return {
|
|
143
|
-
...constraints,
|
|
144
|
-
deviceId: { exact: selectedDeviceId }
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
139
|
function stopCameraStream(stream) {
|
|
148
140
|
for (const track of stream.getTracks()) track.stop();
|
|
149
141
|
}
|
|
@@ -155,4 +147,4 @@ async function applyTrackConstraints(track, constraints) {
|
|
|
155
147
|
await track.applyConstraints(constraints);
|
|
156
148
|
}
|
|
157
149
|
//#endregion
|
|
158
|
-
export {
|
|
150
|
+
export { stopCameraStream as a, isCameraGrantedInDocument as c, requestCameraWithFallback as i, markCameraGrantedInDocument as l, enumerateVideoDevices as n, clearCameraGrantedInDocument as o, requestCameraAccess as r, isCameraDenialErrorName as s, applyTrackConstraints as t };
|
package/dist/camera.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as requestPermission, t as checkPermission } from "./permissionServices-
|
|
1
|
+
import { a as requestPermission, t as checkPermission } from "./permissionServices-CJSZshmj.esm.js";
|
|
2
2
|
export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
2
|
-
import { n as createCertificateIssuanceManagerFromActor, t as createCertificateIssuanceManager } from "./certificateIssuanceManager-
|
|
1
|
+
import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-kksIUOPD.esm.js";
|
|
2
|
+
import { n as createCertificateIssuanceManagerFromActor, t as createCertificateIssuanceManager } from "./certificateIssuanceManager-CM0fuqDC.esm.js";
|
|
3
3
|
export { MIN_PASSWORD_LENGTH, PASSWORD_VALIDATION_KEYS, REQUIREMENT_I18N_KEYS, certificateIssuanceMachine, createCertificateIssuanceManager, createCertificateIssuanceManagerFromActor, emptyPasswordValidations, isPasswordValid, validatePassword };
|
|
@@ -1,6 +1,6 @@
|
|
|
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 { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
-
import { r as isPasswordValid, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
3
|
+
import { r as isPasswordValid, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-kksIUOPD.esm.js";
|
|
4
4
|
//#region src/modules/certificate-issuance/certificateIssuanceActor.ts
|
|
5
5
|
/**
|
|
6
6
|
* Creates and starts a certificate issuance actor.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getApi, r as getToken, u as endpoints } from "./api-
|
|
1
|
+
import { n as getApi, r as getToken, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
2
2
|
import { i as assign, 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
|
import { t as externalFetch } from "./externalFetch-CQY41QT1.esm.js";
|
package/dist/consent.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
2
|
-
import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-
|
|
1
|
+
import { t as consentMachine } from "./consentStateMachine-CpmRAcr2.esm.js";
|
|
2
|
+
import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-CBwFozhv.esm.js";
|
|
3
3
|
export { consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -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 consentMachine } from "./consentStateMachine-
|
|
4
|
+
import { t as consentMachine } from "./consentStateMachine-CpmRAcr2.esm.js";
|
|
5
5
|
//#region src/modules/consent/consentActor.ts
|
|
6
6
|
function createConsentActor(options) {
|
|
7
7
|
return createActor(consentMachine, { input: { config: options.config } }).start();
|
|
@@ -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 { i as assign, 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/consent/consentServices.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-
|
|
1
|
+
import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-64O8t10a.esm.js";
|
|
2
2
|
export { createCrossDocumentDataMatchManager, createCrossDocumentDataMatchManagerFromActor, crossDocumentDataMatchMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
3
3
|
import { s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
5
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
2
|
-
import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-
|
|
1
|
+
import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-Bx9YhVkJ.esm.js";
|
|
2
|
+
import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-CLgJQcx0.esm.js";
|
|
3
3
|
export { ENTER_CURP_FIELD, GENERATE_CURP_FIELDS, createCurpValidationManager, createCurpValidationManagerFromActor, curpValidationMachine, mexicanStates };
|
package/dist/{curpValidationManager-HRRI_djy.esm.js → curpValidationManager-CLgJQcx0.esm.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
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
4
|
import { t as isValidCurp } from "./nationalIds-B91f_RuB.esm.js";
|
|
5
|
-
import { r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
5
|
+
import { r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-Bx9YhVkJ.esm.js";
|
|
6
6
|
//#region src/modules/curp-validation/curpValidationActor.ts
|
|
7
7
|
function createCurpValidationActor(options) {
|
|
8
8
|
return createActor(curpValidationMachine, { input: { config: options.config } }).start();
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
|
-
import { t as carryAttempts } from "./attemptCarry-
|
|
4
|
+
import { t as carryAttempts } from "./attemptCarry-BjTJ6bMQ.esm.js";
|
|
5
5
|
import { t as isValidCurp } from "./nationalIds-B91f_RuB.esm.js";
|
|
6
6
|
//#region src/modules/curp-validation/curpValidationUtils.ts
|
|
7
7
|
/** Convert YYYY-MM-DD to DD/MM/YYYY for the API */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-
|
|
1
|
+
import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-DWt_0YtJ.esm.js";
|
|
2
2
|
export { createCustomFieldsManager, createCustomFieldsManagerFromActor, customFieldsMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
2
|
-
import { n as createCustomWatchlistManagerFromActor, t as createCustomWatchlistManager } from "./customWatchlistManager-
|
|
1
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-Sbi6DIcK.esm.js";
|
|
2
|
+
import { n as createCustomWatchlistManagerFromActor, t as createCustomWatchlistManager } from "./customWatchlistManager-D8o-2Nej.esm.js";
|
|
3
3
|
export { createCustomWatchlistManager, createCustomWatchlistManagerFromActor, customWatchlistMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
package/dist/{customWatchlistManager-Dqzf_LJ3.esm.js → customWatchlistManager-D8o-2Nej.esm.js}
RENAMED
|
@@ -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 customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
4
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-Sbi6DIcK.esm.js";
|
|
5
5
|
//#region src/modules/custom-watchlist/customWatchlistActor.ts
|
|
6
6
|
function createCustomWatchlistActor() {
|
|
7
7
|
return createActor(customWatchlistMachine).start();
|
|
@@ -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 { i as assign, 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/custom-watchlist/customWatchlistServices.ts
|
|
@@ -1,31 +1,10 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
2
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
3
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
4
|
-
import { S as BrowserEnvironmentProvider, n as getFingerprintEnabled, t as getDisableIpify, x as IpifyProvider } from "./sessionInitializer-
|
|
5
|
-
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-DZOGC2HE.esm.js";
|
|
2
|
+
import { u as trueSightLog } from "./trueSightService-Cp-DdiFI.esm.js";
|
|
3
|
+
import { t as SDK_VERSION } from "./sdkVersion-BuDwQDHZ.esm.js";
|
|
4
|
+
import { S as BrowserEnvironmentProvider, n as getFingerprintEnabled, t as getDisableIpify, x as IpifyProvider } from "./sessionInitializer-C5QWEuMW.esm.js";
|
|
5
|
+
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-Ck2Lt6OY.esm.js";
|
|
6
6
|
import { t as MotionSensorProvider } from "./MotionSensorProvider-DYxh8TjR.esm.js";
|
|
7
|
-
import { t as createDeepsightService } from "./deepsightService-
|
|
8
|
-
//#region ../infra/src/providers/browser/VisibilityProvider.ts
|
|
9
|
-
var VisibilityProvider = class {
|
|
10
|
-
constructor() {
|
|
11
|
-
this._wasBackgrounded = false;
|
|
12
|
-
this.visibilityChangeHandler = this.onVisibilityChange.bind(this);
|
|
13
|
-
document.addEventListener("visibilitychange", this.visibilityChangeHandler);
|
|
14
|
-
}
|
|
15
|
-
get wasBackgrounded() {
|
|
16
|
-
return this._wasBackgrounded;
|
|
17
|
-
}
|
|
18
|
-
reset() {
|
|
19
|
-
this._wasBackgrounded = false;
|
|
20
|
-
}
|
|
21
|
-
cleanup() {
|
|
22
|
-
document.removeEventListener("visibilitychange", this.visibilityChangeHandler);
|
|
23
|
-
}
|
|
24
|
-
onVisibilityChange() {
|
|
25
|
-
if (document.hidden) this._wasBackgrounded = true;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
7
|
+
import { t as createDeepsightService } from "./deepsightService-BgT5mkK0.esm.js";
|
|
29
8
|
//#region src/internal/deepsight/deepsightLoader.ts
|
|
30
9
|
async function loadDeepsightSession(options) {
|
|
31
10
|
try {
|
|
@@ -40,7 +19,6 @@ async function loadDeepsightSessionInternal(options) {
|
|
|
40
19
|
const service = createDeepsightService({
|
|
41
20
|
sdkVersion: SDK_VERSION,
|
|
42
21
|
wasmUtil: await WasmUtilProvider.getInstance(),
|
|
43
|
-
visibility: new VisibilityProvider(),
|
|
44
22
|
browserEnv: new BrowserEnvironmentProvider(),
|
|
45
23
|
motionSensor: new MotionSensorProvider(),
|
|
46
24
|
ipLookup: new IpifyProvider()
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as fingerprintSignalsReporter, _ as isBrowserSimulation, y as getThumbmarkId } from "./sessionInitializer-D9AZfKtF.esm.js";
|
|
3
|
-
import { t as addDeviceStats } from "./stats-D3Cxg6PL.esm.js";
|
|
1
|
+
import { C as fingerprintSignalsReporter, _ as isBrowserSimulation, y as getThumbmarkId } from "./sessionInitializer-C5QWEuMW.esm.js";
|
|
4
2
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
5
3
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
6
|
-
import { i as requestCameraAccess, o as stopCameraStream } from "./camera-sIa9ceW2.esm.js";
|
|
7
|
-
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
8
|
-
import { t as createHiddenVideoElement } from "./video-BtSWtHy1.esm.js";
|
|
9
4
|
import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
10
5
|
//#region src/internal/deepsight/metadataService.ts
|
|
11
|
-
function createMetadataService(wasmUtil,
|
|
6
|
+
function createMetadataService(wasmUtil, browserEnv, ipLookup) {
|
|
12
7
|
return {
|
|
13
8
|
async initialize(sdkVersion, disableIpify = false, disableFingerprint = false) {
|
|
14
9
|
wasmUtil.setSdkPlatform("WEBAPP");
|
|
@@ -31,6 +26,7 @@ function createMetadataService(wasmUtil, visibility, browserEnv, ipLookup) {
|
|
|
31
26
|
model,
|
|
32
27
|
os: parsedUa.os.name ?? "",
|
|
33
28
|
osVersion: parsedUa.os.version ?? "",
|
|
29
|
+
osVer: parsedUa.os.version ?? "",
|
|
34
30
|
screenDimensions,
|
|
35
31
|
numTouchPoints: deviceInfo.maxTouchPoints,
|
|
36
32
|
fingerprintHash,
|
|
@@ -84,10 +80,7 @@ function createMetadataService(wasmUtil, visibility, browserEnv, ipLookup) {
|
|
|
84
80
|
setMotionStatus(status) {
|
|
85
81
|
wasmUtil.setMotionStatus(status);
|
|
86
82
|
},
|
|
87
|
-
setBackgroundMode(
|
|
88
|
-
wasmUtil.setBackgroundMode(backgroundMode || visibility.wasBackgrounded);
|
|
89
|
-
visibility.reset();
|
|
90
|
-
},
|
|
83
|
+
setBackgroundMode(_backgroundMode) {},
|
|
91
84
|
estimatePerformance() {
|
|
92
85
|
return wasmUtil.estimatePerformance();
|
|
93
86
|
},
|
|
@@ -137,53 +130,34 @@ const frameSources = {
|
|
|
137
130
|
selfie: "SELFIE"
|
|
138
131
|
};
|
|
139
132
|
/**
|
|
140
|
-
*
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Runs the WASM virtual camera check and handles logging and stats.
|
|
133
|
+
* Runs the native post-capture check (`poc`).
|
|
134
|
+
*
|
|
135
|
+
* Since ml-wasm-kit v2.14.53 (ADR 0008, single-run IAD) the binding keeps its
|
|
136
|
+
* output argument for arity but never writes into it: the post-capture
|
|
137
|
+
* verdicts travel only inside the signed capture metadata that the protected
|
|
138
|
+
* upload carries. The JavaScript verdict this function used to derive from
|
|
139
|
+
* that output — the `/omni/log/frame/v2` frame upload, the
|
|
140
|
+
* `virtualCameraDetected` device stat and `setZc` — is gone with it (the same
|
|
141
|
+
* removal ms-incodesmile-web made in ENG-58409). The name is kept so the
|
|
142
|
+
* protected attempts' POC step reads the same.
|
|
154
143
|
*/
|
|
155
|
-
async function runVirtualCameraCheck({ wasmUtil
|
|
156
|
-
|
|
144
|
+
async function runVirtualCameraCheck({ wasmUtil }) {
|
|
145
|
+
await wasmUtil.poc({
|
|
157
146
|
canvas: null,
|
|
158
147
|
itr: null,
|
|
159
148
|
skipped: null
|
|
160
|
-
};
|
|
161
|
-
await wasmUtil.poc(output);
|
|
162
|
-
if (output.skipped !== false) return;
|
|
163
|
-
if (output.canvas && token) {
|
|
164
|
-
const base64Image = new IncodeCanvas(output.canvas).getBase64Image();
|
|
165
|
-
if (base64Image) logFrame({
|
|
166
|
-
source,
|
|
167
|
-
base64Image,
|
|
168
|
-
token
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
if (output.itr === true) {
|
|
172
|
-
addDeviceStats({ virtualCameraDetected: true });
|
|
173
|
-
wasmUtil.setZc("FAIL");
|
|
174
|
-
} else if (output.itr === false) wasmUtil.setZc("PASS");
|
|
149
|
+
});
|
|
175
150
|
}
|
|
176
151
|
//#endregion
|
|
177
152
|
//#region src/internal/deepsight/deepsightService.ts
|
|
178
153
|
function createDeepsightService(config) {
|
|
179
|
-
const metadata = createMetadataService(config.wasmUtil, config.
|
|
154
|
+
const metadata = createMetadataService(config.wasmUtil, config.browserEnv, config.ipLookup);
|
|
180
155
|
const motion = createMotionStatusService(config.motionSensor);
|
|
181
156
|
const finalizeCaptureMetadata = () => {
|
|
182
157
|
metadata.preparePipelineState();
|
|
183
158
|
const motionStatus = motion.check();
|
|
184
159
|
metadata.setMotionStatus(motionStatus);
|
|
185
160
|
metadata.getCheck();
|
|
186
|
-
metadata.setBackgroundMode(false);
|
|
187
161
|
};
|
|
188
162
|
return {
|
|
189
163
|
metadata,
|
|
@@ -212,16 +186,7 @@ function createDeepsightService(config) {
|
|
|
212
186
|
token: sessionToken
|
|
213
187
|
});
|
|
214
188
|
},
|
|
215
|
-
async performPrcCheck(
|
|
216
|
-
const prcStream = await requestCameraAccess(params.constraints);
|
|
217
|
-
const hiddenVideo = createHiddenVideoElement(prcStream);
|
|
218
|
-
try {
|
|
219
|
-
await config.wasmUtil.prc();
|
|
220
|
-
} finally {
|
|
221
|
-
hiddenVideo.dispose();
|
|
222
|
-
stopCameraStream(prcStream);
|
|
223
|
-
}
|
|
224
|
-
},
|
|
189
|
+
async performPrcCheck(_params) {},
|
|
225
190
|
async analyzeFrame(imageData) {
|
|
226
191
|
await motion.start();
|
|
227
192
|
await metadata.analyzeFrame(imageData);
|