@incodetech/core 2.4.1 → 2.5.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/dist/Actor-DqjOqDfU.d.ts +1 -0
- package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
- package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
- package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-ppyMYVoY.esm.js} +7 -744
- package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
- package/dist/{FaceDetectionProvider-J_-1Cwck.esm.js → FaceDetectionProvider-n9u4dEn_.esm.js} +28 -64
- package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
- package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
- package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
- package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +33 -6
- package/dist/Manager-BvXAwDv9.esm.js +125 -0
- package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
- package/dist/MultipartRecordingProvider-CduV32Qa.esm.js +151 -0
- package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
- package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +13 -4
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-0xTxgP0R.esm.js} +114 -25
- package/dist/WorkerEncoderRecordingProvider-CsDED9UU.esm.js +80 -0
- package/dist/addressSearch-Rxm1K67A.esm.js +73 -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/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-DKNOi9-z.esm.js} +5 -3
- package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
- package/dist/{api-Cz90EHyu.esm.js → api-CZpuJuZl.esm.js} +11 -6
- package/dist/{apiError-9Yi8xMeB.esm.js → apiError-CtArBUt-.esm.js} +1 -1
- package/dist/attemptCarry-BecGGZK8.esm.js +45 -0
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-pKQS4fHT.esm.js → authenticationManager-9N3eg3Uh.esm.js} +7 -6
- package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-DRaugLgH.d.ts} +2 -2
- package/dist/{authenticationStateMachine-D_DygKtQ.esm.js → authenticationStateMachine-DoK5RKIS.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-DS1oDiUq.esm.js} +12 -107
- package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
- package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
- package/dist/camera.d.ts +2 -2
- 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-DaUklfNj.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-_EQcjGE3.esm.js} +4 -4
- package/dist/cnpj-Bl_olpdX.esm.js +79 -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-CvEu8h_W.esm.js → consentManager-BPocwpm2.esm.js} +7 -4
- package/dist/{consentManager-Ca8FHlC4.d.ts → consentManager-vI6QHkHU.d.ts} +16 -8
- package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-DgiIcT9q.esm.js} +22 -9
- package/dist/cpf-DDXMTLYr.esm.js +37 -0
- package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.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-BfA29Aji.esm.js} +6 -4
- 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-CbvBDoE1.esm.js} +6 -3
- package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-Ci2iVuog.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-BQ8XK2Y3.esm.js} +30 -22
- 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-D1ex2cFM.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
- package/dist/{deepsightService-C3DVBOZd.esm.js → deepsightLoader-zG373VVx.esm.js} +39 -69
- package/dist/definitionSource-Nw0YCbpe.esm.js +221 -0
- package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BKFjsQpO.esm.js} +178 -41
- package/dist/device.esm.js +2 -2
- package/dist/document-capture.d.ts +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-BKaJVQxg.esm.js} +30 -20
- package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-CoGcEiMK.d.ts} +42 -8
- package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-BYLb5Azk.esm.js} +107 -58
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DK_oc5Oy.esm.js → dynamicFormsManager-BfQKWG7a.esm.js} +5 -3
- package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-C45pTncO.d.ts} +4 -4
- package/dist/{dynamicFormsStateMachine-CGlIAWZ6.esm.js → dynamicFormsStateMachine-CRq01QNK.esm.js} +4 -4
- package/dist/ekyb.d.ts +5 -5
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BLgkiWXw.esm.js → ekybManager-B489iXyO.esm.js} +5 -3
- package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-BflWuTe4.d.ts} +5 -5
- package/dist/{ekybStateMachine-BfgOUZMK.esm.js → ekybStateMachine-DZxg8T0H.esm.js} +40 -56
- package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -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-DW-ynodd.d.ts → ekycManager-BKVQazAb.d.ts} +49 -7
- package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-nRT0rxei.esm.js} +39 -16
- package/dist/ekycPrefillManager-BXWDF7vT.esm.js +103 -0
- package/dist/ekycPrefillManager-DOTl3Y2w.d.ts +566 -0
- package/dist/ekycPrefillStateMachine-CuWTVze1.esm.js +687 -0
- package/dist/ekycRules-DXP2hqVw.esm.js +479 -0
- package/dist/ekycStateMachine-nwJRel2s.esm.js +7897 -0
- package/dist/ekycUtils-FcqA6oU4.esm.js +1491 -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-BcE0XMrN.esm.js} +8 -6
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-ButFktRm.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-CTEaYncs.esm.js} +34 -22
- package/dist/events-CP3yOzAl.esm.js +299 -0
- package/dist/events.d.ts +3 -1
- package/dist/events.esm.js +2 -1
- package/dist/extensibility.d.ts +43 -41
- package/dist/extensibility.esm.js +39 -37
- package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-BDGhg24q.esm.js → faceCaptureManagerFactory-BBQzNrku.esm.js} +17 -6
- package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-CRGajjZ4.d.ts} +84 -72
- package/dist/{faceCaptureSetup-CvGYG4GZ.esm.js → faceCaptureSetup-D8_ilXFc.esm.js} +117 -482
- package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-C5b5WtcY.d.ts} +23 -7
- package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +68 -29
- package/dist/{feature-management-D4ne_hXW.esm.js → feature-management-SIBmKJs8.esm.js} +35 -21
- 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-VgCU4X96.esm.js} +6 -4
- 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-DOLq45ph.esm.js} +8 -6
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +75 -24
- package/dist/flow.esm.js +288 -70
- package/dist/{flowCompletionService-Cemwaa5b.esm.js → flowCompletionService-BFCddN3G.esm.js} +24 -3
- package/dist/{flowServices-X6Rwf_7E.esm.js → flowServices-NX4ksmS5.esm.js} +447 -183
- 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-D1Ga7_lB.esm.js} +9 -9
- package/dist/{geolocationStateMachine-B3rcoODF.esm.js → geolocationStateMachine-oPgI5FIQ.esm.js} +14 -10
- package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.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-6JQQkzha.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-wBunpfQ9.esm.js} +3 -3
- 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 -19
- package/dist/id-selfie-flow.d.ts +6 -5
- package/dist/id-selfie-flow.esm.js +13 -11
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +4 -17
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-Drh207VJ.esm.js} +3 -3
- package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-Cqx2y_fC.d.ts} +76 -12
- package/dist/{idCaptureManager-IouAnrFm.esm.js → idCaptureManager-DjZyIbxc.esm.js} +68 -19
- package/dist/{idCaptureServices-VTKIPSpT.esm.js → idCaptureServices-DWs9Fb58.esm.js} +29 -198
- package/dist/{idCaptureStateMachine-_Pn2Xkpb.esm.js → idCaptureStateMachine-BGMkWF9t.esm.js} +961 -553
- package/dist/idOcrCpfUtils-D5Gwskxu.esm.js +18 -0
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-DflRx-_u.d.ts} +6 -5
- package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-im7VfJQi.esm.js} +5 -3
- package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-B832arAl.esm.js} +11 -10
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
- package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DeeugC00.esm.js} +3 -3
- 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 +97 -0
- package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-C40ngKeM.d.ts} +86 -19
- package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
- package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/{index-CKQ9QBZP.d.ts → index-DxYNO94y.d.ts} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-lXP41N7b.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +3 -0
- package/dist/kyb-checks.esm.js +3 -0
- package/dist/kybChecksManager-B7Di9auB.d.ts +95 -0
- package/dist/kybChecksManager-eRU3ht0m.esm.js +90 -0
- package/dist/kybChecksStateMachine-CU0oIYDR.esm.js +720 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-qYojnZYg.d.ts → mandatoryConsentManager-C1B2ERZk.d.ts} +28 -11
- package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +7 -4
- package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +32 -13
- package/dist/mediaRecorderOptions-g1TwTlhd.esm.js +87 -0
- package/dist/multipartRecordingService-WgK8ieRI.esm.js +407 -0
- package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-pcrrqrPR.esm.js} +1 -1
- package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-DFJlH7K3.esm.js} +11 -9
- 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/phoneFormat-C3q0Ukh4.esm.js +27 -0
- package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-VO1HEoUZ.d.ts} +8 -3
- package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-rA7updqF.esm.js} +6 -4
- package/dist/phoneServices-CFXcwCFr.esm.js +77 -0
- package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +56 -84
- package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
- package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
- package/dist/processFaceMatch-B_DkDTE5.esm.js +21 -0
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/recordingService-DxiwS8TV.esm.js +397 -0
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-DjsEtWLq.esm.js} +9 -6
- package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +6 -4
- package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-CMjjUXSu.esm.js} +67 -28
- package/dist/resolveForm-DaaQSVWp.esm.js +146 -0
- package/dist/{runChildModule-DSpP41Hl.esm.js → runChildModule-CJ_aQO92.esm.js} +9 -7
- package/dist/{sdkVersion-DKHwWEyH.esm.js → sdkVersion-C9kbIDeX.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +13 -12
- package/dist/{selfieErrorUtils-DoN1KFSQ.esm.js → selfieErrorUtils-DUokfsv4.esm.js} +1 -1
- package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-DihwheJ6.d.ts} +2 -2
- package/dist/{selfieManager-DtQegA6T.esm.js → selfieManager-uJtbzEp9.esm.js} +7 -6
- package/dist/{selfieStateMachine-CnCwJZuC.esm.js → selfieStateMachine-CKXAmNkA.esm.js} +5 -5
- package/dist/{session-CNUfjlRc.esm.js → session-Bk2K8TEv.esm.js} +77 -9
- package/dist/session.d.ts +96 -10
- package/dist/session.esm.js +7 -6
- package/dist/{sessionInitializer-JM_glXR2.esm.js → sessionInitializer-CUCBGZ_s.esm.js} +359 -115
- package/dist/{setup-C5tfWt6W.esm.js → setup-B3a5KQeI.esm.js} +36 -27
- package/dist/{setup-YPKTUCY5.d.ts → setup-DpOr8H_l.d.ts} +2 -2
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-BgAja97K.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-CVPmvU2p.esm.js} +3 -3
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-BEvexnKC.esm.js → stats-DoByUnTa.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/textRules-D4NRinKY.d.ts +41 -0
- package/dist/{trueSightService-fLmL_cyg.esm.js → trueSightService-BnQDjqUu.esm.js} +22 -10
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +5 -3
- package/dist/{types-yPH8lAH-.d.ts → types-9wlf1-GE.d.ts} +3 -3
- package/dist/types-B-PIc0en.d.ts +115 -0
- package/dist/types-B9C8W01q.d.ts +34 -0
- package/dist/{types-0L-eFDmr.d.ts → types-BgRHw-dR.d.ts} +1 -1
- package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/types-CE1jkHw3.d.ts +6 -0
- package/dist/types-CTaL0XJz.d.ts +80 -0
- package/dist/{types-BAxn7MpY.d.ts → types-Cpdum4vi.d.ts} +125 -50
- package/dist/{types-DUnFZ08M.d.ts → types-CyNndVAT.d.ts} +16 -8
- package/dist/types-DEa3taWc.d.ts +217 -0
- package/dist/{types-CK8Jbjkp.d.ts → types-DFP7eSle.d.ts} +1 -1
- package/dist/{types-Ckir_BEs.d.ts → types-DJPU3W2M.d.ts} +3 -2
- package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
- package/dist/{events-Du2A4-Qr.esm.js → types-DYYMdAGv.esm.js} +4 -299
- package/dist/{types-B6HsSzpk.d.ts → types-Ddc4Tr_f.d.ts} +42 -6
- package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
- package/dist/usStates-CwOQ2kAx.esm.js +209 -0
- package/dist/video-selfie.d.ts +16 -14
- package/dist/video-selfie.esm.js +100 -24
- package/dist/{videoSelfieCameraWarmer-BBNKiau1.esm.js → videoSelfieCameraWarmer-CgqaNI-W.esm.js} +26 -27
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +10 -5
- package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
- package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
- package/dist/{warmup-BElYWRh7.esm.js → warmup-BZOMg303.esm.js} +243 -30
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-DPK7qGgo.esm.js} +1 -1
- package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
- package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-CyLCM31e.esm.js} +45 -26
- 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-BH6M4kqA.esm.js} +40 -8
- package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +57 -21
- package/dist/watchlistForBusinessStateMachine-BMWm5mcP.esm.js +166 -0
- package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
- package/dist/workflow.d.ts +234 -45
- package/dist/workflow.esm.js +194 -80
- 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 +22 -5
- 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/cpf-uAZTPUBy.esm.js +0 -61
- package/dist/deepsightLoader-sH7920zw.esm.js +0 -55
- package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
- package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
- package/dist/index-DpTj5PFb.d.ts +0 -1
- package/dist/types-BvLo3U4u.d.ts +0 -134
- package/dist/types-zOgZqMni.d.ts +0 -6
- package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
- /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { r as getWasmStatus } from "./warmup-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
1
|
+
import { r as getWasmStatus } from "./warmup-BZOMg303.esm.js";
|
|
2
|
+
import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
|
|
3
|
+
import { r as getToken, t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
4
|
+
import { a as initializeSession, f as whenSessionFingerprintSettled, i as getSessionFingerprintResult, p as getStandaloneFlowPolicy, t as endDeviceHashWait } from "./sessionInitializer-CUCBGZ_s.esm.js";
|
|
5
|
+
import { E as updateFeatureManagementUser } from "./feature-management-SIBmKJs8.esm.js";
|
|
6
|
+
import { i as toIncodeApiError } from "./apiError-CtArBUt-.esm.js";
|
|
7
|
+
import "./session-Bk2K8TEv.esm.js";
|
|
8
|
+
import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
9
|
+
import { a as prefetchStartInfo } from "./phoneServices-CFXcwCFr.esm.js";
|
|
8
10
|
//#region src/modules/flow/dashboardConfig.ts
|
|
9
11
|
function isPlainObject(value) {
|
|
10
12
|
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
@@ -21,174 +23,31 @@ function mergeDashboardConfig(dashboardConfig, localConfig) {
|
|
|
21
23
|
}
|
|
22
24
|
return result;
|
|
23
25
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const SUPPORTED_COUNTRIES = [
|
|
31
|
-
"BR",
|
|
32
|
-
"CN",
|
|
33
|
-
"FR",
|
|
34
|
-
"DE",
|
|
35
|
-
"IL",
|
|
36
|
-
"IT",
|
|
37
|
-
"MX",
|
|
38
|
-
"ES",
|
|
39
|
-
"GB",
|
|
40
|
-
"US"
|
|
41
|
-
];
|
|
42
|
-
/**
|
|
43
|
-
* Additional countries available only in dev/staging environments.
|
|
44
|
-
*/
|
|
45
|
-
const DEV_ONLY_COUNTRIES = [
|
|
46
|
-
"CM",
|
|
47
|
-
"KE",
|
|
48
|
-
"NG"
|
|
49
|
-
];
|
|
50
|
-
/**
|
|
51
|
-
* Union of all recognized country codes (prod + dev).
|
|
52
|
-
*/
|
|
53
|
-
const ALL_COUNTRIES = [...SUPPORTED_COUNTRIES, ...DEV_ONLY_COUNTRIES];
|
|
54
|
-
const ALL_COUNTRIES_SET = new Set(ALL_COUNTRIES);
|
|
55
|
-
function isSupportedCountry(code) {
|
|
56
|
-
return ALL_COUNTRIES_SET.has(code);
|
|
57
|
-
}
|
|
58
|
-
const FIELD_ORDER = [
|
|
59
|
-
"name-user_input",
|
|
60
|
-
"taxId-user_input",
|
|
61
|
-
"street-user_input",
|
|
62
|
-
"houseNo-user_input",
|
|
63
|
-
"address2-user_input",
|
|
64
|
-
"city-user_input",
|
|
65
|
-
"state-user_input",
|
|
66
|
-
"postalCode-user_input"
|
|
67
|
-
];
|
|
68
|
-
const FIELD_NAME_MAPPING = {
|
|
69
|
-
"name-user_input": "businessName",
|
|
70
|
-
"street-user_input": "street",
|
|
71
|
-
"houseNo-user_input": "houseNo",
|
|
72
|
-
"address2-user_input": "addressLine2",
|
|
73
|
-
"city-user_input": "city",
|
|
74
|
-
"state-user_input": "state",
|
|
75
|
-
"postalCode-user_input": "postalCode",
|
|
76
|
-
"taxId-user_input": "taxId"
|
|
77
|
-
};
|
|
78
|
-
const COUNTRIES_WITH_CNPJ_VALIDATION = ["BR"];
|
|
79
|
-
const BUSINESS_NAME_OPTIONAL_COUNTRIES = [];
|
|
80
|
-
const ADDRESS_FULLY_OPTIONAL_COUNTRIES = [
|
|
81
|
-
"BR",
|
|
82
|
-
"GB",
|
|
83
|
-
"FR"
|
|
84
|
-
];
|
|
85
|
-
const ADDRESS_FIELDS = [
|
|
86
|
-
"street",
|
|
87
|
-
"houseNo",
|
|
88
|
-
"addressLine2",
|
|
89
|
-
"city",
|
|
90
|
-
"state",
|
|
91
|
-
"postalCode"
|
|
92
|
-
];
|
|
93
|
-
const ALL_COUNTRIES_OPTIONAL_FIELDS = ["ubo"];
|
|
94
|
-
const UBO_FIELD_LABELS = {
|
|
95
|
-
name: "ekyb.uboName",
|
|
96
|
-
surname: "ekyb.uboSurname"
|
|
97
|
-
};
|
|
98
|
-
const INVALID_CNPJ_PATTERNS = [
|
|
99
|
-
"00000000000000",
|
|
100
|
-
"11111111111111",
|
|
101
|
-
"22222222222222",
|
|
102
|
-
"33333333333333",
|
|
103
|
-
"44444444444444",
|
|
104
|
-
"55555555555555",
|
|
105
|
-
"66666666666666",
|
|
106
|
-
"77777777777777",
|
|
107
|
-
"88888888888888",
|
|
108
|
-
"99999999999999"
|
|
109
|
-
];
|
|
110
|
-
const CNPJ_FIRST_DIGIT_FACTORS = [
|
|
111
|
-
5,
|
|
112
|
-
4,
|
|
113
|
-
3,
|
|
114
|
-
2,
|
|
115
|
-
9,
|
|
116
|
-
8,
|
|
117
|
-
7,
|
|
118
|
-
6,
|
|
119
|
-
5,
|
|
120
|
-
4,
|
|
121
|
-
3,
|
|
122
|
-
2
|
|
123
|
-
];
|
|
124
|
-
const CNPJ_SECOND_DIGIT_FACTORS = [
|
|
125
|
-
6,
|
|
126
|
-
5,
|
|
127
|
-
4,
|
|
128
|
-
3,
|
|
129
|
-
2,
|
|
130
|
-
9,
|
|
131
|
-
8,
|
|
132
|
-
7,
|
|
133
|
-
6,
|
|
134
|
-
5,
|
|
135
|
-
4,
|
|
136
|
-
3,
|
|
137
|
-
2
|
|
138
|
-
];
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region src/modules/ekyb/ekybUtils.ts
|
|
26
|
+
const SDK_ONLY_FIELDS = { AUTHENTICATION: ["identityReuseOutcomes"] };
|
|
27
|
+
function withoutSdkOnlyFields(key, override) {
|
|
28
|
+
const fields = key in SDK_ONLY_FIELDS ? SDK_ONLY_FIELDS[key] : void 0;
|
|
29
|
+
if (!fields || !isPlainObject(override)) return override;
|
|
30
|
+
return Object.fromEntries(Object.entries(override).filter(([field]) => !fields.includes(field)));
|
|
31
|
+
}
|
|
141
32
|
/**
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* - A manager-ready `EkybConfig` (with `flowId` or `verificationFields`) →
|
|
146
|
-
* returned unchanged.
|
|
147
|
-
* - A raw backend `EkybFlowConfig` (with `*Source` companions) → stripped to
|
|
148
|
-
* the four `check*` fields the manager consumes.
|
|
149
|
-
*
|
|
150
|
-
* Idempotent: `toEkybConfig(toEkybConfig(x))` equals `toEkybConfig(x)`.
|
|
33
|
+
* Merges `modulesConfig` over the dashboard config of each matching module.
|
|
34
|
+
* Runs on the normalized flow, so the keys are the step keys (`TUTORIAL_ID`
|
|
35
|
+
* is already `ID`).
|
|
151
36
|
*/
|
|
152
|
-
function
|
|
153
|
-
if (
|
|
37
|
+
function applyModulesConfig(flow, modulesConfig) {
|
|
38
|
+
if (!modulesConfig) return flow;
|
|
154
39
|
return {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
40
|
+
...flow,
|
|
41
|
+
flowModules: flow.flowModules.map((module) => {
|
|
42
|
+
const override = module.key === "TUTORIAL_ID" ? void 0 : withoutSdkOnlyFields(module.key, modulesConfig[module.key]);
|
|
43
|
+
if (!override) return module;
|
|
44
|
+
return {
|
|
45
|
+
...module,
|
|
46
|
+
configuration: mergeDashboardConfig(module.configuration, override)
|
|
47
|
+
};
|
|
48
|
+
})
|
|
159
49
|
};
|
|
160
50
|
}
|
|
161
|
-
/** Sorts modules based on a custom order; items not in order maintain relative position */
|
|
162
|
-
function sortModulesByOrder(modules, customOrder) {
|
|
163
|
-
return [...modules].sort((a, b) => {
|
|
164
|
-
const indexA = customOrder.indexOf(a);
|
|
165
|
-
const indexB = customOrder.indexOf(b);
|
|
166
|
-
if (indexA !== -1 && indexB !== -1) return indexA - indexB;
|
|
167
|
-
if (indexA !== -1) return -1;
|
|
168
|
-
if (indexB !== -1) return 1;
|
|
169
|
-
return 0;
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
/** Determines if a field is optional for the given country */
|
|
173
|
-
function isFieldOptional(fieldName, countryCode) {
|
|
174
|
-
if (ALL_COUNTRIES_OPTIONAL_FIELDS.includes(fieldName)) return true;
|
|
175
|
-
if (fieldName === "businessName") return BUSINESS_NAME_OPTIONAL_COUNTRIES.includes(countryCode);
|
|
176
|
-
if (fieldName === "addressLine2") return true;
|
|
177
|
-
if (ADDRESS_FIELDS.includes(fieldName)) return false;
|
|
178
|
-
if (fieldName === "taxId") return false;
|
|
179
|
-
return false;
|
|
180
|
-
}
|
|
181
|
-
/** Checks if at least one address field has a non-empty value */
|
|
182
|
-
function hasAtLeastOneAddressField(formData) {
|
|
183
|
-
return ADDRESS_FIELDS.some((field) => {
|
|
184
|
-
const value = formData[field];
|
|
185
|
-
return value !== void 0 && value.trim() !== "";
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
/** Returns false for countries where address is fully optional */
|
|
189
|
-
function requiresAddressValidation(countryCode) {
|
|
190
|
-
return !ADDRESS_FULLY_OPTIONAL_COUNTRIES.includes(countryCode);
|
|
191
|
-
}
|
|
192
51
|
//#endregion
|
|
193
52
|
//#region src/modules/video-selfie/videoSelfieSteps.ts
|
|
194
53
|
/** Steps that use the rear (environment) camera; everything else uses the front (user) camera. */
|
|
@@ -241,6 +100,139 @@ function videoSelfieWasmPipelines(config, steps = resolveVideoSelfieSteps(config
|
|
|
241
100
|
return pipelines;
|
|
242
101
|
}
|
|
243
102
|
//#endregion
|
|
103
|
+
//#region src/modules/flow/presets/identityReusePreset.ts
|
|
104
|
+
const SHARED = "identityShared";
|
|
105
|
+
const HINT_PROVIDED = "identitySearchHintProvided";
|
|
106
|
+
const OUTCOMES = "identityReuseOutcomes";
|
|
107
|
+
/** The modules that switch the preset on. Normalization reads them too. */
|
|
108
|
+
const IDENTITY_REUSE_TRIGGERS = ["IDENTITY_SEARCH", "IDENTITY_REUSE"];
|
|
109
|
+
/** The members in run order (design doc §2). Each path skips some of them. */
|
|
110
|
+
const MEMBERS = [
|
|
111
|
+
"AUTHENTICATION",
|
|
112
|
+
"IDENTITY_SEARCH",
|
|
113
|
+
"IDENTITY_REUSE",
|
|
114
|
+
"ID",
|
|
115
|
+
"SECOND_ID",
|
|
116
|
+
"ID_VALIDATION",
|
|
117
|
+
"FACE_MATCH"
|
|
118
|
+
];
|
|
119
|
+
/** Every member but SECOND_ID, which is optional and goes with ID. */
|
|
120
|
+
const REQUIRED = [
|
|
121
|
+
"AUTHENTICATION",
|
|
122
|
+
"IDENTITY_SEARCH",
|
|
123
|
+
"IDENTITY_REUSE",
|
|
124
|
+
"ID",
|
|
125
|
+
"ID_VALIDATION",
|
|
126
|
+
"FACE_MATCH"
|
|
127
|
+
];
|
|
128
|
+
/**
|
|
129
|
+
* Modules the preset can't run with. ID_OCR and NFC_SCAN need the ID capture,
|
|
130
|
+
* which P1 and P2 skip; they wait until their owners confirm how they behave
|
|
131
|
+
* (owner decision 15). SELFIE would be a second face capture: the 1:1
|
|
132
|
+
* authentication capture is the session's selfie.
|
|
133
|
+
*/
|
|
134
|
+
const UNSUPPORTED = [
|
|
135
|
+
"ID_OCR",
|
|
136
|
+
"NFC_SCAN",
|
|
137
|
+
"SELFIE"
|
|
138
|
+
];
|
|
139
|
+
const CONTACTS = ["EMAIL", "PHONE"];
|
|
140
|
+
/**
|
|
141
|
+
* Face authentication that runs on the device can't decide the path: the
|
|
142
|
+
* backend's verdict never reaches the module, so it always completes, and the
|
|
143
|
+
* preset would treat every person as a customer here (P1) and never fail a
|
|
144
|
+
* spoof.
|
|
145
|
+
*/
|
|
146
|
+
const ON_DEVICE_AUTHENTICATION = "AUTHENTICATION with on-device face results";
|
|
147
|
+
function isOnDeviceAuthentication(module) {
|
|
148
|
+
return module.key === "AUTHENTICATION" && module.configuration.onDeviceFaceResultsSubmissionEnabled === true;
|
|
149
|
+
}
|
|
150
|
+
const CONTACT_BEFORE_GROUP = "EMAIL or PHONE, before the group";
|
|
151
|
+
/** How the load error names a missing ID_VALIDATION, a step the SDK derives. */
|
|
152
|
+
const ID_VALIDATION_LABEL = "ID_VALIDATION (ID Validation after TUTORIAL_ID)";
|
|
153
|
+
/** Authentication's endings that mean the person is new to this organization. */
|
|
154
|
+
const NEW_HERE = ["NONEXISTENT_CUSTOMER", "HINT_NOT_PROVIDED"];
|
|
155
|
+
/**
|
|
156
|
+
* The outcomes of each decision (design doc §6.3), by the name analytics
|
|
157
|
+
* reports, with what still runs on each. `decide` returns one of the names.
|
|
158
|
+
*/
|
|
159
|
+
const AFTER_AUTHENTICATION = {
|
|
160
|
+
existingCustomer: [],
|
|
161
|
+
newCustomer: [
|
|
162
|
+
"IDENTITY_SEARCH",
|
|
163
|
+
"IDENTITY_REUSE",
|
|
164
|
+
"ID",
|
|
165
|
+
"ID_VALIDATION",
|
|
166
|
+
"FACE_MATCH"
|
|
167
|
+
]
|
|
168
|
+
};
|
|
169
|
+
const AFTER_REUSE = {
|
|
170
|
+
documentShared: ["ID_VALIDATION", "FACE_MATCH"],
|
|
171
|
+
fullOnboarding: ["ID", "FACE_MATCH"]
|
|
172
|
+
};
|
|
173
|
+
function isRecord(value) {
|
|
174
|
+
return typeof value === "object" && value !== null;
|
|
175
|
+
}
|
|
176
|
+
function isMember(key) {
|
|
177
|
+
return MEMBERS.includes(key);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* `IDENTITY_REUSE@1`: the identity reuse path in a Flow (design doc §2). The
|
|
181
|
+
* 1:1 face authentication decides first: a person who already has an identity
|
|
182
|
+
* in this organization leaves the group (P1), and a new one goes on to the
|
|
183
|
+
* search and the reuse picker. The reuse step then decides between validating
|
|
184
|
+
* the shared document (P2) and the ID capture (P3); the face match runs after
|
|
185
|
+
* either. An ending
|
|
186
|
+
* the table doesn't name takes the "otherwise" row: P1 after authentication,
|
|
187
|
+
* P3 after reuse. The backend's final rule judges the session either way.
|
|
188
|
+
*/
|
|
189
|
+
const identityReusePreset = {
|
|
190
|
+
name: "IDENTITY_REUSE@1",
|
|
191
|
+
triggers: IDENTITY_REUSE_TRIGGERS,
|
|
192
|
+
members: MEMBERS,
|
|
193
|
+
companions: { SECOND_ID: "ID" },
|
|
194
|
+
misconfiguredErrorCode: "IDENTITY_REUSE_FLOW_MISCONFIGURED",
|
|
195
|
+
title: "Identity reuse",
|
|
196
|
+
analyticsModule: eventModuleNames.identityReusePath,
|
|
197
|
+
prepare(modules, flow) {
|
|
198
|
+
const groupStart = modules.findIndex((module) => isMember(module.key));
|
|
199
|
+
const dropsContacts = flow[HINT_PROVIDED] === true;
|
|
200
|
+
return modules.flatMap((module, index) => {
|
|
201
|
+
if (dropsContacts && index < groupStart && CONTACTS.includes(module.key)) return [];
|
|
202
|
+
if (module.key === "AUTHENTICATION") return [{
|
|
203
|
+
...module,
|
|
204
|
+
configuration: {
|
|
205
|
+
...module.configuration,
|
|
206
|
+
[OUTCOMES]: true
|
|
207
|
+
}
|
|
208
|
+
}];
|
|
209
|
+
return [module];
|
|
210
|
+
});
|
|
211
|
+
},
|
|
212
|
+
check(modules, flow) {
|
|
213
|
+
const keys = modules.map((module) => module.key);
|
|
214
|
+
const missing = REQUIRED.filter((key) => !keys.includes(key)).map((key) => key === "ID_VALIDATION" ? ID_VALIDATION_LABEL : key);
|
|
215
|
+
if (flow[HINT_PROVIDED] !== true) {
|
|
216
|
+
const groupStart = keys.findIndex(isMember);
|
|
217
|
+
if (!(groupStart === -1 ? [] : keys.slice(0, groupStart)).some((key) => CONTACTS.includes(key))) missing.push(CONTACT_BEFORE_GROUP);
|
|
218
|
+
}
|
|
219
|
+
const unsupported = UNSUPPORTED.filter((key) => keys.includes(key));
|
|
220
|
+
if (modules.some(isOnDeviceAuthentication)) unsupported.push(ON_DEVICE_AUTHENTICATION);
|
|
221
|
+
return {
|
|
222
|
+
missing,
|
|
223
|
+
unsupported
|
|
224
|
+
};
|
|
225
|
+
},
|
|
226
|
+
decide(step, { output, moduleErrorCode }) {
|
|
227
|
+
if (step === "AUTHENTICATION") return moduleErrorCode !== void 0 && NEW_HERE.includes(moduleErrorCode) ? "newCustomer" : "existingCustomer";
|
|
228
|
+
if (step === "IDENTITY_REUSE") return isRecord(output) && output[SHARED] === true ? "documentShared" : "fullOnboarding";
|
|
229
|
+
},
|
|
230
|
+
outcomes: {
|
|
231
|
+
AUTHENTICATION: AFTER_AUTHENTICATION,
|
|
232
|
+
IDENTITY_REUSE: AFTER_REUSE
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
//#endregion
|
|
244
236
|
//#region src/modules/flow/flowUtils.ts
|
|
245
237
|
function enrichFlowModuleConfig(module, flow) {
|
|
246
238
|
const config = {
|
|
@@ -253,17 +245,32 @@ function enrichFlowModuleConfig(module, flow) {
|
|
|
253
245
|
};
|
|
254
246
|
return config;
|
|
255
247
|
}
|
|
248
|
+
let configConverters;
|
|
249
|
+
/**
|
|
250
|
+
* Loads the eKYC/eKYB config converters (the form-definitions catalog index)
|
|
251
|
+
* for a flow that has those steps, so other flows do not download them. The
|
|
252
|
+
* flow machine awaits it with the flow, before it reads any step config.
|
|
253
|
+
*/
|
|
254
|
+
async function loadFlowConfigConverters(flow) {
|
|
255
|
+
const needed = flow.flowModules.some((module) => module.key === "EXTERNAL_VERIFICATION" || module.key === "EKYB");
|
|
256
|
+
if (configConverters || !needed) return;
|
|
257
|
+
const [ekyc, ekyb] = await Promise.all([import("./ekycUtils-FcqA6oU4.esm.js").then((n) => n.n), import("./ekybUtils-Cw8Ta9Qi.esm.js").then((n) => n.t)]);
|
|
258
|
+
configConverters = {
|
|
259
|
+
toEkycConfig: ekyc.toEkycConfig,
|
|
260
|
+
toEkybConfig: ekyb.toEkybConfig
|
|
261
|
+
};
|
|
262
|
+
}
|
|
256
263
|
function resolveFlowModuleConfig(module, flow) {
|
|
257
264
|
const config = enrichFlowModuleConfig(module, flow);
|
|
258
|
-
if (module.key === "EXTERNAL_VERIFICATION") return { ...toEkycConfig(module.configuration) };
|
|
259
|
-
if (module.key === "EKYB") return { ...toEkybConfig(module.configuration) };
|
|
265
|
+
if (module.key === "EXTERNAL_VERIFICATION") return { ...configConverters?.toEkycConfig(module.configuration) ?? module.configuration };
|
|
266
|
+
if (module.key === "EKYB") return { ...configConverters?.toEkybConfig(module.configuration) ?? module.configuration };
|
|
260
267
|
if (module.key === "FACE_MATCH" && (config.matchingType === void 0 || config.matchingType === "selfieVsId") && flow.flowModules.some((candidate) => candidate.key === "SECOND_ID")) return {
|
|
261
268
|
...config,
|
|
262
269
|
matchingType: "secondId"
|
|
263
270
|
};
|
|
264
271
|
if (module.key === "ID_OCR") return {
|
|
265
272
|
...config,
|
|
266
|
-
secondId: config.secondId ?? flow.flowModules.some((candidate) => candidate.key === "SECOND_ID"),
|
|
273
|
+
secondId: config.ocrDocument === void 0 && (config.secondId ?? flow.flowModules.some((candidate) => candidate.key === "SECOND_ID")),
|
|
267
274
|
flowId: flow.flowId
|
|
268
275
|
};
|
|
269
276
|
if (module.key === "SECOND_ID") return {
|
|
@@ -359,10 +366,16 @@ function getRequiredWasmPipelines(flow) {
|
|
|
359
366
|
function getNextRequiredWasmPipelines(state, loadedPipelines = getWasmStatus().loadedPipelines) {
|
|
360
367
|
const { flow, currentStepIndex, homeScreen } = state;
|
|
361
368
|
if (currentStepIndex < 0) return [];
|
|
369
|
+
const mayBeSkipped = stepsTheCurrentDecisionMaySkip({
|
|
370
|
+
armedPresets: triggeredFlowPresets(flow.flowModules),
|
|
371
|
+
steps: flow.flowModules.map((module) => module.key),
|
|
372
|
+
currentStepIndex
|
|
373
|
+
});
|
|
362
374
|
let currentPipelines = [];
|
|
363
375
|
for (let index = currentStepIndex; index < flow.flowModules.length; index++) {
|
|
364
376
|
const module = flow.flowModules[index];
|
|
365
377
|
if (module.key === "REDIRECT_TO_MOBILE") return [];
|
|
378
|
+
if (mayBeSkipped.has(index)) return [];
|
|
366
379
|
const required = getRequiredWasmPipelines({
|
|
367
380
|
...flow,
|
|
368
381
|
flowModules: [module]
|
|
@@ -382,7 +395,8 @@ function getNextRequiredWasmPipelines(state, loadedPipelines = getWasmStatus().l
|
|
|
382
395
|
* - TUTORIAL_ID becomes ID (with same config)
|
|
383
396
|
* - If secondId: true, adds SECOND_ID module with isSecondId: true
|
|
384
397
|
* - thirdId is deprecated and ignored; the flow continues to the next step
|
|
385
|
-
* - Bare ID following TUTORIAL_ID is dropped (already merged)
|
|
398
|
+
* - Bare ID following TUTORIAL_ID is dropped (already merged), except in a
|
|
399
|
+
* flow with identity reuse, where it becomes an ID_VALIDATION step
|
|
386
400
|
*/
|
|
387
401
|
function normalizeFlowModules(flow, options = {}) {
|
|
388
402
|
let modules = normalizeIdModules(flow.flowModules);
|
|
@@ -412,7 +426,13 @@ function dropSelfieIfVideoSelfieUsesAsSelfie(modules) {
|
|
|
412
426
|
if (!modules.some((m) => m.key === "VIDEO_ONBOARDING" && m.configuration.useAsSelfie === true)) return modules;
|
|
413
427
|
return modules.filter((m) => m.key !== "SELFIE");
|
|
414
428
|
}
|
|
429
|
+
/**
|
|
430
|
+
* @internal Expands TUTORIAL_ID and handles the bare ID after it (see
|
|
431
|
+
* {@link normalizeFlowModules}). A flow it already ran on comes back
|
|
432
|
+
* unchanged.
|
|
433
|
+
*/
|
|
415
434
|
function normalizeIdModules(modules) {
|
|
435
|
+
const keepsIdValidation = modules.some((module) => IDENTITY_REUSE_TRIGGERS.includes(module.key));
|
|
416
436
|
return modules.flatMap((module, idx, arr) => {
|
|
417
437
|
if (module.key === "TUTORIAL_ID") {
|
|
418
438
|
const idConfig = module.configuration;
|
|
@@ -430,7 +450,13 @@ function normalizeIdModules(modules) {
|
|
|
430
450
|
return result;
|
|
431
451
|
}
|
|
432
452
|
const prev = arr[idx - 1];
|
|
433
|
-
if (module.key === "ID" && prev?.key === "TUTORIAL_ID")
|
|
453
|
+
if (module.key === "ID" && prev?.key === "TUTORIAL_ID") {
|
|
454
|
+
if (!keepsIdValidation) return [];
|
|
455
|
+
return [{
|
|
456
|
+
key: "ID_VALIDATION",
|
|
457
|
+
configuration: module.configuration
|
|
458
|
+
}];
|
|
459
|
+
}
|
|
434
460
|
return [module];
|
|
435
461
|
});
|
|
436
462
|
}
|
|
@@ -467,6 +493,208 @@ function hasModule(modules, key) {
|
|
|
467
493
|
return modules.some((module) => module.key === key);
|
|
468
494
|
}
|
|
469
495
|
//#endregion
|
|
496
|
+
//#region src/modules/flow/presets/flowPresets.ts
|
|
497
|
+
/** Every preset, in the order they arm and decide. The one registry. */
|
|
498
|
+
const FLOW_PRESETS = [identityReusePreset];
|
|
499
|
+
function isTriggered(modules, preset) {
|
|
500
|
+
return modules.some((module) => preset.triggers.includes(module.key));
|
|
501
|
+
}
|
|
502
|
+
/** Runs the preset's `prepare`, then lays its group out. */
|
|
503
|
+
function prepareAndLayOut(modules, flow, preset) {
|
|
504
|
+
return layOut(preset.prepare?.(modules, flow) ?? modules, preset);
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* Takes the preset's members out of the list and puts them back in run order,
|
|
508
|
+
* at the position of the earliest one. Every other module keeps its served
|
|
509
|
+
* order, so modules that sat between two members now run after the group.
|
|
510
|
+
*/
|
|
511
|
+
function layOut(modules, preset) {
|
|
512
|
+
const rank = (module) => preset.members.indexOf(module.key);
|
|
513
|
+
const start = modules.findIndex((module) => rank(module) !== -1);
|
|
514
|
+
if (start === -1) return modules;
|
|
515
|
+
const rest = modules.slice(start);
|
|
516
|
+
const group = rest.filter((module) => rank(module) !== -1).sort((a, b) => rank(a) - rank(b));
|
|
517
|
+
const others = rest.filter((module) => rank(module) === -1);
|
|
518
|
+
return [
|
|
519
|
+
...modules.slice(0, start),
|
|
520
|
+
...group,
|
|
521
|
+
...others
|
|
522
|
+
];
|
|
523
|
+
}
|
|
524
|
+
function describeMisconfiguredPreset(preset, problems) {
|
|
525
|
+
const parts = [
|
|
526
|
+
problems.missing.length > 0 && `missing: ${problems.missing.join(", ")}`,
|
|
527
|
+
problems.unsupported.length > 0 && `not supported: ${problems.unsupported.join(", ")}`,
|
|
528
|
+
problems.unregistered.length > 0 && `no registered module for: ${problems.unregistered.join(", ")}`
|
|
529
|
+
].filter((part) => typeof part === "string");
|
|
530
|
+
return `${preset.title} flow is misconfigured — ${parts.join("; ")}`;
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Arms the presets the served flow switches on, once, at load. For each one it
|
|
534
|
+
* runs the preset's `prepare`, lays the group out in run order, then checks
|
|
535
|
+
* the laid-out list: the modules the preset needs, the ones it doesn't
|
|
536
|
+
* support, and a registered machine for every member present. A flow that
|
|
537
|
+
* fails the check can't run.
|
|
538
|
+
*
|
|
539
|
+
* A flow that switches no preset on comes back as it was: the same array, and
|
|
540
|
+
* no armed preset.
|
|
541
|
+
*
|
|
542
|
+
* @param canResolve - Whether a machine is registered for a module key. It is
|
|
543
|
+
* read when arming runs, after `getFlow`, because `<incode-flow>` fills its
|
|
544
|
+
* lazy registry inside `getFlow`.
|
|
545
|
+
*/
|
|
546
|
+
function armFlowPresets(flow, canResolve) {
|
|
547
|
+
let laidOut = flow.flowModules ?? [];
|
|
548
|
+
const armedPresets = [];
|
|
549
|
+
for (const preset of FLOW_PRESETS) {
|
|
550
|
+
if (!isTriggered(laidOut, preset)) continue;
|
|
551
|
+
laidOut = prepareAndLayOut(laidOut, flow, preset);
|
|
552
|
+
const { missing, unsupported } = preset.check(laidOut, flow);
|
|
553
|
+
const unregistered = [...new Set(laidOut.map((module) => module.key).filter((key) => preset.members.includes(key) && !canResolve(key)))];
|
|
554
|
+
if (missing.length + unsupported.length + unregistered.length > 0) {
|
|
555
|
+
const problems = {
|
|
556
|
+
missing,
|
|
557
|
+
unsupported,
|
|
558
|
+
unregistered
|
|
559
|
+
};
|
|
560
|
+
return {
|
|
561
|
+
status: "misconfigured",
|
|
562
|
+
preset: preset.name,
|
|
563
|
+
moduleErrorCode: preset.misconfiguredErrorCode,
|
|
564
|
+
message: describeMisconfiguredPreset(preset, problems),
|
|
565
|
+
...problems
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
armedPresets.push(preset.name);
|
|
569
|
+
}
|
|
570
|
+
return {
|
|
571
|
+
status: "armed",
|
|
572
|
+
modules: laidOut,
|
|
573
|
+
armedPresets
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* The indexes after `currentStepIndex` of the preset's members that are not in
|
|
578
|
+
* `stillRuns`. The safety rule lives here: only indexes after the current one,
|
|
579
|
+
* and only the preset's own members.
|
|
580
|
+
*/
|
|
581
|
+
function skippedMembers(preset, steps, currentStepIndex, stillRuns) {
|
|
582
|
+
const skipped = [];
|
|
583
|
+
for (let index = currentStepIndex + 1; index < steps.length; index++) {
|
|
584
|
+
const key = steps[index];
|
|
585
|
+
if (!preset.members.includes(key)) continue;
|
|
586
|
+
if (!stillRuns.includes(preset.companions[key] ?? key)) skipped.push(index);
|
|
587
|
+
}
|
|
588
|
+
return skipped;
|
|
589
|
+
}
|
|
590
|
+
/** The analytics module of a preset, by name. */
|
|
591
|
+
function flowPresetAnalyticsModule(name) {
|
|
592
|
+
return FLOW_PRESETS.find((candidate) => candidate.name === name)?.analyticsModule ?? name;
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* The decision of each armed preset whose decision step this is: the outcome
|
|
596
|
+
* it took, given how the step ended, and the members that outcome skips.
|
|
597
|
+
* Empty when no preset decides at this step.
|
|
598
|
+
*/
|
|
599
|
+
function decideFlowPresets({ armedPresets, steps, currentStepIndex, ending }) {
|
|
600
|
+
const step = steps[currentStepIndex];
|
|
601
|
+
if (step === void 0) return [];
|
|
602
|
+
const decisions = [];
|
|
603
|
+
for (const preset of FLOW_PRESETS) {
|
|
604
|
+
if (!armedPresets.includes(preset.name)) continue;
|
|
605
|
+
const outcome = preset.decide(step, ending);
|
|
606
|
+
if (outcome === void 0) continue;
|
|
607
|
+
const stillRuns = preset.outcomes[step]?.[outcome];
|
|
608
|
+
if (!stillRuns) continue;
|
|
609
|
+
decisions.push({
|
|
610
|
+
preset: preset.name,
|
|
611
|
+
analyticsModule: preset.analyticsModule,
|
|
612
|
+
outcome,
|
|
613
|
+
skipped: skippedMembers(preset, steps, currentStepIndex, stillRuns)
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
return decisions;
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* The indexes of the steps to remove after the step at `currentStepIndex`
|
|
620
|
+
* ended as `ending` says. Each armed preset whose decision step this is says
|
|
621
|
+
* which of its members still run; the others go.
|
|
622
|
+
*
|
|
623
|
+
* A preset never inserts, reorders, touches another module or finishes the
|
|
624
|
+
* flow, and nothing is removed when no preset armed or the step decides
|
|
625
|
+
* nothing.
|
|
626
|
+
*/
|
|
627
|
+
function applyFlowPresets(position) {
|
|
628
|
+
return [...new Set(decideFlowPresets(position).flatMap(({ skipped }) => skipped))];
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* The steps that can run right after the step at `currentStepIndex`, in list
|
|
632
|
+
* order, so they can load while it runs. That is the next step, unless an
|
|
633
|
+
* armed preset decides at this step: then it is the step that runs next on
|
|
634
|
+
* each of the preset's paths. While face authentication runs, for example,
|
|
635
|
+
* that is IDENTITY_SEARCH and the first module after the group.
|
|
636
|
+
*/
|
|
637
|
+
function stepsThatMayRunNext({ armedPresets, steps, currentStepIndex }) {
|
|
638
|
+
const step = steps[currentStepIndex];
|
|
639
|
+
if (step === void 0) return [];
|
|
640
|
+
const next = /* @__PURE__ */ new Set();
|
|
641
|
+
let decides = false;
|
|
642
|
+
for (const preset of FLOW_PRESETS) {
|
|
643
|
+
if (!armedPresets.includes(preset.name)) continue;
|
|
644
|
+
const outcomes = preset.outcomes[step];
|
|
645
|
+
if (!outcomes) continue;
|
|
646
|
+
decides = true;
|
|
647
|
+
for (const stillRuns of Object.values(outcomes)) {
|
|
648
|
+
const skipped = new Set(skippedMembers(preset, steps, currentStepIndex, stillRuns));
|
|
649
|
+
for (let index = currentStepIndex + 1; index < steps.length; index++) if (!skipped.has(index)) {
|
|
650
|
+
next.add(index);
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
if (!decides && currentStepIndex + 1 < steps.length) next.add(currentStepIndex + 1);
|
|
656
|
+
return [...next].sort((a, b) => a - b).map((index) => steps[index]);
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* The presets a flow switches on. In a loaded flow these are the armed ones,
|
|
660
|
+
* because a flow that fails a preset's check never leaves loading.
|
|
661
|
+
*/
|
|
662
|
+
function triggeredFlowPresets(modules) {
|
|
663
|
+
return FLOW_PRESETS.filter((preset) => isTriggered(modules, preset)).map((preset) => preset.name);
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* The indexes after `currentStepIndex` that an armed preset deciding at the
|
|
667
|
+
* current step skips on at least one of its paths. Empty when the current
|
|
668
|
+
* step decides nothing. While face authentication runs, for example, that is
|
|
669
|
+
* every other member of the identity group, because a recognized person
|
|
670
|
+
* leaves the group.
|
|
671
|
+
*/
|
|
672
|
+
function stepsTheCurrentDecisionMaySkip({ armedPresets, steps, currentStepIndex }) {
|
|
673
|
+
const skipped = /* @__PURE__ */ new Set();
|
|
674
|
+
const step = steps[currentStepIndex];
|
|
675
|
+
if (step === void 0) return skipped;
|
|
676
|
+
for (const preset of FLOW_PRESETS) {
|
|
677
|
+
if (!armedPresets.includes(preset.name)) continue;
|
|
678
|
+
for (const stillRuns of Object.values(preset.outcomes[step] ?? {})) for (const index of skippedMembers(preset, steps, currentStepIndex, stillRuns)) skipped.add(index);
|
|
679
|
+
}
|
|
680
|
+
return skipped;
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* The key of the first module a flow runs once the presets it switches on
|
|
684
|
+
* have prepared it and laid it out, for preloading before the flow loads. It
|
|
685
|
+
* doesn't run the presets' checks, so it also answers for a raw dashboard
|
|
686
|
+
* flow or one that will fail to load. With the identity search hint from
|
|
687
|
+
* session start, for example, that is the module after the dropped contact
|
|
688
|
+
* steps.
|
|
689
|
+
*/
|
|
690
|
+
function getFirstFlowModuleKey(flow) {
|
|
691
|
+
const served = flow.flowModules ?? [];
|
|
692
|
+
if (!FLOW_PRESETS.some((preset) => isTriggered(served, preset))) return served[0]?.key;
|
|
693
|
+
let modules = normalizeIdModules(served);
|
|
694
|
+
for (const preset of FLOW_PRESETS) if (isTriggered(modules, preset)) modules = prepareAndLayOut(modules, flow, preset);
|
|
695
|
+
return modules[0]?.key;
|
|
696
|
+
}
|
|
697
|
+
//#endregion
|
|
470
698
|
//#region src/modules/flow/flowServices.ts
|
|
471
699
|
let dashboardFlowCache;
|
|
472
700
|
var FlowSessionFinishedError = class extends Error {
|
|
@@ -505,8 +733,18 @@ function toRegulationType(value) {
|
|
|
505
733
|
const normalized = value.trim().toLowerCase().replace(/[\s-]+/g, "_");
|
|
506
734
|
return REGULATION_TYPE_ALIASES[normalized] ?? "Other";
|
|
507
735
|
}
|
|
736
|
+
/**
|
|
737
|
+
* The consent decision rides on the device-fingerprint response. A flow that
|
|
738
|
+
* never checks for consent doesn't read that response, so its first module
|
|
739
|
+
* doesn't wait for the post, and the post keeps waiting for the device hash in
|
|
740
|
+
* the background. A flow that checks waits for the post, so the post stops
|
|
741
|
+
* waiting for the hash (`endDeviceHashWait`).
|
|
742
|
+
*/
|
|
743
|
+
function readsFingerprintResult(flow) {
|
|
744
|
+
return flow.mandatoryConsentCheck !== false;
|
|
745
|
+
}
|
|
508
746
|
function prependMandatoryConsent(flow) {
|
|
509
|
-
if (flow
|
|
747
|
+
if (!readsFingerprintResult(flow)) return flow;
|
|
510
748
|
const fingerprintResult = getSessionFingerprintResult();
|
|
511
749
|
if (!fingerprintResult?.showMandatoryConsent) return flow;
|
|
512
750
|
if (flow.flowModules.find((module) => module.key === "MANDATORY_CONSENT")) return flow;
|
|
@@ -528,12 +766,19 @@ function prependMandatoryConsent(flow) {
|
|
|
528
766
|
* everything). Returns the same object when nothing is injected.
|
|
529
767
|
*/
|
|
530
768
|
async function completeDeferredActivation(flow, signal) {
|
|
531
|
-
|
|
769
|
+
const awaitFingerprint = readsFingerprintResult(flow);
|
|
770
|
+
if (awaitFingerprint) endDeviceHashWait();
|
|
771
|
+
await initializeSession({
|
|
772
|
+
signal,
|
|
773
|
+
awaitFingerprint
|
|
774
|
+
}).catch(() => void 0);
|
|
532
775
|
throwIfAborted(signal);
|
|
533
776
|
await updateFeatureManagementUser({ customIDs: { flow_id: flow.flowId } });
|
|
534
777
|
throwIfAborted(signal);
|
|
535
|
-
|
|
536
|
-
|
|
778
|
+
if (awaitFingerprint) {
|
|
779
|
+
await whenSessionFingerprintSettled();
|
|
780
|
+
throwIfAborted(signal);
|
|
781
|
+
}
|
|
537
782
|
const withConsent = prependMandatoryConsent(flow);
|
|
538
783
|
if (withConsent === flow) return flow;
|
|
539
784
|
const [consent, ...rest] = withConsent.flowModules;
|
|
@@ -609,6 +854,7 @@ function preloadDashboardFlow(signal) {
|
|
|
609
854
|
const token = requireActiveToken();
|
|
610
855
|
if (dashboardFlowCache?.token === token) return waitForSharedPromise(dashboardFlowCache.promise, signal);
|
|
611
856
|
const request = fetchRawDashboardFlow();
|
|
857
|
+
request.then(warmFirstModule, () => void 0);
|
|
612
858
|
const cache = {
|
|
613
859
|
token,
|
|
614
860
|
promise: request
|
|
@@ -628,12 +874,19 @@ async function normalizeDashboardFlow(rawFlow, options, signal) {
|
|
|
628
874
|
throwIfAborted(signal);
|
|
629
875
|
let flow = rawFlow;
|
|
630
876
|
if (options.deferActivation !== true) {
|
|
631
|
-
|
|
877
|
+
const awaitFingerprint = readsFingerprintResult(rawFlow);
|
|
878
|
+
if (awaitFingerprint) endDeviceHashWait();
|
|
879
|
+
await initializeSession({
|
|
880
|
+
signal,
|
|
881
|
+
awaitFingerprint
|
|
882
|
+
}).catch(() => void 0);
|
|
632
883
|
throwIfAborted(signal);
|
|
633
884
|
await updateFeatureManagementUser({ customIDs: { flow_id: rawFlow.flowId } });
|
|
634
885
|
throwIfAborted(signal);
|
|
635
|
-
|
|
636
|
-
|
|
886
|
+
if (awaitFingerprint) {
|
|
887
|
+
await whenSessionFingerprintSettled();
|
|
888
|
+
throwIfAborted(signal);
|
|
889
|
+
}
|
|
637
890
|
flow = prependMandatoryConsent(rawFlow);
|
|
638
891
|
}
|
|
639
892
|
const normalizedModules = normalizeFlowModules(flow, options);
|
|
@@ -643,6 +896,16 @@ async function normalizeDashboardFlow(rawFlow, options, signal) {
|
|
|
643
896
|
flowModules: normalizedModules
|
|
644
897
|
};
|
|
645
898
|
}
|
|
899
|
+
/**
|
|
900
|
+
* Starts what the first module requests before its first screen, while
|
|
901
|
+
* activation still runs, so that screen skips a second round trip.
|
|
902
|
+
*/
|
|
903
|
+
function warmFirstModule(flow) {
|
|
904
|
+
if (getFirstFlowModuleKey(flow) === "PHONE") {
|
|
905
|
+
loadPhoneValidation();
|
|
906
|
+
prefetchStartInfo();
|
|
907
|
+
}
|
|
908
|
+
}
|
|
646
909
|
const getFlow = async (signal, options = {}) => {
|
|
647
910
|
throwIfAborted(signal);
|
|
648
911
|
const rawFlowPromise = preloadDashboardFlow(signal);
|
|
@@ -680,9 +943,10 @@ async function resolveDashboardModuleConfig(options) {
|
|
|
680
943
|
const occurrence = options.occurrence ?? 0;
|
|
681
944
|
const module = flow.flowModules.filter((module) => moduleKeys.includes(module.key))[occurrence];
|
|
682
945
|
if (!module) throw new Error(`Module "${options.moduleKey}" is not enabled in the active Flow`);
|
|
946
|
+
await loadFlowConfigConverters(flow);
|
|
683
947
|
const flowConfig = resolveFlowModuleConfig(module, flow);
|
|
684
948
|
if (flowPolicy.mergeConfig) return mergeDashboardConfig(flowConfig, options.config);
|
|
685
949
|
return flowConfig;
|
|
686
950
|
}
|
|
687
951
|
//#endregion
|
|
688
|
-
export {
|
|
952
|
+
export { mergeDashboardConfig as S, resolveFlowModuleConfig as _, resolveDashboardModuleConfig as a, videoSelfieWasmPipelines as b, decideFlowPresets as c, stepsThatMayRunNext as d, enrichFlowModuleConfig as f, normalizeFlowModules as g, loadFlowConfigConverters as h, resetDashboardFlowCache as i, flowPresetAnalyticsModule as l, getRequiredWasmPipelines as m, getFlow as n, applyFlowPresets as o, getNextRequiredWasmPipelines as p, preloadDashboardFlow as r, armFlowPresets as s, completeDeferredActivation as t, getFirstFlowModuleKey as u, facingModeForStep as v, applyModulesConfig as x, resolveVideoSelfieSteps as y };
|