@incodetech/core 2.4.1 → 2.5.0-agentic.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/Actor-DqjOqDfU.d.ts +1 -0
- package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-CPdofn7R.d.ts} +3 -5
- package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
- package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-C7N1N61V.esm.js} +61 -744
- package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
- package/dist/{FaceDetectionProvider-J_-1Cwck.esm.js → FaceDetectionProvider-Cy2EAL0i.esm.js} +38 -66
- package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
- package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
- package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-BRAZQtkM.d.ts} +4 -3
- package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-CLWIYHB4.d.ts} +35 -7
- package/dist/Manager-BvXAwDv9.esm.js +125 -0
- package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
- package/dist/{MotionSensorProvider-DYxh8TjR.esm.js → MotionSensorProvider-BAGydZPH.esm.js} +20 -0
- package/dist/MultipartRecordingProvider-BtMQZEbg.esm.js +151 -0
- package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
- package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-BqaHTJF0.d.ts} +36 -5
- package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-C4x5gc1c.esm.js} +135 -25
- package/dist/WorkerEncoderRecordingProvider-BO7urYwT.esm.js +80 -0
- package/dist/addressSearch-DBJeg_g3.esm.js +301 -0
- package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-CxZyPRyh.esm.js} +4 -2
- package/dist/ae-signature.d.ts +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/allowedCharacters-Bnir--CN.esm.js +17 -0
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
- package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-DRMBLSh7.esm.js} +5 -3
- package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-Bi0m60oV.esm.js} +4 -6
- package/dist/{api-Cz90EHyu.esm.js → api-B58edv6M.esm.js} +13 -7
- package/dist/{apiError-9Yi8xMeB.esm.js → apiError-B9-B3cMq.esm.js} +1 -1
- package/dist/attemptCarry-CxiYlUAO.esm.js +45 -0
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-CkD0JR7Q.d.ts} +2 -2
- package/dist/{authenticationManager-pKQS4fHT.esm.js → authenticationManager-DNWtc0eq.esm.js} +7 -6
- package/dist/{authenticationStateMachine-D_DygKtQ.esm.js → authenticationStateMachine-CJ9i4Al-.esm.js} +50 -18
- package/dist/avatar.d.ts +1 -1
- package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
- package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-6qVHvj76.esm.js} +12 -107
- package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-B4Dwja1e.esm.js} +161 -150
- package/dist/calendarDate-D2zWfUlA.esm.js +35 -0
- package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
- package/dist/camera-9yYDUOsO.d.ts +5 -0
- package/dist/{camera-sIa9ceW2.esm.js → camera-CJKApt0x.esm.js} +19 -20
- package/dist/camera.d.ts +9 -5
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.d.ts +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
- package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-Ctj6AJC7.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-DDqN9kvL.esm.js} +4 -4
- package/dist/cnpj-CVq3vL39.esm.js +71 -0
- package/dist/cnpj-D5cxwIe-.esm.js +9 -0
- package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-Ca8FHlC4.d.ts → consentManager-B0YKqYtZ.d.ts} +20 -12
- package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-CyoeiABc.esm.js} +7 -4
- package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-BTUrAslr.esm.js} +25 -15
- package/dist/cpf-DDXMTLYr.esm.js +37 -0
- package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-Ct9QrQ66.d.ts} +1 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-cmQmp7Bi.esm.js} +6 -5
- package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
- package/dist/curp-DZGvefg3.esm.js +14 -0
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-EW44fVpH.esm.js} +6 -3
- package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-HOidAKvT.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-BFkt90Zs.esm.js} +41 -34
- package/dist/custom-fields.d.ts +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-DPMBJrcH.esm.js} +15 -17
- package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-DiYpPjZx.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-D7VxQggF.esm.js} +4 -6
- package/dist/deepsightCaptureConfig-BxD3mSac.esm.js +70 -0
- package/dist/{deepsightService-C3DVBOZd.esm.js → deepsightLoader-KYZP8_x-.esm.js} +41 -74
- package/dist/definitionSource-B9WTvQb9.esm.js +30 -0
- package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BGQRIA2u.esm.js} +278 -44
- package/dist/device.d.ts +3 -3
- package/dist/device.esm.js +16 -16
- package/dist/document-capture.d.ts +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.d.ts +123 -0
- package/dist/document-signature.esm.js +149 -0
- package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-SRG6YEMh.esm.js} +30 -20
- package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +42 -8
- package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-Bh0uyfGq.esm.js} +110 -63
- package/dist/documentSignatureStateMachine-CLljjltG.esm.js +219 -0
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-C45pTncO.d.ts} +4 -4
- package/dist/{dynamicFormsManager-DK_oc5Oy.esm.js → dynamicFormsManager-CnU2hRvl.esm.js} +5 -3
- package/dist/{dynamicFormsStateMachine-CGlIAWZ6.esm.js → dynamicFormsStateMachine-huYmjamB.esm.js} +12 -13
- package/dist/ekyb.d.ts +5 -5
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BLgkiWXw.esm.js → ekybManager-CaEErq39.esm.js} +5 -3
- package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-Cjk8pQX0.d.ts} +5 -5
- package/dist/ekybStateMachine-BIU8KIMv.esm.js +2173 -0
- package/dist/ekybUtils-Dl0MU-ib.esm.js +172 -0
- package/dist/ekyc-prefill.d.ts +17 -0
- package/dist/ekyc-prefill.esm.js +3 -0
- package/dist/ekyc.d.ts +4 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-D2K8AaMV.esm.js} +39 -16
- package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-DusmB-4j.d.ts} +49 -7
- package/dist/ekycPrefillManager-BwmPXfhY.d.ts +566 -0
- package/dist/ekycPrefillManager-CENQjdNq.esm.js +102 -0
- package/dist/ekycPrefillStateMachine-jT3hIt2X.esm.js +1289 -0
- package/dist/ekycStateMachine-6EKndBd7.esm.js +9024 -0
- package/dist/ekycUtils-C6HZB46m.esm.js +1532 -0
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
- package/dist/{electronicSignatureManager-CjKvJ6E-.esm.js → electronicSignatureManager-wM8WTgzP.esm.js} +12 -18
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-ButFktRm.esm.js → emailManager-BBdRYLtH.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-DO7lWYvn.esm.js} +35 -25
- package/dist/events-PUWyizJn.esm.js +299 -0
- package/dist/events.d.ts +4 -4
- package/dist/events.esm.js +2 -1
- package/dist/extensibility.d.ts +57 -41
- package/dist/extensibility.esm.js +39 -37
- package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-cUjJYyXj.esm.js} +4 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-D1EJw36F.d.ts} +101 -77
- package/dist/{faceCaptureManagerFactory-BDGhg24q.esm.js → faceCaptureManagerFactory-DbEARG3h.esm.js} +29 -12
- package/dist/{faceCaptureSetup-CvGYG4GZ.esm.js → faceCaptureSetup-VaAjMpWX.esm.js} +189 -513
- package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-C5b5WtcY.d.ts} +23 -7
- package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-nBvS9z0o.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-48O8j_Lx.esm.js} +70 -42
- package/dist/{feature-management-D4ne_hXW.esm.js → feature-management-D7oLtULO.esm.js} +37 -22
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.d.ts +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-B1ipvtnp.esm.js} +7 -7
- package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
- package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-yecjuXV4.esm.js} +9 -8
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +73 -24
- package/dist/flow.esm.js +261 -66
- package/dist/{flowCompletionService-Cemwaa5b.esm.js → flowCompletionService-CIjaIpMH.esm.js} +2 -2
- package/dist/flowServices-Dqt75TXx.esm.js +951 -0
- package/dist/formErrors-lSfh7Y8J.esm.js +512 -0
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-CENrvxpK.d.ts} +19 -20
- package/dist/{geolocationManager-B0dc5rW9.esm.js → geolocationManager-DHfgXhEs.esm.js} +9 -9
- package/dist/{geolocationStateMachine-B3rcoODF.esm.js → geolocationStateMachine-CrEspaN-.esm.js} +16 -14
- package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-0-L21hu6.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-BFIcq3UB.esm.js} +4 -6
- package/dist/home.d.ts +4 -3
- package/dist/home.esm.js +4 -2
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +3 -3
- package/dist/id-selfie-flow.d.ts +7 -6
- package/dist/id-selfie-flow.esm.js +14 -12
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +6 -19
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-CNopPetU.esm.js} +17 -7
- package/dist/{idCaptureManager-IouAnrFm.esm.js → idCaptureManager-BPDCAV04.esm.js} +95 -34
- package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-CNFBeYgV.d.ts} +105 -16
- package/dist/{idCaptureServices-VTKIPSpT.esm.js → idCaptureServices-CWZFmS7l.esm.js} +36 -213
- package/dist/{idCaptureStateMachine-_Pn2Xkpb.esm.js → idCaptureStateMachine-Cyt2BvPB.esm.js} +3081 -2510
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-DflRx-_u.d.ts} +6 -5
- package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-bjBLjrEE.esm.js} +5 -3
- package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-D5ifJ1B8.esm.js} +20 -16
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-C8Ja-vKq.esm.js} +5 -3
- package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-BMnfZZli.esm.js} +4 -6
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.d.ts +97 -0
- package/dist/identity-search.esm.js +96 -0
- package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-B5BWAleT.esm.js} +9 -4
- package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
- package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-Cuggm1UP.esm.js} +24 -31
- package/dist/{index-BKOWUhxG.d.ts → index-BMr3MZEI.d.ts} +93 -22
- package/dist/{index-CKQ9QBZP.d.ts → index-BoGlwLGK.d.ts} +2 -2
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-D2FOfi4O.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +3 -0
- package/dist/kyb-checks.esm.js +3 -0
- package/dist/kybChecksManager-BF2vf0Q2.esm.js +90 -0
- package/dist/kybChecksManager-CKDy1mel.d.ts +95 -0
- package/dist/kybChecksStateMachine-oBQfgdka.esm.js +713 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-qYojnZYg.d.ts → mandatoryConsentManager-BcxCesP5.d.ts} +30 -13
- package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-FfgHdPYw.esm.js} +7 -4
- package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-CXuYC3qR.esm.js} +35 -19
- package/dist/mediaRecorderOptions-Di_V9TnZ.esm.js +87 -0
- package/dist/multipartRecordingService-CFmOUGQt.esm.js +407 -0
- package/dist/numericRange-2e1vw1W0.esm.js +256 -0
- package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-CZTCRHT-.esm.js} +1 -1
- package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-Vd86JiW9.esm.js} +47 -19
- package/dist/phone-number.d.ts +7 -1
- package/dist/phone-number.esm.js +15 -2
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-bA-xw2TP.d.ts} +8 -11
- package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-oIMdbeLG.esm.js} +8 -7
- package/dist/phoneServices-Dk4j3NhI.esm.js +63 -0
- package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-Cu3y7ewi.esm.js} +57 -90
- package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
- package/dist/{platform-DkcRc9JV.esm.js → platform-GIg4uPWe.esm.js} +15 -4
- package/dist/processFaceMatch-CHeI0DEt.esm.js +21 -0
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/recordingService-DK3kjUby.esm.js +404 -0
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Db99n9Yu.d.ts} +7 -4
- package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-yYJGE47m.esm.js} +10 -6
- package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-g_NbyHrL.esm.js} +82 -46
- package/dist/resolveForm-DaaQSVWp.esm.js +146 -0
- package/dist/{runChildModule-DSpP41Hl.esm.js → runChildModule-x1rrxjYY.esm.js} +9 -7
- package/dist/{sdkVersion-DKHwWEyH.esm.js → sdkVersion-kRh5h82H.esm.js} +1 -1
- package/dist/selfie.d.ts +6 -6
- package/dist/selfie.esm.js +15 -13
- package/dist/{selfieErrorUtils-DoN1KFSQ.esm.js → selfieErrorUtils-B9GfiS9f.esm.js} +1 -1
- package/dist/{selfieManager-DtQegA6T.esm.js → selfieManager-CivYjnF5.esm.js} +7 -6
- package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-CqDlUy6B.d.ts} +2 -2
- package/dist/{selfieStateMachine-CnCwJZuC.esm.js → selfieStateMachine-dLwrXWll.esm.js} +5 -5
- package/dist/{session-CNUfjlRc.esm.js → session-DeJ-rd9u.esm.js} +78 -9
- package/dist/session.d.ts +85 -9
- package/dist/session.esm.js +7 -6
- package/dist/{sessionInitializer-JM_glXR2.esm.js → sessionInitializer-uZgyxsrL.esm.js} +442 -208
- package/dist/{setup-YPKTUCY5.d.ts → setup-Cr2KCwau.d.ts} +7 -6
- package/dist/{setup-C5tfWt6W.esm.js → setup-D0QZHkS8.esm.js} +42 -29
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-DRUflksL.esm.js} +5 -3
- package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
- package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-BQZenxel.esm.js} +5 -7
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-BEvexnKC.esm.js → stats-DHu3li6G.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +379 -0
- package/dist/step-up.esm.js +640 -0
- package/dist/{tri-xzRLIIMN.esm.js → tri-D_gHPWrq.esm.js} +137 -8
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-CftnGf9w.esm.js +3115 -0
- package/dist/tri.esm.js +2 -2
- package/dist/trueSight-CbrZUzLx.esm.js +1 -0
- package/dist/{trueSightService-fLmL_cyg.esm.js → trueSightService-BMp8g65B.esm.js} +25 -16
- package/dist/trust-graph.d.ts +87 -27
- package/dist/trust-graph.esm.js +6 -25
- package/dist/trustGraphStateMachine-0Ehwried.esm.js +58 -0
- package/dist/types-B9C8W01q.d.ts +34 -0
- package/dist/types-BNkzXOXE.d.ts +45 -0
- package/dist/{types-B6HsSzpk.d.ts → types-BZsmNYom.d.ts} +77 -9
- package/dist/types-BinnzVrL.d.ts +6 -0
- package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
- package/dist/{types-0L-eFDmr.d.ts → types-BwMpWCVG.d.ts} +6 -2
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/types-CXTDuzUJ.d.ts +16 -0
- package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
- package/dist/{types-DUnFZ08M.d.ts → types-Cy6Lx3L6.d.ts} +18 -10
- package/dist/{types-BAxn7MpY.d.ts → types-D-FEM1rT.d.ts} +156 -58
- package/dist/types-D6Q1D1kx.d.ts +33 -0
- package/dist/{events-Du2A4-Qr.esm.js → types-DLsivQsu.esm.js} +6 -303
- package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
- package/dist/types-DWqO7owj.d.ts +58 -0
- package/dist/{types-yPH8lAH-.d.ts → types-HHgsFhZn.d.ts} +16 -3
- package/dist/{types-Ckir_BEs.d.ts → types-LbccjQYX.d.ts} +3 -2
- package/dist/{types-CK8Jbjkp.d.ts → types-PnJXvTkV.d.ts} +1 -1
- package/dist/types-g3NuVCT9.d.ts +118 -0
- package/dist/types-tOSLpcSa.d.ts +231 -0
- package/dist/urlUtils-B2wagB5v.esm.js +39 -0
- package/dist/usStates-CwOQ2kAx.esm.js +209 -0
- package/dist/video-selfie.d.ts +27 -17
- package/dist/video-selfie.esm.js +105 -26
- package/dist/{videoSelfieCameraWarmer-BBNKiau1.esm.js → videoSelfieCameraWarmer-BpP0_lDr.esm.js} +47 -29
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-CxOc3kSI.d.ts} +24 -9
- package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
- package/dist/{warmup-BElYWRh7.esm.js → warmup-ClZxXOkg.esm.js} +378 -57
- package/dist/{warmup-BO57syF6.d.ts → warmup-SWu5L7cW.d.ts} +19 -2
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/wasmDeepsightConfigSync-DukEcrU8.esm.js +77 -0
- package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-Bw-P5OG1.esm.js} +1 -1
- package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-BLtlzQhv.esm.js} +77 -29
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-d8kdf35n.esm.js} +40 -8
- package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +57 -21
- package/dist/watchlistForBusinessStateMachine-Y9wFmuMH.esm.js +170 -0
- package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-D1BVrd3H.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-Da4p0sTE.esm.js} +4 -6
- package/dist/workflow.d.ts +10 -6
- package/dist/workflow.esm.js +95 -60
- package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
- package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
- package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
- package/package.json +34 -7
- package/dist/Actor-DpTj5PFb.d.ts +0 -1
- package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
- package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
- package/dist/camera-9wWD-pwg.d.ts +0 -4
- package/dist/cpf-uAZTPUBy.esm.js +0 -61
- package/dist/deepsightLoader-sH7920zw.esm.js +0 -55
- package/dist/ekybStateMachine-BfgOUZMK.esm.js +0 -933
- package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
- package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
- package/dist/flowServices-X6Rwf_7E.esm.js +0 -688
- package/dist/index-DpTj5PFb.d.ts +0 -1
- package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
- package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
- package/dist/types-BvLo3U4u.d.ts +0 -134
- package/dist/types-zOgZqMni.d.ts +0 -6
- package/dist/urlUtils-6jsE6rKp.esm.js +0 -23
- package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
- /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as WasmModuleConfig, n as WasmModelsConfig } from "./warmup-
|
|
1
|
+
import { i as WasmModuleConfig, n as WasmModelsConfig } from "./warmup-SWu5L7cW.js";
|
|
2
2
|
//#region ../infra/src/media/canvas.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Class representing a canvas element for image capture and manipulation.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, o as crossDocumentDataMatchMachine, r as createCrossDocumentDataMatchManager, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-
|
|
1
|
+
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, o as crossDocumentDataMatchMachine, r as createCrossDocumentDataMatchManager, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-crZcIUSY.js";
|
|
2
2
|
//#region src/modules/cross-document-data-match/types.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Configuration for the cross-document data match module.
|
|
@@ -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-cmQmp7Bi.esm.js";
|
|
2
2
|
export { createCrossDocumentDataMatchManager, createCrossDocumentDataMatchManagerFromActor, crossDocumentDataMatchMachine };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
3
|
+
import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
4
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
|
+
import { s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
7
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
6
8
|
//#region src/modules/cross-document-data-match/crossDocumentDataMatchServices.ts
|
|
7
9
|
/** Minimum spinner duration (ms), aligned with SDK v1 `ProcessCrossDocumentData`. */
|
|
8
10
|
const MIN_DISPLAY_MS = 3e3;
|
|
9
11
|
async function processCrossDocumentDataMatch(signal) {
|
|
10
12
|
const [res] = await Promise.all([api.post(endpoints.processCrossDocumentDataMatch, {}, { signal }), sleep(MIN_DISPLAY_MS)]);
|
|
11
|
-
if (!res.ok) throw new Error(`POST ${endpoints.processCrossDocumentDataMatch} failed: ${res.status} ${res.statusText}`);
|
|
12
13
|
return res.data;
|
|
13
14
|
}
|
|
14
15
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ActorRefFrom } from "./spawn-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
4
|
//#region src/modules/cross-document-data-match/crossDocumentDataMatchStateMachine.d.ts
|
|
5
5
|
declare const crossDocumentDataMatchMachine: any;
|
|
6
6
|
type CrossDocumentDataMatchMachine = typeof crossDocumentDataMatchMachine;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/internal/forms/checks/curp.ts
|
|
2
|
+
const CURP_PATTERN = /^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HMX](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/;
|
|
3
|
+
/**
|
|
4
|
+
* Mexican CURP layout: 4 letters (the second a vowel or X), a YYMMDD birth
|
|
5
|
+
* date, H, M or X for sex, a state code (NE for born abroad), 3 consonants, a
|
|
6
|
+
* letter or digit, and a final digit. Format only: the check digit isn't
|
|
7
|
+
* computed, as in SDK1 (see "Gaps" in the eKYC drafts README for how to add
|
|
8
|
+
* it). The CURP module checks the same layout.
|
|
9
|
+
*/
|
|
10
|
+
function isValidCurp(curp) {
|
|
11
|
+
return typeof curp === "string" && curp.length === 18 && CURP_PATTERN.test(curp.toUpperCase());
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { isValidCurp as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-
|
|
1
|
+
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-HOidAKvT.js";
|
|
2
2
|
//#region src/modules/curp-validation/curpValidationUtils.d.ts
|
|
3
3
|
type MexicanState = {
|
|
4
4
|
value: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
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-BFkt90Zs.esm.js";
|
|
2
|
+
import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-EW44fVpH.esm.js";
|
|
3
3
|
export { ENTER_CURP_FIELD, GENERATE_CURP_FIELDS, createCurpValidationManager, createCurpValidationManagerFromActor, curpValidationMachine, mexicanStates };
|
package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-EW44fVpH.esm.js}
RENAMED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
1
|
+
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
2
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
+
import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
|
|
7
|
+
import { r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-BFkt90Zs.esm.js";
|
|
5
8
|
//#region src/modules/curp-validation/curpValidationActor.ts
|
|
6
9
|
function createCurpValidationActor(options) {
|
|
7
10
|
return createActor(curpValidationMachine, { input: { config: options.config } }).start();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as ActorRefFrom } from "./spawn-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
4
|
-
import { i as FlowModuleConfig } from "./types-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
|
+
import { i as FlowModuleConfig } from "./types-BZsmNYom.js";
|
|
5
5
|
//#region src/modules/curp-validation/types.d.ts
|
|
6
6
|
type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
|
|
7
7
|
/** Maximum validation retries before auto-advancing. @default 1 */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
|
+
import { t as carryAttempts } from "./attemptCarry-CxiYlUAO.esm.js";
|
|
6
|
+
import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
|
|
7
|
+
import { n as calendarDateError } from "./calendarDate-D2zWfUlA.esm.js";
|
|
4
8
|
//#region src/modules/curp-validation/curpValidationUtils.ts
|
|
5
|
-
const CURP_PATTERN = /^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HMX](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/;
|
|
6
|
-
function isValidCurp(curp) {
|
|
7
|
-
return typeof curp === "string" && curp.length === 18 && CURP_PATTERN.test(curp.toUpperCase());
|
|
8
|
-
}
|
|
9
9
|
/** Convert YYYY-MM-DD to DD/MM/YYYY for the API */
|
|
10
10
|
function formatDateForApi(date) {
|
|
11
11
|
const [year, month, day] = date.split("-");
|
|
@@ -148,14 +148,10 @@ const mexicanStates = [
|
|
|
148
148
|
//#endregion
|
|
149
149
|
//#region src/modules/curp-validation/curpValidationServices.ts
|
|
150
150
|
async function fetchOcrData(signal) {
|
|
151
|
-
|
|
152
|
-
if (!res.ok) throw new Error(`GET ${endpoints.ocrData} failed: ${res.status} ${res.statusText}`);
|
|
153
|
-
return res.data;
|
|
151
|
+
return (await api.get(endpoints.ocrData, { signal })).data;
|
|
154
152
|
}
|
|
155
153
|
async function addCurp(curp, signal) {
|
|
156
|
-
|
|
157
|
-
if (!res.ok) throw new Error(`POST ${endpoints.addCurp} failed: ${res.status} ${res.statusText}`);
|
|
158
|
-
return res.data;
|
|
154
|
+
return (await api.post(endpoints.addCurp, { curp }, { signal })).data;
|
|
159
155
|
}
|
|
160
156
|
async function addCurpV2(form, signal) {
|
|
161
157
|
const payload = {
|
|
@@ -166,9 +162,7 @@ async function addCurpV2(form, signal) {
|
|
|
166
162
|
birthDate: formatDateForApi(form.birthDate),
|
|
167
163
|
state: form.birthState
|
|
168
164
|
};
|
|
169
|
-
|
|
170
|
-
if (!res.ok) throw new Error(`POST ${endpoints.addCurpV2} failed: ${res.status} ${res.statusText}`);
|
|
171
|
-
return res.data;
|
|
165
|
+
return (await api.post(endpoints.addCurpV2, payload, { signal })).data;
|
|
172
166
|
}
|
|
173
167
|
//#endregion
|
|
174
168
|
//#region src/modules/curp-validation/curpFields.ts
|
|
@@ -259,7 +253,10 @@ const createValidators = () => ({
|
|
|
259
253
|
}
|
|
260
254
|
});
|
|
261
255
|
const normalizeFieldValue = (value) => typeof value === "string" ? value : String(value ?? "");
|
|
262
|
-
const evaluateRules = (value, validation, validators) => {
|
|
256
|
+
const evaluateRules = (value, validation, validators, type) => {
|
|
257
|
+
const dateError = type === "date" ? calendarDateError(value.trim()) : void 0;
|
|
258
|
+
if (dateError) return dateError;
|
|
259
|
+
if (type === "date" && value.trim() > getLocalIsoDate()) return "verification.errors.futureDate";
|
|
263
260
|
if (!validation) return void 0;
|
|
264
261
|
for (const rule of validation) {
|
|
265
262
|
const error = validators[rule.type](value);
|
|
@@ -275,7 +272,7 @@ const validateGenerateCurpForm = (data, fields) => {
|
|
|
275
272
|
const validators = createValidators();
|
|
276
273
|
return fields.reduce((errors, field) => {
|
|
277
274
|
const value = normalizeFieldValue(data[field.key]);
|
|
278
|
-
const error = evaluateRules(value, field.validation, validators);
|
|
275
|
+
const error = evaluateRules(value, field.validation, validators, field.type);
|
|
279
276
|
if (error) errors[field.key] = error;
|
|
280
277
|
return errors;
|
|
281
278
|
}, {});
|
|
@@ -289,7 +286,7 @@ const validateGenerateCurpField = (data, fieldKey, fields) => {
|
|
|
289
286
|
if (!field) return void 0;
|
|
290
287
|
const validators = createValidators();
|
|
291
288
|
const value = normalizeFieldValue(data[fieldKey]);
|
|
292
|
-
return evaluateRules(value, field.validation, validators);
|
|
289
|
+
return evaluateRules(value, field.validation, validators, field.type);
|
|
293
290
|
};
|
|
294
291
|
/**
|
|
295
292
|
* Runs the single CURP-entry field through its validation rules.
|
|
@@ -431,22 +428,32 @@ const curpValidationMachine = setup({
|
|
|
431
428
|
}).createMachine({
|
|
432
429
|
id: "curpValidation",
|
|
433
430
|
initial: "idle",
|
|
434
|
-
context: ({ input }) =>
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
431
|
+
context: ({ input, self }) => {
|
|
432
|
+
const carried = carryAttempts("curpValidation", self, (s) => ({ retriesLeft: s.matches("failure") || s.matches("generateError") ? s.context.retriesLeft - 1 : s.context.retriesLeft }));
|
|
433
|
+
return {
|
|
434
|
+
config: input.config,
|
|
435
|
+
curp: "",
|
|
436
|
+
generateForm: { ...DEFAULT_GENERATE_FORM },
|
|
437
|
+
retriesLeft: carried.retriesLeft ?? input.config.maxRetries ?? 1,
|
|
438
|
+
generatedCurp: void 0,
|
|
439
|
+
error: void 0,
|
|
440
|
+
fromGenerate: false,
|
|
441
|
+
fromAutoVerify: false
|
|
442
|
+
};
|
|
443
|
+
},
|
|
444
444
|
states: {
|
|
445
445
|
idle: { on: {
|
|
446
|
-
LOAD: [
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
446
|
+
LOAD: [
|
|
447
|
+
{
|
|
448
|
+
target: "finished",
|
|
449
|
+
guard: ({ context }) => context.retriesLeft < Math.min(0, context.config.maxRetries ?? 1)
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
target: "loading",
|
|
453
|
+
guard: "hasPrefillFromOcr"
|
|
454
|
+
},
|
|
455
|
+
{ target: "enterCurp" }
|
|
456
|
+
],
|
|
450
457
|
CLOSE: "closed"
|
|
451
458
|
} },
|
|
452
459
|
loading: {
|
|
@@ -606,4 +613,4 @@ const curpValidationMachine = setup({
|
|
|
606
613
|
}
|
|
607
614
|
});
|
|
608
615
|
//#endregion
|
|
609
|
-
export { mexicanStates as
|
|
616
|
+
export { mexicanStates as i, ENTER_CURP_FIELD as n, GENERATE_CURP_FIELDS as r, curpValidationMachine as t };
|
package/dist/custom-fields.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createCustomFieldsManagerFromActor, c as customFieldsMachine, d as CustomFieldsConfig, i as createCustomFieldsManager, l as CustomField, n as CustomFieldsState, o as CustomFieldsActor, r as MappedCustomField, s as CustomFieldsValidationErrors, t as CustomFieldsManager, u as CustomFieldType } from "./customFieldsManager-
|
|
1
|
+
import { a as createCustomFieldsManagerFromActor, c as customFieldsMachine, d as CustomFieldsConfig, i as createCustomFieldsManager, l as CustomField, n as CustomFieldsState, o as CustomFieldsActor, r as MappedCustomField, s as CustomFieldsValidationErrors, t as CustomFieldsManager, u as CustomFieldType } from "./customFieldsManager-CdWTbsew.js";
|
|
2
2
|
export { type CustomField, type CustomFieldType, type CustomFieldsActor, type CustomFieldsConfig, type CustomFieldsManager, type CustomFieldsState, type CustomFieldsValidationErrors, type MappedCustomField, createCustomFieldsManager, createCustomFieldsManagerFromActor, customFieldsMachine };
|
|
@@ -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-DPMBJrcH.esm.js";
|
|
2
2
|
export { createCustomFieldsManager, createCustomFieldsManagerFromActor, customFieldsMachine };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, o as customWatchlistMachine, r as createCustomWatchlistManager, t as CustomWatchlistManager } from "./customWatchlistManager-
|
|
1
|
+
import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, o as customWatchlistMachine, r as createCustomWatchlistManager, t as CustomWatchlistManager } from "./customWatchlistManager-lJrveDS4.js";
|
|
2
2
|
//#region src/modules/custom-watchlist/types.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Configuration for the custom watchlist module (INCODE_WATCHLIST flow key).
|
|
@@ -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-D7VxQggF.esm.js";
|
|
2
|
+
import { n as createCustomWatchlistManagerFromActor, t as createCustomWatchlistManager } from "./customWatchlistManager-DiYpPjZx.esm.js";
|
|
3
3
|
export { createCustomWatchlistManager, createCustomWatchlistManagerFromActor, customWatchlistMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ActorRefFrom } from "./spawn-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
4
|
//#region src/modules/custom-fields/types.d.ts
|
|
5
5
|
type CustomFieldType = 'INTEGER' | 'DOUBLE' | 'BOOLEAN' | 'STRING' | 'DATE';
|
|
6
6
|
type CustomField = {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
3
|
+
import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
3
4
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
5
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
6
|
+
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
7
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
8
|
+
import { n as calendarDateError } from "./calendarDate-D2zWfUlA.esm.js";
|
|
6
9
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
|
7
10
|
//#region src/modules/custom-fields/customFieldsServices.ts
|
|
8
11
|
async function submitCustomFields(params, signal) {
|
|
9
|
-
|
|
10
|
-
if (!res.ok) throw new Error(`POST ${endpoints.addCustomFields} failed: ${res.status} ${res.statusText}`);
|
|
11
|
-
return res.data;
|
|
12
|
+
return (await api.post(endpoints.addCustomFields, params.fields, { signal })).data;
|
|
12
13
|
}
|
|
13
14
|
//#endregion
|
|
14
15
|
//#region src/modules/custom-fields/customFieldsStateMachine.ts
|
|
@@ -19,19 +20,16 @@ function transformFields(fields, customFields) {
|
|
|
19
20
|
else result[key] = value;
|
|
20
21
|
return result;
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
-
return customFields.every((field) => {
|
|
24
|
-
if (field.type === "BOOLEAN") return true;
|
|
25
|
-
const value = fields[field.name];
|
|
26
|
-
return value !== void 0 && value !== "";
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function validateRequiredFields(fields, customFields) {
|
|
23
|
+
function validateFields(fields, customFields) {
|
|
30
24
|
const errors = {};
|
|
31
25
|
for (const field of customFields) {
|
|
32
26
|
if (field.type === "BOOLEAN") continue;
|
|
33
27
|
const value = fields[field.name];
|
|
34
28
|
if (value === void 0 || value === "") errors[field.name] = REQUIRED_FIELD_ERROR;
|
|
29
|
+
else if (field.type === "DATE") {
|
|
30
|
+
const dateError = calendarDateError(value);
|
|
31
|
+
if (dateError) errors[field.name] = dateError;
|
|
32
|
+
}
|
|
35
33
|
}
|
|
36
34
|
return Object.keys(errors).length > 0 ? errors : void 0;
|
|
37
35
|
}
|
|
@@ -57,13 +55,13 @@ const customFieldsMachine = setup({
|
|
|
57
55
|
validationErrors: Object.keys(validationErrors).length > 0 ? validationErrors : void 0
|
|
58
56
|
};
|
|
59
57
|
}),
|
|
60
|
-
setValidationErrors: assign(({ context }) => ({ validationErrors:
|
|
58
|
+
setValidationErrors: assign(({ context }) => ({ validationErrors: validateFields(context.fields, context.config.customFields) })),
|
|
61
59
|
markSuccess: assign({ result: "success" }),
|
|
62
60
|
markFailed: assign({ result: "failed" })
|
|
63
61
|
},
|
|
64
62
|
guards: {
|
|
65
63
|
apiSucceeded: ({ event }) => event.output.success,
|
|
66
|
-
isFormComplete: ({ context }) =>
|
|
64
|
+
isFormComplete: ({ context }) => validateFields(context.fields, context.config.customFields) === void 0
|
|
67
65
|
}
|
|
68
66
|
}).createMachine({
|
|
69
67
|
id: "customFields",
|
package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-DiYpPjZx.esm.js}
RENAMED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
1
|
+
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
2
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-D7VxQggF.esm.js";
|
|
5
7
|
//#region src/modules/custom-watchlist/customWatchlistActor.ts
|
|
6
8
|
function createCustomWatchlistActor() {
|
|
7
9
|
return createActor(customWatchlistMachine).start();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ActorRefFrom } from "./spawn-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
4
|
//#region src/modules/custom-watchlist/customWatchlistStateMachine.d.ts
|
|
5
5
|
type CustomWatchlistResult = 'success' | 'skipped';
|
|
6
6
|
declare const customWatchlistMachine: any;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
3
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
2
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
4
|
//#region src/modules/custom-watchlist/customWatchlistServices.ts
|
|
5
5
|
async function processWatchlist(signal) {
|
|
6
|
-
|
|
7
|
-
if (!res.ok) throw new Error(`POST ${endpoints.processWatchlist} failed: ${res.status} ${res.statusText}`);
|
|
8
|
-
return res.data;
|
|
6
|
+
return (await api.post(endpoints.processWatchlist, {}, { signal })).data;
|
|
9
7
|
}
|
|
10
8
|
//#endregion
|
|
11
9
|
//#region src/modules/custom-watchlist/customWatchlistStateMachine.ts
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { u as trueSightLog, w as utf8ByteLength } from "./trueSightService-BMp8g65B.esm.js";
|
|
2
|
+
import "./trueSight-CbrZUzLx.esm.js";
|
|
3
|
+
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
4
|
+
//#region src/internal/deepsight/deepsightCaptureConfig.ts
|
|
5
|
+
/**
|
|
6
|
+
* The WASM engine's cap on the config text (ml-wasm-kit
|
|
7
|
+
* `DSConfig::MAX_JSON_BYTES`): the engine treats longer text as no config.
|
|
8
|
+
*/
|
|
9
|
+
const MAX_CONFIG_TEXT_BYTES = 4096;
|
|
10
|
+
/**
|
|
11
|
+
* The text a module hands the WASM engine (`sdsc`): its config as
|
|
12
|
+
* `JSON.stringify` gives it, or `''` when it has none (see
|
|
13
|
+
* {@link DeepsightModuleConfig}), which also selects the v1 capture-metadata
|
|
14
|
+
* document.
|
|
15
|
+
*/
|
|
16
|
+
function deepsightCaptureConfigText(config) {
|
|
17
|
+
return presentConfig(config)?.text ?? "";
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Whether a SELFIE or AUTHENTICATION attempt records the Deepsight liveness
|
|
21
|
+
* clip, the local recording linked to the face upload. With a config: `ds`
|
|
22
|
+
* and `e.t` on. Without one: `deepsightLiveness === 'VIDEOLIVENESS'`, as
|
|
23
|
+
* before. The backend derives both from the same severity rule, so they agree
|
|
24
|
+
* in real flows.
|
|
25
|
+
*/
|
|
26
|
+
function recordsLivenessClip(config) {
|
|
27
|
+
const present = presentConfig(config);
|
|
28
|
+
if (present === void 0) return config.deepsightLiveness === "VIDEOLIVENESS";
|
|
29
|
+
return config.ds === true && isOn(present.fields, "e", "t");
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Whether a module asks for motion: the iOS motion prompt, the motion
|
|
33
|
+
* permission sheet and the WASM sensors (`rsp`/`ssl`). With a config: `ds`
|
|
34
|
+
* on, `b.p` or `b.y` on, and a phone or tablet. Without one: `ds`, as before.
|
|
35
|
+
*/
|
|
36
|
+
function wantsDeepsightMotion(config) {
|
|
37
|
+
if (config.ds !== true) return false;
|
|
38
|
+
const present = presentConfig(config);
|
|
39
|
+
if (present === void 0) return true;
|
|
40
|
+
return (isOn(present.fields, "b", "p") || isOn(present.fields, "b", "y")) && getDeviceClass() !== "desktop";
|
|
41
|
+
}
|
|
42
|
+
function presentConfig(config) {
|
|
43
|
+
const field = config.deepsightCaptureConfig;
|
|
44
|
+
if (typeof field !== "object" || field === null || Array.isArray(field)) return;
|
|
45
|
+
const text = stringifyConfig(field);
|
|
46
|
+
if (text === void 0 || !text.startsWith("{") || utf8ByteLength(text) > MAX_CONFIG_TEXT_BYTES) return;
|
|
47
|
+
return {
|
|
48
|
+
fields: JSON.parse(text),
|
|
49
|
+
text
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function isOn(config, group, key) {
|
|
53
|
+
const settings = objectAt(config, group);
|
|
54
|
+
return settings !== void 0 && objectAt(settings, key)?.a === true;
|
|
55
|
+
}
|
|
56
|
+
function objectAt(value, key) {
|
|
57
|
+
const field = value[key];
|
|
58
|
+
return typeof field === "object" && field !== null && !Array.isArray(field) ? field : void 0;
|
|
59
|
+
}
|
|
60
|
+
function stringifyConfig(config) {
|
|
61
|
+
try {
|
|
62
|
+
const text = JSON.stringify(config);
|
|
63
|
+
return typeof text === "string" ? text : void 0;
|
|
64
|
+
} catch {
|
|
65
|
+
trueSightLog("warning", "deepsight", "other", "deepsight capture config not serializable");
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export { recordsLivenessClip as n, wantsDeepsightMotion as r, deepsightCaptureConfigText as t };
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-C4x5gc1c.esm.js";
|
|
2
|
+
import { u as trueSightLog } from "./trueSightService-BMp8g65B.esm.js";
|
|
3
|
+
import { t as SDK_VERSION } from "./sdkVersion-kRh5h82H.esm.js";
|
|
4
|
+
import "./trueSight-CbrZUzLx.esm.js";
|
|
5
|
+
import { C as SDK_PLATFORM, S as fingerprintSignalsReporter, _ as isBrowserSimulation, b as IpifyProvider, n as getFingerprintEnabled, t as getDisableIpify, x as BrowserEnvironmentProvider } from "./sessionInitializer-uZgyxsrL.esm.js";
|
|
4
6
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
5
7
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as createHiddenVideoElement } from "./video-BtSWtHy1.esm.js";
|
|
8
|
+
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-Bw-P5OG1.esm.js";
|
|
9
|
+
import { t as MotionSensorProvider } from "./MotionSensorProvider-BAGydZPH.esm.js";
|
|
9
10
|
import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
11
|
+
import { n as runVirtualCameraCheck } from "./virtualCameraCheck-eFOm2C9q.esm.js";
|
|
10
12
|
//#region src/internal/deepsight/metadataService.ts
|
|
11
|
-
function createMetadataService(wasmUtil,
|
|
13
|
+
function createMetadataService(wasmUtil, browserEnv, ipLookup) {
|
|
12
14
|
return {
|
|
13
15
|
async initialize(sdkVersion, disableIpify = false, disableFingerprint = false) {
|
|
14
|
-
wasmUtil.setSdkPlatform(
|
|
16
|
+
wasmUtil.setSdkPlatform(SDK_PLATFORM);
|
|
15
17
|
wasmUtil.setSdkVersion(sdkVersion);
|
|
16
18
|
const ua = getUserAgent();
|
|
17
19
|
const parsedUa = getParsedUserAgent(ua);
|
|
18
20
|
const isMobile = /Android|iPhone|iPad|iPod/i.test(ua);
|
|
19
21
|
const deviceInfo = getDeviceInfo();
|
|
20
22
|
let fingerprintHash = "";
|
|
21
|
-
if (!disableFingerprint)
|
|
22
|
-
fingerprintHash = await getThumbmarkId();
|
|
23
|
-
} catch {
|
|
24
|
-
fingerprintHash = browserEnv.generateCanvasFingerprint();
|
|
25
|
-
}
|
|
23
|
+
if (!disableFingerprint) fingerprintHash = browserEnv.generateCanvasFingerprint();
|
|
26
24
|
const ip = disableIpify ? "" : await ipLookup.getIp();
|
|
27
25
|
const screenDimensions = browserEnv.getScreenDimensions();
|
|
28
26
|
const model = [parsedUa.device.vendor, parsedUa.device.model].filter(Boolean).join(" ");
|
|
@@ -31,6 +29,7 @@ function createMetadataService(wasmUtil, visibility, browserEnv, ipLookup) {
|
|
|
31
29
|
model,
|
|
32
30
|
os: parsedUa.os.name ?? "",
|
|
33
31
|
osVersion: parsedUa.os.version ?? "",
|
|
32
|
+
osVer: parsedUa.os.version ?? "",
|
|
34
33
|
screenDimensions,
|
|
35
34
|
numTouchPoints: deviceInfo.maxTouchPoints,
|
|
36
35
|
fingerprintHash,
|
|
@@ -84,10 +83,7 @@ function createMetadataService(wasmUtil, visibility, browserEnv, ipLookup) {
|
|
|
84
83
|
setMotionStatus(status) {
|
|
85
84
|
wasmUtil.setMotionStatus(status);
|
|
86
85
|
},
|
|
87
|
-
setBackgroundMode(
|
|
88
|
-
wasmUtil.setBackgroundMode(backgroundMode || visibility.wasBackgrounded);
|
|
89
|
-
visibility.reset();
|
|
90
|
-
},
|
|
86
|
+
setBackgroundMode(_backgroundMode) {},
|
|
91
87
|
estimatePerformance() {
|
|
92
88
|
return wasmUtil.estimatePerformance();
|
|
93
89
|
},
|
|
@@ -130,60 +126,15 @@ function createMotionStatusService(motionSensor) {
|
|
|
130
126
|
};
|
|
131
127
|
}
|
|
132
128
|
//#endregion
|
|
133
|
-
//#region src/internal/virtualCameraCheck.ts
|
|
134
|
-
const frameSources = {
|
|
135
|
-
front: "FRONT_ID",
|
|
136
|
-
back: "BACK_ID",
|
|
137
|
-
selfie: "SELFIE"
|
|
138
|
-
};
|
|
139
|
-
/**
|
|
140
|
-
* Sends the analyzed frame image to the backend for logging.
|
|
141
|
-
*/
|
|
142
|
-
async function logFrame({ source, base64Image, token }) {
|
|
143
|
-
try {
|
|
144
|
-
return (await api.post("/omni/log/frame/v2", { base64Image }, {
|
|
145
|
-
query: { source },
|
|
146
|
-
headers: { "X-Incode-Hardware-Id": token }
|
|
147
|
-
})).data;
|
|
148
|
-
} catch {
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Runs the WASM virtual camera check and handles logging and stats.
|
|
154
|
-
*/
|
|
155
|
-
async function runVirtualCameraCheck({ wasmUtil, source, token }) {
|
|
156
|
-
const output = {
|
|
157
|
-
canvas: null,
|
|
158
|
-
itr: null,
|
|
159
|
-
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");
|
|
175
|
-
}
|
|
176
|
-
//#endregion
|
|
177
129
|
//#region src/internal/deepsight/deepsightService.ts
|
|
178
130
|
function createDeepsightService(config) {
|
|
179
|
-
const metadata = createMetadataService(config.wasmUtil, config.
|
|
131
|
+
const metadata = createMetadataService(config.wasmUtil, config.browserEnv, config.ipLookup);
|
|
180
132
|
const motion = createMotionStatusService(config.motionSensor);
|
|
181
133
|
const finalizeCaptureMetadata = () => {
|
|
182
134
|
metadata.preparePipelineState();
|
|
183
135
|
const motionStatus = motion.check();
|
|
184
136
|
metadata.setMotionStatus(motionStatus);
|
|
185
137
|
metadata.getCheck();
|
|
186
|
-
metadata.setBackgroundMode(false);
|
|
187
138
|
};
|
|
188
139
|
return {
|
|
189
140
|
metadata,
|
|
@@ -212,16 +163,7 @@ function createDeepsightService(config) {
|
|
|
212
163
|
token: sessionToken
|
|
213
164
|
});
|
|
214
165
|
},
|
|
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
|
-
},
|
|
166
|
+
async performPrcCheck(_params) {},
|
|
225
167
|
async analyzeFrame(imageData) {
|
|
226
168
|
await motion.start();
|
|
227
169
|
await metadata.analyzeFrame(imageData);
|
|
@@ -249,4 +191,29 @@ function createDeepsightService(config) {
|
|
|
249
191
|
};
|
|
250
192
|
}
|
|
251
193
|
//#endregion
|
|
252
|
-
|
|
194
|
+
//#region src/internal/deepsight/deepsightLoader.ts
|
|
195
|
+
async function loadDeepsightSession(options) {
|
|
196
|
+
try {
|
|
197
|
+
return await loadDeepsightSessionInternal(options);
|
|
198
|
+
} catch (error) {
|
|
199
|
+
trueSightLog("warning", "deepsight", "other", `deepsight load failed error=${String(error)}`);
|
|
200
|
+
throw error;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
async function loadDeepsightSessionInternal(options) {
|
|
204
|
+
setWasmDsFlagSync(options.ds === true);
|
|
205
|
+
const service = createDeepsightService({
|
|
206
|
+
sdkVersion: SDK_VERSION,
|
|
207
|
+
wasmUtil: await WasmUtilProvider.getInstance(),
|
|
208
|
+
browserEnv: new BrowserEnvironmentProvider(),
|
|
209
|
+
motionSensor: new MotionSensorProvider(),
|
|
210
|
+
ipLookup: new IpifyProvider()
|
|
211
|
+
});
|
|
212
|
+
const disableIpify = options.disableIpify ?? getDisableIpify();
|
|
213
|
+
const disableFingerprint = options.disableFingerprint ?? !getFingerprintEnabled();
|
|
214
|
+
await service.initialize(disableIpify, disableFingerprint);
|
|
215
|
+
await service.startMotionSensors();
|
|
216
|
+
return service;
|
|
217
|
+
}
|
|
218
|
+
//#endregion
|
|
219
|
+
export { loadDeepsightSession };
|