@incodetech/core 2.4.1-agentic.9 → 2.5.0-agentic
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-CPdofn7R.d.ts} +3 -5
- package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
- package/dist/{FaceDetectionProvider-CHpscouN.esm.js → FaceDetectionProvider-Dv9iXub0.esm.js} +21 -13
- package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-CAxToGns.d.ts} +3 -3
- package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-CLWIYHB4.d.ts} +7 -6
- package/dist/Manager-BvXAwDv9.esm.js +125 -0
- package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
- package/dist/{MotionSensorProvider-DYxh8TjR.esm.js → MotionSensorProvider-X4_2eBGd.esm.js} +15 -0
- package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-BqaHTJF0.d.ts} +25 -3
- package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
- package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-DVFDFlIL.esm.js} +63 -6
- package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
- package/dist/{addressSearch-D6cKPWmk.esm.js → addressSearch-BKlynuBr.esm.js} +6 -7
- 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-CbIwM35x.esm.js → antifraudManager-BI2zr7YX.esm.js} +5 -3
- package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
- package/dist/{antifraudStateMachine-qNNXrlsP.esm.js → antifraudStateMachine-TWUu8wLN.esm.js} +4 -6
- package/dist/{api-C_P9YXbL.esm.js → api-BNxrW8xK.esm.js} +4 -1
- package/dist/{apiError-BeWqIYu8.esm.js → apiError-BAfdBGxH.esm.js} +1 -1
- package/dist/{attemptCarry-BaAXPR_w.esm.js → attemptCarry-DWM8lV9V.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DKLRA91K.d.ts → authenticationManager-BJElkTsj.d.ts} +2 -2
- package/dist/{authenticationManager-CTHFl6dl.esm.js → authenticationManager-DFzByAYo.esm.js} +7 -6
- package/dist/{authenticationStateMachine-D-SOzH8C.esm.js → authenticationStateMachine-CKTOhwwc.esm.js} +50 -18
- package/dist/avatar.d.ts +1 -1
- package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
- package/dist/{browser-pQZA35G2-DJEJnmCd.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
- package/dist/calendarDate-DcqGuEht.esm.js +35 -0
- package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
- package/dist/camera-9yYDUOsO.d.ts +5 -0
- package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
- package/dist/camera.d.ts +7 -3
- 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-CrF3wjCH.esm.js → certificateIssuanceManager-P44yBRop.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-uSD9IkcV.esm.js → certificateIssuanceStateMachine-BPBrILt6.esm.js} +3 -3
- 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-BD7wwgat.esm.js → consentManager-D43w2ms-.esm.js} +5 -3
- package/dist/{consentManager-7aHaehwF.d.ts → consentManager-Duzd8paN.d.ts} +4 -3
- package/dist/{consentStateMachine-BAiLDE3D.esm.js → consentStateMachine-CLK8PfM4.esm.js} +6 -9
- package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
- package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-Ct9QrQ66.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-CUc1uACE.esm.js → crossDocumentDataMatchManager-Cag_bcyW.esm.js} +6 -5
- 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-DBfZSQbu.esm.js → curpValidationManager-C6WmQToS.esm.js} +6 -4
- package/dist/{curpValidationManager-Crz3bnCo.d.ts → curpValidationManager-CmL52FU8.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-DyAEyScb.esm.js → curpValidationStateMachine-BbJ4YAzE.esm.js} +16 -17
- 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-BZhIPyaY.esm.js → customFieldsManager-BBy6X9nh.esm.js} +15 -17
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customWatchlistManager-B4cmxi__.esm.js → customWatchlistManager-CtBMy2EF.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-ZZoDGRAZ.esm.js → customWatchlistStateMachine-SS2ssNCg.esm.js} +4 -6
- package/dist/deepsightCaptureConfig-Nm_K8twx.esm.js +70 -0
- package/dist/{deepsightLoader-je1YxHgT.esm.js → deepsightLoader-BInnND1H.esm.js} +7 -6
- package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-B-Z2EgJJ.esm.js} +51 -1
- package/dist/{desktopCameraElection-m2dAj6Zu.esm.js → desktopCameraElection-JNBOXqvK.esm.js} +110 -13
- package/dist/device.d.ts +3 -3
- package/dist/device.esm.js +16 -16
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.d.ts +123 -0
- package/dist/document-signature.esm.js +149 -0
- package/dist/{documentCaptureManager-v57klTso.esm.js → documentCaptureManager-CGDtkfWj.esm.js} +5 -3
- package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +7 -6
- package/dist/{documentCaptureStateMachine-CgCtimSa.esm.js → documentCaptureStateMachine-flAt9D4q.esm.js} +11 -13
- package/dist/documentSignatureStateMachine-DrRyICFT.esm.js +219 -0
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
- package/dist/{dynamicFormsManager-BKWJZfkn.esm.js → dynamicFormsManager-CxLq2KzT.esm.js} +5 -3
- package/dist/{dynamicFormsStateMachine-CQN8p1ux.esm.js → dynamicFormsStateMachine-By-maT_4.esm.js} +12 -13
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
- package/dist/{ekybManager-BD6HTwFJ.esm.js → ekybManager-CE19Pcdb.esm.js} +5 -3
- package/dist/{ekybStateMachine-3kceTymI.esm.js → ekybStateMachine-q7JQ-x9l.esm.js} +1214 -91
- package/dist/{ekybUtils-Cw8Ta9Qi.esm.js → ekybUtils-Z9MhFAer.esm.js} +11 -1
- package/dist/ekyc-prefill.d.ts +3 -3
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-CERRvIfg.d.ts → ekycManager-BKVQazAb.d.ts} +48 -7
- package/dist/{ekycManager-DawJq3Jo.esm.js → ekycManager-p3uenUEi.esm.js} +39 -16
- package/dist/{ekycPrefillManager-DLNmToWT.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +10 -9
- package/dist/{ekycPrefillManager-D_8NJzZf.esm.js → ekycPrefillManager-gPX3XE7u.esm.js} +3 -2
- package/dist/{ekycPrefillStateMachine-C-JAvkH3.esm.js → ekycPrefillStateMachine-SBnBKPGA.esm.js} +12 -13
- package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-BH_Ll_0A.esm.js} +201 -38
- package/dist/{ekycStateMachine-qvQ-b4IY.esm.js → ekycStateMachine-D0NAHzS7.esm.js} +1031 -132
- package/dist/{ekycUtils-Drx8ImpN.esm.js → ekycUtils-DEvtEyBI.esm.js} +55 -43
- 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-u3UBhWw_.esm.js → electronicSignatureManager-C1M-Yxf2.esm.js} +11 -17
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BSaGg1Gl.esm.js → emailManager-DWnhEsUf.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-CaoPZtZN.esm.js → emailStateMachine--T9PHflK.esm.js} +5 -7
- package/dist/events-ChMS-UzR.esm.js +299 -0
- package/dist/events.d.ts +4 -1
- package/dist/events.esm.js +2 -1
- package/dist/extensibility.d.ts +42 -42
- package/dist/extensibility.esm.js +38 -38
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-DKJUjsV2.esm.js → faceCaptureManagerFactory-18QW0lmV.esm.js} +29 -12
- package/dist/{faceCaptureManagerFactory-ZudYP6Qp.d.ts → faceCaptureManagerFactory-CHqmyOjM.d.ts} +35 -16
- package/dist/{faceCaptureSetup-CZzv26ip.esm.js → faceCaptureSetup-CFToXwHy.esm.js} +115 -74
- package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-C5b5WtcY.d.ts} +12 -5
- package/dist/{faceMatchManager-qPJsa5Ac.esm.js → faceMatchManager-DIStK4qi.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-D90ZHY1r.esm.js → faceMatchStateMachine-DagrRdo2.esm.js} +49 -34
- package/dist/{feature-management-BMUPPAzI.esm.js → feature-management-BlscKbeV.esm.js} +3 -2
- 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-BLLj_Ey1.esm.js → fieldComparisonManager-BnWBtMN7.esm.js} +7 -7
- 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-Bh3rxb7Y.esm.js → fiscalQrManager-BxXaLhin.esm.js} +9 -8
- package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +50 -14
- package/dist/flow.esm.js +214 -58
- package/dist/{flowCompletionService-DgA2VEq4.esm.js → flowCompletionService-DNLssMAg.esm.js} +2 -2
- package/dist/{flowServices-aJ5kGxBd.esm.js → flowServices-Bzq3piUR.esm.js} +378 -18
- 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-BA57nCxj.esm.js → geolocationManager-DoLbpx5e.esm.js} +5 -3
- package/dist/{geolocationStateMachine-3-d1ECCh.esm.js → geolocationStateMachine-d5_E7gAm.esm.js} +8 -10
- package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-D5HkBqfr.esm.js → governmentValidationManager-CaZxyEOO.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-BwMClTqC.esm.js → governmentValidationStateMachine-DeHHhlcf.esm.js} +4 -6
- 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 +1 -1
- package/dist/id-ocr.esm.js +3 -3
- package/dist/id-selfie-flow.d.ts +7 -6
- package/dist/id-selfie-flow.esm.js +14 -13
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +5 -5
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-Dszuq9ng.esm.js → idCaptureDefaults-R3rHuTOE.esm.js} +4 -4
- package/dist/{idCaptureManager-NRGuCVv2.d.ts → idCaptureManager-CgkQW3Xc.d.ts} +24 -13
- package/dist/{idCaptureManager-B_TyUA3w.esm.js → idCaptureManager-D_YGMeCW.esm.js} +30 -22
- package/dist/{idCaptureServices-C6FUQ76N.esm.js → idCaptureServices-CP6AxsFW.esm.js} +17 -25
- package/dist/{idCaptureStateMachine-Cr8WdGyp.esm.js → idCaptureStateMachine-BdBtGQZP.esm.js} +114 -96
- package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
- package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-C0C7lFGd.d.ts} +4 -3
- package/dist/{idOcrManager-BMK2oou0.esm.js → idOcrManager-XTbpfHoF.esm.js} +5 -3
- package/dist/{idOcrStateMachine-RjNycN07.esm.js → idOcrStateMachine-B-00PgPh.esm.js} +13 -10
- package/dist/{idVerificationManager-4wY-Ee4j.esm.js → idVerificationManager-B4NYLlUl.esm.js} +5 -3
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationStateMachine-Bj00uWvh.esm.js → idVerificationStateMachine-B48Ikl-7.esm.js} +4 -6
- 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 +96 -0
- package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +84 -17
- package/dist/{identityReuseManager-CCZ-ES2E.esm.js → identityReuseManager-tFeYm_So.esm.js} +9 -4
- package/dist/{identityReuseStateMachine-BtpkGpYZ.esm.js → identityReuseStateMachine-Ckf39qFu.esm.js} +24 -31
- package/dist/{index-DlVDVTcf.d.ts → index-CNck5TLp.d.ts} +1 -1
- package/dist/{index-BGnYn_4J.d.ts → index-CoePktWH.d.ts} +2 -2
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-BkvXSZfa.esm.js → invokeOnCaptureCallback-DNQX9k5e.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-x2nBdasv.esm.js → kybChecksManager-DP76y-Qz.esm.js} +3 -2
- package/dist/{kybChecksStateMachine-DdWSo3jQ.esm.js → kybChecksStateMachine-OKLT8Zoc.esm.js} +11 -14
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-C9JJGENL.esm.js → mandatoryConsentManager-NX1lz6nk.esm.js} +5 -3
- package/dist/{mandatoryConsentManager-JNeVXgK8.d.ts → mandatoryConsentManager-kzr5kdc_.d.ts} +5 -4
- package/dist/{mandatoryConsentStateMachine-DLNIGElA.esm.js → mandatoryConsentStateMachine-D1J2NQSI.esm.js} +6 -9
- package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +21 -4
- package/dist/{multipartRecordingService-OmSzHBqh.esm.js → multipartRecordingService-Cz-cWrpV.esm.js} +2 -2
- package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-Cyh71hOt.esm.js} +1 -1
- package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-BrtDMB0Z.esm.js} +23 -9
- 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-BylOWecM.esm.js → phoneManager-D1QPNbu0.esm.js} +5 -3
- package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
- package/dist/{phoneServices-Crge7uSV.esm.js → phoneServices-DC7AuUed.esm.js} +3 -7
- package/dist/{phoneStateMachine-CHnhCS-4.esm.js → phoneStateMachine-CxCPxTIy.esm.js} +4 -4
- package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
- package/dist/{processFaceMatch-BveUAHts.esm.js → processFaceMatch-BQoiqLVh.esm.js} +1 -1
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-BUqAQd8F.esm.js → recordingService-CSCvD2tB.esm.js} +17 -10
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-Db99n9Yu.d.ts} +4 -3
- package/dist/{redirectToMobileManager-DUpLyXsq.esm.js → redirectToMobileManager-Dcpg5GfP.esm.js} +7 -4
- package/dist/{redirectToMobileStateMachine-D0DW4y-f.esm.js → redirectToMobileStateMachine-BMehrtVP.esm.js} +18 -21
- package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
- package/dist/{runChildModule-BTMOZdMM.esm.js → runChildModule-DNEmc7of.esm.js} +8 -6
- package/dist/{sdkVersion-CinXzhdk.esm.js → sdkVersion-etdZfyCR.esm.js} +1 -1
- package/dist/selfie.d.ts +6 -6
- package/dist/selfie.esm.js +15 -13
- package/dist/{selfieErrorUtils-D92PpZGe.esm.js → selfieErrorUtils-DT-uhK20.esm.js} +1 -1
- package/dist/{selfieManager-DX9Ejy4x.esm.js → selfieManager-CdS6a7Q8.esm.js} +7 -6
- package/dist/{selfieManager-BPOlD-UN.d.ts → selfieManager-DrBYj5kA.d.ts} +2 -2
- package/dist/{selfieStateMachine-BfJ5mJ57.esm.js → selfieStateMachine-ChCl3nyf.esm.js} +5 -5
- package/dist/{session-CswNE2eZ.esm.js → session-VXYuRYzb.esm.js} +5 -4
- package/dist/session.d.ts +3 -13
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-DFtIRfDh.esm.js → sessionInitializer-BT_CmYcX.esm.js} +54 -79
- package/dist/{setup-Bl3CRduw.esm.js → setup-BXrgDdfx.esm.js} +14 -12
- package/dist/{setup-prV5HQCQ.d.ts → setup-rcXgYUcY.d.ts} +6 -5
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-QlegdTo3.esm.js → signatureManager-B737Gkvk.esm.js} +5 -3
- package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
- package/dist/{signatureStateMachine-DFbbbFwg.esm.js → signatureStateMachine-B-QG7fk0.esm.js} +5 -7
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-Bv5PiWvo.esm.js → stats-CrqhpKkP.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +3 -2
- package/dist/step-up.esm.js +2 -1
- package/dist/{tri-BUFivnaE.esm.js → tri-BD9z6z0w.esm.js} +6 -3
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
- package/dist/tri.esm.js +1 -1
- package/dist/trueSight-BymJD5cW.esm.js +1 -0
- package/dist/{trueSightService-CDbmG-Mi.esm.js → trueSightService-BwyLhIAo.esm.js} +10 -8
- package/dist/trust-graph.d.ts +87 -27
- package/dist/trust-graph.esm.js +6 -25
- package/dist/trustGraphStateMachine-BxvReuo1.esm.js +58 -0
- package/dist/{types-CquDWYfv.d.ts → types-4Re9FSOw.d.ts} +68 -6
- package/dist/{types-D9vIGFbl.d.ts → types-B-PIc0en.d.ts} +1 -1
- package/dist/types-BNkzXOXE.d.ts +45 -0
- package/dist/types-BtrJ5fkm.d.ts +6 -0
- package/dist/{types-LA74KylV.d.ts → types-C1056-J1.d.ts} +1 -1
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/{events-kU5WJU4B.esm.js → types-CBQN04Rh.esm.js} +5 -299
- package/dist/{types-BD9sV5oG.d.ts → types-CEGG70FK.d.ts} +16 -3
- package/dist/types-CXTDuzUJ.d.ts +16 -0
- package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
- package/dist/{types-CyNndVAT.d.ts → types-Cy6Lx3L6.d.ts} +2 -2
- package/dist/{types-BaDx6utW.d.ts → types-DEa3taWc.d.ts} +4 -0
- package/dist/{types-0Rr7etmf.d.ts → types-DHpz4Y37.d.ts} +1 -1
- package/dist/{types-BpJ21a4T.d.ts → types-b0l9b83G.d.ts} +14 -7
- package/dist/video-selfie.d.ts +8 -7
- package/dist/video-selfie.esm.js +14 -13
- package/dist/{videoSelfieCameraWarmer-Dnkiqe0z.esm.js → videoSelfieCameraWarmer-DgRlU_8q.esm.js} +10 -10
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-B78BE_x9.d.ts → videoSelfieStepDetector-DC_Qh7qI.d.ts} +19 -9
- package/dist/{warmup-DtB0DJpl.esm.js → warmup-BN8dG2KX.esm.js} +192 -42
- package/dist/{warmup-BO57syF6.d.ts → warmup-SWu5L7cW.d.ts} +19 -2
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/wasmDeepsightConfigSync-DukEcrU8.esm.js +77 -0
- package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-DwBfTlgB.esm.js} +1 -1
- package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-B2P6Vlvv.esm.js} +32 -13
- 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-DOYmIiaj.esm.js → watchlistForBusinessManager-DxeSH80T.esm.js} +5 -3
- package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
- package/dist/{watchlistForBusinessStateMachine-D8qIyL8w.esm.js → watchlistForBusinessStateMachine-BC9UWLuZ.esm.js} +12 -9
- package/dist/{watchlistManager-BJGLRv-x.esm.js → watchlistManager-BHzmC9OC.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-DeLfuGSl.esm.js → watchlistStateMachine-Bxzn16iJ.esm.js} +4 -6
- package/dist/workflow.d.ts +6 -5
- package/dist/workflow.esm.js +68 -49
- 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 +13 -3
- package/dist/Actor-DpTj5PFb.d.ts +0 -1
- package/dist/camera-9wWD-pwg.d.ts +0 -4
- package/dist/index-DpTj5PFb.d.ts +0 -1
- package/dist/nationalIds-B91f_RuB.esm.js +0 -99
- package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
- package/dist/tri.esm-DgtAka_v.esm.js +0 -2145
- package/dist/types-B2M1IPZn.d.ts +0 -6
- package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +0 -27
package/dist/flow.d.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { c as WasmPipeline } from "./warmup-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { c as WasmPipeline } from "./warmup-SWu5L7cW.js";
|
|
2
|
+
import { b as NonReducibleUnknown, c as AnyEventObject, j as StateMachine, l as AnyStateMachine, m as EventObject, v as MachineContext, y as MetaObject } from "./spawn-COZKetCS.js";
|
|
3
|
+
import "./xstate.cjs-D6Ur0X1F.js";
|
|
4
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
4
5
|
import { a as ElectronicSignatureConfig } from "./types-D0gekt4U.js";
|
|
5
|
-
import { t as EkycConfig } from "./types-
|
|
6
|
-
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-
|
|
7
|
-
import { t as AuthenticationConfig } from "./types-
|
|
8
|
-
import { r as DocumentCaptureConfig } from "./types-
|
|
6
|
+
import { t as EkycConfig } from "./types-DEa3taWc.js";
|
|
7
|
+
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-4Re9FSOw.js";
|
|
8
|
+
import { t as AuthenticationConfig } from "./types-BtrJ5fkm.js";
|
|
9
|
+
import { r as DocumentCaptureConfig } from "./types-Cy6Lx3L6.js";
|
|
9
10
|
import { t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
|
|
10
11
|
import { t as EkybConfig } from "./types-BgRHw-dR.js";
|
|
11
|
-
import { u as IdCaptureConfig } from "./types-
|
|
12
|
-
import { r as MandatoryConsentConfig } from "./types-
|
|
12
|
+
import { u as IdCaptureConfig } from "./types-b0l9b83G.js";
|
|
13
|
+
import { r as MandatoryConsentConfig } from "./types-C1056-J1.js";
|
|
13
14
|
import { t as IdOcrConfig } from "./types-Bpo97EOh.js";
|
|
14
15
|
import { t as RedirectToMobileConfig } from "./types-DNVzoRvi.js";
|
|
15
16
|
import { a as TotalScore, c as getTotalScoreStatus, n as FinishStatus, o as classifyScoreStatus, r as GetFinishStatusFn, t as FinishScreenVariant } from "./flowCompletionService-BlAHsKyv.js";
|
|
16
|
-
import { o as FlowEventSubscribable } from "./index-
|
|
17
|
-
import { n as ModuleRegistry } from "./types-
|
|
17
|
+
import { o as FlowEventSubscribable } from "./index-CoePktWH.js";
|
|
18
|
+
import { n as ModuleRegistry } from "./types-C3rfDzgE.js";
|
|
18
19
|
//#region src/modules/flow/orchestratedFlowStateMachine.d.ts
|
|
19
20
|
type GetFlowFn = (signal: AbortSignal) => Promise<Flow>;
|
|
20
21
|
type LazyModuleRegistry = {
|
|
@@ -72,7 +73,18 @@ declare function mergeDashboardConfig<T>(dashboardConfig: T, localConfig: DeepPa
|
|
|
72
73
|
* config of that module. `TUTORIAL_ID` is not a key: the SDK turns that step
|
|
73
74
|
* into `ID` (and `SECOND_ID`) before the merge, so use `ID`.
|
|
74
75
|
*/
|
|
75
|
-
type FlowModulesConfig = { [K in Exclude<keyof FlowModuleConfig, 'TUTORIAL_ID'>]?: DeepPartial<
|
|
76
|
+
type FlowModulesConfig = { [K in Exclude<keyof FlowModuleConfig, 'TUTORIAL_ID'>]?: DeepPartial<OverridableConfig<K>>; };
|
|
77
|
+
/**
|
|
78
|
+
* Fields only the SDK sets, which an override can't set. The identity reuse
|
|
79
|
+
* preset sets `identityReuseOutcomes` on AUTHENTICATION when the flow runs
|
|
80
|
+
* identity reuse; anywhere else it would change how face authentication ends.
|
|
81
|
+
* `FlowModulesConfig` leaves them out of its type, and `applyModulesConfig`
|
|
82
|
+
* drops them at runtime for a host that writes them anyway.
|
|
83
|
+
*/
|
|
84
|
+
type SdkOnlyFields = {
|
|
85
|
+
AUTHENTICATION: 'identityReuseOutcomes';
|
|
86
|
+
};
|
|
87
|
+
type OverridableConfig<K extends keyof FlowModuleConfig> = K extends keyof SdkOnlyFields ? Omit<FlowModuleConfig[K], SdkOnlyFields[K]> : FlowModuleConfig[K];
|
|
76
88
|
//#endregion
|
|
77
89
|
//#region src/modules/flow/orchestratedFlowManager.d.ts
|
|
78
90
|
type OrchestratedFlowHomeScreen = {
|
|
@@ -83,6 +95,13 @@ type OrchestratedFlowPresentation = {
|
|
|
83
95
|
isAwaitingReady: boolean;
|
|
84
96
|
lazyModuleKey: string | undefined;
|
|
85
97
|
shouldPrefetchHome: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* The modules worth loading while the current one runs: the next step, or,
|
|
100
|
+
* on a step that decides the path (face authentication and identity reuse,
|
|
101
|
+
* in a Flow with identity reuse), the next step on each path. Empty when no
|
|
102
|
+
* module renders.
|
|
103
|
+
*/
|
|
104
|
+
prefetchModuleKeys: string[];
|
|
86
105
|
};
|
|
87
106
|
type OrchestratedFlowIdleState = {
|
|
88
107
|
status: 'idle';
|
|
@@ -206,6 +225,11 @@ declare function createOrchestratedFlowManager(options: CreateOrchestratedFlowAc
|
|
|
206
225
|
* Prefer using the typed methods (completeModule, errorModule) when possible.
|
|
207
226
|
*/
|
|
208
227
|
send(event: OrchestratedFlowEvent): void;
|
|
228
|
+
/**
|
|
229
|
+
* True while a step runs that `completeModule()` would move past to
|
|
230
|
+
* another step. False on the last step, and on a step only its own machine
|
|
231
|
+
* can end, such as the identity search.
|
|
232
|
+
*/
|
|
209
233
|
readonly canNext: boolean;
|
|
210
234
|
getModuleConfig: <T = unknown>(moduleKey: string) => T | undefined;
|
|
211
235
|
isModuleEnabled: (moduleKey: string) => boolean;
|
|
@@ -263,7 +287,8 @@ declare function getNextRequiredWasmPipelines(state: Pick<OrchestratedFlowReadyS
|
|
|
263
287
|
* - TUTORIAL_ID becomes ID (with same config)
|
|
264
288
|
* - If secondId: true, adds SECOND_ID module with isSecondId: true
|
|
265
289
|
* - thirdId is deprecated and ignored; the flow continues to the next step
|
|
266
|
-
* - Bare ID following TUTORIAL_ID is dropped (already merged)
|
|
290
|
+
* - Bare ID following TUTORIAL_ID is dropped (already merged), except in a
|
|
291
|
+
* flow with identity reuse, where it becomes an ID_VALIDATION step
|
|
267
292
|
*/
|
|
268
293
|
declare function normalizeFlowModules(flow: FlowForNormalization, options?: NormalizeFlowModulesOptions): FlowModule[];
|
|
269
294
|
//#endregion
|
|
@@ -323,6 +348,17 @@ declare const noOpFlowModuleMachine: StateMachine<MachineContext, AnyEventObject
|
|
|
323
348
|
};
|
|
324
349
|
}>;
|
|
325
350
|
//#endregion
|
|
351
|
+
//#region src/modules/flow/presets/flowPresets.d.ts
|
|
352
|
+
/**
|
|
353
|
+
* The key of the first module a flow runs once the presets it switches on
|
|
354
|
+
* have prepared it and laid it out, for preloading before the flow loads. It
|
|
355
|
+
* doesn't run the presets' checks, so it also answers for a raw dashboard
|
|
356
|
+
* flow or one that will fail to load. With the identity search hint from
|
|
357
|
+
* session start, for example, that is the module after the dropped contact
|
|
358
|
+
* steps.
|
|
359
|
+
*/
|
|
360
|
+
declare function getFirstFlowModuleKey(flow: Flow): string | undefined;
|
|
361
|
+
//#endregion
|
|
326
362
|
//#region src/modules/flow/flowActor.d.ts
|
|
327
363
|
type CreateFlowActorOptions = {
|
|
328
364
|
getFlow?: GetFlow;
|
|
@@ -460,4 +496,4 @@ interface ModuleLoader {
|
|
|
460
496
|
}
|
|
461
497
|
declare function createModuleLoader(registry: ModuleLoaderRegistry): ModuleLoader;
|
|
462
498
|
//#endregion
|
|
463
|
-
export { type DeepPartial, type FinishScreenVariant, type FinishStatus, type Flow, type FlowModule, type FlowModuleConfig, type FlowModulesConfig, 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 };
|
|
499
|
+
export { type DeepPartial, type FinishScreenVariant, type FinishStatus, type Flow, type FlowModule, type FlowModuleConfig, type FlowModulesConfig, 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, getFirstFlowModuleKey, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|
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-CBQN04Rh.esm.js";
|
|
2
|
+
import "./events-ChMS-UzR.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-Bzq3piUR.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 { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DNLssMAg.esm.js";
|
|
9
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DNEmc7of.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",
|
|
@@ -376,6 +378,15 @@ function createModuleLoader(registry) {
|
|
|
376
378
|
}
|
|
377
379
|
//#endregion
|
|
378
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
|
+
}
|
|
379
390
|
function getModuleConfig(module, flow) {
|
|
380
391
|
if (!module || !flow) return {};
|
|
381
392
|
return resolveFlowModuleConfig(module, flow);
|
|
@@ -400,7 +411,8 @@ function createBaseContext(context, isHomeContinueLoading) {
|
|
|
400
411
|
isHomeContinueLoading,
|
|
401
412
|
deferActivation: context.deferActivation,
|
|
402
413
|
activationResolved: false,
|
|
403
|
-
skipFaceMatch: false
|
|
414
|
+
skipFaceMatch: false,
|
|
415
|
+
armedPresets: []
|
|
404
416
|
};
|
|
405
417
|
}
|
|
406
418
|
function createInitialContext(input) {
|
|
@@ -422,22 +434,41 @@ function createInitialContext(input) {
|
|
|
422
434
|
function homeScreenEnabled(context, flow) {
|
|
423
435
|
return context.enableHome === true && flow?.disableLaunchScreen !== true && context.isHomeContinueLoading !== true;
|
|
424
436
|
}
|
|
437
|
+
/**
|
|
438
|
+
* Whether a machine is registered for a module key, eagerly or lazily. Reads
|
|
439
|
+
* the registries when it is called: `<incode-flow>` fills its lazy registry
|
|
440
|
+
* inside `getFlow`, so a check made after `getFlow` sees the keys it added.
|
|
441
|
+
*/
|
|
442
|
+
function canResolveModule(context, key) {
|
|
443
|
+
return context.registeredModules[key] != null || context.lazyRegisteredModules[key] != null;
|
|
444
|
+
}
|
|
425
445
|
function shouldEnterHome(context) {
|
|
426
446
|
if (!homeScreenEnabled(context, context.flow)) return false;
|
|
427
447
|
const firstRealIndex = context.steps[0] === "REDIRECT_TO_MOBILE" ? 1 : 0;
|
|
428
448
|
return context.currentStepIndex === firstRealIndex;
|
|
429
449
|
}
|
|
430
450
|
const prefetchedLazyModules = /* @__PURE__ */ new WeakSet();
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
451
|
+
/**
|
|
452
|
+
* The steps that can run after the current one: the next step, or, on a
|
|
453
|
+
* step where a preset decides the path, the next step on each path.
|
|
454
|
+
*/
|
|
455
|
+
function getStepsThatMayRunNext(context) {
|
|
456
|
+
return stepsThatMayRunNext({
|
|
457
|
+
armedPresets: context.armedPresets,
|
|
458
|
+
steps: context.steps,
|
|
459
|
+
currentStepIndex: context.currentStepIndex
|
|
439
460
|
});
|
|
440
461
|
}
|
|
462
|
+
function prefetchNextLazyModules(context) {
|
|
463
|
+
for (const nextStep of getStepsThatMayRunNext(context)) {
|
|
464
|
+
const nextLazyModule = context.lazyRegisteredModules[nextStep];
|
|
465
|
+
if (!nextLazyModule || prefetchedLazyModules.has(nextLazyModule)) continue;
|
|
466
|
+
prefetchedLazyModules.add(nextLazyModule);
|
|
467
|
+
nextLazyModule().catch(() => {
|
|
468
|
+
prefetchedLazyModules.delete(nextLazyModule);
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
}
|
|
441
472
|
const homeContinueOn = { HOME_CONTINUE: { actions: "setHomeContinueLoading" } };
|
|
442
473
|
const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
443
474
|
types: {
|
|
@@ -447,9 +478,21 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
447
478
|
},
|
|
448
479
|
actors: {
|
|
449
480
|
fetchFlow: fromPromise(async ({ input, signal }) => {
|
|
450
|
-
const
|
|
481
|
+
const served = prepareFlowOcrSteps(await retryAfterReconnect(() => input.getFlow(signal), signal));
|
|
482
|
+
const arming = armFlowPresets(served, input.canResolve);
|
|
483
|
+
if (arming.status === "misconfigured") return {
|
|
484
|
+
flow: served,
|
|
485
|
+
arming
|
|
486
|
+
};
|
|
487
|
+
const flow = arming.armedPresets.length > 0 ? {
|
|
488
|
+
...served,
|
|
489
|
+
flowModules: arming.modules
|
|
490
|
+
} : served;
|
|
451
491
|
await loadFlowConfigConverters(flow);
|
|
452
|
-
return
|
|
492
|
+
return {
|
|
493
|
+
flow,
|
|
494
|
+
arming
|
|
495
|
+
};
|
|
453
496
|
}),
|
|
454
497
|
notifyBackend: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getFinishStatus(input.flowId, signal), signal)),
|
|
455
498
|
runChildModule,
|
|
@@ -474,7 +517,7 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
474
517
|
setHomeContinueLoading: assign({ isHomeContinueLoading: true }),
|
|
475
518
|
clearHomeContinueLoading: assign({ isHomeContinueLoading: false }),
|
|
476
519
|
setFlowData: assign(({ event }) => {
|
|
477
|
-
const flow =
|
|
520
|
+
const { flow, arming } = event.output;
|
|
478
521
|
const flowModules = flow.flowModules ?? [];
|
|
479
522
|
const firstModule = flowModules[0];
|
|
480
523
|
const config = getModuleConfig(firstModule, flow);
|
|
@@ -484,7 +527,84 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
484
527
|
currentStepIndex: flowModules.length > 0 ? 0 : -1,
|
|
485
528
|
currentStep: firstModule?.key,
|
|
486
529
|
config,
|
|
487
|
-
currentModuleMachine: void 0
|
|
530
|
+
currentModuleMachine: void 0,
|
|
531
|
+
armedPresets: arming.status === "armed" ? arming.armedPresets : []
|
|
532
|
+
};
|
|
533
|
+
}),
|
|
534
|
+
setMisconfiguredFlowError: assign(({ event }) => {
|
|
535
|
+
const { arming } = event.output;
|
|
536
|
+
if (arming.status !== "misconfigured") return {};
|
|
537
|
+
return {
|
|
538
|
+
error: arming.message,
|
|
539
|
+
moduleErrorCode: arming.moduleErrorCode
|
|
540
|
+
};
|
|
541
|
+
}),
|
|
542
|
+
reportArmedPresets: ({ event }) => {
|
|
543
|
+
const { flow, arming } = event.output;
|
|
544
|
+
if (arming.status !== "armed") return;
|
|
545
|
+
const steps = flow.flowModules.map((module) => module.key);
|
|
546
|
+
for (const preset of arming.armedPresets) {
|
|
547
|
+
const module = flowPresetAnalyticsModule(preset);
|
|
548
|
+
const screenName = `${module}.started`;
|
|
549
|
+
screenOpened(module, screenName, { steps });
|
|
550
|
+
screenClosed(module, screenName);
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
reportMisconfiguredFlow: ({ event }) => {
|
|
554
|
+
const { arming } = event.output;
|
|
555
|
+
if (arming.status !== "misconfigured") return;
|
|
556
|
+
addEvent({
|
|
557
|
+
code: "errorTriggered",
|
|
558
|
+
module: flowPresetAnalyticsModule(arming.preset),
|
|
559
|
+
payload: {
|
|
560
|
+
errorCode: arming.moduleErrorCode,
|
|
561
|
+
advanced: false,
|
|
562
|
+
missing: arming.missing,
|
|
563
|
+
unsupported: arming.unsupported,
|
|
564
|
+
unregistered: arming.unregistered
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
},
|
|
568
|
+
reportPresetDecisions: ({ context, event }) => {
|
|
569
|
+
const ending = event;
|
|
570
|
+
const decisions = decideFlowPresets({
|
|
571
|
+
armedPresets: context.armedPresets,
|
|
572
|
+
steps: context.steps,
|
|
573
|
+
currentStepIndex: context.currentStepIndex,
|
|
574
|
+
ending: {
|
|
575
|
+
output: ending.output,
|
|
576
|
+
moduleErrorCode: ending.moduleErrorCode
|
|
577
|
+
}
|
|
578
|
+
});
|
|
579
|
+
for (const decision of decisions) {
|
|
580
|
+
const screenName = `${decision.analyticsModule}.${decision.outcome}`;
|
|
581
|
+
screenOpened(decision.analyticsModule, screenName, {
|
|
582
|
+
decidedAfter: context.currentStep,
|
|
583
|
+
errorCode: ending.moduleErrorCode,
|
|
584
|
+
skippedModules: decision.skipped.map((index) => context.steps[index])
|
|
585
|
+
});
|
|
586
|
+
screenClosed(decision.analyticsModule, screenName);
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
removeSkippedPresetMembers: assign(({ context, event }) => {
|
|
590
|
+
const ending = event;
|
|
591
|
+
const removed = applyFlowPresets({
|
|
592
|
+
armedPresets: context.armedPresets,
|
|
593
|
+
steps: context.steps,
|
|
594
|
+
currentStepIndex: context.currentStepIndex,
|
|
595
|
+
ending: {
|
|
596
|
+
output: ending.output,
|
|
597
|
+
moduleErrorCode: ending.moduleErrorCode
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
if (removed.length === 0 || !context.flow) return {};
|
|
601
|
+
const kept = (_, index) => !removed.includes(index);
|
|
602
|
+
return {
|
|
603
|
+
steps: context.steps.filter(kept),
|
|
604
|
+
flow: {
|
|
605
|
+
...context.flow,
|
|
606
|
+
flowModules: context.flow.flowModules.filter(kept)
|
|
607
|
+
}
|
|
488
608
|
};
|
|
489
609
|
}),
|
|
490
610
|
setActivatedFlow: assign(({ context, event }) => {
|
|
@@ -537,11 +657,22 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
537
657
|
}),
|
|
538
658
|
setCurrentModuleMachine: assign(({ event }) => ({ currentModuleMachine: event.output })),
|
|
539
659
|
prefetchNextModule: ({ context }) => {
|
|
540
|
-
|
|
660
|
+
prefetchNextLazyModules(context);
|
|
541
661
|
},
|
|
542
662
|
setFinishStatus: assign(({ event }) => ({ finishStatus: event.output })),
|
|
543
663
|
setFinishStatusFailed: assign({ moduleErrorCode: "FINISH_STATUS_FAILED" }),
|
|
544
664
|
setModuleErrorCode: assign(({ event }) => ({ moduleErrorCode: event.moduleErrorCode })),
|
|
665
|
+
trackFailingModuleError: ({ context, event }) => {
|
|
666
|
+
const { moduleErrorCode } = event;
|
|
667
|
+
addEvent({
|
|
668
|
+
code: "errorTriggered",
|
|
669
|
+
module: context.currentStep,
|
|
670
|
+
payload: moduleErrorCode === void 0 ? { advanced: false } : {
|
|
671
|
+
errorCode: moduleErrorCode,
|
|
672
|
+
advanced: false
|
|
673
|
+
}
|
|
674
|
+
});
|
|
675
|
+
},
|
|
545
676
|
trackAdvanceableModuleError: ({ context, event }) => {
|
|
546
677
|
addEvent({
|
|
547
678
|
code: "errorTriggered",
|
|
@@ -555,7 +686,9 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
555
686
|
},
|
|
556
687
|
guards: {
|
|
557
688
|
isAdvanceableModuleError: ({ event }) => isAdvanceableError(event.moduleErrorCode),
|
|
558
|
-
|
|
689
|
+
isEarlySearchCompletion: ({ context, event }) => endsOnlyThroughItsMachine(context.currentStep) && event.fromChild !== true,
|
|
690
|
+
isAdvanceableSearchError: ({ context, event }) => endsOnlyThroughItsMachine(context.currentStep) && isAdvanceableError(event.moduleErrorCode),
|
|
691
|
+
isMisconfiguredFlow: ({ event }) => "output" in event && event.output.arming.status === "misconfigured",
|
|
559
692
|
isLastStep: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex === context.steps.length - 1,
|
|
560
693
|
canGoNext: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex < context.steps.length - 1,
|
|
561
694
|
isOnboardingFinishedSignal: ({ event }) => event.output?.action === "onboardingFinished",
|
|
@@ -564,17 +697,18 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
564
697
|
activatesBeforeFirstModule: ({ context, event }) => {
|
|
565
698
|
if (!("output" in event)) return false;
|
|
566
699
|
if (!context.deferActivation || context.activationResolved) return false;
|
|
567
|
-
const flow = event.output;
|
|
700
|
+
const { flow } = event.output;
|
|
568
701
|
const firstModuleKey = flow.flowModules?.[0]?.key;
|
|
569
702
|
if (!firstModuleKey || firstModuleKey === "REDIRECT_TO_MOBILE") return false;
|
|
570
|
-
if (!(context
|
|
703
|
+
if (!canResolveModule(context, firstModuleKey)) return false;
|
|
571
704
|
return !homeScreenEnabled(context, flow);
|
|
572
705
|
},
|
|
573
706
|
hasModule: ({ context, event }) => {
|
|
574
707
|
if (!("output" in event)) return false;
|
|
575
|
-
const
|
|
708
|
+
const { flow } = event.output;
|
|
709
|
+
const firstModuleKey = flow.flowModules?.[0]?.key;
|
|
576
710
|
if (!firstModuleKey) return false;
|
|
577
|
-
return context
|
|
711
|
+
return canResolveModule(context, firstModuleKey);
|
|
578
712
|
},
|
|
579
713
|
hasCurrentModuleMachine: ({ event }) => {
|
|
580
714
|
if (!("output" in event)) return false;
|
|
@@ -597,22 +731,31 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
597
731
|
invoke: {
|
|
598
732
|
id: "fetchFlow",
|
|
599
733
|
src: "fetchFlow",
|
|
600
|
-
input: ({ context }) => ({
|
|
734
|
+
input: ({ context }) => ({
|
|
735
|
+
getFlow: context.getFlow,
|
|
736
|
+
canResolve: (key) => canResolveModule(context, key)
|
|
737
|
+
}),
|
|
601
738
|
onDone: [
|
|
739
|
+
{
|
|
740
|
+
target: "error",
|
|
741
|
+
guard: "isMisconfiguredFlow",
|
|
742
|
+
actions: ["setMisconfiguredFlowError", "reportMisconfiguredFlow"]
|
|
743
|
+
},
|
|
602
744
|
{
|
|
603
745
|
target: "resolvingActivation",
|
|
604
746
|
guard: "activatesBeforeFirstModule",
|
|
605
|
-
actions: "setFlowData"
|
|
747
|
+
actions: ["setFlowData", "reportArmedPresets"]
|
|
606
748
|
},
|
|
607
749
|
{
|
|
608
750
|
target: "resolvingModule",
|
|
609
751
|
guard: "hasModule",
|
|
610
|
-
actions: "setFlowData"
|
|
752
|
+
actions: ["setFlowData", "reportArmedPresets"]
|
|
611
753
|
},
|
|
612
754
|
{
|
|
613
755
|
target: "error",
|
|
614
756
|
actions: assign({ error: ({ event }) => {
|
|
615
|
-
const
|
|
757
|
+
const { flow } = event.output;
|
|
758
|
+
const firstModuleKey = flow.flowModules?.[0]?.key;
|
|
616
759
|
return firstModuleKey ? `No registered module found for: ${firstModuleKey}` : "No registered module found: flow has no modules";
|
|
617
760
|
} })
|
|
618
761
|
}
|
|
@@ -721,13 +864,6 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
721
864
|
config: context.config
|
|
722
865
|
};
|
|
723
866
|
},
|
|
724
|
-
onDone: [{
|
|
725
|
-
target: "completing",
|
|
726
|
-
guard: "isLastStep"
|
|
727
|
-
}, {
|
|
728
|
-
target: "resolvingModule",
|
|
729
|
-
actions: "incrementStep"
|
|
730
|
-
}],
|
|
731
867
|
onError: {
|
|
732
868
|
target: "error",
|
|
733
869
|
actions: "setError"
|
|
@@ -735,40 +871,42 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
735
871
|
},
|
|
736
872
|
on: {
|
|
737
873
|
MODULE_COMPLETE: [
|
|
874
|
+
{ guard: "isEarlySearchCompletion" },
|
|
738
875
|
{
|
|
739
876
|
target: "finished",
|
|
740
877
|
guard: "isOnboardingFinishedSignal"
|
|
741
878
|
},
|
|
742
879
|
{
|
|
743
|
-
target: "
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
880
|
+
target: "advancing",
|
|
881
|
+
actions: [
|
|
882
|
+
"persistSkipFaceMatch",
|
|
883
|
+
"reportPresetDecisions",
|
|
884
|
+
"removeSkippedPresetMembers"
|
|
885
|
+
]
|
|
749
886
|
}
|
|
750
887
|
],
|
|
751
888
|
MODULE_ERROR: [
|
|
752
|
-
{
|
|
753
|
-
guard: "isAdvanceableModuleErrorOnLastStep",
|
|
754
|
-
target: "completing",
|
|
755
|
-
actions: ["setModuleErrorCode", "trackAdvanceableModuleError"]
|
|
756
|
-
},
|
|
889
|
+
{ guard: "isAdvanceableSearchError" },
|
|
757
890
|
{
|
|
758
891
|
guard: "isAdvanceableModuleError",
|
|
759
|
-
target: "
|
|
892
|
+
target: "advancing",
|
|
760
893
|
actions: [
|
|
761
894
|
"setModuleErrorCode",
|
|
762
895
|
"trackAdvanceableModuleError",
|
|
763
|
-
"
|
|
896
|
+
"reportPresetDecisions",
|
|
897
|
+
"removeSkippedPresetMembers"
|
|
764
898
|
]
|
|
765
899
|
},
|
|
766
900
|
{
|
|
767
901
|
target: "error",
|
|
768
|
-
actions: [
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
902
|
+
actions: [
|
|
903
|
+
"setModuleErrorCode",
|
|
904
|
+
"trackFailingModuleError",
|
|
905
|
+
assign(({ event }) => {
|
|
906
|
+
const rawError = event.error;
|
|
907
|
+
return { error: rawError === void 0 ? void 0 : String(rawError) };
|
|
908
|
+
})
|
|
909
|
+
]
|
|
772
910
|
}
|
|
773
911
|
],
|
|
774
912
|
COMPLETE_FLOW: { target: "completing" },
|
|
@@ -779,6 +917,13 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
779
917
|
}
|
|
780
918
|
}
|
|
781
919
|
},
|
|
920
|
+
advancing: { always: [{
|
|
921
|
+
target: "completing",
|
|
922
|
+
guard: "isLastStep"
|
|
923
|
+
}, {
|
|
924
|
+
target: "resolvingModule",
|
|
925
|
+
actions: "incrementStep"
|
|
926
|
+
}] },
|
|
782
927
|
completing: {
|
|
783
928
|
invoke: {
|
|
784
929
|
id: "notifyBackend",
|
|
@@ -836,7 +981,8 @@ function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
|
|
|
836
981
|
presentation: {
|
|
837
982
|
isAwaitingReady: awaitingOrchestrator,
|
|
838
983
|
lazyModuleKey,
|
|
839
|
-
shouldPrefetchHome
|
|
984
|
+
shouldPrefetchHome,
|
|
985
|
+
prefetchModuleKeys: lazyModuleKey === void 0 ? [] : getStepsThatMayRunNext(snapshot.context)
|
|
840
986
|
}
|
|
841
987
|
};
|
|
842
988
|
}
|
|
@@ -844,7 +990,7 @@ function getMappedStatus(snapshot) {
|
|
|
844
990
|
const { value } = snapshot;
|
|
845
991
|
if (value === "idle") return "idle";
|
|
846
992
|
if (value === "completing") return "completing";
|
|
847
|
-
if (value === "loading" || value === "resolvingModule" || value === "resolvingActivation" || typeof value === "object") return "loading";
|
|
993
|
+
if (value === "loading" || value === "resolvingModule" || value === "resolvingActivation" || value === "advancing" || typeof value === "object") return "loading";
|
|
848
994
|
if (value === "finished") return "finished";
|
|
849
995
|
if (value === "error") return "error";
|
|
850
996
|
return "ready";
|
|
@@ -940,7 +1086,7 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
|
|
|
940
1086
|
function getCanNext() {
|
|
941
1087
|
const snapshot = getSnapshot();
|
|
942
1088
|
const { currentStepIndex, steps } = snapshot.context;
|
|
943
|
-
return snapshot.value === "runningModule" && currentStepIndex >= 0 && currentStepIndex < steps.length - 1;
|
|
1089
|
+
return snapshot.value === "runningModule" && currentStepIndex >= 0 && currentStepIndex < steps.length - 1 && !endsOnlyThroughItsMachine(snapshot.context.currentStep);
|
|
944
1090
|
}
|
|
945
1091
|
function getModuleConfig(moduleKey) {
|
|
946
1092
|
const snapshot = getSnapshot();
|
|
@@ -1038,8 +1184,18 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
|
|
|
1038
1184
|
* Prefer using the typed methods (completeModule, errorModule) when possible.
|
|
1039
1185
|
*/
|
|
1040
1186
|
send(event) {
|
|
1187
|
+
if ("fromChild" in event) {
|
|
1188
|
+
const { fromChild: _fromChild, ...rest } = event;
|
|
1189
|
+
actor.send(rest);
|
|
1190
|
+
return;
|
|
1191
|
+
}
|
|
1041
1192
|
actor.send(event);
|
|
1042
1193
|
},
|
|
1194
|
+
/**
|
|
1195
|
+
* True while a step runs that `completeModule()` would move past to
|
|
1196
|
+
* another step. False on the last step, and on a step only its own machine
|
|
1197
|
+
* can end, such as the identity search.
|
|
1198
|
+
*/
|
|
1043
1199
|
get canNext() {
|
|
1044
1200
|
return getCanNext();
|
|
1045
1201
|
},
|
|
@@ -1105,4 +1261,4 @@ function createOrchestratedFlowManager(options) {
|
|
|
1105
1261
|
}), { getInterviewId: options.getInterviewId });
|
|
1106
1262
|
}
|
|
1107
1263
|
//#endregion
|
|
1108
|
-
export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|
|
1264
|
+
export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFirstFlowModuleKey, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|
package/dist/{flowCompletionService-DgA2VEq4.esm.js → flowCompletionService-DNLssMAg.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-BNxrW8xK.esm.js";
|
|
2
|
+
import { i as toIncodeApiError } from "./apiError-BAfdBGxH.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}` : ""}`;
|