@sekyro/web 0.1.0-rc.21 → 0.1.0-rc.22
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 +45 -0
- package/README.md +12 -11
- package/dist/camera-trait-V4UAOPIQ.js +1 -0
- package/dist/{capture-constraints-B5omafmk.d.cts → capture-constraints-CVqpMNGA.d.cts} +7 -3
- package/dist/{capture-constraints-B5omafmk.d.ts → capture-constraints-CVqpMNGA.d.ts} +7 -3
- package/dist/{capture-session-doc-XBZGXWOP.js → capture-session-doc-YDUKUN3P.js} +1 -1
- package/dist/{capture-session-v3-26FgzBIl.d.cts → capture-session-v3-CkcuPKSD.d.ts} +90 -13
- package/dist/{capture-session-v3-ZO0QOeQH.d.ts → capture-session-v3-TJL-0Muv.d.cts} +90 -13
- package/dist/chunk-2KTSNAVR.js +1 -0
- package/dist/chunk-2LDOXGY3.js +1 -0
- package/dist/chunk-32ELI5BZ.js +1 -0
- package/dist/chunk-7QZWBDI5.js +1 -0
- package/dist/chunk-7XT5YDSC.js +1 -0
- package/dist/chunk-BATJN3VQ.js +1 -0
- package/dist/chunk-CPUECYAJ.js +1 -0
- package/dist/chunk-FSSMUAKC.js +1 -0
- package/dist/{chunk-QYYJLXKA.js → chunk-HYGINGDC.js} +1 -1
- package/dist/chunk-LJYMZQY2.js +1 -0
- package/dist/chunk-PZYVSLPG.js +1 -0
- package/dist/chunk-RALQBQPT.js +1 -0
- package/dist/chunk-SX7TUC3V.js +1 -0
- package/dist/chunk-TJUM65FN.js +1 -0
- package/dist/chunk-TSA6GHUG.js +1 -0
- package/dist/chunk-VWGKUQ3C.js +1 -0
- package/dist/chunk-Z2BIZYZQ.js +1 -0
- package/dist/chunk-Z5D7SZUW.js +1 -0
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.js +1 -1
- package/dist/clip-inspect-DLJXVKV6.js +1 -0
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +5 -5
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +1 -1
- package/dist/core/v3/detect-worker.cjs +1 -1
- package/dist/core/v3/detect-worker.d.cts +1 -1
- package/dist/core/v3/detect-worker.d.ts +1 -1
- package/dist/core/v3/detect-worker.js +1 -1
- package/dist/create-document-capture-K6EHRCWN.js +1 -0
- package/dist/create-portrait-capture-5VGYZUOK.js +1 -0
- package/dist/{create-verification-KlHIU4Fy.d.ts → create-verification-DnyHCSu6.d.cts} +175 -80
- package/dist/{create-verification-CXhXxknV.d.cts → create-verification-DoISHOqL.d.ts} +175 -80
- package/dist/{detect-worker-DclNxkZT.d.cts → detect-worker-CHqsPJoM.d.cts} +19 -2
- package/dist/{detect-worker-DclNxkZT.d.ts → detect-worker-CHqsPJoM.d.ts} +19 -2
- package/dist/{icao-gate-DvzOzHq6.d.cts → icao-gate-BFlSZYCZ.d.cts} +1 -1
- package/dist/{icao-gate-DI8VePWd.d.ts → icao-gate-lZ_fHE7k.d.ts} +1 -1
- package/dist/{icao-policy-DztbA50-.d.ts → icao-policy-BOcutYdD.d.ts} +2 -2
- package/dist/{icao-policy-MRB8NMAu.d.cts → icao-policy-JZH0UdmD.d.cts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +11 -15
- package/dist/index.d.ts +11 -15
- package/dist/index.js +1 -1
- package/dist/internal/index.cjs +1 -1
- package/dist/internal/index.d.cts +49 -34
- package/dist/internal/index.d.ts +49 -34
- package/dist/internal/index.js +1 -1
- package/dist/plan-runner-3ZMV7SFQ.js +1 -0
- package/dist/popup/index.cjs +1 -1
- package/dist/popup/index.d.cts +2 -2
- package/dist/popup/index.d.ts +2 -2
- package/dist/popup/index.js +1 -1
- package/dist/{print-AYSCRSZB.js → print-SEWS3VHQ.js} +1 -1
- package/dist/{turnstile-FATNZ4AG.js → turnstile-2J3LUHCG.js} +1 -1
- package/dist/{types-C_XP92JQ.d.cts → types-DwfyBTte.d.cts} +129 -74
- package/dist/{types-C_XP92JQ.d.ts → types-DwfyBTte.d.ts} +129 -74
- package/package.json +1 -1
- package/sbom.cdx.json +10 -10
- package/dist/camera-trait-45MJTW4K.js +0 -1
- package/dist/chunk-234OZEDB.js +0 -1
- package/dist/chunk-7Q4YPMAF.js +0 -1
- package/dist/chunk-B2X33ZW2.js +0 -1
- package/dist/chunk-CQ7SKLMC.js +0 -1
- package/dist/chunk-FUHDOEBP.js +0 -1
- package/dist/chunk-GT2ZLGF7.js +0 -1
- package/dist/chunk-H3HVCWLF.js +0 -1
- package/dist/chunk-O5WKNZ2C.js +0 -1
- package/dist/chunk-OKWG3PVH.js +0 -1
- package/dist/chunk-P3H3D33O.js +0 -1
- package/dist/chunk-P6UP4UQY.js +0 -1
- package/dist/chunk-SNACCYTL.js +0 -1
- package/dist/chunk-TQB3URP2.js +0 -1
- package/dist/chunk-VIAT4DEA.js +0 -1
- package/dist/chunk-ZADZTM3M.js +0 -1
- package/dist/chunk-ZNIZACXD.js +0 -1
- package/dist/create-document-capture-23R2F47A.js +0 -1
- package/dist/create-portrait-capture-AGFHECK7.js +0 -1
- package/dist/plan-runner-NUWONT7F.js +0 -1
|
@@ -27,7 +27,23 @@ interface FaceObservation {
|
|
|
27
27
|
y: number;
|
|
28
28
|
};
|
|
29
29
|
score: number;
|
|
30
|
+
/** Other faces in the same detection whose box area is at least {@link SECOND_FACE_AREA_RATIO} of this
|
|
31
|
+
* face's ({@link countExtraFaces}). The gate blocks while it is above 0 (single-face liveness). Absent = 0. */
|
|
32
|
+
extraFaces?: number;
|
|
30
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Single-face liveness (2026-11-08): another face counts when its box area is at least this fraction of the
|
|
36
|
+
* main face's: half its width, a person within about twice the main person's distance from the camera.
|
|
37
|
+
* Passers-by further back, an ID card portrait or a poster are far smaller and never block. The same value
|
|
38
|
+
* on iOS and Android, and on the server (kyc-liveness-v2 `V2_SECOND_FACE_AREA_RATIO`).
|
|
39
|
+
*/
|
|
40
|
+
declare const SECOND_FACE_AREA_RATIO = 0.25;
|
|
41
|
+
/** How many of `boxes` other than `boxes[mainIndex]` reach {@link SECOND_FACE_AREA_RATIO} of its area. Pure;
|
|
42
|
+
* the boxes are the ones the detector already returned (no extra detection). */
|
|
43
|
+
declare function countExtraFaces(boxes: ReadonlyArray<{
|
|
44
|
+
width: number;
|
|
45
|
+
height: number;
|
|
46
|
+
}>, mainIndex: number): number;
|
|
31
47
|
interface Detector {
|
|
32
48
|
readonly tier: "native" | "blaze";
|
|
33
49
|
/** Why higher tiers were skipped (telemetry) — absent when the first
|
|
@@ -35,7 +51,8 @@ interface Detector {
|
|
|
35
51
|
readonly fallbackReason?: string;
|
|
36
52
|
/** Detect on a (possibly downscaled) snapshot; `sourceWidth/Height` are the
|
|
37
53
|
* STREAM dimensions the observation must be normalized to. Returns the
|
|
38
|
-
*
|
|
54
|
+
* main face (with `extraFaces` counted from the same detection) or null;
|
|
55
|
+
* NEVER rejects. */
|
|
39
56
|
detect(source: CanvasImageSource, sourceWidth: number, sourceHeight: number): Promise<FaceObservation | null>;
|
|
40
57
|
destroy(): void;
|
|
41
58
|
}
|
|
@@ -108,4 +125,4 @@ declare class WorkerDetectorProxy implements Detector {
|
|
|
108
125
|
destroy(): void;
|
|
109
126
|
}
|
|
110
127
|
|
|
111
|
-
export { type CreateDetectorOptions as C, DEFAULT_TIER_ORDER as D, type FaceObservation as F, type WorkerLike as W, DEFAULT_V3_ASSET_BASE_URL as a, type Detector as b, DetectorLadderError as c,
|
|
128
|
+
export { type CreateDetectorOptions as C, DEFAULT_TIER_ORDER as D, type FaceObservation as F, SECOND_FACE_AREA_RATIO as S, type WorkerLike as W, DEFAULT_V3_ASSET_BASE_URL as a, type Detector as b, DetectorLadderError as c, countExtraFaces as d, createDetector as e, WORKER_PROTOCOL_VERSION as f, WorkerDetectorProxy as g, type WorkerScopeLike as h, intrinsicSize as i, installWorkerDetectorHost as j, toStreamPixels as t, workerOffloadSupported as w };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as HostedSessionView, k as ConsentLocale, w as HostedConsentView, aM as CameraUnavailableCause, aN as CaptureIssueReport, Z as IdentityConfirmDecision, a5 as MediaKind, av as PresignUploadResult, C as CaptureContext, j as CompleteMediaResult, h as CheckType, e as CheckInputByType, X as IcaoCriterion, b1 as BackgroundUniformity, a_ as ResolvedIcaoTuning } from './types-DwfyBTte.cjs';
|
|
2
2
|
|
|
3
3
|
interface Point {
|
|
4
4
|
x: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as HostedSessionView, k as ConsentLocale, w as HostedConsentView, aM as CameraUnavailableCause, aN as CaptureIssueReport, Z as IdentityConfirmDecision, a5 as MediaKind, av as PresignUploadResult, C as CaptureContext, j as CompleteMediaResult, h as CheckType, e as CheckInputByType, X as IcaoCriterion, b1 as BackgroundUniformity, a_ as ResolvedIcaoTuning } from './types-DwfyBTte.js';
|
|
2
2
|
|
|
3
3
|
interface Point {
|
|
4
4
|
x: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as IcaoGateSummary } from './icao-gate-
|
|
2
|
-
import {
|
|
1
|
+
import { f as IcaoGateSummary } from './icao-gate-lZ_fHE7k.js';
|
|
2
|
+
import { S as HostedSessionView, J as HostedIcaoPolicy, ar as PortraitIcaoInput } from './types-DwfyBTte.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Every error code the hosted page can receive from the session-token surface.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as IcaoGateSummary } from './icao-gate-
|
|
2
|
-
import {
|
|
1
|
+
import { f as IcaoGateSummary } from './icao-gate-BFlSZYCZ.cjs';
|
|
2
|
+
import { S as HostedSessionView, J as HostedIcaoPolicy, ar as PortraitIcaoInput } from './types-DwfyBTte.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Every error code the hosted page can receive from the session-token surface.
|