@incodetech/core 2.1.0-rc.1 → 2.1.0-rc.3
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/3dAvatarProvider-ChciZmjE.esm.js +28214 -0
- package/dist/{BrowserStorageProvider-BpJM-gIl.esm.js → BrowserStorageProvider-CrrN540a.esm.js} +1 -8
- package/dist/BrowserVisibilityObserverProvider-rim9Jrz-.esm.js +25 -0
- package/dist/Face2DProvider-BeLlYBbB.esm.js +824 -0
- package/dist/FaceDetectionProvider-B78455D4.d.ts +119 -0
- package/dist/IVisibilityObserverCapability-BbWjgpiF.d.ts +12 -0
- package/dist/IWasmUtilCapability-d2XvzaCk.d.ts +145 -0
- package/dist/IpifyProvider-BRW14_uo.esm.js +51 -0
- package/dist/{OpenViduRecordingProvider-O4GjBseO.esm.js → OpenViduRecordingProvider-B_0GKkzc.esm.js} +1 -1
- package/dist/PrivacyLensProvider-hDzaDzZ6.esm.js +339 -0
- package/dist/{StreamCanvasCapture-ImiDQdVA.esm.js → StreamCanvasCapture-Bz17q4FP.esm.js} +1 -1
- package/dist/StreamCanvasCapture-DS1TOoiH.d.ts +42 -0
- package/dist/{WasmUtilProvider-BKWm8rSA.esm.js → WasmUtilProvider-ADG54T6M.esm.js} +26 -2
- package/dist/{addressSearch-DvmWXKZg.esm.js → addressSearch-DJyNTg5S.esm.js} +4 -4
- package/dist/{ae-signature-BFZta3TZ.esm.js → ae-signature-DlElqFrZ.esm.js} +1 -1
- package/dist/ae-signature.d.ts +4 -3
- package/dist/ae-signature.esm.js +10 -7
- package/dist/antifraud.d.ts +4 -3
- package/dist/antifraud.esm.js +7 -6
- package/dist/antifraudManager-BKdQoMFf.esm.js +84 -0
- package/dist/{antifraudManager-CznnhyvD.d.ts → antifraudManager-DpIvbrZP.d.ts} +2 -2
- package/dist/{antifraudStateMachine-Ccrb-Jxc.esm.js → antifraudStateMachine-C0NGnP9W.esm.js} +3 -3
- package/dist/{api-CESGtpbH.esm.js → api-DsbUi7TO.esm.js} +21 -2
- package/dist/authentication.d.ts +19 -13
- package/dist/authentication.esm.js +33 -27
- package/dist/{authenticationManager-CaiQbp-q.d.ts → authenticationManager-CdPbNS2H.d.ts} +13 -3
- package/dist/{authenticationManager-BlR6mSaG.esm.js → authenticationManager-Dtl1vcET.esm.js} +17 -8
- package/dist/{authenticationStateMachine-DkcGUMw5.esm.js → authenticationStateMachine-D-hOlg8p.esm.js} +20 -23
- package/dist/avatar.d.ts +3 -0
- package/dist/avatar.esm.js +3 -0
- package/dist/{backCameraStream-D7Wo4Nbx.esm.js → backCameraStream-ZyqrFyjO.esm.js} +3 -3
- package/dist/browser-DlFgHpoC-qLKs75Qp.esm.js +1425 -0
- package/dist/{browserSimulation-B1dWiXp7.esm.js → browserSimulation-TsSoavQv.esm.js} +153 -1216
- package/dist/camera-DUkgmYMo.esm.js +79 -0
- package/dist/camera.d.ts +7 -1
- package/dist/camera.esm.js +4 -4
- package/dist/{StreamCanvasCapture-yyl20qd9.d.ts → canvas-CJUmoXSD.d.ts} +1 -41
- package/dist/certificate-issuance.d.ts +312 -0
- package/dist/certificate-issuance.esm.js +74 -0
- package/dist/certificateIssuanceStateMachine-C07m7qtP.esm.js +127 -0
- package/dist/clientLifecycle-Ct7h9uxx.esm.js +534 -0
- package/dist/consent.d.ts +4 -3
- package/dist/consent.esm.js +7 -6
- package/dist/{consentManager-BYo9Nu1r.esm.js → consentManager-BtnPZUW4.esm.js} +30 -5
- package/dist/{consentManager-Cg5Sk2tv.d.ts → consentManager-DufVo9D9.d.ts} +55 -55
- package/dist/{consentStateMachine-BG3yL8aC.esm.js → consentStateMachine-DO2JqoZW.esm.js} +3 -3
- package/dist/cpf-ocr.d.ts +4 -3
- package/dist/cpf-ocr.esm.js +7 -6
- package/dist/{cpfOcrManager-sSKegxox.esm.js → cpfOcrManager-C4rLgKsu.esm.js} +6 -5
- package/dist/{cpfOcrManager-Dg1s_TY5.d.ts → cpfOcrManager-DqZZ94Gt.d.ts} +19 -19
- package/dist/createFaceAvatar-B8pFpy6o.d.ts +401 -0
- package/dist/createFaceAvatar-BOHDKQRq.esm.js +46 -0
- package/dist/cross-document-data-match.d.ts +2 -1
- package/dist/cross-document-data-match.esm.js +6 -5
- package/dist/curp-validation.d.ts +10 -7
- package/dist/curp-validation.esm.js +7 -6
- package/dist/{curpValidationManager-CFem6zP9.esm.js → curpValidationManager-BafobPXC.esm.js} +52 -5
- package/dist/{curpValidationManager-RttixpIc.d.ts → curpValidationManager-Co6LZAHT.d.ts} +4 -3
- package/dist/{curpValidationStateMachine-B7V_qp66.esm.js → curpValidationStateMachine-DXTPK6vI.esm.js} +3 -3
- package/dist/custom-fields.d.ts +4 -2
- package/dist/custom-fields.esm.js +49 -6
- package/dist/custom-watchlist.d.ts +2 -1
- package/dist/custom-watchlist.esm.js +27 -6
- package/dist/{customWatchlistStateMachine-HmFybXLX.esm.js → customWatchlistStateMachine-B4G3Chkx.esm.js} +3 -3
- package/dist/{deepsightLoader-8tnddNx-.esm.js → deepsightLoader-DHSVD776.esm.js} +14 -13
- package/dist/{deepsightService-CrHmvx8X.esm.js → deepsightService-CDahSjGP.esm.js} +9 -38
- package/dist/deepsightService-CMB9XjES.d.ts +69 -0
- package/dist/device.d.ts +9 -1
- package/dist/device.esm.js +5 -5
- package/dist/document-capture.d.ts +178 -177
- package/dist/document-capture.esm.js +78 -14
- package/dist/document-upload.d.ts +51 -50
- package/dist/document-upload.esm.js +10 -9
- package/dist/{documentCaptureStateMachine-CUTUzUw_.esm.js → documentCaptureStateMachine-DSOX2epf.esm.js} +7 -7
- package/dist/dynamic-forms.d.ts +4 -192
- package/dist/dynamic-forms.esm.js +8 -410
- package/dist/dynamicFormsManager-BOefZbyF.esm.js +168 -0
- package/dist/dynamicFormsManager-CUYLOj9g.d.ts +239 -0
- package/dist/dynamicFormsStateMachine-BXHcaocI.esm.js +284 -0
- package/dist/ekyb.d.ts +10 -6
- package/dist/ekyb.esm.js +62 -17
- package/dist/{ekybStateMachine-klc-AImJ.esm.js → ekybStateMachine-CCSeqjCt.esm.js} +5 -5
- package/dist/ekyc.d.ts +5 -3
- package/dist/ekyc.esm.js +55 -9
- package/dist/{ekycStateMachine-CXbpaJJn.esm.js → ekycStateMachine-DkLVTOyA.esm.js} +5 -5
- package/dist/electronic-signature.d.ts +4 -3
- package/dist/electronic-signature.esm.js +9 -6
- package/dist/{electronicSignatureManager-BaECdJ1u.esm.js → electronicSignatureManager-DjzUzqZj.esm.js} +135 -92
- package/dist/email.d.ts +5 -4
- package/dist/email.esm.js +9 -8
- package/dist/{emailManager--D5G3ChB.esm.js → emailManager-B_XzEsXH.esm.js} +47 -6
- package/dist/{emailManager-lAzDoQOs.d.ts → emailManager-fHASH6uo.d.ts} +4 -3
- package/dist/{emailStateMachine-CxTOMAjC.esm.js → emailStateMachine-fqJ42b19.esm.js} +5 -5
- package/dist/{endpoints-BeTK0Mlt.esm.js → endpoints-BzMJFAPV.esm.js} +15 -0
- package/dist/{events-Dvvriq9l.esm.js → events-CqGY1yMq.esm.js} +87 -206
- package/dist/events.d.ts +23 -16
- package/dist/events.esm.js +3 -2
- package/dist/extensibility.d.ts +37 -27
- package/dist/extensibility.esm.js +74 -57
- package/dist/externalFetch-CyhBfD-n.esm.js +22 -0
- package/dist/face-match.d.ts +2 -2
- package/dist/face-match.esm.js +6 -5
- package/dist/{faceCaptureManagerFactory-ej2j1LMr.esm.js → faceCaptureManagerFactory-2brKTzMb.esm.js} +115 -25
- package/dist/faceCaptureManagerFactory-CGKbf7zt.d.ts +400 -0
- package/dist/{faceCaptureSetup-B9t6bYze.esm.js → faceCaptureSetup-CDUVU1nl.esm.js} +97 -13
- package/dist/{faceMatchStateMachine-DeXXzSuz.esm.js → faceMatchStateMachine-DUeUjEPx.esm.js} +3 -3
- package/dist/field-comparison.d.ts +4 -3
- package/dist/field-comparison.esm.js +6 -5
- package/dist/{fieldComparisonManager-COGI2ARD.esm.js → fieldComparisonManager-B9W0a9A5.esm.js} +5 -4
- package/dist/{fieldComparisonManager-Bu5TaSr3.d.ts → fieldComparisonManager-DdLqDeB2.d.ts} +2 -2
- package/dist/fiscal-qr.d.ts +5 -3
- package/dist/fiscal-qr.esm.js +13 -12
- package/dist/flow-events.d.ts +8 -6
- package/dist/flow.d.ts +34 -16
- package/dist/flow.esm.js +53 -30
- package/dist/flowCompletionService-BIqSTZcd.d.ts +28 -0
- package/dist/flowCompletionService-qEqh_g14.esm.js +42 -0
- package/dist/{flowServices-ChgTNggJ.esm.js → flowServices-C4piblgx.esm.js} +24 -9
- package/dist/geolocation.d.ts +4 -126
- package/dist/geolocation.esm.js +8 -87
- package/dist/geolocationManager-BP2Do9O-.esm.js +123 -0
- package/dist/geolocationManager-Cs50eRlC.d.ts +156 -0
- package/dist/{geolocationStateMachine-Dvh7X0wF.esm.js → geolocationStateMachine-BYfOOOG0.esm.js} +4 -4
- package/dist/{getDeviceClass-C8Do2qYu.esm.js → getDeviceClass-DGGzzfqm.esm.js} +1 -1
- package/dist/getDeviceData-TrKM8NPh.esm.js +101 -0
- package/dist/government-validation.d.ts +4 -3
- package/dist/government-validation.esm.js +43 -8
- package/dist/{governmentValidationStateMachine-DcJ-BfsC.esm.js → governmentValidationStateMachine-CwoPPO8b.esm.js} +5 -5
- package/dist/home.d.ts +18 -15
- package/dist/home.esm.js +5 -4
- package/dist/http.d.ts +1 -0
- package/dist/http.esm.js +2 -2
- package/dist/id-ocr.d.ts +4 -625
- package/dist/id-ocr.esm.js +8 -84
- package/dist/id-verification.d.ts +28 -27
- package/dist/id-verification.esm.js +6 -5
- package/dist/id.d.ts +24 -13
- package/dist/id.esm.js +48 -33
- package/dist/idCaptureDefaults-DNJON8Xo.esm.js +188 -0
- package/dist/{idCaptureManager-ChCNmgBj.d.ts → idCaptureManager-BVdvfJys.d.ts} +47 -12
- package/dist/{idCaptureManager-D3pwWutw.esm.js → idCaptureManager-Bo9DCQSU.esm.js} +100 -15
- package/dist/{idCaptureStateMachine-B3AiDIsT.esm.js → idCaptureStateMachine-BeDidMLU.esm.js} +525 -439
- package/dist/idOcrManager-BkRDrpZu.esm.js +92 -0
- package/dist/idOcrManager-CJzrmM91.d.ts +641 -0
- package/dist/{idOcrStateMachine-CDQ5d_VM.esm.js → idOcrStateMachine-DRZc4FBl.esm.js} +5 -5
- package/dist/{idVerificationStateMachine-kRxwImzO.esm.js → idVerificationStateMachine-oqiERKpg.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +4 -3
- package/dist/identity-reuse.esm.js +7 -6
- package/dist/{identityReuseManager-C6n_97dw.esm.js → identityReuseManager-Bu62LToE.esm.js} +4 -3
- package/dist/{identityReuseManager-Cww-NDtd.d.ts → identityReuseManager-TWKbXuvY.d.ts} +33 -33
- package/dist/{identityReuseStateMachine-BfE5YiEr.esm.js → identityReuseStateMachine-BmONeF6B.esm.js} +3 -3
- package/dist/{index-B5hPA0Bg.d.ts → index-DtUlD-bz.d.ts} +2 -2
- package/dist/{index-B9NysVDB.d.ts → index-Icld-cKW.d.ts} +175 -295
- package/dist/index-XTtxaahe.d.ts +93 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +16 -12
- package/dist/{invokeOnCaptureCallback-ygByVdnn.esm.js → invokeOnCaptureCallback-v_PV_IJz.esm.js} +1 -1
- package/dist/{lib-BY67lgbq.esm.js → lib-B050WTth.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +10 -7
- package/dist/mandatory-consent.esm.js +7 -6
- package/dist/{mandatoryConsentManager-Dq6WiOZh.d.ts → mandatoryConsentManager-Bmdjo14S.d.ts} +50 -50
- package/dist/{mandatoryConsentManager-H6D18cZB.esm.js → mandatoryConsentManager-CQ3jirlZ.esm.js} +4 -3
- package/dist/{mandatoryConsentStateMachine-DtQNW1ji.esm.js → mandatoryConsentStateMachine-DkJJLHqC.esm.js} +3 -3
- package/dist/mediaRecorderOptions-C3NAkVgK.esm.js +42 -0
- package/dist/mediapipeShared-CRAKVElv.esm.js +67 -0
- package/dist/{recordingService-yRw7hfzU.esm.js → onDeviceFaceResults-DVBggeq8.esm.js} +71 -389
- package/dist/{openviduLazy-Dh14JNJc.esm.js → openviduLazy-BTOIauGP.esm.js} +2 -2
- package/dist/openviduLazy-Dov8oKfL.esm.js +3 -0
- package/dist/{permissionGuards-D0wGddy7.esm.js → permissionGuards-BR2oN573.esm.js} +1 -1
- package/dist/{permissionServices-Doec4X5L.esm.js → permissionServices-BJhGL13R.esm.js} +7 -4
- package/dist/personhood.d.ts +534 -0
- package/dist/personhood.esm.js +1494 -0
- package/dist/phone.d.ts +5 -4
- package/dist/phone.esm.js +9 -8
- package/dist/{phoneManager-fPmIBYQK.d.ts → phoneManager-BOTcjXgs.d.ts} +4 -3
- package/dist/{phoneManager-BmF-0Ez4.esm.js → phoneManager-BWlxqbyD.esm.js} +48 -6
- package/dist/{phoneStateMachine-BiV0yoEx.esm.js → phoneStateMachine-B_V9nODs.esm.js} +5 -5
- package/dist/{qe-signature-CUYPcHVo.esm.js → qe-signature-BhFnI9pT.esm.js} +1 -1
- package/dist/qe-signature.d.ts +4 -3
- package/dist/qe-signature.esm.js +10 -7
- package/dist/recordingService-m_1xCthr.esm.js +347 -0
- package/dist/redirect-to-mobile.d.ts +4 -3
- package/dist/redirect-to-mobile.esm.js +9 -7
- package/dist/{redirectToMobileManager-Dy3t7o0C.esm.js → redirectToMobileManager-BaAo9rgi.esm.js} +5 -4
- package/dist/{redirectToMobileManager-BNe3IzC_.d.ts → redirectToMobileManager-Br0KZK1G.d.ts} +2 -2
- package/dist/{redirectToMobileStateMachine-DyAdRxfP.esm.js → redirectToMobileStateMachine-DoAnf2ql.esm.js} +16 -28
- package/dist/{runChildModule-CuoHZ1cx.esm.js → runChildModule-0nQfjVVo.esm.js} +14 -24
- package/dist/selfie.d.ts +27 -14
- package/dist/selfie.esm.js +43 -30
- package/dist/{selfieManager-BNuTIGAz.esm.js → selfieManager-D_ZFERsE.esm.js} +17 -8
- package/dist/{selfieManager-C2y_t6DG.d.ts → selfieManager-R0Jw5sjb.d.ts} +13 -3
- package/dist/{selfieStateMachine-Bv99bZJE.esm.js → selfieStateMachine-CIgeeiN9.esm.js} +4 -4
- package/dist/{session-DoVb-OcB.esm.js → session-9jIfKFCc.esm.js} +3 -3
- package/dist/session.d.ts +11 -8
- package/dist/session.esm.js +16 -12
- package/dist/{sessionInitializer-DRB-hgbV.esm.js → sessionInitializer-C_TYIgyk.esm.js} +16 -109
- package/dist/{setup-BwCluiw3.d.ts → setup-CpRnXxn8.d.ts} +61 -2
- package/dist/setup-DHc6OaHm.esm.js +562 -0
- package/dist/signature.d.ts +4 -2
- package/dist/signature.esm.js +49 -6
- package/dist/{signatureStateMachine-C5qqYLRz.esm.js → signatureStateMachine-DtoiPzys.esm.js} +21 -39
- package/dist/{stats-BMNUG1AU.esm.js → stats-CYcScXcO.esm.js} +2 -2
- package/dist/stats.esm.js +3 -3
- package/dist/thumbmarkAdapter-fHBUDlAP.esm.js +1194 -0
- package/dist/tri-BG1iJsr4.esm.js +399 -0
- package/dist/tri.d.ts +2 -0
- package/dist/tri.esm-DUC01NgO.esm.js +2593 -0
- package/dist/tri.esm.js +4 -0
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +4 -3
- package/dist/{types-NuT8ftBV.d.ts → types-BklZ_Wne.d.ts} +2 -1
- package/dist/{types-DOUhndhT.d.ts → types-BsYXnC5s.d.ts} +39 -3
- package/dist/{types-DsnEVMhr.esm.js → types-CMcxlSmH.esm.js} +2 -1
- package/dist/types-CxW2e0Ar.d.ts +132 -0
- package/dist/{types-Bj9hdFjU.d.ts → types-DgGlgyZT.d.ts} +1 -1
- package/dist/types-ElOJAGaM.esm.js +189 -0
- package/dist/urlUtils-BZqFU9rR.esm.js +16 -0
- package/dist/video-C2WIj6TS.esm.js +36 -0
- package/dist/video-selfie.d.ts +351 -0
- package/dist/video-selfie.esm.js +1509 -0
- package/dist/videoSelfieSteps-7M5vxKn-.esm.js +58 -0
- package/dist/{warmup-Dg8Lh-50.d.ts → warmup-BJZPQIiX.d.ts} +5 -1
- package/dist/wasm.d.ts +4 -3
- package/dist/wasm.esm.js +17 -13
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +30 -7
- package/dist/watchlist.d.ts +2 -1
- package/dist/watchlist.esm.js +28 -6
- package/dist/{watchlistForBusinessStateMachine-DMl8j2Ov.esm.js → watchlistForBusinessStateMachine-DvEunDxs.esm.js} +3 -3
- package/dist/{watchlistStateMachine-DmQlqI6L.esm.js → watchlistStateMachine-AHXVf-TB.esm.js} +3 -3
- package/dist/workflow.d.ts +296 -103
- package/dist/workflow.esm.js +137 -74
- package/dist/{xstate.esm-C9wncMQa.esm.js → xstate.esm-Bomq1a0z.esm.js} +54 -5
- package/package.json +26 -1
- package/dist/IpifyProvider-D4LWD15E.esm.js +0 -167
- package/dist/antifraudManager-CkV4u-LE.esm.js +0 -55
- package/dist/camera-DJWm3V4g.esm.js +0 -22
- package/dist/deepsightService-Dh5P-hLf.d.ts +0 -265
- package/dist/faceCaptureManagerFactory-CjdBUS6s.d.ts +0 -721
- package/dist/flowCompletionService-BdR2cGgB.d.ts +0 -19
- package/dist/flowCompletionService-DdGojV9K.esm.js +0 -20
- package/dist/getBrowser-C8DP7oTB.esm.js +0 -8
- package/dist/openviduLazy-B8L--0oe.esm.js +0 -3
- package/dist/setup-CUO4mErT.esm.js +0 -1037
- /package/dist/{Actor-Y0_Fj-KL.d.ts → Actor-CGEelYtQ.d.ts} +0 -0
- /package/dist/{BrowserTimerProvider-DhNc_x02.esm.js → BrowserTimerProvider-CHloo0eQ.esm.js} +0 -0
- /package/dist/{ITimerCapability-CB0I1Uf2.esm.js → ITimerCapability-pltuG1E8.esm.js} +0 -0
- /package/dist/{Manager-BHn8wH8K.d.ts → Manager-CJ3G2zqi.d.ts} +0 -0
- /package/dist/{MotionSensorProvider-Bx7Mpzt0.esm.js → MotionSensorProvider-DCbId4De.esm.js} +0 -0
- /package/dist/{StateMachine-BC_nGvrc.d.ts → StateMachine-C_AY4cs7.d.ts} +0 -0
- /package/dist/{apiError-B-j-gyDx.esm.js → apiError-DNS2OCEX.esm.js} +0 -0
- /package/dist/{camera-SRBpPq2X.d.ts → camera-CNVUo-bC.d.ts} +0 -0
- /package/dist/{canvas-SKcRBxsk.esm.js → canvas-_I95hkPg.esm.js} +0 -0
- /package/dist/{chunk-CMUKZ2uL.esm.js → chunk-CIKcdghV.esm.js} +0 -0
- /package/dist/{cpf-BRzggV8G.esm.js → cpf-BKaho0j_.esm.js} +0 -0
- /package/dist/{dateUtils-AksLQmgV.esm.js → dateUtils-7-tQYRNN.esm.js} +0 -0
- /package/dist/{getDeviceClass-C0olyNFS.esm.js → getDeviceClass-DavNdcxh.esm.js} +0 -0
- /package/dist/{http-Cai3IoLS.esm.js → http-BkiUT7EB.esm.js} +0 -0
- /package/dist/{otp-CGMdUzBC.esm.js → otp-Bfnzf7I3.esm.js} +0 -0
- /package/dist/{otp-DF5A0sFx.d.ts → otp-M4iy57XY.d.ts} +0 -0
- /package/dist/{platform-SKvEfCBh.esm.js → platform-uIVQUnJP.esm.js} +0 -0
- /package/dist/{types-DvGZI7BF.d.ts → types-D_IceWxT.d.ts} +0 -0
- /package/dist/{types-ya0LN_MX.d.ts → types-Duy2rDxF.d.ts} +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { IncodeTRIConfig, IncodeTRIState, Session } from "@incodetech/tri-sdk";
|
|
2
|
+
|
|
3
|
+
//#region ../infra/src/tri/TransactionalRiskIntelligence.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Runtime TRI configuration passed to `IncodeTRI.setup`.
|
|
7
|
+
* Mirrors the upstream `IncodeTRIConfig` (a `TRIConfigBase` intersected with a
|
|
8
|
+
* layer-/collector-based selector union).
|
|
9
|
+
*/
|
|
10
|
+
type TransactionalRiskIntelligenceConfig = IncodeTRIConfig;
|
|
11
|
+
type TransactionalRiskIntelligenceState = IncodeTRIState;
|
|
12
|
+
/**
|
|
13
|
+
* Result of exchanging an organization API key for a short-lived TRI SDK token.
|
|
14
|
+
* Mirrors the upstream `Session` shape: `{ token, eventsCollectionEnabled, error? }`.
|
|
15
|
+
*/
|
|
16
|
+
type TransactionalRiskIntelligenceSession = Session;
|
|
17
|
+
/**
|
|
18
|
+
* Options accepted by the TRI `createSession` exchange. The upstream SDK does
|
|
19
|
+
* not export this shape, so it is mirrored here.
|
|
20
|
+
*/
|
|
21
|
+
type TransactionalRiskIntelligenceSessionOptions = {
|
|
22
|
+
apiURL?: string;
|
|
23
|
+
signal?: AbortSignal;
|
|
24
|
+
timeout?: number;
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/integrations/tri/types.d.ts
|
|
28
|
+
/**
|
|
29
|
+
* Setup-time TRI configuration supplied as `SetupOptions.tri`.
|
|
30
|
+
*
|
|
31
|
+
* Alias for `TransactionalRiskIntelligenceConfig`. `autostart` is defined on
|
|
32
|
+
* the base config (`IncodeTRIConfig.autostart`) — when `true` (the default),
|
|
33
|
+
* `setupTRI()` also starts collection automatically. Pass `autostart: false`
|
|
34
|
+
* to defer collection to an explicit `startTRI()` call (e.g. after a consent
|
|
35
|
+
* gate).
|
|
36
|
+
*
|
|
37
|
+
* `token` and `apiURL` are both required. TRI will not start unless both are
|
|
38
|
+
* present — omitting either is the implicit opt-out.
|
|
39
|
+
*/
|
|
40
|
+
type TransactionalRiskIntelligenceSetupConfig = TransactionalRiskIntelligenceConfig;
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/integrations/tri/tri.d.ts
|
|
43
|
+
/**
|
|
44
|
+
* Returns `true` when TRI collectors are currently running (a successful
|
|
45
|
+
* `setupTRI()` autostart or explicit `startTRI()`, with no subsequent
|
|
46
|
+
* `stopTRI()`/`resetTRI()`). Returns `false` before setup or after teardown.
|
|
47
|
+
*/
|
|
48
|
+
declare function isTRIStarted(): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Exchanges an organization API key for a short-lived TRI SDK token. This is
|
|
51
|
+
* the entry point that triggers the lazy-load of `@incodetech/tri-sdk` (via the
|
|
52
|
+
* provider's dynamic `import()`); the cached lazy handle is reused by a
|
|
53
|
+
* subsequent `setupTRI()`.
|
|
54
|
+
*
|
|
55
|
+
* In production the exchange should happen server-side. On a load timeout or
|
|
56
|
+
* failure the returned session carries `token: null` and an `error`, rather
|
|
57
|
+
* than throwing.
|
|
58
|
+
*
|
|
59
|
+
* @param apiKey - Organization API key.
|
|
60
|
+
* @param options - Optional `apiURL`, `signal`, and `timeout` overrides.
|
|
61
|
+
*/
|
|
62
|
+
declare function createTRISession(apiKey: string, options?: TransactionalRiskIntelligenceSessionOptions): Promise<TransactionalRiskIntelligenceSession>;
|
|
63
|
+
/**
|
|
64
|
+
* Calls the provider's `setup()` with the given config. This is the step that
|
|
65
|
+
* lazy-loads `@incodetech/tri-sdk`, validates the config, and checks the
|
|
66
|
+
* backend collection-status endpoint. When `config.autostart` is `true` (the
|
|
67
|
+
* default), also calls `start()` internally and returns `'started'` on
|
|
68
|
+
* success. Pass `autostart: false` to receive `'ready'` and start explicitly.
|
|
69
|
+
*
|
|
70
|
+
* @param config - Resolved TRI config (`token` and `apiURL` required).
|
|
71
|
+
* @returns The resulting {@link TransactionalRiskIntelligenceState}.
|
|
72
|
+
*/
|
|
73
|
+
declare function setupTRI(config: TransactionalRiskIntelligenceConfig): Promise<TransactionalRiskIntelligenceState>;
|
|
74
|
+
/**
|
|
75
|
+
* Begins behavioral data collection. Requires a prior successful `setupTRI()`
|
|
76
|
+
* call with `autostart: false`. Returns `'init-failed'` without starting if
|
|
77
|
+
* called before setup, or is a no-op if already started.
|
|
78
|
+
*
|
|
79
|
+
* @returns The resulting {@link TransactionalRiskIntelligenceState}.
|
|
80
|
+
*/
|
|
81
|
+
declare function startTRI(): Promise<TransactionalRiskIntelligenceState>;
|
|
82
|
+
/**
|
|
83
|
+
* Stops all TRI collectors and managers. Idempotent. No-op if TRI was never
|
|
84
|
+
* set up.
|
|
85
|
+
*/
|
|
86
|
+
declare function stopTRI(): Promise<TransactionalRiskIntelligenceState>;
|
|
87
|
+
/**
|
|
88
|
+
* Resets the TRI SDK to its initial state. Call this from the SDK's `reset()`
|
|
89
|
+
* so that a subsequent `setupTRI` / `startTRI` can begin fresh.
|
|
90
|
+
*/
|
|
91
|
+
declare function resetTRI(): Promise<TransactionalRiskIntelligenceState>;
|
|
92
|
+
//#endregion
|
|
93
|
+
export { startTRI as a, setupTRI as i, isTRIStarted as n, stopTRI as o, resetTRI as r, TransactionalRiskIntelligenceSetupConfig as s, createTRISession as t };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import "./warmup-
|
|
2
|
-
import
|
|
1
|
+
import "./warmup-BJZPQIiX.js";
|
|
2
|
+
import "./index-XTtxaahe.js";
|
|
3
|
+
import { a as isConfigured, c as setup, o as reset, t as SetupOptions } from "./setup-CpRnXxn8.js";
|
|
3
4
|
export { type SetupOptions, isConfigured, reset, setup };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import "./WasmUtilProvider-
|
|
2
|
-
import {
|
|
3
|
-
import "./BrowserTimerProvider-
|
|
4
|
-
import "./api-
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
1
|
+
import "./WasmUtilProvider-ADG54T6M.esm.js";
|
|
2
|
+
import { i as reset, o as setup, r as isConfigured } from "./setup-DHc6OaHm.esm.js";
|
|
3
|
+
import "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
4
|
+
import "./api-DsbUi7TO.esm.js";
|
|
5
|
+
import "./clientLifecycle-Ct7h9uxx.esm.js";
|
|
6
|
+
import "./events-CqGY1yMq.esm.js";
|
|
7
|
+
import "./types-ElOJAGaM.esm.js";
|
|
8
|
+
import "./endpoints-BzMJFAPV.esm.js";
|
|
9
|
+
import "./stats-CYcScXcO.esm.js";
|
|
10
|
+
import "./browserSimulation-TsSoavQv.esm.js";
|
|
11
|
+
import "./sessionInitializer-C_TYIgyk.esm.js";
|
|
12
|
+
import "./getDeviceData-TrKM8NPh.esm.js";
|
|
13
|
+
import "./thumbmarkAdapter-fHBUDlAP.esm.js";
|
|
14
|
+
import "./IpifyProvider-BRW14_uo.esm.js";
|
|
15
|
+
import "./platform-uIVQUnJP.esm.js";
|
|
16
|
+
import "./tri-BG1iJsr4.esm.js";
|
|
13
17
|
|
|
14
18
|
export { isConfigured, reset, setup };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-
|
|
1
|
+
import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-CIKcdghV.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js
|
|
4
4
|
var require_jsnlog = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js": ((exports) => {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./types-
|
|
6
|
-
import "./types-
|
|
7
|
-
import
|
|
1
|
+
import "./StateMachine-C_AY4cs7.js";
|
|
2
|
+
import "./Manager-CJ3G2zqi.js";
|
|
3
|
+
import "./Actor-CGEelYtQ.js";
|
|
4
|
+
import "./camera-CNVUo-bC.js";
|
|
5
|
+
import "./types-DgGlgyZT.js";
|
|
6
|
+
import "./types-D_IceWxT.js";
|
|
7
|
+
import "./canvas-CJUmoXSD.js";
|
|
8
|
+
import "./createFaceAvatar-B8pFpy6o.js";
|
|
9
|
+
import "./types-BsYXnC5s.js";
|
|
10
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, s as MandatoryConsentConfig, t as MandatoryConsentManager } from "./mandatoryConsentManager-Bmdjo14S.js";
|
|
8
11
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./events-
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
1
|
+
import "./api-DsbUi7TO.esm.js";
|
|
2
|
+
import "./events-CqGY1yMq.esm.js";
|
|
3
|
+
import "./types-ElOJAGaM.esm.js";
|
|
4
|
+
import "./endpoints-BzMJFAPV.esm.js";
|
|
5
|
+
import "./xstate.esm-Bomq1a0z.esm.js";
|
|
6
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DkJJLHqC.esm.js";
|
|
7
|
+
import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-CQ3jirlZ.esm.js";
|
|
7
8
|
|
|
8
9
|
export { createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-Dq6WiOZh.d.ts → mandatoryConsentManager-Bmdjo14S.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
3
|
-
import { a as RegulationTypes } from "./types-
|
|
4
|
-
import * as
|
|
1
|
+
import { t as Manager } from "./Manager-CJ3G2zqi.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-CGEelYtQ.js";
|
|
3
|
+
import { a as RegulationTypes } from "./types-BsYXnC5s.js";
|
|
4
|
+
import * as xstate1484 from "xstate";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/mandatory-consent/types.d.ts
|
|
7
7
|
type RegulatoryConsentType = 'MANDATORY' | 'ML';
|
|
@@ -32,7 +32,7 @@ type MandatoryConsentContext = {
|
|
|
32
32
|
type MandatoryConsentInput = {
|
|
33
33
|
config: MandatoryConsentConfig;
|
|
34
34
|
};
|
|
35
|
-
declare const mandatoryConsentMachine:
|
|
35
|
+
declare const mandatoryConsentMachine: xstate1484.StateMachine<MandatoryConsentContext, {
|
|
36
36
|
type: "LOAD";
|
|
37
37
|
} | {
|
|
38
38
|
type: "TOGGLE";
|
|
@@ -45,53 +45,53 @@ declare const mandatoryConsentMachine: xstate226.StateMachine<MandatoryConsentCo
|
|
|
45
45
|
} | {
|
|
46
46
|
type: "RESET";
|
|
47
47
|
}, {
|
|
48
|
-
[x: string]:
|
|
48
|
+
[x: string]: xstate1484.ActorRefFromLogic<xstate1484.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
49
49
|
config: MandatoryConsentConfig;
|
|
50
|
-
},
|
|
50
|
+
}, xstate1484.EventObject>> | xstate1484.ActorRefFromLogic<xstate1484.PromiseActorLogic<void, {
|
|
51
51
|
consentId: string;
|
|
52
52
|
isSigned: boolean;
|
|
53
|
-
},
|
|
54
|
-
},
|
|
53
|
+
}, xstate1484.EventObject>> | undefined;
|
|
54
|
+
}, xstate1484.Values<{
|
|
55
55
|
fetchConsent: {
|
|
56
56
|
src: "fetchConsent";
|
|
57
|
-
logic:
|
|
57
|
+
logic: xstate1484.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
58
58
|
config: MandatoryConsentConfig;
|
|
59
|
-
},
|
|
59
|
+
}, xstate1484.EventObject>;
|
|
60
60
|
id: string | undefined;
|
|
61
61
|
};
|
|
62
62
|
submitConsent: {
|
|
63
63
|
src: "submitConsent";
|
|
64
|
-
logic:
|
|
64
|
+
logic: xstate1484.PromiseActorLogic<void, {
|
|
65
65
|
consentId: string;
|
|
66
66
|
isSigned: boolean;
|
|
67
|
-
},
|
|
67
|
+
}, xstate1484.EventObject>;
|
|
68
68
|
id: string | undefined;
|
|
69
69
|
};
|
|
70
|
-
}>,
|
|
70
|
+
}>, xstate1484.Values<{
|
|
71
71
|
setConsent: {
|
|
72
72
|
type: "setConsent";
|
|
73
|
-
params:
|
|
73
|
+
params: xstate1484.NonReducibleUnknown;
|
|
74
74
|
};
|
|
75
75
|
setError: {
|
|
76
76
|
type: "setError";
|
|
77
|
-
params:
|
|
77
|
+
params: xstate1484.NonReducibleUnknown;
|
|
78
78
|
};
|
|
79
79
|
clearError: {
|
|
80
80
|
type: "clearError";
|
|
81
|
-
params:
|
|
81
|
+
params: xstate1484.NonReducibleUnknown;
|
|
82
82
|
};
|
|
83
83
|
resetContext: {
|
|
84
84
|
type: "resetContext";
|
|
85
|
-
params:
|
|
85
|
+
params: xstate1484.NonReducibleUnknown;
|
|
86
86
|
};
|
|
87
87
|
toggleSigned: {
|
|
88
88
|
type: "toggleSigned";
|
|
89
|
-
params:
|
|
89
|
+
params: xstate1484.NonReducibleUnknown;
|
|
90
90
|
};
|
|
91
91
|
}>, {
|
|
92
92
|
type: "canSubmit";
|
|
93
93
|
params: unknown;
|
|
94
|
-
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "
|
|
94
|
+
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, xstate1484.NonReducibleUnknown, xstate1484.EventObject, xstate1484.MetaObject, {
|
|
95
95
|
readonly id: "mandatoryConsent";
|
|
96
96
|
readonly initial: "idle";
|
|
97
97
|
readonly context: ({
|
|
@@ -100,70 +100,70 @@ declare const mandatoryConsentMachine: xstate226.StateMachine<MandatoryConsentCo
|
|
|
100
100
|
spawn: {
|
|
101
101
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
102
102
|
src: "fetchConsent";
|
|
103
|
-
logic:
|
|
103
|
+
logic: xstate1484.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
104
104
|
config: MandatoryConsentConfig;
|
|
105
|
-
},
|
|
105
|
+
}, xstate1484.EventObject>;
|
|
106
106
|
id: string | undefined;
|
|
107
107
|
} extends infer T ? T extends {
|
|
108
108
|
src: "fetchConsent";
|
|
109
|
-
logic:
|
|
109
|
+
logic: xstate1484.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
110
110
|
config: MandatoryConsentConfig;
|
|
111
|
-
},
|
|
111
|
+
}, xstate1484.EventObject>;
|
|
112
112
|
id: string | undefined;
|
|
113
113
|
} ? T extends {
|
|
114
114
|
src: TSrc;
|
|
115
|
-
} ?
|
|
115
|
+
} ? xstate1484.ConditionalRequired<[options?: ({
|
|
116
116
|
id?: T["id"] | undefined;
|
|
117
117
|
systemId?: string;
|
|
118
|
-
input?:
|
|
118
|
+
input?: xstate1484.InputFrom<T["logic"]> | undefined;
|
|
119
119
|
syncSnapshot?: boolean;
|
|
120
|
-
} & { [K in
|
|
120
|
+
} & { [K in xstate1484.RequiredActorOptions<T>]: unknown }) | undefined], xstate1484.IsNotNever<xstate1484.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
121
121
|
src: "submitConsent";
|
|
122
|
-
logic:
|
|
122
|
+
logic: xstate1484.PromiseActorLogic<void, {
|
|
123
123
|
consentId: string;
|
|
124
124
|
isSigned: boolean;
|
|
125
|
-
},
|
|
125
|
+
}, xstate1484.EventObject>;
|
|
126
126
|
id: string | undefined;
|
|
127
127
|
} extends infer T_1 ? T_1 extends {
|
|
128
128
|
src: "submitConsent";
|
|
129
|
-
logic:
|
|
129
|
+
logic: xstate1484.PromiseActorLogic<void, {
|
|
130
130
|
consentId: string;
|
|
131
131
|
isSigned: boolean;
|
|
132
|
-
},
|
|
132
|
+
}, xstate1484.EventObject>;
|
|
133
133
|
id: string | undefined;
|
|
134
134
|
} ? T_1 extends {
|
|
135
135
|
src: TSrc;
|
|
136
|
-
} ?
|
|
136
|
+
} ? xstate1484.ConditionalRequired<[options?: ({
|
|
137
137
|
id?: T_1["id"] | undefined;
|
|
138
138
|
systemId?: string;
|
|
139
|
-
input?:
|
|
139
|
+
input?: xstate1484.InputFrom<T_1["logic"]> | undefined;
|
|
140
140
|
syncSnapshot?: boolean;
|
|
141
|
-
} & { [K_1 in
|
|
141
|
+
} & { [K_1 in xstate1484.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1484.IsNotNever<xstate1484.RequiredActorOptions<T_1>>> : never : never : never)): xstate1484.ActorRefFromLogic<xstate1484.GetConcreteByKey<xstate1484.Values<{
|
|
142
142
|
fetchConsent: {
|
|
143
143
|
src: "fetchConsent";
|
|
144
|
-
logic:
|
|
144
|
+
logic: xstate1484.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
145
145
|
config: MandatoryConsentConfig;
|
|
146
|
-
},
|
|
146
|
+
}, xstate1484.EventObject>;
|
|
147
147
|
id: string | undefined;
|
|
148
148
|
};
|
|
149
149
|
submitConsent: {
|
|
150
150
|
src: "submitConsent";
|
|
151
|
-
logic:
|
|
151
|
+
logic: xstate1484.PromiseActorLogic<void, {
|
|
152
152
|
consentId: string;
|
|
153
153
|
isSigned: boolean;
|
|
154
|
-
},
|
|
154
|
+
}, xstate1484.EventObject>;
|
|
155
155
|
id: string | undefined;
|
|
156
156
|
};
|
|
157
157
|
}>, "src", TSrc>["logic"]>;
|
|
158
|
-
<TLogic extends
|
|
158
|
+
<TLogic extends xstate1484.AnyActorLogic>(src: TLogic, ...[options]: xstate1484.ConditionalRequired<[options?: ({
|
|
159
159
|
id?: never;
|
|
160
160
|
systemId?: string;
|
|
161
|
-
input?:
|
|
161
|
+
input?: xstate1484.InputFrom<TLogic> | undefined;
|
|
162
162
|
syncSnapshot?: boolean;
|
|
163
|
-
} & { [K in
|
|
163
|
+
} & { [K in xstate1484.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1484.IsNotNever<xstate1484.RequiredLogicInput<TLogic>>>): xstate1484.ActorRefFromLogic<TLogic>;
|
|
164
164
|
};
|
|
165
165
|
input: MandatoryConsentInput;
|
|
166
|
-
self:
|
|
166
|
+
self: xstate1484.ActorRef<xstate1484.MachineSnapshot<MandatoryConsentContext, {
|
|
167
167
|
type: "LOAD";
|
|
168
168
|
} | {
|
|
169
169
|
type: "TOGGLE";
|
|
@@ -175,7 +175,7 @@ declare const mandatoryConsentMachine: xstate226.StateMachine<MandatoryConsentCo
|
|
|
175
175
|
type: "RETRY";
|
|
176
176
|
} | {
|
|
177
177
|
type: "RESET";
|
|
178
|
-
}, Record<string,
|
|
178
|
+
}, Record<string, xstate1484.AnyActorRef | undefined>, xstate1484.StateValue, string, unknown, any, any>, {
|
|
179
179
|
type: "LOAD";
|
|
180
180
|
} | {
|
|
181
181
|
type: "TOGGLE";
|
|
@@ -187,7 +187,7 @@ declare const mandatoryConsentMachine: xstate226.StateMachine<MandatoryConsentCo
|
|
|
187
187
|
type: "RETRY";
|
|
188
188
|
} | {
|
|
189
189
|
type: "RESET";
|
|
190
|
-
},
|
|
190
|
+
}, xstate1484.AnyEventObject>;
|
|
191
191
|
}) => {
|
|
192
192
|
config: MandatoryConsentConfig;
|
|
193
193
|
consent: undefined;
|
|
@@ -224,7 +224,7 @@ declare const mandatoryConsentMachine: xstate226.StateMachine<MandatoryConsentCo
|
|
|
224
224
|
} | {
|
|
225
225
|
type: "RESET";
|
|
226
226
|
};
|
|
227
|
-
self:
|
|
227
|
+
self: xstate1484.ActorRef<xstate1484.MachineSnapshot<MandatoryConsentContext, {
|
|
228
228
|
type: "LOAD";
|
|
229
229
|
} | {
|
|
230
230
|
type: "TOGGLE";
|
|
@@ -236,7 +236,7 @@ declare const mandatoryConsentMachine: xstate226.StateMachine<MandatoryConsentCo
|
|
|
236
236
|
type: "RETRY";
|
|
237
237
|
} | {
|
|
238
238
|
type: "RESET";
|
|
239
|
-
}, Record<string,
|
|
239
|
+
}, Record<string, xstate1484.AnyActorRef>, xstate1484.StateValue, string, unknown, any, any>, {
|
|
240
240
|
type: "LOAD";
|
|
241
241
|
} | {
|
|
242
242
|
type: "TOGGLE";
|
|
@@ -248,7 +248,7 @@ declare const mandatoryConsentMachine: xstate226.StateMachine<MandatoryConsentCo
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "RESET";
|
|
251
|
-
},
|
|
251
|
+
}, xstate1484.AnyEventObject>;
|
|
252
252
|
}) => {
|
|
253
253
|
config: MandatoryConsentConfig;
|
|
254
254
|
};
|
|
@@ -301,7 +301,7 @@ declare const mandatoryConsentMachine: xstate226.StateMachine<MandatoryConsentCo
|
|
|
301
301
|
} | {
|
|
302
302
|
type: "RESET";
|
|
303
303
|
};
|
|
304
|
-
self:
|
|
304
|
+
self: xstate1484.ActorRef<xstate1484.MachineSnapshot<MandatoryConsentContext, {
|
|
305
305
|
type: "LOAD";
|
|
306
306
|
} | {
|
|
307
307
|
type: "TOGGLE";
|
|
@@ -313,7 +313,7 @@ declare const mandatoryConsentMachine: xstate226.StateMachine<MandatoryConsentCo
|
|
|
313
313
|
type: "RETRY";
|
|
314
314
|
} | {
|
|
315
315
|
type: "RESET";
|
|
316
|
-
}, Record<string,
|
|
316
|
+
}, Record<string, xstate1484.AnyActorRef>, xstate1484.StateValue, string, unknown, any, any>, {
|
|
317
317
|
type: "LOAD";
|
|
318
318
|
} | {
|
|
319
319
|
type: "TOGGLE";
|
|
@@ -325,7 +325,7 @@ declare const mandatoryConsentMachine: xstate226.StateMachine<MandatoryConsentCo
|
|
|
325
325
|
type: "RETRY";
|
|
326
326
|
} | {
|
|
327
327
|
type: "RESET";
|
|
328
|
-
},
|
|
328
|
+
}, xstate1484.AnyEventObject>;
|
|
329
329
|
}) => {
|
|
330
330
|
consentId: string;
|
|
331
331
|
isSigned: boolean;
|
package/dist/{mandatoryConsentManager-H6D18cZB.esm.js → mandatoryConsentManager-CQ3jirlZ.esm.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as createManagerInstrumentation } from "./events-CqGY1yMq.esm.js";
|
|
2
|
+
import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
|
|
3
|
+
import { l as createManager, s as createActor } from "./xstate.esm-Bomq1a0z.esm.js";
|
|
4
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DkJJLHqC.esm.js";
|
|
4
5
|
|
|
5
6
|
//#region src/modules/mandatory-consent/mandatoryConsentActor.ts
|
|
6
7
|
function createMandatoryConsentActor(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-
|
|
1
|
+
import { t as api } from "./api-DsbUi7TO.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-BzMJFAPV.esm.js";
|
|
3
|
+
import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-Bomq1a0z.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/mandatory-consent/mandatoryConsentServices.ts
|
|
6
6
|
async function fetchMandatoryConsent(regulationType, language, type, signal) {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { r as isIOS } from "./platform-uIVQUnJP.esm.js";
|
|
2
|
+
|
|
3
|
+
//#region ../infra/src/media/mediaRecorderOptions.ts
|
|
4
|
+
/**
|
|
5
|
+
* Picks a `MediaRecorder` mime type the current browser actually supports,
|
|
6
|
+
* preferring mp4 on iOS and webm elsewhere. Returns '' when none match.
|
|
7
|
+
*/
|
|
8
|
+
function getSupportedMediaRecorderMimeType() {
|
|
9
|
+
const possibleTypes = isIOS() ? [
|
|
10
|
+
"video/mp4",
|
|
11
|
+
"video/webm",
|
|
12
|
+
"video/webm;codecs=vp9",
|
|
13
|
+
"video/webm;codecs=vp8"
|
|
14
|
+
] : [
|
|
15
|
+
"video/webm",
|
|
16
|
+
"video/webm;codecs=vp9",
|
|
17
|
+
"video/webm;codecs=vp8",
|
|
18
|
+
"video/mp4"
|
|
19
|
+
];
|
|
20
|
+
for (const type of possibleTypes) if (MediaRecorder.isTypeSupported(type)) return type;
|
|
21
|
+
return "";
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* `MediaRecorder` options tuned per platform — a higher bitrate on iOS, lower
|
|
25
|
+
* elsewhere — paired with the supported mime type.
|
|
26
|
+
*/
|
|
27
|
+
function getAdaptiveMediaRecorderOptions() {
|
|
28
|
+
const mimeType = getSupportedMediaRecorderMimeType();
|
|
29
|
+
if (isIOS()) return {
|
|
30
|
+
mimeType,
|
|
31
|
+
videoBitsPerSecond: 1e6,
|
|
32
|
+
bitsPerSecond: 1e6
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
mimeType,
|
|
36
|
+
videoBitsPerSecond: 5e5,
|
|
37
|
+
bitsPerSecond: 5e5
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { getSupportedMediaRecorderMimeType as n, getAdaptiveMediaRecorderOptions as t };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
//#region ../infra/src/avatar/pose/mediapipeShared.ts
|
|
2
|
+
/**
|
|
3
|
+
* Creates a MediaPipe FaceLandmarker, shielding the global-`Module` collision.
|
|
4
|
+
*
|
|
5
|
+
* Incode's own ml-wasm-kit glue assigns its emscripten *factory function* to
|
|
6
|
+
* `window.Module` (see `wasm/apiUtilities.ts`). MediaPipe's emscripten glue
|
|
7
|
+
* adopts any pre-existing global `Module` and then reads `Module.arguments` —
|
|
8
|
+
* which, on a function, throws "'caller'/'callee'/'arguments' may not be accessed
|
|
9
|
+
* on strict mode functions". Stash and clear the global across MediaPipe init,
|
|
10
|
+
* then restore it for the SDK pipeline. The runtime is loaded from the prebuilt
|
|
11
|
+
* ESM (CDN/self-hosted) via a `@vite-ignore` dynamic import; the npm copy is used
|
|
12
|
+
* for types only.
|
|
13
|
+
*
|
|
14
|
+
* Rejects if init fails (callers handle that defensively — start aborts, or the
|
|
15
|
+
* detect-failure recovery path retries once).
|
|
16
|
+
*
|
|
17
|
+
* Fixed options (cross-device hardening — see FACE_AVATAR.md → Mobile hardening):
|
|
18
|
+
* - `delegate: 'CPU'` — the GPU delegate is numerically unstable on some mobile
|
|
19
|
+
* GPUs (NaN ROIs / procrustes failures that permanently poison the graph); CPU
|
|
20
|
+
* (XNNPACK) is slower but robust and frees a WebGL context for three + the
|
|
21
|
+
* Incode pipeline.
|
|
22
|
+
* - `outputFacialTransformationMatrixes: false` — that matrix's procrustes solver
|
|
23
|
+
* is the same fragile path; pose is derived from raw landmarks instead.
|
|
24
|
+
* - `outputFaceBlendshapes: true` — drives blink / mouth / smile.
|
|
25
|
+
*/
|
|
26
|
+
async function createFaceLandmarker(paths) {
|
|
27
|
+
const globalScope = window;
|
|
28
|
+
const savedModule = globalScope.Module;
|
|
29
|
+
globalScope.Module = void 0;
|
|
30
|
+
try {
|
|
31
|
+
const tasksVision = await import(
|
|
32
|
+
/* @vite-ignore */
|
|
33
|
+
paths.mediapipeModulePath
|
|
34
|
+
);
|
|
35
|
+
const fileset = await tasksVision.FilesetResolver.forVisionTasks(paths.mediapipeWasmPath);
|
|
36
|
+
return await tasksVision.FaceLandmarker.createFromOptions(fileset, {
|
|
37
|
+
baseOptions: {
|
|
38
|
+
modelAssetPath: paths.faceLandmarkerModelPath,
|
|
39
|
+
delegate: "CPU"
|
|
40
|
+
},
|
|
41
|
+
runningMode: "VIDEO",
|
|
42
|
+
numFaces: 1,
|
|
43
|
+
outputFaceBlendshapes: true,
|
|
44
|
+
outputFacialTransformationMatrixes: false
|
|
45
|
+
});
|
|
46
|
+
} finally {
|
|
47
|
+
globalScope.Module = savedModule;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/** Returns the video as `RvfcCapable` if it supports rVFC, else null. */
|
|
51
|
+
function asRvfc(video) {
|
|
52
|
+
const v = video;
|
|
53
|
+
return typeof v.requestVideoFrameCallback === "function" && typeof v.cancelVideoFrameCallback === "function" ? v : null;
|
|
54
|
+
}
|
|
55
|
+
const REF_FRAME_MS = 1e3 / 30;
|
|
56
|
+
/** Clamp on the EMA delta so a frame stall can't over-snap the smoother. */
|
|
57
|
+
const MAX_EMA_DT_MS = 100;
|
|
58
|
+
/** Frame-rate-independent EMA factor for a 30 fps-authored `refAlpha` over `dtMs`. */
|
|
59
|
+
function dtAlpha(refAlpha, dtMs) {
|
|
60
|
+
if (refAlpha <= 0) return 0;
|
|
61
|
+
if (refAlpha >= 1) return 1;
|
|
62
|
+
const tau = -REF_FRAME_MS / Math.log(1 - refAlpha);
|
|
63
|
+
return 1 - Math.exp(-dtMs / tau);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { dtAlpha as i, asRvfc as n, createFaceLandmarker as r, MAX_EMA_DT_MS as t };
|