@incodetech/core 2.2.0-rc.8 → 2.3.0-rc.0
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/THIRD_PARTY_NOTICES.txt +281 -0
- package/dist/BaseWasmProvider-Dyi6dKp1.d.ts +65 -0
- package/dist/{BrowserDiagnosticsCryptoProvider-DslcXorZ.esm.js → BrowserDiagnosticsCryptoProvider-C_9o3L2L.esm.js} +1 -1
- package/dist/{BrowserVisibilityObserverProvider-BX1BiLDK.esm.js → BrowserVisibilityObserverProvider-BrJN1B8A.esm.js} +2 -0
- package/dist/FaceDetectionProvider-DTetAE8H.esm.js +476 -0
- package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +36 -0
- package/dist/{IIdCaptureCapability-DHTT3FC2.d.ts → IIdCaptureCapability-RNiFhvXR.d.ts} +7 -33
- package/dist/IWasmUtilCapability-CXXDA5l1.d.ts +159 -0
- package/dist/{MotionSensorProvider-DGiV77J_.esm.js → MotionSensorProvider-BgTYwg9L.esm.js} +1 -1
- package/dist/{deepsightService-DLVQS_RH.d.ts → StreamCanvasCapture-B3YT2Bt6.d.ts} +54 -41
- package/dist/{StreamCanvasCapture-D2XcXCZ4.esm.js → StreamCanvasCapture-C9jtgBdT.esm.js} +2 -2
- package/dist/{addressSearch-D1XpBdUS.esm.js → addressSearch-BRSu_aGA.esm.js} +1 -1
- package/dist/advanceableErrors-CpF2cBy6.esm.js +21 -0
- package/dist/ae-signature.d.ts +4 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQFNgSPt.esm.js → antifraudManager-Bg9ynGum.esm.js} +2 -2
- package/dist/{antifraudStateMachine-Bf_JVNwn.esm.js → antifraudStateMachine-BHxehiJZ.esm.js} +1 -1
- package/dist/{apiError-D4rZe9BR.esm.js → apiError-D0v5hFyN.esm.js} +14 -2
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-EfCuQy_Y.esm.js → authenticationManager-C4B4-29g.esm.js} +5 -5
- package/dist/{authenticationManager-BBMGTcwW.d.ts → authenticationManager-DXTIUcma.d.ts} +7 -1
- package/dist/{authenticationStateMachine-B9l3sHEg.esm.js → authenticationStateMachine-DJ0zUm-A.esm.js} +6 -62
- package/dist/avatar.d.ts +1 -2
- package/dist/avatar.esm.js +1 -1
- package/dist/{backCameraStream-CUeYm5eu.esm.js → backCameraStream-BOtyQowf.esm.js} +83 -22
- package/dist/{camera-_2sXMXiF.esm.js → camera-sIa9ceW2.esm.js} +19 -1
- package/dist/camera.esm.js +1 -1
- package/dist/{canvas-E1zGkel4.esm.js → canvas-BxFzWTt-.esm.js} +19 -0
- package/dist/certificate-issuance.d.ts +2 -302
- package/dist/certificate-issuance.esm.js +3 -66
- package/dist/certificateIssuanceManager-Bfvkq7Cy.esm.js +69 -0
- package/dist/certificateIssuanceManager-DCgEidHz.d.ts +312 -0
- package/dist/{certificateIssuanceStateMachine-D_R92TYu.esm.js → certificateIssuanceStateMachine-BBD5h8c4.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-BxjpLZAG.esm.js → consentManager-B5Vqdez-.esm.js} +2 -2
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
- package/dist/{consentStateMachine-D9D4ON8Z.esm.js → consentStateMachine-DbUmqWgV.esm.js} +1 -1
- package/dist/createCameraCycleOwnership-DQ5-F2oW.esm.js +826 -0
- package/dist/{createFaceAvatar-DQKaRise.esm.js → createFaceAvatar-BNHdeFj8.esm.js} +2 -2
- package/dist/createFaceAvatar-BlcTYgJv.d.ts +497 -0
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-CGT0V6RV.esm.js → crossDocumentDataMatchManager-QMOGwHXR.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-6Nmkn5u1.esm.js → curpValidationManager-D1ppROcF.esm.js} +2 -2
- package/dist/{curpValidationManager-DVGr7Fq7.d.ts → curpValidationManager-SSKNrm5Z.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Ds7KMacK.esm.js → curpValidationStateMachine-DvUPC_8S.esm.js} +1 -1
- package/dist/custom-fields.d.ts +2 -114
- package/dist/custom-fields.esm.js +2 -232
- package/dist/custom-watchlist.d.ts +2 -51
- package/dist/custom-watchlist.esm.js +3 -70
- package/dist/customFieldsManager-2j_PBq4U.esm.js +264 -0
- package/dist/customFieldsManager-8-W2KY4n.d.ts +141 -0
- package/dist/customWatchlistManager-DUVrEdw9.esm.js +73 -0
- package/dist/customWatchlistManager-PBWHr_oM.d.ts +64 -0
- package/dist/{customWatchlistStateMachine-YWSgKLbF.esm.js → customWatchlistStateMachine-qZVgkKgP.esm.js} +1 -1
- package/dist/{deepsightLoader-DEcRUKfT.esm.js → deepsightLoader-Dm7ejW4v.esm.js} +27 -71
- package/dist/device.d.ts +25 -2
- package/dist/device.esm.js +69 -7
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DsQQhWry.esm.js → documentCaptureManager-DR_Wv-3H.esm.js} +2 -2
- package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DensIj5F.d.ts} +83 -83
- package/dist/{documentCaptureStateMachine-BM4Ex_5x.esm.js → documentCaptureStateMachine-CWOATHfE.esm.js} +5 -5
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-D5R_uxLQ.d.ts} +25 -3
- package/dist/{dynamicFormsManager-CmvBSrzC.esm.js → dynamicFormsManager-Dt98SDfV.esm.js} +16 -5
- package/dist/{dynamicFormsStateMachine-C37Rtz1G.esm.js → dynamicFormsStateMachine-obKr4IIp.esm.js} +35 -3
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-Bx6dG89U.esm.js → ekybManager-DNZKrKF3.esm.js} +2 -2
- package/dist/{ekybStateMachine-uscz9zIj.esm.js → ekybStateMachine-DjhHQXZ8.esm.js} +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-DgT48ky6.esm.js → ekycManager-CmQBpeiI.esm.js} +2 -2
- package/dist/{ekycStateMachine-CQwqiR-R.esm.js → ekycStateMachine-CmdW2gVm.esm.js} +2 -2
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +2 -2
- package/dist/electronicSignatureManager-Ds-KEVTq.d.ts +2786 -0
- package/dist/{electronicSignatureManager-_QiHi1U5.esm.js → electronicSignatureManager-DzulxM4_.esm.js} +357 -51
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BY0jeYwR.esm.js → emailManager-B5ek_UfM.esm.js} +2 -2
- package/dist/{emailStateMachine-Crw8QVmc.esm.js → emailStateMachine-CyPFZ7dW.esm.js} +1 -1
- package/dist/{endpoints-CCzL3XD_.esm.js → endpoints-D3B9mUHh.esm.js} +24 -7
- package/dist/{events-DYiyoSlx.esm.js → events-ijlbX_Wx.esm.js} +2 -2
- package/dist/events.d.ts +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +24 -64
- package/dist/extensibility.esm.js +35 -29
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-BxWPpxyd.d.ts → faceCaptureManagerFactory-CvtqcLxs.d.ts} +87 -54
- package/dist/{faceCaptureManagerFactory-Bkueb8mk.esm.js → faceCaptureManagerFactory-pCmG4MeF.esm.js} +68 -7
- package/dist/faceCaptureSetup-BSextack.esm.js +2106 -0
- package/dist/{faceMatchManager-Ri4UbNz0.esm.js → faceMatchManager-Caal2zyV.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-20DdZ3jg.esm.js → faceMatchStateMachine-BUc5FXYy.esm.js} +1 -1
- package/dist/{feature-management-B3Uygq6K.esm.js → feature-management-B0sGlozZ.esm.js} +32 -7
- package/dist/feature-management.d.ts +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-Cg6kPQQx.esm.js → fieldComparisonManager-BIs6HPJG.esm.js} +2 -2
- package/dist/fiscal-qr.d.ts +2 -56
- package/dist/fiscal-qr.esm.js +2 -308
- package/dist/fiscalQrManager-Bp_-3LJr.esm.js +34131 -0
- package/dist/fiscalQrManager-CHcBJwUM.d.ts +68 -0
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +212 -185
- package/dist/flow.esm.js +119 -30
- package/dist/{flowCompletionService-UakxNaeg.esm.js → flowCompletionService-CLtbWhSK.esm.js} +2 -2
- package/dist/{flowServices-CD5m8HqZ.esm.js → flowServices-B5FwukTQ.esm.js} +91 -26
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Bz6wJrfI.esm.js → geolocationManager-DIw-xq9a.esm.js} +2 -2
- package/dist/{geolocationStateMachine-psEJIVjN.esm.js → geolocationStateMachine-DpG0TFOU.esm.js} +3 -3
- package/dist/getBrowser-CBiibsL-.esm.js +19 -0
- package/dist/{getBrowser-DNrQeL4T.esm.js → getBrowser-Cbe1C4Tn.esm.js} +2 -1
- package/dist/{getDeviceClass-9y-kbVDw.esm.js → getDeviceClass-5NYZg9s6.esm.js} +2 -2
- package/dist/getParsedUserAgent-B2iFDql1.esm.js +1278 -0
- package/dist/government-validation.d.ts +2 -85
- package/dist/government-validation.esm.js +3 -120
- package/dist/governmentValidationManager-D02vT4yY.d.ts +63 -0
- package/dist/governmentValidationManager-TjC9iVjH.esm.js +79 -0
- package/dist/governmentValidationStateMachine-D1ZnEqdd.esm.js +54 -0
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +3 -2
- package/dist/id-selfie-flow.esm.js +11 -10
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +29 -5
- package/dist/id.esm.js +48 -46
- package/dist/idCaptureDefaults-BcxjQDI3.esm.js +484 -0
- package/dist/{idCaptureManager-CqrqSjJV.d.ts → idCaptureManager-CvmHOWWd.d.ts} +227 -39
- package/dist/{idCaptureManager-BJAquKfp.esm.js → idCaptureManager-Vby8oYqh.esm.js} +259 -46
- package/dist/{idCaptureServices-CM6ki4IH.esm.js → idCaptureServices-CJIxD9ep.esm.js} +342 -31
- package/dist/idCaptureStateMachine-CmqihkUy.esm.js +5343 -0
- package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
- package/dist/{idOcrManager-BIQYQXXj.esm.js → idOcrManager-DHU22hVn.esm.js} +2 -2
- package/dist/{idOcrStateMachine-cSxzHpHt.esm.js → idOcrStateMachine-33UvRAHE.esm.js} +1 -1
- package/dist/{idVerificationManager-JpV_SAsl.esm.js → idVerificationManager-CyaixD0D.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-nPeUNyFq.esm.js → idVerificationStateMachine-BPGrQZEm.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-kNCg9AbD.esm.js → identityReuseManager-CWaNHBO3.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-DyulxDjP.esm.js → identityReuseStateMachine-CQgnATo5.esm.js} +1 -1
- package/dist/{index-CLMF0QLQ.d.ts → index-DLcJT5YP.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-GpvMuz9o.esm.js → invokeOnCaptureCallback-BjzPjJ_p.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-CJSyhTpi.d.ts} +5 -5
- package/dist/{mandatoryConsentManager-B4Niyg_u.esm.js → mandatoryConsentManager-Du-m-tZ_.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-B4-1u-L8.esm.js → mandatoryConsentStateMachine-DSDAk7WZ.esm.js} +1 -1
- package/dist/multipartRecordingService-B3C_zlev.esm.js +594 -0
- package/dist/{permissionGuards-KINpmKtI.esm.js → permissionGuards-uYZYFu4J.esm.js} +1 -1
- package/dist/{permissionServices-UvUcOSRb.esm.js → permissionServices-Bj_fyWtv.esm.js} +5 -5
- package/dist/personhood.d.ts +6 -5
- package/dist/personhood.esm.js +10 -10
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-FsJ0W2Ei.esm.js → phoneManager-N1-sbrY4.esm.js} +2 -2
- package/dist/{phoneStateMachine-Ba0wKHyX.esm.js → phoneStateMachine-jl8LJKCo.esm.js} +1 -1
- package/dist/{platform-BJrm5nzZ.esm.js → platform-DkcRc9JV.esm.js} +29 -1
- package/dist/qe-signature.d.ts +5 -3
- package/dist/qe-signature.esm.js +2 -2
- package/dist/recordingsRepository-CCWy13M-.esm.js +72 -0
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-y4VQB11M.esm.js → redirectToMobileManager-DsFzdTwA.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-Cyv2x0PP.esm.js → redirectToMobileStateMachine-v3otpT-L.esm.js} +1 -1
- package/dist/{rolldown-runtime-FZ4Itg2g.esm.js → rolldown-runtime-FDOR9p9I.esm.js} +1 -19
- package/dist/{runChildModule-BR2RIfRg.esm.js → runChildModule-TuyGE00X.esm.js} +3 -21
- package/dist/safeStorage-B-trhxg6.esm.js +423 -0
- package/dist/{sdkVersion-BWOdgLZ1.esm.js → sdkVersion-CLxKvdyz.esm.js} +1 -1
- package/dist/selfie.d.ts +5 -5
- package/dist/selfie.esm.js +14 -76
- package/dist/{selfieErrorUtils-C2PYBVsp.esm.js → selfieErrorUtils-C77GXJH6.esm.js} +30 -4
- package/dist/{selfieManager-BlImAV-k.esm.js → selfieManager-CihVnODO.esm.js} +5 -5
- package/dist/{selfieManager-DwlCppg0.d.ts → selfieManager-D1KRJ39M.d.ts} +8 -11
- package/dist/selfieStateMachine-fwMmNtOi.esm.js +69 -0
- package/dist/{session-Bp17qJsu.esm.js → session-BHIeAamR.esm.js} +4 -5
- package/dist/session.d.ts +21 -11
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-CcqQD9Q4.esm.js → sessionInitializer-BLoK7SP9.esm.js} +187 -68
- package/dist/{setup-BgoWtvIS.d.ts → setup-Cv-JM9QC.d.ts} +63 -69
- package/dist/{setup-CXj5ozZN.esm.js → setup-msLybMbC.esm.js} +226 -100
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-Ca43yhwk.esm.js → signatureManager-ChsB-nMD.esm.js} +2 -2
- package/dist/{signatureStateMachine-K1LMRrxG.esm.js → signatureStateMachine-BHPwkJZS.esm.js} +1 -1
- package/dist/{src-0Jurt29N.esm.js → src-35ekGRzK.esm.js} +1 -1
- package/dist/{stats-B0nFKawG.esm.js → stats-DkK-f8JT.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService-D05SY_Ij.esm.js → trueSightService-CKrrfV0Q.esm.js} +7 -7
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-BX_XkMsQ2.d.ts → types-9_esGTPj.d.ts} +1 -1
- package/dist/types-BT_Oalip.d.ts +1 -0
- package/dist/{types-DelMqZLe.d.ts → types-BjSly8cp.d.ts} +1 -1
- package/dist/{types-Hmd7U0JA.d.ts → types-CM-jtjJ2.d.ts} +6 -81
- package/dist/{types-Bdf8_LYB2.d.ts → types-CjKBS37a2.d.ts} +303 -13
- package/dist/{types-DVmXIdzW.d.ts → types-D0gekt4U.d.ts} +38 -5
- package/dist/types-DgDvvzg0.d.ts +10 -0
- package/dist/{types-KPvmag_B.d.ts → types-Do5rEXij.d.ts} +7 -4
- package/dist/types-ZT1XFIJ8.d.ts +6 -0
- package/dist/video-selfie.d.ts +59 -35
- package/dist/video-selfie.esm.js +510 -601
- package/dist/{videoSelfieCameraWarmer-BhTWYfGn.esm.js → videoSelfieCameraWarmer-CB1IzZkt.esm.js} +14 -153
- package/dist/videoSelfieFlowModuleMachine-BUe2uACW.esm.js +32 -0
- package/dist/{videoSelfieStepDetector-D3oo2ofo.d.ts → videoSelfieStepDetector-5YHFe0Mq.d.ts} +21 -5
- package/dist/virtualCameraCheck-WOloJ-do.esm.js +48 -0
- package/dist/warmup-CUUnwYxe.esm.js +714 -0
- package/dist/warmup-Cis2p6O0.d.ts +128 -0
- package/dist/wasm.d.ts +30 -6
- package/dist/wasm.esm.js +36 -4
- package/dist/{wasmDsFlagSync-BqUCwLY8.esm.js → wasmDsFlagSync-B2e8p268.esm.js} +2 -2
- package/dist/{wasmWebClient-DM8lkb0z.esm.js → wasmWebClient-B7baE-Wf.esm.js} +358 -28
- package/dist/watchlist-for-business.d.ts +2 -78
- package/dist/watchlist-for-business.esm.js +3 -102
- package/dist/watchlist.esm.js +2 -2
- package/dist/watchlistForBusinessManager-CpuuB1J2.esm.js +107 -0
- package/dist/watchlistForBusinessManager-CsnJnG-C.d.ts +99 -0
- package/dist/{watchlistForBusinessStateMachine-CxFnlshm.esm.js → watchlistForBusinessStateMachine-DEzgjz7C.esm.js} +13 -6
- package/dist/{watchlistManager-LoNZH9qm.esm.js → watchlistManager-CI8BHFob.esm.js} +2 -2
- package/dist/{watchlistStateMachine-DIKQDoUT.esm.js → watchlistStateMachine-DvOby3a-.esm.js} +1 -1
- package/dist/workflow.d.ts +12 -8
- package/dist/workflow.esm.js +48 -39
- package/package.json +4 -10
- package/dist/BrowserStorageProvider-k-FDkC4W.esm.js +0 -67
- package/dist/FaceDetectionProvider-Mh6q3EbA.d.ts +0 -349
- package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +0 -23
- package/dist/IStorageCapability-ORkQfK3F.d.ts +0 -242
- package/dist/OpenViduRecordingProvider-Du98qevC.esm.js +0 -85
- package/dist/createFaceAvatar-BEj18KXi.d.ts +0 -50
- package/dist/document-upload.d.ts +0 -325
- package/dist/document-upload.esm.js +0 -197
- package/dist/electronicSignatureManager-CcUXQZS7.d.ts +0 -1300
- package/dist/faceCaptureSetup-BECAis8R.esm.js +0 -863
- package/dist/getBrowser-Cb8Zgrgp.esm.js +0 -7
- package/dist/getParsedUserAgent-pJjATANs.esm.js +0 -1622
- package/dist/governmentValidationStateMachine-CK9DrZXX.esm.js +0 -226
- package/dist/idCaptureDefaults-WeHbQM7W.esm.js +0 -225
- package/dist/idCaptureStateMachine-fi-Gq1AH.esm.js +0 -3342
- package/dist/lib-DAyUtOTj.esm.js +0 -12420
- package/dist/manualReviewService-D4IkipnN.esm.js +0 -15
- package/dist/mediaRecorderOptions-dALSV8af.esm.js +0 -40
- package/dist/onDeviceFaceResults-CB62pUQf.esm.js +0 -646
- package/dist/openviduLazy-CCDpFWg1.esm.js +0 -10
- package/dist/recordingService-BRgmVnUT.esm.js +0 -329
- package/dist/safeStorage-Ep56I-f_.esm.js +0 -982
- package/dist/selfieStateMachine-CPXEC4wV.esm.js +0 -55
- package/dist/trueSight-CY0Ibfm9.esm.js +0 -1
- package/dist/types-EELWyWpd.d.ts +0 -6
- package/dist/types-Vb4P9ovf.d.ts +0 -22
- package/dist/warmup-Dv2alr2-.d.ts +0 -82
- package/dist/wasmDefaults-DTUrftxR.esm.js +0 -125
- package/dist/{Face2DProvider-UUQt_vRC.esm.js → Face2DProvider-BF48sz5c.esm.js} +1 -1
- package/dist/{PrivacyLensProvider-D8PS7AJa.esm.js → PrivacyLensProvider-EwnC_C5n.esm.js} +1 -1
- /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
- /package/dist/{types-CJ7Yl9K-2.d.ts → types-CJ7Yl9K-.d.ts} +0 -0
|
@@ -1,85 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
|
|
3
|
-
import { t as OtpValidationErrors } from "./otp-CEWfTj9v.js";
|
|
4
|
-
//#region src/modules/government-validation/types.d.ts
|
|
5
|
-
type GovernmentValidationConfig = {
|
|
6
|
-
validationCountries?: string[];
|
|
7
|
-
faceAndDataValidation?: boolean;
|
|
8
|
-
addressValidation?: boolean;
|
|
9
|
-
faceMatchOverrideDataScore?: boolean;
|
|
10
|
-
useCroppedIdFacePhoto?: boolean;
|
|
11
|
-
alternativeFacialValidation?: boolean;
|
|
12
|
-
fallbackEnabled?: boolean;
|
|
13
|
-
scrapingMethod?: boolean;
|
|
14
|
-
scrapingV2?: boolean;
|
|
15
|
-
scrapingV3?: boolean;
|
|
16
|
-
failUnsupportedId?: boolean;
|
|
17
|
-
mockConnectionError?: boolean;
|
|
18
|
-
mockUserNotFoundError?: boolean;
|
|
19
|
-
mockOK?: boolean;
|
|
20
|
-
facialValidation: boolean;
|
|
21
|
-
dataValidation: boolean;
|
|
22
|
-
backgroundExecution: boolean;
|
|
23
|
-
maxOtpAttempts?: number;
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/modules/government-validation/governmentValidationStateMachine.d.ts
|
|
27
|
-
declare const governmentValidationMachine: any;
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/modules/government-validation/governmentValidationActor.d.ts
|
|
30
|
-
type CreateGovernmentValidationActorOptions = {
|
|
31
|
-
config: GovernmentValidationConfig;
|
|
32
|
-
};
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region src/modules/government-validation/governmentValidationManager.d.ts
|
|
35
|
-
type GovernmentValidationIdleState = {
|
|
36
|
-
status: 'idle';
|
|
37
|
-
};
|
|
38
|
-
type GovernmentValidationLoadingState = {
|
|
39
|
-
status: 'loading';
|
|
40
|
-
};
|
|
41
|
-
type GovernmentValidationProcessingState = {
|
|
42
|
-
status: 'processing';
|
|
43
|
-
};
|
|
44
|
-
type GovernmentValidationAwaitingOtpState = {
|
|
45
|
-
status: 'awaitingOtp';
|
|
46
|
-
resendTimer: number;
|
|
47
|
-
canResend: boolean;
|
|
48
|
-
attemptsRemaining: number;
|
|
49
|
-
otpError?: string;
|
|
50
|
-
otpCode: string;
|
|
51
|
-
otpLength: number;
|
|
52
|
-
otpValidationErrors?: OtpValidationErrors;
|
|
53
|
-
isOtpValid: boolean;
|
|
54
|
-
};
|
|
55
|
-
type GovernmentValidationVerifyingOtpState = {
|
|
56
|
-
status: 'verifyingOtp';
|
|
57
|
-
otpCode: string;
|
|
58
|
-
otpLength: number;
|
|
59
|
-
};
|
|
60
|
-
type GovernmentValidationFinishedState = {
|
|
61
|
-
status: 'finished';
|
|
62
|
-
};
|
|
63
|
-
type GovernmentValidationErrorState = {
|
|
64
|
-
status: 'error';
|
|
65
|
-
error: string;
|
|
66
|
-
};
|
|
67
|
-
type GovernmentValidationSuccessState = {
|
|
68
|
-
status: 'displaySuccess';
|
|
69
|
-
};
|
|
70
|
-
type GovernmentValidationUnknownState = {
|
|
71
|
-
status: 'unknown';
|
|
72
|
-
error: string;
|
|
73
|
-
};
|
|
74
|
-
type GovernmentValidationState = GovernmentValidationIdleState | GovernmentValidationLoadingState | GovernmentValidationProcessingState | GovernmentValidationAwaitingOtpState | GovernmentValidationVerifyingOtpState | GovernmentValidationFinishedState | GovernmentValidationErrorState | GovernmentValidationSuccessState | GovernmentValidationUnknownState;
|
|
75
|
-
declare function createGovernmentValidationManager(options: CreateGovernmentValidationActorOptions): Manager<GovernmentValidationState> & {
|
|
76
|
-
load(): void;
|
|
77
|
-
setOtpCode(code: string): void;
|
|
78
|
-
validateOtp(): void;
|
|
79
|
-
submitOtp(code: string): void;
|
|
80
|
-
resendOtp(): void;
|
|
81
|
-
retry(): void;
|
|
82
|
-
};
|
|
83
|
-
type GovernmentValidationManager = ReturnType<typeof createGovernmentValidationManager>;
|
|
84
|
-
//#endregion
|
|
85
|
-
export { type GovernmentValidationConfig, type GovernmentValidationManager, type GovernmentValidationState, createGovernmentValidationManager, governmentValidationMachine };
|
|
1
|
+
import { a as GovernmentValidationActor, i as createGovernmentValidationManagerFromActor, n as GovernmentValidationState, o as governmentValidationMachine, r as createGovernmentValidationManager, s as GovernmentValidationConfig, t as GovernmentValidationManager } from "./governmentValidationManager-D02vT4yY.js";
|
|
2
|
+
export { type GovernmentValidationActor, type GovernmentValidationConfig, type GovernmentValidationManager, type GovernmentValidationState, createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
|
|
@@ -1,120 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
|
|
4
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CK9DrZXX.esm.js";
|
|
5
|
-
//#region src/modules/government-validation/governmentValidationActor.ts
|
|
6
|
-
function createGovernmentValidationActor(options) {
|
|
7
|
-
return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/modules/government-validation/governmentValidationManager.ts
|
|
11
|
-
/**
|
|
12
|
-
* Maps a Government Validation state-machine snapshot to the exact Figma
|
|
13
|
-
* "Tracked Events" screen name. Source: Government Record Verification
|
|
14
|
-
* Figma file (`https://www.figma.com/design/5J4kaLMl19s8cLyRMUMW32/Government-Record-Verification---Latest-Design?node-id=25911-4095`).
|
|
15
|
-
* Family is `GovernmentRecordValidation.*` (PascalCase verbatim from
|
|
16
|
-
* Figma); spans the background record-lookup flow only. The mapper returns
|
|
17
|
-
* Figma-verbatim spellings which the adapter emits as-is on `event.screen`
|
|
18
|
-
* (e.g. `GovernmentRecordValidation.analyzing.default`). See
|
|
19
|
-
* `docs/patterns/INSTRUMENTATION.md`.
|
|
20
|
-
*
|
|
21
|
-
* Figma sub-states the state machine does not surface as discrete states
|
|
22
|
-
* (intentionally not mapped here):
|
|
23
|
-
*
|
|
24
|
-
* - The OTP sub-flow (`awaitingOtp`, `verifyingOtp`) is the
|
|
25
|
-
* INE_VALIDATION variant. Figma does not define screens for it under
|
|
26
|
-
* this family; those states fall back to the generic
|
|
27
|
-
* `<module>.<state>` default.
|
|
28
|
-
* - `displayUnknown` reflects an unrecognised API status code. Figma does
|
|
29
|
-
* not define a tracked-event surface for it.
|
|
30
|
-
*
|
|
31
|
-
* `idle` and `finished` are intentionally unmapped — Figma does not
|
|
32
|
-
* define screens for them and `finished` collapses into `moduleClosed`.
|
|
33
|
-
*/
|
|
34
|
-
function getGovernmentValidationScreenName(snapshot) {
|
|
35
|
-
const stateName = topLevelStateName(snapshot.value);
|
|
36
|
-
if (stateName === void 0) return void 0;
|
|
37
|
-
switch (stateName) {
|
|
38
|
-
case "loading":
|
|
39
|
-
case "displayProcessing": return "GovernmentRecordValidation.analyzing.default";
|
|
40
|
-
case "displaySuccess": return "GovernmentRecordValidation.success.default";
|
|
41
|
-
case "displayError": return "GovernmentRecordValidation.error.usernotfound";
|
|
42
|
-
default: return;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function mapState(snapshot) {
|
|
46
|
-
const typedSnapshot = snapshot;
|
|
47
|
-
const { context } = typedSnapshot;
|
|
48
|
-
if (typedSnapshot.matches("idle")) return { status: "idle" };
|
|
49
|
-
if (typedSnapshot.matches("loading")) return { status: "loading" };
|
|
50
|
-
if (typedSnapshot.matches("awaitingOtp")) return {
|
|
51
|
-
status: "awaitingOtp",
|
|
52
|
-
resendTimer: context.resendTimer,
|
|
53
|
-
canResend: !context.resendTimerActive,
|
|
54
|
-
attemptsRemaining: context.attemptsRemaining,
|
|
55
|
-
otpError: context.otpError,
|
|
56
|
-
otpCode: context.otpCode,
|
|
57
|
-
otpLength: 6,
|
|
58
|
-
otpValidationErrors: context.otpValidationErrors,
|
|
59
|
-
isOtpValid: Object.keys(context.otpValidationErrors ?? {}).length === 0
|
|
60
|
-
};
|
|
61
|
-
if (typedSnapshot.matches("verifyingOtp")) return {
|
|
62
|
-
status: "verifyingOtp",
|
|
63
|
-
otpCode: context.otpCode,
|
|
64
|
-
otpLength: 6
|
|
65
|
-
};
|
|
66
|
-
if (typedSnapshot.matches("displaySuccess")) return { status: "displaySuccess" };
|
|
67
|
-
if (typedSnapshot.matches("displayProcessing")) return { status: "processing" };
|
|
68
|
-
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
69
|
-
if (typedSnapshot.matches("displayError")) return {
|
|
70
|
-
status: "error",
|
|
71
|
-
error: context.error ?? "An error occurred"
|
|
72
|
-
};
|
|
73
|
-
if (typedSnapshot.matches("displayUnknown")) return {
|
|
74
|
-
status: "unknown",
|
|
75
|
-
error: context.error ?? "Unknown validation status"
|
|
76
|
-
};
|
|
77
|
-
return { status: "idle" };
|
|
78
|
-
}
|
|
79
|
-
function createApi({ actor, trackElementClicked }) {
|
|
80
|
-
return {
|
|
81
|
-
load() {
|
|
82
|
-
actor.send({ type: "LOAD" });
|
|
83
|
-
},
|
|
84
|
-
setOtpCode(code) {
|
|
85
|
-
actor.send({
|
|
86
|
-
type: "OTP_CHANGED",
|
|
87
|
-
code
|
|
88
|
-
});
|
|
89
|
-
},
|
|
90
|
-
validateOtp() {
|
|
91
|
-
actor.send({ type: "VALIDATE_OTP" });
|
|
92
|
-
},
|
|
93
|
-
submitOtp(code) {
|
|
94
|
-
trackElementClicked?.("submitOtp");
|
|
95
|
-
actor.send({
|
|
96
|
-
type: "OTP_CHANGED",
|
|
97
|
-
code
|
|
98
|
-
});
|
|
99
|
-
actor.send({ type: "SUBMIT_OTP" });
|
|
100
|
-
},
|
|
101
|
-
resendOtp() {
|
|
102
|
-
trackElementClicked?.("resendOtp");
|
|
103
|
-
actor.send({ type: "RESEND_OTP" });
|
|
104
|
-
},
|
|
105
|
-
retry() {
|
|
106
|
-
trackElementClicked?.("retry");
|
|
107
|
-
actor.send({ type: "RETRY" });
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
function createGovernmentValidationManager(options) {
|
|
112
|
-
return createManager({
|
|
113
|
-
actor: createGovernmentValidationActor(options),
|
|
114
|
-
mapState,
|
|
115
|
-
createApi,
|
|
116
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.governmentValidation, { getEventScreenName: getGovernmentValidationScreenName })
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
export { createGovernmentValidationManager, governmentValidationMachine };
|
|
1
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-D1ZnEqdd.esm.js";
|
|
2
|
+
import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-TjC9iVjH.esm.js";
|
|
3
|
+
export { createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
|
+
import "./Actor-iTq7YY48.js";
|
|
4
|
+
import "./index-B8weJxmL.js";
|
|
5
|
+
//#region src/modules/government-validation/types.d.ts
|
|
6
|
+
type GovernmentValidationConfig = {
|
|
7
|
+
validationCountries?: string[];
|
|
8
|
+
faceAndDataValidation?: boolean;
|
|
9
|
+
addressValidation?: boolean;
|
|
10
|
+
faceMatchOverrideDataScore?: boolean;
|
|
11
|
+
useCroppedIdFacePhoto?: boolean;
|
|
12
|
+
alternativeFacialValidation?: boolean;
|
|
13
|
+
fallbackEnabled?: boolean;
|
|
14
|
+
scrapingMethod?: boolean;
|
|
15
|
+
scrapingV2?: boolean;
|
|
16
|
+
scrapingV3?: boolean;
|
|
17
|
+
failUnsupportedId?: boolean;
|
|
18
|
+
mockConnectionError?: boolean;
|
|
19
|
+
mockUserNotFoundError?: boolean;
|
|
20
|
+
mockOK?: boolean;
|
|
21
|
+
facialValidation: boolean;
|
|
22
|
+
dataValidation: boolean;
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/modules/government-validation/governmentValidationStateMachine.d.ts
|
|
26
|
+
/**
|
|
27
|
+
* Government Record Validation runs as a backend-only step (see
|
|
28
|
+
* docs/_devhub/Module-Government-Validation.md): the SDK shows the standard
|
|
29
|
+
* loader while the call resolves, then advances to `finished` regardless of
|
|
30
|
+
* the validation outcome (success, failure, or unavailable for the
|
|
31
|
+
* country). The outcome is recorded server-side (BE logs / session events)
|
|
32
|
+
* for CS and debugging — nothing is surfaced to the end user, so there is
|
|
33
|
+
* no result screen and no OTP sub-flow here.
|
|
34
|
+
*/
|
|
35
|
+
declare const governmentValidationMachine: any;
|
|
36
|
+
type GovernmentValidationMachine = typeof governmentValidationMachine;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/modules/government-validation/governmentValidationActor.d.ts
|
|
39
|
+
type CreateGovernmentValidationActorOptions = {
|
|
40
|
+
config: GovernmentValidationConfig;
|
|
41
|
+
};
|
|
42
|
+
type GovernmentValidationActor = ActorRefFrom<GovernmentValidationMachine>;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/modules/government-validation/governmentValidationManager.d.ts
|
|
45
|
+
type GovernmentValidationIdleState = {
|
|
46
|
+
status: 'idle';
|
|
47
|
+
};
|
|
48
|
+
type GovernmentValidationLoadingState = {
|
|
49
|
+
status: 'loading';
|
|
50
|
+
};
|
|
51
|
+
type GovernmentValidationFinishedState = {
|
|
52
|
+
status: 'finished';
|
|
53
|
+
};
|
|
54
|
+
type GovernmentValidationState = GovernmentValidationIdleState | GovernmentValidationLoadingState | GovernmentValidationFinishedState;
|
|
55
|
+
declare function createGovernmentValidationManager(options: CreateGovernmentValidationActorOptions): Manager<GovernmentValidationState> & {
|
|
56
|
+
load(): void;
|
|
57
|
+
};
|
|
58
|
+
declare function createGovernmentValidationManagerFromActor(actor: GovernmentValidationActor): Manager<GovernmentValidationState> & {
|
|
59
|
+
load(): void;
|
|
60
|
+
};
|
|
61
|
+
type GovernmentValidationManager = ReturnType<typeof createGovernmentValidationManager>;
|
|
62
|
+
//#endregion
|
|
63
|
+
export { GovernmentValidationActor as a, createGovernmentValidationManagerFromActor as i, GovernmentValidationState as n, governmentValidationMachine as o, createGovernmentValidationManager as r, GovernmentValidationConfig as s, GovernmentValidationManager as t };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
|
+
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
+
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-D1ZnEqdd.esm.js";
|
|
5
|
+
//#region src/modules/government-validation/governmentValidationActor.ts
|
|
6
|
+
function createGovernmentValidationActor(options) {
|
|
7
|
+
return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/modules/government-validation/governmentValidationManager.ts
|
|
11
|
+
/**
|
|
12
|
+
* Maps a Government Validation state-machine snapshot to the exact Figma
|
|
13
|
+
* "Tracked Events" screen name. Source: Government Record Verification
|
|
14
|
+
* Figma file (`https://www.figma.com/design/5J4kaLMl19s8cLyRMUMW32/Government-Record-Verification---Latest-Design?node-id=25911-4095`).
|
|
15
|
+
* Family is `GovernmentRecordValidation.*` (PascalCase verbatim from
|
|
16
|
+
* Figma).
|
|
17
|
+
*
|
|
18
|
+
* The module runs as a backend-only step (no result screen, no OTP
|
|
19
|
+
* sub-flow — see docs/_devhub/Module-Government-Validation.md): only the
|
|
20
|
+
* `loading` state maps to a tracked screen, used while the standard loader
|
|
21
|
+
* is shown. `idle` and `finished` are intentionally unmapped — Figma does
|
|
22
|
+
* not define screens for them and `finished` collapses into
|
|
23
|
+
* `moduleClosed`.
|
|
24
|
+
*/
|
|
25
|
+
function getGovernmentValidationScreenName(snapshot) {
|
|
26
|
+
const stateName = topLevelStateName(snapshot.value);
|
|
27
|
+
if (stateName === void 0) return void 0;
|
|
28
|
+
switch (stateName) {
|
|
29
|
+
case "loading": return "GovernmentRecordValidation.analyzing.default";
|
|
30
|
+
default: return;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The validation outcome itself (success, failure, "unavailable for this
|
|
35
|
+
* country") is never treated as an error — it's recorded server-side once
|
|
36
|
+
* the request reaches the BE, and the flow always advances regardless. So
|
|
37
|
+
* this only fires for the one case the BE never sees: the request failing
|
|
38
|
+
* client-side (offline, timeout, DNS/CORS) before it reaches the backend at
|
|
39
|
+
* all — the state machine's `onError` transition is the sole place that
|
|
40
|
+
* sets `context.error`. Without this, that failure would be invisible both
|
|
41
|
+
* server-side (request never arrived) and client-side (no more `error`
|
|
42
|
+
* state name to drive the default instrumentation heuristic now that the
|
|
43
|
+
* result screen is gone). The UI stays silent either way — this only
|
|
44
|
+
* affects analytics/session events, never what's rendered.
|
|
45
|
+
*/
|
|
46
|
+
function getGovernmentValidationErrorName(snapshot) {
|
|
47
|
+
return snapshot.context.error !== void 0 ? "error.requestFailed" : void 0;
|
|
48
|
+
}
|
|
49
|
+
function getGovernmentValidationErrorPayload(snapshot) {
|
|
50
|
+
return snapshot.context.error !== void 0 ? { reason: "requestFailed" } : void 0;
|
|
51
|
+
}
|
|
52
|
+
function mapState(snapshot) {
|
|
53
|
+
const typedSnapshot = snapshot;
|
|
54
|
+
if (typedSnapshot.matches("loading")) return { status: "loading" };
|
|
55
|
+
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
56
|
+
return { status: "idle" };
|
|
57
|
+
}
|
|
58
|
+
function createApi({ actor }) {
|
|
59
|
+
return { load() {
|
|
60
|
+
actor.send({ type: "LOAD" });
|
|
61
|
+
} };
|
|
62
|
+
}
|
|
63
|
+
function createGovernmentValidationManager(options) {
|
|
64
|
+
return createGovernmentValidationManagerFromActor(createGovernmentValidationActor(options));
|
|
65
|
+
}
|
|
66
|
+
function createGovernmentValidationManagerFromActor(actor) {
|
|
67
|
+
return createManager({
|
|
68
|
+
actor,
|
|
69
|
+
mapState,
|
|
70
|
+
createApi,
|
|
71
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.governmentValidation, {
|
|
72
|
+
getEventScreenName: getGovernmentValidationScreenName,
|
|
73
|
+
getErrorName: getGovernmentValidationErrorName,
|
|
74
|
+
getErrorPayload: getGovernmentValidationErrorPayload
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
export { createGovernmentValidationManagerFromActor as n, createGovernmentValidationManager as t };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
|
+
//#region src/modules/government-validation/governmentValidationServices.ts
|
|
6
|
+
async function processGovernmentValidation(signal) {
|
|
7
|
+
const res = await api.post(endpoints.governmentValidation, {}, { signal });
|
|
8
|
+
if (!res.ok) throw new Error(`POST ${endpoints.governmentValidation} failed: ${res.status} ${res.statusText}`);
|
|
9
|
+
return res.data;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/modules/government-validation/governmentValidationStateMachine.ts
|
|
13
|
+
/**
|
|
14
|
+
* Government Record Validation runs as a backend-only step (see
|
|
15
|
+
* docs/_devhub/Module-Government-Validation.md): the SDK shows the standard
|
|
16
|
+
* loader while the call resolves, then advances to `finished` regardless of
|
|
17
|
+
* the validation outcome (success, failure, or unavailable for the
|
|
18
|
+
* country). The outcome is recorded server-side (BE logs / session events)
|
|
19
|
+
* for CS and debugging — nothing is surfaced to the end user, so there is
|
|
20
|
+
* no result screen and no OTP sub-flow here.
|
|
21
|
+
*/
|
|
22
|
+
const governmentValidationMachine = setup({
|
|
23
|
+
types: {
|
|
24
|
+
context: {},
|
|
25
|
+
events: {},
|
|
26
|
+
input: {}
|
|
27
|
+
},
|
|
28
|
+
actors: { processValidation: fromPromise(async ({ signal }) => {
|
|
29
|
+
return processGovernmentValidation(signal);
|
|
30
|
+
}) },
|
|
31
|
+
actions: { setError: assign(({ event }) => ({ error: String(event.error) })) }
|
|
32
|
+
}).createMachine({
|
|
33
|
+
id: "governmentValidation",
|
|
34
|
+
initial: "idle",
|
|
35
|
+
context: ({ input }) => ({
|
|
36
|
+
config: input.config,
|
|
37
|
+
error: void 0
|
|
38
|
+
}),
|
|
39
|
+
states: {
|
|
40
|
+
idle: { on: { LOAD: { target: "loading" } } },
|
|
41
|
+
loading: { invoke: {
|
|
42
|
+
id: "processValidation",
|
|
43
|
+
src: "processValidation",
|
|
44
|
+
onDone: { target: "finished" },
|
|
45
|
+
onError: {
|
|
46
|
+
target: "finished",
|
|
47
|
+
actions: "setError"
|
|
48
|
+
}
|
|
49
|
+
} },
|
|
50
|
+
finished: { type: "final" }
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
export { governmentValidationMachine as t };
|
package/dist/home.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as StateMachine, C as StateValue, a as ActorRefFromLogic, c as AnyEventObject, g as IsNotNever, h as InputFrom, k as MachineSnapshot, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import "./StateMachine-EDpYWy0i.js";
|
|
3
3
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
4
|
-
import { t as EmptyConfig } from "./types-
|
|
4
|
+
import { t as EmptyConfig } from "./types-Do5rEXij.js";
|
|
5
5
|
//#region src/modules/home/types.d.ts
|
|
6
6
|
type HomeConfig = EmptyConfig;
|
|
7
7
|
//#endregion
|
package/dist/home.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
3
3
|
//#region src/modules/home/homeStateMachine.ts
|
|
4
4
|
const homeMachine = setup({ types: {
|
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-CJ7Yl9K
|
|
2
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-
|
|
1
|
+
import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-CJ7Yl9K-.js";
|
|
2
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-BF_cXZq8.js";
|
|
3
3
|
//#region src/modules/id-ocr/idOcrFields.d.ts
|
|
4
4
|
declare const OCR_FIELDS: OcrFieldConfig[];
|
|
5
5
|
declare const getOcrFields: (config: Pick<IdOcrConfig, "cpfOnly" | "flowId">) => OcrFieldConfig[];
|
package/dist/id-ocr.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
|
|
2
|
-
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
3
|
-
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-
|
|
2
|
+
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-33UvRAHE.esm.js";
|
|
3
|
+
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-DHU22hVn.esm.js";
|
|
4
4
|
//#region src/modules/id-ocr/idOcrCpfUtils.ts
|
|
5
5
|
function formatCPF(value) {
|
|
6
6
|
const digits = value.replace(/\D/g, "").slice(0, 11);
|
package/dist/id-selfie-flow.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import "./warmup-Cis2p6O0.js";
|
|
1
2
|
import "./StateMachine-EDpYWy0i.js";
|
|
2
3
|
import "./Actor-iTq7YY48.js";
|
|
3
4
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
4
|
-
import { t as DetectionOrientation } from "./IIdCaptureCapability-
|
|
5
|
+
import { t as DetectionOrientation } from "./IIdCaptureCapability-RNiFhvXR.js";
|
|
5
6
|
import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
6
|
-
import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-
|
|
7
|
+
import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-5YHFe0Mq.js";
|
|
7
8
|
//#region src/modules/id-selfie-flow/types.d.ts
|
|
8
9
|
/**
|
|
9
10
|
* The capture steps an ID + Selfie flow session can run, in flow order. A
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-msLybMbC.esm.js";
|
|
2
|
+
import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-B5FwukTQ.esm.js";
|
|
5
5
|
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
7
|
-
import {
|
|
7
|
+
import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-DTetAE8H.esm.js";
|
|
8
|
+
import { a as StreamCanvasProcessingSession } from "./recordingsRepository-CCWy13M-.esm.js";
|
|
8
9
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
14
|
-
import {
|
|
10
|
+
import { a as uploadSelfie, r as processFace } from "./selfieErrorUtils-C77GXJH6.esm.js";
|
|
11
|
+
import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BcxjQDI3.esm.js";
|
|
12
|
+
import { _ as ID_ERROR_CODES, g as validateUploadResponse, m as uploadIdImage, u as processId } from "./idCaptureServices-CJIxD9ep.esm.js";
|
|
13
|
+
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
14
|
+
import { n as getFinishStatus } from "./flowCompletionService-CLtbWhSK.esm.js";
|
|
15
|
+
import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-CB1IzZkt.esm.js";
|
|
15
16
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
16
17
|
/** Default autocapture window for the selfie step. */
|
|
17
18
|
const SELFIE_AUTOCAPTURE_MS = 1e4;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
2
|
-
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-
|
|
1
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-BPGrQZEm.esm.js";
|
|
2
|
+
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-CyaixD0D.esm.js";
|
|
3
3
|
export { createIdVerificationManager, createIdVerificationManagerFromActor, idVerificationMachine };
|
package/dist/id.d.ts
CHANGED
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
|
-
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
3
2
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { A as
|
|
3
|
+
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
4
|
+
import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-RNiFhvXR.js";
|
|
5
|
+
import { A as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, B as DeviceWalletPlatform, C as IdDocumentType, D as RecordingSession, E as IdFlowStep, F as ManualUploadTab, G as DigitalIdFunnelEntry, H as DIGITAL_ID_DOCUMENT_TYPES, I as DeviceWalletDecision, J as isRedirectFlowType, K as DigitalIdPlatformSupport, L as DeviceWalletDecryptResponse, M as MANUAL_UPLOAD_MAX_RETRIES, N as ManualUploadContext, O as UploadIdResponse, P as ManualUploadSide, Q as RedirectReturnParams, R as DeviceWalletFailReason, S as IdCapturedImageData, T as IdErrorCode, U as DIGITAL_ID_REGISTRY, V as DeviceWalletProvider, W as DigitalIdDocumentType, X as DigitalIdProviderId, Y as resolveDigitalIdImplementation, _ as IdCaptureInput, a as CaptureOnlyResponse, b as IdCaptureOutput, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureGeometry, h as IdCaptureEvent, i as CaptureIdResponse, j as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, q as ResolvedDigitalIdRoute, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureMode, w as IdError, x as IdCaptureThresholds, y as IdCaptureOnlyConfig, z as DeviceWalletOutput } from "./types-CjKBS37a2.js";
|
|
6
|
+
import { A as preloadIdRecordingProvider, C as addBarcode, D as getRealQualityValue, E as finalizeRecordingSession, F as stopStream, I as uploadIdImage, L as uploadManualIdFile, M as processId, N as startRecordingSession, O as initializeIdCapture, P as stopRecording, R as validateUploadResponse, S as ValidationError, T as disposeRecordingSession, _ as IdCaptureInitResult, a as CreateIdCaptureOnlyActorOptions, b as UploadIdImageParams, c as IdCaptureOnlyMachine, d as IdCaptureActor, f as createIdCaptureActor, g as FinalizedIdRecording, h as AddBarcodeParams, j as prepareRecordingForCameraRetry, k as pauseRecordingForAttempt, l as idCaptureOnlyMachine, m as idCaptureMachine, n as IdCaptureManager, o as IdCaptureOnlyActor, p as IdCaptureMachine, r as IdCaptureState, s as createIdCaptureOnlyActor, t as createIdCaptureManager, u as CreateIdCaptureActorOptions, v as InitializeIdCaptureParams, w as barcodeToBase64, x as UploadManualIdFileParams, y as StartRecordingParams } from "./idCaptureManager-CvmHOWWd.js";
|
|
7
|
+
//#region src/modules/id/deviceWallet/deviceWalletErrors.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
|
10
|
+
* `DIGITAL_UPLOAD_ERROR_KEYS`). Keys are authored in i18nexus.
|
|
11
|
+
*/
|
|
12
|
+
declare const DEVICE_WALLET_ERROR_KEYS: {
|
|
13
|
+
readonly UNSUPPORTED_PLATFORM: "idv2.deviceWallet.unsupportedPlatformDescription";
|
|
14
|
+
readonly NO_CREDENTIAL: "idv2.deviceWallet.noCredentialDescription";
|
|
15
|
+
readonly WALLET_ERROR: "idv2.deviceWallet.errorDescription";
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/modules/id/deviceWallet/deviceWalletPlatform.d.ts
|
|
19
|
+
/**
|
|
20
|
+
* Maps an explicit provider override or the current user agent to the wallet
|
|
21
|
+
* platform (ported from V1 `resolveWalletPlatform`, minus the Credentials API
|
|
22
|
+
* capability check — that lives on `IDigitalCredentialsCapability.isAvailable()`
|
|
23
|
+
* and is consulted by the digital-ID funnel before this module is invoked).
|
|
24
|
+
*
|
|
25
|
+
* Auto-detection: iOS/iPadOS and macOS Safari → Apple Wallet (web); Android
|
|
26
|
+
* and every other desktop/unknown browser (incl. macOS Chrome) → Google
|
|
27
|
+
* Wallet, which is the only wallet reachable there.
|
|
28
|
+
*/
|
|
29
|
+
declare function resolveWalletPlatform(provider?: DeviceWalletProvider): DeviceWalletPlatform;
|
|
30
|
+
//#endregion
|
|
7
31
|
//#region src/modules/id/idCaptureOnlyManager.d.ts
|
|
8
32
|
type IdCaptureOnlyManager = IdCaptureManager;
|
|
9
33
|
/**
|
|
@@ -23,4 +47,4 @@ declare function createIdCaptureOnlyManagerFromActor(actor: IdCaptureOnlyActor,
|
|
|
23
47
|
*/
|
|
24
48
|
declare function createIdCaptureOnlyManager(options: CreateIdCaptureOnlyActorOptions): IdCaptureOnlyManager;
|
|
25
49
|
//#endregion
|
|
26
|
-
export { AddBarcodeParams, AddBarcodeV3Response, type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, type CreateIdCaptureActorOptions, type CreateIdCaptureOnlyActorOptions, DetectionArea, type DetectionOrientation, DetectionStatus, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, type IdCaptureOnlyActor, IdCaptureOnlyConfig, type IdCaptureOnlyMachine, type IdCaptureOnlyManager, IdCaptureOutput, type IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdCapturedImageData, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, type ManualUploadContext, type ManualUploadSide, type ManualUploadTab, type PermissionResult, type PermissionStatus, RecordingSession, StartRecordingParams, UploadIdImageParams, UploadIdResponse, UploadManualIdFileParams, ValidationError, addBarcode, barcodeToBase64, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
|
|
50
|
+
export { AcceptedDocument, AcceptedDocumentType, AddBarcodeParams, AddBarcodeV3Response, type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, type CreateIdCaptureActorOptions, type CreateIdCaptureOnlyActorOptions, DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, DetectionArea, type DetectionOrientation, DetectionStatus, type DeviceWalletDecision, type DeviceWalletDecryptResponse, type DeviceWalletFailReason, type DeviceWalletOutput, type DeviceWalletPlatform, type DeviceWalletProvider, type DigitalIdDocumentType, type DigitalIdFunnelEntry, type DigitalIdPlatformSupport, type DigitalIdProviderId, FinalizedIdRecording, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureDigitalIdFlowType, IdCaptureDigitalIdMethod, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, type IdCaptureOnlyActor, IdCaptureOnlyConfig, type IdCaptureOnlyMachine, type IdCaptureOnlyManager, IdCaptureOutput, type IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdCapturedImageData, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, type ManualUploadContext, type ManualUploadSide, type ManualUploadTab, type PermissionResult, type PermissionStatus, RecordingSession, type RedirectReturnParams, type ResolvedDigitalIdRoute, StartRecordingParams, UploadIdImageParams, UploadIdResponse, UploadManualIdFileParams, ValidationError, addBarcode, barcodeToBase64, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, disposeRecordingSession, finalizeRecordingSession, getRealQualityValue, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, pauseRecordingForAttempt, preloadIdRecordingProvider, prepareRecordingForCameraRetry, processId, resolveDigitalIdImplementation, resolveWalletPlatform, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
|