@incodetech/core 0.0.0-dev-20260715-b208c5e1 → 0.0.0-dev-20260715-dcc78bcd
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-BYxFCuIv.esm.js → 3dAvatarProvider-D9H4rR6_.esm.js} +811 -880
- package/dist/Actor-iTq7YY48.d.ts +1 -0
- package/dist/{BrowserStorageProvider-CBXGCHnK.esm.js → BrowserStorageProvider-P6aUarE9.esm.js} +1 -2
- package/dist/{BrowserTimerProvider-CHloo0eQ.esm.js → BrowserTimerProvider-BXhgNxLt.esm.js} +1 -2
- package/dist/{BrowserVisibilityObserverProvider-B04zvOXW.esm.js → BrowserVisibilityObserverProvider-sJclps4C.esm.js} +1 -3
- package/dist/{Face2DProvider-TeN1Xqr0.esm.js → Face2DProvider-xWUeSJZI.esm.js} +10 -22
- package/dist/{createFaceAvatar-BjBu2CrU.d.ts → FaceDetectionProvider-BHweGBEM.d.ts} +108 -159
- package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +23 -0
- package/dist/IStorageCapability-B8IGxCwe.d.ts +131 -0
- package/dist/{ITimerCapability-G7lQg-be.esm.js → ITimerCapability-DgdDzp8G.esm.js} +1 -2
- package/dist/{Manager-DE5DydXZ.d.ts → Manager-CQQ99QOI.d.ts} +1 -0
- package/dist/{MotionSensorProvider-BkHKMCPE.esm.js → MotionSensorProvider-DYvM90IX.esm.js} +1 -2
- package/dist/{OpenViduRecordingProvider-xR5osKzW.esm.js → OpenViduRecordingProvider-Du98qevC.esm.js} +2 -4
- package/dist/{PrivacyLensProvider-CqlsCaJv.esm.js → PrivacyLensProvider-BrYSd1dr.esm.js} +2 -5
- package/dist/StateMachine-EDpYWy0i.d.ts +6 -0
- package/dist/{StreamCanvasCapture-CRk7c7u7.esm.js → StreamCanvasCapture-D2XcXCZ4.esm.js} +2 -4
- package/dist/{WasmUtilProvider-BNQ2PBjG.esm.js → WasmUtilProvider-DAshwHhX.esm.js} +38 -71
- package/dist/{addressSearch-B2NxSpHl.esm.js → addressSearch-DH-IPF-w.esm.js} +10 -21
- package/dist/ae-signature.d.ts +2 -6
- package/dist/ae-signature.esm.js +10 -11
- package/dist/antifraud.d.ts +1 -6
- package/dist/antifraud.esm.js +3 -8
- package/dist/{antifraudManager-C490m0p4.d.ts → antifraudManager-BY36bS12.d.ts} +3 -3
- package/dist/{antifraudManager-C1xnhF2Q.esm.js → antifraudManager-CL2YhiVX.esm.js} +11 -8
- package/dist/{antifraudStateMachine-BQVw46N5.esm.js → antifraudStateMachine-Bf-IiCq7.esm.js} +5 -7
- package/dist/{api-DsbUi7TO.esm.js → api-BDTZNnca.esm.js} +1 -2
- package/dist/{apiError-DkOXfFBu.esm.js → apiError-COvIGYWe.esm.js} +1 -2
- package/dist/authentication.d.ts +2 -19
- package/dist/authentication.esm.js +3 -34
- package/dist/{authenticationManager-DZXQpCjQ.esm.js → authenticationManager-DM7ttL5V.esm.js} +7 -10
- package/dist/{authenticationManager-BD81fnrn.d.ts → authenticationManager-G-k-13Fe.d.ts} +3 -4
- package/dist/{authenticationStateMachine-CJrTbLWU.esm.js → authenticationStateMachine-DiI8jfmO.esm.js} +11 -15
- package/dist/avatar.d.ts +2 -2
- package/dist/avatar.esm.js +2 -3
- package/dist/{backCameraStream-DYnfq7Hr.esm.js → backCameraStream-Heg6vA1j.esm.js} +4 -7
- package/dist/browser-DlFgHpoC-DnyrCR8r.esm.js +1513 -0
- package/dist/callback-645_omgz.d.ts +133 -0
- package/dist/{camera-B0yWS33x.esm.js → camera-BmFEyPP_.esm.js} +1 -2
- package/dist/camera.d.ts +1 -2
- package/dist/camera.esm.js +2 -6
- package/dist/{canvas-DsJa51yU.esm.js → canvas-E1zGkel4.esm.js} +1 -2
- package/dist/certificate-issuance.d.ts +34 -39
- package/dist/certificate-issuance.esm.js +4 -11
- package/dist/{certificateIssuanceStateMachine-CpewPqas.esm.js → certificateIssuanceStateMachine-Ce568YfR.esm.js} +7 -11
- package/dist/{clientLifecycle-CCJMDjFe.esm.js → clientLifecycle-DzT65Fvf.esm.js} +23 -29
- package/dist/consent.d.ts +1 -4
- package/dist/consent.esm.js +3 -8
- package/dist/{consentManager-r4MTIoV3.esm.js → consentManager-D3GyyH5u.esm.js} +5 -7
- package/dist/{consentManager-QGuw4zmH.d.ts → consentManager-DLOyIZzt.d.ts} +58 -64
- package/dist/{consentStateMachine-DnqwsZ7o.esm.js → consentStateMachine-Pc3Ez3mV.esm.js} +5 -7
- package/dist/{cpf-B9htWzDt.esm.js → cpf-BIADjddF.esm.js} +1 -2
- package/dist/cpf-ocr.d.ts +1 -5
- package/dist/cpf-ocr.esm.js +2 -8
- package/dist/{cpfOcrManager-RkeZCqSz.d.ts → cpfOcrManager-CQkUAeWO.d.ts} +21 -23
- package/dist/{cpfOcrManager-D6ZQ9kkv.esm.js → cpfOcrManager-Cwm0MesJ.esm.js} +7 -12
- package/dist/createFaceAvatar-BEj18KXi.d.ts +50 -0
- package/dist/{createFaceAvatar-B_v2At2h.esm.js → createFaceAvatar-CwVapQiu.esm.js} +5 -9
- package/dist/cross-document-data-match.d.ts +1 -5
- package/dist/cross-document-data-match.esm.js +2 -8
- package/dist/{crossDocumentDataMatchManager-DoFG_S91.esm.js → crossDocumentDataMatchManager-9rdIO8Qk.esm.js} +12 -12
- package/dist/{crossDocumentDataMatchManager-CdiqxhJm.d.ts → crossDocumentDataMatchManager-Dq8Z3SOg.d.ts} +3 -3
- package/dist/curp-validation.d.ts +1 -11
- package/dist/curp-validation.esm.js +3 -8
- package/dist/{curpValidationManager-07oV78Bn.d.ts → curpValidationManager--HSBTwOy.d.ts} +4 -6
- package/dist/{curpValidationManager-D6jt1Gs9.esm.js → curpValidationManager-C2i9Lzx9.esm.js} +11 -7
- package/dist/{curpValidationStateMachine-Dlw4qfFb.esm.js → curpValidationStateMachine-7i3TD8J2.esm.js} +22 -14
- package/dist/custom-fields.d.ts +2 -5
- package/dist/custom-fields.esm.js +24 -11
- package/dist/custom-watchlist.d.ts +1 -3
- package/dist/custom-watchlist.esm.js +11 -10
- package/dist/{customWatchlistStateMachine-D8w0mNxm.esm.js → customWatchlistStateMachine-D23XTxl2.esm.js} +5 -7
- package/dist/{dateUtils-BW6mBV6p.esm.js → dateUtils-CvG0FvK8.esm.js} +1 -2
- package/dist/{deepsightService-CV1NAkg9.esm.js → deepsightLoader-CQWGVLP0.esm.js} +62 -14
- package/dist/deepsightService-CR-CYdka.d.ts +218 -0
- package/dist/device.d.ts +0 -1
- package/dist/device.esm.js +5 -10
- package/dist/document-capture.d.ts +1 -6
- package/dist/document-capture.esm.js +3 -16
- package/dist/document-upload.d.ts +48 -55
- package/dist/document-upload.esm.js +8 -14
- package/dist/{documentCaptureManager-HNu28khr.d.ts → documentCaptureManager-Biz_PFqs.d.ts} +190 -199
- package/dist/{documentCaptureManager-pufyUaQz.esm.js → documentCaptureManager-DijbJFun.esm.js} +5 -7
- package/dist/{documentCaptureStateMachine-CaJgb_Vn.esm.js → documentCaptureStateMachine-qgsrlcVh.esm.js} +11 -15
- package/dist/dynamic-forms.d.ts +1 -4
- package/dist/dynamic-forms.esm.js +3 -10
- package/dist/{dynamicFormsManager-C3jlNlWK.esm.js → dynamicFormsManager-COik5bJ7.esm.js} +41 -7
- package/dist/{dynamicFormsManager-HQhUJCLg.d.ts → dynamicFormsManager-Dposae2l.d.ts} +3 -4
- package/dist/{dynamicFormsStateMachine-DdpJI6ne.esm.js → dynamicFormsStateMachine-BV-Fn13x.esm.js} +7 -11
- package/dist/ekyb.d.ts +4 -11
- package/dist/ekyb.esm.js +3 -20
- package/dist/{ekybManager-l67BnqxH.esm.js → ekybManager-BTcW4poN.esm.js} +17 -7
- package/dist/{ekybManager-CZUVEWMw.d.ts → ekybManager-CBX0tM04.d.ts} +4 -5
- package/dist/{ekybStateMachine-BmfNaHRF.esm.js → ekybStateMachine-DmZLm35R.esm.js} +16 -25
- package/dist/ekyc.d.ts +2 -7
- package/dist/ekyc.esm.js +3 -11
- package/dist/{ekycManager-ClRqj2rg.d.ts → ekycManager-BFpHbBoT.d.ts} +4 -5
- package/dist/{ekycManager-B_uUa1iN.esm.js → ekycManager-BSMlIpGA.esm.js} +14 -7
- package/dist/{ekycStateMachine-BD8GjdL5.esm.js → ekycStateMachine-a7oP-XWo.esm.js} +140 -201
- package/dist/electronic-signature.d.ts +2 -5
- package/dist/electronic-signature.esm.js +2 -10
- package/dist/{electronicSignatureManager-CzMj-Tjm.esm.js → electronicSignatureManager-DSZu9OHT.esm.js} +9 -14
- package/dist/email.d.ts +1 -5
- package/dist/email.esm.js +3 -10
- package/dist/{emailManager-Lv9BHgel.d.ts → emailManager-CADXW_9X.d.ts} +4 -7
- package/dist/{emailManager-BsynjdWX.esm.js → emailManager-c-mDLieD.esm.js} +76 -12
- package/dist/{emailStateMachine-Z-Jf4qOc.esm.js → emailStateMachine-ChNwY22u.esm.js} +7 -9
- package/dist/{endpoints-CwrFQfW7.esm.js → endpoints-DLQ0g4-R.esm.js} +33 -2
- package/dist/{events-aeCkGlnn.esm.js → events-Dy8PyVO5.esm.js} +4 -168
- package/dist/events.d.ts +1 -9
- package/dist/events.esm.js +2 -4
- package/dist/extensibility.d.ts +30 -42
- package/dist/extensibility.esm.js +29 -87
- package/dist/{externalFetch-hvmz_npP.esm.js → externalFetch-BKBThAUC.esm.js} +2 -4
- package/dist/face-match.d.ts +1 -5
- package/dist/face-match.esm.js +3 -8
- package/dist/{faceCaptureManagerFactory-CGFQg1kl.d.ts → faceCaptureManagerFactory-BWD3O4Eg.d.ts} +50 -14
- package/dist/{faceCaptureManagerFactory-BIH53wvb.esm.js → faceCaptureManagerFactory-CZLSziU3.esm.js} +49 -28
- package/dist/{faceCaptureSetup-shrwrZaK.esm.js → faceCaptureSetup-__lVldUG.esm.js} +12 -15
- package/dist/{faceMatchManager-BrNYVk-p.esm.js → faceMatchManager-B7jlv77Q.esm.js} +24 -7
- package/dist/{faceMatchManager-X2eQo0o-.d.ts → faceMatchManager-CJQG1W1u.d.ts} +4 -4
- package/dist/{faceMatchStateMachine-CbeacEqd.esm.js → faceMatchStateMachine-DD7FxtUj.esm.js} +6 -9
- package/dist/field-comparison.d.ts +1 -4
- package/dist/field-comparison.esm.js +2 -7
- package/dist/{fieldComparisonManager-BxhleGNI.esm.js → fieldComparisonManager-5LlxYad-.esm.js} +6 -11
- package/dist/{fieldComparisonManager-Dg03uIX1.d.ts → fieldComparisonManager-CBvEGxFx.d.ts} +3 -5
- package/dist/fiscal-qr.d.ts +1 -6
- package/dist/fiscal-qr.esm.js +14 -29
- package/dist/flow-events.d.ts +2 -9
- package/dist/flow.d.ts +13 -19
- package/dist/flow.esm.js +109 -34
- package/dist/{flowCompletionService-qf-s8Uxl.esm.js → flowCompletionService-DQSC7Kso.esm.js} +4 -6
- package/dist/{flowServices-CJXaWFlZ.esm.js → flowServices-BQEUaMg6.esm.js} +10 -11
- package/dist/geolocation.d.ts +1 -4
- package/dist/geolocation.esm.js +3 -9
- package/dist/{geolocationManager-CAtyY00b.d.ts → geolocationManager-BWhRzBjk.d.ts} +3 -4
- package/dist/{geolocationManager-4j_DV3jW.esm.js → geolocationManager-D58ehBHU.esm.js} +19 -8
- package/dist/{geolocationStateMachine-BE72KBAX.esm.js → geolocationStateMachine-BorcBNZ6.esm.js} +6 -8
- package/dist/getBrowser-Cb8Zgrgp.esm.js +7 -0
- package/dist/{getDeviceClass-BdgmyOOu.esm.js → getDeviceClass-CeBiEayS.esm.js} +1 -2
- package/dist/{getDeviceClass-DsNb6nEl.esm.js → getDeviceClass-CkgnSJel.esm.js} +3 -5
- package/dist/{getBrowser-CZ66VtC7.esm.js → getParsedUserAgent-pJjATANs.esm.js} +109 -30
- package/dist/government-validation.d.ts +3 -6
- package/dist/government-validation.esm.js +7 -13
- package/dist/{governmentValidationStateMachine-BfZ_WQC0.esm.js → governmentValidationStateMachine-DkakcwTj.esm.js} +8 -11
- package/dist/home.d.ts +14 -22
- package/dist/home.esm.js +3 -8
- package/dist/http.d.ts +0 -1
- package/dist/http.esm.js +2 -4
- package/dist/id-ocr.d.ts +1 -5
- package/dist/id-ocr.esm.js +3 -9
- package/dist/id-verification.d.ts +1 -4
- package/dist/id-verification.esm.js +3 -8
- package/dist/id.d.ts +105 -18
- package/dist/id.esm.js +40 -50
- package/dist/{idCaptureDefaults-Df8XKQ0o.esm.js → idCaptureDefaults-Dzfws4i0.esm.js} +9 -16
- package/dist/{idCaptureManager-Fr9c67Rx.esm.js → idCaptureManager-BGAdNNVq.esm.js} +117 -23
- package/dist/{idCaptureManager-BXG8kVMW.d.ts → idCaptureManager-CSGbGORT.d.ts} +12 -113
- package/dist/{idCaptureStateMachine-CpjwdaYN.esm.js → idCaptureStateMachine-DYgckwCg.esm.js} +56 -195
- package/dist/{idOcrManager-DLF3J2cx.esm.js → idOcrManager-niAg-BE0.esm.js} +4 -7
- package/dist/{idOcrManager-DnhdGuVX.d.ts → idOcrManager-vXa7GdRh.d.ts} +60 -66
- package/dist/{idOcrStateMachine-BPXTUjNY.esm.js → idOcrStateMachine-CpZZL411.esm.js} +13 -18
- package/dist/{idVerificationManager-BD2FO09A.d.ts → idVerificationManager-BB4Pj_N6.d.ts} +31 -35
- package/dist/{idVerificationManager-23kPMn7T.esm.js → idVerificationManager-CujJqsiX.esm.js} +4 -7
- package/dist/{idVerificationStateMachine-C1eMEu_Y.esm.js → idVerificationStateMachine-D-1GlgC5.esm.js} +5 -7
- package/dist/identity-reuse.d.ts +1 -4
- package/dist/identity-reuse.esm.js +3 -8
- package/dist/{identityReuseManager-Ct-9qYpC.esm.js → identityReuseManager-DHfJZTVo.esm.js} +24 -7
- package/dist/{identityReuseManager-DOufEjLa.d.ts → identityReuseManager-aTyLyYrr.d.ts} +38 -43
- package/dist/{identityReuseStateMachine-Cqc-NwEQ.esm.js → identityReuseStateMachine-CM45EBrb.esm.js} +6 -8
- package/dist/index-B8weJxmL.d.ts +1 -0
- package/dist/index-BKOWUhxG.d.ts +258 -0
- package/dist/{index-WMHgnbC1.d.ts → index-CKbmDFNq.d.ts} +160 -165
- package/dist/{index-Bk5nhSg2.d.ts → index-DQ2fdqoI.d.ts} +3 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.esm.js +2 -15
- package/dist/{invokeOnCaptureCallback-Bs09kdY_.esm.js → invokeOnCaptureCallback-B-QfsCQY.esm.js} +2 -4
- package/dist/{lib-DvZ6nVvW.esm.js → lib-DAyUtOTj.esm.js} +1510 -1589
- package/dist/mandatory-consent.d.ts +1 -10
- package/dist/mandatory-consent.esm.js +3 -8
- package/dist/{mandatoryConsentManager-D0qQHcl2.d.ts → mandatoryConsentManager-BlB4bX6_.d.ts} +59 -65
- package/dist/{mandatoryConsentManager-Bh_n0uEP.esm.js → mandatoryConsentManager-CQC-zA4P.esm.js} +4 -7
- package/dist/{mandatoryConsentStateMachine-DYeKH1L7.esm.js → mandatoryConsentStateMachine-BN4Obfl7.esm.js} +5 -7
- package/dist/{mediaRecorderOptions-BIn657lu.esm.js → mediaRecorderOptions-BhSZDDNb.esm.js} +2 -4
- package/dist/{mediapipeShared-B-RiRyLN.esm.js → mediapipeShared-B0iQQ5k7.esm.js} +2 -6
- package/dist/{onDeviceFaceResults-CJuDp67S.esm.js → onDeviceFaceResults-LRTvBL7m.esm.js} +18 -84
- package/dist/openviduLazy-CCDpFWg1.esm.js +10 -0
- package/dist/{otp-D_9QPNbs.d.ts → otp-CEWfTj9v.d.ts} +0 -1
- package/dist/{otp-Bbe_izFJ.esm.js → otp-D2k3PeSL.esm.js} +3 -14
- package/dist/{permissionGuards-CayfS8OY.esm.js → permissionGuards-DguX5vFY.esm.js} +2 -4
- package/dist/{permissionServices-B7lD6fiG.esm.js → permissionServices-DwNCUB2I.esm.js} +4 -9
- package/dist/personhood.d.ts +13 -20
- package/dist/personhood.esm.js +153 -72
- package/dist/phone.d.ts +1 -5
- package/dist/phone.esm.js +3 -10
- package/dist/{phoneManager-85eRUhJD.d.ts → phoneManager-BBU8Lq0O.d.ts} +4 -7
- package/dist/{phoneManager-Byive8Xl.esm.js → phoneManager-KbcmjEeH.esm.js} +82 -12
- package/dist/{phoneStateMachine-BlYF4nKx.esm.js → phoneStateMachine-wDQtaT38.esm.js} +7 -9
- package/dist/{platform-BoeUeUrV.esm.js → platform-wmV7oTAJ.esm.js} +1 -9
- package/dist/qe-signature.d.ts +2 -6
- package/dist/qe-signature.esm.js +10 -11
- package/dist/{recordingService-BzQUrf40.esm.js → recordingService-TuBlOjvH.esm.js} +15 -19
- package/dist/redirect-to-mobile.d.ts +1 -6
- package/dist/redirect-to-mobile.esm.js +3 -10
- package/dist/{redirectToMobileManager-DrxIfZr8.esm.js → redirectToMobileManager-EGXGKftv.esm.js} +25 -8
- package/dist/{redirectToMobileManager-2TtzpSOw.d.ts → redirectToMobileManager-NVQM3o5P.d.ts} +3 -4
- package/dist/{redirectToMobileStateMachine-BetR6r8p.esm.js → redirectToMobileStateMachine-D-8ipBq2.esm.js} +7 -9
- package/dist/rolldown-runtime-FZ4Itg2g.esm.js +42 -0
- package/dist/{runChildModule-FH_tixbR.esm.js → runChildModule-Crz1nHwJ.esm.js} +5 -9
- package/dist/selfie.d.ts +7 -20
- package/dist/selfie.esm.js +40 -46
- package/dist/{selfieManager-CdUnYjmt.esm.js → selfieManager-C4_2DgTF.esm.js} +7 -10
- package/dist/{selfieManager-d7nkO-UP.d.ts → selfieManager-CN8wJ14s.d.ts} +3 -4
- package/dist/{selfieStateMachine-zz4WqziP.esm.js → selfieStateMachine-ODRceav2.esm.js} +15 -20
- package/dist/selfieUploadService-B4LnSIf6.esm.js +62 -0
- package/dist/session-CQ2x2aLl.esm.js +1 -0
- package/dist/session.d.ts +2 -9
- package/dist/session.esm.js +153 -15
- package/dist/sessionInitializer-Cjpnacyg.esm.js +1801 -0
- package/dist/{setup-BxB6QUto.d.ts → setup-CgBvqGWw.d.ts} +2 -4
- package/dist/{setup-DCyhfufM.esm.js → setup-Hyb_Yiuu.esm.js} +126 -18
- package/dist/signature.d.ts +2 -6
- package/dist/signature.esm.js +6 -9
- package/dist/{signatureStateMachine-U8ewxW1t.esm.js → signatureStateMachine-BmKPC5A9.esm.js} +5 -7
- package/dist/spawn-D9jgw9pW.d.ts +1441 -0
- package/dist/{stats-BVy52wLy.esm.js → stats-Bu6bL_CX.esm.js} +3 -5
- package/dist/stats.esm.js +2 -5
- package/dist/topLevelStateName-B5i2avbh.esm.js +41 -0
- package/dist/{tri-Calc36Ny.esm.js → tri-N-xlKhZK.esm.js} +3 -7
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-BIjHhBJ2.esm.js +2620 -0
- package/dist/tri.esm.js +2 -4
- package/dist/trust-graph.d.ts +4 -5
- package/dist/trust-graph.esm.js +13 -9
- package/dist/{types-Db2ooXIu.esm.js → types-BN5RPPIZ.esm.js} +1 -2
- package/dist/{types-ZezaAAbn.d.ts → types-BfgmV7s7.d.ts} +2 -2
- package/dist/{types-NizIIgLD.d.ts → types-BnEHzP1K.d.ts} +3 -5
- package/dist/{types-DCOl8zy6.d.ts → types-Vb4P9ovf.d.ts} +1 -3
- package/dist/{types-C0D4Brd6.d.ts → types-ctqh-iS4.d.ts} +80 -6
- package/dist/{urlUtils-CpiYwn7w.esm.js → urlUtils-D6phjq1-.esm.js} +1 -2
- package/dist/{video-DXf5H9rY.esm.js → video-BtSWtHy1.esm.js} +1 -2
- package/dist/video-selfie.d.ts +10 -15
- package/dist/video-selfie.esm.js +114 -106
- package/dist/{videoSelfieSteps-DAky5sq5.esm.js → videoSelfieSteps-DHcibfYH.esm.js} +1 -2
- package/dist/wasm.d.ts +2 -4
- package/dist/wasm.esm.js +3 -15
- package/dist/watchlist-for-business.d.ts +1 -3
- package/dist/watchlist-for-business.esm.js +9 -9
- package/dist/watchlist.d.ts +1 -3
- package/dist/watchlist.esm.js +11 -10
- package/dist/{watchlistForBusinessStateMachine-Bbn_dcVT.esm.js → watchlistForBusinessStateMachine-BC_-3fJs.esm.js} +5 -7
- package/dist/{watchlistStateMachine-SZ-1xpe4.esm.js → watchlistStateMachine-CL2j3aRl.esm.js} +5 -7
- package/dist/workflow.d.ts +124 -146
- package/dist/workflow.esm.js +75 -80
- package/dist/xstate-actors.esm-CtI5S0f4.esm.js +310 -0
- package/dist/{xstate.esm-nY3M5UYm.esm.js → xstate.esm-Cf4e0Cfd.esm.js} +136 -610
- package/package.json +2 -2
- package/dist/Actor-CdjYVucI.d.ts +0 -2
- package/dist/FaceDetectionProvider-D-zCGbS9.d.ts +0 -119
- package/dist/IWasmUtilCapability-CuiW_6d1.d.ts +0 -150
- package/dist/StateMachine-BTkXO3Na.d.ts +0 -2
- package/dist/StreamCanvasCapture-D9u4hwul.d.ts +0 -42
- package/dist/ae-signature-eQWjmzE8.esm.js +0 -12
- package/dist/browser-DlFgHpoC-BTB6a7n-.esm.js +0 -1425
- package/dist/browserSimulation-CQjwFn0Z.esm.js +0 -1256
- package/dist/canvas-COIxuirO.d.ts +0 -112
- package/dist/chunk-CIKcdghV.esm.js +0 -49
- package/dist/deepsightLoader-BppeThau.esm.js +0 -67
- package/dist/deepsightService-mkIAy_Eq.d.ts +0 -69
- package/dist/http-C3Pq6njG.esm.js +0 -0
- package/dist/index-BD6ZVw2f.d.ts +0 -93
- package/dist/openviduLazy-CuGqb-8Q.esm.js +0 -12
- package/dist/openviduLazy-DNb0xHJp.esm.js +0 -3
- package/dist/qe-signature-D9XM2d-F.esm.js +0 -12
- package/dist/session--C2lbjK5.esm.js +0 -152
- package/dist/sessionInitializer-Dx_oPfHP.esm.js +0 -548
- package/dist/tri.esm-BDhptA8x.esm.js +0 -2593
- /package/dist/{IVisibilityObserverCapability-C3tAkSfF.d.ts → IVisibilityObserverCapability-D4tvIB5v.d.ts} +0 -0
- /package/dist/{camera-DRH7co71.d.ts → camera-9wWD-pwg.d.ts} +0 -0
- /package/dist/{flowCompletionService-DGcE_OvO.d.ts → flowCompletionService-BlAHsKyv.d.ts} +0 -0
- /package/dist/{types-DawqnFVn.d.ts → types-BT-aiBYV.d.ts} +0 -0
- /package/dist/{types-B6KIOo6S.d.ts → types-Bk_6dmDa.d.ts} +0 -0
- /package/dist/{warmup-CE9Fhs6N.d.ts → warmup-Dv2alr2-.d.ts} +0 -0
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
//#region ../infra/src/media/canvas.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Class representing a canvas element for image capture and manipulation.
|
|
4
|
-
*/
|
|
5
|
-
declare class IncodeCanvas {
|
|
6
|
-
canvas: HTMLCanvasElement;
|
|
7
|
-
private base64Image;
|
|
8
|
-
private blobData;
|
|
9
|
-
/**
|
|
10
|
-
* Creates an {@link IncodeCanvas} from a raw {@link ImageData} frame.
|
|
11
|
-
* @param imageData - Frame pixels in RGBA format
|
|
12
|
-
* @returns An {@link IncodeCanvas} containing the provided pixels
|
|
13
|
-
*/
|
|
14
|
-
static fromImageData(imageData: ImageData): IncodeCanvas;
|
|
15
|
-
/**
|
|
16
|
-
* Create a new canvas element.
|
|
17
|
-
* @param canvas_ - The canvas element to clone.
|
|
18
|
-
*/
|
|
19
|
-
constructor(canvas_: HTMLCanvasElement);
|
|
20
|
-
/**
|
|
21
|
-
* Check if the current canvas is valid.
|
|
22
|
-
*/
|
|
23
|
-
private checkCanvas;
|
|
24
|
-
/**
|
|
25
|
-
* Disposes of resources, including revoking object URLs to prevent memory leaks.
|
|
26
|
-
*/
|
|
27
|
-
dispose(): void;
|
|
28
|
-
/**
|
|
29
|
-
* Release the data stored by IncodeCanvas.
|
|
30
|
-
*/
|
|
31
|
-
release(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Revokes the object URL if one exists, preventing memory leaks.
|
|
34
|
-
* Use this when you no longer need the preview image URL.
|
|
35
|
-
*/
|
|
36
|
-
revokeObjectURL(): void;
|
|
37
|
-
/**
|
|
38
|
-
* Get the width of the canvas.
|
|
39
|
-
*/
|
|
40
|
-
width(): number | null;
|
|
41
|
-
/**
|
|
42
|
-
* Get the height of the canvas.
|
|
43
|
-
*/
|
|
44
|
-
height(): number | null;
|
|
45
|
-
/**
|
|
46
|
-
* Set the width of the canvas.
|
|
47
|
-
*/
|
|
48
|
-
setWidth(width: number): void;
|
|
49
|
-
/**
|
|
50
|
-
* Set the height of the canvas.
|
|
51
|
-
*/
|
|
52
|
-
setHeight(height: number): void;
|
|
53
|
-
/**
|
|
54
|
-
* Clone the current canvas.
|
|
55
|
-
*/
|
|
56
|
-
clone(): IncodeCanvas | null;
|
|
57
|
-
/**
|
|
58
|
-
* Deep clone the current IncodeCanvas including blob data.
|
|
59
|
-
*/
|
|
60
|
-
deepClone(): Promise<IncodeCanvas | null>;
|
|
61
|
-
/**
|
|
62
|
-
* Returns the drawing context on the canvas.
|
|
63
|
-
*/
|
|
64
|
-
getContext(contextId: '2d', contextAttributes?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
|
|
65
|
-
/**
|
|
66
|
-
* Retrieves the image data from the canvas.
|
|
67
|
-
*/
|
|
68
|
-
getImageData(): ImageData | null;
|
|
69
|
-
/**
|
|
70
|
-
* Updates the base64 representation of the current canvas image.
|
|
71
|
-
*/
|
|
72
|
-
updateBase64Image(jpegQuality?: number): void;
|
|
73
|
-
/**
|
|
74
|
-
* Converts the current canvas element to a base64 string.
|
|
75
|
-
*/
|
|
76
|
-
getBase64Image(jpegQuality?: number, includeDataURLPrefix?: boolean): string | null;
|
|
77
|
-
/**
|
|
78
|
-
* Sets the base64 representation of the current canvas image.
|
|
79
|
-
*/
|
|
80
|
-
setBase64Image(base64Image: string | null): void;
|
|
81
|
-
/**
|
|
82
|
-
* Updates the Blob representation of the current canvas image.
|
|
83
|
-
*/
|
|
84
|
-
updateBlob(jpegQuality?: number, includeDataURLPrefix?: boolean): void;
|
|
85
|
-
/**
|
|
86
|
-
* Converts a base64 string to a Blob and creates a URL for it.
|
|
87
|
-
*/
|
|
88
|
-
static base64ToBlob(base64: string): {
|
|
89
|
-
blob: Blob;
|
|
90
|
-
url: string;
|
|
91
|
-
} | null;
|
|
92
|
-
/**
|
|
93
|
-
* Retrieves the Blob data and its URL from the current canvas.
|
|
94
|
-
*/
|
|
95
|
-
getBlobData(jpegQuality?: number, includeDataURLPrefix?: boolean): {
|
|
96
|
-
blob: Blob;
|
|
97
|
-
url: string;
|
|
98
|
-
} | null;
|
|
99
|
-
/**
|
|
100
|
-
* Sets the Blob data of the current canvas image.
|
|
101
|
-
*/
|
|
102
|
-
setBlobData(blobData: {
|
|
103
|
-
blob: Blob;
|
|
104
|
-
url: string;
|
|
105
|
-
}): Promise<void>;
|
|
106
|
-
/**
|
|
107
|
-
* Returns a resized canvas according to video element size.
|
|
108
|
-
*/
|
|
109
|
-
getResizedCanvas(videoElementWidth: number, videoElementHeight: number): IncodeCanvas | null;
|
|
110
|
-
}
|
|
111
|
-
//#endregion
|
|
112
|
-
export { IncodeCanvas as t };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esm = (fn, res) => function() {
|
|
9
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
|
-
};
|
|
11
|
-
var __commonJS = (cb, mod) => function() {
|
|
12
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13
|
-
};
|
|
14
|
-
var __export = (all, symbols) => {
|
|
15
|
-
let target = {};
|
|
16
|
-
for (var name in all) {
|
|
17
|
-
__defProp(target, name, {
|
|
18
|
-
get: all[name],
|
|
19
|
-
enumerable: true
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
if (symbols) {
|
|
23
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
24
|
-
}
|
|
25
|
-
return target;
|
|
26
|
-
};
|
|
27
|
-
var __copyProps = (to, from, except, desc) => {
|
|
28
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
29
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
30
|
-
key = keys[i];
|
|
31
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
32
|
-
__defProp(to, key, {
|
|
33
|
-
get: ((k) => from[k]).bind(null, key),
|
|
34
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return to;
|
|
40
|
-
};
|
|
41
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
42
|
-
value: mod,
|
|
43
|
-
enumerable: true
|
|
44
|
-
}) : target, mod));
|
|
45
|
-
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
46
|
-
var __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode);
|
|
47
|
-
|
|
48
|
-
//#endregion
|
|
49
|
-
export { __toDynamicImportESM as a, __toCommonJS as i, __esm as n, __export as r, __commonJS as t };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-BNQ2PBjG.esm.js";
|
|
2
|
-
import "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
3
|
-
import "./api-DsbUi7TO.esm.js";
|
|
4
|
-
import "./events-aeCkGlnn.esm.js";
|
|
5
|
-
import "./endpoints-CwrFQfW7.esm.js";
|
|
6
|
-
import "./stats-BVy52wLy.esm.js";
|
|
7
|
-
import { c as IpifyProvider, d as BrowserEnvironmentProvider, n as getFingerprintEnabled, t as getDisableIpify } from "./sessionInitializer-Dx_oPfHP.esm.js";
|
|
8
|
-
import "./getBrowser-CZ66VtC7.esm.js";
|
|
9
|
-
import "./browserSimulation-CQjwFn0Z.esm.js";
|
|
10
|
-
import "./platform-BoeUeUrV.esm.js";
|
|
11
|
-
import "./tri-Calc36Ny.esm.js";
|
|
12
|
-
import { t as MotionSensorProvider } from "./MotionSensorProvider-BkHKMCPE.esm.js";
|
|
13
|
-
import "./camera-B0yWS33x.esm.js";
|
|
14
|
-
import "./canvas-DsJa51yU.esm.js";
|
|
15
|
-
import "./video-DXf5H9rY.esm.js";
|
|
16
|
-
import "./getDeviceClass-BdgmyOOu.esm.js";
|
|
17
|
-
import { t as createDeepsightService } from "./deepsightService-CV1NAkg9.esm.js";
|
|
18
|
-
|
|
19
|
-
//#region ../infra/src/providers/browser/VisibilityProvider.ts
|
|
20
|
-
var VisibilityProvider = class {
|
|
21
|
-
constructor() {
|
|
22
|
-
this._wasBackgrounded = false;
|
|
23
|
-
this.visibilityChangeHandler = this.onVisibilityChange.bind(this);
|
|
24
|
-
document.addEventListener("visibilitychange", this.visibilityChangeHandler);
|
|
25
|
-
}
|
|
26
|
-
get wasBackgrounded() {
|
|
27
|
-
return this._wasBackgrounded;
|
|
28
|
-
}
|
|
29
|
-
reset() {
|
|
30
|
-
this._wasBackgrounded = false;
|
|
31
|
-
}
|
|
32
|
-
cleanup() {
|
|
33
|
-
document.removeEventListener("visibilitychange", this.visibilityChangeHandler);
|
|
34
|
-
}
|
|
35
|
-
onVisibilityChange() {
|
|
36
|
-
if (document.hidden) this._wasBackgrounded = true;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region src/internal/deepsight/wasmDsFlag.ts
|
|
42
|
-
async function setWasmDsFlag(storage, enabled) {
|
|
43
|
-
await storage.set("ds", enabled ? 1 : 0);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/internal/deepsight/deepsightLoader.ts
|
|
48
|
-
const SDK_VERSION = "2.0.0";
|
|
49
|
-
async function loadDeepsightSession(options) {
|
|
50
|
-
await setWasmDsFlag(options.storage, options.ds === true);
|
|
51
|
-
const service = createDeepsightService({
|
|
52
|
-
sdkVersion: SDK_VERSION,
|
|
53
|
-
wasmUtil: await WasmUtilProvider.getInstance(),
|
|
54
|
-
visibility: new VisibilityProvider(),
|
|
55
|
-
browserEnv: new BrowserEnvironmentProvider(),
|
|
56
|
-
motionSensor: new MotionSensorProvider(),
|
|
57
|
-
ipLookup: new IpifyProvider()
|
|
58
|
-
});
|
|
59
|
-
const disableIpify = options.disableIpify ?? getDisableIpify();
|
|
60
|
-
const disableFingerprint = options.disableFingerprint ?? !getFingerprintEnabled();
|
|
61
|
-
await service.initialize(disableIpify, disableFingerprint);
|
|
62
|
-
await service.startMotionSensors();
|
|
63
|
-
return service;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
//#endregion
|
|
67
|
-
export { loadDeepsightSession };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
//#region ../infra/src/capabilities/IMotionSensorCapability.d.ts
|
|
2
|
-
|
|
3
|
-
type MotionStatus = 'PASS' | 'FAIL' | 'UNCLEAR';
|
|
4
|
-
type MotionPermissionState = 'granted' | 'denied' | 'not-required';
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/internal/deepsight/metadataService.d.ts
|
|
7
|
-
type MetadataService = {
|
|
8
|
-
initialize(sdkVersion: string, disableIpify?: boolean, disableFingerprint?: boolean): Promise<void>;
|
|
9
|
-
updateCameraInfo(videoTrack: MediaStreamTrack): void;
|
|
10
|
-
checkForVirtualCameraByLabel(videoTrack: MediaStreamTrack | null): Promise<boolean>;
|
|
11
|
-
analyzeFrame(imageData: ImageData): Promise<void>;
|
|
12
|
-
setMotionStatus(status: string): void;
|
|
13
|
-
setBackgroundMode(backgroundMode: boolean): void;
|
|
14
|
-
estimatePerformance(): string;
|
|
15
|
-
getMetadata(): string;
|
|
16
|
-
getCheck(): string;
|
|
17
|
-
getPipelineState(): string;
|
|
18
|
-
/**
|
|
19
|
-
* Prepares pipeline state for metadata collection.
|
|
20
|
-
* Must be called before setMotionStatus, getCheck, setBackgroundMode, and getMetadata.
|
|
21
|
-
*/
|
|
22
|
-
preparePipelineState(): void;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/internal/deepsight/motionStatusService.d.ts
|
|
26
|
-
type MotionStatusService = {
|
|
27
|
-
requestPermission(): Promise<MotionPermissionState>;
|
|
28
|
-
start(): Promise<void>;
|
|
29
|
-
stop(): void;
|
|
30
|
-
check(): MotionStatus;
|
|
31
|
-
readonly isRunning: boolean;
|
|
32
|
-
readonly hasPermission: boolean;
|
|
33
|
-
};
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region src/internal/virtualCameraCheck.d.ts
|
|
36
|
-
declare const frameSources: {
|
|
37
|
-
readonly front: "FRONT_ID";
|
|
38
|
-
readonly back: "BACK_ID";
|
|
39
|
-
readonly selfie: "SELFIE";
|
|
40
|
-
};
|
|
41
|
-
type FrameSource = (typeof frameSources)[keyof typeof frameSources];
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/internal/deepsight/deepsightService.d.ts
|
|
44
|
-
type DeepsightService = {
|
|
45
|
-
readonly metadata: MetadataService;
|
|
46
|
-
readonly motion: MotionStatusService;
|
|
47
|
-
initialize(disableIpify?: boolean, disableFingerprint?: boolean): Promise<void>;
|
|
48
|
-
requestMotionPermission(): Promise<'granted' | 'denied' | 'not-required'>;
|
|
49
|
-
startMotionSensors(): Promise<void>;
|
|
50
|
-
primeWasmMotionSensor(): Promise<void>;
|
|
51
|
-
stopMotionSensors(): void;
|
|
52
|
-
checkVirtualCamera(videoTrack: MediaStreamTrack): Promise<boolean>;
|
|
53
|
-
performVirtualCameraCheck(sessionToken: string | null, source: FrameSource): Promise<void>;
|
|
54
|
-
/**
|
|
55
|
-
* Runs PRC warmup and stores DS flag using infrastructure providers.
|
|
56
|
-
*/
|
|
57
|
-
performPrcCheck(params: DeepsightPrcCheckParams): Promise<void>;
|
|
58
|
-
analyzeFrame(imageData: ImageData): Promise<void>;
|
|
59
|
-
getMetadata(): string;
|
|
60
|
-
getMotionStatus(): string;
|
|
61
|
-
getAnalysisStatus(): string;
|
|
62
|
-
getPipelineState(): string;
|
|
63
|
-
cleanup(): void;
|
|
64
|
-
};
|
|
65
|
-
type DeepsightPrcCheckParams = {
|
|
66
|
-
constraints: MediaStreamConstraints;
|
|
67
|
-
};
|
|
68
|
-
//#endregion
|
|
69
|
-
export { DeepsightService as t };
|
|
File without changes
|
package/dist/index-BD6ZVw2f.d.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
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 };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { a as __toDynamicImportESM } from "./chunk-CIKcdghV.esm.js";
|
|
2
|
-
|
|
3
|
-
//#region ../infra/src/providers/browser/openviduLazy.ts
|
|
4
|
-
let openViduImport;
|
|
5
|
-
async function loadOpenVidu() {
|
|
6
|
-
if (openViduImport) return openViduImport;
|
|
7
|
-
openViduImport = import("./lib-DvZ6nVvW.esm.js").then(__toDynamicImportESM(1));
|
|
8
|
-
return openViduImport;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
export { loadOpenVidu as t };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { t as createElectronicSignatureManager } from "./electronicSignatureManager-CzMj-Tjm.esm.js";
|
|
2
|
-
|
|
3
|
-
//#region src/modules/qe-signature/index.ts
|
|
4
|
-
function createQeSignatureManager(options) {
|
|
5
|
-
return createElectronicSignatureManager({ config: {
|
|
6
|
-
...options.config,
|
|
7
|
-
variant: "qe"
|
|
8
|
-
} });
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
export { createQeSignatureManager as t };
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { n as getApi } from "./api-DsbUi7TO.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
|
|
3
|
-
import { n as toIncodeApiError } from "./apiError-DkOXfFBu.esm.js";
|
|
4
|
-
|
|
5
|
-
//#region src/internal/session/sessionService.ts
|
|
6
|
-
/**
|
|
7
|
-
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
|
8
|
-
* name. Hosts switch on these to render distinct messaging — `invalidQRuuid`
|
|
9
|
-
* for an unknown/expired link, `onboardingUrlAlreadyUsed` for a one-time link
|
|
10
|
-
* that has already been consumed.
|
|
11
|
-
*/
|
|
12
|
-
const QR_VALIDATION_ERROR_CODES = {
|
|
13
|
-
expiredUUID: 4026,
|
|
14
|
-
invalidQRuuid: 4081,
|
|
15
|
-
onboardingUrlAlreadyUsed: 4083
|
|
16
|
-
};
|
|
17
|
-
var QrValidationError = class extends Error {
|
|
18
|
-
constructor(status, statusText) {
|
|
19
|
-
super(`POST ${endpoints.qrValidateUuid} failed: ${status} ${statusText}`);
|
|
20
|
-
this.name = "QrValidationError";
|
|
21
|
-
this.status = status;
|
|
22
|
-
this.statusText = statusText;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Creates a new onboarding session.
|
|
27
|
-
*
|
|
28
|
-
* @param apiKey - The API key from the Incode dashboard
|
|
29
|
-
* @param options - Session creation options
|
|
30
|
-
* @param signal - Optional AbortSignal for request cancellation
|
|
31
|
-
* @returns The created session with token
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* const session = await createSession('your-api-key', {
|
|
36
|
-
* configurationId: 'your-flow-id',
|
|
37
|
-
* language: 'en-US',
|
|
38
|
-
* });
|
|
39
|
-
* console.log(session.token); // Use this token for subsequent API calls
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
async function createSession(apiKey, options, signal) {
|
|
43
|
-
try {
|
|
44
|
-
return (await getApi().post(endpoints.createSession, {
|
|
45
|
-
configurationId: options.configurationId,
|
|
46
|
-
externalId: options.externalId,
|
|
47
|
-
externalCustomerId: options.externalCustomerId,
|
|
48
|
-
language: options.language ?? "en-US",
|
|
49
|
-
customFields: options.customFields,
|
|
50
|
-
uuid: options.uuid ?? null,
|
|
51
|
-
urlUuid: options.urlUuid ?? null,
|
|
52
|
-
interviewId: options.interviewId ?? null,
|
|
53
|
-
...options.loginHint != null && options.loginHint !== "" ? { loginHint: options.loginHint } : {}
|
|
54
|
-
}, {
|
|
55
|
-
headers: {
|
|
56
|
-
"x-api-key": apiKey,
|
|
57
|
-
"api-version": "1.0"
|
|
58
|
-
},
|
|
59
|
-
signal
|
|
60
|
-
})).data;
|
|
61
|
-
} catch (error) {
|
|
62
|
-
toIncodeApiError(endpoints.createSession, error);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Validates and rotates a QR anti-phishing URL UUID before creating a session.
|
|
67
|
-
*
|
|
68
|
-
* This call is unauthenticated; the `{ onboardingId, urlUuid }` pair itself
|
|
69
|
-
* acts as the credential. The server burns the incoming `urlUuid` and returns
|
|
70
|
-
* a freshly minted one that must be used in the subsequent `createSession`
|
|
71
|
-
* call.
|
|
72
|
-
*
|
|
73
|
-
* @param options - `{ onboardingId, urlUuid }` from the incoming URL
|
|
74
|
-
* @param signal - Optional AbortSignal for request cancellation
|
|
75
|
-
* @returns The refreshed `urlUuid` to use for the session
|
|
76
|
-
* @throws {QrValidationError} When the server rejects the validation request.
|
|
77
|
-
*/
|
|
78
|
-
async function validateQrUuid(options, signal) {
|
|
79
|
-
try {
|
|
80
|
-
return (await getApi().post(endpoints.qrValidateUuid, {
|
|
81
|
-
onboardingId: options.onboardingId,
|
|
82
|
-
urlUuid: options.urlUuid
|
|
83
|
-
}, {
|
|
84
|
-
headers: { "api-version": "1.0" },
|
|
85
|
-
signal
|
|
86
|
-
})).data;
|
|
87
|
-
} catch (error) {
|
|
88
|
-
const httpError = error;
|
|
89
|
-
throw new QrValidationError(httpError.data?.status ?? httpError.status, httpError.statusText);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* One-shot QR phishing-resistance helper.
|
|
94
|
-
*
|
|
95
|
-
* When `urlUuid` is a non-empty string, burns the stale value via
|
|
96
|
-
* `validateQrUuid`, invokes `onRefreshed` with the fresh value, and returns
|
|
97
|
-
* it so callers can forward it into `createSession`. When `urlUuid` is
|
|
98
|
-
* absent, returns `undefined` without making any network call.
|
|
99
|
-
*
|
|
100
|
-
* Consolidates the rotation + callback logic shared by Flow self-loading and
|
|
101
|
-
* Workflow token-mode bootstraps.
|
|
102
|
-
*
|
|
103
|
-
* @throws {QrValidationError} When the server rejects the validation request.
|
|
104
|
-
*/
|
|
105
|
-
async function refreshQrUrlUuid(options, signal) {
|
|
106
|
-
if (typeof options.urlUuid !== "string" || options.urlUuid.length === 0) return;
|
|
107
|
-
const result = await validateQrUuid({
|
|
108
|
-
onboardingId: options.onboardingId ?? null,
|
|
109
|
-
urlUuid: options.urlUuid
|
|
110
|
-
}, signal);
|
|
111
|
-
options.onRefreshed?.(result.urlUuid);
|
|
112
|
-
return result.urlUuid;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Validates and rotates a QR anti-phishing `urlUuid` (when present), then
|
|
116
|
-
* creates a session bound to the refreshed value. When `urlUuid` is absent,
|
|
117
|
-
* behaves identically to {@link createSession}.
|
|
118
|
-
*
|
|
119
|
-
* Use this when the host owns session creation and wants the SDK to handle
|
|
120
|
-
* phishing-resistance rotation in a single call. For raw control, compose
|
|
121
|
-
* `refreshQrUrlUuid` and `createSession` directly.
|
|
122
|
-
*
|
|
123
|
-
* @throws {QrValidationError} When the server rejects the QR validation step.
|
|
124
|
-
*
|
|
125
|
-
* @example
|
|
126
|
-
* ```ts
|
|
127
|
-
* const session = await bootstrapSession(apiKey, {
|
|
128
|
-
* configurationId,
|
|
129
|
-
* urlUuid,
|
|
130
|
-
* onUrlUuidRefreshed: (refreshed) => {
|
|
131
|
-
* const url = new URL(window.location.href);
|
|
132
|
-
* url.searchParams.set('url_uuid', refreshed);
|
|
133
|
-
* window.history.replaceState({}, '', url);
|
|
134
|
-
* },
|
|
135
|
-
* });
|
|
136
|
-
* ```
|
|
137
|
-
*/
|
|
138
|
-
async function bootstrapSession(apiKey, options, signal) {
|
|
139
|
-
const { onUrlUuidRefreshed, ...createSessionOptions } = options;
|
|
140
|
-
const refreshedUrlUuid = await refreshQrUrlUuid({
|
|
141
|
-
urlUuid: options.urlUuid,
|
|
142
|
-
onboardingId: options.uuid ?? null,
|
|
143
|
-
onRefreshed: onUrlUuidRefreshed
|
|
144
|
-
}, signal);
|
|
145
|
-
return createSession(apiKey, {
|
|
146
|
-
...createSessionOptions,
|
|
147
|
-
urlUuid: refreshedUrlUuid
|
|
148
|
-
}, signal);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
//#endregion
|
|
152
|
-
export { refreshQrUrlUuid as a, createSession as i, QrValidationError as n, validateQrUuid as o, bootstrapSession as r, QR_VALIDATION_ERROR_CODES as t };
|