@incodetech/core 2.4.1-agentic.1 → 2.4.1-agentic.11
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/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-ppyMYVoY.esm.js} +1 -1
- package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
- package/dist/{FaceDetectionProvider-CAY43vSI.esm.js → FaceDetectionProvider-2NzWDbV8.esm.js} +9 -9
- package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
- package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +2 -2
- package/dist/Manager-BvXAwDv9.esm.js +125 -0
- package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
- package/dist/{MultipartRecordingProvider-D9mauUdS.esm.js → MultipartRecordingProvider-CduV32Qa.esm.js} +6 -1
- package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +2 -2
- package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-DdhAHHw4.esm.js} +42 -6
- package/dist/{WorkerEncoderRecordingProvider-B1ODYtgN.esm.js → WorkerEncoderRecordingProvider-CsDED9UU.esm.js} +1 -1
- package/dist/addressSearch-Rxm1K67A.esm.js +73 -0
- package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
- 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-BObuHBjn.esm.js → antifraudManager-DKNOi9-z.esm.js} +5 -3
- package/dist/{antifraudStateMachine-Dfrd2-26.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
- package/dist/{api-CpP4PS4S.esm.js → api-CZpuJuZl.esm.js} +3 -1
- package/dist/{apiError-DH-CH4Nz.esm.js → apiError-BamZ815u.esm.js} +1 -1
- package/dist/{attemptCarry-WOkfvFMw.esm.js → attemptCarry-BecGGZK8.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CWmh7aSY.d.ts → authenticationManager-DRaugLgH.d.ts} +2 -2
- package/dist/{authenticationManager-DjX0XDyH.esm.js → authenticationManager-yBVGiIf_.esm.js} +7 -6
- package/dist/{authenticationStateMachine-BMbZL8wm.esm.js → authenticationStateMachine-DPqTOJPp.esm.js} +50 -18
- package/dist/avatar.d.ts +1 -1
- package/dist/{browser-pQZA35G2-DtkAf6sn.esm.js → browser-pQZA35G2-DxIBykpe.esm.js} +1 -1
- package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
- 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-C1nETQos.esm.js → certificateIssuanceManager-Dxl9UwR0.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-DThXMDqr.esm.js → certificateIssuanceStateMachine-CM4q71h1.esm.js} +4 -4
- package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-bjfVXO7p.d.ts → consentManager-B2F_VeAo.d.ts} +12 -11
- package/dist/{consentManager-DMlSL6Ax.esm.js → consentManager-BPocwpm2.esm.js} +5 -3
- package/dist/{consentStateMachine-DIYSMxKQ.esm.js → consentStateMachine-DgiIcT9q.esm.js} +3 -3
- 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-BFTdiEDB.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-DNpC3wyf.esm.js → curpValidationManager-CbvBDoE1.esm.js} +6 -4
- package/dist/{curpValidationManager-z8428oCM.d.ts → curpValidationManager-Ci2iVuog.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-B3iVsDyt.esm.js → curpValidationStateMachine-BQ8XK2Y3.esm.js} +5 -5
- 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-CvI-pDT3.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customWatchlistManager-BuHtUb0y.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-CiVD9wyF.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
- package/dist/{deepsightLoader-B7DEYoyY.esm.js → deepsightLoader-CEY2mSPM.esm.js} +5 -5
- package/dist/{addressSearch-DzbE9Ogt.esm.js → definitionSource-Nw0YCbpe.esm.js} +39 -72
- package/dist/{desktopCameraElection-BGMtYwk3.esm.js → desktopCameraElection-enVPfRsQ.esm.js} +5 -5
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-CD5iQiUI.d.ts → documentCaptureManager-BZBmcOKI.d.ts} +4 -3
- package/dist/{documentCaptureManager-DLPqruXJ.esm.js → documentCaptureManager-C11k5BO-.esm.js} +5 -3
- package/dist/{documentCaptureStateMachine-DCvWQhFG.esm.js → documentCaptureStateMachine-g0gfL0_1.esm.js} +6 -6
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DfqCEPg9.esm.js → dynamicFormsManager-BmfCZ2zV.esm.js} +5 -3
- package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
- package/dist/{dynamicFormsStateMachine-USQMB-uV.esm.js → dynamicFormsStateMachine-B-eYytau.esm.js} +4 -4
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-CR8YSYux.esm.js → ekybManager-BPaMfbgw.esm.js} +5 -3
- package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
- package/dist/{ekybStateMachine-kHwdz6hm.esm.js → ekybStateMachine-C_lEw4I7.esm.js} +19 -19
- package/dist/ekyc-prefill.d.ts +17 -0
- package/dist/ekyc-prefill.esm.js +3 -0
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-DlGIn9wA.d.ts → ekycManager-BKVQazAb.d.ts} +48 -7
- package/dist/{ekycManager-DymCvmVB.esm.js → ekycManager-nRT0rxei.esm.js} +39 -16
- package/dist/ekycPrefillManager-CCtbmrFd.esm.js +103 -0
- package/dist/ekycPrefillManager-DOTl3Y2w.d.ts +566 -0
- package/dist/ekycPrefillStateMachine-XpxgCAoC.esm.js +687 -0
- package/dist/ekycRules-DXP2hqVw.esm.js +479 -0
- package/dist/{ekycStateMachine-CoFCUJ2z.esm.js → ekycStateMachine-nwJRel2s.esm.js} +915 -596
- package/dist/{ekycUtils-GRuMELYr.esm.js → ekycUtils-FcqA6oU4.esm.js} +68 -49
- 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-BCE3uA3z.esm.js → electronicSignatureManager-M2O2VDks.esm.js} +8 -6
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-CGoE3CUe.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-KgHfDNvM.esm.js → emailStateMachine-CTEaYncs.esm.js} +4 -4
- 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 -42
- package/dist/extensibility.esm.js +39 -38
- package/dist/{externalFetch-CQY41QT1.esm.js → externalFetch-cUjJYyXj.esm.js} +1 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-Dp90bedH.esm.js → faceCaptureManagerFactory-3Or5qfbA.esm.js} +17 -6
- package/dist/{faceCaptureManagerFactory-DV2ULUYS.d.ts → faceCaptureManagerFactory-CRGajjZ4.d.ts} +18 -11
- package/dist/{faceCaptureSetup-ZfiWg0fo.esm.js → faceCaptureSetup-Cf87i0rT.esm.js} +46 -38
- package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-C5b5WtcY.d.ts} +12 -5
- package/dist/{faceMatchManager-D2xKPjjQ.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-CUvwiQi9.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +44 -18
- package/dist/{feature-management-BbCIA4og.esm.js → feature-management-DG016L6E.esm.js} +1 -1
- 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-DgDbEeFZ.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-BZeklojR.esm.js → fiscalQrManager-DOLq45ph.esm.js} +6 -4
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +71 -20
- package/dist/flow.esm.js +285 -68
- package/dist/{flowCompletionService-CcCnPs_T.esm.js → flowCompletionService-BpeAbbXc.esm.js} +24 -3
- package/dist/{flowServices-Dmnc8Rye.esm.js → flowServices-rDg1bAMs.esm.js} +393 -13
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
- package/dist/{geolocationManager-BJJ3m_I8.esm.js → geolocationManager-T8m4lqvF.esm.js} +5 -3
- package/dist/{geolocationStateMachine-CTI3m4Ie.esm.js → geolocationStateMachine-NWmA1Dtn.esm.js} +5 -5
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-CjChjZ3C.esm.js → governmentValidationManager-6JQQkzha.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-AEbn3Afi.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 +12 -11
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-Dszuq9ng.esm.js → idCaptureDefaults-Cjesf5i9.esm.js} +3 -3
- package/dist/{idCaptureManager-B3oR4RnA.esm.js → idCaptureManager-5-ReVgbB.esm.js} +12 -10
- package/dist/{idCaptureManager-CCA2D1Ah.d.ts → idCaptureManager-Cqx2y_fC.d.ts} +12 -11
- package/dist/{idCaptureServices-DK0QboqT.esm.js → idCaptureServices-exB6I9lV.esm.js} +7 -7
- package/dist/{idCaptureStateMachine-zzar9MPy.esm.js → idCaptureStateMachine-DQ14d3GR.esm.js} +51 -21
- package/dist/idOcrCpfUtils-D5Gwskxu.esm.js +18 -0
- package/dist/{idOcrManager-BTdHlJ9D.d.ts → idOcrManager-C0C7lFGd.d.ts} +6 -5
- package/dist/{idOcrManager-xyEZNOBa.esm.js → idOcrManager-im7VfJQi.esm.js} +5 -3
- package/dist/{idOcrStateMachine-DNKXh4Rn.esm.js → idOcrStateMachine-B832arAl.esm.js} +10 -9
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationManager-DdnvYfgN.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
- package/dist/{idVerificationStateMachine-DtIBCa32.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-CZ-qJ_Aa.d.ts} +82 -15
- package/dist/{identityReuseManager-CcpovlfD.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
- package/dist/{identityReuseStateMachine-DxZFWy47.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/{index-DEfwds5y.d.ts → index-DM43R87x.d.ts} +43 -19
- package/dist/{index-DC0P2Vzw.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-BJ0GVHGr.esm.js → invokeOnCaptureCallback-lXP41N7b.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
- package/dist/{kybChecksManager-DpGOp4Su.esm.js → kybChecksManager-CZfdCkLC.esm.js} +3 -2
- package/dist/{kybChecksStateMachine-B43NAnv7.esm.js → kybChecksStateMachine-DkWxSU4L.esm.js} +9 -7
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-B88Sm5nd.d.ts → mandatoryConsentManager-Bh1asNJh.d.ts} +24 -14
- package/dist/{mandatoryConsentManager-B4vCYslr.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +5 -3
- package/dist/{mandatoryConsentStateMachine-DWslYPA3.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +13 -7
- package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-g1TwTlhd.esm.js} +20 -3
- package/dist/{multipartRecordingService-BTqkHGG9.esm.js → multipartRecordingService-WgK8ieRI.esm.js} +2 -2
- package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-D-4_VU7-.esm.js} +1 -1
- package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-DpccEnzE.esm.js} +1 -1
- 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-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
- package/dist/{phoneManager-Dy5tODCU.esm.js → phoneManager-rA7updqF.esm.js} +5 -3
- package/dist/{phoneServices-DJgyOzU2.esm.js → phoneServices-CFXcwCFr.esm.js} +1 -1
- package/dist/{phoneStateMachine-DnlPhnw7.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +4 -4
- package/dist/{processFaceMatch-Bst83HaS.esm.js → processFaceMatch-B_DkDTE5.esm.js} +1 -1
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-CTko6Cjn.esm.js → recordingService-DxiwS8TV.esm.js} +5 -5
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-CgGaT2NP.esm.js → redirectToMobileManager-DTB_pWuS.esm.js} +6 -4
- package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
- package/dist/{redirectToMobileStateMachine-CbhN8uVN.esm.js → redirectToMobileStateMachine-nP9DM01_.esm.js} +4 -4
- package/dist/{resolveForm-O7-r79VA.esm.js → resolveForm-DaaQSVWp.esm.js} +8 -213
- package/dist/{runChildModule-BffFArwl.esm.js → runChildModule-CXLcOcXN.esm.js} +8 -6
- package/dist/{sdkVersion-CDd_gaR7.esm.js → sdkVersion-fqxsdqFZ.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +13 -12
- package/dist/{selfieErrorUtils-f4MgAG2A.esm.js → selfieErrorUtils-MOfYdGPz.esm.js} +1 -1
- package/dist/{selfieManager-DmZFzs1-.d.ts → selfieManager-DihwheJ6.d.ts} +2 -2
- package/dist/{selfieManager-hopelYEk.esm.js → selfieManager-Dq8tIqGd.esm.js} +7 -6
- package/dist/{selfieStateMachine-DaZIVv3Q.esm.js → selfieStateMachine-BZVDQB8R.esm.js} +5 -5
- package/dist/{session-CdSX4wsZ.esm.js → session-C7x_iJ-p.esm.js} +4 -4
- package/dist/session.d.ts +2 -2
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-DsL7X2j9.esm.js → sessionInitializer-k-hKIBg8.esm.js} +21 -9
- package/dist/{setup-DDahygZs.esm.js → setup-BRbhjHiU.esm.js} +13 -15
- package/dist/{setup-D9qt8YVU.d.ts → setup-CpXbdA1X.d.ts} +2 -2
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-CwqjcxPg.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-DBVDd1Eu.esm.js → signatureStateMachine-CVPmvU2p.esm.js} +3 -3
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-CatA2dea.esm.js → stats-DoByUnTa.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +379 -0
- package/dist/step-up.esm.js +640 -0
- package/dist/{tri-DG6priFa.esm.js → tri-CI2exudk.esm.js} +29 -34
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-CxLWmTZk.esm.js +2287 -0
- package/dist/tri.esm.js +2 -2
- package/dist/{trueSightService-GuLthUVK.esm.js → trueSightService-DhW2O8mB.esm.js} +7 -4
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +5 -3
- package/dist/{types-BEVHQbbC.d.ts → types-9wlf1-GE.d.ts} +3 -3
- package/dist/types-B-PIc0en.d.ts +115 -0
- 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-BPm1JSu7.d.ts → types-Cpdum4vi.d.ts} +5 -5
- package/dist/{types-CuMJ2M7D.d.ts → types-DEa3taWc.d.ts} +8 -1
- package/dist/{types-Csh8vzPo.d.ts → types-DFP7eSle.d.ts} +1 -1
- package/dist/{types-Cd0J0F9D.d.ts → types-DJPU3W2M.d.ts} +3 -2
- package/dist/{events-ggpBBaZ8.esm.js → types-DYYMdAGv.esm.js} +3 -298
- package/dist/{types-CRaFu6wS.d.ts → types-Ddc4Tr_f.d.ts} +37 -4
- package/dist/{urlUtils-eYiyWjh0.esm.js → urlUtils-B2wagB5v.esm.js} +14 -1
- package/dist/usStates-CwOQ2kAx.esm.js +209 -0
- package/dist/video-selfie.d.ts +9 -7
- package/dist/video-selfie.esm.js +14 -13
- package/dist/{videoSelfieCameraWarmer-e3irGfcO.esm.js → videoSelfieCameraWarmer-YwO_uP-b.esm.js} +14 -12
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-Dv3Mgws-.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +4 -4
- package/dist/{warmup-DtB0DJpl.esm.js → warmup-9iKKNNuW.esm.js} +46 -4
- package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-D_6e8W62.esm.js} +1 -1
- package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-C3v3s_4H.esm.js} +22 -10
- package/dist/watchlist-for-business.d.ts +1 -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-DqUpAEj_.esm.js → watchlistForBusinessManager-BH6M4kqA.esm.js} +5 -3
- package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
- package/dist/{watchlistForBusinessStateMachine-DdaPl2PS.esm.js → watchlistForBusinessStateMachine-BMWm5mcP.esm.js} +4 -4
- package/dist/{watchlistManager-CdpXzT4B.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-ofHW_lPk.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
- package/dist/workflow.d.ts +230 -44
- package/dist/workflow.esm.js +171 -67
- 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 +16 -1
- package/dist/Actor-DpTj5PFb.d.ts +0 -1
- package/dist/cpf-uAZTPUBy.esm.js +0 -61
- package/dist/index-DpTj5PFb.d.ts +0 -1
- package/dist/nationalIds-B91f_RuB.esm.js +0 -99
- package/dist/phoneFormat-JJNaWthV.esm.js +0 -75
- package/dist/tri.esm-CzTNi5Q_.esm.js +0 -3826
- package/dist/types-J6g6iKe_.d.ts +0 -6
package/dist/flow.esm.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as screenOpened, m as screenClosed, v as addEvent } from "./types-DYYMdAGv.esm.js";
|
|
2
|
+
import "./events-CP3yOzAl.esm.js";
|
|
2
3
|
import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
|
|
3
|
-
import { a as resolveDashboardModuleConfig, c as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import { n as
|
|
8
|
-
import { n as
|
|
4
|
+
import { S as mergeDashboardConfig, _ as resolveFlowModuleConfig, a as resolveDashboardModuleConfig, c as decideFlowPresets, d as stepsThatMayRunNext, f as enrichFlowModuleConfig, g as normalizeFlowModules, h as loadFlowConfigConverters, l as flowPresetAnalyticsModule, m as getRequiredWasmPipelines, n as getFlow, o as applyFlowPresets, p as getNextRequiredWasmPipelines, r as preloadDashboardFlow, s as armFlowPresets, t as completeDeferredActivation, u as getFirstFlowModuleKey, x as applyModulesConfig } from "./flowServices-rDg1bAMs.esm.js";
|
|
5
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
6
|
+
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
7
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
8
|
+
import { a as getTotalScoreStatus, i as getHandoffFinishStatus, n as classifyScoreStatus, r as getFinishStatus, t as HANDOFF_COMPLETION_TIMEOUT_MS } from "./flowCompletionService-BpeAbbXc.esm.js";
|
|
9
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CXLcOcXN.esm.js";
|
|
10
|
+
import { n as isAdvanceableError } from "./advanceableErrors-CxZyPRyh.esm.js";
|
|
9
11
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
10
12
|
const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
|
|
11
13
|
id: "noOpFlowModule",
|
|
@@ -13,6 +15,37 @@ const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
|
|
|
13
15
|
states: { finished: { type: "final" } }
|
|
14
16
|
}))();
|
|
15
17
|
//#endregion
|
|
18
|
+
//#region src/modules/flow/flowOcrSteps.ts
|
|
19
|
+
/** Prepare the standard two-ID journey without changing standalone dashboard configuration. */
|
|
20
|
+
function prepareFlowOcrSteps(flow) {
|
|
21
|
+
const modules = flow.flowModules;
|
|
22
|
+
const firstIds = modules.filter((module) => module.key === "ID" || module.key === "TUTORIAL_ID");
|
|
23
|
+
const secondIds = modules.filter((module) => module.key === "SECOND_ID");
|
|
24
|
+
const reviews = modules.filter((module) => module.key === "ID_OCR");
|
|
25
|
+
if (firstIds.length !== 1 || secondIds.length !== 1 || reviews.length !== 1) return flow;
|
|
26
|
+
const [first] = firstIds;
|
|
27
|
+
const [second] = secondIds;
|
|
28
|
+
const [review] = reviews;
|
|
29
|
+
if (review.configuration.ocrDocument !== void 0 || modules.indexOf(first) >= modules.indexOf(second) || modules.indexOf(review) < modules.indexOf(first)) return flow;
|
|
30
|
+
const reviewFor = (ocrDocument) => ({
|
|
31
|
+
...review,
|
|
32
|
+
configuration: {
|
|
33
|
+
...review.configuration,
|
|
34
|
+
ocrDocument,
|
|
35
|
+
secondId: false
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
return {
|
|
39
|
+
...flow,
|
|
40
|
+
flowModules: modules.flatMap((module) => {
|
|
41
|
+
if (module === review) return [];
|
|
42
|
+
if (module === first) return [module, reviewFor("first")];
|
|
43
|
+
if (module === second && review.configuration.secondId !== false) return [module, reviewFor("second")];
|
|
44
|
+
return [module];
|
|
45
|
+
})
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
16
49
|
//#region src/modules/flow/flowStateMachine.ts
|
|
17
50
|
/**
|
|
18
51
|
* Flow-level `ds` (Deepsight) lives on the flow, not on the module, so it has
|
|
@@ -47,7 +80,7 @@ const flowMachine = /* @__PURE__ */ (() => setup({
|
|
|
47
80
|
getFlow: context.getFlow
|
|
48
81
|
})),
|
|
49
82
|
setFlowData: assign(({ event }) => {
|
|
50
|
-
const flow = event.output;
|
|
83
|
+
const flow = prepareFlowOcrSteps(event.output);
|
|
51
84
|
return {
|
|
52
85
|
flow,
|
|
53
86
|
steps: (flow.flowModules ?? []).map((m) => m.key),
|
|
@@ -190,7 +223,9 @@ function createApi({ actor, getSnapshot, trackElementClicked }) {
|
|
|
190
223
|
function getModuleConfig(moduleKey) {
|
|
191
224
|
const snapshot = getSnapshot();
|
|
192
225
|
if (!snapshot.matches("ready")) return;
|
|
193
|
-
|
|
226
|
+
const { flow, currentStepIndex } = snapshot.context;
|
|
227
|
+
const activeModule = flow?.flowModules[currentStepIndex];
|
|
228
|
+
return (activeModule?.key === moduleKey ? activeModule : flow?.flowModules.find((m) => m.key === moduleKey))?.configuration;
|
|
194
229
|
}
|
|
195
230
|
function isModuleEnabled(moduleKey) {
|
|
196
231
|
const snapshot = getSnapshot();
|
|
@@ -255,8 +290,9 @@ function createApi({ actor, getSnapshot, trackElementClicked }) {
|
|
|
255
290
|
},
|
|
256
291
|
/**
|
|
257
292
|
* Gets the configuration for a specific module by its key.
|
|
293
|
+
* Returns the active occurrence when the current step has that key.
|
|
258
294
|
* Useful for accessing config of modules other than the current one.
|
|
259
|
-
* @param moduleKey - The
|
|
295
|
+
* @param moduleKey - The module key
|
|
260
296
|
* @returns The module configuration or `undefined` if not found or not in `ready` state
|
|
261
297
|
*/
|
|
262
298
|
getModuleConfig,
|
|
@@ -342,6 +378,15 @@ function createModuleLoader(registry) {
|
|
|
342
378
|
}
|
|
343
379
|
//#endregion
|
|
344
380
|
//#region src/modules/flow/orchestratedFlowStateMachine.ts
|
|
381
|
+
/**
|
|
382
|
+
* Whether only the step's own machine can end it: a host's `completeModule()`,
|
|
383
|
+
* or a continuable `errorModule()`, is dropped while it runs (owner decision
|
|
384
|
+
* 12). Today that is the identity search, whose answer the reuse step after it
|
|
385
|
+
* reads.
|
|
386
|
+
*/
|
|
387
|
+
function endsOnlyThroughItsMachine(step) {
|
|
388
|
+
return step === "IDENTITY_SEARCH";
|
|
389
|
+
}
|
|
345
390
|
function getModuleConfig(module, flow) {
|
|
346
391
|
if (!module || !flow) return {};
|
|
347
392
|
return resolveFlowModuleConfig(module, flow);
|
|
@@ -363,10 +408,12 @@ function createBaseContext(context, isHomeContinueLoading) {
|
|
|
363
408
|
getFinishStatus: context.getFinishStatus,
|
|
364
409
|
enableHome: context.enableHome,
|
|
365
410
|
finishStatus: void 0,
|
|
411
|
+
completedOnMobile: false,
|
|
366
412
|
isHomeContinueLoading,
|
|
367
413
|
deferActivation: context.deferActivation,
|
|
368
414
|
activationResolved: false,
|
|
369
|
-
skipFaceMatch: false
|
|
415
|
+
skipFaceMatch: false,
|
|
416
|
+
armedPresets: []
|
|
370
417
|
};
|
|
371
418
|
}
|
|
372
419
|
function createInitialContext(input) {
|
|
@@ -388,22 +435,41 @@ function createInitialContext(input) {
|
|
|
388
435
|
function homeScreenEnabled(context, flow) {
|
|
389
436
|
return context.enableHome === true && flow?.disableLaunchScreen !== true && context.isHomeContinueLoading !== true;
|
|
390
437
|
}
|
|
438
|
+
/**
|
|
439
|
+
* Whether a machine is registered for a module key, eagerly or lazily. Reads
|
|
440
|
+
* the registries when it is called: `<incode-flow>` fills its lazy registry
|
|
441
|
+
* inside `getFlow`, so a check made after `getFlow` sees the keys it added.
|
|
442
|
+
*/
|
|
443
|
+
function canResolveModule(context, key) {
|
|
444
|
+
return context.registeredModules[key] != null || context.lazyRegisteredModules[key] != null;
|
|
445
|
+
}
|
|
391
446
|
function shouldEnterHome(context) {
|
|
392
447
|
if (!homeScreenEnabled(context, context.flow)) return false;
|
|
393
448
|
const firstRealIndex = context.steps[0] === "REDIRECT_TO_MOBILE" ? 1 : 0;
|
|
394
449
|
return context.currentStepIndex === firstRealIndex;
|
|
395
450
|
}
|
|
396
451
|
const prefetchedLazyModules = /* @__PURE__ */ new WeakSet();
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
452
|
+
/**
|
|
453
|
+
* The steps that can run after the current one: the next step, or, on a
|
|
454
|
+
* step where a preset decides the path, the next step on each path.
|
|
455
|
+
*/
|
|
456
|
+
function getStepsThatMayRunNext(context) {
|
|
457
|
+
return stepsThatMayRunNext({
|
|
458
|
+
armedPresets: context.armedPresets,
|
|
459
|
+
steps: context.steps,
|
|
460
|
+
currentStepIndex: context.currentStepIndex
|
|
405
461
|
});
|
|
406
462
|
}
|
|
463
|
+
function prefetchNextLazyModules(context) {
|
|
464
|
+
for (const nextStep of getStepsThatMayRunNext(context)) {
|
|
465
|
+
const nextLazyModule = context.lazyRegisteredModules[nextStep];
|
|
466
|
+
if (!nextLazyModule || prefetchedLazyModules.has(nextLazyModule)) continue;
|
|
467
|
+
prefetchedLazyModules.add(nextLazyModule);
|
|
468
|
+
nextLazyModule().catch(() => {
|
|
469
|
+
prefetchedLazyModules.delete(nextLazyModule);
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
}
|
|
407
473
|
const homeContinueOn = { HOME_CONTINUE: { actions: "setHomeContinueLoading" } };
|
|
408
474
|
const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
409
475
|
types: {
|
|
@@ -412,10 +478,23 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
412
478
|
input: {}
|
|
413
479
|
},
|
|
414
480
|
actors: {
|
|
481
|
+
resolveHandoffCompletion: fromPromise(({ signal }) => getHandoffFinishStatus(signal)),
|
|
415
482
|
fetchFlow: fromPromise(async ({ input, signal }) => {
|
|
416
|
-
const
|
|
483
|
+
const served = prepareFlowOcrSteps(await retryAfterReconnect(() => input.getFlow(signal), signal));
|
|
484
|
+
const arming = armFlowPresets(served, input.canResolve);
|
|
485
|
+
if (arming.status === "misconfigured") return {
|
|
486
|
+
flow: served,
|
|
487
|
+
arming
|
|
488
|
+
};
|
|
489
|
+
const flow = arming.armedPresets.length > 0 ? {
|
|
490
|
+
...served,
|
|
491
|
+
flowModules: arming.modules
|
|
492
|
+
} : served;
|
|
417
493
|
await loadFlowConfigConverters(flow);
|
|
418
|
-
return
|
|
494
|
+
return {
|
|
495
|
+
flow,
|
|
496
|
+
arming
|
|
497
|
+
};
|
|
419
498
|
}),
|
|
420
499
|
notifyBackend: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getFinishStatus(input.flowId, signal), signal)),
|
|
421
500
|
runChildModule,
|
|
@@ -440,7 +519,7 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
440
519
|
setHomeContinueLoading: assign({ isHomeContinueLoading: true }),
|
|
441
520
|
clearHomeContinueLoading: assign({ isHomeContinueLoading: false }),
|
|
442
521
|
setFlowData: assign(({ event }) => {
|
|
443
|
-
const flow = event.output;
|
|
522
|
+
const { flow, arming } = event.output;
|
|
444
523
|
const flowModules = flow.flowModules ?? [];
|
|
445
524
|
const firstModule = flowModules[0];
|
|
446
525
|
const config = getModuleConfig(firstModule, flow);
|
|
@@ -450,11 +529,88 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
450
529
|
currentStepIndex: flowModules.length > 0 ? 0 : -1,
|
|
451
530
|
currentStep: firstModule?.key,
|
|
452
531
|
config,
|
|
453
|
-
currentModuleMachine: void 0
|
|
532
|
+
currentModuleMachine: void 0,
|
|
533
|
+
armedPresets: arming.status === "armed" ? arming.armedPresets : []
|
|
534
|
+
};
|
|
535
|
+
}),
|
|
536
|
+
setMisconfiguredFlowError: assign(({ event }) => {
|
|
537
|
+
const { arming } = event.output;
|
|
538
|
+
if (arming.status !== "misconfigured") return {};
|
|
539
|
+
return {
|
|
540
|
+
error: arming.message,
|
|
541
|
+
moduleErrorCode: arming.moduleErrorCode
|
|
542
|
+
};
|
|
543
|
+
}),
|
|
544
|
+
reportArmedPresets: ({ event }) => {
|
|
545
|
+
const { flow, arming } = event.output;
|
|
546
|
+
if (arming.status !== "armed") return;
|
|
547
|
+
const steps = flow.flowModules.map((module) => module.key);
|
|
548
|
+
for (const preset of arming.armedPresets) {
|
|
549
|
+
const module = flowPresetAnalyticsModule(preset);
|
|
550
|
+
const screenName = `${module}.started`;
|
|
551
|
+
screenOpened(module, screenName, { steps });
|
|
552
|
+
screenClosed(module, screenName);
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
reportMisconfiguredFlow: ({ event }) => {
|
|
556
|
+
const { arming } = event.output;
|
|
557
|
+
if (arming.status !== "misconfigured") return;
|
|
558
|
+
addEvent({
|
|
559
|
+
code: "errorTriggered",
|
|
560
|
+
module: flowPresetAnalyticsModule(arming.preset),
|
|
561
|
+
payload: {
|
|
562
|
+
errorCode: arming.moduleErrorCode,
|
|
563
|
+
advanced: false,
|
|
564
|
+
missing: arming.missing,
|
|
565
|
+
unsupported: arming.unsupported,
|
|
566
|
+
unregistered: arming.unregistered
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
},
|
|
570
|
+
reportPresetDecisions: ({ context, event }) => {
|
|
571
|
+
const ending = event;
|
|
572
|
+
const decisions = decideFlowPresets({
|
|
573
|
+
armedPresets: context.armedPresets,
|
|
574
|
+
steps: context.steps,
|
|
575
|
+
currentStepIndex: context.currentStepIndex,
|
|
576
|
+
ending: {
|
|
577
|
+
output: ending.output,
|
|
578
|
+
moduleErrorCode: ending.moduleErrorCode
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
for (const decision of decisions) {
|
|
582
|
+
const screenName = `${decision.analyticsModule}.${decision.outcome}`;
|
|
583
|
+
screenOpened(decision.analyticsModule, screenName, {
|
|
584
|
+
decidedAfter: context.currentStep,
|
|
585
|
+
errorCode: ending.moduleErrorCode,
|
|
586
|
+
skippedModules: decision.skipped.map((index) => context.steps[index])
|
|
587
|
+
});
|
|
588
|
+
screenClosed(decision.analyticsModule, screenName);
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
removeSkippedPresetMembers: assign(({ context, event }) => {
|
|
592
|
+
const ending = event;
|
|
593
|
+
const removed = applyFlowPresets({
|
|
594
|
+
armedPresets: context.armedPresets,
|
|
595
|
+
steps: context.steps,
|
|
596
|
+
currentStepIndex: context.currentStepIndex,
|
|
597
|
+
ending: {
|
|
598
|
+
output: ending.output,
|
|
599
|
+
moduleErrorCode: ending.moduleErrorCode
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
if (removed.length === 0 || !context.flow) return {};
|
|
603
|
+
const kept = (_, index) => !removed.includes(index);
|
|
604
|
+
return {
|
|
605
|
+
steps: context.steps.filter(kept),
|
|
606
|
+
flow: {
|
|
607
|
+
...context.flow,
|
|
608
|
+
flowModules: context.flow.flowModules.filter(kept)
|
|
609
|
+
}
|
|
454
610
|
};
|
|
455
611
|
}),
|
|
456
612
|
setActivatedFlow: assign(({ context, event }) => {
|
|
457
|
-
const flow = event.output;
|
|
613
|
+
const flow = prepareFlowOcrSteps(event.output);
|
|
458
614
|
const flowModules = flow.flowModules ?? [];
|
|
459
615
|
const steps = flowModules.map((m) => m.key);
|
|
460
616
|
let insertedAt = steps.findIndex((key, i) => key !== context.steps[i]);
|
|
@@ -503,11 +659,22 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
503
659
|
}),
|
|
504
660
|
setCurrentModuleMachine: assign(({ event }) => ({ currentModuleMachine: event.output })),
|
|
505
661
|
prefetchNextModule: ({ context }) => {
|
|
506
|
-
|
|
662
|
+
prefetchNextLazyModules(context);
|
|
507
663
|
},
|
|
508
664
|
setFinishStatus: assign(({ event }) => ({ finishStatus: event.output })),
|
|
509
665
|
setFinishStatusFailed: assign({ moduleErrorCode: "FINISH_STATUS_FAILED" }),
|
|
510
666
|
setModuleErrorCode: assign(({ event }) => ({ moduleErrorCode: event.moduleErrorCode })),
|
|
667
|
+
trackFailingModuleError: ({ context, event }) => {
|
|
668
|
+
const { moduleErrorCode } = event;
|
|
669
|
+
addEvent({
|
|
670
|
+
code: "errorTriggered",
|
|
671
|
+
module: context.currentStep,
|
|
672
|
+
payload: moduleErrorCode === void 0 ? { advanced: false } : {
|
|
673
|
+
errorCode: moduleErrorCode,
|
|
674
|
+
advanced: false
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
},
|
|
511
678
|
trackAdvanceableModuleError: ({ context, event }) => {
|
|
512
679
|
addEvent({
|
|
513
680
|
code: "errorTriggered",
|
|
@@ -521,26 +688,30 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
521
688
|
},
|
|
522
689
|
guards: {
|
|
523
690
|
isAdvanceableModuleError: ({ event }) => isAdvanceableError(event.moduleErrorCode),
|
|
524
|
-
|
|
691
|
+
isEarlySearchCompletion: ({ context, event }) => endsOnlyThroughItsMachine(context.currentStep) && event.fromChild !== true,
|
|
692
|
+
isAdvanceableSearchError: ({ context, event }) => endsOnlyThroughItsMachine(context.currentStep) && isAdvanceableError(event.moduleErrorCode),
|
|
693
|
+
isMisconfiguredFlow: ({ event }) => "output" in event && event.output.arming.status === "misconfigured",
|
|
525
694
|
isLastStep: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex === context.steps.length - 1,
|
|
526
695
|
canGoNext: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex < context.steps.length - 1,
|
|
696
|
+
isRedirectToMobileStep: ({ context }) => context.currentStep === "REDIRECT_TO_MOBILE",
|
|
527
697
|
isOnboardingFinishedSignal: ({ event }) => event.output?.action === "onboardingFinished",
|
|
528
698
|
shouldEnterHome: ({ context }) => shouldEnterHome(context),
|
|
529
699
|
needsActivation: ({ context }) => context.deferActivation && !context.activationResolved && context.currentStep !== "REDIRECT_TO_MOBILE",
|
|
530
700
|
activatesBeforeFirstModule: ({ context, event }) => {
|
|
531
701
|
if (!("output" in event)) return false;
|
|
532
702
|
if (!context.deferActivation || context.activationResolved) return false;
|
|
533
|
-
const flow = event.output;
|
|
703
|
+
const { flow } = event.output;
|
|
534
704
|
const firstModuleKey = flow.flowModules?.[0]?.key;
|
|
535
705
|
if (!firstModuleKey || firstModuleKey === "REDIRECT_TO_MOBILE") return false;
|
|
536
|
-
if (!(context
|
|
706
|
+
if (!canResolveModule(context, firstModuleKey)) return false;
|
|
537
707
|
return !homeScreenEnabled(context, flow);
|
|
538
708
|
},
|
|
539
709
|
hasModule: ({ context, event }) => {
|
|
540
710
|
if (!("output" in event)) return false;
|
|
541
|
-
const
|
|
711
|
+
const { flow } = event.output;
|
|
712
|
+
const firstModuleKey = flow.flowModules?.[0]?.key;
|
|
542
713
|
if (!firstModuleKey) return false;
|
|
543
|
-
return context
|
|
714
|
+
return canResolveModule(context, firstModuleKey);
|
|
544
715
|
},
|
|
545
716
|
hasCurrentModuleMachine: ({ event }) => {
|
|
546
717
|
if (!("output" in event)) return false;
|
|
@@ -563,22 +734,31 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
563
734
|
invoke: {
|
|
564
735
|
id: "fetchFlow",
|
|
565
736
|
src: "fetchFlow",
|
|
566
|
-
input: ({ context }) => ({
|
|
737
|
+
input: ({ context }) => ({
|
|
738
|
+
getFlow: context.getFlow,
|
|
739
|
+
canResolve: (key) => canResolveModule(context, key)
|
|
740
|
+
}),
|
|
567
741
|
onDone: [
|
|
742
|
+
{
|
|
743
|
+
target: "error",
|
|
744
|
+
guard: "isMisconfiguredFlow",
|
|
745
|
+
actions: ["setMisconfiguredFlowError", "reportMisconfiguredFlow"]
|
|
746
|
+
},
|
|
568
747
|
{
|
|
569
748
|
target: "resolvingActivation",
|
|
570
749
|
guard: "activatesBeforeFirstModule",
|
|
571
|
-
actions: "setFlowData"
|
|
750
|
+
actions: ["setFlowData", "reportArmedPresets"]
|
|
572
751
|
},
|
|
573
752
|
{
|
|
574
753
|
target: "resolvingModule",
|
|
575
754
|
guard: "hasModule",
|
|
576
|
-
actions: "setFlowData"
|
|
755
|
+
actions: ["setFlowData", "reportArmedPresets"]
|
|
577
756
|
},
|
|
578
757
|
{
|
|
579
758
|
target: "error",
|
|
580
759
|
actions: assign({ error: ({ event }) => {
|
|
581
|
-
const
|
|
760
|
+
const { flow } = event.output;
|
|
761
|
+
const firstModuleKey = flow.flowModules?.[0]?.key;
|
|
582
762
|
return firstModuleKey ? `No registered module found for: ${firstModuleKey}` : "No registered module found: flow has no modules";
|
|
583
763
|
} })
|
|
584
764
|
}
|
|
@@ -687,13 +867,6 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
687
867
|
config: context.config
|
|
688
868
|
};
|
|
689
869
|
},
|
|
690
|
-
onDone: [{
|
|
691
|
-
target: "completing",
|
|
692
|
-
guard: "isLastStep"
|
|
693
|
-
}, {
|
|
694
|
-
target: "resolvingModule",
|
|
695
|
-
actions: "incrementStep"
|
|
696
|
-
}],
|
|
697
870
|
onError: {
|
|
698
871
|
target: "error",
|
|
699
872
|
actions: "setError"
|
|
@@ -701,50 +874,78 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
701
874
|
},
|
|
702
875
|
on: {
|
|
703
876
|
MODULE_COMPLETE: [
|
|
877
|
+
{ guard: "isEarlySearchCompletion" },
|
|
704
878
|
{
|
|
705
|
-
target: "
|
|
879
|
+
target: "resolvingHandoffCompletion",
|
|
706
880
|
guard: "isOnboardingFinishedSignal"
|
|
707
881
|
},
|
|
708
882
|
{
|
|
709
|
-
target: "
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
883
|
+
target: "advancing",
|
|
884
|
+
actions: [
|
|
885
|
+
"persistSkipFaceMatch",
|
|
886
|
+
"reportPresetDecisions",
|
|
887
|
+
"removeSkippedPresetMembers"
|
|
888
|
+
]
|
|
715
889
|
}
|
|
716
890
|
],
|
|
717
891
|
MODULE_ERROR: [
|
|
718
|
-
{
|
|
719
|
-
guard: "isAdvanceableModuleErrorOnLastStep",
|
|
720
|
-
target: "completing",
|
|
721
|
-
actions: ["setModuleErrorCode", "trackAdvanceableModuleError"]
|
|
722
|
-
},
|
|
892
|
+
{ guard: "isAdvanceableSearchError" },
|
|
723
893
|
{
|
|
724
894
|
guard: "isAdvanceableModuleError",
|
|
725
|
-
target: "
|
|
895
|
+
target: "advancing",
|
|
726
896
|
actions: [
|
|
727
897
|
"setModuleErrorCode",
|
|
728
898
|
"trackAdvanceableModuleError",
|
|
729
|
-
"
|
|
899
|
+
"reportPresetDecisions",
|
|
900
|
+
"removeSkippedPresetMembers"
|
|
730
901
|
]
|
|
731
902
|
},
|
|
732
903
|
{
|
|
733
904
|
target: "error",
|
|
734
|
-
actions: [
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
905
|
+
actions: [
|
|
906
|
+
"setModuleErrorCode",
|
|
907
|
+
"trackFailingModuleError",
|
|
908
|
+
assign(({ event }) => {
|
|
909
|
+
const rawError = event.error;
|
|
910
|
+
return { error: rawError === void 0 ? void 0 : String(rawError) };
|
|
911
|
+
})
|
|
912
|
+
]
|
|
738
913
|
}
|
|
739
914
|
],
|
|
740
915
|
COMPLETE_FLOW: { target: "completing" },
|
|
741
|
-
FINISH_FLOW: {
|
|
916
|
+
FINISH_FLOW: [{
|
|
917
|
+
guard: "isRedirectToMobileStep",
|
|
918
|
+
target: "resolvingHandoffCompletion"
|
|
919
|
+
}, { target: "finished" }],
|
|
742
920
|
RESET: {
|
|
743
921
|
target: "idle",
|
|
744
922
|
actions: "resetContext"
|
|
745
923
|
}
|
|
746
924
|
}
|
|
747
925
|
},
|
|
926
|
+
advancing: { always: [{
|
|
927
|
+
target: "completing",
|
|
928
|
+
guard: "isLastStep"
|
|
929
|
+
}, {
|
|
930
|
+
target: "resolvingModule",
|
|
931
|
+
actions: "incrementStep"
|
|
932
|
+
}] },
|
|
933
|
+
resolvingHandoffCompletion: {
|
|
934
|
+
entry: assign({ completedOnMobile: true }),
|
|
935
|
+
after: { [HANDOFF_COMPLETION_TIMEOUT_MS]: "finished" },
|
|
936
|
+
invoke: {
|
|
937
|
+
src: "resolveHandoffCompletion",
|
|
938
|
+
onDone: {
|
|
939
|
+
target: "finished",
|
|
940
|
+
actions: "setFinishStatus"
|
|
941
|
+
},
|
|
942
|
+
onError: { target: "finished" }
|
|
943
|
+
},
|
|
944
|
+
on: { RESET: {
|
|
945
|
+
target: "idle",
|
|
946
|
+
actions: "resetContext"
|
|
947
|
+
} }
|
|
948
|
+
},
|
|
748
949
|
completing: {
|
|
749
950
|
invoke: {
|
|
750
951
|
id: "notifyBackend",
|
|
@@ -785,7 +986,7 @@ function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
|
|
|
785
986
|
const effectiveEnableHome = enableHome === true && serverDisablesLaunch === false;
|
|
786
987
|
const isTerminal = mappedStatus === "finished" || mappedStatus === "error";
|
|
787
988
|
const awaitingOrchestrator = mappedStatus === "idle" || mappedStatus === "loading";
|
|
788
|
-
const isCompletingPhase =
|
|
989
|
+
const isCompletingPhase = mappedStatus === "completing";
|
|
789
990
|
const firstRealIndex = snapshot.context.steps[0] === "REDIRECT_TO_MOBILE" ? 1 : 0;
|
|
790
991
|
const isAtFirstRealModule = snapshot.context.currentStepIndex === firstRealIndex;
|
|
791
992
|
const isResolvingHomeAnchor = (snapshot.value === "resolvingModule" || snapshot.value === "resolvingActivation") && effectiveEnableHome && isAtFirstRealModule;
|
|
@@ -802,15 +1003,16 @@ function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
|
|
|
802
1003
|
presentation: {
|
|
803
1004
|
isAwaitingReady: awaitingOrchestrator,
|
|
804
1005
|
lazyModuleKey,
|
|
805
|
-
shouldPrefetchHome
|
|
1006
|
+
shouldPrefetchHome,
|
|
1007
|
+
prefetchModuleKeys: lazyModuleKey === void 0 ? [] : getStepsThatMayRunNext(snapshot.context)
|
|
806
1008
|
}
|
|
807
1009
|
};
|
|
808
1010
|
}
|
|
809
1011
|
function getMappedStatus(snapshot) {
|
|
810
1012
|
const { value } = snapshot;
|
|
811
1013
|
if (value === "idle") return "idle";
|
|
812
|
-
if (value === "completing") return "completing";
|
|
813
|
-
if (value === "loading" || value === "resolvingModule" || value === "resolvingActivation" || typeof value === "object") return "loading";
|
|
1014
|
+
if (value === "completing" || value === "resolvingHandoffCompletion") return "completing";
|
|
1015
|
+
if (value === "loading" || value === "resolvingModule" || value === "resolvingActivation" || value === "advancing" || typeof value === "object") return "loading";
|
|
814
1016
|
if (value === "finished") return "finished";
|
|
815
1017
|
if (value === "error") return "error";
|
|
816
1018
|
return "ready";
|
|
@@ -837,6 +1039,7 @@ function mapOrchestratedFlowState(snapshot, uiOptions) {
|
|
|
837
1039
|
if (mappedStatus === "finished") return {
|
|
838
1040
|
status: "finished",
|
|
839
1041
|
flow: context.flow ?? {},
|
|
1042
|
+
...context.completedOnMobile ? { completedOnMobile: true } : {},
|
|
840
1043
|
finishStatus: context.finishStatus ?? {
|
|
841
1044
|
redirectionUrl: "",
|
|
842
1045
|
action: "none",
|
|
@@ -906,12 +1109,14 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
|
|
|
906
1109
|
function getCanNext() {
|
|
907
1110
|
const snapshot = getSnapshot();
|
|
908
1111
|
const { currentStepIndex, steps } = snapshot.context;
|
|
909
|
-
return snapshot.value === "runningModule" && currentStepIndex >= 0 && currentStepIndex < steps.length - 1;
|
|
1112
|
+
return snapshot.value === "runningModule" && currentStepIndex >= 0 && currentStepIndex < steps.length - 1 && !endsOnlyThroughItsMachine(snapshot.context.currentStep);
|
|
910
1113
|
}
|
|
911
1114
|
function getModuleConfig(moduleKey) {
|
|
912
1115
|
const snapshot = getSnapshot();
|
|
913
1116
|
if (snapshot.value !== "runningModule") return;
|
|
914
|
-
|
|
1117
|
+
const { flow, currentStepIndex } = snapshot.context;
|
|
1118
|
+
const activeModule = flow?.flowModules[currentStepIndex];
|
|
1119
|
+
return (activeModule?.key === moduleKey ? activeModule : flow?.flowModules.find((m) => m.key === moduleKey))?.configuration;
|
|
915
1120
|
}
|
|
916
1121
|
function isModuleEnabled(moduleKey) {
|
|
917
1122
|
const snapshot = getSnapshot();
|
|
@@ -1002,8 +1207,18 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
|
|
|
1002
1207
|
* Prefer using the typed methods (completeModule, errorModule) when possible.
|
|
1003
1208
|
*/
|
|
1004
1209
|
send(event) {
|
|
1210
|
+
if ("fromChild" in event) {
|
|
1211
|
+
const { fromChild: _fromChild, ...rest } = event;
|
|
1212
|
+
actor.send(rest);
|
|
1213
|
+
return;
|
|
1214
|
+
}
|
|
1005
1215
|
actor.send(event);
|
|
1006
1216
|
},
|
|
1217
|
+
/**
|
|
1218
|
+
* True while a step runs that `completeModule()` would move past to
|
|
1219
|
+
* another step. False on the last step, and on a step only its own machine
|
|
1220
|
+
* can end, such as the identity search.
|
|
1221
|
+
*/
|
|
1007
1222
|
get canNext() {
|
|
1008
1223
|
return getCanNext();
|
|
1009
1224
|
},
|
|
@@ -1047,8 +1262,10 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
|
|
|
1047
1262
|
};
|
|
1048
1263
|
}
|
|
1049
1264
|
function createOrchestratedFlowActor(options) {
|
|
1265
|
+
const getFlow$1 = options.getFlow ?? getFlow;
|
|
1266
|
+
const { modulesConfig } = options;
|
|
1050
1267
|
return createActor(orchestratedFlowMachine, { input: {
|
|
1051
|
-
getFlow:
|
|
1268
|
+
getFlow: modulesConfig ? async (signal) => applyModulesConfig(await getFlow$1(signal), modulesConfig) : getFlow$1,
|
|
1052
1269
|
modules: options.modules,
|
|
1053
1270
|
lazyModules: options.lazyModules,
|
|
1054
1271
|
getFinishStatus: options.getFinishStatus,
|
|
@@ -1067,4 +1284,4 @@ function createOrchestratedFlowManager(options) {
|
|
|
1067
1284
|
}), { getInterviewId: options.getInterviewId });
|
|
1068
1285
|
}
|
|
1069
1286
|
//#endregion
|
|
1070
|
-
export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|
|
1287
|
+
export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFirstFlowModuleKey, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|
package/dist/{flowCompletionService-CcCnPs_T.esm.js → flowCompletionService-BpeAbbXc.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
|
+
import { i as toIncodeApiError } from "./apiError-BamZ815u.esm.js";
|
|
3
3
|
//#region src/modules/flow/flowCompletionService.ts
|
|
4
4
|
const getFinishStatus = async (flowId, signal) => {
|
|
5
5
|
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
@@ -13,6 +13,27 @@ const getFinishStatus = async (flowId, signal) => {
|
|
|
13
13
|
toIncodeApiError(endpoints.finishStatus, error);
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
+
const HANDOFF_COMPLETION_TIMEOUT_MS = 1e4;
|
|
17
|
+
/** Mobile already finished the session; read its redirect without finishing again. */
|
|
18
|
+
async function getHandoffFinishStatus(signal) {
|
|
19
|
+
try {
|
|
20
|
+
const data = (await api.get(endpoints.redirectionUrl, {
|
|
21
|
+
signal,
|
|
22
|
+
timeout: HANDOFF_COMPLETION_TIMEOUT_MS
|
|
23
|
+
})).data;
|
|
24
|
+
let redirectionUrl = "";
|
|
25
|
+
if (typeof data === "object" && data !== null && "redirectionUrl" in data && typeof data.redirectionUrl === "string") redirectionUrl = data.redirectionUrl;
|
|
26
|
+
return {
|
|
27
|
+
redirectionUrl,
|
|
28
|
+
action: "none",
|
|
29
|
+
scoreStatus: "UNKNOWN",
|
|
30
|
+
endScreenTitle: null,
|
|
31
|
+
endScreenText: null
|
|
32
|
+
};
|
|
33
|
+
} catch (error) {
|
|
34
|
+
toIncodeApiError(endpoints.redirectionUrl, error);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
16
37
|
const SCORE_VARIANTS = {
|
|
17
38
|
OK: "success",
|
|
18
39
|
WARN: "success",
|
|
@@ -36,4 +57,4 @@ async function getTotalScoreStatus(signal) {
|
|
|
36
57
|
}
|
|
37
58
|
}
|
|
38
59
|
//#endregion
|
|
39
|
-
export {
|
|
60
|
+
export { getTotalScoreStatus as a, getHandoffFinishStatus as i, classifyScoreStatus as n, getFinishStatus as r, HANDOFF_COMPLETION_TIMEOUT_MS as t };
|