@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
package/dist/workflow.esm.js
CHANGED
|
@@ -1,45 +1,50 @@
|
|
|
1
|
-
import { n as eventModuleNames,
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import { n as eventModuleNames, v as addEvent } from "./types-DYYMdAGv.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
3
|
+
import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
|
|
4
|
+
import { u as trueSightLog } from "./trueSightService-BnQDjqUu.esm.js";
|
|
5
|
+
import { a as initializeSession, i as getSessionFingerprintResult } from "./sessionInitializer-CUCBGZ_s.esm.js";
|
|
6
|
+
import { E as updateFeatureManagementUser } from "./feature-management-SIBmKJs8.esm.js";
|
|
7
|
+
import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
|
|
8
|
+
import { i as toIncodeApiError } from "./apiError-CtArBUt-.esm.js";
|
|
9
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
10
|
+
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
11
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
12
|
+
import { r as electronicSignatureMachine } from "./electronicSignatureManager-BcE0XMrN.esm.js";
|
|
12
13
|
import "./ae-signature.esm.js";
|
|
13
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
14
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
15
|
-
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
16
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
17
|
-
import { t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
18
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
19
|
-
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
20
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
21
|
-
import {
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import {
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
29
|
-
import {
|
|
30
|
-
import { t as
|
|
31
|
-
import {
|
|
32
|
-
import { n as
|
|
33
|
-
import { t as
|
|
34
|
-
import { t as
|
|
35
|
-
import {
|
|
36
|
-
import { t as
|
|
37
|
-
import { t as
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
14
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-BJ6PmCsw.esm.js";
|
|
15
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DoK5RKIS.esm.js";
|
|
16
|
+
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-_EQcjGE3.esm.js";
|
|
17
|
+
import { t as consentMachine } from "./consentStateMachine-DgiIcT9q.esm.js";
|
|
18
|
+
import { t as curpValidationMachine } from "./curpValidationStateMachine-BQ8XK2Y3.esm.js";
|
|
19
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-r8nGhyo1.esm.js";
|
|
20
|
+
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-BYLb5Azk.esm.js";
|
|
21
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-CRq01QNK.esm.js";
|
|
22
|
+
import { o as toEkybConfig } from "./ekybUtils-Cw8Ta9Qi.esm.js";
|
|
23
|
+
import { t as ekybMachine } from "./ekybStateMachine-DZxg8T0H.esm.js";
|
|
24
|
+
import { t as ekycMachine } from "./ekycStateMachine-nwJRel2s.esm.js";
|
|
25
|
+
import { l as toEkycConfig } from "./ekycUtils-FcqA6oU4.esm.js";
|
|
26
|
+
import { t as ekycPrefillMachine } from "./ekycPrefillStateMachine-CuWTVze1.esm.js";
|
|
27
|
+
import { t as emailMachine } from "./emailStateMachine-CTEaYncs.esm.js";
|
|
28
|
+
import { t as selfieMachine } from "./selfieStateMachine-CKXAmNkA.esm.js";
|
|
29
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-BGMkWF9t.esm.js";
|
|
30
|
+
import { t as phoneMachine } from "./phoneStateMachine-DKdY2Scx.esm.js";
|
|
31
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-Cx-6QAvu.esm.js";
|
|
32
|
+
import { n as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-BMWm5mcP.esm.js";
|
|
33
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-CLFjPp13.esm.js";
|
|
34
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BjuI72HZ.esm.js";
|
|
35
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-B832arAl.esm.js";
|
|
36
|
+
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-CMjjUXSu.esm.js";
|
|
37
|
+
import { t as signatureMachine } from "./signatureStateMachine-CVPmvU2p.esm.js";
|
|
38
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-oPgI5FIQ.esm.js";
|
|
39
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-wBunpfQ9.esm.js";
|
|
40
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-DeeugC00.esm.js";
|
|
41
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-BuHt7kec.esm.js";
|
|
42
|
+
import { t as kybChecksMachine } from "./kybChecksStateMachine-CU0oIYDR.esm.js";
|
|
43
|
+
import { a as getTotalScoreStatus, i as getHandoffFinishStatus, r as getFinishStatus, t as HANDOFF_COMPLETION_TIMEOUT_MS } from "./flowCompletionService-BFCddN3G.esm.js";
|
|
44
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CJ_aQO92.esm.js";
|
|
45
|
+
import { n as isAdvanceableError } from "./advanceableErrors-CxZyPRyh.esm.js";
|
|
41
46
|
import "./qe-signature.esm.js";
|
|
42
|
-
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-
|
|
47
|
+
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-IWdxw1TW.esm.js";
|
|
43
48
|
//#region src/internal/orchestration/defaultModules.ts
|
|
44
49
|
/**
|
|
45
50
|
* Shared default module registry — single source of truth for module key → machine mappings.
|
|
@@ -66,6 +71,8 @@ const DEFAULT_MODULE_REGISTRY = {
|
|
|
66
71
|
GEOLOCATION: geolocationMachine,
|
|
67
72
|
EXTERNAL_VERIFICATION: ekycMachine,
|
|
68
73
|
EKYB: ekybMachine,
|
|
74
|
+
EKYB_CHECKS: kybChecksMachine,
|
|
75
|
+
EKYC_PREFILL: ekycPrefillMachine,
|
|
69
76
|
DOCUMENT_CAPTURE: documentCaptureMachine,
|
|
70
77
|
ADDRESS: documentCaptureMachine,
|
|
71
78
|
COMBINED_CONSENT: consentMachine,
|
|
@@ -161,13 +168,11 @@ async function processCustomNode(data, signal) {
|
|
|
161
168
|
//#endregion
|
|
162
169
|
//#region src/modules/workflow/workflowActors.ts
|
|
163
170
|
async function loadWorkflow(input, signal) {
|
|
164
|
-
await initializeSession({
|
|
171
|
+
const [workflowConfig] = await Promise.all([retryAfterReconnect(() => getWorkflowConfig(signal), signal), initializeSession({
|
|
165
172
|
signal,
|
|
166
173
|
preloadFlow: false
|
|
167
|
-
}).catch(() => void 0);
|
|
168
|
-
const
|
|
169
|
-
await updateFeatureManagementUser({ customIDs: { workflow_id: workflowConfig.id } });
|
|
170
|
-
const realNode = await getCurrentNode(signal);
|
|
174
|
+
}).catch(() => void 0)]);
|
|
175
|
+
const [realNode] = await Promise.all([retryAfterReconnect(() => getCurrentNode(signal), signal), updateFeatureManagementUser({ customIDs: { workflow_id: workflowConfig.id } })]);
|
|
171
176
|
const fingerprintResult = getSessionFingerprintResult();
|
|
172
177
|
let currentNode = realNode;
|
|
173
178
|
let firstNode;
|
|
@@ -228,8 +233,16 @@ async function processNextNode(input, signal) {
|
|
|
228
233
|
isInjectedNode: false
|
|
229
234
|
};
|
|
230
235
|
}
|
|
236
|
+
let resync = false;
|
|
231
237
|
return {
|
|
232
|
-
nextNode: await
|
|
238
|
+
nextNode: await retryAfterReconnect(async () => {
|
|
239
|
+
if (resync) {
|
|
240
|
+
const serverNode = await getCurrentNode(signal);
|
|
241
|
+
if (serverNode.id !== input.currentNodeId) return serverNode;
|
|
242
|
+
}
|
|
243
|
+
resync = true;
|
|
244
|
+
return processNode(signal);
|
|
245
|
+
}, signal),
|
|
233
246
|
isInjectedNode: false
|
|
234
247
|
};
|
|
235
248
|
}
|
|
@@ -292,16 +305,92 @@ function applyWorkflowNodeOverlays(moduleKey, config, skipFaceMatch) {
|
|
|
292
305
|
...config,
|
|
293
306
|
isSecondId: config.isSecondId === true || config.idRank === "SECOND_ID"
|
|
294
307
|
};
|
|
295
|
-
if (moduleKey === "
|
|
308
|
+
if (moduleKey === "ID_OCR") return {
|
|
296
309
|
...config,
|
|
297
|
-
|
|
310
|
+
ocrDocument: config.ocrDocument ?? (config.isSecondId === true || config.idRank === "SECOND_ID" ? "second" : "first")
|
|
298
311
|
};
|
|
299
|
-
if (moduleKey === "
|
|
312
|
+
if (moduleKey === "SELFIE") return {
|
|
300
313
|
...config,
|
|
301
|
-
|
|
314
|
+
skipProcessFace: true
|
|
302
315
|
};
|
|
316
|
+
if (moduleKey === "FACE_MATCH") {
|
|
317
|
+
const faceMatchConfig = config.idRank === "SECOND_ID" ? {
|
|
318
|
+
...config,
|
|
319
|
+
matchingType: "secondId"
|
|
320
|
+
} : config;
|
|
321
|
+
return skipFaceMatch ? {
|
|
322
|
+
...faceMatchConfig,
|
|
323
|
+
skipFaceMatch: true
|
|
324
|
+
} : faceMatchConfig;
|
|
325
|
+
}
|
|
303
326
|
return config;
|
|
304
327
|
}
|
|
328
|
+
const handoffCompletionMachine = setup({
|
|
329
|
+
types: {
|
|
330
|
+
context: {},
|
|
331
|
+
input: {},
|
|
332
|
+
output: {}
|
|
333
|
+
},
|
|
334
|
+
actors: {
|
|
335
|
+
readRedirect: fromPromise(({ signal }) => getHandoffFinishStatus(signal)),
|
|
336
|
+
readScore: fromPromise(({ input, signal }) => input(signal))
|
|
337
|
+
}
|
|
338
|
+
}).createMachine({
|
|
339
|
+
id: "handoffCompletion",
|
|
340
|
+
initial: "collecting",
|
|
341
|
+
context: ({ input }) => ({
|
|
342
|
+
...input,
|
|
343
|
+
finishStatus: void 0,
|
|
344
|
+
totalScoreStatus: void 0
|
|
345
|
+
}),
|
|
346
|
+
output: ({ context }) => ({
|
|
347
|
+
finishStatus: context.finishStatus,
|
|
348
|
+
totalScoreStatus: context.totalScoreStatus
|
|
349
|
+
}),
|
|
350
|
+
states: {
|
|
351
|
+
collecting: {
|
|
352
|
+
type: "parallel",
|
|
353
|
+
after: { [HANDOFF_COMPLETION_TIMEOUT_MS]: "#handoffCompletion.finished" },
|
|
354
|
+
onDone: "finished",
|
|
355
|
+
states: {
|
|
356
|
+
redirect: {
|
|
357
|
+
initial: "loading",
|
|
358
|
+
states: {
|
|
359
|
+
loading: { invoke: {
|
|
360
|
+
src: "readRedirect",
|
|
361
|
+
onDone: {
|
|
362
|
+
target: "finished",
|
|
363
|
+
actions: assign(({ event }) => ({ finishStatus: event.output }))
|
|
364
|
+
},
|
|
365
|
+
onError: "finished"
|
|
366
|
+
} },
|
|
367
|
+
finished: { type: "final" }
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
score: {
|
|
371
|
+
initial: "checking",
|
|
372
|
+
states: {
|
|
373
|
+
checking: { always: [{
|
|
374
|
+
target: "loading",
|
|
375
|
+
guard: ({ context }) => context.resolveScore
|
|
376
|
+
}, { target: "finished" }] },
|
|
377
|
+
loading: { invoke: {
|
|
378
|
+
src: "readScore",
|
|
379
|
+
input: ({ context }) => context.getTotalScoreStatus,
|
|
380
|
+
onDone: {
|
|
381
|
+
target: "finished",
|
|
382
|
+
actions: assign(({ event }) => ({ totalScoreStatus: event.output }))
|
|
383
|
+
},
|
|
384
|
+
onError: "finished"
|
|
385
|
+
} },
|
|
386
|
+
finished: { type: "final" }
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
finished: { type: "final" }
|
|
392
|
+
}
|
|
393
|
+
});
|
|
305
394
|
//#endregion
|
|
306
395
|
//#region src/modules/workflow/workflowStateMachine.ts
|
|
307
396
|
/**
|
|
@@ -333,16 +422,13 @@ const workflowMachine = setup({
|
|
|
333
422
|
input: {}
|
|
334
423
|
},
|
|
335
424
|
actors: {
|
|
425
|
+
resolveHandoffCompletion: handoffCompletionMachine,
|
|
336
426
|
loadWorkflow: fromPromise(({ input, signal }) => loadWorkflow(input, signal)),
|
|
337
427
|
processNextNode: fromPromise(({ input, signal }) => processNextNode(input, signal)),
|
|
338
428
|
handleCustomModule: fromPromise(({ input, signal }) => handleCustomModule(input, signal)),
|
|
339
429
|
resolveModule: fromPromise(({ input }) => resolveModule(input)),
|
|
340
|
-
notifyBackend: fromPromise(
|
|
341
|
-
|
|
342
|
-
}),
|
|
343
|
-
resolveScore: fromPromise(async ({ input, signal }) => {
|
|
344
|
-
return input.getTotalScoreStatus(signal);
|
|
345
|
-
}),
|
|
430
|
+
notifyBackend: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getFinishStatus(input.workflowId, signal), signal)),
|
|
431
|
+
resolveScore: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getTotalScoreStatus(signal), signal)),
|
|
346
432
|
runChildModule
|
|
347
433
|
},
|
|
348
434
|
actions: {
|
|
@@ -432,7 +518,7 @@ const workflowMachine = setup({
|
|
|
432
518
|
isOnboardingFinishedSignal: ({ event }) => event.output?.action === "onboardingFinished",
|
|
433
519
|
isAdvanceableModuleError: ({ event }) => isAdvanceableError(event.moduleErrorCode),
|
|
434
520
|
shouldResolveScore: ({ context }) => context.workflowConfig?.showFinishScreenBySessionStatus === true,
|
|
435
|
-
|
|
521
|
+
isRedirectToMobileNode: ({ context }) => context.currentNode?.moduleKey === "REDIRECT_TO_MOBILE",
|
|
436
522
|
shouldEnterHome: ({ context, event }) => {
|
|
437
523
|
if (context.hasShownHome) return false;
|
|
438
524
|
const result = event.output;
|
|
@@ -463,6 +549,7 @@ const workflowMachine = setup({
|
|
|
463
549
|
registeredModules: input.modules,
|
|
464
550
|
configMappers: input.configMappers ?? {},
|
|
465
551
|
finishStatus: void 0,
|
|
552
|
+
completedOnMobile: false,
|
|
466
553
|
totalScoreStatus: void 0,
|
|
467
554
|
customModuleCallback: input.customModuleCallback,
|
|
468
555
|
interviewId: input.interviewId ?? "",
|
|
@@ -554,33 +641,37 @@ const workflowMachine = setup({
|
|
|
554
641
|
}
|
|
555
642
|
},
|
|
556
643
|
on: {
|
|
557
|
-
MODULE_COMPLETE: [
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
guard: "isOnboardingFinishedSignal"
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
target: "processingNode",
|
|
568
|
-
actions: ["persistSkipFaceMatch"]
|
|
569
|
-
}
|
|
570
|
-
],
|
|
644
|
+
MODULE_COMPLETE: [{
|
|
645
|
+
target: "resolvingHandoffCompletion",
|
|
646
|
+
guard: "isOnboardingFinishedSignal"
|
|
647
|
+
}, {
|
|
648
|
+
target: "processingNode",
|
|
649
|
+
actions: ["persistSkipFaceMatch"]
|
|
650
|
+
}],
|
|
571
651
|
MODULE_ERROR: [{
|
|
572
652
|
guard: "isAdvanceableModuleError",
|
|
573
653
|
target: "processingNode",
|
|
574
654
|
actions: ["setModuleErrorCode", "trackAdvanceableModuleError"]
|
|
575
655
|
}, {
|
|
576
656
|
target: "error",
|
|
577
|
-
actions: [
|
|
657
|
+
actions: [
|
|
658
|
+
"setModuleError",
|
|
659
|
+
"setModuleErrorCode",
|
|
660
|
+
"trackTerminalModuleError"
|
|
661
|
+
]
|
|
578
662
|
}],
|
|
579
663
|
COMPLETE_FLOW: "completing",
|
|
580
|
-
FINISH_WORKFLOW: [
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
664
|
+
FINISH_WORKFLOW: [
|
|
665
|
+
{
|
|
666
|
+
target: "resolvingHandoffCompletion",
|
|
667
|
+
guard: "isRedirectToMobileNode"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
target: "resolvingScore",
|
|
671
|
+
guard: "shouldResolveScore"
|
|
672
|
+
},
|
|
673
|
+
{ target: "finished" }
|
|
674
|
+
]
|
|
584
675
|
}
|
|
585
676
|
},
|
|
586
677
|
handlingCustomModule: { invoke: {
|
|
@@ -619,6 +710,7 @@ const workflowMachine = setup({
|
|
|
619
710
|
input: ({ context }) => ({
|
|
620
711
|
isInjectedNode: context.isInjectedNode,
|
|
621
712
|
firstNode: context.firstNode,
|
|
713
|
+
currentNodeId: context.currentNode?.id,
|
|
622
714
|
currentNodeModuleKey: context.currentNode?.moduleKey,
|
|
623
715
|
workflowConfigId: context.workflowConfig?.id,
|
|
624
716
|
workflowRedirectDesktopToMobile: context.workflowConfig?.redirectDesktopToMobile ?? false,
|
|
@@ -655,6 +747,21 @@ const workflowMachine = setup({
|
|
|
655
747
|
actions: "setError"
|
|
656
748
|
}
|
|
657
749
|
} },
|
|
750
|
+
resolvingHandoffCompletion: {
|
|
751
|
+
entry: assign({ completedOnMobile: true }),
|
|
752
|
+
invoke: {
|
|
753
|
+
src: "resolveHandoffCompletion",
|
|
754
|
+
input: ({ context }) => ({
|
|
755
|
+
resolveScore: context.workflowConfig?.showFinishScreenBySessionStatus === true,
|
|
756
|
+
getTotalScoreStatus: context.getTotalScoreStatus
|
|
757
|
+
}),
|
|
758
|
+
onDone: {
|
|
759
|
+
target: "finished",
|
|
760
|
+
actions: assign(({ event }) => event.output)
|
|
761
|
+
},
|
|
762
|
+
onError: "finished"
|
|
763
|
+
}
|
|
764
|
+
},
|
|
658
765
|
completing: { invoke: {
|
|
659
766
|
id: "notifyBackend",
|
|
660
767
|
src: "notifyBackend",
|
|
@@ -702,7 +809,13 @@ function createWorkflowActor(options) {
|
|
|
702
809
|
}
|
|
703
810
|
//#endregion
|
|
704
811
|
//#region src/internal/orchestration/identity-search/identitySearchStateMachine.ts
|
|
705
|
-
|
|
812
|
+
/**
|
|
813
|
+
* The Workflow's IDENTITY_SEARCH node does nothing in the SDK: the backend
|
|
814
|
+
* runs the search when the node is reported done on `process/node`. Flows run
|
|
815
|
+
* the search themselves, with the machine in `modules/identity-search/` —
|
|
816
|
+
* registering this one in a Flow would skip the search.
|
|
817
|
+
*/
|
|
818
|
+
const workflowIdentitySearchMachine = setup({ types: {
|
|
706
819
|
context: {},
|
|
707
820
|
input: {}
|
|
708
821
|
} }).createMachine({
|
|
@@ -715,7 +828,7 @@ const identitySearchMachine = setup({ types: {
|
|
|
715
828
|
//#region src/modules/workflow/workflowManager.ts
|
|
716
829
|
const WORKFLOW_DEFAULT_MODULES = {
|
|
717
830
|
...DEFAULT_MODULE_REGISTRY,
|
|
718
|
-
IDENTITY_SEARCH:
|
|
831
|
+
IDENTITY_SEARCH: workflowIdentitySearchMachine,
|
|
719
832
|
ID_CAPTURE: idCaptureMachine,
|
|
720
833
|
ID: idVerificationMachine,
|
|
721
834
|
REDIRECT_TO_MOBILE: redirectToMobileMachine
|
|
@@ -769,7 +882,8 @@ function mapState(snapshot) {
|
|
|
769
882
|
status: "finished",
|
|
770
883
|
workflowConfig: context.workflowConfig,
|
|
771
884
|
finishStatus,
|
|
772
|
-
scoreStatus: context.totalScoreStatus ?? finishStatus.scoreStatus
|
|
885
|
+
scoreStatus: context.totalScoreStatus ?? finishStatus.scoreStatus,
|
|
886
|
+
...context.completedOnMobile ? { completedOnMobile: true } : {}
|
|
773
887
|
};
|
|
774
888
|
}
|
|
775
889
|
if (snapshot.matches("asyncResolution")) return {
|
|
@@ -784,7 +898,7 @@ function mapState(snapshot) {
|
|
|
784
898
|
errorCode: context.errorCode,
|
|
785
899
|
moduleErrorCode: context.moduleErrorCode
|
|
786
900
|
};
|
|
787
|
-
if (snapshot.matches("completing")) return {
|
|
901
|
+
if (snapshot.matches("completing") || snapshot.matches("resolvingHandoffCompletion")) return {
|
|
788
902
|
status: "completing",
|
|
789
903
|
homeScreen
|
|
790
904
|
};
|
|
@@ -1,127 +1,3 @@
|
|
|
1
|
-
//#region ../infra/src/manager/Manager.ts
|
|
2
|
-
/**
|
|
3
|
-
* Creates a manager that wraps a state machine actor with a clean public API.
|
|
4
|
-
*
|
|
5
|
-
* The manager provides:
|
|
6
|
-
* - `getState()` - Returns the mapped public state
|
|
7
|
-
* - `subscribe()` - Listen to state changes
|
|
8
|
-
* - `stop()` - Stop the actor
|
|
9
|
-
* - Plus any custom API methods from `createApi`
|
|
10
|
-
*
|
|
11
|
-
* @template TMachine - The state machine type
|
|
12
|
-
* @template TMapState - Function type that maps raw snapshot to public state
|
|
13
|
-
* @template TCreateApi - Function type that creates the custom API
|
|
14
|
-
*
|
|
15
|
-
* @param options - Configuration options
|
|
16
|
-
* @param options.actor - The started actor instance
|
|
17
|
-
* @param options.mapState - Function to transform raw snapshot into public state
|
|
18
|
-
* @param options.createApi - Factory function to create custom API methods
|
|
19
|
-
*
|
|
20
|
-
* @returns Combined manager with base methods and custom API
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* const manager = createManager({
|
|
25
|
-
* actor: createActor(myMachine).start(),
|
|
26
|
-
* mapState: (snapshot) => ({ status: snapshot.value }),
|
|
27
|
-
* createApi: ({ actor }) => ({
|
|
28
|
-
* doSomething() { actor.send({ type: 'DO_IT' }); }
|
|
29
|
-
* }),
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
function createManager(options) {
|
|
34
|
-
const { actor, mapState, createApi, instrumentation } = options;
|
|
35
|
-
function getSnapshot() {
|
|
36
|
-
return actor.getSnapshot();
|
|
37
|
-
}
|
|
38
|
-
function getState() {
|
|
39
|
-
return mapState(getSnapshot());
|
|
40
|
-
}
|
|
41
|
-
function subscribe(listener) {
|
|
42
|
-
const subscription = actor.subscribe(() => {
|
|
43
|
-
listener(getState());
|
|
44
|
-
});
|
|
45
|
-
return () => subscription.unsubscribe();
|
|
46
|
-
}
|
|
47
|
-
let currentScreenName = instrumentation?.getScreenName(getSnapshot());
|
|
48
|
-
let currentStateName = instrumentation?.getStateName?.(getSnapshot());
|
|
49
|
-
let currentErrorName = instrumentation?.getErrorName(getSnapshot());
|
|
50
|
-
let currentErrorPayload = instrumentation?.getErrorPayload(getSnapshot());
|
|
51
|
-
const api = createApi({
|
|
52
|
-
actor,
|
|
53
|
-
getSnapshot,
|
|
54
|
-
trackElementClicked: instrumentation ? (elementName, payload) => {
|
|
55
|
-
instrumentation.onElementClicked?.(instrumentation.moduleName, currentStateName ?? currentScreenName, {
|
|
56
|
-
element: elementName,
|
|
57
|
-
action: payload?.action,
|
|
58
|
-
metadata: payload?.metadata
|
|
59
|
-
});
|
|
60
|
-
} : void 0,
|
|
61
|
-
trackCaptureAttemptFinished: instrumentation ? (payload) => {
|
|
62
|
-
instrumentation.onCaptureAttemptFinished?.(instrumentation.moduleName, currentStateName ?? currentScreenName, { logs: payload.logs });
|
|
63
|
-
} : void 0
|
|
64
|
-
});
|
|
65
|
-
instrumentation?.onModuleOpened(instrumentation.moduleName);
|
|
66
|
-
if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, currentScreenName);
|
|
67
|
-
if (instrumentation && currentErrorName !== void 0) instrumentation.onErrorTriggered(instrumentation.moduleName, currentErrorName, currentScreenName, currentErrorPayload);
|
|
68
|
-
let lastVisible = instrumentation?.getInitialVisibility?.();
|
|
69
|
-
if (instrumentation && lastVisible === false) instrumentation.onBackground?.(instrumentation.moduleName, currentScreenName);
|
|
70
|
-
const stopVisibility = instrumentation?.subscribeVisibility?.((visible) => {
|
|
71
|
-
if (visible === lastVisible) return;
|
|
72
|
-
lastVisible = visible;
|
|
73
|
-
if (visible) instrumentation.onForeground?.(instrumentation.moduleName, currentScreenName);
|
|
74
|
-
else instrumentation.onBackground?.(instrumentation.moduleName, currentScreenName);
|
|
75
|
-
});
|
|
76
|
-
const actorSubscription = instrumentation ? actor.subscribe((snapshot) => {
|
|
77
|
-
const nextScreenName = instrumentation.getScreenName(snapshot);
|
|
78
|
-
const nextErrorName = instrumentation.getErrorName(snapshot);
|
|
79
|
-
const nextErrorPayload = instrumentation.getErrorPayload(snapshot);
|
|
80
|
-
const nextStateName = instrumentation.getStateName?.(snapshot);
|
|
81
|
-
if (currentScreenName === nextScreenName) {
|
|
82
|
-
const previousStateName = currentStateName;
|
|
83
|
-
currentStateName = nextStateName;
|
|
84
|
-
if (currentScreenName !== void 0 && nextStateName !== void 0 && nextStateName !== previousStateName) instrumentation.onStateChanged?.(instrumentation.moduleName, currentScreenName, nextStateName);
|
|
85
|
-
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, currentScreenName, nextErrorPayload);
|
|
86
|
-
currentErrorName = nextErrorName;
|
|
87
|
-
currentErrorPayload = nextErrorPayload;
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
if (currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
91
|
-
if (nextScreenName !== void 0) instrumentation.onScreenOpened(instrumentation.moduleName, nextScreenName);
|
|
92
|
-
currentScreenName = nextScreenName;
|
|
93
|
-
currentStateName = nextStateName;
|
|
94
|
-
if (nextErrorName !== void 0 && nextErrorName !== currentErrorName) instrumentation.onErrorTriggered(instrumentation.moduleName, nextErrorName, nextScreenName, nextErrorPayload);
|
|
95
|
-
currentErrorName = nextErrorName;
|
|
96
|
-
currentErrorPayload = nextErrorPayload;
|
|
97
|
-
}) : void 0;
|
|
98
|
-
let isStopped = false;
|
|
99
|
-
return Object.defineProperties({
|
|
100
|
-
getState,
|
|
101
|
-
subscribe,
|
|
102
|
-
stop() {
|
|
103
|
-
if (isStopped) return;
|
|
104
|
-
isStopped = true;
|
|
105
|
-
try {
|
|
106
|
-
if (actor.getSnapshot().status === "active") options.beforeStop?.();
|
|
107
|
-
} finally {
|
|
108
|
-
try {
|
|
109
|
-
actorSubscription?.unsubscribe();
|
|
110
|
-
stopVisibility?.();
|
|
111
|
-
if (instrumentation && currentScreenName !== void 0) instrumentation.onScreenClosed(instrumentation.moduleName, currentScreenName);
|
|
112
|
-
currentScreenName = void 0;
|
|
113
|
-
currentStateName = void 0;
|
|
114
|
-
currentErrorName = void 0;
|
|
115
|
-
currentErrorPayload = void 0;
|
|
116
|
-
instrumentation?.onModuleClosed(instrumentation.moduleName);
|
|
117
|
-
} finally {
|
|
118
|
-
actor.stop();
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}, Object.getOwnPropertyDescriptors(api));
|
|
123
|
-
}
|
|
124
|
-
//#endregion
|
|
125
1
|
//#region ../../node_modules/.pnpm/xstate@5.24.0/node_modules/xstate/dev/dist/xstate-dev.esm.js
|
|
126
2
|
function getGlobal() {
|
|
127
3
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
@@ -2990,4 +2866,4 @@ function setup({ schemas, actors, actions, guards, delays }) {
|
|
|
2990
2866
|
};
|
|
2991
2867
|
}
|
|
2992
2868
|
//#endregion
|
|
2993
|
-
export { XSTATE_STOP as a, not as c, assign as i, raise as l, enqueueActions as n, and as o, sendTo as r, createActor as s, setup as t
|
|
2869
|
+
export { XSTATE_STOP as a, not as c, assign as i, raise as l, enqueueActions as n, and as o, sendTo as r, createActor as s, setup as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0-rc.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -125,6 +125,11 @@
|
|
|
125
125
|
"types": "./dist/identity-reuse.d.ts",
|
|
126
126
|
"import": "./dist/identity-reuse.esm.js"
|
|
127
127
|
},
|
|
128
|
+
"./identity-search": {
|
|
129
|
+
"source": "./src/modules/identity-search/index.ts",
|
|
130
|
+
"types": "./dist/identity-search.d.ts",
|
|
131
|
+
"import": "./dist/identity-search.esm.js"
|
|
132
|
+
},
|
|
128
133
|
"./ekyc": {
|
|
129
134
|
"source": "./src/modules/ekyc/index.ts",
|
|
130
135
|
"types": "./dist/ekyc.d.ts",
|
|
@@ -135,6 +140,16 @@
|
|
|
135
140
|
"types": "./dist/ekyb.d.ts",
|
|
136
141
|
"import": "./dist/ekyb.esm.js"
|
|
137
142
|
},
|
|
143
|
+
"./kyb-checks": {
|
|
144
|
+
"source": "./src/modules/kyb-checks/index.ts",
|
|
145
|
+
"types": "./dist/kyb-checks.d.ts",
|
|
146
|
+
"import": "./dist/kyb-checks.esm.js"
|
|
147
|
+
},
|
|
148
|
+
"./ekyc-prefill": {
|
|
149
|
+
"source": "./src/modules/ekyc-prefill/index.ts",
|
|
150
|
+
"types": "./dist/ekyc-prefill.d.ts",
|
|
151
|
+
"import": "./dist/ekyc-prefill.esm.js"
|
|
152
|
+
},
|
|
138
153
|
"./home": {
|
|
139
154
|
"source": "./src/modules/home/index.ts",
|
|
140
155
|
"types": "./dist/home.d.ts",
|
|
@@ -284,14 +299,16 @@
|
|
|
284
299
|
"build": "tsdown -c tsdown.config.ts && pnpm check:dist-types",
|
|
285
300
|
"build:cdn": "tsdown -c tsdown.config.ts --minify && pnpm check:dist-types",
|
|
286
301
|
"build:dev": "tsdown -c tsdown.config.ts",
|
|
287
|
-
"check:dist-types": "
|
|
302
|
+
"check:dist-types": "bun check -p tsconfig.dist-types.json --no-script",
|
|
288
303
|
"test": "vitest run",
|
|
304
|
+
"test:shard": "vitest run --shard=$VITEST_SHARD",
|
|
305
|
+
"test:changed": "vitest run --changed origin/main --passWithNoTests",
|
|
289
306
|
"coverage": "vitest run --coverage",
|
|
290
|
-
"lint": "
|
|
291
|
-
"lint:fix": "
|
|
307
|
+
"lint": "oxlint .",
|
|
308
|
+
"lint:fix": "oxlint . --fix",
|
|
292
309
|
"format": "prettier --write . --ignore-path ../../.prettierignore",
|
|
293
310
|
"format:check": "prettier --check . --ignore-path ../../.prettierignore",
|
|
294
|
-
"typecheck": "
|
|
311
|
+
"typecheck": "bun check -p tsconfig.json --noEmit --rootDir=.. --no-script",
|
|
295
312
|
"parity:record": "PARITY_RECORD=1 vitest run __parity__"
|
|
296
313
|
}
|
|
297
314
|
}
|
package/dist/Actor-DpTj5PFb.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./Manager-C9T5amUN.js";
|