@sekyro/web 0.1.0-rc.21 → 0.1.0-rc.23

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.
Files changed (88) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +12 -11
  3. package/dist/camera-trait-V4UAOPIQ.js +1 -0
  4. package/dist/{capture-constraints-B5omafmk.d.cts → capture-constraints-CVqpMNGA.d.cts} +7 -3
  5. package/dist/{capture-constraints-B5omafmk.d.ts → capture-constraints-CVqpMNGA.d.ts} +7 -3
  6. package/dist/{capture-session-doc-XBZGXWOP.js → capture-session-doc-BBDKMEAP.js} +1 -1
  7. package/dist/{capture-session-v3-ZO0QOeQH.d.ts → capture-session-v3-CFXYS0Pg.d.cts} +90 -13
  8. package/dist/{capture-session-v3-26FgzBIl.d.cts → capture-session-v3-DID39wUZ.d.ts} +90 -13
  9. package/dist/chunk-2LDOXGY3.js +1 -0
  10. package/dist/chunk-5DTWBDCP.js +1 -0
  11. package/dist/chunk-72LG73YL.js +1 -0
  12. package/dist/chunk-7QZWBDI5.js +1 -0
  13. package/dist/chunk-CPUECYAJ.js +1 -0
  14. package/dist/chunk-FSSMUAKC.js +1 -0
  15. package/dist/chunk-JWEHH2MS.js +1 -0
  16. package/dist/chunk-JYU5YHXN.js +1 -0
  17. package/dist/chunk-LFMIFR6T.js +1 -0
  18. package/dist/chunk-LJYMZQY2.js +1 -0
  19. package/dist/chunk-PBLZ5W7P.js +1 -0
  20. package/dist/chunk-RPVI2OGR.js +1 -0
  21. package/dist/chunk-SX7TUC3V.js +1 -0
  22. package/dist/chunk-TSA6GHUG.js +1 -0
  23. package/dist/chunk-U3NYGTX7.js +1 -0
  24. package/dist/chunk-VWGKUQ3C.js +1 -0
  25. package/dist/chunk-X6UIO5E3.js +1 -0
  26. package/dist/{chunk-QYYJLXKA.js → chunk-YWGW63B3.js} +1 -1
  27. package/dist/client/index.cjs +1 -1
  28. package/dist/client/index.d.cts +3 -3
  29. package/dist/client/index.d.ts +3 -3
  30. package/dist/client/index.js +1 -1
  31. package/dist/clip-inspect-DLJXVKV6.js +1 -0
  32. package/dist/core/index.cjs +1 -1
  33. package/dist/core/index.d.cts +5 -5
  34. package/dist/core/index.d.ts +5 -5
  35. package/dist/core/index.js +1 -1
  36. package/dist/core/v3/detect-worker.cjs +1 -1
  37. package/dist/core/v3/detect-worker.d.cts +1 -1
  38. package/dist/core/v3/detect-worker.d.ts +1 -1
  39. package/dist/core/v3/detect-worker.js +1 -1
  40. package/dist/create-document-capture-K5PDVOGV.js +1 -0
  41. package/dist/create-portrait-capture-5VGYZUOK.js +1 -0
  42. package/dist/{create-verification-KlHIU4Fy.d.ts → create-verification-BP2L4rzV.d.cts} +201 -82
  43. package/dist/{create-verification-CXhXxknV.d.cts → create-verification-Dc1Rd-4T.d.ts} +201 -82
  44. package/dist/{detect-worker-DclNxkZT.d.cts → detect-worker-CHqsPJoM.d.cts} +19 -2
  45. package/dist/{detect-worker-DclNxkZT.d.ts → detect-worker-CHqsPJoM.d.ts} +19 -2
  46. package/dist/{icao-gate-DI8VePWd.d.ts → icao-gate-CIXjbPCL.d.cts} +8 -1
  47. package/dist/{icao-gate-DvzOzHq6.d.cts → icao-gate-COt4O4h_.d.ts} +8 -1
  48. package/dist/{icao-policy-MRB8NMAu.d.cts → icao-policy-Cizs5guu.d.cts} +2 -2
  49. package/dist/{icao-policy-DztbA50-.d.ts → icao-policy-DI4kU6Mv.d.ts} +2 -2
  50. package/dist/index.cjs +1 -1
  51. package/dist/index.d.cts +11 -15
  52. package/dist/index.d.ts +11 -15
  53. package/dist/index.js +1 -1
  54. package/dist/internal/index.cjs +1 -1
  55. package/dist/internal/index.d.cts +49 -34
  56. package/dist/internal/index.d.ts +49 -34
  57. package/dist/internal/index.js +1 -1
  58. package/dist/plan-runner-AD2JTMC7.js +1 -0
  59. package/dist/popup/index.cjs +1 -1
  60. package/dist/popup/index.d.cts +2 -2
  61. package/dist/popup/index.d.ts +2 -2
  62. package/dist/popup/index.js +1 -1
  63. package/dist/{print-AYSCRSZB.js → print-SEWS3VHQ.js} +1 -1
  64. package/dist/{turnstile-FATNZ4AG.js → turnstile-F4DS2L3F.js} +1 -1
  65. package/dist/{types-C_XP92JQ.d.cts → types-Cjnp1o8i.d.cts} +161 -84
  66. package/dist/{types-C_XP92JQ.d.ts → types-Cjnp1o8i.d.ts} +161 -84
  67. package/package.json +1 -1
  68. package/sbom.cdx.json +10 -10
  69. package/dist/camera-trait-45MJTW4K.js +0 -1
  70. package/dist/chunk-234OZEDB.js +0 -1
  71. package/dist/chunk-7Q4YPMAF.js +0 -1
  72. package/dist/chunk-B2X33ZW2.js +0 -1
  73. package/dist/chunk-CQ7SKLMC.js +0 -1
  74. package/dist/chunk-FUHDOEBP.js +0 -1
  75. package/dist/chunk-GT2ZLGF7.js +0 -1
  76. package/dist/chunk-H3HVCWLF.js +0 -1
  77. package/dist/chunk-O5WKNZ2C.js +0 -1
  78. package/dist/chunk-OKWG3PVH.js +0 -1
  79. package/dist/chunk-P3H3D33O.js +0 -1
  80. package/dist/chunk-P6UP4UQY.js +0 -1
  81. package/dist/chunk-SNACCYTL.js +0 -1
  82. package/dist/chunk-TQB3URP2.js +0 -1
  83. package/dist/chunk-VIAT4DEA.js +0 -1
  84. package/dist/chunk-ZADZTM3M.js +0 -1
  85. package/dist/chunk-ZNIZACXD.js +0 -1
  86. package/dist/create-document-capture-23R2F47A.js +0 -1
  87. package/dist/create-portrait-capture-AGFHECK7.js +0 -1
  88. 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
- * single most-confident face or null; NEVER rejects. */
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, createDetector as d, WORKER_PROTOCOL_VERSION as e, WorkerDetectorProxy as f, type WorkerScopeLike as g, installWorkerDetectorHost as h, intrinsicSize as i, toStreamPixels as t, workerOffloadSupported as w };
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
- * single most-confident face or null; NEVER rejects. */
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, createDetector as d, WORKER_PROTOCOL_VERSION as e, WorkerDetectorProxy as f, type WorkerScopeLike as g, installWorkerDetectorHost as h, intrinsicSize as i, toStreamPixels as t, workerOffloadSupported as w };
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 { R as HostedSessionView, j as ConsentLocale, v as HostedConsentView, aK as CameraUnavailableCause, aL as CaptureIssueReport, Y as IdentityConfirmDecision, a4 as MediaKind, av as PresignUploadResult, C as CaptureContext, i as CompleteMediaResult, h as CheckType, e as CheckInputByType, W as IcaoCriterion, a_ as BackgroundUniformity, aX as ResolvedIcaoTuning } from './types-C_XP92JQ.js';
1
+ import { S as HostedSessionView, k as ConsentLocale, w as HostedConsentView, aP as CameraUnavailableCause, aJ as TesterGateInput, aK as TesterGateResponse, aQ as CaptureIssueReport, _ as IdentityConfirmDecision, a6 as MediaKind, aw as PresignUploadResult, C as CaptureContext, j as CompleteMediaResult, h as CheckType, e as CheckInputByType, Y as IcaoCriterion, b4 as BackgroundUniformity, b1 as ResolvedIcaoTuning } from './types-Cjnp1o8i.cjs';
2
2
 
3
3
  interface Point {
4
4
  x: number;
@@ -206,6 +206,13 @@ declare class HostedClient {
206
206
  * `cause` (2026-10-30) says why (`denied` | `no_camera`); omitted, the body stays `{}` and nothing is recorded.
207
207
  */
208
208
  reportCameraUnavailable(cause?: CameraUnavailableCause): Promise<HostedSessionView>;
209
+ /**
210
+ * Spec 2026-11-09 §3.3: "Run real checks as a tester". The body is the liveness clip of the gate (the liveness step's
211
+ * input shape). The server runs the real liveness model and compares the face with the organization's enrolled
212
+ * testers; the answer is the hosted view plus `bound`. Refusals: `403 sandbox_only`, `409 session_already_bound`,
213
+ * `409 tester_gate_closed`, `409 gate_attempts_exhausted`, `429 tester_limit_reached`, `503 inference_unavailable`.
214
+ */
215
+ testerGate(input: TesterGateInput): Promise<TesterGateResponse>;
209
216
  /**
210
217
  * 2026-11-04: record a capture failure the page showed (`POST /hosted/capture-issue`, 204) so it can be diagnosed
211
218
  * later. Fire-and-forget: never rejects, and every failure is swallowed. At most one report per distinct
@@ -1,4 +1,4 @@
1
- import { R as HostedSessionView, j as ConsentLocale, v as HostedConsentView, aK as CameraUnavailableCause, aL as CaptureIssueReport, Y as IdentityConfirmDecision, a4 as MediaKind, av as PresignUploadResult, C as CaptureContext, i as CompleteMediaResult, h as CheckType, e as CheckInputByType, W as IcaoCriterion, a_ as BackgroundUniformity, aX as ResolvedIcaoTuning } from './types-C_XP92JQ.cjs';
1
+ import { S as HostedSessionView, k as ConsentLocale, w as HostedConsentView, aP as CameraUnavailableCause, aJ as TesterGateInput, aK as TesterGateResponse, aQ as CaptureIssueReport, _ as IdentityConfirmDecision, a6 as MediaKind, aw as PresignUploadResult, C as CaptureContext, j as CompleteMediaResult, h as CheckType, e as CheckInputByType, Y as IcaoCriterion, b4 as BackgroundUniformity, b1 as ResolvedIcaoTuning } from './types-Cjnp1o8i.js';
2
2
 
3
3
  interface Point {
4
4
  x: number;
@@ -206,6 +206,13 @@ declare class HostedClient {
206
206
  * `cause` (2026-10-30) says why (`denied` | `no_camera`); omitted, the body stays `{}` and nothing is recorded.
207
207
  */
208
208
  reportCameraUnavailable(cause?: CameraUnavailableCause): Promise<HostedSessionView>;
209
+ /**
210
+ * Spec 2026-11-09 §3.3: "Run real checks as a tester". The body is the liveness clip of the gate (the liveness step's
211
+ * input shape). The server runs the real liveness model and compares the face with the organization's enrolled
212
+ * testers; the answer is the hosted view plus `bound`. Refusals: `403 sandbox_only`, `409 session_already_bound`,
213
+ * `409 tester_gate_closed`, `409 gate_attempts_exhausted`, `429 tester_limit_reached`, `503 inference_unavailable`.
214
+ */
215
+ testerGate(input: TesterGateInput): Promise<TesterGateResponse>;
209
216
  /**
210
217
  * 2026-11-04: record a capture failure the page showed (`POST /hosted/capture-issue`, 204) so it can be diagnosed
211
218
  * later. Fire-and-forget: never rejects, and every failure is swallowed. At most one report per distinct
@@ -1,5 +1,5 @@
1
- import { f as IcaoGateSummary } from './icao-gate-DvzOzHq6.cjs';
2
- import { R as HostedSessionView, I as HostedIcaoPolicy, ar as PortraitIcaoInput } from './types-C_XP92JQ.cjs';
1
+ import { f as IcaoGateSummary } from './icao-gate-CIXjbPCL.cjs';
2
+ import { S as HostedSessionView, J as HostedIcaoPolicy, as as PortraitIcaoInput } from './types-Cjnp1o8i.cjs';
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-DI8VePWd.js';
2
- import { R as HostedSessionView, I as HostedIcaoPolicy, ar as PortraitIcaoInput } from './types-C_XP92JQ.js';
1
+ import { f as IcaoGateSummary } from './icao-gate-COt4O4h_.js';
2
+ import { S as HostedSessionView, J as HostedIcaoPolicy, as as PortraitIcaoInput } from './types-Cjnp1o8i.js';
3
3
 
4
4
  /**
5
5
  * Every error code the hosted page can receive from the session-token surface.