@incodetech/core 2.2.0 → 2.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.txt +281 -0
- package/dist/BaseWasmProvider-Dyi6dKp1.d.ts +65 -0
- package/dist/{BrowserDiagnosticsCryptoProvider-B8vorxN5.esm.js → BrowserDiagnosticsCryptoProvider-CU6kBvqv.esm.js} +1 -1
- package/dist/{BrowserVisibilityObserverProvider-BX1BiLDK.esm.js → BrowserVisibilityObserverProvider-BrJN1B8A.esm.js} +2 -0
- package/dist/FaceDetectionProvider-BfhWkK90.esm.js +431 -0
- package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +36 -0
- package/dist/{IIdCaptureCapability-DHTT3FC2.d.ts → IIdCaptureCapability-RNiFhvXR.d.ts} +7 -33
- package/dist/IWasmUtilCapability-CNWRl7jr.d.ts +117 -0
- package/dist/{MotionSensorProvider-DGiV77J_.esm.js → MotionSensorProvider-BgTYwg9L.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-D2XcXCZ4.esm.js → StreamCanvasCapture-C9jtgBdT.esm.js} +2 -2
- package/dist/{deepsightService-DLVQS_RH.d.ts → StreamCanvasCapture-_8gdW5Lk.d.ts} +54 -41
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{addressSearch-D1XpBdUS.esm.js → addressSearch-DyHGgeX8.esm.js} +1 -1
- package/dist/advanceableErrors-CpF2cBy6.esm.js +21 -0
- package/dist/ae-signature.d.ts +4 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQFNgSPt.esm.js → antifraudManager-DNkw66oW.esm.js} +2 -2
- package/dist/{antifraudStateMachine-Bf_JVNwn.esm.js → antifraudStateMachine-DBeq47D2.esm.js} +1 -1
- package/dist/{apiError-BA1d_au0.esm.js → apiError-Budb6m6w.esm.js} +14 -2
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BBMGTcwW.d.ts → authenticationManager-CjXBjC-c.d.ts} +7 -1
- package/dist/{authenticationManager-zh9TC62P.esm.js → authenticationManager-cMXhG70r.esm.js} +5 -5
- package/dist/{authenticationStateMachine-xzi-vnvE.esm.js → authenticationStateMachine-MOYz4HCf.esm.js} +6 -62
- package/dist/avatar.d.ts +1 -2
- package/dist/avatar.esm.js +1 -1
- package/dist/{backCameraStream-CUeYm5eu.esm.js → backCameraStream-BOtyQowf.esm.js} +83 -22
- package/dist/{camera-_2sXMXiF.esm.js → camera-sIa9ceW2.esm.js} +19 -1
- package/dist/camera.esm.js +1 -1
- package/dist/{canvas-E1zGkel4.esm.js → canvas-BxFzWTt-.esm.js} +19 -0
- package/dist/certificate-issuance.d.ts +2 -302
- package/dist/certificate-issuance.esm.js +3 -66
- package/dist/certificateIssuanceManager-C3-CI0_s.esm.js +69 -0
- package/dist/certificateIssuanceManager-DCgEidHz.d.ts +312 -0
- package/dist/{certificateIssuanceStateMachine-D_R92TYu.esm.js → certificateIssuanceStateMachine-CxqS_nD-.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-BxjpLZAG.esm.js → consentManager-B6E1XJDw.esm.js} +2 -2
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-BhYFeKiG.d.ts} +4 -4
- package/dist/{consentStateMachine-D9D4ON8Z.esm.js → consentStateMachine-DTSfdGiW.esm.js} +1 -1
- package/dist/createCameraCycleOwnership-CX3hJGKc.esm.js +826 -0
- package/dist/{createFaceAvatar-DQKaRise.esm.js → createFaceAvatar-BNHdeFj8.esm.js} +2 -2
- package/dist/createFaceAvatar-BlcTYgJv.d.ts +497 -0
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-CGT0V6RV.esm.js → crossDocumentDataMatchManager-9XhFVZ5S.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-6Nmkn5u1.esm.js → curpValidationManager-DbIMYFcJ.esm.js} +2 -2
- package/dist/{curpValidationManager-DVGr7Fq7.d.ts → curpValidationManager-SSKNrm5Z.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Ds7KMacK.esm.js → curpValidationStateMachine-g5kMfuLj.esm.js} +1 -1
- package/dist/custom-fields.d.ts +2 -114
- package/dist/custom-fields.esm.js +2 -232
- package/dist/custom-watchlist.d.ts +2 -51
- package/dist/custom-watchlist.esm.js +3 -70
- package/dist/customFieldsManager-8-W2KY4n.d.ts +141 -0
- package/dist/customFieldsManager-CzWZTkW-.esm.js +264 -0
- package/dist/customWatchlistManager-DWTED5Ur.esm.js +73 -0
- package/dist/customWatchlistManager-PBWHr_oM.d.ts +64 -0
- package/dist/{customWatchlistStateMachine-YWSgKLbF.esm.js → customWatchlistStateMachine-DOQou6TW.esm.js} +1 -1
- package/dist/{deepsightLoader--wMKWECS.esm.js → deepsightLoader-DDv3vhXU.esm.js} +27 -71
- package/dist/device.d.ts +25 -2
- package/dist/device.esm.js +69 -7
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DsQQhWry.esm.js → documentCaptureManager-CwAiM9WY.esm.js} +2 -2
- package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DensIj5F.d.ts} +83 -83
- package/dist/{documentCaptureStateMachine-BM4Ex_5x.esm.js → documentCaptureStateMachine-DfGOBapD.esm.js} +5 -5
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-fFVIRBNv.esm.js → dynamicFormsManager-BbS-XMFc.esm.js} +16 -5
- package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-D5R_uxLQ.d.ts} +25 -3
- package/dist/{dynamicFormsStateMachine-D6D7oEYk.esm.js → dynamicFormsStateMachine-D8zHBCh4.esm.js} +35 -3
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-Y3MkoXpC.esm.js → ekybManager-5aiac8wL.esm.js} +2 -2
- package/dist/{ekybStateMachine-3nlnqdlr.esm.js → ekybStateMachine-Bn2IE9rx.esm.js} +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-DgT48ky6.esm.js → ekycManager-BlQ-Qj4E.esm.js} +2 -2
- package/dist/{ekycStateMachine-CQwqiR-R.esm.js → ekycStateMachine-CshSNJhh.esm.js} +2 -2
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +2 -2
- package/dist/{electronicSignatureManager-DGbAJ00W.esm.js → electronicSignatureManager-BJJH0Tvi.esm.js} +357 -51
- package/dist/electronicSignatureManager-Ds-KEVTq.d.ts +2786 -0
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BY0jeYwR.esm.js → emailManager-bR1N5rV_.esm.js} +2 -2
- package/dist/{emailStateMachine-Crw8QVmc.esm.js → emailStateMachine-Bc_6oIYw.esm.js} +1 -1
- package/dist/{endpoints-CCzL3XD_.esm.js → endpoints-B-3Q-LUw.esm.js} +24 -10
- package/dist/{events-DYiyoSlx.esm.js → events-ijlbX_Wx.esm.js} +2 -2
- package/dist/events.d.ts +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +24 -64
- package/dist/extensibility.esm.js +35 -29
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-CVnZ0fa5.esm.js → faceCaptureManagerFactory-B7Ms6pSs.esm.js} +68 -7
- package/dist/{faceCaptureManagerFactory-BxWPpxyd.d.ts → faceCaptureManagerFactory-BeUl8fl1.d.ts} +86 -54
- package/dist/faceCaptureSetup-bkAlr5d8.esm.js +2067 -0
- package/dist/{faceMatchManager-Ri4UbNz0.esm.js → faceMatchManager-Bmv0HzuY.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-20DdZ3jg.esm.js → faceMatchStateMachine-mRIHQ3dA.esm.js} +1 -1
- package/dist/{feature-management-CPQ4qv3F.esm.js → feature-management-E0mq0pMs.esm.js} +32 -7
- package/dist/feature-management.d.ts +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-Cg6kPQQx.esm.js → fieldComparisonManager-CC-klG0h.esm.js} +2 -2
- package/dist/fiscal-qr.d.ts +2 -56
- package/dist/fiscal-qr.esm.js +2 -308
- package/dist/fiscalQrManager-B1STmT6z.d.ts +71 -0
- package/dist/fiscalQrManager-BunLVFbd.esm.js +34143 -0
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +212 -185
- package/dist/flow.esm.js +119 -30
- package/dist/{flowCompletionService-tfeoGre9.esm.js → flowCompletionService-DJp1odGN.esm.js} +2 -2
- package/dist/{flowServices-f5Ruz7R9.esm.js → flowServices-DjPFGs_D.esm.js} +91 -26
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CH6RfqFH.esm.js → geolocationManager-D5906YXx.esm.js} +2 -2
- package/dist/{geolocationStateMachine-DmbWFely.esm.js → geolocationStateMachine-BVOduc3y.esm.js} +3 -3
- package/dist/getBrowser-CBiibsL-.esm.js +19 -0
- package/dist/{getBrowser-DNrQeL4T.esm.js → getBrowser-Cbe1C4Tn.esm.js} +2 -1
- package/dist/{getDeviceClass-9y-kbVDw.esm.js → getDeviceClass-5NYZg9s6.esm.js} +2 -2
- package/dist/getParsedUserAgent-B2iFDql1.esm.js +1278 -0
- package/dist/government-validation.d.ts +2 -85
- package/dist/government-validation.esm.js +3 -120
- package/dist/governmentValidationManager-CacFOtKO.esm.js +79 -0
- package/dist/governmentValidationManager-D02vT4yY.d.ts +63 -0
- package/dist/governmentValidationStateMachine-CoaZOSTP.esm.js +54 -0
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +3 -2
- package/dist/id-selfie-flow.esm.js +11 -10
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +29 -5
- package/dist/id.esm.js +48 -46
- package/dist/idCaptureDefaults-CbPA-Auz.esm.js +727 -0
- package/dist/{idCaptureManager-CqrqSjJV.d.ts → idCaptureManager-DKESug0R.d.ts} +230 -43
- package/dist/{idCaptureManager-BYwTZ2H8.esm.js → idCaptureManager-rfV9dIXy.esm.js} +259 -46
- package/dist/{idCaptureServices-44kwQItl.esm.js → idCaptureServices-i1KxugN7.esm.js} +285 -72
- package/dist/idCaptureStateMachine-Ne_PXth_.esm.js +5333 -0
- package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
- package/dist/{idOcrManager-BIQYQXXj.esm.js → idOcrManager-r46XfZGE.esm.js} +2 -2
- package/dist/{idOcrStateMachine-cSxzHpHt.esm.js → idOcrStateMachine-ClDEP-VI.esm.js} +1 -1
- package/dist/{idVerificationManager-JpV_SAsl.esm.js → idVerificationManager-DT42c77H.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-nPeUNyFq.esm.js → idVerificationStateMachine-DbDVIh9t.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-kNCg9AbD.esm.js → identityReuseManager-yG3acUrQ.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-DyulxDjP.esm.js → identityReuseStateMachine-BhAkuIra.esm.js} +1 -1
- package/dist/{index-CLMF0QLQ.d.ts → index-DLcJT5YP.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-GpvMuz9o.esm.js → invokeOnCaptureCallback-BjzPjJ_p.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-B4Niyg_u.esm.js → mandatoryConsentManager-7dI0D08q.esm.js} +2 -2
- package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-vhv1co_n.d.ts} +1 -1
- package/dist/{mandatoryConsentStateMachine-B4-1u-L8.esm.js → mandatoryConsentStateMachine-DC5Mo6M1.esm.js} +1 -1
- package/dist/multipartRecordingService-OEgIRvqC.esm.js +605 -0
- package/dist/{permissionGuards-KINpmKtI.esm.js → permissionGuards-uYZYFu4J.esm.js} +1 -1
- package/dist/{permissionServices-UvUcOSRb.esm.js → permissionServices-Bj_fyWtv.esm.js} +5 -5
- package/dist/personhood.d.ts +6 -5
- package/dist/personhood.esm.js +10 -10
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-FsJ0W2Ei.esm.js → phoneManager-IjhSv5XS.esm.js} +2 -2
- package/dist/{phoneStateMachine-Ba0wKHyX.esm.js → phoneStateMachine-CXdXufKg.esm.js} +1 -1
- package/dist/{platform-BJrm5nzZ.esm.js → platform-DkcRc9JV.esm.js} +29 -1
- package/dist/qe-signature.d.ts +5 -3
- package/dist/qe-signature.esm.js +2 -2
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-y4VQB11M.esm.js → redirectToMobileManager-FLEWJtv8.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-Cyv2x0PP.esm.js → redirectToMobileStateMachine-CSWWgUTO.esm.js} +1 -1
- package/dist/{rolldown-runtime-FZ4Itg2g.esm.js → rolldown-runtime-FDOR9p9I.esm.js} +1 -19
- package/dist/{runChildModule-Dukuw23X.esm.js → runChildModule-CI1gGWN1.esm.js} +3 -21
- package/dist/safeStorage-B-trhxg6.esm.js +423 -0
- package/dist/{sdkVersion-D1Bm59g6.esm.js → sdkVersion-BZh6dj53.esm.js} +1 -1
- package/dist/selfie.d.ts +5 -5
- package/dist/selfie.esm.js +14 -76
- package/dist/{selfieErrorUtils-C2PYBVsp.esm.js → selfieErrorUtils-UiQ46EBa.esm.js} +30 -4
- package/dist/{selfieManager-DwlCppg0.d.ts → selfieManager-4RRLi21P.d.ts} +8 -11
- package/dist/{selfieManager-Bj6B2ZVy.esm.js → selfieManager-B-2c1n_x.esm.js} +5 -5
- package/dist/selfieStateMachine-Bzx41R8d.esm.js +69 -0
- package/dist/{session-BFdLgN4i.esm.js → session-3LmvAU4S.esm.js} +4 -5
- package/dist/session.d.ts +21 -11
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-dlfDehHk.esm.js → sessionInitializer-BFk33E67.esm.js} +187 -68
- package/dist/{setup-BIAtLa8k.esm.js → setup-BWG-hivt.esm.js} +226 -100
- package/dist/{setup-BgoWtvIS.d.ts → setup-Cv-JM9QC.d.ts} +63 -69
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-Ca43yhwk.esm.js → signatureManager-B72np4ZO.esm.js} +2 -2
- package/dist/{signatureStateMachine-K1LMRrxG.esm.js → signatureStateMachine-ce_XMA3l.esm.js} +1 -1
- package/dist/{src-0Jurt29N.esm.js → src-35ekGRzK.esm.js} +1 -1
- package/dist/{stats-B0nFKawG.esm.js → stats-CZcy2J53.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService---iW2KKJ.esm.js → trueSightService-BN-Hzw82.esm.js} +7 -7
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-BX_XkMsQ2.d.ts → types-9_esGTPj.d.ts} +1 -1
- package/dist/types-BT_Oalip.d.ts +1 -0
- package/dist/{types-DelMqZLe.d.ts → types-BjSly8cp.d.ts} +1 -1
- package/dist/{types-Hmd7U0JA.d.ts → types-Bnl58jUQ.d.ts} +6 -85
- package/dist/types-ChAowIxT.d.ts +6 -0
- package/dist/{types-DVmXIdzW.d.ts → types-D0gekt4U.d.ts} +38 -5
- package/dist/types-DgDvvzg0.d.ts +10 -0
- package/dist/{types-KPvmag_B.d.ts → types-Do5rEXij.d.ts} +7 -4
- package/dist/{types-Bdf8_LYB2.d.ts → types-byBHOzCG2.d.ts} +305 -25
- package/dist/video-selfie.d.ts +59 -35
- package/dist/video-selfie.esm.js +510 -601
- package/dist/{videoSelfieCameraWarmer-NEhFZvWx.esm.js → videoSelfieCameraWarmer-B8PcYqmz.esm.js} +14 -153
- package/dist/videoSelfieFlowModuleMachine-BUe2uACW.esm.js +32 -0
- package/dist/{videoSelfieStepDetector-D3oo2ofo.d.ts → videoSelfieStepDetector-Co0Gu2k2.d.ts} +59 -13
- package/dist/virtualCameraCheck-Cjab7FTI.esm.js +48 -0
- package/dist/warmup-CUUnwYxe.esm.js +714 -0
- package/dist/warmup-Cis2p6O0.d.ts +128 -0
- package/dist/wasm.d.ts +30 -6
- package/dist/wasm.esm.js +36 -4
- package/dist/{wasmDsFlagSync-BqUCwLY8.esm.js → wasmDsFlagSync-B2e8p268.esm.js} +2 -2
- package/dist/{wasmWebClient-DM8lkb0z.esm.js → wasmWebClient-B7baE-Wf.esm.js} +358 -28
- package/dist/watchlist-for-business.d.ts +2 -78
- package/dist/watchlist-for-business.esm.js +3 -102
- package/dist/watchlist.esm.js +2 -2
- package/dist/watchlistForBusinessManager-CIMkpEhu.esm.js +107 -0
- package/dist/watchlistForBusinessManager-CsnJnG-C.d.ts +99 -0
- package/dist/{watchlistForBusinessStateMachine-CxFnlshm.esm.js → watchlistForBusinessStateMachine-CJ-MvUre.esm.js} +13 -6
- package/dist/{watchlistManager-LoNZH9qm.esm.js → watchlistManager-CixcLNDT.esm.js} +2 -2
- package/dist/{watchlistStateMachine-DIKQDoUT.esm.js → watchlistStateMachine-CBqk2w-h.esm.js} +1 -1
- package/dist/workflow.d.ts +12 -8
- package/dist/workflow.esm.js +48 -39
- package/package.json +4 -10
- package/dist/BrowserStorageProvider-k-FDkC4W.esm.js +0 -67
- package/dist/FaceDetectionProvider-Mh6q3EbA.d.ts +0 -349
- package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +0 -23
- package/dist/IStorageCapability-ORkQfK3F.d.ts +0 -242
- package/dist/OpenViduRecordingProvider-Du98qevC.esm.js +0 -85
- package/dist/createFaceAvatar-BEj18KXi.d.ts +0 -50
- package/dist/document-upload.d.ts +0 -325
- package/dist/document-upload.esm.js +0 -197
- package/dist/electronicSignatureManager-CcUXQZS7.d.ts +0 -1300
- package/dist/faceCaptureSetup-Cd-04W_X.esm.js +0 -863
- package/dist/getBrowser-Cb8Zgrgp.esm.js +0 -7
- package/dist/getParsedUserAgent-pJjATANs.esm.js +0 -1622
- package/dist/governmentValidationStateMachine-CK9DrZXX.esm.js +0 -226
- package/dist/idCaptureDefaults-WeHbQM7W.esm.js +0 -225
- package/dist/idCaptureStateMachine-kZ5OpdfM.esm.js +0 -3342
- package/dist/lib-DAyUtOTj.esm.js +0 -12420
- package/dist/manualReviewService-D4IkipnN.esm.js +0 -15
- package/dist/mediaRecorderOptions-dALSV8af.esm.js +0 -40
- package/dist/onDeviceFaceResults-CUHwyZT4.esm.js +0 -646
- package/dist/openviduLazy-CCDpFWg1.esm.js +0 -10
- package/dist/recordingService-3NSENVwp.esm.js +0 -329
- package/dist/safeStorage-Ep56I-f_.esm.js +0 -982
- package/dist/selfieStateMachine-CHV_WNst.esm.js +0 -55
- package/dist/trueSight-B_icM8r2.esm.js +0 -1
- package/dist/types-EELWyWpd.d.ts +0 -6
- package/dist/types-Vb4P9ovf.d.ts +0 -22
- package/dist/warmup-Dv2alr2-.d.ts +0 -82
- package/dist/wasmDefaults-DTUrftxR.esm.js +0 -125
- package/dist/{Face2DProvider-UUQt_vRC.esm.js → Face2DProvider-BF48sz5c.esm.js} +1 -1
- package/dist/{PrivacyLensProvider-D8PS7AJa.esm.js → PrivacyLensProvider-EwnC_C5n.esm.js} +1 -1
- /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
- /package/dist/{types-CJ7Yl9K-2.d.ts → types-CJ7Yl9K-.d.ts} +0 -0
package/dist/flow-events.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FlowEventListener, c as FlowModuleStartedEvent, i as FlowEvent, l as FlowReadyEvent, n as FlowCompletedEvent, o as FlowEventSubscribable, r as FlowErrorEvent, s as FlowModuleCompletedEvent, t as FlowClosedEvent, u as FlowStartedEvent } from "./index-
|
|
1
|
+
import { a as FlowEventListener, c as FlowModuleStartedEvent, i as FlowEvent, l as FlowReadyEvent, n as FlowCompletedEvent, o as FlowEventSubscribable, r as FlowErrorEvent, s as FlowModuleCompletedEvent, t as FlowClosedEvent, u as FlowStartedEvent } from "./index-DLcJT5YP.js";
|
|
2
2
|
export type { FlowClosedEvent, FlowCompletedEvent, FlowErrorEvent, FlowEvent, FlowEventListener, FlowEventSubscribable, FlowModuleCompletedEvent, FlowModuleStartedEvent, FlowReadyEvent, FlowStartedEvent };
|
package/dist/flow.d.ts
CHANGED
|
@@ -1,21 +1,207 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as WasmPipeline } from "./warmup-Cis2p6O0.js";
|
|
2
2
|
import { A as StateMachine, _ as MachineContext, c as AnyEventObject, l as AnyStateMachine, p as EventObject, v as MetaObject, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
|
|
3
3
|
import "./StateMachine-EDpYWy0i.js";
|
|
4
4
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
5
|
-
import { a as ElectronicSignatureConfig } from "./types-
|
|
5
|
+
import { a as ElectronicSignatureConfig } from "./types-D0gekt4U.js";
|
|
6
6
|
import { t as EkycConfig } from "./types-Bk_6dmDa.js";
|
|
7
|
-
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-
|
|
8
|
-
import { t as AuthenticationConfig } from "./types-
|
|
9
|
-
import { r as DocumentCaptureConfig } from "./types-
|
|
7
|
+
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-Do5rEXij.js";
|
|
8
|
+
import { t as AuthenticationConfig } from "./types-ChAowIxT.js";
|
|
9
|
+
import { r as DocumentCaptureConfig } from "./types-BjSly8cp.js";
|
|
10
10
|
import { t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
|
|
11
11
|
import { t as EkybConfig } from "./types-BfHiko5D.js";
|
|
12
|
-
import {
|
|
13
|
-
import { r as MandatoryConsentConfig } from "./types-
|
|
14
|
-
import { t as IdOcrConfig } from "./types-CJ7Yl9K
|
|
12
|
+
import { u as IdCaptureConfig } from "./types-byBHOzCG2.js";
|
|
13
|
+
import { r as MandatoryConsentConfig } from "./types-9_esGTPj.js";
|
|
14
|
+
import { t as IdOcrConfig } from "./types-CJ7Yl9K-.js";
|
|
15
15
|
import { t as RedirectToMobileConfig } from "./types-DPIDuhut.js";
|
|
16
16
|
import { a as TotalScore, c as getTotalScoreStatus, n as FinishStatus, o as classifyScoreStatus, r as GetFinishStatusFn, t as FinishScreenVariant } from "./flowCompletionService-BlAHsKyv.js";
|
|
17
|
-
import { o as FlowEventSubscribable } from "./index-
|
|
18
|
-
import { n as ModuleRegistry } from "./types-
|
|
17
|
+
import { o as FlowEventSubscribable } from "./index-DLcJT5YP.js";
|
|
18
|
+
import { n as ModuleRegistry } from "./types-BfgmV7s7.js";
|
|
19
|
+
//#region src/modules/flow/orchestratedFlowStateMachine.d.ts
|
|
20
|
+
type GetFlowFn = (signal: AbortSignal) => Promise<Flow>;
|
|
21
|
+
type LazyModuleRegistry = {
|
|
22
|
+
[key: string]: (() => Promise<AnyStateMachine | {
|
|
23
|
+
default: AnyStateMachine;
|
|
24
|
+
}>) | undefined;
|
|
25
|
+
};
|
|
26
|
+
type OrchestratedFlowInput = {
|
|
27
|
+
getFlow: GetFlowFn;
|
|
28
|
+
modules?: ModuleRegistry;
|
|
29
|
+
lazyModules?: LazyModuleRegistry;
|
|
30
|
+
getFinishStatus?: GetFinishStatusFn;
|
|
31
|
+
enableHome?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The flow was fetched with `getFlow(..., { deferActivation: true })`: the
|
|
34
|
+
* machine completes activation itself (feature-management flow id, then
|
|
35
|
+
* MANDATORY_CONSENT from the device fingerprint) right before the first
|
|
36
|
+
* module runs — on the Start tap when there is a home screen — so neither
|
|
37
|
+
* the flow fetch nor the home screen waits for feature-config, Statsig or
|
|
38
|
+
* the fingerprint.
|
|
39
|
+
*/
|
|
40
|
+
deferActivation?: boolean;
|
|
41
|
+
};
|
|
42
|
+
type OrchestratedFlowEvent = {
|
|
43
|
+
type: 'LOAD';
|
|
44
|
+
} | {
|
|
45
|
+
type: 'CANCEL';
|
|
46
|
+
} | {
|
|
47
|
+
type: 'RESET';
|
|
48
|
+
} | {
|
|
49
|
+
type: 'MODULE_COMPLETE';
|
|
50
|
+
output?: unknown;
|
|
51
|
+
} | {
|
|
52
|
+
type: 'COMPLETE_FLOW';
|
|
53
|
+
} | {
|
|
54
|
+
type: 'FINISH_FLOW';
|
|
55
|
+
} | {
|
|
56
|
+
type: 'HOME_CONTINUE';
|
|
57
|
+
} | {
|
|
58
|
+
type: '*';
|
|
59
|
+
[key: string]: unknown;
|
|
60
|
+
} | {
|
|
61
|
+
type: string;
|
|
62
|
+
[key: string]: unknown;
|
|
63
|
+
};
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/modules/flow/orchestratedFlowManager.d.ts
|
|
66
|
+
type OrchestratedFlowHomeScreen = {
|
|
67
|
+
visible: boolean;
|
|
68
|
+
isContinueLoading: boolean;
|
|
69
|
+
};
|
|
70
|
+
type OrchestratedFlowPresentation = {
|
|
71
|
+
isAwaitingReady: boolean;
|
|
72
|
+
lazyModuleKey: string | undefined;
|
|
73
|
+
shouldPrefetchHome: boolean;
|
|
74
|
+
};
|
|
75
|
+
type OrchestratedFlowIdleState = {
|
|
76
|
+
status: 'idle';
|
|
77
|
+
homeScreen: OrchestratedFlowHomeScreen;
|
|
78
|
+
presentation: OrchestratedFlowPresentation;
|
|
79
|
+
};
|
|
80
|
+
type OrchestratedFlowLoadingState = {
|
|
81
|
+
status: 'loading';
|
|
82
|
+
homeScreen: OrchestratedFlowHomeScreen;
|
|
83
|
+
presentation: OrchestratedFlowPresentation;
|
|
84
|
+
};
|
|
85
|
+
type OrchestratedFlowCompletingState = {
|
|
86
|
+
status: 'completing';
|
|
87
|
+
homeScreen: OrchestratedFlowHomeScreen;
|
|
88
|
+
presentation: OrchestratedFlowPresentation;
|
|
89
|
+
};
|
|
90
|
+
type OrchestratedFlowReadyState = {
|
|
91
|
+
status: 'ready';
|
|
92
|
+
flow: Flow;
|
|
93
|
+
steps: string[];
|
|
94
|
+
currentStepIndex: number;
|
|
95
|
+
currentStep: string | undefined;
|
|
96
|
+
config: unknown;
|
|
97
|
+
moduleState: unknown;
|
|
98
|
+
homeScreen: OrchestratedFlowHomeScreen;
|
|
99
|
+
presentation: OrchestratedFlowPresentation;
|
|
100
|
+
};
|
|
101
|
+
type OrchestratedFlowFinishedState = {
|
|
102
|
+
status: 'finished';
|
|
103
|
+
flow: Flow;
|
|
104
|
+
finishStatus: {
|
|
105
|
+
redirectionUrl: string;
|
|
106
|
+
action: 'approved' | 'rejected' | 'none';
|
|
107
|
+
scoreStatus: 'OK' | 'WARN' | 'MANUAL_OK' | 'FAIL' | 'UNKNOWN' | 'MANUAL_FAIL';
|
|
108
|
+
endScreenTitle: string | null;
|
|
109
|
+
endScreenText: string | null;
|
|
110
|
+
};
|
|
111
|
+
homeScreen: OrchestratedFlowHomeScreen;
|
|
112
|
+
presentation: OrchestratedFlowPresentation;
|
|
113
|
+
};
|
|
114
|
+
type OrchestratedFlowErrorState = {
|
|
115
|
+
status: 'error';
|
|
116
|
+
error?: string;
|
|
117
|
+
errorCode?: number;
|
|
118
|
+
moduleErrorCode?: string;
|
|
119
|
+
homeScreen: OrchestratedFlowHomeScreen;
|
|
120
|
+
presentation: OrchestratedFlowPresentation;
|
|
121
|
+
};
|
|
122
|
+
type OrchestratedFlowState = OrchestratedFlowIdleState | OrchestratedFlowLoadingState | OrchestratedFlowCompletingState | OrchestratedFlowReadyState | OrchestratedFlowFinishedState | OrchestratedFlowErrorState;
|
|
123
|
+
type CreateOrchestratedFlowActorOptions = {
|
|
124
|
+
getFlow?: GetFlowFn;
|
|
125
|
+
modules?: ModuleRegistry;
|
|
126
|
+
lazyModules?: LazyModuleRegistry;
|
|
127
|
+
getFinishStatus?: OrchestratedFlowInput['getFinishStatus'];
|
|
128
|
+
enableHome?: boolean;
|
|
129
|
+
deferActivation?: OrchestratedFlowInput['deferActivation'];
|
|
130
|
+
};
|
|
131
|
+
declare function createOrchestratedFlowManager(options: CreateOrchestratedFlowActorOptions): Manager<OrchestratedFlowState> & {
|
|
132
|
+
/**
|
|
133
|
+
* Start loading the flow configuration from the backend.
|
|
134
|
+
*/
|
|
135
|
+
load(): void;
|
|
136
|
+
/**
|
|
137
|
+
* Cancel an in-progress flow load.
|
|
138
|
+
*/
|
|
139
|
+
cancel(): void;
|
|
140
|
+
/**
|
|
141
|
+
* Reset the flow to its initial idle state.
|
|
142
|
+
*/
|
|
143
|
+
reset(): void;
|
|
144
|
+
/**
|
|
145
|
+
* Signal that the current module has completed successfully.
|
|
146
|
+
* Call this from your UI component's `onFinish` callback.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* ```tsx
|
|
150
|
+
* <Phone
|
|
151
|
+
* config={config}
|
|
152
|
+
* onFinish={() => flowManager.completeModule()}
|
|
153
|
+
* />
|
|
154
|
+
* ```
|
|
155
|
+
*/
|
|
156
|
+
completeModule(output?: unknown): void;
|
|
157
|
+
/**
|
|
158
|
+
* Skip all remaining modules and complete the flow now, notifying the
|
|
159
|
+
* backend (getFinishStatus) on the way to the completion step.
|
|
160
|
+
*/
|
|
161
|
+
completeFlow(): void;
|
|
162
|
+
/**
|
|
163
|
+
* Finish the flow because the onboarding was already completed externally —
|
|
164
|
+
* e.g. the REDIRECT_TO_MOBILE handoff finished end-to-end on mobile. Lands
|
|
165
|
+
* on the completion screen WITHOUT calling getFinishStatus: mobile already
|
|
166
|
+
* notified the backend, and the desktop never reached its own finish.
|
|
167
|
+
* Use this (not `completeFlow`) from REDIRECT_TO_MOBILE's `onFinish`.
|
|
168
|
+
*/
|
|
169
|
+
finishFlow(): void;
|
|
170
|
+
/**
|
|
171
|
+
* Signal that the current module encountered a terminal error, optionally
|
|
172
|
+
* with its machine-readable `moduleErrorCode`. The flow machine decides what
|
|
173
|
+
* to do: an advanceable terminal error (e.g. `NONEXISTENT_CUSTOMER`,
|
|
174
|
+
* `HINT_NOT_PROVIDED`) advances to the next step; any other error transitions
|
|
175
|
+
* to the terminal error state. Callers always forward the code and let core
|
|
176
|
+
* classify — no per-module branching in the UI.
|
|
177
|
+
*
|
|
178
|
+
* @param error - Error message describing what went wrong. Omit it to let
|
|
179
|
+
* the UI fall back to its own generic error copy (e.g. TerminalErrorPage's
|
|
180
|
+
* `common.unexpectedError`) instead of surfacing a raw/technical string.
|
|
181
|
+
* @param moduleErrorCode - Optional machine-readable error code (a
|
|
182
|
+
* `FaceErrorCode`) used by the flow machine to decide advance vs terminate
|
|
183
|
+
*/
|
|
184
|
+
errorModule(error?: string, moduleErrorCode?: string): void;
|
|
185
|
+
/**
|
|
186
|
+
* Send a raw event to the flow state machine.
|
|
187
|
+
* Prefer using the typed methods (completeModule, errorModule) when possible.
|
|
188
|
+
*/
|
|
189
|
+
send(event: OrchestratedFlowEvent): void;
|
|
190
|
+
readonly canNext: boolean;
|
|
191
|
+
getModuleConfig: <T = unknown>(moduleKey: string) => T | undefined;
|
|
192
|
+
isModuleEnabled: (moduleKey: string) => boolean;
|
|
193
|
+
isAwaitingOrchestratorReady(): boolean;
|
|
194
|
+
/**
|
|
195
|
+
* Resolve once the orchestrator has finished loading the flow and the first
|
|
196
|
+
* module is ready to render. Useful for gating an initialization spinner
|
|
197
|
+
* alongside other parallel async work (e.g. theme fetching).
|
|
198
|
+
*/
|
|
199
|
+
waitForReady(): Promise<void>;
|
|
200
|
+
getLazyModuleKey(): string | undefined;
|
|
201
|
+
shouldRenderHomeScreen(): boolean;
|
|
202
|
+
continueFromHome(): Promise<void>;
|
|
203
|
+
} & FlowEventSubscribable;
|
|
204
|
+
//#endregion
|
|
19
205
|
//#region src/modules/flow/flowUtils.d.ts
|
|
20
206
|
type NormalizeFlowModulesOptions = {
|
|
21
207
|
isDesktop?: boolean;
|
|
@@ -45,6 +231,12 @@ declare function enrichFlowModuleConfig(module: FlowModule, flow: Flow): Record<
|
|
|
45
231
|
* ```
|
|
46
232
|
*/
|
|
47
233
|
declare function getRequiredWasmPipelines(flow: Flow): WasmPipeline[];
|
|
234
|
+
/**
|
|
235
|
+
* The current capture requirement, then one capture ahead once it is ready.
|
|
236
|
+
* Home never looks past its first capture, and redirects stop lookahead.
|
|
237
|
+
* @internal Used by the shared flow shell after rendering.
|
|
238
|
+
*/
|
|
239
|
+
declare function getNextRequiredWasmPipelines(state: Pick<OrchestratedFlowReadyState, 'flow' | 'currentStepIndex' | 'homeScreen'>, loadedPipelines?: readonly WasmPipeline[]): WasmPipeline[];
|
|
48
240
|
/**
|
|
49
241
|
* Normalizes flow modules by expanding TUTORIAL_ID into ID + SECOND_ID
|
|
50
242
|
* based on configuration flags. Matches legacy flowService behavior.
|
|
@@ -68,6 +260,15 @@ type GetFlowOptions = {
|
|
|
68
260
|
authHint?: string;
|
|
69
261
|
lang?: string;
|
|
70
262
|
useCPF?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Return the flow as soon as it is fetched and normalized, without waiting
|
|
265
|
+
* for session activation: the Statsig `flow_id` update and the
|
|
266
|
+
* mandatory-consent injection (which rides on the device fingerprint) are
|
|
267
|
+
* left to `completeDeferredActivation`, which the caller must run before the
|
|
268
|
+
* first module starts — the orchestrated flow machine does this on the Start
|
|
269
|
+
* tap when there is a home screen, right after loading otherwise.
|
|
270
|
+
*/
|
|
271
|
+
deferActivation?: boolean;
|
|
71
272
|
};
|
|
72
273
|
type GetFlow = (signal: AbortSignal, options?: GetFlowOptions) => Promise<Flow>;
|
|
73
274
|
type DashboardResolvedModuleConfigMap = {
|
|
@@ -245,178 +446,4 @@ interface ModuleLoader {
|
|
|
245
446
|
}
|
|
246
447
|
declare function createModuleLoader(registry: ModuleLoaderRegistry): ModuleLoader;
|
|
247
448
|
//#endregion
|
|
248
|
-
|
|
249
|
-
type GetFlowFn = (signal: AbortSignal) => Promise<Flow>;
|
|
250
|
-
type LazyModuleRegistry = {
|
|
251
|
-
[key: string]: (() => Promise<AnyStateMachine | {
|
|
252
|
-
default: AnyStateMachine;
|
|
253
|
-
}>) | undefined;
|
|
254
|
-
};
|
|
255
|
-
type OrchestratedFlowInput = {
|
|
256
|
-
getFlow: GetFlowFn;
|
|
257
|
-
modules?: ModuleRegistry;
|
|
258
|
-
lazyModules?: LazyModuleRegistry;
|
|
259
|
-
getFinishStatus?: GetFinishStatusFn;
|
|
260
|
-
enableHome?: boolean;
|
|
261
|
-
};
|
|
262
|
-
type OrchestratedFlowEvent = {
|
|
263
|
-
type: 'LOAD';
|
|
264
|
-
} | {
|
|
265
|
-
type: 'CANCEL';
|
|
266
|
-
} | {
|
|
267
|
-
type: 'RESET';
|
|
268
|
-
} | {
|
|
269
|
-
type: 'MODULE_COMPLETE';
|
|
270
|
-
output?: unknown;
|
|
271
|
-
} | {
|
|
272
|
-
type: 'COMPLETE_FLOW';
|
|
273
|
-
} | {
|
|
274
|
-
type: 'FINISH_FLOW';
|
|
275
|
-
} | {
|
|
276
|
-
type: 'HOME_CONTINUE';
|
|
277
|
-
} | {
|
|
278
|
-
type: '*';
|
|
279
|
-
[key: string]: unknown;
|
|
280
|
-
} | {
|
|
281
|
-
type: string;
|
|
282
|
-
[key: string]: unknown;
|
|
283
|
-
};
|
|
284
|
-
//#endregion
|
|
285
|
-
//#region src/modules/flow/orchestratedFlowManager.d.ts
|
|
286
|
-
type OrchestratedFlowHomeScreen = {
|
|
287
|
-
visible: boolean;
|
|
288
|
-
isContinueLoading: boolean;
|
|
289
|
-
};
|
|
290
|
-
type OrchestratedFlowPresentation = {
|
|
291
|
-
isAwaitingReady: boolean;
|
|
292
|
-
lazyModuleKey: string | undefined;
|
|
293
|
-
shouldPrefetchHome: boolean;
|
|
294
|
-
};
|
|
295
|
-
type OrchestratedFlowIdleState = {
|
|
296
|
-
status: 'idle';
|
|
297
|
-
homeScreen: OrchestratedFlowHomeScreen;
|
|
298
|
-
presentation: OrchestratedFlowPresentation;
|
|
299
|
-
};
|
|
300
|
-
type OrchestratedFlowLoadingState = {
|
|
301
|
-
status: 'loading';
|
|
302
|
-
homeScreen: OrchestratedFlowHomeScreen;
|
|
303
|
-
presentation: OrchestratedFlowPresentation;
|
|
304
|
-
};
|
|
305
|
-
type OrchestratedFlowCompletingState = {
|
|
306
|
-
status: 'completing';
|
|
307
|
-
homeScreen: OrchestratedFlowHomeScreen;
|
|
308
|
-
presentation: OrchestratedFlowPresentation;
|
|
309
|
-
};
|
|
310
|
-
type OrchestratedFlowReadyState = {
|
|
311
|
-
status: 'ready';
|
|
312
|
-
flow: Flow;
|
|
313
|
-
steps: string[];
|
|
314
|
-
currentStepIndex: number;
|
|
315
|
-
currentStep: string | undefined;
|
|
316
|
-
config: unknown;
|
|
317
|
-
moduleState: unknown;
|
|
318
|
-
homeScreen: OrchestratedFlowHomeScreen;
|
|
319
|
-
presentation: OrchestratedFlowPresentation;
|
|
320
|
-
};
|
|
321
|
-
type OrchestratedFlowFinishedState = {
|
|
322
|
-
status: 'finished';
|
|
323
|
-
flow: Flow;
|
|
324
|
-
finishStatus: {
|
|
325
|
-
redirectionUrl: string;
|
|
326
|
-
action: 'approved' | 'rejected' | 'none';
|
|
327
|
-
scoreStatus: 'OK' | 'WARN' | 'MANUAL_OK' | 'FAIL' | 'UNKNOWN' | 'MANUAL_FAIL';
|
|
328
|
-
endScreenTitle: string | null;
|
|
329
|
-
endScreenText: string | null;
|
|
330
|
-
};
|
|
331
|
-
homeScreen: OrchestratedFlowHomeScreen;
|
|
332
|
-
presentation: OrchestratedFlowPresentation;
|
|
333
|
-
};
|
|
334
|
-
type OrchestratedFlowErrorState = {
|
|
335
|
-
status: 'error';
|
|
336
|
-
error: string;
|
|
337
|
-
errorCode?: number;
|
|
338
|
-
moduleErrorCode?: string;
|
|
339
|
-
homeScreen: OrchestratedFlowHomeScreen;
|
|
340
|
-
presentation: OrchestratedFlowPresentation;
|
|
341
|
-
};
|
|
342
|
-
type OrchestratedFlowState = OrchestratedFlowIdleState | OrchestratedFlowLoadingState | OrchestratedFlowCompletingState | OrchestratedFlowReadyState | OrchestratedFlowFinishedState | OrchestratedFlowErrorState;
|
|
343
|
-
type CreateOrchestratedFlowActorOptions = {
|
|
344
|
-
getFlow?: GetFlowFn;
|
|
345
|
-
modules?: ModuleRegistry;
|
|
346
|
-
lazyModules?: LazyModuleRegistry;
|
|
347
|
-
getFinishStatus?: OrchestratedFlowInput['getFinishStatus'];
|
|
348
|
-
enableHome?: boolean;
|
|
349
|
-
};
|
|
350
|
-
declare function createOrchestratedFlowManager(options: CreateOrchestratedFlowActorOptions): Manager<OrchestratedFlowState> & {
|
|
351
|
-
/**
|
|
352
|
-
* Start loading the flow configuration from the backend.
|
|
353
|
-
*/
|
|
354
|
-
load(): void;
|
|
355
|
-
/**
|
|
356
|
-
* Cancel an in-progress flow load.
|
|
357
|
-
*/
|
|
358
|
-
cancel(): void;
|
|
359
|
-
/**
|
|
360
|
-
* Reset the flow to its initial idle state.
|
|
361
|
-
*/
|
|
362
|
-
reset(): void;
|
|
363
|
-
/**
|
|
364
|
-
* Signal that the current module has completed successfully.
|
|
365
|
-
* Call this from your UI component's `onFinish` callback.
|
|
366
|
-
*
|
|
367
|
-
* @example
|
|
368
|
-
* ```tsx
|
|
369
|
-
* <Phone
|
|
370
|
-
* config={config}
|
|
371
|
-
* onFinish={() => flowManager.completeModule()}
|
|
372
|
-
* />
|
|
373
|
-
* ```
|
|
374
|
-
*/
|
|
375
|
-
completeModule(output?: unknown): void;
|
|
376
|
-
/**
|
|
377
|
-
* Skip all remaining modules and complete the flow now, notifying the
|
|
378
|
-
* backend (getFinishStatus) on the way to the completion step.
|
|
379
|
-
*/
|
|
380
|
-
completeFlow(): void;
|
|
381
|
-
/**
|
|
382
|
-
* Finish the flow because the onboarding was already completed externally —
|
|
383
|
-
* e.g. the REDIRECT_TO_MOBILE handoff finished end-to-end on mobile. Lands
|
|
384
|
-
* on the completion screen WITHOUT calling getFinishStatus: mobile already
|
|
385
|
-
* notified the backend, and the desktop never reached its own finish.
|
|
386
|
-
* Use this (not `completeFlow`) from REDIRECT_TO_MOBILE's `onFinish`.
|
|
387
|
-
*/
|
|
388
|
-
finishFlow(): void;
|
|
389
|
-
/**
|
|
390
|
-
* Signal that the current module encountered a terminal error, optionally
|
|
391
|
-
* with its machine-readable `moduleErrorCode`. The flow machine decides what
|
|
392
|
-
* to do: an advanceable terminal error (e.g. `NONEXISTENT_CUSTOMER`,
|
|
393
|
-
* `HINT_NOT_PROVIDED`) advances to the next step; any other error transitions
|
|
394
|
-
* to the terminal error state. Callers always forward the code and let core
|
|
395
|
-
* classify — no per-module branching in the UI.
|
|
396
|
-
*
|
|
397
|
-
* @param error - Error message describing what went wrong
|
|
398
|
-
* @param moduleErrorCode - Optional machine-readable error code (a
|
|
399
|
-
* `FaceErrorCode`) used by the flow machine to decide advance vs terminate
|
|
400
|
-
*/
|
|
401
|
-
errorModule(error: string, moduleErrorCode?: string): void;
|
|
402
|
-
/**
|
|
403
|
-
* Send a raw event to the flow state machine.
|
|
404
|
-
* Prefer using the typed methods (completeModule, errorModule) when possible.
|
|
405
|
-
*/
|
|
406
|
-
send(event: OrchestratedFlowEvent): void;
|
|
407
|
-
readonly canNext: boolean;
|
|
408
|
-
getModuleConfig: <T = unknown>(moduleKey: string) => T | undefined;
|
|
409
|
-
isModuleEnabled: (moduleKey: string) => boolean;
|
|
410
|
-
isAwaitingOrchestratorReady(): boolean;
|
|
411
|
-
/**
|
|
412
|
-
* Resolve once the orchestrator has finished loading the flow and the first
|
|
413
|
-
* module is ready to render. Useful for gating an initialization spinner
|
|
414
|
-
* alongside other parallel async work (e.g. theme fetching).
|
|
415
|
-
*/
|
|
416
|
-
waitForReady(): Promise<void>;
|
|
417
|
-
getLazyModuleKey(): string | undefined;
|
|
418
|
-
shouldRenderHomeScreen(): boolean;
|
|
419
|
-
continueFromHome(): Promise<void>;
|
|
420
|
-
} & FlowEventSubscribable;
|
|
421
|
-
//#endregion
|
|
422
|
-
export { type DeepPartial, type FinishScreenVariant, type FinishStatus, type Flow, type FlowModule, type FlowModuleConfig, type FlowReadyState, type FlowState, type LazyModule, type LazyModuleRegistry, type ModuleLoader, type ModuleLoaderRegistry, type ModuleRegistry, type OrchestratedFlowCompletingState, type OrchestratedFlowFinishedState, type OrchestratedFlowHomeScreen, type OrchestratedFlowInput, type OrchestratedFlowPresentation, type OrchestratedFlowReadyState, type OrchestratedFlowState, type ResolveDashboardModuleConfigOptions, type ResolvedDashboardModuleConfig, type TotalScore, classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|
|
449
|
+
export { type DeepPartial, type FinishScreenVariant, type FinishStatus, type Flow, type FlowModule, type FlowModuleConfig, type FlowReadyState, type FlowState, type LazyModule, type LazyModuleRegistry, type ModuleLoader, type ModuleLoaderRegistry, type ModuleRegistry, type OrchestratedFlowCompletingState, type OrchestratedFlowFinishedState, type OrchestratedFlowHomeScreen, type OrchestratedFlowInput, type OrchestratedFlowPresentation, type OrchestratedFlowReadyState, type OrchestratedFlowState, type ResolveDashboardModuleConfigOptions, type ResolvedDashboardModuleConfig, type TotalScore, classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|