@sekyro/web 0.1.0-rc.12 → 0.1.0-rc.14
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 +13 -0
- package/dist/capture-session-doc-J2CJELJ7.js +1 -0
- package/dist/{capture-session-v3-DqUUcIU-.d.ts → capture-session-v3-BrWuhh8k.d.ts} +1 -1
- package/dist/{capture-session-v3-xNtY5m-7.d.cts → capture-session-v3-CH6iDIql.d.cts} +1 -1
- package/dist/chunk-2BFYVMUU.js +1 -0
- package/dist/chunk-EIETPWIG.js +1 -0
- package/dist/chunk-G6MU3B5V.js +1 -0
- package/dist/chunk-JPAGYRNX.js +1 -0
- package/dist/chunk-KEIGHTGM.js +1 -0
- package/dist/chunk-LPQQOB6M.js +1 -0
- package/dist/{chunk-4IVRXJR2.js → chunk-Q6CPJVOG.js} +1 -1
- package/dist/chunk-VDNW4TR5.js +1 -0
- package/dist/chunk-VRD3HG2L.js +1 -0
- package/dist/{chunk-U6YQAQBD.js → chunk-XEOM3MX3.js} +1 -1
- package/dist/{chunk-EF52BRBD.js → chunk-YKXG7GME.js} +1 -1
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +5 -5
- package/dist/client/index.d.ts +5 -5
- package/dist/client/index.js +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +1 -1
- package/dist/create-document-capture-ENXEVHWQ.js +1 -0
- package/dist/{create-portrait-capture-C462EIB6.js → create-portrait-capture-53XBURNT.js} +1 -1
- package/dist/{create-verification-D4749F6L.d.cts → create-verification-B4f0BrHs.d.cts} +76 -13
- package/dist/{create-verification-CDOTGHQj.d.ts → create-verification-CXATqO0d.d.ts} +76 -13
- package/dist/{icao-gate-BRuIgOE2.d.cts → icao-gate-D576CJ_s.d.cts} +8 -3
- package/dist/{icao-gate-CphntEQ2.d.ts → icao-gate-DSbntJnM.d.ts} +8 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +36 -10
- package/dist/index.d.ts +36 -10
- package/dist/index.js +1 -1
- package/dist/internal/index.cjs +1 -1
- package/dist/internal/index.d.cts +7 -6
- package/dist/internal/index.d.ts +7 -6
- package/dist/internal/index.js +1 -1
- package/dist/plan-runner-YXN3I6CA.js +1 -0
- package/dist/{types-4rgeNIlz.d.cts → types-BtEm3Lxe.d.cts} +39 -12
- package/dist/{types-4rgeNIlz.d.ts → types-BtEm3Lxe.d.ts} +39 -12
- package/package.json +1 -1
- package/sbom.cdx.json +7 -7
- package/dist/capture-session-doc-KW5VR4IR.js +0 -1
- package/dist/chunk-6DPFJNGL.js +0 -1
- package/dist/chunk-73M7LS4H.js +0 -1
- package/dist/chunk-FHJ7HO3M.js +0 -1
- package/dist/chunk-IF6YOFFO.js +0 -1
- package/dist/chunk-MUVEJRGK.js +0 -1
- package/dist/chunk-OBLQOE66.js +0 -1
- package/dist/chunk-Y7S7LYCL.js +0 -1
- package/dist/chunk-YZH5PR5R.js +0 -1
- package/dist/create-document-capture-PXOJHLWV.js +0 -1
- package/dist/plan-runner-2FJLUALJ.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as a,v as b,w as c,x as d}from"./chunk-XEOM3MX3.js";import"./chunk-G6LKLN4U.js";import"./chunk-TDLIXFDT.js";import"./chunk-YKXG7GME.js";import"./chunk-GT2ZLGF7.js";import"./chunk-EIETPWIG.js";import"./chunk-FUHDOEBP.js";import"./chunk-POIQGEZM.js";import"./chunk-2BFYVMUU.js";import"./chunk-FPXL63KZ.js";import"./chunk-Q6CPJVOG.js";import"./chunk-OKWG3PVH.js";import"./chunk-DK5YPBDQ.js";export{a as SAME_FACE_MAX_DROPS,c as createDocumentCapture,d as createDocumentCaptureInternal,b as warmDocumentCapture};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as a,k as b,l as c,m as d,n as e,o as f,p as g}from"./chunk-
|
|
1
|
+
import{j as a,k as b,l as c,m as d,n as e,o as f,p as g}from"./chunk-G6MU3B5V.js";import"./chunk-CJHMFPL6.js";import"./chunk-RI3E7GBN.js";import"./chunk-7ZCZY3ZP.js";import"./chunk-BPE5NSQ2.js";import"./chunk-GI3UFGRQ.js";import"./chunk-GT2ZLGF7.js";import"./chunk-FUHDOEBP.js";import"./chunk-2BFYVMUU.js";export{a as ANALYSIS_LONG_EDGE,c as PORTRAIT_JPEG_QUALITY,b as STILL_MAX_HEIGHT,f as createPortraitCaptureInternal,d as defaultGrabber,e as observe,g as warmPortraitCapture};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as Detector } from './detect-worker-DclNxkZT.cjs';
|
|
2
|
-
import { A as AcceptedDocumentType, a4 as NationalEidOption, aq as StepSection, s as HostedBranding, ad as PlanSectionView, aa as PlanChoiceKind, m as ContactChannel, k as CheckReason, aj as RetakeHint, _ as IdentityMethod, E as EidAfterPass, $ as IdentitySummarySource, G as HostedIcaoPolicy, Z as IcaoReportEntry, Y as IcaoCaptureTuning, H as HostedSessionView, V as HostedStepView, ae as PlanStepView, i as CaptureMode, am as ScreenRampReport, j as CaptureProvenance, S as ScreenRampColour, an as SessionFailureReason, h as AgeEstimationReason, as as VerificationLevel, ar as VerificationAssurance, a3 as MethodChoiceView, b as CameraUnavailableCause, X as HostedVoiceView, ak as ScreenRampChallenge, aw as PersonMask, ax as AttestationInput, e as CheckType, ah as PortraitIcaoInput } from './types-
|
|
3
|
-
import { i as CaptureState$1, f as CaptureSessionV3Events, g as CaptureSessionV3Options, c as CaptureErrorKind$1, p as DeviceClass, b as CaptureArtifacts, I as V3GateQuality, O as V3TelemetryEvent } from './capture-session-v3-
|
|
4
|
-
import { c as IcaoGateSummary, d as IcaoGateUpdate, P as Point, e as Box, j as IcaoFrameObservation, N as HostedClient, k as IcaoGate } from './icao-gate-
|
|
2
|
+
import { A as AcceptedDocumentType, a4 as NationalEidOption, aq as StepSection, s as HostedBranding, ad as PlanSectionView, aa as PlanChoiceKind, m as ContactChannel, k as CheckReason, aj as RetakeHint, _ as IdentityMethod, E as EidAfterPass, $ as IdentitySummarySource, G as HostedIcaoPolicy, Z as IcaoReportEntry, Y as IcaoCaptureTuning, H as HostedSessionView, V as HostedStepView, ae as PlanStepView, i as CaptureMode, am as ScreenRampReport, j as CaptureProvenance, S as ScreenRampColour, an as SessionFailureReason, h as AgeEstimationReason, as as VerificationLevel, ar as VerificationAssurance, a3 as MethodChoiceView, b as CameraUnavailableCause, X as HostedVoiceView, ak as ScreenRampChallenge, aw as PersonMask, ax as AttestationInput, e as CheckType, ah as PortraitIcaoInput } from './types-BtEm3Lxe.cjs';
|
|
3
|
+
import { i as CaptureState$1, f as CaptureSessionV3Events, g as CaptureSessionV3Options, c as CaptureErrorKind$1, p as DeviceClass, b as CaptureArtifacts, I as V3GateQuality, O as V3TelemetryEvent } from './capture-session-v3-CH6iDIql.cjs';
|
|
4
|
+
import { c as IcaoGateSummary, d as IcaoGateUpdate, P as Point, e as Box, j as IcaoFrameObservation, N as HostedClient, k as IcaoGate } from './icao-gate-D576CJ_s.cjs';
|
|
5
5
|
|
|
6
6
|
declare const ISSUER_CODES: readonly string[];
|
|
7
7
|
|
|
@@ -106,6 +106,12 @@ interface PhoneOtpSnapshot extends StepAttempts {
|
|
|
106
106
|
* without a channel (SMS). With more than one, `send` needs the person's choice.
|
|
107
107
|
*/
|
|
108
108
|
channels: OtpChannel[];
|
|
109
|
+
/**
|
|
110
|
+
* The countries the number may be from (ISO alpha-2, the first the default of the
|
|
111
|
+
* country picker; person data spec Q16). Absent from a server before person data
|
|
112
|
+
* Task A9: then the person types a full international number.
|
|
113
|
+
*/
|
|
114
|
+
phoneCountries?: string[];
|
|
109
115
|
sentToMasked?: string;
|
|
110
116
|
channel?: "sms" | "whatsapp";
|
|
111
117
|
codeExpiresAt?: string;
|
|
@@ -214,6 +220,9 @@ interface IdentitySummarySnapshot {
|
|
|
214
220
|
nationality?: string;
|
|
215
221
|
documentType?: string;
|
|
216
222
|
documentNumberMasked?: string;
|
|
223
|
+
/** The bound ID number, masked (last 4), from either view name. */
|
|
224
|
+
idNumberMasked?: string;
|
|
225
|
+
/** @deprecated Read `idNumberMasked` (the same value). */
|
|
217
226
|
nniMasked?: string;
|
|
218
227
|
expiryDate?: string;
|
|
219
228
|
/** The portrait can be fetched (`portrait()` on the handle). */
|
|
@@ -897,9 +906,11 @@ interface LivenessCaptureOptions {
|
|
|
897
906
|
* - `attestation` — Turnstile failed client-side or `attestation_invalid` after one retry;
|
|
898
907
|
* - `network` — transport / API failure after the bounded replays;
|
|
899
908
|
* - `nni_unbound` — `population_registry` is the frontier but the session was
|
|
900
|
-
* minted WITHOUT a
|
|
901
|
-
* SDK cannot submit it. Mint the session with the
|
|
902
|
-
* population step yourself) before starting the capture
|
|
909
|
+
* minted WITHOUT a bound ID number (`POST /sessions` `subject.idNumber`), so
|
|
910
|
+
* the SDK cannot submit it. Mint the session with the number (or complete the
|
|
911
|
+
* population step yourself) before starting the capture. `id_number_unbound`
|
|
912
|
+
* is its generic name (person data spec Appendix A.2): this SDK still reports
|
|
913
|
+
* `nni_unbound`; handle both;
|
|
903
914
|
* - `method_required` — the session waits on the identity-method choice
|
|
904
915
|
* (profile v2 step 3; `on('method')` fired). Ask the person, call
|
|
905
916
|
* {@link Verification.selectMethod}, then capture again;
|
|
@@ -918,7 +929,7 @@ interface LivenessCaptureOptions {
|
|
|
918
929
|
* upload when the view says so; otherwise the backend answers the submit with
|
|
919
930
|
* a request-level `409 mobile_required` (no attempt used, nothing billed).
|
|
920
931
|
*/
|
|
921
|
-
type SdkFailureReason = "no_recorder" | "attestation" | "network" | "nni_unbound" | "method_required" | "inference_unavailable" | "portrait_required";
|
|
932
|
+
type SdkFailureReason = "no_recorder" | "attestation" | "network" | "nni_unbound" | "id_number_unbound" | "method_required" | "inference_unavailable" | "portrait_required";
|
|
922
933
|
/** Backend reason taxonomy ∪ the SDK-side failure reasons. */
|
|
923
934
|
type ReasonCode = CheckReason | SessionFailureReason | SdkFailureReason | AgeEstimationReason;
|
|
924
935
|
/**
|
|
@@ -1023,8 +1034,8 @@ interface Verification {
|
|
|
1023
1034
|
consent(): Promise<void>;
|
|
1024
1035
|
/**
|
|
1025
1036
|
* Submit `population_registry` early with an empty input when it is the
|
|
1026
|
-
* pending frontier and the backend holds the
|
|
1027
|
-
* the one the document step read (`
|
|
1037
|
+
* pending frontier and the backend holds the number: the SERVER-bound one, or
|
|
1038
|
+
* the one the document step read (`idNumberFromDocument`). Retries once on
|
|
1028
1039
|
* `registry_unavailable`. Never rejects — failures surface through
|
|
1029
1040
|
* `result`. Idempotent.
|
|
1030
1041
|
*/
|
|
@@ -1206,11 +1217,21 @@ interface EidStepHandle extends EidSnapshot {
|
|
|
1206
1217
|
interface RegistryStepHandle extends RegistrySnapshot {
|
|
1207
1218
|
/** Switch to another option of the open choice (`context.switchable`; `POST /hosted/choice`). Present only with it. */
|
|
1208
1219
|
chooseOption?(option: string): Promise<void>;
|
|
1209
|
-
/**
|
|
1220
|
+
/**
|
|
1221
|
+
* Typed source only: checks the national number locally (the registry country's
|
|
1222
|
+
* rule: 10 digits and the check digit) before submitting it (`{ idNumber, nni }`, the
|
|
1223
|
+
* former name too until it is removed). A refused
|
|
1224
|
+
* number rejects with `InvalidInputError("idNumber", "format" | "check_digit")`.
|
|
1225
|
+
*/
|
|
1226
|
+
submitIdNumber(idNumber: string): Promise<void>;
|
|
1227
|
+
/**
|
|
1228
|
+
* @deprecated Use {@link RegistryStepHandle.submitIdNumber} (the same request).
|
|
1229
|
+
* Rejects with `InvalidInputError("nni", …)`.
|
|
1230
|
+
*/
|
|
1210
1231
|
submitNni(nni: string): Promise<void>;
|
|
1211
|
-
/** Bound or document source: submit with an empty input (the server holds the
|
|
1232
|
+
/** Bound or document source: submit with an empty input (the server holds the number). */
|
|
1212
1233
|
confirm(): Promise<void>;
|
|
1213
|
-
/** After `
|
|
1234
|
+
/** After `registry_record_not_found` (formerly `nni_not_found`; `canUseDocument`): switch to the document photo. */
|
|
1214
1235
|
useDocument(): Promise<void>;
|
|
1215
1236
|
}
|
|
1216
1237
|
/** The document step — any issuing country (profile v2 §5.3a). */
|
|
@@ -2155,6 +2176,16 @@ declare class DocAssist {
|
|
|
2155
2176
|
* latency. Fire-and-forget; failures fall back to the lazy path.
|
|
2156
2177
|
*/
|
|
2157
2178
|
declare function warmDocDetector(): void;
|
|
2179
|
+
/**
|
|
2180
|
+
* The opened camera must show a live picture within this many ms: a camera that never plays, ends, or sends black
|
|
2181
|
+
* frames is reopened once, then reported as a retryable error, so the scan view never stays dark without a word
|
|
2182
|
+
* (staging 2026-11-01). 0 = no watch.
|
|
2183
|
+
*/
|
|
2184
|
+
declare const DOC_FIRST_FRAME_MS = 4000;
|
|
2185
|
+
/** Ticks whose frame-wide mean luma stays at or under this read as a black (dead) camera picture. */
|
|
2186
|
+
declare const DOC_BLACK_FRAME_LUMA = 2;
|
|
2187
|
+
/** Black ticks in a row, with no lit frame since the camera opened, that count as a dead picture. */
|
|
2188
|
+
declare const DOC_BLACK_FRAME_TICKS = 3;
|
|
2158
2189
|
/** Doc detect cadence per device class — scanic @480px is ~3–8× a face tick,
|
|
2159
2190
|
* so the doc loop paces slower than the face profiles (findings §1: 2–5 Hz). */
|
|
2160
2191
|
declare const DOC_CADENCE_HZ: Readonly<Record<DeviceClass, number>>;
|
|
@@ -2350,6 +2381,13 @@ interface CaptureSessionDocOptions {
|
|
|
2350
2381
|
label: string;
|
|
2351
2382
|
kind?: string;
|
|
2352
2383
|
}>>;
|
|
2384
|
+
/**
|
|
2385
|
+
* Ms the opened camera has to show a live picture (default {@link DOC_FIRST_FRAME_MS}; 0 = no watch): a stream that
|
|
2386
|
+
* never plays, ends, or shows only black frames is reopened once, then reported as a retryable `generic` error.
|
|
2387
|
+
*/
|
|
2388
|
+
firstFrameMs?: number;
|
|
2389
|
+
/** (the video plays and has a decoded frame) — whether the camera shows a live picture. */
|
|
2390
|
+
hasFrames?: (video: HTMLVideoElement) => boolean;
|
|
2353
2391
|
/** (performance.now) */
|
|
2354
2392
|
now?: () => number;
|
|
2355
2393
|
/** (setTimeout/clearTimeout) — the cadence pacer. */
|
|
@@ -2393,10 +2431,35 @@ declare class CaptureSessionDoc {
|
|
|
2393
2431
|
/** Last detected quad + detect size (for a host-timed {@link captureNow}). */
|
|
2394
2432
|
private lastQuad;
|
|
2395
2433
|
private lastDetect;
|
|
2434
|
+
/** The first-frame watch of the current camera ({@link DOC_FIRST_FRAME_MS}). */
|
|
2435
|
+
private frameWatch;
|
|
2436
|
+
/** The camera was reopened once by the watch since it last showed a picture. */
|
|
2437
|
+
private reopened;
|
|
2438
|
+
/** A tick saw a lit frame since the camera opened; black ticks in a row before that. */
|
|
2439
|
+
private lit;
|
|
2440
|
+
private blackTicks;
|
|
2441
|
+
/** Unsubscribes the opened track's `ended` listener. */
|
|
2442
|
+
private offEnded;
|
|
2396
2443
|
constructor(opts: CaptureSessionDocOptions);
|
|
2397
2444
|
on<K extends keyof CaptureSessionDocEvents>(event: K, handler: Handler<K>): () => void;
|
|
2398
2445
|
private emit;
|
|
2399
2446
|
start(): Promise<void>;
|
|
2447
|
+
/** play() on the kept stream when it is still live and attached (see start()); null when there is nothing to play. */
|
|
2448
|
+
private resumePlayback;
|
|
2449
|
+
/** Whether the video shows a live picture right now (playing, with a decoded frame). */
|
|
2450
|
+
private framesNow;
|
|
2451
|
+
/** Arm the first-frame watch for this camera. */
|
|
2452
|
+
private watchFrames;
|
|
2453
|
+
private clearFrameWatch;
|
|
2454
|
+
/** The opened track ended on its own (the camera was taken or interrupted): the same path as a dead picture. */
|
|
2455
|
+
private watchEnded;
|
|
2456
|
+
/**
|
|
2457
|
+
* The camera opened but shows no live picture: reopen it once (silently), then a retryable error. A live stream the
|
|
2458
|
+
* browser would not play is kept for the retry's tap to play it ({@link resumePlayback}).
|
|
2459
|
+
*/
|
|
2460
|
+
private cameraDead;
|
|
2461
|
+
/** Stop and detach this engine's stream. */
|
|
2462
|
+
private releaseStream;
|
|
2400
2463
|
/** Restart the gate for another side / a retake (same stream). */
|
|
2401
2464
|
rearm(side?: DocSide): void;
|
|
2402
2465
|
/**
|
|
@@ -3043,4 +3106,4 @@ declare function createVerification(options: VerificationOptions): Verification;
|
|
|
3043
3106
|
/** {@link createVerification} with construction seams (tests / Sekyro AI-internal hosts). */
|
|
3044
3107
|
declare function createVerificationInternal(options: VerificationOptions, internals: VerificationInternals): Verification;
|
|
3045
3108
|
|
|
3046
|
-
export { type LivenessCaptureEvents as $, type AcceptedDocumentsLike as A, type DocumentMrzUpdate as B, type CameraFacing as C, type DocumentCaptureOptions as D, type DocumentPoint as E, type DocumentQuad as F, type DocumentReticle as G, type DocumentScanPhase as H, type DocumentScanUpdate as I, type DocumentSide as J, type DocumentSnapshot as K, type DocumentStepHandle as L, type EidSnapshot as M, type EidStepHandle as N, type EmailOtpSnapshot as O, type PortraitCaptureOptions as P, type EmailOtpStepHandle as Q, type EmailSource as R, type GateHint as S, type GateUpdate as T, ISSUER_CODES as U, type IdentitySummarySnapshot as V, type IdentitySummaryStepHandle as W, type InLaneSwitch as X, type LivePhotoGateUpdate as Y, type LivePhotoPlan as Z, type LivenessAssetsStatus as _, type DocumentCaptureHandle as a, type LiveMrzTuning as a$, type LivenessCaptureHandle as a0, type LivenessCaptureOptions as a1, type LivenessSnapshot as a2, type LivenessStartOptions as a3, type LivenessStepHandle as a4, type MethodSnapshot as a5, type MethodStepHandle as a6, type MobileRequiredSnapshot as a7, type MobileRequiredStepHandle as a8, type OtpChannel as a9, type UnsupportedSnapshot as aA, type UnsupportedStepHandle as aB, type Verification as aC, type VerificationBusy as aD, type VerificationEvents as aE, type VerificationLocale as aF, type VerificationOptions as aG, type VerificationResult as aH, type VerificationStatus as aI, type VerificationStep as aJ, WEB_IDENTITY_METHODS as aK, acceptedIssuers as aL, acceptedTypesFor as aM, cameraUnavailableCauseOf as aN, createLivenessCapture as aO, createVerification as aP, deriveStep as aQ, flagOf as aR, getLivenessAssetsStatus as aS, laneOf as aT, otherOptions as aU, preloadLivenessAssets as aV, releaseLivenessAssets as aW, resolveAcceptedDocuments as aX, sectionOf as aY, subscribeLivenessAssets as aZ, type DocCatalogEntry as a_, type OtpNumberSource as aa, PLATFORM_UNSUPPORTED as ab, type PhoneOtpSnapshot as ac, type PhoneOtpStepHandle as ad, type PlanChoiceSnapshot as ae, type PortraitCaptureEvents as af, type PortraitCaptureState as ag, type PortraitGateUpdate as ah, type PortraitSnapshot as ai, type PortraitStartOptions as aj, type PortraitStepHandle as ak, type PreloadLivenessAssetsOptions as al, type ProcessingSnapshot as am, type ProcessingStepHandle as an, type ReasonCode as ao, type RegistrySnapshot as ap, type RegistrySource as aq, type RegistryStepHandle as ar, type ResultDisplay as as, type ResultSnapshot as at, type ResultStepHandle as au, type SdkFailureReason as av, type StepAttempts as aw, type StepContext as ax, type StepSnapshot as ay, type UnsupportedReason as az, type PortraitCaptureHandle as b,
|
|
3109
|
+
export { type LivenessCaptureEvents as $, type AcceptedDocumentsLike as A, type DocumentMrzUpdate as B, type CameraFacing as C, type DocumentCaptureOptions as D, type DocumentPoint as E, type DocumentQuad as F, type DocumentReticle as G, type DocumentScanPhase as H, type DocumentScanUpdate as I, type DocumentSide as J, type DocumentSnapshot as K, type DocumentStepHandle as L, type EidSnapshot as M, type EidStepHandle as N, type EmailOtpSnapshot as O, type PortraitCaptureOptions as P, type EmailOtpStepHandle as Q, type EmailSource as R, type GateHint as S, type GateUpdate as T, ISSUER_CODES as U, type IdentitySummarySnapshot as V, type IdentitySummaryStepHandle as W, type InLaneSwitch as X, type LivePhotoGateUpdate as Y, type LivePhotoPlan as Z, type LivenessAssetsStatus as _, type DocumentCaptureHandle as a, type LiveMrzTuning as a$, type LivenessCaptureHandle as a0, type LivenessCaptureOptions as a1, type LivenessSnapshot as a2, type LivenessStartOptions as a3, type LivenessStepHandle as a4, type MethodSnapshot as a5, type MethodStepHandle as a6, type MobileRequiredSnapshot as a7, type MobileRequiredStepHandle as a8, type OtpChannel as a9, type UnsupportedSnapshot as aA, type UnsupportedStepHandle as aB, type Verification as aC, type VerificationBusy as aD, type VerificationEvents as aE, type VerificationLocale as aF, type VerificationOptions as aG, type VerificationResult as aH, type VerificationStatus as aI, type VerificationStep as aJ, WEB_IDENTITY_METHODS as aK, acceptedIssuers as aL, acceptedTypesFor as aM, cameraUnavailableCauseOf as aN, createLivenessCapture as aO, createVerification as aP, deriveStep as aQ, flagOf as aR, getLivenessAssetsStatus as aS, laneOf as aT, otherOptions as aU, preloadLivenessAssets as aV, releaseLivenessAssets as aW, resolveAcceptedDocuments as aX, sectionOf as aY, subscribeLivenessAssets as aZ, type DocCatalogEntry as a_, type OtpNumberSource as aa, PLATFORM_UNSUPPORTED as ab, type PhoneOtpSnapshot as ac, type PhoneOtpStepHandle as ad, type PlanChoiceSnapshot as ae, type PortraitCaptureEvents as af, type PortraitCaptureState as ag, type PortraitGateUpdate as ah, type PortraitSnapshot as ai, type PortraitStartOptions as aj, type PortraitStepHandle as ak, type PreloadLivenessAssetsOptions as al, type ProcessingSnapshot as am, type ProcessingStepHandle as an, type ReasonCode as ao, type RegistrySnapshot as ap, type RegistrySource as aq, type RegistryStepHandle as ar, type ResultDisplay as as, type ResultSnapshot as at, type ResultStepHandle as au, type SdkFailureReason as av, type StepAttempts as aw, type StepContext as ax, type StepSnapshot as ay, type UnsupportedReason as az, type PortraitCaptureHandle as b, FLIP_TIMEOUT_MS as b$, type TextLockTuning as b0, type OcrEngineClient as b1, type DocAssistReport as b2, type ReadyInfo as b3, type LoadFailure as b4, type OcrEngineOptions as b5, type SubmitRuntime as b6, type HostedClientLike as b7, ANALYSIS_LONG_EDGE as b8, ASPECT_BANDS as b9, type DocCameraTuning as bA, type DocCaptureReport as bB, type DocCaptureVia as bC, type DocChecksPayload as bD, type DocEngineLike as bE, DocFeedbackAggregator as bF, type DocFeedbackKey as bG, type DocFeedbackState as bH, type DocFormat as bI, type DocFrameAnalysis as bJ, type DocFrameMeasures as bK, type DocGateQuality as bL, type DocGateThresholds as bM, type DocGateTick as bN, type DocGateTickInput as bO, DocGateV1 as bP, type DocQuad as bQ, type DocQuadPoint as bR, type DocShutterReason as bS, type DocShutterTuning as bT, type DocSide as bU, type DocumentCaptureController as bV, type DocumentCaptureInternals as bW, EMPTY_GUIDE_METRICS as bX, type EncodedDocument as bY, FLIP_FILL_MIN as bZ, FLIP_GAP_MS as b_, AttestationError as ba, BLUR_REFUSE_SHARPNESS_MAX as bb, type BlurStatus as bc, CAPTURE_CANDIDATE_SPACING_MS as bd, CAPTURE_EXTRA_CANDIDATES as be, CLIP_MIME_ALLOWLIST as bf, type CaptureEngine as bg, CaptureSessionDoc as bh, type CaptureSessionDocEvents as bi, type CaptureSessionDocOptions as bj, DOC_ANALYSIS_DEFAULTS as bk, DOC_BLACK_FRAME_LUMA as bl, DOC_BLACK_FRAME_TICKS as bm, DOC_CADENCE_HZ as bn, DOC_CAMERA_TUNING_DEFAULTS as bo, DOC_CATALOG as bp, DOC_DETECT_WIDTH as bq, DOC_FEEDBACK_STATES as br, DOC_FIRST_FRAME_MS as bs, DOC_GATE_V1_DEFAULTS as bt, DOC_SHUTTER_DEFAULTS as bu, type DeviceReadHint as bv, type DocArtifacts as bw, DocAssist as bx, type DocAssistEngine as by, type DocAssistTick as bz, type CaptureChannel as c, aspectBand as c$, type FocusCaps as c0, type FramingStatus as c1, GUIDE_LOCK_DEFAULTS as c2, type GlareStatus as c3, type GrabbedFrame as c4, type GuideBlocker as c5, GuideLock as c6, type GuideLockTick as c7, type GuideLockTuning as c8, type GuideMetrics as c9, MR_DOC_CATALOG as cA, NO_REPORT_MS as cB, type OpenDocCameraDeps as cC, PORTRAIT_JPEG_QUALITY as cD, PRELOAD_BLAZE_INIT_TIMEOUT_MS as cE, PRELOAD_BUDGET_MS as cF, PROCESSING_POLL_DELAY_MS as cG, PROCESSING_POLL_MAX as cH, type PortraitCaptureController as cI, type PortraitCaptureInternals as cJ, REGISTRY_RETRY_DELAY_MS as cK, type ReticleType as cL, SAME_FACE_MAX_DROPS as cM, type ScanEvent as cN, type ScanLayout as cO, type ScanNotice as cP, type ScanPhase as cQ, type ScanReport as cR, type ScanSide as cS, type ScanState as cT, type SubmitExecutor as cU, TEXT_LOCK_DEFAULTS as cV, TRANSPORT_REPLAY_ATTEMPTS as cW, TRANSPORT_REPLAY_DELAY_MS as cX, type VerificationInternals as cY, analyzeDocFrame as cZ, analyzeGuide as c_, type GuideRect as ca, INFERENCE_RETRY_ATTEMPTS as cb, INFERENCE_RETRY_DEFAULT_S as cc, LANDMARKER_MODEL as cd, LENS_STORAGE_KEY as ce, LENS_TRY_MAX as cf, LIVE_MRZ_DEFAULTS as cg, LIVE_PHOTO_IDLE_MS as ch, LIVE_PHOTO_MAX_HZ as ci, type LandmarkedFace as cj, type LandmarkerLike as ck, type LensKind as cl, type LensSource as cm, type LightingStatus as cn, type LiveMrzCapture as co, type LiveMrzState as cp, type LivePhotoGate as cq, type LivePhotoKit as cr, type LivePhotoKitInternals as cs, type LivePhotoKitOptions as ct, type LivePhotoStill as cu, type LivenessCaptureInternalHandle as cv, type LivenessCaptureInternals as cw, type LivenessFlowDeps as cx, type LivenessFlowOutcome as cy, MANUAL_SHUTTER_MS as cz, type CaptureEngineId as d, aspectFits as d0, buildDeviceReadHint as d1, coverPointToVideo as d2, createDocumentCaptureInternal as d3, createFaceLandmarker as d4, createLivePhotoKit as d5, createLivenessCaptureInternal as d6, createPortraitCaptureInternal as d7, createVerificationInternal as d8, docZoomFor as d9, resolveDocCameraTuning as dA, resolveDocShutterTuning as dB, resolveGuideLockTuning as dC, runLivenessFlow as dD, runSubmission as dE, scannerFormatFor as dF, setPreloadLoaderForTests as dG, settledHint as dH, singleShotFocusAt as dI, specularFraction as dJ, supportsFocusMode as dK, warmDocDetector as dL, writeStoredLens as dM, encodeDocumentImage as da, facesOf as db, feedbackVoteOf as dc, focusOk as dd, guideQuad as de, guideRegionInFrame as df, initialScanState as dg, lensKindOf as dh, mapEngineState as di, mapErrorKind as dj, mapGuidanceHint as dk, nextScanState as dl, observe as dm, openDocCamera as dn, passportBandOf as dp, portraitMatchStep as dq, preloadedDetectorFactory as dr, quadAreaFrac as ds, quadBounds as dt, quadIou as du, quadTiltRatio as dv, randomUuid as dw, rankBackCameras as dx, readStoredLens as dy, resetLivenessAssetsForTests as dz, type CaptureError as e, type CaptureErrorKind as f, type CaptureState as g, type CapturedArtifacts as h, type CapturedDocument as i, type CapturedPortrait as j, type ChoiceOptionSnapshot as k, type ChoiceSnapshot as l, type ChoiceStepHandle as m, type ContactChoiceSnapshot as n, type ContactChoiceStepHandle as o, DEFAULT_API_ORIGIN as p, DOCUMENT_TYPE_ORDER as q, type DeriveStepEnv as r, type DocumentCaptureEvents as s, type DocumentCaptureState as t, type DocumentFeedback as u, type DocumentFeedbackKey as v, type DocumentGateUpdate as w, type DocumentGuide as x, type DocumentGuideMeasure as y, type DocumentLiveMrzOptions as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as Detector } from './detect-worker-DclNxkZT.js';
|
|
2
|
-
import { A as AcceptedDocumentType, a4 as NationalEidOption, aq as StepSection, s as HostedBranding, ad as PlanSectionView, aa as PlanChoiceKind, m as ContactChannel, k as CheckReason, aj as RetakeHint, _ as IdentityMethod, E as EidAfterPass, $ as IdentitySummarySource, G as HostedIcaoPolicy, Z as IcaoReportEntry, Y as IcaoCaptureTuning, H as HostedSessionView, V as HostedStepView, ae as PlanStepView, i as CaptureMode, am as ScreenRampReport, j as CaptureProvenance, S as ScreenRampColour, an as SessionFailureReason, h as AgeEstimationReason, as as VerificationLevel, ar as VerificationAssurance, a3 as MethodChoiceView, b as CameraUnavailableCause, X as HostedVoiceView, ak as ScreenRampChallenge, aw as PersonMask, ax as AttestationInput, e as CheckType, ah as PortraitIcaoInput } from './types-
|
|
3
|
-
import { i as CaptureState$1, f as CaptureSessionV3Events, g as CaptureSessionV3Options, c as CaptureErrorKind$1, p as DeviceClass, b as CaptureArtifacts, I as V3GateQuality, O as V3TelemetryEvent } from './capture-session-v3-
|
|
4
|
-
import { c as IcaoGateSummary, d as IcaoGateUpdate, P as Point, e as Box, j as IcaoFrameObservation, N as HostedClient, k as IcaoGate } from './icao-gate-
|
|
2
|
+
import { A as AcceptedDocumentType, a4 as NationalEidOption, aq as StepSection, s as HostedBranding, ad as PlanSectionView, aa as PlanChoiceKind, m as ContactChannel, k as CheckReason, aj as RetakeHint, _ as IdentityMethod, E as EidAfterPass, $ as IdentitySummarySource, G as HostedIcaoPolicy, Z as IcaoReportEntry, Y as IcaoCaptureTuning, H as HostedSessionView, V as HostedStepView, ae as PlanStepView, i as CaptureMode, am as ScreenRampReport, j as CaptureProvenance, S as ScreenRampColour, an as SessionFailureReason, h as AgeEstimationReason, as as VerificationLevel, ar as VerificationAssurance, a3 as MethodChoiceView, b as CameraUnavailableCause, X as HostedVoiceView, ak as ScreenRampChallenge, aw as PersonMask, ax as AttestationInput, e as CheckType, ah as PortraitIcaoInput } from './types-BtEm3Lxe.js';
|
|
3
|
+
import { i as CaptureState$1, f as CaptureSessionV3Events, g as CaptureSessionV3Options, c as CaptureErrorKind$1, p as DeviceClass, b as CaptureArtifacts, I as V3GateQuality, O as V3TelemetryEvent } from './capture-session-v3-BrWuhh8k.js';
|
|
4
|
+
import { c as IcaoGateSummary, d as IcaoGateUpdate, P as Point, e as Box, j as IcaoFrameObservation, N as HostedClient, k as IcaoGate } from './icao-gate-DSbntJnM.js';
|
|
5
5
|
|
|
6
6
|
declare const ISSUER_CODES: readonly string[];
|
|
7
7
|
|
|
@@ -106,6 +106,12 @@ interface PhoneOtpSnapshot extends StepAttempts {
|
|
|
106
106
|
* without a channel (SMS). With more than one, `send` needs the person's choice.
|
|
107
107
|
*/
|
|
108
108
|
channels: OtpChannel[];
|
|
109
|
+
/**
|
|
110
|
+
* The countries the number may be from (ISO alpha-2, the first the default of the
|
|
111
|
+
* country picker; person data spec Q16). Absent from a server before person data
|
|
112
|
+
* Task A9: then the person types a full international number.
|
|
113
|
+
*/
|
|
114
|
+
phoneCountries?: string[];
|
|
109
115
|
sentToMasked?: string;
|
|
110
116
|
channel?: "sms" | "whatsapp";
|
|
111
117
|
codeExpiresAt?: string;
|
|
@@ -214,6 +220,9 @@ interface IdentitySummarySnapshot {
|
|
|
214
220
|
nationality?: string;
|
|
215
221
|
documentType?: string;
|
|
216
222
|
documentNumberMasked?: string;
|
|
223
|
+
/** The bound ID number, masked (last 4), from either view name. */
|
|
224
|
+
idNumberMasked?: string;
|
|
225
|
+
/** @deprecated Read `idNumberMasked` (the same value). */
|
|
217
226
|
nniMasked?: string;
|
|
218
227
|
expiryDate?: string;
|
|
219
228
|
/** The portrait can be fetched (`portrait()` on the handle). */
|
|
@@ -897,9 +906,11 @@ interface LivenessCaptureOptions {
|
|
|
897
906
|
* - `attestation` — Turnstile failed client-side or `attestation_invalid` after one retry;
|
|
898
907
|
* - `network` — transport / API failure after the bounded replays;
|
|
899
908
|
* - `nni_unbound` — `population_registry` is the frontier but the session was
|
|
900
|
-
* minted WITHOUT a
|
|
901
|
-
* SDK cannot submit it. Mint the session with the
|
|
902
|
-
* population step yourself) before starting the capture
|
|
909
|
+
* minted WITHOUT a bound ID number (`POST /sessions` `subject.idNumber`), so
|
|
910
|
+
* the SDK cannot submit it. Mint the session with the number (or complete the
|
|
911
|
+
* population step yourself) before starting the capture. `id_number_unbound`
|
|
912
|
+
* is its generic name (person data spec Appendix A.2): this SDK still reports
|
|
913
|
+
* `nni_unbound`; handle both;
|
|
903
914
|
* - `method_required` — the session waits on the identity-method choice
|
|
904
915
|
* (profile v2 step 3; `on('method')` fired). Ask the person, call
|
|
905
916
|
* {@link Verification.selectMethod}, then capture again;
|
|
@@ -918,7 +929,7 @@ interface LivenessCaptureOptions {
|
|
|
918
929
|
* upload when the view says so; otherwise the backend answers the submit with
|
|
919
930
|
* a request-level `409 mobile_required` (no attempt used, nothing billed).
|
|
920
931
|
*/
|
|
921
|
-
type SdkFailureReason = "no_recorder" | "attestation" | "network" | "nni_unbound" | "method_required" | "inference_unavailable" | "portrait_required";
|
|
932
|
+
type SdkFailureReason = "no_recorder" | "attestation" | "network" | "nni_unbound" | "id_number_unbound" | "method_required" | "inference_unavailable" | "portrait_required";
|
|
922
933
|
/** Backend reason taxonomy ∪ the SDK-side failure reasons. */
|
|
923
934
|
type ReasonCode = CheckReason | SessionFailureReason | SdkFailureReason | AgeEstimationReason;
|
|
924
935
|
/**
|
|
@@ -1023,8 +1034,8 @@ interface Verification {
|
|
|
1023
1034
|
consent(): Promise<void>;
|
|
1024
1035
|
/**
|
|
1025
1036
|
* Submit `population_registry` early with an empty input when it is the
|
|
1026
|
-
* pending frontier and the backend holds the
|
|
1027
|
-
* the one the document step read (`
|
|
1037
|
+
* pending frontier and the backend holds the number: the SERVER-bound one, or
|
|
1038
|
+
* the one the document step read (`idNumberFromDocument`). Retries once on
|
|
1028
1039
|
* `registry_unavailable`. Never rejects — failures surface through
|
|
1029
1040
|
* `result`. Idempotent.
|
|
1030
1041
|
*/
|
|
@@ -1206,11 +1217,21 @@ interface EidStepHandle extends EidSnapshot {
|
|
|
1206
1217
|
interface RegistryStepHandle extends RegistrySnapshot {
|
|
1207
1218
|
/** Switch to another option of the open choice (`context.switchable`; `POST /hosted/choice`). Present only with it. */
|
|
1208
1219
|
chooseOption?(option: string): Promise<void>;
|
|
1209
|
-
/**
|
|
1220
|
+
/**
|
|
1221
|
+
* Typed source only: checks the national number locally (the registry country's
|
|
1222
|
+
* rule: 10 digits and the check digit) before submitting it (`{ idNumber, nni }`, the
|
|
1223
|
+
* former name too until it is removed). A refused
|
|
1224
|
+
* number rejects with `InvalidInputError("idNumber", "format" | "check_digit")`.
|
|
1225
|
+
*/
|
|
1226
|
+
submitIdNumber(idNumber: string): Promise<void>;
|
|
1227
|
+
/**
|
|
1228
|
+
* @deprecated Use {@link RegistryStepHandle.submitIdNumber} (the same request).
|
|
1229
|
+
* Rejects with `InvalidInputError("nni", …)`.
|
|
1230
|
+
*/
|
|
1210
1231
|
submitNni(nni: string): Promise<void>;
|
|
1211
|
-
/** Bound or document source: submit with an empty input (the server holds the
|
|
1232
|
+
/** Bound or document source: submit with an empty input (the server holds the number). */
|
|
1212
1233
|
confirm(): Promise<void>;
|
|
1213
|
-
/** After `
|
|
1234
|
+
/** After `registry_record_not_found` (formerly `nni_not_found`; `canUseDocument`): switch to the document photo. */
|
|
1214
1235
|
useDocument(): Promise<void>;
|
|
1215
1236
|
}
|
|
1216
1237
|
/** The document step — any issuing country (profile v2 §5.3a). */
|
|
@@ -2155,6 +2176,16 @@ declare class DocAssist {
|
|
|
2155
2176
|
* latency. Fire-and-forget; failures fall back to the lazy path.
|
|
2156
2177
|
*/
|
|
2157
2178
|
declare function warmDocDetector(): void;
|
|
2179
|
+
/**
|
|
2180
|
+
* The opened camera must show a live picture within this many ms: a camera that never plays, ends, or sends black
|
|
2181
|
+
* frames is reopened once, then reported as a retryable error, so the scan view never stays dark without a word
|
|
2182
|
+
* (staging 2026-11-01). 0 = no watch.
|
|
2183
|
+
*/
|
|
2184
|
+
declare const DOC_FIRST_FRAME_MS = 4000;
|
|
2185
|
+
/** Ticks whose frame-wide mean luma stays at or under this read as a black (dead) camera picture. */
|
|
2186
|
+
declare const DOC_BLACK_FRAME_LUMA = 2;
|
|
2187
|
+
/** Black ticks in a row, with no lit frame since the camera opened, that count as a dead picture. */
|
|
2188
|
+
declare const DOC_BLACK_FRAME_TICKS = 3;
|
|
2158
2189
|
/** Doc detect cadence per device class — scanic @480px is ~3–8× a face tick,
|
|
2159
2190
|
* so the doc loop paces slower than the face profiles (findings §1: 2–5 Hz). */
|
|
2160
2191
|
declare const DOC_CADENCE_HZ: Readonly<Record<DeviceClass, number>>;
|
|
@@ -2350,6 +2381,13 @@ interface CaptureSessionDocOptions {
|
|
|
2350
2381
|
label: string;
|
|
2351
2382
|
kind?: string;
|
|
2352
2383
|
}>>;
|
|
2384
|
+
/**
|
|
2385
|
+
* Ms the opened camera has to show a live picture (default {@link DOC_FIRST_FRAME_MS}; 0 = no watch): a stream that
|
|
2386
|
+
* never plays, ends, or shows only black frames is reopened once, then reported as a retryable `generic` error.
|
|
2387
|
+
*/
|
|
2388
|
+
firstFrameMs?: number;
|
|
2389
|
+
/** (the video plays and has a decoded frame) — whether the camera shows a live picture. */
|
|
2390
|
+
hasFrames?: (video: HTMLVideoElement) => boolean;
|
|
2353
2391
|
/** (performance.now) */
|
|
2354
2392
|
now?: () => number;
|
|
2355
2393
|
/** (setTimeout/clearTimeout) — the cadence pacer. */
|
|
@@ -2393,10 +2431,35 @@ declare class CaptureSessionDoc {
|
|
|
2393
2431
|
/** Last detected quad + detect size (for a host-timed {@link captureNow}). */
|
|
2394
2432
|
private lastQuad;
|
|
2395
2433
|
private lastDetect;
|
|
2434
|
+
/** The first-frame watch of the current camera ({@link DOC_FIRST_FRAME_MS}). */
|
|
2435
|
+
private frameWatch;
|
|
2436
|
+
/** The camera was reopened once by the watch since it last showed a picture. */
|
|
2437
|
+
private reopened;
|
|
2438
|
+
/** A tick saw a lit frame since the camera opened; black ticks in a row before that. */
|
|
2439
|
+
private lit;
|
|
2440
|
+
private blackTicks;
|
|
2441
|
+
/** Unsubscribes the opened track's `ended` listener. */
|
|
2442
|
+
private offEnded;
|
|
2396
2443
|
constructor(opts: CaptureSessionDocOptions);
|
|
2397
2444
|
on<K extends keyof CaptureSessionDocEvents>(event: K, handler: Handler<K>): () => void;
|
|
2398
2445
|
private emit;
|
|
2399
2446
|
start(): Promise<void>;
|
|
2447
|
+
/** play() on the kept stream when it is still live and attached (see start()); null when there is nothing to play. */
|
|
2448
|
+
private resumePlayback;
|
|
2449
|
+
/** Whether the video shows a live picture right now (playing, with a decoded frame). */
|
|
2450
|
+
private framesNow;
|
|
2451
|
+
/** Arm the first-frame watch for this camera. */
|
|
2452
|
+
private watchFrames;
|
|
2453
|
+
private clearFrameWatch;
|
|
2454
|
+
/** The opened track ended on its own (the camera was taken or interrupted): the same path as a dead picture. */
|
|
2455
|
+
private watchEnded;
|
|
2456
|
+
/**
|
|
2457
|
+
* The camera opened but shows no live picture: reopen it once (silently), then a retryable error. A live stream the
|
|
2458
|
+
* browser would not play is kept for the retry's tap to play it ({@link resumePlayback}).
|
|
2459
|
+
*/
|
|
2460
|
+
private cameraDead;
|
|
2461
|
+
/** Stop and detach this engine's stream. */
|
|
2462
|
+
private releaseStream;
|
|
2400
2463
|
/** Restart the gate for another side / a retake (same stream). */
|
|
2401
2464
|
rearm(side?: DocSide): void;
|
|
2402
2465
|
/**
|
|
@@ -3043,4 +3106,4 @@ declare function createVerification(options: VerificationOptions): Verification;
|
|
|
3043
3106
|
/** {@link createVerification} with construction seams (tests / Sekyro AI-internal hosts). */
|
|
3044
3107
|
declare function createVerificationInternal(options: VerificationOptions, internals: VerificationInternals): Verification;
|
|
3045
3108
|
|
|
3046
|
-
export { type LivenessCaptureEvents as $, type AcceptedDocumentsLike as A, type DocumentMrzUpdate as B, type CameraFacing as C, type DocumentCaptureOptions as D, type DocumentPoint as E, type DocumentQuad as F, type DocumentReticle as G, type DocumentScanPhase as H, type DocumentScanUpdate as I, type DocumentSide as J, type DocumentSnapshot as K, type DocumentStepHandle as L, type EidSnapshot as M, type EidStepHandle as N, type EmailOtpSnapshot as O, type PortraitCaptureOptions as P, type EmailOtpStepHandle as Q, type EmailSource as R, type GateHint as S, type GateUpdate as T, ISSUER_CODES as U, type IdentitySummarySnapshot as V, type IdentitySummaryStepHandle as W, type InLaneSwitch as X, type LivePhotoGateUpdate as Y, type LivePhotoPlan as Z, type LivenessAssetsStatus as _, type DocumentCaptureHandle as a, type LiveMrzTuning as a$, type LivenessCaptureHandle as a0, type LivenessCaptureOptions as a1, type LivenessSnapshot as a2, type LivenessStartOptions as a3, type LivenessStepHandle as a4, type MethodSnapshot as a5, type MethodStepHandle as a6, type MobileRequiredSnapshot as a7, type MobileRequiredStepHandle as a8, type OtpChannel as a9, type UnsupportedSnapshot as aA, type UnsupportedStepHandle as aB, type Verification as aC, type VerificationBusy as aD, type VerificationEvents as aE, type VerificationLocale as aF, type VerificationOptions as aG, type VerificationResult as aH, type VerificationStatus as aI, type VerificationStep as aJ, WEB_IDENTITY_METHODS as aK, acceptedIssuers as aL, acceptedTypesFor as aM, cameraUnavailableCauseOf as aN, createLivenessCapture as aO, createVerification as aP, deriveStep as aQ, flagOf as aR, getLivenessAssetsStatus as aS, laneOf as aT, otherOptions as aU, preloadLivenessAssets as aV, releaseLivenessAssets as aW, resolveAcceptedDocuments as aX, sectionOf as aY, subscribeLivenessAssets as aZ, type DocCatalogEntry as a_, type OtpNumberSource as aa, PLATFORM_UNSUPPORTED as ab, type PhoneOtpSnapshot as ac, type PhoneOtpStepHandle as ad, type PlanChoiceSnapshot as ae, type PortraitCaptureEvents as af, type PortraitCaptureState as ag, type PortraitGateUpdate as ah, type PortraitSnapshot as ai, type PortraitStartOptions as aj, type PortraitStepHandle as ak, type PreloadLivenessAssetsOptions as al, type ProcessingSnapshot as am, type ProcessingStepHandle as an, type ReasonCode as ao, type RegistrySnapshot as ap, type RegistrySource as aq, type RegistryStepHandle as ar, type ResultDisplay as as, type ResultSnapshot as at, type ResultStepHandle as au, type SdkFailureReason as av, type StepAttempts as aw, type StepContext as ax, type StepSnapshot as ay, type UnsupportedReason as az, type PortraitCaptureHandle as b,
|
|
3109
|
+
export { type LivenessCaptureEvents as $, type AcceptedDocumentsLike as A, type DocumentMrzUpdate as B, type CameraFacing as C, type DocumentCaptureOptions as D, type DocumentPoint as E, type DocumentQuad as F, type DocumentReticle as G, type DocumentScanPhase as H, type DocumentScanUpdate as I, type DocumentSide as J, type DocumentSnapshot as K, type DocumentStepHandle as L, type EidSnapshot as M, type EidStepHandle as N, type EmailOtpSnapshot as O, type PortraitCaptureOptions as P, type EmailOtpStepHandle as Q, type EmailSource as R, type GateHint as S, type GateUpdate as T, ISSUER_CODES as U, type IdentitySummarySnapshot as V, type IdentitySummaryStepHandle as W, type InLaneSwitch as X, type LivePhotoGateUpdate as Y, type LivePhotoPlan as Z, type LivenessAssetsStatus as _, type DocumentCaptureHandle as a, type LiveMrzTuning as a$, type LivenessCaptureHandle as a0, type LivenessCaptureOptions as a1, type LivenessSnapshot as a2, type LivenessStartOptions as a3, type LivenessStepHandle as a4, type MethodSnapshot as a5, type MethodStepHandle as a6, type MobileRequiredSnapshot as a7, type MobileRequiredStepHandle as a8, type OtpChannel as a9, type UnsupportedSnapshot as aA, type UnsupportedStepHandle as aB, type Verification as aC, type VerificationBusy as aD, type VerificationEvents as aE, type VerificationLocale as aF, type VerificationOptions as aG, type VerificationResult as aH, type VerificationStatus as aI, type VerificationStep as aJ, WEB_IDENTITY_METHODS as aK, acceptedIssuers as aL, acceptedTypesFor as aM, cameraUnavailableCauseOf as aN, createLivenessCapture as aO, createVerification as aP, deriveStep as aQ, flagOf as aR, getLivenessAssetsStatus as aS, laneOf as aT, otherOptions as aU, preloadLivenessAssets as aV, releaseLivenessAssets as aW, resolveAcceptedDocuments as aX, sectionOf as aY, subscribeLivenessAssets as aZ, type DocCatalogEntry as a_, type OtpNumberSource as aa, PLATFORM_UNSUPPORTED as ab, type PhoneOtpSnapshot as ac, type PhoneOtpStepHandle as ad, type PlanChoiceSnapshot as ae, type PortraitCaptureEvents as af, type PortraitCaptureState as ag, type PortraitGateUpdate as ah, type PortraitSnapshot as ai, type PortraitStartOptions as aj, type PortraitStepHandle as ak, type PreloadLivenessAssetsOptions as al, type ProcessingSnapshot as am, type ProcessingStepHandle as an, type ReasonCode as ao, type RegistrySnapshot as ap, type RegistrySource as aq, type RegistryStepHandle as ar, type ResultDisplay as as, type ResultSnapshot as at, type ResultStepHandle as au, type SdkFailureReason as av, type StepAttempts as aw, type StepContext as ax, type StepSnapshot as ay, type UnsupportedReason as az, type PortraitCaptureHandle as b, FLIP_TIMEOUT_MS as b$, type TextLockTuning as b0, type OcrEngineClient as b1, type DocAssistReport as b2, type ReadyInfo as b3, type LoadFailure as b4, type OcrEngineOptions as b5, type SubmitRuntime as b6, type HostedClientLike as b7, ANALYSIS_LONG_EDGE as b8, ASPECT_BANDS as b9, type DocCameraTuning as bA, type DocCaptureReport as bB, type DocCaptureVia as bC, type DocChecksPayload as bD, type DocEngineLike as bE, DocFeedbackAggregator as bF, type DocFeedbackKey as bG, type DocFeedbackState as bH, type DocFormat as bI, type DocFrameAnalysis as bJ, type DocFrameMeasures as bK, type DocGateQuality as bL, type DocGateThresholds as bM, type DocGateTick as bN, type DocGateTickInput as bO, DocGateV1 as bP, type DocQuad as bQ, type DocQuadPoint as bR, type DocShutterReason as bS, type DocShutterTuning as bT, type DocSide as bU, type DocumentCaptureController as bV, type DocumentCaptureInternals as bW, EMPTY_GUIDE_METRICS as bX, type EncodedDocument as bY, FLIP_FILL_MIN as bZ, FLIP_GAP_MS as b_, AttestationError as ba, BLUR_REFUSE_SHARPNESS_MAX as bb, type BlurStatus as bc, CAPTURE_CANDIDATE_SPACING_MS as bd, CAPTURE_EXTRA_CANDIDATES as be, CLIP_MIME_ALLOWLIST as bf, type CaptureEngine as bg, CaptureSessionDoc as bh, type CaptureSessionDocEvents as bi, type CaptureSessionDocOptions as bj, DOC_ANALYSIS_DEFAULTS as bk, DOC_BLACK_FRAME_LUMA as bl, DOC_BLACK_FRAME_TICKS as bm, DOC_CADENCE_HZ as bn, DOC_CAMERA_TUNING_DEFAULTS as bo, DOC_CATALOG as bp, DOC_DETECT_WIDTH as bq, DOC_FEEDBACK_STATES as br, DOC_FIRST_FRAME_MS as bs, DOC_GATE_V1_DEFAULTS as bt, DOC_SHUTTER_DEFAULTS as bu, type DeviceReadHint as bv, type DocArtifacts as bw, DocAssist as bx, type DocAssistEngine as by, type DocAssistTick as bz, type CaptureChannel as c, aspectBand as c$, type FocusCaps as c0, type FramingStatus as c1, GUIDE_LOCK_DEFAULTS as c2, type GlareStatus as c3, type GrabbedFrame as c4, type GuideBlocker as c5, GuideLock as c6, type GuideLockTick as c7, type GuideLockTuning as c8, type GuideMetrics as c9, MR_DOC_CATALOG as cA, NO_REPORT_MS as cB, type OpenDocCameraDeps as cC, PORTRAIT_JPEG_QUALITY as cD, PRELOAD_BLAZE_INIT_TIMEOUT_MS as cE, PRELOAD_BUDGET_MS as cF, PROCESSING_POLL_DELAY_MS as cG, PROCESSING_POLL_MAX as cH, type PortraitCaptureController as cI, type PortraitCaptureInternals as cJ, REGISTRY_RETRY_DELAY_MS as cK, type ReticleType as cL, SAME_FACE_MAX_DROPS as cM, type ScanEvent as cN, type ScanLayout as cO, type ScanNotice as cP, type ScanPhase as cQ, type ScanReport as cR, type ScanSide as cS, type ScanState as cT, type SubmitExecutor as cU, TEXT_LOCK_DEFAULTS as cV, TRANSPORT_REPLAY_ATTEMPTS as cW, TRANSPORT_REPLAY_DELAY_MS as cX, type VerificationInternals as cY, analyzeDocFrame as cZ, analyzeGuide as c_, type GuideRect as ca, INFERENCE_RETRY_ATTEMPTS as cb, INFERENCE_RETRY_DEFAULT_S as cc, LANDMARKER_MODEL as cd, LENS_STORAGE_KEY as ce, LENS_TRY_MAX as cf, LIVE_MRZ_DEFAULTS as cg, LIVE_PHOTO_IDLE_MS as ch, LIVE_PHOTO_MAX_HZ as ci, type LandmarkedFace as cj, type LandmarkerLike as ck, type LensKind as cl, type LensSource as cm, type LightingStatus as cn, type LiveMrzCapture as co, type LiveMrzState as cp, type LivePhotoGate as cq, type LivePhotoKit as cr, type LivePhotoKitInternals as cs, type LivePhotoKitOptions as ct, type LivePhotoStill as cu, type LivenessCaptureInternalHandle as cv, type LivenessCaptureInternals as cw, type LivenessFlowDeps as cx, type LivenessFlowOutcome as cy, MANUAL_SHUTTER_MS as cz, type CaptureEngineId as d, aspectFits as d0, buildDeviceReadHint as d1, coverPointToVideo as d2, createDocumentCaptureInternal as d3, createFaceLandmarker as d4, createLivePhotoKit as d5, createLivenessCaptureInternal as d6, createPortraitCaptureInternal as d7, createVerificationInternal as d8, docZoomFor as d9, resolveDocCameraTuning as dA, resolveDocShutterTuning as dB, resolveGuideLockTuning as dC, runLivenessFlow as dD, runSubmission as dE, scannerFormatFor as dF, setPreloadLoaderForTests as dG, settledHint as dH, singleShotFocusAt as dI, specularFraction as dJ, supportsFocusMode as dK, warmDocDetector as dL, writeStoredLens as dM, encodeDocumentImage as da, facesOf as db, feedbackVoteOf as dc, focusOk as dd, guideQuad as de, guideRegionInFrame as df, initialScanState as dg, lensKindOf as dh, mapEngineState as di, mapErrorKind as dj, mapGuidanceHint as dk, nextScanState as dl, observe as dm, openDocCamera as dn, passportBandOf as dp, portraitMatchStep as dq, preloadedDetectorFactory as dr, quadAreaFrac as ds, quadBounds as dt, quadIou as du, quadTiltRatio as dv, randomUuid as dw, rankBackCameras as dx, readStoredLens as dy, resetLivenessAssetsForTests as dz, type CaptureError as e, type CaptureErrorKind as f, type CaptureState as g, type CapturedArtifacts as h, type CapturedDocument as i, type CapturedPortrait as j, type ChoiceOptionSnapshot as k, type ChoiceSnapshot as l, type ChoiceStepHandle as m, type ContactChoiceSnapshot as n, type ContactChoiceStepHandle as o, DEFAULT_API_ORIGIN as p, DOCUMENT_TYPE_ORDER as q, type DeriveStepEnv as r, type DocumentCaptureEvents as s, type DocumentCaptureState as t, type DocumentFeedback as u, type DocumentFeedbackKey as v, type DocumentGateUpdate as w, type DocumentGuide as x, type DocumentGuideMeasure as y, type DocumentLiveMrzOptions as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as HostedSessionView, C as ConsentLocale, a as HostedConsentView, b as CameraUnavailableCause, I as IdentityConfirmDecision, M as MediaKind, P as PresignUploadResult, c as CaptureContext, d as CompleteMediaResult, e as CheckType, f as CheckInputByType, g as IcaoCriterion, B as BackgroundUniformity, R as ResolvedIcaoTuning } from './types-
|
|
1
|
+
import { H as HostedSessionView, C as ConsentLocale, a as HostedConsentView, b as CameraUnavailableCause, I as IdentityConfirmDecision, M as MediaKind, P as PresignUploadResult, c as CaptureContext, d as CompleteMediaResult, e as CheckType, f as CheckInputByType, g as IcaoCriterion, B as BackgroundUniformity, R as ResolvedIcaoTuning } from './types-BtEm3Lxe.cjs';
|
|
2
2
|
|
|
3
3
|
interface Point {
|
|
4
4
|
x: number;
|
|
@@ -115,7 +115,7 @@ interface UploadMedia {
|
|
|
115
115
|
interface HostedClientOptions {
|
|
116
116
|
/** API origin, e.g. `https://api.sekyro.ai` — paths are `${apiOrigin}/api/v2/...`. */
|
|
117
117
|
apiOrigin: string;
|
|
118
|
-
/** The raw session token from the hosted URL (short code
|
|
118
|
+
/** The raw session token from the hosted URL (short code) — sent as `x-session-token` on every API call. */
|
|
119
119
|
sessionToken: string;
|
|
120
120
|
/** Injection seam (tests / non-window contexts). Defaults to `globalThis.fetch`. */
|
|
121
121
|
fetch?: typeof globalThis.fetch;
|
|
@@ -160,6 +160,11 @@ interface HostedClientOptions {
|
|
|
160
160
|
* `idempotency_in_progress`. Everything else — including 429 with its parsed
|
|
161
161
|
* `retryAfterSeconds` — is surfaced to the page to handle.
|
|
162
162
|
*/
|
|
163
|
+
/**
|
|
164
|
+
* The `x-sekyro-sdk` value of this SDK (`@sekyro/web/<version>`, person data spec §5.6): every hosted
|
|
165
|
+
* call sends it. A page that calls a hosted session-token route itself sends it too.
|
|
166
|
+
*/
|
|
167
|
+
declare const SEKYRO_SDK_HEADER: string;
|
|
163
168
|
declare class HostedClient {
|
|
164
169
|
private readonly apiOrigin;
|
|
165
170
|
private readonly sessionToken;
|
|
@@ -500,4 +505,4 @@ interface IcaoGateOptions {
|
|
|
500
505
|
}
|
|
501
506
|
declare function createIcaoGate(t: ResolvedIcaoTuning, options?: IcaoGateOptions): IcaoGate;
|
|
502
507
|
|
|
503
|
-
export { lumaPlane as A, type BackgroundStats as B, CLIPPED_LUMA as C, percentile as D, portraitCropRegion as E, type FaceGeometry as F, poseFromMatrix as G, type HeadPose as H, type IcaoCoachKey as I, regionStats as J, scoreFrame as K, type LumaPlane as L, windowOverflow as M, HostedClient as N, type HostedClientOptions as O, type Point as P, type MediaCheckType as Q, type RegionStats as R,
|
|
508
|
+
export { lumaPlane as A, type BackgroundStats as B, CLIPPED_LUMA as C, percentile as D, portraitCropRegion as E, type FaceGeometry as F, poseFromMatrix as G, type HeadPose as H, type IcaoCoachKey as I, regionStats as J, scoreFrame as K, type LumaPlane as L, windowOverflow as M, HostedClient as N, type HostedClientOptions as O, type Point as P, type MediaCheckType as Q, type RegionStats as R, SEKYRO_SDK_HEADER as S, type SubmitOptions as T, type UploadMedia as U, stripMimeParams as V, type IcaoCriterionState as a, type IcaoGateCriterion as b, type IcaoGateSummary as c, type IcaoGateUpdate as d, type Box as e, type FaceLighting as f, ICAO_CANVAS as g, ICAO_GATE_CRITERIA as h, ICAO_SHARP_REF as i, type IcaoFrameObservation as j, type IcaoGate as k, type IcaoGateOptions as l, type IcaoJudgedCriterion as m, type IcaoMeasures as n, type IcaoPixelStats as o, backgroundStats as p, createIcaoGate as q, eyeLineRoll as r, eyeOpenness as s, eyeSpecular as t, faceGeometry as u, faceLighting as v, faceSharpness as w, icaoPixelStats as x, icaoWindow as y, judgeIcao as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as HostedSessionView, C as ConsentLocale, a as HostedConsentView, b as CameraUnavailableCause, I as IdentityConfirmDecision, M as MediaKind, P as PresignUploadResult, c as CaptureContext, d as CompleteMediaResult, e as CheckType, f as CheckInputByType, g as IcaoCriterion, B as BackgroundUniformity, R as ResolvedIcaoTuning } from './types-
|
|
1
|
+
import { H as HostedSessionView, C as ConsentLocale, a as HostedConsentView, b as CameraUnavailableCause, I as IdentityConfirmDecision, M as MediaKind, P as PresignUploadResult, c as CaptureContext, d as CompleteMediaResult, e as CheckType, f as CheckInputByType, g as IcaoCriterion, B as BackgroundUniformity, R as ResolvedIcaoTuning } from './types-BtEm3Lxe.js';
|
|
2
2
|
|
|
3
3
|
interface Point {
|
|
4
4
|
x: number;
|
|
@@ -115,7 +115,7 @@ interface UploadMedia {
|
|
|
115
115
|
interface HostedClientOptions {
|
|
116
116
|
/** API origin, e.g. `https://api.sekyro.ai` — paths are `${apiOrigin}/api/v2/...`. */
|
|
117
117
|
apiOrigin: string;
|
|
118
|
-
/** The raw session token from the hosted URL (short code
|
|
118
|
+
/** The raw session token from the hosted URL (short code) — sent as `x-session-token` on every API call. */
|
|
119
119
|
sessionToken: string;
|
|
120
120
|
/** Injection seam (tests / non-window contexts). Defaults to `globalThis.fetch`. */
|
|
121
121
|
fetch?: typeof globalThis.fetch;
|
|
@@ -160,6 +160,11 @@ interface HostedClientOptions {
|
|
|
160
160
|
* `idempotency_in_progress`. Everything else — including 429 with its parsed
|
|
161
161
|
* `retryAfterSeconds` — is surfaced to the page to handle.
|
|
162
162
|
*/
|
|
163
|
+
/**
|
|
164
|
+
* The `x-sekyro-sdk` value of this SDK (`@sekyro/web/<version>`, person data spec §5.6): every hosted
|
|
165
|
+
* call sends it. A page that calls a hosted session-token route itself sends it too.
|
|
166
|
+
*/
|
|
167
|
+
declare const SEKYRO_SDK_HEADER: string;
|
|
163
168
|
declare class HostedClient {
|
|
164
169
|
private readonly apiOrigin;
|
|
165
170
|
private readonly sessionToken;
|
|
@@ -500,4 +505,4 @@ interface IcaoGateOptions {
|
|
|
500
505
|
}
|
|
501
506
|
declare function createIcaoGate(t: ResolvedIcaoTuning, options?: IcaoGateOptions): IcaoGate;
|
|
502
507
|
|
|
503
|
-
export { lumaPlane as A, type BackgroundStats as B, CLIPPED_LUMA as C, percentile as D, portraitCropRegion as E, type FaceGeometry as F, poseFromMatrix as G, type HeadPose as H, type IcaoCoachKey as I, regionStats as J, scoreFrame as K, type LumaPlane as L, windowOverflow as M, HostedClient as N, type HostedClientOptions as O, type Point as P, type MediaCheckType as Q, type RegionStats as R,
|
|
508
|
+
export { lumaPlane as A, type BackgroundStats as B, CLIPPED_LUMA as C, percentile as D, portraitCropRegion as E, type FaceGeometry as F, poseFromMatrix as G, type HeadPose as H, type IcaoCoachKey as I, regionStats as J, scoreFrame as K, type LumaPlane as L, windowOverflow as M, HostedClient as N, type HostedClientOptions as O, type Point as P, type MediaCheckType as Q, type RegionStats as R, SEKYRO_SDK_HEADER as S, type SubmitOptions as T, type UploadMedia as U, stripMimeParams as V, type IcaoCriterionState as a, type IcaoGateCriterion as b, type IcaoGateSummary as c, type IcaoGateUpdate as d, type Box as e, type FaceLighting as f, ICAO_CANVAS as g, ICAO_GATE_CRITERIA as h, ICAO_SHARP_REF as i, type IcaoFrameObservation as j, type IcaoGate as k, type IcaoGateOptions as l, type IcaoJudgedCriterion as m, type IcaoMeasures as n, type IcaoPixelStats as o, backgroundStats as p, createIcaoGate as q, eyeLineRoll as r, eyeOpenness as s, eyeSpecular as t, faceGeometry as u, faceLighting as v, faceSharpness as w, icaoPixelStats as x, icaoWindow as y, judgeIcao as z };
|