@sekyro/web 0.1.0-rc.20 → 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 +58 -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-QA4DOFRF.js → capture-session-doc-YDUKUN3P.js} +1 -1
- package/dist/{capture-session-v3-CNL-GX11.d.cts → capture-session-v3-CkcuPKSD.d.ts} +90 -13
- package/dist/{capture-session-v3-DaBqN8fO.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-33KKMPJ5.js +1 -0
- package/dist/chunk-53POX7U4.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-IG466TOP.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-COpe2hxf.d.ts → create-verification-DnyHCSu6.d.cts} +216 -82
- package/dist/{create-verification-BBOUYpga.d.cts → create-verification-DoISHOqL.d.ts} +216 -82
- 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-CEGvJR3q.d.ts → icao-gate-BFlSZYCZ.d.cts} +36 -4
- package/dist/icao-gate-T3BTOKFJ.js +1 -0
- package/dist/{icao-gate-l40OU6x1.d.cts → icao-gate-lZ_fHE7k.d.ts} +36 -4
- package/dist/{icao-policy-BgI1Y870.d.ts → icao-policy-BOcutYdD.d.ts} +3 -3
- package/dist/{icao-policy-C7fIdRzo.d.cts → icao-policy-JZH0UdmD.d.cts} +3 -3
- package/dist/icao-tuning-4ETMF53W.js +1 -0
- 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 +53 -34
- package/dist/internal/index.d.ts +53 -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 +3 -3
- package/dist/popup/index.d.ts +3 -3
- 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-Dpfg2cO8.d.cts → types-DwfyBTte.d.cts} +167 -79
- package/dist/{types-Dpfg2cO8.d.ts → types-DwfyBTte.d.ts} +167 -79
- package/package.json +1 -1
- package/sbom.cdx.json +10 -10
- package/dist/camera-trait-45MJTW4K.js +0 -1
- package/dist/chunk-5ZKQHFFW.js +0 -1
- package/dist/chunk-7ZCZY3ZP.js +0 -1
- package/dist/chunk-BPE5NSQ2.js +0 -1
- package/dist/chunk-CQ7SKLMC.js +0 -1
- package/dist/chunk-FGOVIGGL.js +0 -1
- package/dist/chunk-FUHDOEBP.js +0 -1
- package/dist/chunk-GT2ZLGF7.js +0 -1
- package/dist/chunk-KHR4U2SZ.js +0 -1
- package/dist/chunk-KZBBB5B2.js +0 -1
- package/dist/chunk-NJML6FMD.js +0 -1
- package/dist/chunk-O5WKNZ2C.js +0 -1
- package/dist/chunk-OKWG3PVH.js +0 -1
- package/dist/chunk-TQB3URP2.js +0 -1
- package/dist/chunk-U6S7SCBY.js +0 -1
- package/dist/chunk-U6TYL2IJ.js +0 -1
- package/dist/chunk-W2WD7PR2.js +0 -1
- package/dist/chunk-XCKE2MJL.js +0 -1
- package/dist/chunk-ZLWH4RBO.js +0 -1
- package/dist/create-document-capture-GJXBQMTC.js +0 -1
- package/dist/create-portrait-capture-MOS2D7CL.js +0 -1
- package/dist/icao-gate-PWBMKRGC.js +0 -1
- package/dist/icao-tuning-4GGVX6B4.js +0 -1
- package/dist/plan-runner-35655N4Z.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 };
|
|
@@ -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;
|
|
@@ -430,12 +430,20 @@ interface IcaoGateUpdate {
|
|
|
430
430
|
* frontal, single-face frames. kyc-portrait compares the lower eye against it.
|
|
431
431
|
*/
|
|
432
432
|
baseline: number | null;
|
|
433
|
+
/** The same quantile of each eye alone (2026-11-06): what each eye is judged against; `null` until known. */
|
|
434
|
+
baselines: {
|
|
435
|
+
left: number;
|
|
436
|
+
right: number;
|
|
437
|
+
} | null;
|
|
433
438
|
pose: HeadPose | null;
|
|
434
439
|
}
|
|
435
440
|
/** The on-device result submitted with the portrait (`gate`, §4.9): numbers only. */
|
|
436
441
|
interface IcaoGateSummary {
|
|
437
442
|
/** In (0, 1]: the gate's eye baseline (1 − blink blendshape; see {@link IcaoGateUpdate.baseline}). */
|
|
438
443
|
baselineEyeOpenness?: number;
|
|
444
|
+
/** In (0, 1], both or neither: the baseline of each eye, which selects kyc-portrait's per-eye rule. */
|
|
445
|
+
baselineEyeOpennessLeft?: number;
|
|
446
|
+
baselineEyeOpennessRight?: number;
|
|
439
447
|
criteria: Partial<Record<IcaoGateCriterion, {
|
|
440
448
|
pass: boolean;
|
|
441
449
|
value: number | null;
|
|
@@ -475,6 +483,11 @@ interface IcaoMeasures {
|
|
|
475
483
|
} | null;
|
|
476
484
|
/** The person's eye-openness baseline; `null` = the absolute floor only. */
|
|
477
485
|
baseline: number | null;
|
|
486
|
+
/** The baseline of each eye: when known, each eye is judged against its own (a stable asymmetry passes). */
|
|
487
|
+
baselines?: {
|
|
488
|
+
left: number;
|
|
489
|
+
right: number;
|
|
490
|
+
} | null;
|
|
478
491
|
/** Blendshapes: `jawOpen`, the larger `mouthSmile*`, `mouthPucker`. */
|
|
479
492
|
mouth: {
|
|
480
493
|
jawOpen: number;
|
|
@@ -511,13 +524,32 @@ declare function eyeOpenness(blendshapes: Readonly<Record<string, number>> | nul
|
|
|
511
524
|
} | null;
|
|
512
525
|
/** The `p`-quantile (0..1) of a sample, nearest-rank. */
|
|
513
526
|
declare function percentile(values: readonly number[], p: number): number | null;
|
|
514
|
-
/** Score one frame against the limits. Pure; `baseline`
|
|
515
|
-
declare function scoreFrame(frame: IcaoFrameObservation, t: ResolvedIcaoTuning, baseline: number | null
|
|
527
|
+
/** Score one frame against the limits. Pure; `baseline` and `baselines` are the eye baselines so far. */
|
|
528
|
+
declare function scoreFrame(frame: IcaoFrameObservation, t: ResolvedIcaoTuning, baseline: number | null, baselines?: {
|
|
529
|
+
left: number;
|
|
530
|
+
right: number;
|
|
531
|
+
} | null): {
|
|
516
532
|
results: Record<IcaoGateCriterion, Measured>;
|
|
517
533
|
pose: HeadPose | null;
|
|
518
534
|
};
|
|
535
|
+
/** One frame's mouth blendshapes, rounded to 3 decimals (diagnostics: numbers only). */
|
|
536
|
+
interface IcaoMouthScores {
|
|
537
|
+
jawOpen: number;
|
|
538
|
+
smile: number;
|
|
539
|
+
pucker: number;
|
|
540
|
+
}
|
|
541
|
+
/** The mouth scores of this gate run, for the staff diagnostics (`portrait_gate` report, 2026-11-06). */
|
|
542
|
+
interface IcaoGateScores {
|
|
543
|
+
/** Since the first frame with scores of this run. */
|
|
544
|
+
elapsedMs: number;
|
|
545
|
+
latest: IcaoMouthScores;
|
|
546
|
+
/** The smallest value of each score over the run: how close the person got to each limit. */
|
|
547
|
+
lowest: IcaoMouthScores;
|
|
548
|
+
}
|
|
519
549
|
interface IcaoGate {
|
|
520
550
|
push(frame: IcaoFrameObservation, nowMs: number): IcaoGateUpdate;
|
|
551
|
+
/** The run's mouth scores (`null` before a frame had any). A retake starts a new run. */
|
|
552
|
+
scores(): IcaoGateScores | null;
|
|
521
553
|
/** The last update (`null` before the first frame). */
|
|
522
554
|
last(): IcaoGateUpdate | null;
|
|
523
555
|
/** The submission's `gate` block from the last update. */
|
|
@@ -531,4 +563,4 @@ interface IcaoGateOptions {
|
|
|
531
563
|
}
|
|
532
564
|
declare function createIcaoGate(t: ResolvedIcaoTuning, options?: IcaoGateOptions): IcaoGate;
|
|
533
565
|
|
|
534
|
-
export {
|
|
566
|
+
export { faceGeometry as A, type BackgroundStats as B, CLIPPED_LUMA as C, faceLighting as D, faceSharpness as E, type FaceGeometry as F, icaoPixelStats as G, HostedClient as H, type IcaoCoachKey as I, icaoWindow as J, judgeIcao as K, type LumaPlane as L, type MediaCheckType as M, lumaPlane as N, percentile as O, type Point as P, portraitCropRegion as Q, type RegionStats as R, SEKYRO_SDK_HEADER as S, poseFromMatrix as T, type UploadMedia as U, regionStats as V, scoreFrame as W, windowOverflow as X, type HostedClientOptions as a, type SubmitOptions as b, type HeadPose as c, type IcaoCriterionState as d, type IcaoGateCriterion as e, type IcaoGateSummary as f, type IcaoGateUpdate as g, type Box as h, type FaceLighting as i, ICAO_CANVAS as j, ICAO_GATE_CRITERIA as k, ICAO_SHARP_REF as l, type IcaoFrameObservation as m, type IcaoGate as n, type IcaoGateOptions as o, type IcaoGateScores as p, type IcaoJudgedCriterion as q, type IcaoMeasures as r, stripMimeParams as s, type IcaoMouthScores as t, type IcaoPixelStats as u, backgroundStats as v, createIcaoGate as w, eyeLineRoll as x, eyeOpenness as y, eyeSpecular as z };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as a,i as b,j as c,k as d,l as e,m as f}from"./chunk-53POX7U4.js";export{a as ICAO_GATE_CRITERIA,f as createIcaoGate,c as eyeOpenness,b as judgeIcao,d as percentile,e as scoreFrame};
|
|
@@ -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;
|
|
@@ -430,12 +430,20 @@ interface IcaoGateUpdate {
|
|
|
430
430
|
* frontal, single-face frames. kyc-portrait compares the lower eye against it.
|
|
431
431
|
*/
|
|
432
432
|
baseline: number | null;
|
|
433
|
+
/** The same quantile of each eye alone (2026-11-06): what each eye is judged against; `null` until known. */
|
|
434
|
+
baselines: {
|
|
435
|
+
left: number;
|
|
436
|
+
right: number;
|
|
437
|
+
} | null;
|
|
433
438
|
pose: HeadPose | null;
|
|
434
439
|
}
|
|
435
440
|
/** The on-device result submitted with the portrait (`gate`, §4.9): numbers only. */
|
|
436
441
|
interface IcaoGateSummary {
|
|
437
442
|
/** In (0, 1]: the gate's eye baseline (1 − blink blendshape; see {@link IcaoGateUpdate.baseline}). */
|
|
438
443
|
baselineEyeOpenness?: number;
|
|
444
|
+
/** In (0, 1], both or neither: the baseline of each eye, which selects kyc-portrait's per-eye rule. */
|
|
445
|
+
baselineEyeOpennessLeft?: number;
|
|
446
|
+
baselineEyeOpennessRight?: number;
|
|
439
447
|
criteria: Partial<Record<IcaoGateCriterion, {
|
|
440
448
|
pass: boolean;
|
|
441
449
|
value: number | null;
|
|
@@ -475,6 +483,11 @@ interface IcaoMeasures {
|
|
|
475
483
|
} | null;
|
|
476
484
|
/** The person's eye-openness baseline; `null` = the absolute floor only. */
|
|
477
485
|
baseline: number | null;
|
|
486
|
+
/** The baseline of each eye: when known, each eye is judged against its own (a stable asymmetry passes). */
|
|
487
|
+
baselines?: {
|
|
488
|
+
left: number;
|
|
489
|
+
right: number;
|
|
490
|
+
} | null;
|
|
478
491
|
/** Blendshapes: `jawOpen`, the larger `mouthSmile*`, `mouthPucker`. */
|
|
479
492
|
mouth: {
|
|
480
493
|
jawOpen: number;
|
|
@@ -511,13 +524,32 @@ declare function eyeOpenness(blendshapes: Readonly<Record<string, number>> | nul
|
|
|
511
524
|
} | null;
|
|
512
525
|
/** The `p`-quantile (0..1) of a sample, nearest-rank. */
|
|
513
526
|
declare function percentile(values: readonly number[], p: number): number | null;
|
|
514
|
-
/** Score one frame against the limits. Pure; `baseline`
|
|
515
|
-
declare function scoreFrame(frame: IcaoFrameObservation, t: ResolvedIcaoTuning, baseline: number | null
|
|
527
|
+
/** Score one frame against the limits. Pure; `baseline` and `baselines` are the eye baselines so far. */
|
|
528
|
+
declare function scoreFrame(frame: IcaoFrameObservation, t: ResolvedIcaoTuning, baseline: number | null, baselines?: {
|
|
529
|
+
left: number;
|
|
530
|
+
right: number;
|
|
531
|
+
} | null): {
|
|
516
532
|
results: Record<IcaoGateCriterion, Measured>;
|
|
517
533
|
pose: HeadPose | null;
|
|
518
534
|
};
|
|
535
|
+
/** One frame's mouth blendshapes, rounded to 3 decimals (diagnostics: numbers only). */
|
|
536
|
+
interface IcaoMouthScores {
|
|
537
|
+
jawOpen: number;
|
|
538
|
+
smile: number;
|
|
539
|
+
pucker: number;
|
|
540
|
+
}
|
|
541
|
+
/** The mouth scores of this gate run, for the staff diagnostics (`portrait_gate` report, 2026-11-06). */
|
|
542
|
+
interface IcaoGateScores {
|
|
543
|
+
/** Since the first frame with scores of this run. */
|
|
544
|
+
elapsedMs: number;
|
|
545
|
+
latest: IcaoMouthScores;
|
|
546
|
+
/** The smallest value of each score over the run: how close the person got to each limit. */
|
|
547
|
+
lowest: IcaoMouthScores;
|
|
548
|
+
}
|
|
519
549
|
interface IcaoGate {
|
|
520
550
|
push(frame: IcaoFrameObservation, nowMs: number): IcaoGateUpdate;
|
|
551
|
+
/** The run's mouth scores (`null` before a frame had any). A retake starts a new run. */
|
|
552
|
+
scores(): IcaoGateScores | null;
|
|
521
553
|
/** The last update (`null` before the first frame). */
|
|
522
554
|
last(): IcaoGateUpdate | null;
|
|
523
555
|
/** The submission's `gate` block from the last update. */
|
|
@@ -531,4 +563,4 @@ interface IcaoGateOptions {
|
|
|
531
563
|
}
|
|
532
564
|
declare function createIcaoGate(t: ResolvedIcaoTuning, options?: IcaoGateOptions): IcaoGate;
|
|
533
565
|
|
|
534
|
-
export {
|
|
566
|
+
export { faceGeometry as A, type BackgroundStats as B, CLIPPED_LUMA as C, faceLighting as D, faceSharpness as E, type FaceGeometry as F, icaoPixelStats as G, HostedClient as H, type IcaoCoachKey as I, icaoWindow as J, judgeIcao as K, type LumaPlane as L, type MediaCheckType as M, lumaPlane as N, percentile as O, type Point as P, portraitCropRegion as Q, type RegionStats as R, SEKYRO_SDK_HEADER as S, poseFromMatrix as T, type UploadMedia as U, regionStats as V, scoreFrame as W, windowOverflow as X, type HostedClientOptions as a, type SubmitOptions as b, type HeadPose as c, type IcaoCriterionState as d, type IcaoGateCriterion as e, type IcaoGateSummary as f, type IcaoGateUpdate as g, type Box as h, type FaceLighting as i, ICAO_CANVAS as j, ICAO_GATE_CRITERIA as k, ICAO_SHARP_REF as l, type IcaoFrameObservation as m, type IcaoGate as n, type IcaoGateOptions as o, type IcaoGateScores as p, type IcaoJudgedCriterion as q, type IcaoMeasures as r, stripMimeParams as s, type IcaoMouthScores as t, type IcaoPixelStats as u, backgroundStats as v, createIcaoGate as w, eyeLineRoll as x, eyeOpenness as y, eyeSpecular as z };
|
|
@@ -1,12 +1,12 @@
|
|
|
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.
|
|
6
6
|
* A closed string-literal union — switch over {@link KnownCode} with a `never`
|
|
7
7
|
* default arm for compile-checked exhaustiveness.
|
|
8
8
|
*/
|
|
9
|
-
declare const KNOWN_CODES: readonly ["session_token_invalid", "session_token_required", "session_token_session_mismatch", "session_not_found", "rate_limit_exceeded", "consent_required", "session_not_active", "check_not_found", "check_already_finalized", "check_out_of_order", "check_type_unsupported", "force_outcome_forbidden", "attestation_invalid", "platform_unregistered", "app_attest_invalid", "too_many_challenges", "inference_unavailable", "mobile_required", "nni_locked", "document_nni_mismatch", "media_content_type_not_allowed", "media_too_large", "media_key_invalid", "media_key_forbidden", "media_not_found", "media_unreadable", "media_session_invalid", "idempotency_key_collision", "idempotency_in_progress", "idempotency_key_required", "validation_error", "internal_error", "unknown_error", "upload_failed", "network_error", "timeout", "nfc_outcome_not_accepted", "identity_confirm_required", "identity_confirm_locked", "choice_not_found", "choice_locked", "choice_option_unavailable", "step_not_on_path", "check_not_active", "sekyro_app_not_allowed", "sekyro_app_unverified", "id_number_locked", "document_id_number_mismatch"];
|
|
9
|
+
declare const KNOWN_CODES: readonly ["session_token_invalid", "session_token_required", "session_token_session_mismatch", "session_not_found", "rate_limit_exceeded", "consent_required", "session_not_active", "check_not_found", "check_already_finalized", "check_out_of_order", "check_type_unsupported", "force_outcome_forbidden", "attestation_invalid", "platform_unregistered", "app_attest_invalid", "too_many_challenges", "inference_unavailable", "mobile_required", "nni_locked", "document_nni_mismatch", "media_content_type_not_allowed", "media_too_large", "media_key_invalid", "media_key_forbidden", "media_not_found", "media_unreadable", "media_session_invalid", "idempotency_key_collision", "idempotency_in_progress", "idempotency_key_required", "validation_error", "internal_error", "unknown_error", "upload_failed", "network_error", "timeout", "nfc_outcome_not_accepted", "identity_confirm_required", "identity_confirm_locked", "choice_not_found", "choice_locked", "choice_option_unavailable", "step_not_on_path", "check_not_active", "sekyro_app_not_allowed", "sekyro_app_unverified", "id_number_locked", "document_id_number_mismatch", "simulated_capture_forbidden"];
|
|
10
10
|
/** Closed union of {@link KNOWN_CODES} — exhaustively switchable. */
|
|
11
11
|
type KnownCode = (typeof KNOWN_CODES)[number];
|
|
12
12
|
/** Narrow an arbitrary wire code to the known union (unknown codes stay `string`). */
|
|
@@ -1,12 +1,12 @@
|
|
|
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.
|
|
6
6
|
* A closed string-literal union — switch over {@link KnownCode} with a `never`
|
|
7
7
|
* default arm for compile-checked exhaustiveness.
|
|
8
8
|
*/
|
|
9
|
-
declare const KNOWN_CODES: readonly ["session_token_invalid", "session_token_required", "session_token_session_mismatch", "session_not_found", "rate_limit_exceeded", "consent_required", "session_not_active", "check_not_found", "check_already_finalized", "check_out_of_order", "check_type_unsupported", "force_outcome_forbidden", "attestation_invalid", "platform_unregistered", "app_attest_invalid", "too_many_challenges", "inference_unavailable", "mobile_required", "nni_locked", "document_nni_mismatch", "media_content_type_not_allowed", "media_too_large", "media_key_invalid", "media_key_forbidden", "media_not_found", "media_unreadable", "media_session_invalid", "idempotency_key_collision", "idempotency_in_progress", "idempotency_key_required", "validation_error", "internal_error", "unknown_error", "upload_failed", "network_error", "timeout", "nfc_outcome_not_accepted", "identity_confirm_required", "identity_confirm_locked", "choice_not_found", "choice_locked", "choice_option_unavailable", "step_not_on_path", "check_not_active", "sekyro_app_not_allowed", "sekyro_app_unverified", "id_number_locked", "document_id_number_mismatch"];
|
|
9
|
+
declare const KNOWN_CODES: readonly ["session_token_invalid", "session_token_required", "session_token_session_mismatch", "session_not_found", "rate_limit_exceeded", "consent_required", "session_not_active", "check_not_found", "check_already_finalized", "check_out_of_order", "check_type_unsupported", "force_outcome_forbidden", "attestation_invalid", "platform_unregistered", "app_attest_invalid", "too_many_challenges", "inference_unavailable", "mobile_required", "nni_locked", "document_nni_mismatch", "media_content_type_not_allowed", "media_too_large", "media_key_invalid", "media_key_forbidden", "media_not_found", "media_unreadable", "media_session_invalid", "idempotency_key_collision", "idempotency_in_progress", "idempotency_key_required", "validation_error", "internal_error", "unknown_error", "upload_failed", "network_error", "timeout", "nfc_outcome_not_accepted", "identity_confirm_required", "identity_confirm_locked", "choice_not_found", "choice_locked", "choice_option_unavailable", "step_not_on_path", "check_not_active", "sekyro_app_not_allowed", "sekyro_app_unverified", "id_number_locked", "document_id_number_mismatch", "simulated_capture_forbidden"];
|
|
10
10
|
/** Closed union of {@link KNOWN_CODES} — exhaustively switchable. */
|
|
11
11
|
type KnownCode = (typeof KNOWN_CODES)[number];
|
|
12
12
|
/** Narrow an arbitrary wire code to the known union (unknown codes stay `string`). */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-33KKMPJ5.js";import"./chunk-GI3UFGRQ.js";export{a as ICAO_FALLBACK,b as resolveIcaoTuning};
|