@sekyro/web 0.0.0-stage → 0.1.0-rc.10
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/CHANGELOG.md +220 -0
- package/LICENSE +29 -0
- package/README.md +136 -2
- package/THIRD-PARTY-NOTICES.txt +154 -0
- package/dist/background-monitor-A7FKJOAG.js +1 -0
- package/dist/capture-constraints-B5omafmk.d.cts +44 -0
- package/dist/capture-constraints-B5omafmk.d.ts +44 -0
- package/dist/capture-session-doc-GK6G7JOI.js +1 -0
- package/dist/capture-session-v3-CmJw_bK0.d.cts +585 -0
- package/dist/capture-session-v3-DGG2stO6.d.ts +585 -0
- package/dist/chunk-3MSUJYBO.js +1 -0
- package/dist/chunk-7ZCZY3ZP.js +1 -0
- package/dist/chunk-A3FUGHAH.js +2 -0
- package/dist/chunk-BAGSM67V.js +1 -0
- package/dist/chunk-BPE5NSQ2.js +1 -0
- package/dist/chunk-CJHMFPL6.js +1 -0
- package/dist/chunk-DFTCAWMP.js +1 -0
- package/dist/chunk-DK5YPBDQ.js +1 -0
- package/dist/chunk-ETY6SAAZ.js +1 -0
- package/dist/chunk-FFDB6LQN.js +1 -0
- package/dist/chunk-FHJ7HO3M.js +1 -0
- package/dist/chunk-FPXL63KZ.js +1 -0
- package/dist/chunk-FUHDOEBP.js +1 -0
- package/dist/chunk-G6LKLN4U.js +1 -0
- package/dist/chunk-GI3UFGRQ.js +1 -0
- package/dist/chunk-HAO6EQTH.js +1 -0
- package/dist/chunk-HWAXEQD5.js +1 -0
- package/dist/chunk-MXWLCDFX.js +1 -0
- package/dist/chunk-O5WKNZ2C.js +1 -0
- package/dist/chunk-OKWG3PVH.js +1 -0
- package/dist/chunk-POIQGEZM.js +1 -0
- package/dist/chunk-RI3E7GBN.js +1 -0
- package/dist/chunk-SEC64KZ3.js +1 -0
- package/dist/chunk-SMKCBUJL.js +1 -0
- package/dist/chunk-SXZCL5NO.js +1 -0
- package/dist/chunk-SZ7YGNUZ.js +1 -0
- package/dist/chunk-TDLIXFDT.js +1 -0
- package/dist/chunk-UGMHAFEY.js +1 -0
- package/dist/chunk-WKJJEPWA.js +1 -0
- package/dist/chunk-XR64UFLK.js +1 -0
- package/dist/client/index.cjs +1 -0
- package/dist/client/index.d.cts +71 -0
- package/dist/client/index.d.ts +71 -0
- package/dist/client/index.js +1 -0
- package/dist/core/index.cjs +1 -0
- package/dist/core/index.d.cts +87 -0
- package/dist/core/index.d.ts +87 -0
- package/dist/core/index.js +1 -0
- package/dist/core/ocr/worker.bundle.js +42 -0
- package/dist/core/ocr/worker.cjs +42 -0
- package/dist/core/ocr/worker.d.cts +84 -0
- package/dist/core/ocr/worker.d.ts +84 -0
- package/dist/core/ocr/worker.js +41 -0
- package/dist/core/v3/detect-worker.cjs +1 -0
- package/dist/core/v3/detect-worker.d.cts +1 -0
- package/dist/core/v3/detect-worker.d.ts +1 -0
- package/dist/core/v3/detect-worker.js +1 -0
- package/dist/create-document-capture-IGUQP2NS.js +1 -0
- package/dist/create-portrait-capture-RJSFY37D.js +1 -0
- package/dist/create-verification-Bb20j6zk.d.ts +2968 -0
- package/dist/create-verification-CtqF4A9W.d.cts +2968 -0
- package/dist/detect-worker-DclNxkZT.d.cts +111 -0
- package/dist/detect-worker-DclNxkZT.d.ts +111 -0
- package/dist/detector-scanic-YCDNLCGV.js +1 -0
- package/dist/icao-gate-PWBMKRGC.js +1 -0
- package/dist/icao-gate-terzKYD7.d.cts +1770 -0
- package/dist/icao-gate-terzKYD7.d.ts +1770 -0
- package/dist/icao-tuning-4GGVX6B4.js +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +74 -0
- package/dist/index.d.ts +74 -0
- package/dist/index.js +1 -0
- package/dist/internal/index.cjs +1 -0
- package/dist/internal/index.d.cts +462 -0
- package/dist/internal/index.d.ts +462 -0
- package/dist/internal/index.js +1 -0
- package/dist/keyframe-rank-YAJLYJYF.js +1 -0
- package/dist/landmarker-KB7LVXAU.js +1 -0
- package/dist/mrz-band-VYHOTDHY.js +1 -0
- package/dist/plan-runner-QCK2SOGS.js +1 -0
- package/dist/popup/index.cjs +1 -0
- package/dist/popup/index.d.cts +66 -0
- package/dist/popup/index.d.ts +66 -0
- package/dist/popup/index.js +1 -0
- package/dist/scanic-ml-stub-KW7IZHUT.js +1 -0
- package/dist/segmenter-USLNBX65.js +1 -0
- package/dist/turnstile-FATNZ4AG.js +1 -0
- package/package.json +133 -4
- package/sbom.cdx.json +195 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/** getUserMedia constraint tier — 720p-class on every device since 2026-07-06.
|
|
2
|
+
* The v2 FAS-CLIP liveness head loses its texture cues below ~720p: the SAME
|
|
3
|
+
* genuine clip scores heads 0.0001 at 720x1280 vs 0.355 at the old 480x360
|
|
4
|
+
* mobile tier, which pushed real users into review (first observed live on
|
|
5
|
+
* staging 2026-07-06; falsified on corpus clips the same day). Dimensions are
|
|
6
|
+
* sensor-relative (landscape); mobile browsers deliver portrait via rotation
|
|
7
|
+
* metadata, which the liveness service's decoder applies (cv2
|
|
8
|
+
* ORIENTATION_AUTO). `isMobile` is kept for call-site compat and future
|
|
9
|
+
* divergence — both tiers are 720p today. Bitrate pairs with VIDEO_BPS in
|
|
10
|
+
* clip-recorder.ts (2.5 Mbps). */
|
|
11
|
+
declare function buildCaptureConstraints(isMobile: boolean, facingMode: "user" | "environment"): MediaStreamConstraints;
|
|
12
|
+
/** The kind of device the browser runs on (spec 2026-10-28 §4.2). */
|
|
13
|
+
type FormFactor = "phone" | "tablet" | "desktop";
|
|
14
|
+
/** A touch device whose shorter screen side is below this (CSS px) is a phone; at or above it, a tablet. */
|
|
15
|
+
declare const PHONE_MAX_SHORT_SIDE = 600;
|
|
16
|
+
/**
|
|
17
|
+
* Phone, tablet or desktop:
|
|
18
|
+
* - phone: an iPhone / iPod user agent, an Android user agent with `Mobile`, a legacy mobile user agent, or a touch
|
|
19
|
+
* device with a coarse primary pointer whose shorter screen side is under {@link PHONE_MAX_SHORT_SIDE} CSS px;
|
|
20
|
+
* - tablet: iPadOS (an iPad user agent, or the desktop `Macintosh` one with touch points), Android without `Mobile`,
|
|
21
|
+
* and other touch devices with a coarse primary pointer (Windows / ChromeOS tablets);
|
|
22
|
+
* - desktop: everything else. The window width plays no part: a narrow desktop window is still a desktop, and a touch
|
|
23
|
+
* laptop keeps a fine primary pointer.
|
|
24
|
+
* SSR-safe (`desktop` without window / navigator).
|
|
25
|
+
*/
|
|
26
|
+
declare function detectFormFactor(): FormFactor;
|
|
27
|
+
/**
|
|
28
|
+
* Whether this browser runs on a phone or tablet ({@link detectFormFactor} is not `desktop`): the capture channel,
|
|
29
|
+
* `mobile_required` and the hand-over use it. The upright guard is phones only.
|
|
30
|
+
*/
|
|
31
|
+
declare function detectIsMobile(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The facing the live video track of `stream` reports (`getSettings().facingMode`), or `null` when the track does not
|
|
34
|
+
* say (most desktop webcams) or reports something else (`left` / `right`). Never throws.
|
|
35
|
+
*/
|
|
36
|
+
declare function trackFacingMode(stream: MediaStream | null | undefined): "user" | "environment" | null;
|
|
37
|
+
/** Gate radius as a fraction of the guidance circle (v1 L501: circleSize × 0.45). */
|
|
38
|
+
declare const CIRCLE_RADIUS_FACTOR = 0.45;
|
|
39
|
+
/** `inCircle` tolerance as a fraction of the gate radius (v1 L508: r × 0.9). */
|
|
40
|
+
declare const IN_CIRCLE_FACTOR = 0.9;
|
|
41
|
+
/** `centered` tolerance as a fraction of the gate radius (v1 L509: r × 0.4). */
|
|
42
|
+
declare const CENTERED_FACTOR = 0.4;
|
|
43
|
+
|
|
44
|
+
export { CENTERED_FACTOR as C, type FormFactor as F, IN_CIRCLE_FACTOR as I, PHONE_MAX_SHORT_SIDE as P, CIRCLE_RADIUS_FACTOR as a, buildCaptureConstraints as b, detectIsMobile as c, detectFormFactor as d, trackFacingMode as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/** getUserMedia constraint tier — 720p-class on every device since 2026-07-06.
|
|
2
|
+
* The v2 FAS-CLIP liveness head loses its texture cues below ~720p: the SAME
|
|
3
|
+
* genuine clip scores heads 0.0001 at 720x1280 vs 0.355 at the old 480x360
|
|
4
|
+
* mobile tier, which pushed real users into review (first observed live on
|
|
5
|
+
* staging 2026-07-06; falsified on corpus clips the same day). Dimensions are
|
|
6
|
+
* sensor-relative (landscape); mobile browsers deliver portrait via rotation
|
|
7
|
+
* metadata, which the liveness service's decoder applies (cv2
|
|
8
|
+
* ORIENTATION_AUTO). `isMobile` is kept for call-site compat and future
|
|
9
|
+
* divergence — both tiers are 720p today. Bitrate pairs with VIDEO_BPS in
|
|
10
|
+
* clip-recorder.ts (2.5 Mbps). */
|
|
11
|
+
declare function buildCaptureConstraints(isMobile: boolean, facingMode: "user" | "environment"): MediaStreamConstraints;
|
|
12
|
+
/** The kind of device the browser runs on (spec 2026-10-28 §4.2). */
|
|
13
|
+
type FormFactor = "phone" | "tablet" | "desktop";
|
|
14
|
+
/** A touch device whose shorter screen side is below this (CSS px) is a phone; at or above it, a tablet. */
|
|
15
|
+
declare const PHONE_MAX_SHORT_SIDE = 600;
|
|
16
|
+
/**
|
|
17
|
+
* Phone, tablet or desktop:
|
|
18
|
+
* - phone: an iPhone / iPod user agent, an Android user agent with `Mobile`, a legacy mobile user agent, or a touch
|
|
19
|
+
* device with a coarse primary pointer whose shorter screen side is under {@link PHONE_MAX_SHORT_SIDE} CSS px;
|
|
20
|
+
* - tablet: iPadOS (an iPad user agent, or the desktop `Macintosh` one with touch points), Android without `Mobile`,
|
|
21
|
+
* and other touch devices with a coarse primary pointer (Windows / ChromeOS tablets);
|
|
22
|
+
* - desktop: everything else. The window width plays no part: a narrow desktop window is still a desktop, and a touch
|
|
23
|
+
* laptop keeps a fine primary pointer.
|
|
24
|
+
* SSR-safe (`desktop` without window / navigator).
|
|
25
|
+
*/
|
|
26
|
+
declare function detectFormFactor(): FormFactor;
|
|
27
|
+
/**
|
|
28
|
+
* Whether this browser runs on a phone or tablet ({@link detectFormFactor} is not `desktop`): the capture channel,
|
|
29
|
+
* `mobile_required` and the hand-over use it. The upright guard is phones only.
|
|
30
|
+
*/
|
|
31
|
+
declare function detectIsMobile(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The facing the live video track of `stream` reports (`getSettings().facingMode`), or `null` when the track does not
|
|
34
|
+
* say (most desktop webcams) or reports something else (`left` / `right`). Never throws.
|
|
35
|
+
*/
|
|
36
|
+
declare function trackFacingMode(stream: MediaStream | null | undefined): "user" | "environment" | null;
|
|
37
|
+
/** Gate radius as a fraction of the guidance circle (v1 L501: circleSize × 0.45). */
|
|
38
|
+
declare const CIRCLE_RADIUS_FACTOR = 0.45;
|
|
39
|
+
/** `inCircle` tolerance as a fraction of the gate radius (v1 L508: r × 0.9). */
|
|
40
|
+
declare const IN_CIRCLE_FACTOR = 0.9;
|
|
41
|
+
/** `centered` tolerance as a fraction of the gate radius (v1 L509: r × 0.4). */
|
|
42
|
+
declare const CENTERED_FACTOR = 0.4;
|
|
43
|
+
|
|
44
|
+
export { CENTERED_FACTOR as C, type FormFactor as F, IN_CIRCLE_FACTOR as I, PHONE_MAX_SHORT_SIDE as P, CIRCLE_RADIUS_FACTOR as a, buildCaptureConstraints as b, detectIsMobile as c, detectFormFactor as d, trackFacingMode as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as a,D as b,E as c,F as d,G as e,H as f,I as g,J as h}from"./chunk-UGMHAFEY.js";import"./chunk-SMKCBUJL.js";import"./chunk-MXWLCDFX.js";import"./chunk-G6LKLN4U.js";import"./chunk-TDLIXFDT.js";import"./chunk-POIQGEZM.js";import"./chunk-FHJ7HO3M.js";import"./chunk-FPXL63KZ.js";import"./chunk-BAGSM67V.js";import"./chunk-DK5YPBDQ.js";export{h as CAPTURE_CANDIDATE_SPACING_MS,g as CAPTURE_EXTRA_CANDIDATES,e as CaptureSessionDoc,b as DOC_CADENCE_HZ,c as DOC_SHUTTER_DEFAULTS,f as passportBandOf,d as resolveDocShutterTuning,a as warmDocDetector};
|