@incodetech/core 2.4.1-agentic.9 → 2.5.0-agentic
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Actor-DqjOqDfU.d.ts +1 -0
- package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-CPdofn7R.d.ts} +3 -5
- package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
- package/dist/{FaceDetectionProvider-CHpscouN.esm.js → FaceDetectionProvider-Dv9iXub0.esm.js} +21 -13
- package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-CAxToGns.d.ts} +3 -3
- package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-CLWIYHB4.d.ts} +7 -6
- package/dist/Manager-BvXAwDv9.esm.js +125 -0
- package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
- package/dist/{MotionSensorProvider-DYxh8TjR.esm.js → MotionSensorProvider-X4_2eBGd.esm.js} +15 -0
- package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-BqaHTJF0.d.ts} +25 -3
- package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
- package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-DVFDFlIL.esm.js} +63 -6
- package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
- package/dist/{addressSearch-D6cKPWmk.esm.js → addressSearch-BKlynuBr.esm.js} +6 -7
- package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
- package/dist/ae-signature.d.ts +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CbIwM35x.esm.js → antifraudManager-BI2zr7YX.esm.js} +5 -3
- package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
- package/dist/{antifraudStateMachine-qNNXrlsP.esm.js → antifraudStateMachine-TWUu8wLN.esm.js} +4 -6
- package/dist/{api-C_P9YXbL.esm.js → api-BNxrW8xK.esm.js} +4 -1
- package/dist/{apiError-BeWqIYu8.esm.js → apiError-BAfdBGxH.esm.js} +1 -1
- package/dist/{attemptCarry-BaAXPR_w.esm.js → attemptCarry-DWM8lV9V.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DKLRA91K.d.ts → authenticationManager-BJElkTsj.d.ts} +2 -2
- package/dist/{authenticationManager-CTHFl6dl.esm.js → authenticationManager-DFzByAYo.esm.js} +7 -6
- package/dist/{authenticationStateMachine-D-SOzH8C.esm.js → authenticationStateMachine-CKTOhwwc.esm.js} +50 -18
- package/dist/avatar.d.ts +1 -1
- package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
- package/dist/{browser-pQZA35G2-DJEJnmCd.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
- package/dist/calendarDate-DcqGuEht.esm.js +35 -0
- package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
- package/dist/camera-9yYDUOsO.d.ts +5 -0
- package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
- package/dist/camera.d.ts +7 -3
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.d.ts +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
- package/dist/{certificateIssuanceManager-CrF3wjCH.esm.js → certificateIssuanceManager-P44yBRop.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-uSD9IkcV.esm.js → certificateIssuanceStateMachine-BPBrILt6.esm.js} +3 -3
- package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-BD7wwgat.esm.js → consentManager-D43w2ms-.esm.js} +5 -3
- package/dist/{consentManager-7aHaehwF.d.ts → consentManager-Duzd8paN.d.ts} +4 -3
- package/dist/{consentStateMachine-BAiLDE3D.esm.js → consentStateMachine-CLK8PfM4.esm.js} +6 -9
- package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
- package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-Ct9QrQ66.d.ts} +1 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-CUc1uACE.esm.js → crossDocumentDataMatchManager-Cag_bcyW.esm.js} +6 -5
- package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
- package/dist/curp-DZGvefg3.esm.js +14 -0
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-DBfZSQbu.esm.js → curpValidationManager-C6WmQToS.esm.js} +6 -4
- package/dist/{curpValidationManager-Crz3bnCo.d.ts → curpValidationManager-CmL52FU8.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-DyAEyScb.esm.js → curpValidationStateMachine-BbJ4YAzE.esm.js} +16 -17
- package/dist/custom-fields.d.ts +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-BZhIPyaY.esm.js → customFieldsManager-BBy6X9nh.esm.js} +15 -17
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customWatchlistManager-B4cmxi__.esm.js → customWatchlistManager-CtBMy2EF.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-ZZoDGRAZ.esm.js → customWatchlistStateMachine-SS2ssNCg.esm.js} +4 -6
- package/dist/deepsightCaptureConfig-Nm_K8twx.esm.js +70 -0
- package/dist/{deepsightLoader-je1YxHgT.esm.js → deepsightLoader-BInnND1H.esm.js} +7 -6
- package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-B-Z2EgJJ.esm.js} +51 -1
- package/dist/{desktopCameraElection-m2dAj6Zu.esm.js → desktopCameraElection-JNBOXqvK.esm.js} +110 -13
- package/dist/device.d.ts +3 -3
- package/dist/device.esm.js +16 -16
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.d.ts +123 -0
- package/dist/document-signature.esm.js +149 -0
- package/dist/{documentCaptureManager-v57klTso.esm.js → documentCaptureManager-CGDtkfWj.esm.js} +5 -3
- package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +7 -6
- package/dist/{documentCaptureStateMachine-CgCtimSa.esm.js → documentCaptureStateMachine-flAt9D4q.esm.js} +11 -13
- package/dist/documentSignatureStateMachine-DrRyICFT.esm.js +219 -0
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
- package/dist/{dynamicFormsManager-BKWJZfkn.esm.js → dynamicFormsManager-CxLq2KzT.esm.js} +5 -3
- package/dist/{dynamicFormsStateMachine-CQN8p1ux.esm.js → dynamicFormsStateMachine-By-maT_4.esm.js} +12 -13
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
- package/dist/{ekybManager-BD6HTwFJ.esm.js → ekybManager-CE19Pcdb.esm.js} +5 -3
- package/dist/{ekybStateMachine-3kceTymI.esm.js → ekybStateMachine-q7JQ-x9l.esm.js} +1214 -91
- package/dist/{ekybUtils-Cw8Ta9Qi.esm.js → ekybUtils-Z9MhFAer.esm.js} +11 -1
- package/dist/ekyc-prefill.d.ts +3 -3
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-CERRvIfg.d.ts → ekycManager-BKVQazAb.d.ts} +48 -7
- package/dist/{ekycManager-DawJq3Jo.esm.js → ekycManager-p3uenUEi.esm.js} +39 -16
- package/dist/{ekycPrefillManager-DLNmToWT.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +10 -9
- package/dist/{ekycPrefillManager-D_8NJzZf.esm.js → ekycPrefillManager-gPX3XE7u.esm.js} +3 -2
- package/dist/{ekycPrefillStateMachine-C-JAvkH3.esm.js → ekycPrefillStateMachine-SBnBKPGA.esm.js} +12 -13
- package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-BH_Ll_0A.esm.js} +201 -38
- package/dist/{ekycStateMachine-qvQ-b4IY.esm.js → ekycStateMachine-D0NAHzS7.esm.js} +1031 -132
- package/dist/{ekycUtils-Drx8ImpN.esm.js → ekycUtils-DEvtEyBI.esm.js} +55 -43
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
- package/dist/{electronicSignatureManager-u3UBhWw_.esm.js → electronicSignatureManager-C1M-Yxf2.esm.js} +11 -17
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BSaGg1Gl.esm.js → emailManager-DWnhEsUf.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-CaoPZtZN.esm.js → emailStateMachine--T9PHflK.esm.js} +5 -7
- package/dist/events-ChMS-UzR.esm.js +299 -0
- package/dist/events.d.ts +4 -1
- package/dist/events.esm.js +2 -1
- package/dist/extensibility.d.ts +42 -42
- package/dist/extensibility.esm.js +38 -38
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-DKJUjsV2.esm.js → faceCaptureManagerFactory-18QW0lmV.esm.js} +29 -12
- package/dist/{faceCaptureManagerFactory-ZudYP6Qp.d.ts → faceCaptureManagerFactory-CHqmyOjM.d.ts} +35 -16
- package/dist/{faceCaptureSetup-CZzv26ip.esm.js → faceCaptureSetup-CFToXwHy.esm.js} +115 -74
- package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-C5b5WtcY.d.ts} +12 -5
- package/dist/{faceMatchManager-qPJsa5Ac.esm.js → faceMatchManager-DIStK4qi.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-D90ZHY1r.esm.js → faceMatchStateMachine-DagrRdo2.esm.js} +49 -34
- package/dist/{feature-management-BMUPPAzI.esm.js → feature-management-BlscKbeV.esm.js} +3 -2
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.d.ts +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-BLLj_Ey1.esm.js → fieldComparisonManager-BnWBtMN7.esm.js} +7 -7
- package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Bh3rxb7Y.esm.js → fiscalQrManager-BxXaLhin.esm.js} +9 -8
- package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +50 -14
- package/dist/flow.esm.js +214 -58
- package/dist/{flowCompletionService-DgA2VEq4.esm.js → flowCompletionService-DNLssMAg.esm.js} +2 -2
- package/dist/{flowServices-aJ5kGxBd.esm.js → flowServices-Bzq3piUR.esm.js} +378 -18
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
- package/dist/{geolocationManager-BA57nCxj.esm.js → geolocationManager-DoLbpx5e.esm.js} +5 -3
- package/dist/{geolocationStateMachine-3-d1ECCh.esm.js → geolocationStateMachine-d5_E7gAm.esm.js} +8 -10
- package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-D5HkBqfr.esm.js → governmentValidationManager-CaZxyEOO.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-BwMClTqC.esm.js → governmentValidationStateMachine-DeHHhlcf.esm.js} +4 -6
- package/dist/home.d.ts +4 -3
- package/dist/home.esm.js +4 -2
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +3 -3
- package/dist/id-selfie-flow.d.ts +7 -6
- package/dist/id-selfie-flow.esm.js +14 -13
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +5 -5
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-Dszuq9ng.esm.js → idCaptureDefaults-R3rHuTOE.esm.js} +4 -4
- package/dist/{idCaptureManager-NRGuCVv2.d.ts → idCaptureManager-CgkQW3Xc.d.ts} +24 -13
- package/dist/{idCaptureManager-B_TyUA3w.esm.js → idCaptureManager-D_YGMeCW.esm.js} +30 -22
- package/dist/{idCaptureServices-C6FUQ76N.esm.js → idCaptureServices-CP6AxsFW.esm.js} +17 -25
- package/dist/{idCaptureStateMachine-Cr8WdGyp.esm.js → idCaptureStateMachine-BdBtGQZP.esm.js} +114 -96
- package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
- package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-C0C7lFGd.d.ts} +4 -3
- package/dist/{idOcrManager-BMK2oou0.esm.js → idOcrManager-XTbpfHoF.esm.js} +5 -3
- package/dist/{idOcrStateMachine-RjNycN07.esm.js → idOcrStateMachine-B-00PgPh.esm.js} +13 -10
- package/dist/{idVerificationManager-4wY-Ee4j.esm.js → idVerificationManager-B4NYLlUl.esm.js} +5 -3
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationStateMachine-Bj00uWvh.esm.js → idVerificationStateMachine-B48Ikl-7.esm.js} +4 -6
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.d.ts +97 -0
- package/dist/identity-search.esm.js +96 -0
- package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +84 -17
- package/dist/{identityReuseManager-CCZ-ES2E.esm.js → identityReuseManager-tFeYm_So.esm.js} +9 -4
- package/dist/{identityReuseStateMachine-BtpkGpYZ.esm.js → identityReuseStateMachine-Ckf39qFu.esm.js} +24 -31
- package/dist/{index-DlVDVTcf.d.ts → index-CNck5TLp.d.ts} +1 -1
- package/dist/{index-BGnYn_4J.d.ts → index-CoePktWH.d.ts} +2 -2
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-BkvXSZfa.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
- package/dist/{kybChecksManager-x2nBdasv.esm.js → kybChecksManager-DP76y-Qz.esm.js} +3 -2
- package/dist/{kybChecksStateMachine-DdWSo3jQ.esm.js → kybChecksStateMachine-OKLT8Zoc.esm.js} +11 -14
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-C9JJGENL.esm.js → mandatoryConsentManager-NX1lz6nk.esm.js} +5 -3
- package/dist/{mandatoryConsentManager-JNeVXgK8.d.ts → mandatoryConsentManager-kzr5kdc_.d.ts} +5 -4
- package/dist/{mandatoryConsentStateMachine-DLNIGElA.esm.js → mandatoryConsentStateMachine-D1J2NQSI.esm.js} +6 -9
- package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +21 -4
- package/dist/{multipartRecordingService-OmSzHBqh.esm.js → multipartRecordingService-Cz-cWrpV.esm.js} +2 -2
- package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-Cyh71hOt.esm.js} +1 -1
- package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-BrtDMB0Z.esm.js} +23 -9
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
- package/dist/{phoneManager-BylOWecM.esm.js → phoneManager-D1QPNbu0.esm.js} +5 -3
- package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
- package/dist/{phoneServices-Crge7uSV.esm.js → phoneServices-DC7AuUed.esm.js} +3 -7
- package/dist/{phoneStateMachine-CHnhCS-4.esm.js → phoneStateMachine-CxCPxTIy.esm.js} +4 -4
- package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
- package/dist/{processFaceMatch-BveUAHts.esm.js → processFaceMatch-BQoiqLVh.esm.js} +1 -1
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-BUqAQd8F.esm.js → recordingService-CSCvD2tB.esm.js} +17 -10
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-Db99n9Yu.d.ts} +4 -3
- package/dist/{redirectToMobileManager-DUpLyXsq.esm.js → redirectToMobileManager-Dcpg5GfP.esm.js} +7 -4
- package/dist/{redirectToMobileStateMachine-D0DW4y-f.esm.js → redirectToMobileStateMachine-BMehrtVP.esm.js} +18 -21
- package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
- package/dist/{runChildModule-BTMOZdMM.esm.js → runChildModule-DNEmc7of.esm.js} +8 -6
- package/dist/{sdkVersion-CinXzhdk.esm.js → sdkVersion-etdZfyCR.esm.js} +1 -1
- package/dist/selfie.d.ts +6 -6
- package/dist/selfie.esm.js +15 -13
- package/dist/{selfieErrorUtils-D92PpZGe.esm.js → selfieErrorUtils-DT-uhK20.esm.js} +1 -1
- package/dist/{selfieManager-DX9Ejy4x.esm.js → selfieManager-CdS6a7Q8.esm.js} +7 -6
- package/dist/{selfieManager-BPOlD-UN.d.ts → selfieManager-DrBYj5kA.d.ts} +2 -2
- package/dist/{selfieStateMachine-BfJ5mJ57.esm.js → selfieStateMachine-ChCl3nyf.esm.js} +5 -5
- package/dist/{session-CswNE2eZ.esm.js → session-VXYuRYzb.esm.js} +5 -4
- package/dist/session.d.ts +3 -13
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-DFtIRfDh.esm.js → sessionInitializer-BT_CmYcX.esm.js} +54 -79
- package/dist/{setup-Bl3CRduw.esm.js → setup-BXrgDdfx.esm.js} +14 -12
- package/dist/{setup-prV5HQCQ.d.ts → setup-rcXgYUcY.d.ts} +6 -5
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-QlegdTo3.esm.js → signatureManager-B737Gkvk.esm.js} +5 -3
- package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
- package/dist/{signatureStateMachine-DFbbbFwg.esm.js → signatureStateMachine-B-QG7fk0.esm.js} +5 -7
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-Bv5PiWvo.esm.js → stats-CrqhpKkP.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +3 -2
- package/dist/step-up.esm.js +2 -1
- package/dist/{tri-BUFivnaE.esm.js → tri-BD9z6z0w.esm.js} +6 -3
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
- package/dist/tri.esm.js +1 -1
- package/dist/trueSight-BymJD5cW.esm.js +1 -0
- package/dist/{trueSightService-CDbmG-Mi.esm.js → trueSightService-BwyLhIAo.esm.js} +10 -8
- package/dist/trust-graph.d.ts +87 -27
- package/dist/trust-graph.esm.js +6 -25
- package/dist/trustGraphStateMachine-BxvReuo1.esm.js +58 -0
- package/dist/{types-CquDWYfv.d.ts → types-4Re9FSOw.d.ts} +68 -6
- package/dist/{types-D9vIGFbl.d.ts → types-B-PIc0en.d.ts} +1 -1
- package/dist/types-BNkzXOXE.d.ts +45 -0
- package/dist/types-BtrJ5fkm.d.ts +6 -0
- package/dist/{types-LA74KylV.d.ts → types-C1056-J1.d.ts} +1 -1
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/{events-kU5WJU4B.esm.js → types-CBQN04Rh.esm.js} +5 -299
- package/dist/{types-BD9sV5oG.d.ts → types-CEGG70FK.d.ts} +16 -3
- package/dist/types-CXTDuzUJ.d.ts +16 -0
- package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
- package/dist/{types-CyNndVAT.d.ts → types-Cy6Lx3L6.d.ts} +2 -2
- package/dist/{types-BaDx6utW.d.ts → types-DEa3taWc.d.ts} +4 -0
- package/dist/{types-0Rr7etmf.d.ts → types-DHpz4Y37.d.ts} +1 -1
- package/dist/{types-BpJ21a4T.d.ts → types-b0l9b83G.d.ts} +14 -7
- package/dist/video-selfie.d.ts +8 -7
- package/dist/video-selfie.esm.js +14 -13
- package/dist/{videoSelfieCameraWarmer-Dnkiqe0z.esm.js → videoSelfieCameraWarmer-DgRlU_8q.esm.js} +10 -10
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-B78BE_x9.d.ts → videoSelfieStepDetector-DC_Qh7qI.d.ts} +19 -9
- package/dist/{warmup-DtB0DJpl.esm.js → warmup-BN8dG2KX.esm.js} +192 -42
- package/dist/{warmup-BO57syF6.d.ts → warmup-SWu5L7cW.d.ts} +19 -2
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/wasmDeepsightConfigSync-DukEcrU8.esm.js +77 -0
- package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-DwBfTlgB.esm.js} +1 -1
- package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-B2P6Vlvv.esm.js} +32 -13
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-DOYmIiaj.esm.js → watchlistForBusinessManager-DxeSH80T.esm.js} +5 -3
- package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
- package/dist/{watchlistForBusinessStateMachine-D8qIyL8w.esm.js → watchlistForBusinessStateMachine-BC9UWLuZ.esm.js} +12 -9
- package/dist/{watchlistManager-BJGLRv-x.esm.js → watchlistManager-BHzmC9OC.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-DeLfuGSl.esm.js → watchlistStateMachine-Bxzn16iJ.esm.js} +4 -6
- package/dist/workflow.d.ts +6 -5
- package/dist/workflow.esm.js +68 -49
- package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
- package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
- package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
- package/package.json +13 -3
- package/dist/Actor-DpTj5PFb.d.ts +0 -1
- package/dist/camera-9wWD-pwg.d.ts +0 -4
- package/dist/index-DpTj5PFb.d.ts +0 -1
- package/dist/nationalIds-B91f_RuB.esm.js +0 -99
- package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
- package/dist/tri.esm-DgtAka_v.esm.js +0 -2145
- package/dist/types-B2M1IPZn.d.ts +0 -6
- package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +0 -27
package/dist/selfie.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
|
-
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-
|
|
3
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-
|
|
4
|
-
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-
|
|
5
|
-
import { n as DeepsightService } from "./StreamCanvasCapture-
|
|
6
|
-
import { t as CameraStream } from "./camera-
|
|
7
|
-
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-
|
|
2
|
+
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-CHqmyOjM.js";
|
|
3
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-CeEcakO7.js";
|
|
4
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-CEGG70FK.js";
|
|
5
|
+
import { n as DeepsightService } from "./StreamCanvasCapture-BqaHTJF0.js";
|
|
6
|
+
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
7
|
+
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-DrBYj5kA.js";
|
|
8
8
|
//#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
|
|
9
9
|
type SelfieCaptureOnlyState = FaceCaptureManagerState;
|
|
10
10
|
type SelfieCaptureOnlyManager = FaceCaptureManager;
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
3
|
-
import { n as eventModuleNames } from "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { s as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-BXrgDdfx.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-DVFDFlIL.esm.js";
|
|
3
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
4
|
+
import "./events-ChMS-UzR.esm.js";
|
|
5
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-CFToXwHy.esm.js";
|
|
8
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-18QW0lmV.esm.js";
|
|
9
|
+
import { s as processFace } from "./FaceDetectionProvider-Dv9iXub0.esm.js";
|
|
10
|
+
import { l as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-JNBOXqvK.esm.js";
|
|
11
|
+
import { t as selfieMachine } from "./selfieStateMachine-ChCl3nyf.esm.js";
|
|
12
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-CdS6a7Q8.esm.js";
|
|
13
|
+
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-DNQX9k5e.esm.js";
|
|
13
14
|
/**
|
|
14
15
|
* Selfie state machine variant for the captureOnly flow. Shares the full base
|
|
15
16
|
* face-capture state tree; only the upload/process step is local instead of
|
|
@@ -58,10 +59,11 @@ function createSelfieCaptureOnlyActor(options) {
|
|
|
58
59
|
storage: new BrowserStorageProvider(),
|
|
59
60
|
getWasmUtil: () => WasmUtilProvider.getInstance()
|
|
60
61
|
};
|
|
62
|
+
const { deepsightCaptureConfig: _dropped, ...integratorConfig } = options.config;
|
|
61
63
|
return createActor(selfieCaptureOnlyMachine, { input: {
|
|
62
64
|
config: {
|
|
63
65
|
...DEFAULT_SELFIE_CAPTURE_ONLY_CONFIG,
|
|
64
|
-
...
|
|
66
|
+
...integratorConfig
|
|
65
67
|
},
|
|
66
68
|
dependencies
|
|
67
69
|
} }).start();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
1
|
+
import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-Dv9iXub0.esm.js";
|
|
2
2
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
3
3
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
4
4
|
const isFaceErrorCode = (value) => {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
3
|
-
import { n as eventModuleNames } from "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-BXrgDdfx.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-DVFDFlIL.esm.js";
|
|
3
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
4
|
+
import "./events-ChMS-UzR.esm.js";
|
|
5
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-18QW0lmV.esm.js";
|
|
7
|
+
import { t as selfieMachine } from "./selfieStateMachine-ChCl3nyf.esm.js";
|
|
7
8
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
9
|
function createSelfieActor(options) {
|
|
9
10
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CHqmyOjM.js";
|
|
4
4
|
//#region src/modules/selfie/selfieManager.d.ts
|
|
5
5
|
type SelfieState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as assign } from "./xstate.esm-
|
|
2
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
5
|
-
import { n as validateUploadResponse } from "./selfieErrorUtils-
|
|
1
|
+
import { i as assign } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
2
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-CFToXwHy.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-Dv9iXub0.esm.js";
|
|
5
|
+
import { n as validateUploadResponse } from "./selfieErrorUtils-DT-uhK20.esm.js";
|
|
6
6
|
/**
|
|
7
7
|
* The selfie capture state machine.
|
|
8
8
|
*
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { n as getApi, u as endpoints } from "./api-
|
|
2
|
-
import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
1
|
+
import { n as getApi, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
2
|
+
import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-BwyLhIAo.esm.js";
|
|
3
|
+
import "./trueSight-BymJD5cW.esm.js";
|
|
4
|
+
import "./sessionInitializer-BT_CmYcX.esm.js";
|
|
5
|
+
import { i as toIncodeApiError } from "./apiError-BAfdBGxH.esm.js";
|
|
5
6
|
//#region src/internal/session/sessionService.ts
|
|
6
7
|
/**
|
|
7
8
|
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
package/dist/session.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./warmup-
|
|
2
|
-
import { t as DeviceFingerprintResult } from "./types-
|
|
1
|
+
import "./warmup-SWu5L7cW.js";
|
|
2
|
+
import { t as DeviceFingerprintResult } from "./types-DHpz4Y37.js";
|
|
3
3
|
import { n as FinishStatus, r as GetFinishStatusFn, s as getFinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
4
4
|
//#region src/internal/session/sessionService.d.ts
|
|
5
5
|
type CreateSessionOptions = {
|
|
@@ -229,17 +229,7 @@ type FeatureName = 'VIDEO_SELFIE_V2' | 'USE_CLIENT_GLARE' | 'USE_OPEN_VIDU' | 'D
|
|
|
229
229
|
* unresolvable config all proceed (fail-open; the proxy's
|
|
230
230
|
* `truesight.api.enabled` is the environment authority).
|
|
231
231
|
*/
|
|
232
|
-
'TRUESIGHT_DIAGNOSTICS'
|
|
233
|
-
/**
|
|
234
|
-
* Deepsight 2.0 capture metadata (ENG-61789). `enabled: true` makes the WASM
|
|
235
|
-
* emit the v2 capture-metadata document (ml-wasm-kit `smv(true)`); absent,
|
|
236
|
-
* `false` or an unresolvable config keep the v1 document (fail-closed). Read
|
|
237
|
-
* once per session in `sessionInitializer.ts` and latched on the WASM runtime,
|
|
238
|
-
* which replays it after every re-initialization. Delivered by provisioning;
|
|
239
|
-
* the key name is the SDK's assumption pending confirmation from the
|
|
240
|
-
* provisioning owners.
|
|
241
|
-
*/
|
|
242
|
-
'DEEPSIGHT_V2';
|
|
232
|
+
'TRUESIGHT_DIAGNOSTICS';
|
|
243
233
|
type FeatureConfig = {
|
|
244
234
|
enabled: boolean;
|
|
245
235
|
feature: FeatureName;
|
package/dist/session.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as getToken } from "./api-
|
|
1
|
+
import { r as getToken } from "./api-BNxrW8xK.esm.js";
|
|
2
2
|
import { r as subscribeHttpErrors } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
3
|
-
import {
|
|
3
|
+
import { d as whenSessionFingerprintSettled, i as initializeSession } from "./sessionInitializer-BT_CmYcX.esm.js";
|
|
4
4
|
import { n as onConnectivityChange, r as resumeConnectivity, t as isConnectivityLost } from "./connectivity-BCuEoQ-n.esm.js";
|
|
5
|
-
import { t as IncodeApiError } from "./apiError-
|
|
6
|
-
import { a as continueSession, c as validateQrUuid, i as bootstrapSession, n as QrValidationError, o as createSession, r as SESSION_CONTINUE_ERROR_CODES, s as refreshQrUrlUuid, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
7
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
5
|
+
import { t as IncodeApiError } from "./apiError-BAfdBGxH.esm.js";
|
|
6
|
+
import { a as continueSession, c as validateQrUuid, i as bootstrapSession, n as QrValidationError, o as createSession, r as SESSION_CONTINUE_ERROR_CODES, s as refreshQrUrlUuid, t as QR_VALIDATION_ERROR_CODES } from "./session-VXYuRYzb.esm.js";
|
|
7
|
+
import { n as getFinishStatus } from "./flowCompletionService-DNLssMAg.esm.js";
|
|
8
8
|
//#region src/internal/session/sessionExpired.ts
|
|
9
9
|
var SessionExpiredError = class extends Error {
|
|
10
10
|
constructor() {
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { n as
|
|
3
|
-
import {
|
|
4
|
-
import { c as setToken, r as getToken, t as api, u as endpoints } from "./api-
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
2
|
+
import { n as resetWasmDeepsightConfigSync } from "./wasmDeepsightConfigSync-DukEcrU8.esm.js";
|
|
3
|
+
import { S as subscribeEvent, v as addEvent, y as getAnalyticsBatcher } from "./types-CBQN04Rh.esm.js";
|
|
4
|
+
import { c as setToken, r as getToken, t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
5
|
+
import "./events-ChMS-UzR.esm.js";
|
|
6
|
+
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-BwyLhIAo.esm.js";
|
|
7
|
+
import { t as SDK_VERSION } from "./sdkVersion-etdZfyCR.esm.js";
|
|
8
|
+
import "./trueSight-BymJD5cW.esm.js";
|
|
7
9
|
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-
|
|
10
|
+
import { E as updateFeatureManagementUser } from "./feature-management-BlscKbeV.esm.js";
|
|
11
|
+
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-CrqhpKkP.esm.js";
|
|
10
12
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
11
|
-
import {
|
|
13
|
+
import { i as isIOS } from "./platform-GIg4uPWe.esm.js";
|
|
12
14
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
13
|
-
import { a as isTRIStarted, o as linkSessionWithTRI, s as readTRIFpSignals } from "./tri-
|
|
15
|
+
import { a as isTRIStarted, o as linkSessionWithTRI, s as readTRIFpSignals } from "./tri-BD9z6z0w.esm.js";
|
|
14
16
|
import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
|
|
15
17
|
//#region src/internal/version/sdkPlatform.ts
|
|
16
18
|
/**
|
|
@@ -39,24 +41,17 @@ function readIncodeDeviceHash(data) {
|
|
|
39
41
|
algorithmVersion
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
|
-
function createIncodeDeviceHashWaiter(
|
|
44
|
+
function createIncodeDeviceHashWaiter() {
|
|
43
45
|
const pendingByToken = /* @__PURE__ */ new Map();
|
|
44
46
|
function pendingFor(token) {
|
|
45
47
|
let pending = pendingByToken.get(token);
|
|
46
48
|
if (!pending) {
|
|
47
49
|
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
|
-
});
|
|
55
50
|
pending = {
|
|
56
|
-
deviceHash
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
deviceHash: new Promise((resolve) => {
|
|
52
|
+
settle = resolve;
|
|
53
|
+
}),
|
|
54
|
+
settle
|
|
60
55
|
};
|
|
61
56
|
pendingByToken.set(token, pending);
|
|
62
57
|
}
|
|
@@ -66,24 +61,8 @@ function createIncodeDeviceHashWaiter(timer) {
|
|
|
66
61
|
settle(token, deviceHash) {
|
|
67
62
|
pendingFor(token).settle(deviceHash);
|
|
68
63
|
},
|
|
69
|
-
|
|
70
|
-
pendingFor(token).
|
|
71
|
-
},
|
|
72
|
-
async waitFor(token, timeoutMs) {
|
|
73
|
-
let timeout;
|
|
74
|
-
const timedOut = new Promise((resolve) => {
|
|
75
|
-
timeout = timer.setTimeout(() => resolve(null), Math.max(0, timeoutMs));
|
|
76
|
-
});
|
|
77
|
-
const pending = pendingFor(token);
|
|
78
|
-
try {
|
|
79
|
-
return await Promise.race([
|
|
80
|
-
pending.deviceHash,
|
|
81
|
-
pending.released,
|
|
82
|
-
timedOut
|
|
83
|
-
]);
|
|
84
|
-
} finally {
|
|
85
|
-
if (timeout !== void 0) timer.clearTimeout(timeout);
|
|
86
|
-
}
|
|
64
|
+
waitFor(token) {
|
|
65
|
+
return pendingFor(token).deviceHash;
|
|
87
66
|
},
|
|
88
67
|
reset() {
|
|
89
68
|
pendingByToken.forEach((pending) => pending.settle(null));
|
|
@@ -91,13 +70,14 @@ function createIncodeDeviceHashWaiter(timer) {
|
|
|
91
70
|
}
|
|
92
71
|
};
|
|
93
72
|
}
|
|
94
|
-
const incodeDeviceHashWaiter = createIncodeDeviceHashWaiter(
|
|
73
|
+
const incodeDeviceHashWaiter = createIncodeDeviceHashWaiter();
|
|
95
74
|
//#endregion
|
|
96
75
|
//#region src/internal/fingerprint/fingerprintSignalsReporter.ts
|
|
97
76
|
const START_INTERVIEW_EVENT = "modelLoadEnd";
|
|
98
77
|
const CAPTURE_INTERVIEW_EVENT = "captureAttemptFinished";
|
|
99
78
|
const START_SIGNALS = ["device"];
|
|
100
79
|
const MAX_KEPT_SIGNALS = 20;
|
|
80
|
+
const EMPTY_BEHAVIOUR_BASELINE_MESSAGE = "first read was empty, native collection is not running";
|
|
101
81
|
/**
|
|
102
82
|
* The native envelope reads the SDK platform and version, and the start batch
|
|
103
83
|
* goes out before any capture's Deepsight session has set them. A failure is
|
|
@@ -141,6 +121,7 @@ function createFingerprintSignalsReporter(deps) {
|
|
|
141
121
|
keptSignals.push(metadata);
|
|
142
122
|
if (keptSignals.length > MAX_KEPT_SIGNALS) keptSignals.shift();
|
|
143
123
|
}
|
|
124
|
+
let behaviourBaselinePending = true;
|
|
144
125
|
function enqueue(work) {
|
|
145
126
|
const scheduledGeneration = generation;
|
|
146
127
|
queue = queue.then(async () => {
|
|
@@ -155,6 +136,14 @@ function createFingerprintSignalsReporter(deps) {
|
|
|
155
136
|
const wasmUtil = await deps.getWasmUtil();
|
|
156
137
|
setSdkIdentity(wasmUtil);
|
|
157
138
|
const metadata = await wasmUtil.getFingerprintSignals(type);
|
|
139
|
+
if (type === "behaviour" && behaviourBaselinePending) {
|
|
140
|
+
behaviourBaselinePending = false;
|
|
141
|
+
if (!metadata) deps.reportFailure({
|
|
142
|
+
message: EMPTY_BEHAVIOUR_BASELINE_MESSAGE,
|
|
143
|
+
signalsType: type,
|
|
144
|
+
interviewEvent
|
|
145
|
+
});
|
|
146
|
+
}
|
|
158
147
|
if (!metadata || deps.getToken() !== token) return;
|
|
159
148
|
keepOrForward(metadata);
|
|
160
149
|
const response = await deps.post(endpoints.deviceFingerprintSignals, isPid ? {
|
|
@@ -189,6 +178,7 @@ function createFingerprintSignalsReporter(deps) {
|
|
|
189
178
|
}
|
|
190
179
|
/** Switches native behaviour collection (`sbc`); resolves to whether it worked. */
|
|
191
180
|
async function applyNativeCollection(on) {
|
|
181
|
+
if (!on) behaviourBaselinePending = false;
|
|
192
182
|
try {
|
|
193
183
|
(await deps.getWasmUtil()).setBehaviourSignalsCollection(on);
|
|
194
184
|
return true;
|
|
@@ -377,7 +367,7 @@ function createFingerprintSignalsReporter(deps) {
|
|
|
377
367
|
}
|
|
378
368
|
const fingerprintSignalsReporter = createFingerprintSignalsReporter({
|
|
379
369
|
getWasmUtil: async () => {
|
|
380
|
-
return (await import("./WasmUtilProvider-
|
|
370
|
+
return (await import("./WasmUtilProvider-DVFDFlIL.esm.js").then((n) => n.n)).WasmUtilProvider.getInstance();
|
|
381
371
|
},
|
|
382
372
|
getToken: () => getToken(),
|
|
383
373
|
post: async (url, body, headers) => (await api.post(url, body, { headers })).data,
|
|
@@ -712,13 +702,25 @@ async function getFingerprint(disableIpify) {
|
|
|
712
702
|
async function readSessionPid() {
|
|
713
703
|
const token = getToken();
|
|
714
704
|
if (!token || !getFingerprintEnabled()) return null;
|
|
715
|
-
const pid = await
|
|
705
|
+
const pid = await waitForPid(token);
|
|
716
706
|
return pid ? {
|
|
717
707
|
visitorId: pid.hash,
|
|
718
708
|
algorithmName: pid.algorithmName,
|
|
719
709
|
algorithmVersion: pid.algorithmVersion
|
|
720
710
|
} : null;
|
|
721
711
|
}
|
|
712
|
+
async function waitForPid(token) {
|
|
713
|
+
const timer = BrowserTimerProvider.getInstance();
|
|
714
|
+
let timeout;
|
|
715
|
+
const timedOut = new Promise((resolve) => {
|
|
716
|
+
timeout = timer.setTimeout(() => resolve(null), PID_WAIT_MS);
|
|
717
|
+
});
|
|
718
|
+
try {
|
|
719
|
+
return await Promise.race([incodeDeviceHashWaiter.waitFor(token), timedOut]);
|
|
720
|
+
} finally {
|
|
721
|
+
if (timeout !== void 0) timer.clearTimeout(timeout);
|
|
722
|
+
}
|
|
723
|
+
}
|
|
722
724
|
//#endregion
|
|
723
725
|
//#region src/internal/device/hasLiedBrowser.ts
|
|
724
726
|
function detectBrowserFromUserAgent(userAgent) {
|
|
@@ -817,9 +819,7 @@ async function submitDeviceFingerprint(options = {}, dependencies) {
|
|
|
817
819
|
algorithmName: deviceHash?.algorithmName,
|
|
818
820
|
algorithmVersion: deviceHash?.algorithmVersion
|
|
819
821
|
};
|
|
820
|
-
|
|
821
|
-
if (!response.ok) throw new Error(`Failed to submit fingerprint: ${response.status} ${response.statusText}`);
|
|
822
|
-
return response.data;
|
|
822
|
+
return (await api.post(endpoints.deviceFingerprint, payload, { signal })).data;
|
|
823
823
|
}
|
|
824
824
|
//#endregion
|
|
825
825
|
//#region src/internal/session/standaloneFlowPolicy.ts
|
|
@@ -860,7 +860,6 @@ let clientFingerprintEnabled = true;
|
|
|
860
860
|
let clientHostingApp;
|
|
861
861
|
let clientWasmConfig;
|
|
862
862
|
let clientWasmDisabled = false;
|
|
863
|
-
const DEVICE_HASH_WAIT_MS = 3e3;
|
|
864
863
|
function setClientIpLookupEnabled(enabled) {
|
|
865
864
|
clientIpLookupEnabled = enabled;
|
|
866
865
|
}
|
|
@@ -894,20 +893,10 @@ function setClientWasmConfig(config) {
|
|
|
894
893
|
function setClientWasmDisabled(disabled) {
|
|
895
894
|
clientWasmDisabled = disabled;
|
|
896
895
|
}
|
|
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
|
-
}
|
|
906
896
|
/** Why this activation's post won't wait for a pid, if it won't. */
|
|
907
897
|
function deviceHashSkipReason(activationOptedOut) {
|
|
908
898
|
if (activationOptedOut || clientWasmDisabled) return "wasmDisabled";
|
|
909
|
-
|
|
910
|
-
return isSlowNetwork() ? "slowNetwork" : void 0;
|
|
899
|
+
return clientWasmConfig || isTRIStarted() ? void 0 : "noWasmConfig";
|
|
911
900
|
}
|
|
912
901
|
/**
|
|
913
902
|
* TRI first: TRI's fpSignals PID is signed with the same key as the runtime's
|
|
@@ -938,7 +927,7 @@ function startSessionPid(token, config) {
|
|
|
938
927
|
function startSessionWasm(token, config) {
|
|
939
928
|
(async () => {
|
|
940
929
|
try {
|
|
941
|
-
const warmupModule = await import("./warmup-
|
|
930
|
+
const warmupModule = await import("./warmup-BN8dG2KX.esm.js").then((n) => n.c);
|
|
942
931
|
const warmup = warmupModule.warmupWasm({
|
|
943
932
|
...config,
|
|
944
933
|
pipelines: []
|
|
@@ -988,22 +977,12 @@ function createFingerprintSettled() {
|
|
|
988
977
|
function whenSessionFingerprintSettled() {
|
|
989
978
|
return fingerprintSettled?.promise ?? Promise.resolve(cachedFingerprintResult);
|
|
990
979
|
}
|
|
991
|
-
/**
|
|
992
|
-
|
|
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
|
-
}
|
|
1001
|
-
/** Best-effort: the format latch must never fail session initialization. */
|
|
1002
|
-
function applyCaptureMetadataFormat(v2Enabled) {
|
|
980
|
+
/** Best-effort: the reset must never fail session teardown. */
|
|
981
|
+
function resetModuleDeepsightConfig() {
|
|
1003
982
|
try {
|
|
1004
|
-
|
|
983
|
+
resetWasmDeepsightConfigSync();
|
|
1005
984
|
} catch (error) {
|
|
1006
|
-
trueSightLog("warning", "session", "orchestration", `
|
|
985
|
+
trueSightLog("warning", "session", "orchestration", `deepsight config not reset error=${String(error)}`);
|
|
1007
986
|
}
|
|
1008
987
|
}
|
|
1009
988
|
/**
|
|
@@ -1077,18 +1056,15 @@ async function initializeSession(options = {}) {
|
|
|
1077
1056
|
sessionInitPromise = (async () => {
|
|
1078
1057
|
let features;
|
|
1079
1058
|
let serverDisableIpify = false;
|
|
1080
|
-
let captureMetadataV2 = false;
|
|
1081
1059
|
try {
|
|
1082
1060
|
features = await retryAfterReconnect(() => fetchFeatureConfig(signal), signal);
|
|
1083
1061
|
serverDisableIpify = isFeatureEnabled("DISABLE_IPIFY", features.features);
|
|
1084
|
-
captureMetadataV2 = isFeatureEnabled("DEEPSIGHT_V2", features.features);
|
|
1085
1062
|
startTrueSightCollection(features);
|
|
1086
1063
|
} catch {
|
|
1087
1064
|
features = { sessionIdentifier: "" };
|
|
1088
1065
|
trueSightLog("warning", "session", "orchestration", "feature-config fetch failed");
|
|
1089
1066
|
startTrueSightCollection();
|
|
1090
1067
|
}
|
|
1091
|
-
applyCaptureMetadataFormat(captureMetadataV2);
|
|
1092
1068
|
const disableIpify = resolveDisableIpify(serverDisableIpify);
|
|
1093
1069
|
fingerprintPromise = submitSessionFingerprint(fingerprintEnabled, {
|
|
1094
1070
|
disableIpify,
|
|
@@ -1153,7 +1129,6 @@ async function submitSessionFingerprint(enabled, options, settled, skipReason) {
|
|
|
1153
1129
|
const isCurrent = () => fingerprintSettled === settled;
|
|
1154
1130
|
const token = getToken();
|
|
1155
1131
|
const startedAtMs = getTimestamp();
|
|
1156
|
-
const deadlineMs = startedAtMs + DEVICE_HASH_WAIT_MS;
|
|
1157
1132
|
let outcomeLogged = false;
|
|
1158
1133
|
const logOutcome = (outcome) => {
|
|
1159
1134
|
if (!outcomeLogged) {
|
|
@@ -1162,7 +1137,7 @@ async function submitSessionFingerprint(enabled, options, settled, skipReason) {
|
|
|
1162
1137
|
}
|
|
1163
1138
|
};
|
|
1164
1139
|
const getDeviceHash = !skipReason && token ? async () => {
|
|
1165
|
-
const deviceHash = await incodeDeviceHashWaiter.waitFor(token
|
|
1140
|
+
const deviceHash = await incodeDeviceHashWaiter.waitFor(token);
|
|
1166
1141
|
logOutcome(`${deviceHash ? "sent" : "missing"} waitMs=${getTimestamp() - startedAtMs}`);
|
|
1167
1142
|
return deviceHash;
|
|
1168
1143
|
} : void 0;
|
|
@@ -1214,7 +1189,7 @@ function getFingerprintEnabled() {
|
|
|
1214
1189
|
* Useful for testing or when starting a new session.
|
|
1215
1190
|
*/
|
|
1216
1191
|
function resetSessionInit() {
|
|
1217
|
-
|
|
1192
|
+
resetModuleDeepsightConfig();
|
|
1218
1193
|
fingerprintSignalsReporter.resetSession();
|
|
1219
1194
|
incodeDeviceHashWaiter.reset();
|
|
1220
1195
|
sessionInitialized = false;
|
|
@@ -1229,4 +1204,4 @@ function resetSessionInit() {
|
|
|
1229
1204
|
resetDeviceStatsQueue();
|
|
1230
1205
|
}
|
|
1231
1206
|
//#endregion
|
|
1232
|
-
export {
|
|
1207
|
+
export { SDK_PLATFORM as C, fingerprintSignalsReporter as S, isBrowserSimulation as _, resetSessionInit as a, IpifyProvider as b, setClientIpLookupEnabled as c, whenSessionFingerprintSettled as d, getStandaloneFlowPolicy as f, setStandaloneFlowPolicy as g, resolveStandaloneFlowPolicy as h, initializeSession as i, setClientWasmConfig as l, resetStandaloneFlowPolicy as m, getFingerprintEnabled as n, setClientFingerprintEnabled as o, registerFlowPreloader as p, getSessionFingerprintResult as r, setClientHostingApp as s, getDisableIpify as t, setClientWasmDisabled as u, getFingerprint as v, BrowserEnvironmentProvider as x, getDeviceFingerprintInfo as y };
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as setWasmOnDeviceMode,
|
|
3
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
4
|
-
import {
|
|
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 {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
1
|
+
import { E as resolveWasmConfig, I as setWasmIntegrityObserver, _ as setWasmStartGate, x as DEFAULT_WASM_VERSION, y as setWasmDiagnosticsHandler } from "./wasmWebClient-B2P6Vlvv.esm.js";
|
|
2
|
+
import { a as setWasmOnDeviceMode, h as rearmWasmDiagnostics, m as getWasmDiagnosticsMode, n as getWarmupFacts, p as drainWasmDiagnostics, s as warmupWasm } from "./warmup-BN8dG2KX.esm.js";
|
|
3
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-DVFDFlIL.esm.js";
|
|
4
|
+
import { b as resetAnalyticsBatcher, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./types-CBQN04Rh.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-BNxrW8xK.esm.js";
|
|
6
|
+
import { i as createAnalyticsBatchingService, r as resetExperimentAssignments } from "./events-ChMS-UzR.esm.js";
|
|
7
|
+
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-BwyLhIAo.esm.js";
|
|
8
|
+
import "./trueSight-BymJD5cW.esm.js";
|
|
9
|
+
import { S as fingerprintSignalsReporter, a as resetSessionInit, c as setClientIpLookupEnabled, g as setStandaloneFlowPolicy, h as resolveStandaloneFlowPolicy, i as initializeSession, l as setClientWasmConfig, m as resetStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as registerFlowPreloader, s as setClientHostingApp, u as setClientWasmDisabled, x as BrowserEnvironmentProvider } from "./sessionInitializer-BT_CmYcX.esm.js";
|
|
9
10
|
import { t as resolveLocalStorage } from "./safeStorage-UxDrnjwa.esm.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { i as
|
|
11
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
12
|
+
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-BlscKbeV.esm.js";
|
|
13
|
+
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-CrqhpKkP.esm.js";
|
|
14
|
+
import { a as isTRIStarted, c as resetSdkOwnedTRI, i as initializeTRI, s as readTRIFpSignals, t as addTRIFpSignals } from "./tri-BD9z6z0w.esm.js";
|
|
15
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-Bzq3piUR.esm.js";
|
|
14
16
|
//#region ../infra/src/wasm/wasmRuntimeProfile.ts
|
|
15
17
|
/**
|
|
16
18
|
* The WASM facts TrueSight reports as `session.webProfile.wasm`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as WasmPipeline, i as WasmModuleConfig, n as WasmModelsConfig, t as WarmupConfig } from "./warmup-
|
|
2
|
-
import { c as TransactionalRiskIntelligenceSetupConfig } from "./index-
|
|
1
|
+
import { c as WasmPipeline, i as WasmModuleConfig, n as WasmModelsConfig, t as WarmupConfig } from "./warmup-SWu5L7cW.js";
|
|
2
|
+
import { c as TransactionalRiskIntelligenceSetupConfig } from "./index-CNck5TLp.js";
|
|
3
3
|
import { c as FeatureManagementRedactedUserInfo } from "./IFeatureManagementCapability-De8wpbGh.js";
|
|
4
4
|
//#region src/internal/environment/environment.d.ts
|
|
5
5
|
/**
|
|
@@ -398,8 +398,9 @@ type FeatureManagementSetupOptions = {
|
|
|
398
398
|
* Avoid putting PII or secrets in these values — they reach the
|
|
399
399
|
* feature-management backend's logs as-is.
|
|
400
400
|
*
|
|
401
|
-
* `
|
|
402
|
-
*
|
|
401
|
+
* `sdk_name` and `sdk_version` are reserved keys — the SDK always sets
|
|
402
|
+
* them (`'web_v2'` and its own published version), overwriting
|
|
403
|
+
* any value you supply here.
|
|
403
404
|
*/
|
|
404
405
|
custom?: Record<string, unknown>;
|
|
405
406
|
/**
|
|
@@ -407,7 +408,7 @@ type FeatureManagementSetupOptions = {
|
|
|
407
408
|
* onboarding web app), mapped to Statsig's first-class `appVersion` user
|
|
408
409
|
* field. This unlocks native version-comparator targeting (`>=`,
|
|
409
410
|
* `between`, ...) in the Statsig console, independent of the SDK's own
|
|
410
|
-
* version (always sent as `custom.
|
|
411
|
+
* version (always sent as `custom.sdk_version`). Leave unset unless you
|
|
411
412
|
* are the host application and want to target by your own release.
|
|
412
413
|
*/
|
|
413
414
|
appVersion?: string;
|
package/dist/signature.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createSignatureManagerFromActor, c as SignatureConfig, i as createSignatureManager, n as SignatureManager, o as SignatureActor, r as SignatureState, s as signatureMachine, t as SignatureCaptureState } from "./signatureManager-
|
|
1
|
+
import { a as createSignatureManagerFromActor, c as SignatureConfig, i as createSignatureManager, n as SignatureManager, o as SignatureActor, r as SignatureState, s as signatureMachine, t as SignatureCaptureState } from "./signatureManager-daT_8fj_.js";
|
|
2
2
|
export { type SignatureActor, type SignatureCaptureState, type SignatureConfig, type SignatureManager, type SignatureState, createSignatureManager, createSignatureManagerFromActor, signatureMachine };
|
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-B-QG7fk0.esm.js";
|
|
2
|
+
import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-B737Gkvk.esm.js";
|
|
3
3
|
export { createSignatureManager, createSignatureManagerFromActor, signatureMachine };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-ChMS-UzR.esm.js";
|
|
2
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
+
import { t as signatureMachine } from "./signatureStateMachine-B-QG7fk0.esm.js";
|
|
5
7
|
//#region src/modules/signature/signatureActor.ts
|
|
6
8
|
function createSignatureActor(options) {
|
|
7
9
|
return createActor(signatureMachine, { input: { config: options.config } }).start();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ActorRefFrom } from "./spawn-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
4
|
//#region src/modules/signature/types.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Configuration options for Signature.
|
package/dist/{signatureStateMachine-DFbbbFwg.esm.js → signatureStateMachine-B-QG7fk0.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
3
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
2
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
4
|
//#region src/modules/signature/signatureServices.ts
|
|
5
5
|
/**
|
|
6
6
|
* Uploads a signature image to the Omni API.
|
|
@@ -11,13 +11,11 @@ async function addSignature(params, signal) {
|
|
|
11
11
|
const { image, type, sendBase64 = false } = params;
|
|
12
12
|
const url = sendBase64 ? endpoints.addSignatureV2 : endpoints.addSignature;
|
|
13
13
|
const body = sendBase64 ? { base64Image: image } : image;
|
|
14
|
-
|
|
14
|
+
return (await api.post(url, body, {
|
|
15
15
|
signal,
|
|
16
16
|
headers: { "Content-Type": sendBase64 ? "application/json" : "image/jpeg" },
|
|
17
17
|
query: { type }
|
|
18
|
-
});
|
|
19
|
-
if (!res.ok) throw new Error(`POST ${url} failed: ${res.status} ${res.statusText}`);
|
|
20
|
-
return res.data;
|
|
18
|
+
})).data;
|
|
21
19
|
}
|
|
22
20
|
//#endregion
|
|
23
21
|
//#region src/modules/signature/signatureStateMachine.ts
|
|
@@ -1438,4 +1438,4 @@ type Spawner<TActor extends ProvidedActor> = IsLiteralString<TActor['src']> exte
|
|
|
1438
1438
|
syncSnapshot?: boolean;
|
|
1439
1439
|
} & (TLogic extends AnyActorLogic ? { [K in RequiredLogicInput<TLogic>]: unknown; } : {})], IsNotNever<TLogic extends AnyActorLogic ? RequiredLogicInput<TLogic> : never>>) => TLogic extends AnyActorLogic ? ActorRefFromLogic<TLogic> : AnyActorRef;
|
|
1440
1440
|
//#endregion
|
|
1441
|
-
export {
|
|
1441
|
+
export { MachineSnapshot as A, Snapshot as C, createActor as D, Actor as E, AnyActorSystem as M, PromiseActorLogic as O, RequiredLogicInput as S, Values as T, IsNotNever as _, ActorRefFromLogic as a, NonReducibleUnknown as b, AnyEventObject as c, DoneActorEvent as d, DoneStateEvent as f, InputFrom as g, GetConcreteByKey as h, ActorRefFrom as i, StateMachine as j, fromPromise as k, AnyStateMachine as l, EventObject as m, ActorLogic as n, AnyActorLogic as o, ErrorActorEvent as p, ActorRef as r, AnyActorRef as s, ActionFunction as t, ConditionalRequired as u, MachineContext as v, StateValue as w, RequiredActorOptions as x, MetaObject as y };
|
|
@@ -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-BNxrW8xK.esm.js";
|
|
2
2
|
//#region src/modules/stats/statsServices.ts
|
|
3
3
|
const deviceStatsQueue = [];
|
|
4
4
|
async function postDeviceStatsNow(stats) {
|