@incodetech/core 2.4.1-agentic.11 → 2.4.1-agentic.12
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/{CameraCompositor-ppyMYVoY.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
- package/dist/{FaceDetectionProvider-2NzWDbV8.esm.js → FaceDetectionProvider-WtuJ6QBK.esm.js} +16 -11
- package/dist/{IWasmUtilCapability-BRn0wz8v.d.ts → IWasmUtilCapability-XcOtT1TP.d.ts} +5 -4
- package/dist/{MultipartRecordingProvider-CduV32Qa.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-ixfy84ys.d.ts → StreamCanvasCapture-BnBfA6fb.d.ts} +24 -2
- package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
- package/dist/{WasmUtilProvider-DdhAHHw4.esm.js → WasmUtilProvider-D5RMElzw.esm.js} +7 -0
- package/dist/{WorkerEncoderRecordingProvider-CsDED9UU.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
- package/dist/{addressSearch-Rxm1K67A.esm.js → addressSearch-BzAy6lhp.esm.js} +2 -4
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-DKNOi9-z.esm.js → antifraudManager-Bw5nw5fh.esm.js} +3 -3
- package/dist/{antifraudStateMachine-BJ6PmCsw.esm.js → antifraudStateMachine-kOfsaAuT.esm.js} +2 -4
- package/dist/{api-CZpuJuZl.esm.js → api-DSZSaaWr.esm.js} +2 -0
- package/dist/{apiError-BamZ815u.esm.js → apiError-BDuL1wTs.esm.js} +1 -1
- package/dist/{attemptCarry-BecGGZK8.esm.js → attemptCarry-QFQkA3na.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-yBVGiIf_.esm.js → authenticationManager-B0SioAdd.esm.js} +6 -6
- package/dist/{authenticationManager-DRaugLgH.d.ts → authenticationManager-eYcurNiS.d.ts} +1 -1
- package/dist/{authenticationStateMachine-DPqTOJPp.esm.js → authenticationStateMachine-n1OrhPTv.esm.js} +3 -3
- package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
- package/dist/{browser-pQZA35G2-DxIBykpe.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
- package/dist/calendarDate-DcqGuEht.esm.js +35 -0
- 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 +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-Dxl9UwR0.esm.js → certificateIssuanceManager-DPT8E9zV.esm.js} +3 -3
- package/dist/{certificateIssuanceStateMachine-CM4q71h1.esm.js → certificateIssuanceStateMachine-BwDb3ezx.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-B2F_VeAo.d.ts → consentManager-B0YKqYtZ.d.ts} +9 -9
- package/dist/{consentManager-BPocwpm2.esm.js → consentManager-DRMJ3O4r.esm.js} +3 -3
- package/dist/{consentStateMachine-DgiIcT9q.esm.js → consentStateMachine-Br0JbW7k.esm.js} +4 -7
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-BfA29Aji.esm.js → crossDocumentDataMatchManager-BIQ-SYcR.esm.js} +3 -4
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-CbvBDoE1.esm.js → curpValidationManager-BKUDQ55W.esm.js} +3 -3
- package/dist/{curpValidationManager-Ci2iVuog.d.ts → curpValidationManager-DgUZySoq.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-BQ8XK2Y3.esm.js → curpValidationStateMachine-BwUBkyyi.esm.js} +13 -14
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-BRqSCR9R.esm.js → customFieldsManager-CPhONu5i.esm.js} +12 -16
- package/dist/{customWatchlistManager-Bd1ooIDB.esm.js → customWatchlistManager-cN57usIW.esm.js} +3 -3
- package/dist/{customWatchlistStateMachine-r8nGhyo1.esm.js → customWatchlistStateMachine-C1Xq1ugl.esm.js} +2 -4
- package/dist/{deepsightLoader-CEY2mSPM.esm.js → deepsightLoader-ClCQCdeL.esm.js} +5 -5
- package/dist/{desktopCameraElection-enVPfRsQ.esm.js → desktopCameraElection-btFONYx6.esm.js} +22 -10
- package/dist/device.d.ts +3 -3
- package/dist/device.esm.js +15 -15
- 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-C11k5BO-.esm.js → documentCaptureManager-5I3lKDVW.esm.js} +3 -3
- package/dist/{documentCaptureManager-BZBmcOKI.d.ts → documentCaptureManager-BkaPpoKy.d.ts} +1 -1
- package/dist/{documentCaptureStateMachine-g0gfL0_1.esm.js → documentCaptureStateMachine-jtQHasPA.esm.js} +7 -10
- package/dist/documentSignatureStateMachine-DKtU0H-F.esm.js +218 -0
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-BmfCZ2zV.esm.js → dynamicFormsManager-B6Bv32wU.esm.js} +3 -3
- package/dist/{dynamicFormsStateMachine-B-eYytau.esm.js → dynamicFormsStateMachine-Kauq2oB-.esm.js} +10 -11
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BPaMfbgw.esm.js → ekybManager-wi135kG-.esm.js} +3 -3
- package/dist/{ekybStateMachine-C_lEw4I7.esm.js → ekybStateMachine-Vjb6_mFt.esm.js} +4 -6
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-nRT0rxei.esm.js → ekycManager-DWCL912J.esm.js} +3 -3
- package/dist/{ekycPrefillManager-DOTl3Y2w.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +4 -4
- package/dist/{ekycPrefillManager-CCtbmrFd.esm.js → ekycPrefillManager-C27Cu6rn.esm.js} +1 -1
- package/dist/{ekycPrefillStateMachine-XpxgCAoC.esm.js → ekycPrefillStateMachine-DqXvupSw.esm.js} +4 -6
- package/dist/{ekycRules-DXP2hqVw.esm.js → ekycRules-1hyjJ6bw.esm.js} +7 -4
- package/dist/{ekycStateMachine-nwJRel2s.esm.js → ekycStateMachine-DjiGyQtm.esm.js} +149 -13
- package/dist/{ekycUtils-FcqA6oU4.esm.js → ekycUtils-D9ui9Ztp.esm.js} +5 -0
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-M2O2VDks.esm.js → electronicSignatureManager-BHnxFx7u.esm.js} +8 -16
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-Co4jarT1.esm.js → emailManager-CfvR6pQN.esm.js} +3 -3
- package/dist/{emailStateMachine-CTEaYncs.esm.js → emailStateMachine-C4FouMzc.esm.js} +3 -5
- package/dist/{events-CP3yOzAl.esm.js → events-CsPmTidH.esm.js} +2 -2
- package/dist/events.d.ts +1 -0
- package/dist/events.esm.js +2 -2
- package/dist/extensibility.d.ts +14 -14
- package/dist/extensibility.esm.js +36 -36
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-3Or5qfbA.esm.js → faceCaptureManagerFactory-BjVIUTMM.esm.js} +5 -5
- package/dist/{faceCaptureManagerFactory-CRGajjZ4.d.ts → faceCaptureManagerFactory-DhDPxxp-.d.ts} +12 -6
- package/dist/{faceCaptureSetup-Cf87i0rT.esm.js → faceCaptureSetup-q33e6ah9.esm.js} +26 -15
- package/dist/{faceMatchManager-CGmNGbov.esm.js → faceMatchManager-CsPFaja4.esm.js} +3 -3
- package/dist/{faceMatchStateMachine-BuHt7kec.esm.js → faceMatchStateMachine-Co2S7iN8.esm.js} +8 -19
- package/dist/{feature-management-DG016L6E.esm.js → feature-management-BhRKAG--.esm.js} +3 -2
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-VgCU4X96.esm.js → fieldComparisonManager-Chn80m_n.esm.js} +4 -6
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-DOLq45ph.esm.js → fiscalQrManager-CpX6MOy_.esm.js} +6 -7
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +6 -6
- package/dist/flow.esm.js +5 -5
- package/dist/{flowCompletionService-BpeAbbXc.esm.js → flowCompletionService-E_6ChYsV.esm.js} +2 -2
- package/dist/{flowServices-rDg1bAMs.esm.js → flowServices-C23o7MqO.esm.js} +10 -9
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-T8m4lqvF.esm.js → geolocationManager-dgMVi0ed.esm.js} +3 -3
- package/dist/{geolocationStateMachine-NWmA1Dtn.esm.js → geolocationStateMachine-CCVd9xGh.esm.js} +6 -8
- package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-6JQQkzha.esm.js → governmentValidationManager-D2KGYDws.esm.js} +3 -3
- package/dist/{governmentValidationStateMachine-wBunpfQ9.esm.js → governmentValidationStateMachine-DRG-5jwQ.esm.js} +2 -4
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +2 -2
- 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 +2 -2
- package/dist/id-selfie-flow.esm.js +10 -10
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-Cjesf5i9.esm.js → idCaptureDefaults-BivjtJka.esm.js} +1 -1
- package/dist/{idCaptureManager-5-ReVgbB.esm.js → idCaptureManager-B_deOVCC.esm.js} +12 -14
- package/dist/{idCaptureManager-Cqx2y_fC.d.ts → idCaptureManager-DzAMWmRO.d.ts} +12 -5
- package/dist/{idCaptureServices-exB6I9lV.esm.js → idCaptureServices-BFCsusKB.esm.js} +17 -25
- package/dist/{idCaptureStateMachine-DQ14d3GR.esm.js → idCaptureStateMachine--CMATkG9.esm.js} +49 -56
- package/dist/{idOcrManager-im7VfJQi.esm.js → idOcrManager-C-_bzBSX.esm.js} +3 -3
- package/dist/{idOcrManager-C0C7lFGd.d.ts → idOcrManager-DflRx-_u.d.ts} +1 -1
- package/dist/{idOcrStateMachine-B832arAl.esm.js → idOcrStateMachine-BNtBkAXC.esm.js} +10 -7
- package/dist/{idVerificationManager-PMGM4hXY.esm.js → idVerificationManager-CdvGdtg2.esm.js} +3 -3
- package/dist/{idVerificationStateMachine-DeeugC00.esm.js → idVerificationStateMachine-mozw0CIg.esm.js} +2 -4
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.esm.js +3 -4
- package/dist/{identityReuseManager-CjFZ7WRa.esm.js → identityReuseManager-Z1Re4UGd.esm.js} +3 -3
- package/dist/{identityReuseStateMachine-CLFjPp13.esm.js → identityReuseStateMachine-C_3fSFCw.esm.js} +3 -7
- package/dist/{index-DxYNO94y.d.ts → index-C0WIMlJE.d.ts} +1 -1
- package/dist/{index-DM43R87x.d.ts → index-CNck5TLp.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-lXP41N7b.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-CZfdCkLC.esm.js → kybChecksManager-D-mVF14T.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-DkWxSU4L.esm.js → kybChecksStateMachine-BARZh9GN.esm.js} +5 -9
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Dh3pBhOe.esm.js → mandatoryConsentManager-CKzzbbRe.esm.js} +3 -3
- package/dist/{mandatoryConsentManager-Bh1asNJh.d.ts → mandatoryConsentManager-D6tBmPDy.d.ts} +8 -8
- package/dist/{mandatoryConsentStateMachine-BjuI72HZ.esm.js → mandatoryConsentStateMachine-DpK7fg3E.esm.js} +4 -7
- package/dist/{mediaRecorderOptions-g1TwTlhd.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +1 -1
- package/dist/{multipartRecordingService-WgK8ieRI.esm.js → multipartRecordingService-CEtaAPz4.esm.js} +2 -2
- package/dist/{permissionGuards-D-4_VU7-.esm.js → permissionGuards-BJIaHxvI.esm.js} +1 -1
- package/dist/{permissionServices-DpccEnzE.esm.js → permissionServices-6Mdq1hDk.esm.js} +8 -5
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-rA7updqF.esm.js → phoneManager-D8-l6-0y.esm.js} +3 -3
- package/dist/{phoneServices-CFXcwCFr.esm.js → phoneServices-C9lFIuCM.esm.js} +3 -7
- package/dist/{phoneStateMachine-DKdY2Scx.esm.js → phoneStateMachine-CGLBgJJR.esm.js} +2 -2
- package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
- package/dist/{processFaceMatch-B_DkDTE5.esm.js → processFaceMatch-B1Mhqkep.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-DxiwS8TV.esm.js → recordingService-CLGnDCDl.esm.js} +7 -6
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-DTB_pWuS.esm.js → redirectToMobileManager-Djb_daci.esm.js} +3 -3
- package/dist/{redirectToMobileStateMachine-nP9DM01_.esm.js → redirectToMobileStateMachine-BCyQFlpn.esm.js} +7 -17
- package/dist/{runChildModule-CXLcOcXN.esm.js → runChildModule-DF2c6TxC.esm.js} +2 -2
- package/dist/{sdkVersion-fqxsdqFZ.esm.js → sdkVersion-B5_kVegT.esm.js} +1 -1
- package/dist/selfie.d.ts +5 -5
- package/dist/selfie.esm.js +11 -11
- package/dist/{selfieErrorUtils-MOfYdGPz.esm.js → selfieErrorUtils-BVuv5qO7.esm.js} +1 -1
- package/dist/{selfieManager-DihwheJ6.d.ts → selfieManager-C5a6Fw6W.d.ts} +1 -1
- package/dist/{selfieManager-Dq8tIqGd.esm.js → selfieManager-Dnb5h3qV.esm.js} +6 -6
- package/dist/{selfieStateMachine-BZVDQB8R.esm.js → selfieStateMachine-BT69FLFb.esm.js} +3 -3
- package/dist/{session-C7x_iJ-p.esm.js → session-OCc4b-Iv.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-k-hKIBg8.esm.js → sessionInitializer-BUUpdBy6.esm.js} +11 -13
- package/dist/{setup-CpXbdA1X.d.ts → setup-BpD7lYSf.d.ts} +5 -4
- package/dist/{setup-BRbhjHiU.esm.js → setup-CJMohzTE.esm.js} +10 -10
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-BgAja97K.esm.js → signatureManager-B6dRieBV.esm.js} +3 -3
- package/dist/{signatureStateMachine-CVPmvU2p.esm.js → signatureStateMachine-DSW5-ZO0.esm.js} +3 -5
- package/dist/{stats-DoByUnTa.esm.js → stats-VqHbD5rn.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{tri-CI2exudk.esm.js → tri-B5Yh5glk.esm.js} +2 -2
- 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/{trueSightService-DhW2O8mB.esm.js → trueSightService-D9D2IdEj.esm.js} +6 -7
- package/dist/trust-graph.esm.js +2 -2
- package/dist/{types-Ddc4Tr_f.d.ts → types-B2DGXHe6.d.ts} +2 -0
- package/dist/{types-Cpdum4vi.d.ts → types-BBHnkH6S.d.ts} +4 -4
- package/dist/types-BNkzXOXE.d.ts +45 -0
- package/dist/{types-DJPU3W2M.d.ts → types-BkWUNheX.d.ts} +1 -1
- package/dist/types-C2uJrJrS.d.ts +6 -0
- package/dist/{types-DYYMdAGv.esm.js → types-CBQN04Rh.esm.js} +2 -1
- package/dist/{types-CyNndVAT.d.ts → types-CaVUb1DL.d.ts} +1 -1
- package/dist/{types-DFP7eSle.d.ts → types-Crg7oL-l.d.ts} +1 -1
- package/dist/{types-9wlf1-GE.d.ts → types-x5MQKskR.d.ts} +4 -2
- package/dist/video-selfie.d.ts +2 -2
- package/dist/video-selfie.esm.js +9 -9
- package/dist/{videoSelfieCameraWarmer-YwO_uP-b.esm.js → videoSelfieCameraWarmer-CYEHPKK6.esm.js} +9 -9
- package/dist/{videoSelfieStepDetector-DRrh4P0A.d.ts → videoSelfieStepDetector-DGXi_TXk.d.ts} +18 -8
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/{wasmDsFlagSync-D_6e8W62.esm.js → wasmDsFlagSync-BNttW5Sm.esm.js} +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-BH6M4kqA.esm.js → watchlistForBusinessManager-CfLnsL8p.esm.js} +3 -3
- package/dist/{watchlistForBusinessStateMachine-BMWm5mcP.esm.js → watchlistForBusinessStateMachine-EzlC_4I4.esm.js} +9 -6
- package/dist/{watchlistManager-BDaVjzLW.esm.js → watchlistManager-CGXbemnp.esm.js} +3 -3
- package/dist/{watchlistStateMachine-Cx-6QAvu.esm.js → watchlistStateMachine-CsNEmiXL.esm.js} +2 -4
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +40 -38
- package/package.json +6 -1
- package/dist/camera-9wWD-pwg.d.ts +0 -4
- package/dist/tri.esm-CxLWmTZk.esm.js +0 -2287
- package/dist/types-CE1jkHw3.d.ts +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
-
import { r as getWorkerRecordingProfile } from "./mediaRecorderOptions-
|
|
2
|
+
import { r as getWorkerRecordingProfile } from "./mediaRecorderOptions-Di_V9TnZ.esm.js";
|
|
3
3
|
//#region ../infra/src/media/cameraCompositorWorker.ts
|
|
4
4
|
/**
|
|
5
5
|
* Whether the worker transport is available here. Every probe must hold;
|
|
@@ -73,6 +73,7 @@ function cameraCompositorWorkerMain(scope) {
|
|
|
73
73
|
let videoEncoder = null;
|
|
74
74
|
let audioEncoder = null;
|
|
75
75
|
let hasAudioSource = false;
|
|
76
|
+
let activeAudioReader = null;
|
|
76
77
|
let audioWanted = false;
|
|
77
78
|
let audioFormat = null;
|
|
78
79
|
let audioInHeader = false;
|
|
@@ -450,14 +451,20 @@ function cameraCompositorWorkerMain(scope) {
|
|
|
450
451
|
};
|
|
451
452
|
const pumpAudio = async (readable) => {
|
|
452
453
|
const reader = readable.getReader();
|
|
454
|
+
activeAudioReader = reader;
|
|
453
455
|
try {
|
|
454
456
|
for (;;) {
|
|
455
457
|
const { value, done } = await reader.read();
|
|
456
458
|
if (done) return;
|
|
459
|
+
if (reader !== activeAudioReader) {
|
|
460
|
+
value.close();
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
457
463
|
if (paused || recording !== "on") value.close();
|
|
458
464
|
else encodeAudio(value);
|
|
459
465
|
}
|
|
460
466
|
} catch (error) {
|
|
467
|
+
if (reader !== activeAudioReader) return;
|
|
461
468
|
audioWanted = false;
|
|
462
469
|
scope.postMessage({
|
|
463
470
|
type: "record-error",
|
|
@@ -549,6 +556,15 @@ function cameraCompositorWorkerMain(scope) {
|
|
|
549
556
|
case "source":
|
|
550
557
|
switchSource(message.readable);
|
|
551
558
|
break;
|
|
559
|
+
case "audio": {
|
|
560
|
+
if (!encodeConfig || !hasAudioSource) break;
|
|
561
|
+
const previous = activeAudioReader;
|
|
562
|
+
activeAudioReader = null;
|
|
563
|
+
previous?.cancel().catch(() => {});
|
|
564
|
+
audio.offsetUs = null;
|
|
565
|
+
pumpAudio(message.readable);
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
552
568
|
case "pause":
|
|
553
569
|
paused = true;
|
|
554
570
|
break;
|
|
@@ -708,6 +724,44 @@ var CameraCompositor = class {
|
|
|
708
724
|
if (previousVideoTrack) previousVideoTrack.stop();
|
|
709
725
|
}
|
|
710
726
|
/**
|
|
727
|
+
* Stops the microphone while no attempt records, so it is not held between
|
|
728
|
+
* attempts. Only the in-worker encoder can take a new microphone later
|
|
729
|
+
* (`switchAudio`); a `MediaRecorder` must keep its tracks, so there the
|
|
730
|
+
* microphone stays until `stop()`.
|
|
731
|
+
*/
|
|
732
|
+
releaseAudio() {
|
|
733
|
+
if (!this.encodesInWorker || !this.audioTrack) return;
|
|
734
|
+
this.composite?.removeTrack(this.audioTrack);
|
|
735
|
+
this.audioTrack.stop();
|
|
736
|
+
this.audioTrack = null;
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* Gives the in-worker encoder the microphone of `stream` after
|
|
740
|
+
* `releaseAudio`. Otherwise the composite keeps its microphone and the audio
|
|
741
|
+
* tracks of `stream` are stopped, because nothing else would end them.
|
|
742
|
+
*/
|
|
743
|
+
switchAudio(stream) {
|
|
744
|
+
const [track, ...unused] = stream.getAudioTracks();
|
|
745
|
+
for (const extra of unused) extra.stop();
|
|
746
|
+
if (!track) return;
|
|
747
|
+
if (!this.encodesInWorker || this.audioTrack || !this.composite) {
|
|
748
|
+
track.stop();
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
751
|
+
try {
|
|
752
|
+
const processor = createTrackProcessor(track);
|
|
753
|
+
this.postToWorker({
|
|
754
|
+
type: "audio",
|
|
755
|
+
readable: processor.readable
|
|
756
|
+
}, [processor.readable]);
|
|
757
|
+
} catch {
|
|
758
|
+
track.stop();
|
|
759
|
+
return;
|
|
760
|
+
}
|
|
761
|
+
this.audioTrack = track;
|
|
762
|
+
this.composite.addTrack(track);
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
711
765
|
* True when this compositor records by itself: the worker transport started
|
|
712
766
|
* with `encodeInWorker` and the browser has `VideoEncoder`. Use the
|
|
713
767
|
* `*WorkerRecording` methods instead of a `MediaRecorder` then; the
|
package/dist/{FaceDetectionProvider-2NzWDbV8.esm.js → FaceDetectionProvider-WtuJ6QBK.esm.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { l as wasmRuntime } from "./warmup-9iKKNNuW.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
3
|
-
import { r as BaseWasmProvider } from "./WasmUtilProvider-
|
|
4
|
-
import { t as api, u as endpoints } from "./api-
|
|
5
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
6
|
-
import "./sessionInitializer-
|
|
7
|
-
import { t as addDeviceStats } from "./stats-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-CJMohzTE.esm.js";
|
|
3
|
+
import { r as BaseWasmProvider } from "./WasmUtilProvider-D5RMElzw.esm.js";
|
|
4
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
5
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-D9D2IdEj.esm.js";
|
|
6
|
+
import "./sessionInitializer-BUUpdBy6.esm.js";
|
|
7
|
+
import { t as addDeviceStats } from "./stats-VqHbD5rn.esm.js";
|
|
8
8
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
9
9
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
10
|
-
import { r as hasBackCamera } from "./backCameraStream-
|
|
11
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
12
|
-
import { n as saveProcessFaceMatch } from "./processFaceMatch-
|
|
10
|
+
import { r as hasBackCamera } from "./backCameraStream-6qVHvj76.esm.js";
|
|
11
|
+
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
12
|
+
import { n as saveProcessFaceMatch } from "./processFaceMatch-B1Mhqkep.esm.js";
|
|
13
13
|
//#region src/internal/faceCapture/onDeviceFaceResults.ts
|
|
14
14
|
/**
|
|
15
15
|
* On-device still-face capture is owned by the protected camera-cycle actor.
|
|
@@ -95,7 +95,6 @@ async function uploadSelfie({ encryptedBase64Image, faceCoordinates, signal, met
|
|
|
95
95
|
signal,
|
|
96
96
|
query
|
|
97
97
|
});
|
|
98
|
-
if (!res.ok) throw new Error(`POST ${endpoints.selfie} failed: ${res.status} ${res.statusText}`);
|
|
99
98
|
if (deepsightService) addDeviceStats({
|
|
100
99
|
frontIdStatsAnalysisStatus: "",
|
|
101
100
|
backIdStatsAnalysisStatus: "",
|
|
@@ -235,7 +234,7 @@ function startDetection(params) {
|
|
|
235
234
|
};
|
|
236
235
|
}
|
|
237
236
|
async function initializeDeepsightSession(options) {
|
|
238
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
237
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-ClCQCdeL.esm.js");
|
|
239
238
|
return loadDeepsightSession({
|
|
240
239
|
ds: options.ds,
|
|
241
240
|
storage: options.storage
|
|
@@ -378,6 +377,12 @@ var FaceDetectionProvider = class extends BaseWasmProvider {
|
|
|
378
377
|
this.applyDefaults(config.autocaptureInterval ?? 0);
|
|
379
378
|
if (config.videoSelfie === true) this.setVideoSelfieMode(true);
|
|
380
379
|
}
|
|
380
|
+
/**
|
|
381
|
+
* @deprecated Unsupported since ml-wasm-kit v2.14.49-post1; scheduled for
|
|
382
|
+
* removal in 3.0.0. Calls fail deterministically without passing the canvas
|
|
383
|
+
* to native code. Use `ICameraCycleCapability.captureProtectedFrame` (the
|
|
384
|
+
* protected camera cycle's manual capture) instead.
|
|
385
|
+
*/
|
|
381
386
|
processPhoto(canvas) {
|
|
382
387
|
faceProcessingWasmApi.processPhoto(canvas);
|
|
383
388
|
}
|
|
@@ -133,10 +133,11 @@ type IWasmUtilCapability = {
|
|
|
133
133
|
getPipelineState(): string;
|
|
134
134
|
estimatePerformance(): string;
|
|
135
135
|
/**
|
|
136
|
-
* @deprecated
|
|
137
|
-
* 3.0.0. The
|
|
138
|
-
*
|
|
139
|
-
*
|
|
136
|
+
* @deprecated Always returns `false` (since SDK 2.3.0); scheduled for removal
|
|
137
|
+
* in 3.0.0. The camera-label check runs natively in the pre-capture checks of
|
|
138
|
+
* the protected camera step (`ICameraCycleCapability.startCameraCycle`), and
|
|
139
|
+
* the signed capture metadata carries its verdict. That native check is
|
|
140
|
+
* authoritative; nothing is decided from this return value.
|
|
140
141
|
*/
|
|
141
142
|
isVirtualCamera(label: string | null): boolean;
|
|
142
143
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getMultipartRecorderMimeType } from "./mediaRecorderOptions-
|
|
1
|
+
import { n as getMultipartRecorderMimeType } from "./mediaRecorderOptions-Di_V9TnZ.esm.js";
|
|
2
2
|
//#region ../infra/src/providers/browser/MultipartRecordingProvider.ts
|
|
3
3
|
/**
|
|
4
4
|
* How often `MediaRecorder` hands us buffered data (incremental blobs).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { y as IncodeCanvas } from "./createFaceAvatar-BimBTONm.js";
|
|
2
|
-
import "./IWasmUtilCapability-
|
|
3
|
-
import { t as CameraStream } from "./camera-
|
|
2
|
+
import "./IWasmUtilCapability-XcOtT1TP.js";
|
|
3
|
+
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
4
4
|
//#region ../infra/src/capabilities/IMotionSensorCapability.d.ts
|
|
5
5
|
type MotionStatus = 'PASS' | 'FAIL' | 'UNCLEAR';
|
|
6
6
|
type MotionPermissionState = 'granted' | 'denied' | 'not-required';
|
|
@@ -9,6 +9,13 @@ type MotionPermissionState = 'granted' | 'denied' | 'not-required';
|
|
|
9
9
|
type MetadataService = {
|
|
10
10
|
initialize(sdkVersion: string, disableIpify?: boolean, disableFingerprint?: boolean): Promise<void>;
|
|
11
11
|
updateCameraInfo(videoTrack: MediaStreamTrack): void;
|
|
12
|
+
/**
|
|
13
|
+
* Asks the deprecated `isVirtualCamera()` shim about the track's label (or,
|
|
14
|
+
* with no track, about every video device label). Always resolves `false`:
|
|
15
|
+
* the shim has returned `false` since SDK 2.3.0. The camera-label check that
|
|
16
|
+
* counts runs natively in the WASM pre-capture checks of the protected
|
|
17
|
+
* camera step, and its verdict travels in the signed capture metadata.
|
|
18
|
+
*/
|
|
12
19
|
checkForVirtualCameraByLabel(videoTrack: MediaStreamTrack | null): Promise<boolean>;
|
|
13
20
|
analyzeFrame(imageData: ImageData): Promise<void>;
|
|
14
21
|
setMotionStatus(status: string): void;
|
|
@@ -55,6 +62,14 @@ type DeepsightService = {
|
|
|
55
62
|
requestMotionPermission(): Promise<'granted' | 'denied' | 'not-required'>;
|
|
56
63
|
startMotionSensors(): Promise<void>;
|
|
57
64
|
stopMotionSensors(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Records the track's label and settings for the capture metadata, then
|
|
67
|
+
* resolves the JavaScript label verdict, which is always `false`: the
|
|
68
|
+
* `isVirtualCamera()` shim behind it has returned `false` since SDK 2.3.0.
|
|
69
|
+
* The camera-label check that counts runs natively in the WASM pre-capture
|
|
70
|
+
* checks of the protected camera step, and its verdict travels in the
|
|
71
|
+
* signed capture metadata.
|
|
72
|
+
*/
|
|
58
73
|
checkVirtualCamera(videoTrack: MediaStreamTrack): Promise<boolean>;
|
|
59
74
|
performVirtualCameraCheck(sessionToken: string | null, source: FrameSource): Promise<void>;
|
|
60
75
|
/**
|
|
@@ -107,6 +122,7 @@ declare class StreamCanvasCapture {
|
|
|
107
122
|
private lastTickTimeMs;
|
|
108
123
|
private hasFrame;
|
|
109
124
|
private disposed;
|
|
125
|
+
private lastPlayAttemptMs;
|
|
110
126
|
private eventTarget;
|
|
111
127
|
constructor(stream: CameraStream, options?: StreamCanvasCaptureOptions);
|
|
112
128
|
addEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -124,6 +140,12 @@ declare class StreamCanvasCapture {
|
|
|
124
140
|
*/
|
|
125
141
|
dispose(): void;
|
|
126
142
|
private rafLoop;
|
|
143
|
+
/**
|
|
144
|
+
* Starts (or restarts) playback of the hidden video. Rejections are expected
|
|
145
|
+
* on Safari 17 and earlier and are retried from {@link tick}, at most every
|
|
146
|
+
* {@link PLAY_RETRY_INTERVAL_MS}, while the video stays paused.
|
|
147
|
+
*/
|
|
148
|
+
private ensurePlaying;
|
|
127
149
|
private tick;
|
|
128
150
|
}
|
|
129
151
|
//#endregion
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
2
2
|
//#region ../infra/src/media/StreamCanvasCapture.ts
|
|
3
|
+
/** How often a paused capture video asks to play again. */
|
|
4
|
+
const PLAY_RETRY_INTERVAL_MS = 500;
|
|
3
5
|
var StreamCanvasCapture = class {
|
|
4
6
|
constructor(stream, options) {
|
|
5
7
|
this.hasFrame = false;
|
|
@@ -24,10 +26,9 @@ var StreamCanvasCapture = class {
|
|
|
24
26
|
this.canvas.width = this.video.videoWidth;
|
|
25
27
|
this.canvas.height = this.video.videoHeight;
|
|
26
28
|
}
|
|
29
|
+
this.ensurePlaying();
|
|
27
30
|
});
|
|
28
|
-
|
|
29
|
-
this.video.play();
|
|
30
|
-
} catch {}
|
|
31
|
+
this.ensurePlaying();
|
|
31
32
|
if (options?.continuous !== false) this.rafLoop(intervalMs);
|
|
32
33
|
}
|
|
33
34
|
addEventListener(type, listener, options) {
|
|
@@ -94,8 +95,22 @@ var StreamCanvasCapture = class {
|
|
|
94
95
|
};
|
|
95
96
|
this.rafId = window.requestAnimationFrame(loop);
|
|
96
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* Starts (or restarts) playback of the hidden video. Rejections are expected
|
|
100
|
+
* on Safari 17 and earlier and are retried from {@link tick}, at most every
|
|
101
|
+
* {@link PLAY_RETRY_INTERVAL_MS}, while the video stays paused.
|
|
102
|
+
*/
|
|
103
|
+
ensurePlaying() {
|
|
104
|
+
if (this.disposed || !this.video.paused) return;
|
|
105
|
+
this.lastPlayAttemptMs = Date.now();
|
|
106
|
+
try {
|
|
107
|
+
const result = this.video.play();
|
|
108
|
+
if (result && typeof result.catch === "function") result.catch(() => {});
|
|
109
|
+
} catch {}
|
|
110
|
+
}
|
|
97
111
|
tick() {
|
|
98
112
|
if (!this.ctx) return;
|
|
113
|
+
if (this.video.paused && this.video.readyState >= HTMLMediaElement.HAVE_METADATA && (this.lastPlayAttemptMs === void 0 || Date.now() - this.lastPlayAttemptMs >= PLAY_RETRY_INTERVAL_MS)) this.ensurePlaying();
|
|
99
114
|
if (this.video.readyState < HTMLMediaElement.HAVE_CURRENT_DATA) return;
|
|
100
115
|
const videoWidth = this.video.videoWidth;
|
|
101
116
|
const videoHeight = this.video.videoHeight;
|
|
@@ -529,6 +529,13 @@ var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
|
|
|
529
529
|
this.ensureInitialized();
|
|
530
530
|
return utilityWasmApi.estimatePerformance();
|
|
531
531
|
}
|
|
532
|
+
/**
|
|
533
|
+
* @deprecated Always returns `false` (since SDK 2.3.0); scheduled for removal
|
|
534
|
+
* in 3.0.0. The camera-label check runs natively in the pre-capture checks of
|
|
535
|
+
* the protected camera step (`ICameraCycleCapability.startCameraCycle`), and
|
|
536
|
+
* the signed capture metadata carries its verdict. That native check is
|
|
537
|
+
* authoritative; nothing is decided from this return value.
|
|
538
|
+
*/
|
|
532
539
|
isVirtualCamera(label) {
|
|
533
540
|
return utilityWasmApi.isVirtualCamera(label);
|
|
534
541
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
-
import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-
|
|
2
|
+
import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-BtMQZEbg.esm.js";
|
|
3
3
|
//#region ../infra/src/providers/browser/WorkerEncoderRecordingProvider.ts
|
|
4
4
|
var WorkerEncoderRecordingProvider_exports = /* @__PURE__ */ __exportAll({ WorkerEncoderRecordingProvider: () => WorkerEncoderRecordingProvider });
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
3
|
import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
4
|
//#region src/internal/formDefinitionsRollout/formDefinitionsRollout.ts
|
|
@@ -27,9 +27,7 @@ function isFormDefinitionsEnabled() {
|
|
|
27
27
|
//#region src/shared/addressSearch.ts
|
|
28
28
|
/** Searches for address suggestions via the address autocomplete API. */
|
|
29
29
|
async function searchAddress(query, signal) {
|
|
30
|
-
|
|
31
|
-
if (!res.ok) throw new Error(`POST ${endpoints.addressAutocomplete} failed: ${res.status} ${res.statusText}`);
|
|
32
|
-
return { apiResponse: { items: (res.data.apiResponse?.items ?? []).map((item, i) => {
|
|
30
|
+
return { apiResponse: { items: ((await api.post(endpoints.addressAutocomplete, { search: query }, { signal })).data.apiResponse?.items ?? []).map((item, i) => {
|
|
33
31
|
const addr = item.address ?? item;
|
|
34
32
|
return {
|
|
35
33
|
id: item.id ?? i,
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BHnxFx7u.esm.js";
|
|
2
2
|
//#region src/modules/ae-signature/index.ts
|
|
3
3
|
function createAeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
package/dist/antifraud.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
2
|
-
import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-
|
|
1
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-kOfsaAuT.esm.js";
|
|
2
|
+
import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-Bw5nw5fh.esm.js";
|
|
3
3
|
export { antifraudMachine, createAntifraudManager, createAntifraudManagerFromActor };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as eventModuleNames } from "./types-
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
6
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-kOfsaAuT.esm.js";
|
|
7
7
|
//#region src/modules/antifraud/antifraudActor.ts
|
|
8
8
|
function createAntifraudActor() {
|
|
9
9
|
return createActor(antifraudMachine).start();
|
package/dist/{antifraudStateMachine-BJ6PmCsw.esm.js → antifraudStateMachine-kOfsaAuT.esm.js}
RENAMED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
2
|
import { t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
4
|
//#region src/modules/antifraud/antifraudServices.ts
|
|
5
5
|
async function processAntifraud(signal) {
|
|
6
|
-
|
|
7
|
-
if (!res.ok) throw new Error(`GET ${endpoints.processAntifraud} failed: ${res.status} ${res.statusText}`);
|
|
8
|
-
return res.data;
|
|
6
|
+
return (await api.get(endpoints.processAntifraud, { signal })).data;
|
|
9
7
|
}
|
|
10
8
|
//#endregion
|
|
11
9
|
//#region src/modules/antifraud/antifraudStateMachine.ts
|
|
@@ -90,6 +90,8 @@ const endpoints = {
|
|
|
90
90
|
qrValidateUuid: "/omni/qr/validate",
|
|
91
91
|
addSignature: "/omni/add/signature",
|
|
92
92
|
addSignatureV2: "/omni/add/signature/v2",
|
|
93
|
+
documentSignatureDocuments: "/omni/document-signature/documents",
|
|
94
|
+
documentSignatureSign: "/omni/document-signature/sign",
|
|
93
95
|
identityReuseDocuments: "/omni/identity-reuse/documents",
|
|
94
96
|
identityReuseSubmit: "/omni/identity-reuse/submit",
|
|
95
97
|
identitySearch: "/omni/identity-search",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getToken } from "./api-
|
|
1
|
+
import { r as getToken } from "./api-DSZSaaWr.esm.js";
|
|
2
2
|
import { a as watchConnectivity } from "./connectivity-BCuEoQ-n.esm.js";
|
|
3
3
|
//#region src/internal/session/attemptCarry.ts
|
|
4
4
|
const carried = /* @__PURE__ */ new Map();
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
2
|
-
import { t as AuthenticationConfig } from "./types-
|
|
3
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-DhDPxxp-.js";
|
|
2
|
+
import { t as AuthenticationConfig } from "./types-C2uJrJrS.js";
|
|
3
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-eYcurNiS.js";
|
|
4
4
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
2
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-n1OrhPTv.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-B0SioAdd.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-yBVGiIf_.esm.js → authenticationManager-B0SioAdd.esm.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
3
|
-
import { n as eventModuleNames } from "./types-
|
|
4
|
-
import "./events-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-CJMohzTE.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-D5RMElzw.esm.js";
|
|
3
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
4
|
+
import "./events-CsPmTidH.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
7
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
6
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BjVIUTMM.esm.js";
|
|
7
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-n1OrhPTv.esm.js";
|
|
8
8
|
//#region src/modules/authentication/authenticationActor.ts
|
|
9
9
|
function createAuthenticationActor(options) {
|
|
10
10
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-DhDPxxp-.js";
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
3
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
5
|
-
import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-q33e6ah9.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-WtuJ6QBK.esm.js";
|
|
5
|
+
import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-btFONYx6.esm.js";
|
|
6
6
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
7
7
|
const AUTH_ERROR_MAP = {
|
|
8
8
|
SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-
|
|
2
|
+
import { i as isIOS, r as isDesktop, s as isIPhone14OrHigher, t as isAndroid, u as isSafari } from "./platform-GIg4uPWe.esm.js";
|
|
3
|
+
import { a as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-CJKApt0x.esm.js";
|
|
4
4
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
5
5
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
6
6
|
import { n as isBackFacingTrack, r as selectBestBackDevice, t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.6.0-dev-
|
|
1
|
+
//#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.6.0-dev-20261118130106-3b5181d76a540a606e9971dfbe3ea37052d775a9/node_modules/@incodetech/tri-sdk/dist/chunks/browser-pQZA35G2.js
|
|
2
2
|
var n = {};
|
|
3
3
|
var t = Uint8Array;
|
|
4
4
|
var i = Uint16Array;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region src/internal/forms/checks/calendarDate.ts
|
|
2
|
+
const ISO_DATE = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
3
|
+
const DAYS = [
|
|
4
|
+
31,
|
|
5
|
+
28,
|
|
6
|
+
31,
|
|
7
|
+
30,
|
|
8
|
+
31,
|
|
9
|
+
30,
|
|
10
|
+
31,
|
|
11
|
+
31,
|
|
12
|
+
30,
|
|
13
|
+
31,
|
|
14
|
+
30,
|
|
15
|
+
31
|
|
16
|
+
];
|
|
17
|
+
const INVALID_DATE_ERROR_KEY = "validation.invalidDate";
|
|
18
|
+
/** An ISO date that exists in the Gregorian calendar. */
|
|
19
|
+
function isCalendarDate(value) {
|
|
20
|
+
const match = ISO_DATE.exec(value);
|
|
21
|
+
if (!match) return false;
|
|
22
|
+
const year = Number(match[1]);
|
|
23
|
+
const month = Number(match[2]);
|
|
24
|
+
const day = Number(match[3]);
|
|
25
|
+
if (year < 1 || month < 1 || month > 12 || day < 1) return false;
|
|
26
|
+
const leap = year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
27
|
+
return day <= (month === 2 && leap ? 29 : DAYS[month - 1] ?? 0);
|
|
28
|
+
}
|
|
29
|
+
/** Leaves required checks and whitespace normalization to the caller. */
|
|
30
|
+
function calendarDateError(value) {
|
|
31
|
+
if (value === void 0 || value === "") return void 0;
|
|
32
|
+
return typeof value === "string" && isCalendarDate(value) ? void 0 : INVALID_DATE_ERROR_KEY;
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { calendarDateError as n, INVALID_DATE_ERROR_KEY as t };
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
* all, so nothing here can throw in hosts that delete or block the storage
|
|
14
14
|
* globals.
|
|
15
15
|
*
|
|
16
|
-
* Written by the acquisition helpers in `./camera
|
|
17
|
-
* `BrowserCameraProvider`, and by the WASM camera step through
|
|
16
|
+
* Written by the acquisition helpers in `./camera` and by the WASM camera step through
|
|
18
17
|
* `CameraCycleProvider.startCameraCycle` (the kit keeps no permission state).
|
|
19
18
|
* Read by Core's `checkPermission()`, which trusts it
|
|
20
19
|
* only on Android WebView — where the Permissions API structurally cannot
|
|
@@ -136,6 +135,14 @@ async function requestCameraWithFallback(baseConstraints, fallbacks = DEFAULT_RE
|
|
|
136
135
|
}
|
|
137
136
|
throw new Error("All camera resolution fallbacks failed");
|
|
138
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* The video tracks of `video` with the audio tracks of `audio`, as one stream.
|
|
140
|
+
* Returns `video` itself when `audio` has no audio track.
|
|
141
|
+
*/
|
|
142
|
+
function withAudioTracks(video, audio) {
|
|
143
|
+
const audioTracks = audio?.getAudioTracks() ?? [];
|
|
144
|
+
return audioTracks.length > 0 ? new MediaStream([...video.getVideoTracks(), ...audioTracks]) : video;
|
|
145
|
+
}
|
|
139
146
|
function stopCameraStream(stream) {
|
|
140
147
|
for (const track of stream.getTracks()) track.stop();
|
|
141
148
|
}
|
|
@@ -147,4 +154,4 @@ async function applyTrackConstraints(track, constraints) {
|
|
|
147
154
|
await track.applyConstraints(constraints);
|
|
148
155
|
}
|
|
149
156
|
//#endregion
|
|
150
|
-
export { stopCameraStream as a,
|
|
157
|
+
export { stopCameraStream as a, isCameraDenialErrorName as c, requestCameraWithFallback as i, isCameraGrantedInDocument as l, enumerateVideoDevices as n, withAudioTracks as o, requestCameraAccess as r, clearCameraGrantedInDocument as s, applyTrackConstraints as t, markCameraGrantedInDocument as u };
|
package/dist/camera.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ type RequestPermissionOptions = {
|
|
|
4
4
|
requestMotion?: boolean;
|
|
5
5
|
/**
|
|
6
6
|
* Also request microphone access in the same `getUserMedia` call. Used by
|
|
7
|
-
* Video Selfie,
|
|
8
|
-
*
|
|
7
|
+
* Video Selfie, and by ID and selfie when they record a merged session with
|
|
8
|
+
* sound. Defaults to `false`, so other flows keep `{ video: true }` exactly.
|
|
9
9
|
*/
|
|
10
10
|
requestAudio?: boolean;
|
|
11
11
|
};
|
package/dist/camera.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as requestPermission, t as checkPermission } from "./permissionServices-
|
|
1
|
+
import { a as requestPermission, t as checkPermission } from "./permissionServices-6Mdq1hDk.esm.js";
|
|
2
2
|
export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
2
|
-
import { n as createCertificateIssuanceManagerFromActor, t as createCertificateIssuanceManager } from "./certificateIssuanceManager-
|
|
1
|
+
import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-BwDb3ezx.esm.js";
|
|
2
|
+
import { n as createCertificateIssuanceManagerFromActor, t as createCertificateIssuanceManager } from "./certificateIssuanceManager-DPT8E9zV.esm.js";
|
|
3
3
|
export { MIN_PASSWORD_LENGTH, PASSWORD_VALIDATION_KEYS, REQUIREMENT_I18N_KEYS, certificateIssuanceMachine, createCertificateIssuanceManager, createCertificateIssuanceManagerFromActor, emptyPasswordValidations, isPasswordValid, validatePassword };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as eventModuleNames } from "./types-
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
3
3
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
-
import { r as isPasswordValid, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
5
|
+
import { r as isPasswordValid, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-BwDb3ezx.esm.js";
|
|
6
6
|
//#region src/modules/certificate-issuance/certificateIssuanceActor.ts
|
|
7
7
|
/**
|
|
8
8
|
* Creates and starts a certificate issuance actor.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getApi, r as getToken, u as endpoints } from "./api-
|
|
1
|
+
import { n as getApi, r as getToken, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
4
|
import { t as externalFetch } from "./externalFetch-cUjJYyXj.esm.js";
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-
|
|
1
|
+
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-B0YKqYtZ.js";
|
|
2
2
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
package/dist/consent.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
2
|
-
import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-
|
|
1
|
+
import { t as consentMachine } from "./consentStateMachine-Br0JbW7k.esm.js";
|
|
2
|
+
import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-DRMJ3O4r.esm.js";
|
|
3
3
|
export { consentMachine, createConsentManager, createConsentManagerFromActor };
|