@incodetech/core 2.0.1 → 2.1.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/{BrowserStorageProvider-CuOW1Er2.esm.js → BrowserStorageProvider-BpJM-gIl.esm.js} +8 -1
- package/dist/{IpifyProvider-D7jx52AL.esm.js → IpifyProvider-D4LWD15E.esm.js} +28 -0
- package/dist/{MotionSensorProvider-4v7xkqAp.esm.js → MotionSensorProvider-Bx7Mpzt0.esm.js} +63 -13
- package/dist/{OpenViduRecordingProvider-CMu6XVdc.esm.js → OpenViduRecordingProvider-O4GjBseO.esm.js} +1 -1
- package/dist/StateMachine-BC_nGvrc.d.ts +2 -0
- package/dist/StreamCanvasCapture-ImiDQdVA.esm.js +118 -0
- package/dist/StreamCanvasCapture-yyl20qd9.d.ts +152 -0
- package/dist/{BaseWasmProvider-C_DLEI40.esm.js → WasmUtilProvider-BKWm8rSA.esm.js} +202 -11
- package/dist/{addressSearch-BpTbTWCa.esm.js → addressSearch-DvmWXKZg.esm.js} +63 -57
- package/dist/{ae-signature-DDDZmWXj.esm.js → ae-signature-BFZta3TZ.esm.js} +1 -1
- package/dist/ae-signature.d.ts +3 -3
- package/dist/ae-signature.esm.js +6 -5
- package/dist/antifraud.d.ts +5 -46
- package/dist/antifraud.esm.js +6 -43
- package/dist/antifraudManager-CkV4u-LE.esm.js +55 -0
- package/dist/antifraudManager-CznnhyvD.d.ts +63 -0
- package/dist/{antifraudStateMachine-O0TMf6yc.esm.js → antifraudStateMachine-Ccrb-Jxc.esm.js} +2 -2
- package/dist/apiError-B-j-gyDx.esm.js +51 -0
- package/dist/authentication.d.ts +13 -11
- package/dist/authentication.esm.js +26 -22
- package/dist/{authenticationManager-5M-fKzXx.esm.js → authenticationManager-BlR6mSaG.esm.js} +6 -6
- package/dist/{authenticationManager-C83GNIhl.d.ts → authenticationManager-CaiQbp-q.d.ts} +4 -4
- package/dist/{authenticationStateMachine-BMZqatiF.esm.js → authenticationStateMachine-DkcGUMw5.esm.js} +21 -9
- package/dist/{backCameraStream-DMdMeGk2.esm.js → backCameraStream-D7Wo4Nbx.esm.js} +95 -7
- package/dist/{session-CrkWAs-q.esm.js → browserSimulation-B1dWiXp7.esm.js} +61 -476
- package/dist/camera.d.ts +4 -3
- package/dist/camera.esm.js +4 -3
- package/dist/canvas-SKcRBxsk.esm.js +230 -0
- package/dist/consent.d.ts +4 -398
- package/dist/consent.esm.js +6 -77
- package/dist/consentManager-BYo9Nu1r.esm.js +90 -0
- package/dist/consentManager-Cg5Sk2tv.d.ts +419 -0
- package/dist/{consentStateMachine-CCT-B60O.esm.js → consentStateMachine-BG3yL8aC.esm.js} +9 -6
- package/dist/cpf-ocr.d.ts +4 -199
- package/dist/cpf-ocr.esm.js +8 -177
- package/dist/cpfOcrManager-Dg1s_TY5.d.ts +216 -0
- package/dist/cpfOcrManager-sSKegxox.esm.js +190 -0
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +4 -4
- package/dist/curp-validation.d.ts +8 -158
- package/dist/curp-validation.esm.js +6 -108
- package/dist/curpValidationManager-CFem6zP9.esm.js +122 -0
- package/dist/curpValidationManager-RttixpIc.d.ts +184 -0
- package/dist/{curpValidationStateMachine-CitWLr2c.esm.js → curpValidationStateMachine-B7V_qp66.esm.js} +20 -13
- package/dist/custom-fields.d.ts +2 -2
- package/dist/custom-fields.esm.js +4 -4
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +4 -41
- package/dist/customWatchlistStateMachine-HmFybXLX.esm.js +50 -0
- package/dist/{deepsightLoader-Cm4JIT_z.esm.js → deepsightLoader-8tnddNx-.esm.js} +19 -10
- package/dist/deepsightService-CrHmvx8X.esm.js +276 -0
- package/dist/{deepsightService-CEVxzehb.d.ts → deepsightService-Dh5P-hLf.d.ts} +13 -160
- package/dist/device.esm.js +4 -3
- package/dist/document-capture.d.ts +989 -80
- package/dist/document-capture.esm.js +34 -8
- package/dist/document-upload.d.ts +44 -44
- package/dist/document-upload.esm.js +7 -7
- package/dist/{documentCaptureStateMachine-BqzTDy9k.esm.js → documentCaptureStateMachine-CUTUzUw_.esm.js} +90 -6
- package/dist/dynamic-forms.d.ts +20 -5
- package/dist/dynamic-forms.esm.js +150 -61
- package/dist/ekyb.d.ts +32 -13
- package/dist/ekyb.esm.js +25 -15
- package/dist/{ekybStateMachine-CyMx_kg-.esm.js → ekybStateMachine-klc-AImJ.esm.js} +319 -207
- package/dist/ekyc.d.ts +10 -78
- package/dist/ekyc.esm.js +17 -12
- package/dist/{ekycStateMachine-oeO0Iekd.esm.js → ekycStateMachine-CXbpaJJn.esm.js} +201 -113
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +5 -4
- package/dist/{electronicSignatureManager-D9OHzTpG.esm.js → electronicSignatureManager-BaECdJ1u.esm.js} +91 -23
- package/dist/email.d.ts +4 -3
- package/dist/email.esm.js +6 -5
- package/dist/{emailManager-wAV0LE-H.esm.js → emailManager--D5G3ChB.esm.js} +30 -7
- package/dist/{emailManager-DIfnS5g1.d.ts → emailManager-lAzDoQOs.d.ts} +66 -8
- package/dist/{emailStateMachine-DOf4j58N.esm.js → emailStateMachine-CxTOMAjC.esm.js} +46 -11
- package/dist/{endpoints-CnN3SyDa.esm.js → endpoints-BeTK0Mlt.esm.js} +6 -3
- package/dist/{events-D6-e4vok.esm.js → events-Dvvriq9l.esm.js} +3 -1
- package/dist/events.d.ts +2 -0
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +41 -16
- package/dist/extensibility.esm.js +55 -33
- package/dist/face-match.d.ts +21 -2
- package/dist/face-match.esm.js +5 -5
- package/dist/{faceCaptureManagerFactory-yqtpxjnN.d.ts → faceCaptureManagerFactory-CjdBUS6s.d.ts} +48 -17
- package/dist/{faceCaptureManagerFactory-Dh2PdGlF.esm.js → faceCaptureManagerFactory-ej2j1LMr.esm.js} +21 -5
- package/dist/{faceCaptureSetup-B3faSpYA.esm.js → faceCaptureSetup-B9t6bYze.esm.js} +68 -183
- package/dist/{faceMatchStateMachine-DNFrxTFS.esm.js → faceMatchStateMachine-DeXXzSuz.esm.js} +62 -6
- package/dist/field-comparison.d.ts +4 -0
- package/dist/field-comparison.esm.js +7 -0
- package/dist/fieldComparisonManager-Bu5TaSr3.d.ts +76 -0
- package/dist/fieldComparisonManager-COGI2ARD.esm.js +162 -0
- package/dist/fiscal-qr.d.ts +59 -0
- package/dist/fiscal-qr.esm.js +323 -0
- package/dist/flow-events.d.ts +6 -5
- package/dist/flow.d.ts +23 -15
- package/dist/flow.esm.js +56 -17
- package/dist/flowCompletionService-BdR2cGgB.d.ts +19 -0
- package/dist/flowCompletionService-DdGojV9K.esm.js +20 -0
- package/dist/{flowServices-PiNsxLfK.esm.js → flowServices-ChgTNggJ.esm.js} +10 -5
- package/dist/geolocation.d.ts +4 -4
- package/dist/geolocation.esm.js +6 -6
- package/dist/{geolocationStateMachine-asasuHY2.esm.js → geolocationStateMachine-Dvh7X0wF.esm.js} +5 -5
- package/dist/getBrowser-C8DP7oTB.esm.js +8 -0
- package/dist/{getBrowser-BSXUTWXw.esm.js → getDeviceClass-C0olyNFS.esm.js} +1 -8
- package/dist/{getDeviceClass-BSntT9_j.esm.js → getDeviceClass-C8Do2qYu.esm.js} +1 -1
- package/dist/government-validation.d.ts +28 -8
- package/dist/government-validation.esm.js +19 -8
- package/dist/{governmentValidationStateMachine-BDDYrJTo.esm.js → governmentValidationStateMachine-DcJ-BfsC.esm.js} +35 -77
- package/dist/home.d.ts +15 -14
- package/dist/home.esm.js +2 -2
- package/dist/http-Cai3IoLS.esm.js +0 -0
- package/dist/http.esm.js +1 -0
- package/dist/id-ocr.d.ts +54 -54
- package/dist/id-ocr.esm.js +5 -5
- package/dist/id-verification.d.ts +27 -27
- package/dist/id-verification.esm.js +4 -4
- package/dist/id.d.ts +12 -10
- package/dist/id.esm.js +70 -27
- package/dist/{idCaptureManager-Fyd0eam-.d.ts → idCaptureManager-ChCNmgBj.d.ts} +40 -20
- package/dist/{idCaptureManager-D0ktk7Hh.esm.js → idCaptureManager-D3pwWutw.esm.js} +22 -7
- package/dist/{idCaptureStateMachine-dwlBUjbC.esm.js → idCaptureStateMachine-B3AiDIsT.esm.js} +172 -123
- package/dist/{idOcrStateMachine-YbjjC_Gg.esm.js → idOcrStateMachine-CDQ5d_VM.esm.js} +4 -4
- package/dist/{idVerificationStateMachine-xbw9HP1Z.esm.js → idVerificationStateMachine-kRxwImzO.esm.js} +2 -2
- package/dist/identity-reuse.d.ts +4 -530
- package/dist/identity-reuse.esm.js +8 -274
- package/dist/identityReuseManager-C6n_97dw.esm.js +95 -0
- package/dist/identityReuseManager-Cww-NDtd.d.ts +428 -0
- package/dist/identityReuseStateMachine-BfE5YiEr.esm.js +148 -0
- package/dist/{index-BcRG8rtJ.d.ts → index-B5hPA0Bg.d.ts} +2 -2
- package/dist/{index-ChHWNH48.d.ts → index-B9NysVDB.d.ts} +469 -195
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +10 -8
- package/dist/{invokeOnCaptureCallback-rc6kBHo5.esm.js → invokeOnCaptureCallback-ygByVdnn.esm.js} +1 -1
- package/dist/{lib-BB0B_qQX.esm.js → lib-BY67lgbq.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +8 -412
- package/dist/mandatory-consent.esm.js +6 -76
- package/dist/mandatoryConsentManager-Dq6WiOZh.d.ts +429 -0
- package/dist/mandatoryConsentManager-H6D18cZB.esm.js +89 -0
- package/dist/{mandatoryConsentStateMachine-Cnco1jvn.esm.js → mandatoryConsentStateMachine-DtQNW1ji.esm.js} +6 -6
- package/dist/openviduLazy-B8L--0oe.esm.js +3 -0
- package/dist/{openviduLazy-Cok70ZSg.esm.js → openviduLazy-Dh14JNJc.esm.js} +2 -2
- package/dist/otp-CGMdUzBC.esm.js +33 -0
- package/dist/otp-DF5A0sFx.d.ts +8 -0
- package/dist/permissionGuards-D0wGddy7.esm.js +23 -0
- package/dist/permissionServices-Doec4X5L.esm.js +130 -0
- package/dist/phone.d.ts +4 -3
- package/dist/phone.esm.js +6 -5
- package/dist/{phoneManager-DAJbGhlY.esm.js → phoneManager-BmF-0Ez4.esm.js} +30 -7
- package/dist/{phoneManager-B6M30hKE.d.ts → phoneManager-fPmIBYQK.d.ts} +65 -7
- package/dist/{phoneStateMachine-CuPARRaT.esm.js → phoneStateMachine-BiV0yoEx.esm.js} +46 -11
- package/dist/{qe-signature-DFo_Cc-I.esm.js → qe-signature-CUYPcHVo.esm.js} +1 -1
- package/dist/qe-signature.d.ts +3 -3
- package/dist/qe-signature.esm.js +6 -5
- package/dist/{recordingService-Ig2UgbLv.esm.js → recordingService-yRw7hfzU.esm.js} +197 -179
- package/dist/redirect-to-mobile.d.ts +6 -104
- package/dist/redirect-to-mobile.esm.js +6 -99
- package/dist/redirectToMobileManager-BNe3IzC_.d.ts +178 -0
- package/dist/redirectToMobileManager-Dy3t7o0C.esm.js +159 -0
- package/dist/{redirectToMobileStateMachine-BOEqe46A.esm.js → redirectToMobileStateMachine-DyAdRxfP.esm.js} +28 -19
- package/dist/{runChildModule-CqqwqAkW.esm.js → runChildModule-CuoHZ1cx.esm.js} +35 -3
- package/dist/selfie.d.ts +13 -11
- package/dist/selfie.esm.js +53 -24
- package/dist/{selfieManager-Duisl7qN.esm.js → selfieManager-BNuTIGAz.esm.js} +6 -6
- package/dist/{selfieManager-D0lSgd-J.d.ts → selfieManager-C2y_t6DG.d.ts} +4 -4
- package/dist/{selfieStateMachine-D76whWEf.esm.js → selfieStateMachine-Bv99bZJE.esm.js} +5 -3
- package/dist/session-DoVb-OcB.esm.js +152 -0
- package/dist/session.d.ts +37 -5
- package/dist/session.esm.js +12 -7
- package/dist/sessionInitializer-DRB-hgbV.esm.js +366 -0
- package/dist/{setup-C5AITV8m.d.ts → setup-BwCluiw3.d.ts} +86 -6
- package/dist/{setup-DPPAxmXf.esm.js → setup-CUO4mErT.esm.js} +175 -25
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +4 -4
- package/dist/{signatureStateMachine-B5-QVUve.esm.js → signatureStateMachine-C5qqYLRz.esm.js} +3 -3
- package/dist/stats-BMNUG1AU.esm.js +41 -0
- package/dist/stats.d.ts +13 -2
- package/dist/stats.esm.js +3 -2
- package/dist/trust-graph.d.ts +33 -4
- package/dist/trust-graph.esm.js +21 -15
- package/dist/{types-CFV9G_7j.d.ts → types-Bj9hdFjU.d.ts} +1 -1
- package/dist/{types-BP1m8VRw.d.ts → types-DOUhndhT.d.ts} +14 -2
- package/dist/types-DsnEVMhr.esm.js +34 -0
- package/dist/types-DvGZI7BF.d.ts +131 -0
- package/dist/{types-B06Ypu2F.d.ts → types-NuT8ftBV.d.ts} +1 -1
- package/dist/types-ya0LN_MX.d.ts +5 -0
- package/dist/{warmup-CEcppFiS.d.ts → warmup-Dg8Lh-50.d.ts} +8 -0
- package/dist/wasm.d.ts +6 -4
- package/dist/wasm.esm.js +11 -9
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +5 -73
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +4 -41
- package/dist/watchlistForBusinessStateMachine-DMl8j2Ov.esm.js +74 -0
- package/dist/watchlistStateMachine-DmQlqI6L.esm.js +50 -0
- package/dist/workflow.d.ts +146 -100
- package/dist/workflow.esm.js +116 -66
- package/package.json +19 -1
- package/dist/StateMachine-BCQrZJhf.d.ts +0 -2
- package/dist/WasmUtilProvider-j98OJf-S.esm.js +0 -114
- package/dist/browserSimulation-gxD8cSpM.esm.js +0 -20
- package/dist/deepsightService-O74l4Y__.esm.js +0 -489
- package/dist/displayErrors-DqJ_IbsG.d.ts +0 -39
- package/dist/flowCompletionService-DhkT4SRY.d.ts +0 -10
- package/dist/flowCompletionService-P54yzGvA.esm.js +0 -13
- package/dist/openviduLazy-Cm0XFh_v.esm.js +0 -3
- package/dist/permissionServices-D_i6nzEw.esm.js +0 -50
- package/dist/stats-CIfiPzb1.esm.js +0 -16
- package/dist/types-CAD4va6a.d.ts +0 -5
- package/dist/watchlistServices-DMbUhkBX.esm.js +0 -12
- /package/dist/{Actor-CI32dTbG.d.ts → Actor-Y0_Fj-KL.d.ts} +0 -0
- /package/dist/{ITimerCapability-C67ZRskg.esm.js → ITimerCapability-CB0I1Uf2.esm.js} +0 -0
- /package/dist/{Manager-C8PrhBOx.d.ts → Manager-BHn8wH8K.d.ts} +0 -0
- /package/dist/{camera-PA2Ljri3.esm.js → camera-DJWm3V4g.esm.js} +0 -0
- /package/dist/{camera-DBSxa6ML.d.ts → camera-SRBpPq2X.d.ts} +0 -0
- /package/dist/{chunk-CRF6K_H_.esm.js → chunk-CMUKZ2uL.esm.js} +0 -0
- /package/dist/{cpf-PPz2Njto.esm.js → cpf-BRzggV8G.esm.js} +0 -0
- /package/dist/{dateUtils-UoN5xswP.esm.js → dateUtils-AksLQmgV.esm.js} +0 -0
- /package/dist/{platform-CfrjKhmi.esm.js → platform-SKvEfCBh.esm.js} +0 -0
- /package/dist/{xstate.esm-B70JrNqo.esm.js → xstate.esm-C9wncMQa.esm.js} +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
3
|
-
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-
|
|
4
|
-
import { t as CameraStream } from "./camera-
|
|
5
|
-
import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-
|
|
6
|
-
import {
|
|
7
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-
|
|
1
|
+
import { t as Manager } from "./Manager-BHn8wH8K.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-Y0_Fj-KL.js";
|
|
3
|
+
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-BC_nGvrc.js";
|
|
4
|
+
import { t as CameraStream } from "./camera-SRBpPq2X.js";
|
|
5
|
+
import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-DOUhndhT.js";
|
|
6
|
+
import { a as IMLProviderCapability, c as IRecordingCapability, l as RecordingConnection, o as MLProviderConfig, s as IStorageCapability, t as DeepsightService } from "./deepsightService-Dh5P-hLf.js";
|
|
7
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-ya0LN_MX.js";
|
|
8
|
+
import { n as IncodeCanvas, t as StreamCanvasCapture } from "./StreamCanvasCapture-yyl20qd9.js";
|
|
8
9
|
|
|
9
10
|
//#region ../infra/src/capabilities/IIdCaptureCapability.d.ts
|
|
10
11
|
/**
|
|
@@ -163,12 +164,15 @@ type ManualUploadContext = {
|
|
|
163
164
|
isSecondId: boolean;
|
|
164
165
|
/** Retry budget for this manual upload (sourced from `config.captureAttempts`). */
|
|
165
166
|
captureAttempts: number;
|
|
167
|
+
/** [ENG-44176] Forwarded to front / passport manual uploads when explicitly false. */
|
|
168
|
+
extractIdFace?: boolean;
|
|
166
169
|
frontFile: File | null;
|
|
167
170
|
backFile: File | null;
|
|
168
171
|
passportFile: File | null;
|
|
169
172
|
activeTab: ManualUploadTab;
|
|
170
173
|
retriesLeft: number;
|
|
171
174
|
errorMessage: string | null;
|
|
175
|
+
errorSide: ManualUploadSide | null;
|
|
172
176
|
/** Set from the front upload response; when true the back slot is auto-completed */
|
|
173
177
|
skipBackFromServer: boolean;
|
|
174
178
|
/** Whether each side has been successfully uploaded (for Continue gating) */
|
|
@@ -260,13 +264,19 @@ type IdCaptureConfig = TutorialIdConfig & {
|
|
|
260
264
|
/**
|
|
261
265
|
* Public ID capture configuration for the captureOnly flow.
|
|
262
266
|
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
*
|
|
267
|
+
* captureOnly bypasses the Incode upload/processing pipeline, so this config
|
|
268
|
+
* intentionally exposes ONLY the options that affect the on-device capture
|
|
269
|
+
* experience. The backend-coupled flags of {@link IdCaptureConfig} (device
|
|
270
|
+
* wallet, barcode, additional pages, digital-id upload, smart capture, session
|
|
271
|
+
* recording, per-country overrides, …) don't apply here and are omitted.
|
|
272
|
+
*
|
|
273
|
+
* `onCapture` is the one required field — it receives the captured image(s)
|
|
274
|
+
* locally (compile-time enforced so you can't ship a captureOnly flow with no
|
|
275
|
+
* destination for the payload). Everything else is optional and defaulted by
|
|
276
|
+
* the factory (see `DEFAULT_ID_CAPTURE_ONLY_CONFIG`); set only what you care
|
|
277
|
+
* about, e.g. `{ onCapture, captureAttempts: 5, showDocumentChooserScreen: true }`.
|
|
268
278
|
*/
|
|
269
|
-
type IdCaptureOnlyConfig = IdCaptureConfig & {
|
|
279
|
+
type IdCaptureOnlyConfig = Partial<Pick<IdCaptureConfig, 'showTutorial' | 'captureAttempts' | 'autoCaptureTimeout' | 'deviceIdleTimeout' | 'enableId' | 'enablePassport' | 'onlyFront' | 'onlyBack' | 'showDocumentChooserScreen'>> & {
|
|
270
280
|
onCapture: (response: CaptureOnlyResponse) => void | Promise<void>;
|
|
271
281
|
};
|
|
272
282
|
type IdErrorCode = 'UPLOAD_ERROR' | 'CLASSIFICATION_FAILED' | 'LOW_SHARPNESS' | 'GLARE_DETECTED' | 'WRONG_DOCUMENT_SIDE' | 'ID_TYPE_UNACCEPTABLE' | 'READABILITY_ISSUE' | 'RETRY_EXHAUSTED_CONTINUE_TO_BACK' | 'RETRY_EXHAUSTED_SKIP_BACK' | 'NO_MORE_TRIES' | 'UNEXPECTED_ERROR' | 'NO_TOKEN' | 'PERMISSION_DENIED' | 'USER_CANCELLED' | 'SERVER_ERROR';
|
|
@@ -467,7 +477,6 @@ type IdCaptureContext = {
|
|
|
467
477
|
detectionArea: DetectionArea | undefined;
|
|
468
478
|
previewImageUrl?: string;
|
|
469
479
|
uploadProgress?: number;
|
|
470
|
-
motionStatus?: 'PASS' | 'FAIL' | 'UNCLEAR';
|
|
471
480
|
manualCaptureTriggered: boolean;
|
|
472
481
|
deepsightService: DeepsightService | undefined;
|
|
473
482
|
analyticsProvider: IAnalyticsCapability | undefined;
|
|
@@ -570,9 +579,6 @@ type IdCaptureEvent = {
|
|
|
570
579
|
width: number;
|
|
571
580
|
height: number;
|
|
572
581
|
};
|
|
573
|
-
} | {
|
|
574
|
-
type: 'MOTION_STATUS';
|
|
575
|
-
status: 'PASS' | 'FAIL' | 'UNCLEAR';
|
|
576
582
|
} | {
|
|
577
583
|
type: 'MANUAL_UPLOAD_TAB_CHANGED';
|
|
578
584
|
tab: ManualUploadTab;
|
|
@@ -610,7 +616,6 @@ type IdCaptureDependencies = {
|
|
|
610
616
|
};
|
|
611
617
|
type IdCaptureInput = {
|
|
612
618
|
config: IdCaptureConfig;
|
|
613
|
-
motionProvider?: IMotionSensorCapability;
|
|
614
619
|
analyticsProvider?: IAnalyticsCapability;
|
|
615
620
|
dependencies?: IdCaptureDependencies;
|
|
616
621
|
};
|
|
@@ -678,6 +683,13 @@ type UploadIdImageParams = {
|
|
|
678
683
|
signal?: AbortSignal;
|
|
679
684
|
analyticsProvider?: IAnalyticsCapability;
|
|
680
685
|
imageData?: ImageData;
|
|
686
|
+
/**
|
|
687
|
+
* [ENG-44176] When `false`, attaches `extractIdFace=false` as a query param
|
|
688
|
+
* to `POST /omni/add/front-id/v2` so the backend skips biometric face
|
|
689
|
+
* extraction. Forwarded only for `type === 'front'`. Omitted / `true` is a
|
|
690
|
+
* no-op on the wire (backend default is extraction on).
|
|
691
|
+
*/
|
|
692
|
+
extractIdFace?: boolean;
|
|
681
693
|
};
|
|
682
694
|
type ValidationError = {
|
|
683
695
|
error: boolean;
|
|
@@ -717,6 +729,13 @@ type UploadManualIdFileParams = {
|
|
|
717
729
|
onlyFront?: boolean;
|
|
718
730
|
signal?: AbortSignal;
|
|
719
731
|
isSecondId?: boolean;
|
|
732
|
+
/**
|
|
733
|
+
* [ENG-44176] When `false`, attaches `extractIdFace=false` to the upload
|
|
734
|
+
* so the backend skips biometric face extraction. Forwarded only for the
|
|
735
|
+
* `front` and `passport` sides; back uploads ignore it. Omitted / `true`
|
|
736
|
+
* is a no-op on the wire.
|
|
737
|
+
*/
|
|
738
|
+
extractIdFace?: boolean;
|
|
720
739
|
};
|
|
721
740
|
/**
|
|
722
741
|
* Upload a user-selected image as front / back / passport ID.
|
|
@@ -841,6 +860,7 @@ type IdCaptureManualUploadState = {
|
|
|
841
860
|
retriesLeft: number;
|
|
842
861
|
/** i18n key for the current error message, if any. */
|
|
843
862
|
errorKey: string | null;
|
|
863
|
+
errorSide: ManualUploadSide | null;
|
|
844
864
|
};
|
|
845
865
|
type IdCaptureDigitalUploadState = {
|
|
846
866
|
status: 'digitalIdUpload';
|
|
@@ -871,7 +891,7 @@ type AnyIdCaptureActor = IdCaptureActor | IdCaptureOnlyActor;
|
|
|
871
891
|
declare function createIdCaptureManagerFromActor(actor: AnyIdCaptureActor): Manager<IdCaptureState> & {
|
|
872
892
|
load(): void;
|
|
873
893
|
selectDocument(documentType: IdDocumentType): void;
|
|
874
|
-
nextStep(): void
|
|
894
|
+
nextStep(): Promise<void>;
|
|
875
895
|
requestPermission(): void;
|
|
876
896
|
goToLearnMore(): void;
|
|
877
897
|
back(): void;
|
|
@@ -925,7 +945,7 @@ type IdCaptureManager = ReturnType<typeof createIdCaptureManagerFromActor>;
|
|
|
925
945
|
declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): Manager<IdCaptureState> & {
|
|
926
946
|
load(): void;
|
|
927
947
|
selectDocument(documentType: IdDocumentType): void;
|
|
928
|
-
nextStep(): void
|
|
948
|
+
nextStep(): Promise<void>;
|
|
929
949
|
requestPermission(): void;
|
|
930
950
|
goToLearnMore(): void;
|
|
931
951
|
back(): void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { c as createManager, s as createActor } from "./xstate.esm-
|
|
3
|
-
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-
|
|
4
|
-
import {
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
|
|
2
|
+
import { c as createManager, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
|
|
3
|
+
import { n as setWasmDsFlagSync, t as BrowserStorageProvider } from "./BrowserStorageProvider-BpJM-gIl.esm.js";
|
|
4
|
+
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Doec4X5L.esm.js";
|
|
5
|
+
import { h as mapDigitalIdScreenName, t as idCaptureMachine } from "./idCaptureStateMachine-B3AiDIsT.esm.js";
|
|
5
6
|
|
|
6
7
|
//#region src/internal/idCapture/idCaptureManagerFactory.ts
|
|
7
8
|
function getPermissionStatus(snapshot) {
|
|
@@ -11,6 +12,7 @@ function getPermissionStatus(snapshot) {
|
|
|
11
12
|
if (snapshot.matches({ permissions: "learnMore" })) return "learnMore";
|
|
12
13
|
if (snapshot.matches({ permissions: "requesting" })) return "requesting";
|
|
13
14
|
if (snapshot.matches({ permissions: "denied" })) return "denied";
|
|
15
|
+
if (snapshot.matches({ permissions: "motionOnly" })) return "motionOnly";
|
|
14
16
|
}
|
|
15
17
|
function getCaptureStatus(snapshot) {
|
|
16
18
|
const matches = {
|
|
@@ -164,7 +166,8 @@ function mapManualUploadState(snapshot) {
|
|
|
164
166
|
passportUploaded: childCtx?.passportUploaded ?? false,
|
|
165
167
|
canContinue,
|
|
166
168
|
retriesLeft: childCtx?.retriesLeft ?? snapshot.context.config.captureAttempts,
|
|
167
|
-
errorKey: childCtx?.errorMessage ?? null
|
|
169
|
+
errorKey: childCtx?.errorMessage ?? null,
|
|
170
|
+
errorSide: childCtx?.errorSide ?? null
|
|
168
171
|
};
|
|
169
172
|
}
|
|
170
173
|
function mapDigitalUploadState(snapshot) {
|
|
@@ -180,7 +183,7 @@ function mapDigitalUploadState(snapshot) {
|
|
|
180
183
|
if (childValue === "success") return "success";
|
|
181
184
|
if (childValue === "error") return "error";
|
|
182
185
|
if (childValue === "fileTooLarge") return "fileTooLarge";
|
|
183
|
-
if (childValue === "
|
|
186
|
+
if (childValue === "terminalError") return "exhausted";
|
|
184
187
|
if (childSnapshot?.matches({ uploading: "holding" })) return "holding";
|
|
185
188
|
if (childSnapshot?.matches({ uploading: "analyzing" })) return "uploading";
|
|
186
189
|
return "selecting";
|
|
@@ -250,6 +253,9 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
250
253
|
if (snapshot.context.dependencies) snapshot.context.dependencies.trackCaptureAttemptFinished = trackCaptureAttemptFinished;
|
|
251
254
|
return {
|
|
252
255
|
load() {
|
|
256
|
+
const { config } = actor.getSnapshot().context;
|
|
257
|
+
if (config.ds === true) setWasmDsFlagSync(true);
|
|
258
|
+
resetWasmMotionPrimedForModule();
|
|
253
259
|
actor.send({ type: "LOAD" });
|
|
254
260
|
},
|
|
255
261
|
selectDocument(documentType) {
|
|
@@ -259,8 +265,16 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
259
265
|
documentType
|
|
260
266
|
});
|
|
261
267
|
},
|
|
262
|
-
nextStep() {
|
|
268
|
+
async nextStep() {
|
|
263
269
|
trackElementClicked?.("nextStep");
|
|
270
|
+
const snapshot$1 = actor.getSnapshot();
|
|
271
|
+
if (snapshot$1.matches("tutorial")) {
|
|
272
|
+
const { config, permissionResult } = snapshot$1.context;
|
|
273
|
+
await primeMotionFromUserGestureIfNeeded({
|
|
274
|
+
ds: config.ds,
|
|
275
|
+
cameraGranted: permissionResult === "granted"
|
|
276
|
+
});
|
|
277
|
+
}
|
|
264
278
|
actor.send({ type: "NEXT_STEP" });
|
|
265
279
|
},
|
|
266
280
|
requestPermission() {
|
|
@@ -486,6 +500,7 @@ function getPermissionScreen(value) {
|
|
|
486
500
|
case "requesting": return "idCapture.permissions.required";
|
|
487
501
|
case "denied": return "idCapture.permissions.quit";
|
|
488
502
|
case "learnMore": return "idCapture.commonissues.default";
|
|
503
|
+
case "motionOnly": return "idCapture.permissions.motionOnly";
|
|
489
504
|
case "idle":
|
|
490
505
|
case "waitingForUser":
|
|
491
506
|
default: return "idCapture.permissions.default";
|