@incodetech/core 2.4.1-agentic → 2.4.1-agentic.2
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/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
- package/dist/{multipartRecordingService-DMBxHKS2.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -734
- package/dist/{FaceDetectionProvider-B83VmClw.esm.js → FaceDetectionProvider-D9PlON49.esm.js} +11 -12
- package/dist/MultipartRecordingProvider-D9mauUdS.esm.js +146 -0
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{WasmUtilProvider-GTkoJyFY.esm.js → WasmUtilProvider-Dp2V-Uct.esm.js} +2 -2
- package/dist/WorkerEncoderRecordingProvider-B1ODYtgN.esm.js +80 -0
- package/dist/{addressSearch-41sMcnJk.esm.js → addressSearch-DzbE9Ogt.esm.js} +2 -352
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQ08atTC.esm.js → antifraudManager-BObuHBjn.esm.js} +2 -2
- package/dist/{antifraudStateMachine-BcsUTTIr.esm.js → antifraudStateMachine-Dfrd2-26.esm.js} +1 -1
- package/dist/{api-BO8JA7Pf.esm.js → api-CpP4PS4S.esm.js} +2 -0
- package/dist/{apiError-CfuIvnUy.esm.js → apiError-gNfsp99I.esm.js} +1 -1
- package/dist/{attemptCarry-BjTJ6bMQ.esm.js → attemptCarry-WOkfvFMw.esm.js} +2 -2
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DvmklBTE.esm.js → authenticationManager-BtN4CHOR.esm.js} +5 -5
- package/dist/{authenticationManager-C-cOki0Y.d.ts → authenticationManager-CWmh7aSY.d.ts} +1 -1
- package/dist/{authenticationStateMachine-BL2ptOA0.esm.js → authenticationStateMachine-DdcnWnBT.esm.js} +3 -3
- package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
- package/dist/{backCameraStream-C5_NNfUN.esm.js → backCameraStream-DS1oDiUq.esm.js} +10 -65
- package/dist/{browser-pQZA35G2-DtkAf6sn.esm.js → browser-pQZA35G2-C0fRj-ID.esm.js} +1 -1
- package/dist/camera.d.ts +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-CM0fuqDC.esm.js → certificateIssuanceManager-C1nETQos.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-kksIUOPD.esm.js → certificateIssuanceStateMachine-DThXMDqr.esm.js} +1 -1
- package/dist/{connectivity-HSl0diCx.esm.js → connectivity-BCuEoQ-n.esm.js} +2 -21
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-CBwFozhv.esm.js → consentManager-DMlSL6Ax.esm.js} +2 -2
- package/dist/{consentManager-_q9yJUku.d.ts → consentManager-bjfVXO7p.d.ts} +9 -9
- package/dist/{consentStateMachine-CpmRAcr2.esm.js → consentStateMachine-DIYSMxKQ.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-64O8t10a.esm.js → crossDocumentDataMatchManager-BFTdiEDB.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-CLgJQcx0.esm.js → curpValidationManager-DNpC3wyf.esm.js} +2 -2
- package/dist/{curpValidationManager-CXpFE-Mv.d.ts → curpValidationManager-z8428oCM.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Bx9YhVkJ.esm.js → curpValidationStateMachine-B3iVsDyt.esm.js} +2 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-DWt_0YtJ.esm.js → customFieldsManager-CvI-pDT3.esm.js} +2 -2
- package/dist/{customWatchlistManager-D8o-2Nej.esm.js → customWatchlistManager-BuHtUb0y.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-Sbi6DIcK.esm.js → customWatchlistStateMachine-CiVD9wyF.esm.js} +1 -1
- package/dist/{deepsightService-twg3bXqY.esm.js → deepsightLoader-Crsj_u0c.esm.js} +34 -29
- package/dist/{desktopCameraElection-kHY2IDJi.esm.js → desktopCameraElection-BGMtYwk3.esm.js} +5 -5
- package/dist/document-capture.d.ts +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-6tnnDkMX.d.ts → documentCaptureManager-DDfviFg0.d.ts} +25 -4
- package/dist/{documentCaptureManager-CMSC_Mhd.esm.js → documentCaptureManager-DLPqruXJ.esm.js} +3 -2
- package/dist/{documentCaptureStateMachine-BCwD5Rto.esm.js → documentCaptureStateMachine-DCvWQhFG.esm.js} +67 -26
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DU6W1e20.esm.js → dynamicFormsManager-CwqgwLa5.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-C8Z7k3vo.esm.js → dynamicFormsStateMachine-CBdnpD95.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-TB6ZG5lX.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
- package/dist/{ekybManager-TGfqyjuu.esm.js → ekybManager-BVTqTHd3.esm.js} +2 -2
- package/dist/{ekybStateMachine-DBgFuEPK.esm.js → ekybStateMachine-BmZHuZE1.esm.js} +5 -3
- package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
- package/dist/ekyc.d.ts +3 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-BSQteIfC.d.ts → ekycManager-DlGIn9wA.d.ts} +2 -1
- package/dist/{ekycManager-C2cgG2Pl.esm.js → ekycManager-DymCvmVB.esm.js} +2 -2
- package/dist/{ekycStateMachine-CuNF7z4O.esm.js → ekycStateMachine-CoFCUJ2z.esm.js} +141 -68
- package/dist/{ekycUtils-BFncpC4F.esm.js → ekycUtils-GRuMELYr.esm.js} +80 -9
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-C7pqXsRm.esm.js → electronicSignatureManager-Bt_tCIdI.esm.js} +3 -3
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-FH_CP0cT.esm.js → emailManager-CGoE3CUe.esm.js} +2 -2
- package/dist/{emailStateMachine-Cx-uTaBV.esm.js → emailStateMachine-KgHfDNvM.esm.js} +2 -2
- package/dist/{events-CQteqXfy.esm.js → events-ggpBBaZ8.esm.js} +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +15 -14
- package/dist/extensibility.esm.js +36 -35
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-CBm05KnT.esm.js → faceCaptureManagerFactory-BWOB3ZeZ.esm.js} +4 -4
- package/dist/{faceCaptureManagerFactory-C-xKdj-d.d.ts → faceCaptureManagerFactory-DV2ULUYS.d.ts} +3 -3
- package/dist/{faceCaptureSetup-BQjCbL51.esm.js → faceCaptureSetup-D0w1UBlO.esm.js} +12 -403
- package/dist/{faceMatchManager-B2zp7yP4.esm.js → faceMatchManager-D2xKPjjQ.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-ByTMQCUC.esm.js → faceMatchStateMachine-CUvwiQi9.esm.js} +2 -2
- package/dist/{feature-management-DjAG5lsJ.esm.js → feature-management-DBh1nqp8.esm.js} +35 -21
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-CC0vKmpf.esm.js → fieldComparisonManager-DgDbEeFZ.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Be-r4oZj.esm.js → fiscalQrManager-BZeklojR.esm.js} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +8 -8
- package/dist/flow.esm.js +10 -6
- package/dist/{flowCompletionService-ChMU2v79.esm.js → flowCompletionService-Dv7zoVWe.esm.js} +2 -2
- package/dist/{flowServices-g2tVWsJl.esm.js → flowServices-C5-oamoC.esm.js} +69 -143
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DLbvZwUB.esm.js → geolocationManager-BFTxgOZG.esm.js} +2 -2
- package/dist/{geolocationStateMachine-CAJVongM.esm.js → geolocationStateMachine-v729Lz_0.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-CkX9TEkh.esm.js → governmentValidationManager-CjChjZ3C.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-PTPCP26N.esm.js → governmentValidationStateMachine-AEbn3Afi.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +10 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-MSQoqScU.esm.js → idCaptureDefaults-Dszuq9ng.esm.js} +3 -3
- package/dist/{idCaptureManager-zZdTcpG1.esm.js → idCaptureManager-BVfqpIjM.esm.js} +9 -8
- package/dist/{idCaptureManager-DzTfQ1Am.d.ts → idCaptureManager-CCA2D1Ah.d.ts} +5 -3
- package/dist/{idCaptureServices-8OHinO0N.esm.js → idCaptureServices-CwG9Xp_n.esm.js} +27 -196
- package/dist/{idCaptureStateMachine-B3G6XoDG.esm.js → idCaptureStateMachine-DUm3a_Mt.esm.js} +20 -20
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-BTdHlJ9D.d.ts} +1 -1
- package/dist/{idOcrManager-B64-fjWg.esm.js → idOcrManager-xyEZNOBa.esm.js} +2 -2
- package/dist/{idOcrStateMachine-B1aZnobs.esm.js → idOcrStateMachine-DNKXh4Rn.esm.js} +1 -1
- package/dist/{idVerificationManager-_Kebv-Ue.esm.js → idVerificationManager-DdnvYfgN.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-DQn6c84z.esm.js → idVerificationStateMachine-DtIBCa32.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-DDXkNVZi.esm.js → identityReuseManager-CcpovlfD.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-Bcnkbjf8.esm.js → identityReuseStateMachine-DxZFWy47.esm.js} +1 -1
- package/dist/{index-DEfwds5y.d.ts → index-BfSZvEHi.d.ts} +10 -2
- package/dist/{index-DMDAk85K.d.ts → index-DC0P2Vzw.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-CXIBwBeE.esm.js → invokeOnCaptureCallback-BJ0GVHGr.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +3 -0
- package/dist/kyb-checks.esm.js +3 -0
- package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
- package/dist/kybChecksManager-D2BEaUzK.esm.js +89 -0
- package/dist/kybChecksStateMachine-Cy-MsmKZ.esm.js +718 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-43W5d_8G.esm.js → mandatoryConsentManager-B4vCYslr.esm.js} +2 -2
- package/dist/{mandatoryConsentManager-xx3mY-xw.d.ts → mandatoryConsentManager-B88Sm5nd.d.ts} +6 -6
- package/dist/{mandatoryConsentStateMachine-CVlgdlnt.esm.js → mandatoryConsentStateMachine-DWslYPA3.esm.js} +1 -1
- package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
- package/dist/multipartRecordingService-BTqkHGG9.esm.js +407 -0
- package/dist/{permissionGuards-B3OPL8Si.esm.js → permissionGuards-DFV-Ws0a.esm.js} +1 -1
- package/dist/{permissionServices-DnBAN_hW.esm.js → permissionServices-D190ATGD.esm.js} +8 -6
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-JJNaWthV.esm.js +75 -0
- package/dist/{phoneManager-C6jut_pz.esm.js → phoneManager-Dy5tODCU.esm.js} +3 -3
- package/dist/phoneServices-DJgyOzU2.esm.js +77 -0
- package/dist/{phoneStateMachine-T1-drWfG.esm.js → phoneStateMachine-DnlPhnw7.esm.js} +20 -60
- package/dist/{processFaceMatch-BWme3kVV.esm.js → processFaceMatch-Bst83HaS.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/recordingService-CTko6Cjn.esm.js +397 -0
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-BJXC6Kx9.esm.js → redirectToMobileManager-CgGaT2NP.esm.js} +3 -3
- package/dist/{redirectToMobileStateMachine-BBMAc2Gb.esm.js → redirectToMobileStateMachine-CbhN8uVN.esm.js} +39 -21
- package/dist/resolveForm-O7-r79VA.esm.js +351 -0
- package/dist/{runChildModule-DPHTqSdF.esm.js → runChildModule-BG46reQE.esm.js} +2 -2
- package/dist/{sdkVersion-C3_P-Qbq.esm.js → sdkVersion-DJCo6uSb.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-BL0BLMnp.esm.js → selfieErrorUtils-DNbVqz2B.esm.js} +1 -1
- package/dist/{selfieManager-Cbliomv7.esm.js → selfieManager-1_TQP4-x.esm.js} +5 -5
- package/dist/{selfieManager-BMmpUii2.d.ts → selfieManager-DmZFzs1-.d.ts} +1 -1
- package/dist/{selfieStateMachine-B5m_Kn0O.esm.js → selfieStateMachine-BUnZmMRY.esm.js} +3 -3
- package/dist/{session-DAaAewMX.esm.js → session-DdnAM9fZ.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +6 -6
- package/dist/{sessionInitializer-CWFT4dfw.esm.js → sessionInitializer-CwJACl13.esm.js} +83 -24
- package/dist/{setup-D9qt8YVU.d.ts → setup-CmqnkqsR.d.ts} +1 -1
- package/dist/{setup-CDAKwTr7.esm.js → setup-D26WdmvA.esm.js} +28 -27
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-BeEVCcsC.esm.js → signatureManager-CwqjcxPg.esm.js} +2 -2
- package/dist/{signatureStateMachine-_1c1vSid.esm.js → signatureStateMachine-DBVDd1Eu.esm.js} +1 -1
- package/dist/{stats-BpMz-hTP.esm.js → stats-CatA2dea.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/textRules-D4NRinKY.d.ts +41 -0
- package/dist/{tri-BajQnjbf.esm.js → tri-C9SvtzuQ.esm.js} +24 -3
- package/dist/tri.d.ts +2 -2
- package/dist/{tri.esm-CzTNi5Q_.esm.js → tri.esm-DgTlfPhR.esm.js} +167 -155
- package/dist/tri.esm.js +2 -2
- package/dist/{trueSightService-BujtUIW6.esm.js → trueSightService-OZl8wQu7.esm.js} +4 -4
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types--3HDl2SF.d.ts → types-BEVHQbbC.d.ts} +1 -1
- package/dist/{types-xEEWCx1j.d.ts → types-BPm1JSu7.d.ts} +1 -1
- package/dist/{types-C397LhmN.d.ts → types-BgRHw-dR.d.ts} +1 -1
- package/dist/{types-DuD8TRJU.d.ts → types-CRaFu6wS.d.ts} +4 -2
- package/dist/types-CTaL0XJz.d.ts +80 -0
- package/dist/{types-PTZHRhGX.d.ts → types-Cd0J0F9D.d.ts} +1 -1
- package/dist/{types-e8fCsvvk.d.ts → types-Csh8vzPo.d.ts} +1 -1
- package/dist/{types-B2FK_wYb.d.ts → types-CuMJ2M7D.d.ts} +2 -41
- package/dist/{types-ZTZelfbM.d.ts → types-CyNndVAT.d.ts} +14 -6
- package/dist/types-J6g6iKe_.d.ts +6 -0
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +9 -7
- package/dist/{videoSelfieCameraWarmer-DjkPpoj_.esm.js → videoSelfieCameraWarmer-Bhi70pSN.esm.js} +8 -8
- package/dist/{videoSelfieStepDetector-RfSmlFFW.d.ts → videoSelfieStepDetector-Dv3Mgws-.d.ts} +2 -2
- package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
- package/dist/{warmup-BkfxQZsC.esm.js → warmup-DtB0DJpl.esm.js} +24 -17
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-BhU5H2oR.esm.js → wasmDsFlagSync-BtiR5pig.esm.js} +1 -1
- package/dist/{wasmWebClient-DTj9auyA.esm.js → wasmWebClient-BDrax6Eu.esm.js} +12 -9
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CVay6-9A.esm.js → watchlistForBusinessManager-DqUpAEj_.esm.js} +2 -2
- package/dist/{watchlistForBusinessStateMachine-DA6K5na4.esm.js → watchlistForBusinessStateMachine-DdaPl2PS.esm.js} +1 -1
- package/dist/{watchlistManager-B8gQ_rw3.esm.js → watchlistManager-CdpXzT4B.esm.js} +2 -2
- package/dist/{watchlistStateMachine-CSi_ZhtT.esm.js → watchlistStateMachine-ofHW_lPk.esm.js} +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +42 -42
- package/package.json +13 -7
- package/dist/deepsightLoader-DMxtowCm.esm.js +0 -33
- package/dist/types-D9r3zRfY.d.ts +0 -6
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { n as setWasmMetadataV2Enabled } from "./wasmMetadataVersionSync-U8EFUr1T.esm.js";
|
|
3
|
-
import { C as subscribeEvent, b as getAnalyticsBatcher, y as addEvent } from "./events-
|
|
4
|
-
import { c as setToken, r as getToken, t as api, u as endpoints } from "./api-
|
|
5
|
-
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-
|
|
6
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
3
|
+
import { C as subscribeEvent, b as getAnalyticsBatcher, y as addEvent } from "./events-ggpBBaZ8.esm.js";
|
|
4
|
+
import { c as setToken, r as getToken, t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
5
|
+
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-OZl8wQu7.esm.js";
|
|
6
|
+
import { t as SDK_VERSION } from "./sdkVersion-DJCo6uSb.esm.js";
|
|
7
7
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
8
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
9
|
-
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-
|
|
8
|
+
import { E as updateFeatureManagementUser } from "./feature-management-DBh1nqp8.esm.js";
|
|
9
|
+
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-CatA2dea.esm.js";
|
|
10
10
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
11
11
|
import { a as isIOS } from "./platform-aPh7gTWh.esm.js";
|
|
12
12
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
13
|
-
import { a as
|
|
14
|
-
import { i as retryAfterReconnect } from "./connectivity-
|
|
13
|
+
import { a as isTRIStarted, o as linkSessionWithTRI, s as readTRIFpSignals } from "./tri-C9SvtzuQ.esm.js";
|
|
14
|
+
import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
|
|
15
|
+
//#region src/internal/version/sdkPlatform.ts
|
|
16
|
+
/**
|
|
17
|
+
* The platform SDK 2 reports to the backend: the device fingerprint post's
|
|
18
|
+
* `deviceType`, and the SDK platform the WASM module stamps on capture
|
|
19
|
+
* metadata and fingerprint signals. Keep them in one place so they agree.
|
|
20
|
+
*/
|
|
21
|
+
const SDK_PLATFORM = "WEBAPP";
|
|
22
|
+
//#endregion
|
|
15
23
|
//#region src/internal/fingerprint/incodeDeviceHash.ts
|
|
16
24
|
function isNonEmptyString(value) {
|
|
17
25
|
return typeof value === "string" && value.trim() !== "";
|
|
@@ -37,11 +45,18 @@ function createIncodeDeviceHashWaiter(timer) {
|
|
|
37
45
|
let pending = pendingByToken.get(token);
|
|
38
46
|
if (!pending) {
|
|
39
47
|
let settle = () => void 0;
|
|
48
|
+
const deviceHash = new Promise((resolve) => {
|
|
49
|
+
settle = resolve;
|
|
50
|
+
});
|
|
51
|
+
let release = () => void 0;
|
|
52
|
+
const released = new Promise((resolve) => {
|
|
53
|
+
release = () => resolve(null);
|
|
54
|
+
});
|
|
40
55
|
pending = {
|
|
41
|
-
deviceHash
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
56
|
+
deviceHash,
|
|
57
|
+
settle,
|
|
58
|
+
released,
|
|
59
|
+
release
|
|
45
60
|
};
|
|
46
61
|
pendingByToken.set(token, pending);
|
|
47
62
|
}
|
|
@@ -51,13 +66,21 @@ function createIncodeDeviceHashWaiter(timer) {
|
|
|
51
66
|
settle(token, deviceHash) {
|
|
52
67
|
pendingFor(token).settle(deviceHash);
|
|
53
68
|
},
|
|
69
|
+
release(token) {
|
|
70
|
+
pendingFor(token).release();
|
|
71
|
+
},
|
|
54
72
|
async waitFor(token, timeoutMs) {
|
|
55
73
|
let timeout;
|
|
56
74
|
const timedOut = new Promise((resolve) => {
|
|
57
75
|
timeout = timer.setTimeout(() => resolve(null), Math.max(0, timeoutMs));
|
|
58
76
|
});
|
|
77
|
+
const pending = pendingFor(token);
|
|
59
78
|
try {
|
|
60
|
-
return await Promise.race([
|
|
79
|
+
return await Promise.race([
|
|
80
|
+
pending.deviceHash,
|
|
81
|
+
pending.released,
|
|
82
|
+
timedOut
|
|
83
|
+
]);
|
|
61
84
|
} finally {
|
|
62
85
|
if (timeout !== void 0) timer.clearTimeout(timeout);
|
|
63
86
|
}
|
|
@@ -75,6 +98,20 @@ const START_INTERVIEW_EVENT = "modelLoadEnd";
|
|
|
75
98
|
const CAPTURE_INTERVIEW_EVENT = "captureAttemptFinished";
|
|
76
99
|
const START_SIGNALS = ["device"];
|
|
77
100
|
const MAX_KEPT_SIGNALS = 20;
|
|
101
|
+
/**
|
|
102
|
+
* The native envelope reads the SDK platform and version, and the start batch
|
|
103
|
+
* goes out before any capture's Deepsight session has set them. A failure is
|
|
104
|
+
* rethrown under its own name, so TrueSight does not blame the read.
|
|
105
|
+
*/
|
|
106
|
+
function setSdkIdentity(wasmUtil) {
|
|
107
|
+
try {
|
|
108
|
+
wasmUtil.setSdkPlatform(SDK_PLATFORM);
|
|
109
|
+
wasmUtil.setSdkVersion(SDK_VERSION);
|
|
110
|
+
} catch (error) {
|
|
111
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
112
|
+
throw new Error(`setting the SDK platform and version failed: ${message}`);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
78
115
|
function createFingerprintSignalsReporter(deps) {
|
|
79
116
|
let enabled = true;
|
|
80
117
|
let sessionActive = false;
|
|
@@ -115,7 +152,9 @@ function createFingerprintSignalsReporter(deps) {
|
|
|
115
152
|
const isPid = type === "pid";
|
|
116
153
|
let deviceHash = null;
|
|
117
154
|
try {
|
|
118
|
-
const
|
|
155
|
+
const wasmUtil = await deps.getWasmUtil();
|
|
156
|
+
setSdkIdentity(wasmUtil);
|
|
157
|
+
const metadata = await wasmUtil.getFingerprintSignals(type);
|
|
119
158
|
if (!metadata || deps.getToken() !== token) return;
|
|
120
159
|
keepOrForward(metadata);
|
|
121
160
|
const response = await deps.post(endpoints.deviceFingerprintSignals, isPid ? {
|
|
@@ -338,7 +377,7 @@ function createFingerprintSignalsReporter(deps) {
|
|
|
338
377
|
}
|
|
339
378
|
const fingerprintSignalsReporter = createFingerprintSignalsReporter({
|
|
340
379
|
getWasmUtil: async () => {
|
|
341
|
-
return (await import("./WasmUtilProvider-
|
|
380
|
+
return (await import("./WasmUtilProvider-Dp2V-Uct.esm.js").then((n) => n.n)).WasmUtilProvider.getInstance();
|
|
342
381
|
},
|
|
343
382
|
getToken: () => getToken(),
|
|
344
383
|
post: async (url, body, headers) => (await api.post(url, body, { headers })).data,
|
|
@@ -764,7 +803,7 @@ async function submitDeviceFingerprint(options = {}, dependencies) {
|
|
|
764
803
|
const payload = {
|
|
765
804
|
hash: deviceHash?.hash ?? "",
|
|
766
805
|
ip,
|
|
767
|
-
deviceType:
|
|
806
|
+
deviceType: SDK_PLATFORM,
|
|
768
807
|
data: JSON.stringify({
|
|
769
808
|
ip,
|
|
770
809
|
deviceInfo
|
|
@@ -855,10 +894,20 @@ function setClientWasmConfig(config) {
|
|
|
855
894
|
function setClientWasmDisabled(disabled) {
|
|
856
895
|
clientWasmDisabled = disabled;
|
|
857
896
|
}
|
|
897
|
+
const SLOW_EFFECTIVE_TYPES = /* @__PURE__ */ new Set([
|
|
898
|
+
"slow-2g",
|
|
899
|
+
"2g",
|
|
900
|
+
"3g"
|
|
901
|
+
]);
|
|
902
|
+
function isSlowNetwork() {
|
|
903
|
+
const connection = new BrowserEnvironmentProvider().getNavigatorProperty("connection");
|
|
904
|
+
return connection?.saveData === true || SLOW_EFFECTIVE_TYPES.has(connection?.effectiveType);
|
|
905
|
+
}
|
|
858
906
|
/** Why this activation's post won't wait for a pid, if it won't. */
|
|
859
907
|
function deviceHashSkipReason(activationOptedOut) {
|
|
860
908
|
if (activationOptedOut || clientWasmDisabled) return "wasmDisabled";
|
|
861
|
-
|
|
909
|
+
if (!clientWasmConfig && !isTRIStarted()) return "noWasmConfig";
|
|
910
|
+
return isSlowNetwork() ? "slowNetwork" : void 0;
|
|
862
911
|
}
|
|
863
912
|
/**
|
|
864
913
|
* TRI first: TRI's fpSignals PID is signed with the same key as the runtime's
|
|
@@ -889,7 +938,7 @@ function startSessionPid(token, config) {
|
|
|
889
938
|
function startSessionWasm(token, config) {
|
|
890
939
|
(async () => {
|
|
891
940
|
try {
|
|
892
|
-
const warmupModule = await import("./warmup-
|
|
941
|
+
const warmupModule = await import("./warmup-DtB0DJpl.esm.js").then((n) => n.c);
|
|
893
942
|
const warmup = warmupModule.warmupWasm({
|
|
894
943
|
...config,
|
|
895
944
|
pipelines: []
|
|
@@ -939,6 +988,16 @@ function createFingerprintSettled() {
|
|
|
939
988
|
function whenSessionFingerprintSettled() {
|
|
940
989
|
return fingerprintSettled?.promise ?? Promise.resolve(cachedFingerprintResult);
|
|
941
990
|
}
|
|
991
|
+
/**
|
|
992
|
+
* A screen now waits for the activation post (its consent decision), so the
|
|
993
|
+
* post stops waiting for the pid and goes with what it has. The pid needs the
|
|
994
|
+
* WASM runtime to download and start, about 2 s even on a fast desktop, so it
|
|
995
|
+
* goes with the post only when it is in before the post goes out.
|
|
996
|
+
*/
|
|
997
|
+
function endDeviceHashWait() {
|
|
998
|
+
const token = getToken();
|
|
999
|
+
if (token) incodeDeviceHashWaiter.release(token);
|
|
1000
|
+
}
|
|
942
1001
|
/** Best-effort: the format latch must never fail session initialization. */
|
|
943
1002
|
function applyCaptureMetadataFormat(v2Enabled) {
|
|
944
1003
|
try {
|
|
@@ -1031,16 +1090,16 @@ async function initializeSession(options = {}) {
|
|
|
1031
1090
|
}
|
|
1032
1091
|
applyCaptureMetadataFormat(captureMetadataV2);
|
|
1033
1092
|
const disableIpify = resolveDisableIpify(serverDisableIpify);
|
|
1034
|
-
const preloadedFlow = await flowPreloadPromise;
|
|
1035
|
-
await updateFeatureManagementUser({ customIDs: {
|
|
1036
|
-
hashed_onboarding_id: features.sessionIdentifier || void 0,
|
|
1037
|
-
flow_id: preloadedFlow?.flowId
|
|
1038
|
-
} });
|
|
1039
1093
|
fingerprintPromise = submitSessionFingerprint(fingerprintEnabled, {
|
|
1040
1094
|
disableIpify,
|
|
1041
1095
|
hostingApp,
|
|
1042
1096
|
signal
|
|
1043
1097
|
}, settled, skipReason);
|
|
1098
|
+
const preloadedFlow = await flowPreloadPromise;
|
|
1099
|
+
await updateFeatureManagementUser({ customIDs: {
|
|
1100
|
+
hashed_onboarding_id: features.sessionIdentifier || void 0,
|
|
1101
|
+
flow_id: preloadedFlow?.flowId
|
|
1102
|
+
} });
|
|
1044
1103
|
try {
|
|
1045
1104
|
const browserInfo = new BrowserInfoProvider().getBrowserInfo();
|
|
1046
1105
|
const language = new BrowserEnvironmentProvider().getNavigatorProperty("language");
|
|
@@ -1170,4 +1229,4 @@ function resetSessionInit() {
|
|
|
1170
1229
|
resetDeviceStatsQueue();
|
|
1171
1230
|
}
|
|
1172
1231
|
//#endregion
|
|
1173
|
-
export { fingerprintSignalsReporter as S,
|
|
1232
|
+
export { fingerprintSignalsReporter as C, BrowserEnvironmentProvider as S, setStandaloneFlowPolicy as _, initializeSession as a, getDeviceFingerprintInfo as b, setClientHostingApp as c, setClientWasmDisabled as d, whenSessionFingerprintSettled as f, resolveStandaloneFlowPolicy as g, resetStandaloneFlowPolicy as h, getSessionFingerprintResult as i, setClientIpLookupEnabled as l, registerFlowPreloader as m, getDisableIpify as n, resetSessionInit as o, getStandaloneFlowPolicy as p, getFingerprintEnabled as r, setClientFingerprintEnabled as s, endDeviceHashWait as t, setClientWasmConfig as u, isBrowserSimulation as v, SDK_PLATFORM as w, IpifyProvider as x, getFingerprint as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as WasmPipeline, i as WasmModuleConfig, n as WasmModelsConfig, t as WarmupConfig } from "./warmup-BO57syF6.js";
|
|
2
|
-
import {
|
|
2
|
+
import { c as TransactionalRiskIntelligenceSetupConfig } from "./index-BfSZvEHi.js";
|
|
3
3
|
import { c as FeatureManagementRedactedUserInfo } from "./IFeatureManagementCapability-De8wpbGh.js";
|
|
4
4
|
//#region src/internal/environment/environment.d.ts
|
|
5
5
|
/**
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { F as setWasmIntegrityObserver, T as resolveWasmConfig, b as DEFAULT_WASM_VERSION, g as setWasmStartGate, v as setWasmDiagnosticsHandler } from "./wasmWebClient-
|
|
2
|
-
import { a as setWasmOnDeviceMode, f as drainWasmDiagnostics, i as isWasmReady, m as rearmWasmDiagnostics, n as getWarmupFacts, p as getWasmDiagnosticsMode, r as getWasmStatus, s as warmupWasm } from "./warmup-
|
|
3
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
4
|
-
import { S as setAnalyticsBatcher, b as getAnalyticsBatcher, c as resetExperimentAssignments, v as createAnalyticsBatchingService, x as resetAnalyticsBatcher } from "./events-
|
|
5
|
-
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api, u as endpoints } from "./api-
|
|
6
|
-
import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-
|
|
7
|
-
import {
|
|
1
|
+
import { F as setWasmIntegrityObserver, T as resolveWasmConfig, b as DEFAULT_WASM_VERSION, g as setWasmStartGate, v as setWasmDiagnosticsHandler } from "./wasmWebClient-BDrax6Eu.esm.js";
|
|
2
|
+
import { a as setWasmOnDeviceMode, f as drainWasmDiagnostics, i as isWasmReady, m as rearmWasmDiagnostics, n as getWarmupFacts, p as getWasmDiagnosticsMode, r as getWasmStatus, s as warmupWasm } from "./warmup-DtB0DJpl.esm.js";
|
|
3
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
|
|
4
|
+
import { S as setAnalyticsBatcher, b as getAnalyticsBatcher, c as resetExperimentAssignments, v as createAnalyticsBatchingService, x as resetAnalyticsBatcher } from "./events-ggpBBaZ8.esm.js";
|
|
5
|
+
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
6
|
+
import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-OZl8wQu7.esm.js";
|
|
7
|
+
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, _ as setStandaloneFlowPolicy, a as initializeSession, c as setClientHostingApp, d as setClientWasmDisabled, g as resolveStandaloneFlowPolicy, h as resetStandaloneFlowPolicy, l as setClientIpLookupEnabled, m as registerFlowPreloader, o as resetSessionInit, s as setClientFingerprintEnabled, u as setClientWasmConfig } from "./sessionInitializer-CwJACl13.esm.js";
|
|
8
8
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
9
9
|
import { t as resolveLocalStorage } from "./safeStorage-UxDrnjwa.esm.js";
|
|
10
|
-
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-
|
|
11
|
-
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-
|
|
12
|
-
import {
|
|
13
|
-
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-
|
|
10
|
+
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-DBh1nqp8.esm.js";
|
|
11
|
+
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-CatA2dea.esm.js";
|
|
12
|
+
import { a as isTRIStarted, c as resetSdkOwnedTRI, i as initializeTRI, s as readTRIFpSignals, t as addTRIFpSignals } from "./tri-C9SvtzuQ.esm.js";
|
|
13
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-C5-oamoC.esm.js";
|
|
14
14
|
//#region ../infra/src/wasm/wasmRuntimeProfile.ts
|
|
15
15
|
/**
|
|
16
16
|
* The WASM facts TrueSight reports as `session.webProfile.wasm`
|
|
@@ -565,19 +565,11 @@ async function setup(options) {
|
|
|
565
565
|
}
|
|
566
566
|
configured = true;
|
|
567
567
|
applyEnvironment(options.environment);
|
|
568
|
-
|
|
569
|
-
await warmupWasm(effectiveWasm);
|
|
570
|
-
await (await WasmUtilProvider.getInstance()).initialize({
|
|
571
|
-
...effectiveWasm,
|
|
572
|
-
pipelines: effectiveWasm.pipelines ? [...effectiveWasm.pipelines] : void 0
|
|
573
|
-
});
|
|
574
|
-
fingerprintSignalsReporter.onWasmReady();
|
|
575
|
-
if (!options.devMode) startDevtoolsDetector();
|
|
576
|
-
}
|
|
568
|
+
let featureManagementReady;
|
|
577
569
|
if (!getIsFeatureManagementLocked()) if (options.featureManagement === false) optOutFeatureManagement();
|
|
578
570
|
else {
|
|
579
571
|
const featureManagementSetupOptions = typeof options.featureManagement === "object" ? options.featureManagement : {};
|
|
580
|
-
const
|
|
572
|
+
const initialization = initializeFeatureManagement({
|
|
581
573
|
environment: getEnvironment(),
|
|
582
574
|
clientExperimentId: featureManagementSetupOptions.clientExperimentId,
|
|
583
575
|
disableStableId: featureManagementSetupOptions.disableStableId,
|
|
@@ -586,16 +578,25 @@ async function setup(options) {
|
|
|
586
578
|
appVersion: featureManagementSetupOptions.appVersion,
|
|
587
579
|
redactedUserInfo: featureManagementSetupOptions.redactedUserInfo
|
|
588
580
|
});
|
|
589
|
-
if (featureManagementSetupOptions.awaitInitialization === true)
|
|
581
|
+
if (featureManagementSetupOptions.awaitInitialization === true) featureManagementReady = initialization;
|
|
590
582
|
}
|
|
591
583
|
else if (options.featureManagement !== void 0) console.error("[FeatureManagement] Feature management is locked after the first setup() call and cannot be changed (re-enabled, disabled, or reconfigured). Ignoring this change. Call reset() before changing it.");
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
584
|
+
const triReady = options.tri ? initializeTRI(options.tri, {
|
|
585
|
+
sessionToken: options.token,
|
|
586
|
+
fpSignalsFromSdk: Boolean(effectiveWasm) || isWasmReady() || getWasmStatus().isLoading
|
|
587
|
+
}) : void 0;
|
|
588
|
+
if (effectiveWasm) {
|
|
589
|
+
await warmupWasm(effectiveWasm);
|
|
590
|
+
await (await WasmUtilProvider.getInstance()).initialize({
|
|
591
|
+
...effectiveWasm,
|
|
592
|
+
pipelines: effectiveWasm.pipelines ? [...effectiveWasm.pipelines] : void 0
|
|
596
593
|
});
|
|
597
|
-
|
|
594
|
+
fingerprintSignalsReporter.onWasmReady();
|
|
595
|
+
if (!options.devMode) startDevtoolsDetector();
|
|
598
596
|
}
|
|
597
|
+
await featureManagementReady;
|
|
598
|
+
await triReady;
|
|
599
|
+
if (options.tri && isTRIStarted()) fingerprintSignalsReporter.forwardTo(addTRIFpSignals);
|
|
599
600
|
}
|
|
600
601
|
/**
|
|
601
602
|
* Sets the WASM configuration without performing warmup.
|
package/dist/signature.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
2
|
-
import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-
|
|
1
|
+
import { t as signatureMachine } from "./signatureStateMachine-DBVDd1Eu.esm.js";
|
|
2
|
+
import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-CwqjcxPg.esm.js";
|
|
3
3
|
export { createSignatureManager, createSignatureManagerFromActor, signatureMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
4
|
+
import { t as signatureMachine } from "./signatureStateMachine-DBVDd1Eu.esm.js";
|
|
5
5
|
//#region src/modules/signature/signatureActor.ts
|
|
6
6
|
function createSignatureActor(options) {
|
|
7
7
|
return createActor(signatureMachine, { input: { config: options.config } }).start();
|
package/dist/{signatureStateMachine-_1c1vSid.esm.js → signatureStateMachine-DBVDd1Eu.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
4
|
//#region src/modules/signature/signatureServices.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getToken, t as api, u as endpoints } from "./api-
|
|
1
|
+
import { r as getToken, t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
2
2
|
//#region src/modules/stats/statsServices.ts
|
|
3
3
|
const deviceStatsQueue = [];
|
|
4
4
|
async function postDeviceStatsNow(stats) {
|
package/dist/stats.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-
|
|
1
|
+
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-CatA2dea.esm.js";
|
|
2
2
|
export { addDeviceStats, flushDeviceStatsQueue, resetDeviceStatsQueue };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//#region src/shared/types.d.ts
|
|
2
|
+
/** A single form field definition for dynamic rendering. */
|
|
3
|
+
type FieldDef = {
|
|
4
|
+
name: string;
|
|
5
|
+
type: 'text' | 'tel' | 'date' | 'dropdown' | 'phone' | 'radio';
|
|
6
|
+
label: string;
|
|
7
|
+
displayLabel?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
placeholderParams?: Record<string, string>;
|
|
10
|
+
required: boolean;
|
|
11
|
+
optional?: boolean;
|
|
12
|
+
maxLength?: number;
|
|
13
|
+
options?: {
|
|
14
|
+
value: string;
|
|
15
|
+
label: string;
|
|
16
|
+
}[];
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
section?: string;
|
|
19
|
+
disableCountrySelector?: boolean;
|
|
20
|
+
};
|
|
21
|
+
/** An address suggestion returned by the address autocomplete API. */
|
|
22
|
+
type AddressSuggestion = {
|
|
23
|
+
id: string | number;
|
|
24
|
+
label: string;
|
|
25
|
+
street?: string;
|
|
26
|
+
city?: string;
|
|
27
|
+
stateCode?: string;
|
|
28
|
+
postalCode?: string;
|
|
29
|
+
houseNumber?: string;
|
|
30
|
+
countryCode?: string;
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/shared/validators/textRules.d.ts
|
|
34
|
+
/**
|
|
35
|
+
* The general-purpose form-definition rules from `vocabulary.json`, as pure
|
|
36
|
+
* checks on a non-empty value. Callers skip empty values: requiredness is its
|
|
37
|
+
* own rule.
|
|
38
|
+
*/
|
|
39
|
+
type CharacterClass = 'letter' | 'digit' | 'space';
|
|
40
|
+
//#endregion
|
|
41
|
+
export { AddressSuggestion as n, FieldDef as r, CharacterClass as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
1
|
+
import { t as SDK_VERSION } from "./sdkVersion-DJCo6uSb.esm.js";
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
3
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/TransactionalRiskIntelligenceProvider.ts
|
|
@@ -8,7 +8,7 @@ const LAZY_IMPORT_OPTIONS = {
|
|
|
8
8
|
timeoutMs: 1e4,
|
|
9
9
|
disabledMessage: "TRI will be disabled for this session."
|
|
10
10
|
};
|
|
11
|
-
const importSdk = () => import("./tri.esm-
|
|
11
|
+
const importSdk = () => import("./tri.esm-DgTlfPhR.esm.js");
|
|
12
12
|
/**
|
|
13
13
|
* Concrete implementation of {@link ITransactionalRiskIntelligenceCapability}.
|
|
14
14
|
*
|
|
@@ -164,6 +164,17 @@ var TransactionalRiskIntelligenceProvider = class TransactionalRiskIntelligenceP
|
|
|
164
164
|
return false;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* The current activity id, or `null` when TRI is not loaded or not set up,
|
|
169
|
+
* has no active activity, or fails. Reads only an already loaded TRI.
|
|
170
|
+
*/
|
|
171
|
+
getActivityId() {
|
|
172
|
+
try {
|
|
173
|
+
return this._getSdk()?.getActivityId() ?? null;
|
|
174
|
+
} catch {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
167
178
|
_getSdk() {
|
|
168
179
|
return this._lazySdk.get()?.default ?? null;
|
|
169
180
|
}
|
|
@@ -316,6 +327,16 @@ function addTRIFpSignals(signals) {
|
|
|
316
327
|
return getProvider().addFpSignals(signals);
|
|
317
328
|
}
|
|
318
329
|
/**
|
|
330
|
+
* The id of TRI's current activity, for the host's server to send to the
|
|
331
|
+
* Decision API. Read it right before each request and never keep it: the
|
|
332
|
+
* activity can change while the page is open (after 60 minutes, or on a
|
|
333
|
+
* back-forward cache restore). Returns `null` when TRI is not started or no
|
|
334
|
+
* activity is active. Synchronous; never throws and never loads TRI.
|
|
335
|
+
*/
|
|
336
|
+
function getTRIActivityId() {
|
|
337
|
+
return getProvider().getActivityId();
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
319
340
|
* Calls the provider's `setup()` with the given config. This is the step that
|
|
320
341
|
* lazy-loads `@incodetech/tri-sdk`, validates the config, and checks the
|
|
321
342
|
* backend collection-status endpoint. When `config.autostart` is `true` (the
|
|
@@ -404,4 +425,4 @@ function resolveTRIConfig(config) {
|
|
|
404
425
|
return config;
|
|
405
426
|
}
|
|
406
427
|
//#endregion
|
|
407
|
-
export {
|
|
428
|
+
export { isTRIStarted as a, resetSdkOwnedTRI as c, startTRI as d, stopTRI as f, initializeTRI as i, resetTRI as l, createTRISession as n, linkSessionWithTRI as o, getTRIActivityId as r, readTRIFpSignals as s, addTRIFpSignals as t, setupTRI as u };
|
package/dist/tri.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { type TransactionalRiskIntelligenceSetupConfig, createTRISession, isTRIStarted, resetTRI, setupTRI, startTRI, stopTRI };
|
|
1
|
+
import { a as setupTRI, c as TransactionalRiskIntelligenceSetupConfig, i as resetTRI, n as getTRIActivityId, o as startTRI, r as isTRIStarted, s as stopTRI, t as createTRISession } from "./index-BfSZvEHi.js";
|
|
2
|
+
export { type TransactionalRiskIntelligenceSetupConfig, createTRISession, getTRIActivityId, isTRIStarted, resetTRI, setupTRI, startTRI, stopTRI };
|