@sekyro/web 0.1.0-rc.24 → 0.1.0-rc.26
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 +22 -0
- package/README.md +32 -2
- package/dist/{capture-session-doc-RIBBH3M4.js → capture-session-doc-WZMI5XPE.js} +1 -1
- package/dist/{capture-session-v3-CPHzDT7E.d.cts → capture-session-v3-BKSjJ6L0.d.cts} +1 -1
- package/dist/{capture-session-v3-TUPtnvmu.d.ts → capture-session-v3-C1I_GLC9.d.ts} +1 -1
- package/dist/challenge-frame-NUGPTWFP.js +1 -0
- package/dist/{chunk-MXWLCDFX.js → chunk-4DEPREJ3.js} +1 -1
- package/dist/{chunk-LBH6KGTV.js → chunk-65JZHKVG.js} +1 -1
- package/dist/{chunk-FLA42JCK.js → chunk-7MZW3FFH.js} +1 -1
- package/dist/chunk-DVTK2DGX.js +1 -0
- package/dist/chunk-GPFAPAS6.js +3 -0
- package/dist/chunk-HVW2AB35.js +1 -0
- package/dist/{chunk-IFLOS5OT.js → chunk-LLX2CKZ3.js} +1 -1
- package/dist/chunk-LV23FCYP.js +1 -0
- package/dist/{chunk-TDLIXFDT.js → chunk-NFHLJOHW.js} +1 -1
- package/dist/{chunk-5YVQIHQA.js → chunk-OVP7FAMJ.js} +1 -1
- package/dist/{chunk-XI5FXEKC.js → chunk-XOTKATN6.js} +1 -1
- package/dist/chunk-ZCW6PNUX.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/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-OXPLKHOF.js +1 -0
- package/dist/{create-verification-acQzNRiB.d.ts → create-verification-7wPXJN_P.d.ts} +287 -120
- package/dist/{create-verification-DF60lg8Y.d.cts → create-verification-YeuI7_B0.d.cts} +287 -120
- package/dist/{detector-scanic-YCDNLCGV.js → detector-scanic-23DAYT3H.js} +1 -1
- package/dist/{icao-gate-CX0chQMM.d.cts → icao-gate-BK8TGaCk.d.ts} +1 -1
- package/dist/{icao-gate-VwsQo8Bq.d.ts → icao-gate-pD2dUV3P.d.cts} +1 -1
- package/dist/{icao-policy-WnG2OSyp.d.cts → icao-policy-CdR6PFHS.d.cts} +2 -2
- package/dist/{icao-policy-B02jDiox.d.ts → icao-policy-qJpZOOOu.d.ts} +2 -2
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1 -1
- package/dist/internal/index.cjs +3 -1
- package/dist/internal/index.d.cts +69 -114
- package/dist/internal/index.d.ts +69 -114
- package/dist/internal/index.js +1 -1
- package/dist/plan-runner-EP26JU6A.js +1 -0
- package/dist/{types-1s8CQrEN.d.ts → types-DB-cZTSn.d.cts} +156 -29
- package/dist/{types-1s8CQrEN.d.cts → types-DB-cZTSn.d.ts} +156 -29
- package/dist/upload-file-EGXXM6TQ.js +1 -0
- package/package.json +1 -1
- package/sbom.cdx.json +10 -10
- package/dist/chunk-DMOGKGDS.js +0 -1
- package/dist/chunk-IC6TI6GV.js +0 -1
- package/dist/chunk-MQBX4DQQ.js +0 -1
- package/dist/chunk-QY6TJCOJ.js +0 -1
- package/dist/chunk-TDCLQRT4.js +0 -1
- package/dist/create-document-capture-XQURFZZK.js +0 -1
- package/dist/plan-runner-LDV4PYN7.js +0 -1
- package/dist/turnstile-52B3RFXD.js +0 -1
- package/dist/upload-file-UYXOHCRG.js +0 -1
|
@@ -1,7 +1,50 @@
|
|
|
1
1
|
import { b as Detector } from './detect-worker-CHqsPJoM.cjs';
|
|
2
|
-
import { A as AcceptedDocumentType,
|
|
3
|
-
import { i as CaptureState$1, f as CaptureSessionV3Events, g as CaptureSessionV3Options, c as CaptureErrorKind$1, q as DeviceClass, b as CaptureArtifacts, ad as EngineErrorDetail, W as V3GateQuality, _ as V3TelemetryEvent } from './capture-session-v3-
|
|
4
|
-
import { f as IcaoGateSummary, g as IcaoGateUpdate, P as Point, p as IcaoGateScores, h as Box, m as IcaoFrameObservation,
|
|
2
|
+
import { A as AcceptedDocumentType, ac as NationalEidOption, aT as StepSection, b2 as HostedBranding, aq as PlanSectionView, an as PlanChoiceKind, X as HostedSimulationView, l as ContactChannel, f as CheckReason, b6 as RetakeHint, ak as PhotoSource, al as PhotoSourcePick, a3 as IdentityMethod, E as EidAfterPass, a4 as IdentitySummarySource, K as HostedIcaoPolicy, ag as PhoneCountryRule, a1 as IcaoReportEntry, b5 as IcaoCaptureTuning, T as HostedPortraitPendingFix, b as CaptureMode, S as HostedPoaRuleView, aw as PoaNameMatchMode, aN as SessionReason, aL as SessionDecidingStep, W as HostedSessionView, Y as HostedStepView, ar as PlanStepView, aK as ResolvedCaptureMode, ba as ScreenRampReport, b1 as CaptureProvenance, b8 as ScreenRampPaint, aM as SessionFailureReason, a_ as AgeEstimationReason, aY as VerificationLevel, aX as VerificationAssurance, ab as MethodChoiceView, a$ as CameraUnavailableCause, b0 as CaptureIssueReport, $ as HostedVoiceView, b7 as ScreenRampChallenge, a as AttestationInput, h as CheckType, bf as PersonMask, aE as PortraitIcaoInput, w as HostedChallengeView } from './types-DB-cZTSn.cjs';
|
|
3
|
+
import { i as CaptureState$1, f as CaptureSessionV3Events, g as CaptureSessionV3Options, c as CaptureErrorKind$1, q as DeviceClass, b as CaptureArtifacts, ad as EngineErrorDetail, W as V3GateQuality, _ as V3TelemetryEvent } from './capture-session-v3-BKSjJ6L0.cjs';
|
|
4
|
+
import { f as IcaoGateSummary, g as IcaoGateUpdate, H as HostedClient, P as Point, p as IcaoGateScores, h as Box, m as IcaoFrameObservation, n as IcaoGate } from './icao-gate-pD2dUV3P.cjs';
|
|
5
|
+
|
|
6
|
+
/** Why a challenge produced no token (spec §4.5). */
|
|
7
|
+
type ChallengeErrorCode = "challenge_frame_blocked" | "challenge_script_blocked" | "site_key_rejected" | "challenge_failed" | "timeout" | "embedder_opaque" | "aborted";
|
|
8
|
+
/** A challenge that produced no token. `detail` is Cloudflare's numeric error code when there is one. */
|
|
9
|
+
declare class ChallengeError extends Error {
|
|
10
|
+
readonly code: ChallengeErrorCode;
|
|
11
|
+
readonly detail?: string;
|
|
12
|
+
constructor(code: ChallengeErrorCode, detail?: string);
|
|
13
|
+
}
|
|
14
|
+
/** Bound on the frame's `ready` message after it is inserted (a blocked frame never sends it). */
|
|
15
|
+
declare const CHALLENGE_READY_TIMEOUT_MS = 10000;
|
|
16
|
+
/**
|
|
17
|
+
* Bound on one challenge after the request is posted. A healthy invisible
|
|
18
|
+
* challenge settles in a few seconds, but slow phones and networks routinely
|
|
19
|
+
* take 10 to 20 s (incident 2026-11-10), so the bound is 30 s.
|
|
20
|
+
*/
|
|
21
|
+
declare const CHALLENGE_EXECUTE_TIMEOUT_MS = 30000;
|
|
22
|
+
/** What the token is for: the liveness submission, or the try-link start. */
|
|
23
|
+
type ChallengeAction = "liveness" | "try_link";
|
|
24
|
+
/** Options of {@link executeChallenge}. */
|
|
25
|
+
interface ExecuteChallengeOptions {
|
|
26
|
+
/** The frame URL (`HostedSessionView.challenge.url`). */
|
|
27
|
+
frameUrl: string;
|
|
28
|
+
/** The site key the frame renders (`HostedSessionView.challenge.siteKey`). */
|
|
29
|
+
siteKey: string;
|
|
30
|
+
action: ChallengeAction;
|
|
31
|
+
/** The session id (`ses_...`) for `liveness`; the hex sha256 of the try token for `try_link`. */
|
|
32
|
+
subject: string;
|
|
33
|
+
/** Aborts the challenge: the promise rejects with `aborted` and the frame is removed. */
|
|
34
|
+
signal?: AbortSignal;
|
|
35
|
+
/** Bound on the challenge once requested; default {@link CHALLENGE_EXECUTE_TIMEOUT_MS}. */
|
|
36
|
+
timeoutMs?: number;
|
|
37
|
+
/** Bound on the frame's `ready`; default {@link CHALLENGE_READY_TIMEOUT_MS}. */
|
|
38
|
+
readyTimeoutMs?: number;
|
|
39
|
+
}
|
|
40
|
+
/** Test-only: drop the kept frame and the queue between cases. */
|
|
41
|
+
declare function resetChallengeFrameForTests(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Obtain one token from the challenge frame. Challenges run in order on one
|
|
44
|
+
* kept frame; a failed challenge runs once more on a fresh frame before the
|
|
45
|
+
* promise rejects with a {@link ChallengeError}.
|
|
46
|
+
*/
|
|
47
|
+
declare function executeChallenge(opts: ExecuteChallengeOptions): Promise<string>;
|
|
5
48
|
|
|
6
49
|
declare const ISSUER_CODES: readonly string[];
|
|
7
50
|
|
|
@@ -389,6 +432,37 @@ interface PhotoSourceState {
|
|
|
389
432
|
*/
|
|
390
433
|
cameraOnPhone?: true;
|
|
391
434
|
}
|
|
435
|
+
/**
|
|
436
|
+
* The proof of address step (spec 2026-11-10 §5, §7.4): a recent document in the person's name at their address, as
|
|
437
|
+
* 1 to 3 page photos or one PDF. `phase: "holder_letter"` once the bill was read under `third_party_letter` (the
|
|
438
|
+
* holder's signed letter is asked for). Show `rule` as the accepted list for `rule.country` (the global list when
|
|
439
|
+
* `rule.country` is `null`), one row per kind with that kind's `maxAgeDays`; after
|
|
440
|
+
* `document_kind_not_accepted` or `document_too_old` it is the rule of the failed document's country.
|
|
441
|
+
*/
|
|
442
|
+
interface ProofOfAddressSnapshot extends StepAttempts {
|
|
443
|
+
section: StepSection | null;
|
|
444
|
+
kind: "proof_of_address";
|
|
445
|
+
key: string;
|
|
446
|
+
context: StepContext;
|
|
447
|
+
phase: "document" | "holder_letter";
|
|
448
|
+
/** The accepted kinds, resolved by the server (an empty global rule from a server without the block). */
|
|
449
|
+
rule: HostedPoaRuleView;
|
|
450
|
+
nameMatch: PoaNameMatchMode;
|
|
451
|
+
/** Where the pages come from (the view's `proofOfAddress.source`; the camera when absent). */
|
|
452
|
+
photo: PhotoSourceState;
|
|
453
|
+
/** Pages per document, at most. */
|
|
454
|
+
maxPages: 3;
|
|
455
|
+
/** A PDF upload's limits. */
|
|
456
|
+
pdf: {
|
|
457
|
+
maxBytes: number;
|
|
458
|
+
maxPages: 3;
|
|
459
|
+
};
|
|
460
|
+
/**
|
|
461
|
+
* Spec 2026-11-10 §5.3: the step accepts the address of the driving licence read earlier, so the person may continue
|
|
462
|
+
* without a document ({@link ProofOfAddressStepHandle.useLicenceAddress}). Always `false` in the `holder_letter` phase.
|
|
463
|
+
*/
|
|
464
|
+
licenceAddressAccepted: boolean;
|
|
465
|
+
}
|
|
392
466
|
interface LivenessSnapshot extends StepAttempts {
|
|
393
467
|
/**
|
|
394
468
|
* Flow model 2026-10-23: the section of the flow (`contact`, `identity`,
|
|
@@ -491,7 +565,7 @@ interface MobileRequiredSnapshot {
|
|
|
491
565
|
key: string;
|
|
492
566
|
context: StepContext;
|
|
493
567
|
/** The camera step to continue on a phone (spec 2026-11-06 §3.1: every live camera capture, in every decision mode). */
|
|
494
|
-
checkType: "liveness" | "face_match" | "doc_ocr" | "portrait_icao";
|
|
568
|
+
checkType: "liveness" | "face_match" | "doc_ocr" | "portrait_icao" | "poa";
|
|
495
569
|
}
|
|
496
570
|
interface ProcessingSnapshot {
|
|
497
571
|
/**
|
|
@@ -553,7 +627,7 @@ interface ResultSnapshot {
|
|
|
553
627
|
step?: SessionDecidingStep;
|
|
554
628
|
retryAfter?: string;
|
|
555
629
|
}
|
|
556
|
-
type StepSnapshot = PhoneOtpSnapshot | EmailOtpSnapshot | ContactChoiceSnapshot | IdentitySummarySnapshot | MethodSnapshot | ChoiceSnapshot | EidSnapshot | RegistrySnapshot | DocumentSnapshot | LivenessSnapshot | PortraitSnapshot | MobileRequiredSnapshot | ProcessingSnapshot | UnsupportedSnapshot | ResultSnapshot;
|
|
630
|
+
type StepSnapshot = PhoneOtpSnapshot | EmailOtpSnapshot | ContactChoiceSnapshot | IdentitySummarySnapshot | MethodSnapshot | ChoiceSnapshot | EidSnapshot | RegistrySnapshot | DocumentSnapshot | LivenessSnapshot | PortraitSnapshot | ProofOfAddressSnapshot | MobileRequiredSnapshot | ProcessingSnapshot | UnsupportedSnapshot | ResultSnapshot;
|
|
557
631
|
/**
|
|
558
632
|
* ID mode: `face_match` is due right after an ACCEPTED portrait (passed, or
|
|
559
633
|
* review after the cap) that it has not been tried with yet — the server picks
|
|
@@ -1074,7 +1148,8 @@ interface LivenessCaptureOptions {
|
|
|
1074
1148
|
/**
|
|
1075
1149
|
* SDK-side failure reasons (status `'unavailable'`):
|
|
1076
1150
|
* - `no_recorder` — no MediaRecorder / unsupported clip container;
|
|
1077
|
-
* - `attestation` —
|
|
1151
|
+
* - `attestation` — the challenge frame produced no token and the server refused the submission without one, or
|
|
1152
|
+
* `attestation_invalid` after one retry ({@link VerificationResult.attestationError} says why the frame failed);
|
|
1078
1153
|
* - `network` — transport / API failure after the bounded replays;
|
|
1079
1154
|
* - `nni_unbound` — `population_registry` is the frontier but the session was
|
|
1080
1155
|
* minted WITHOUT a bound ID number (`POST /sessions` `subject.idNumber`), so
|
|
@@ -1157,6 +1232,12 @@ interface VerificationResult {
|
|
|
1157
1232
|
level?: VerificationLevel;
|
|
1158
1233
|
/** How the level was proved, when the API reports it. */
|
|
1159
1234
|
assurance?: VerificationAssurance;
|
|
1235
|
+
/**
|
|
1236
|
+
* `unavailable` with reason code `attestation` only: why the security check frame produced no token, when it
|
|
1237
|
+
* failed on this page. `challenge_frame_blocked` means the page's Content-Security-Policy (or an extension) blocked
|
|
1238
|
+
* the frame: allow `frame-src` for the Sekyro verification host. Absent when the server refused a token.
|
|
1239
|
+
*/
|
|
1240
|
+
attestationError?: ChallengeErrorCode;
|
|
1160
1241
|
}
|
|
1161
1242
|
/**
|
|
1162
1243
|
* `on('busy')` payload: the model service answered
|
|
@@ -1585,6 +1666,74 @@ interface PortraitStepHandle extends PortraitSnapshot {
|
|
|
1585
1666
|
*/
|
|
1586
1667
|
skipCapture?(): Promise<void>;
|
|
1587
1668
|
}
|
|
1669
|
+
/**
|
|
1670
|
+
* The camera of the proof of address step ({@link ProofOfAddressStepHandle.capturePage}): the rear camera without a
|
|
1671
|
+
* card frame, one still per page, up to `maxPages`, then {@link PageCaptureHandle.submitPages}.
|
|
1672
|
+
*/
|
|
1673
|
+
interface PageCaptureHandle {
|
|
1674
|
+
/** Open the rear camera on the step's video. Rejects with the camera error when it cannot open. */
|
|
1675
|
+
start(): Promise<void>;
|
|
1676
|
+
/** Take a JPEG still of the page in view. Rejects with `RangeError("too_many_pages")` once `maxPages` are taken. */
|
|
1677
|
+
takePage(): Promise<Blob>;
|
|
1678
|
+
/** The pages taken so far, in order (show them as thumbnails). */
|
|
1679
|
+
readonly pages: readonly Blob[];
|
|
1680
|
+
/** Drop a taken page (a retake). */
|
|
1681
|
+
removePage(index: number): void;
|
|
1682
|
+
/**
|
|
1683
|
+
* Upload the pages (each with the camera's capture proof) and submit `poa` with `source: "camera"`, as the document
|
|
1684
|
+
* or, in the `holder_letter` phase, as the holder's letter. Rejects with `RangeError("no_pages")` without a page.
|
|
1685
|
+
* The camera stops once the server took them; the step then moves on as after an upload.
|
|
1686
|
+
*/
|
|
1687
|
+
submitPages(): Promise<void>;
|
|
1688
|
+
/** Stop the camera and forget the pages. */
|
|
1689
|
+
destroy(): void;
|
|
1690
|
+
}
|
|
1691
|
+
/** The proof of address step (spec 2026-11-10 §5, §7.4). */
|
|
1692
|
+
interface ProofOfAddressStepHandle extends ProofOfAddressSnapshot {
|
|
1693
|
+
/** Switch to another option of the open choice (`context.switchable`; `POST /hosted/choice`). Present only with it. */
|
|
1694
|
+
chooseOption?(option: string): Promise<void>;
|
|
1695
|
+
/**
|
|
1696
|
+
* Present only with `photo.cameraOnPhone` (a `choice` step on a desktop): re-read the session, so the page follows
|
|
1697
|
+
* the person who continued on their phone.
|
|
1698
|
+
*/
|
|
1699
|
+
refresh?(): Promise<void>;
|
|
1700
|
+
/**
|
|
1701
|
+
* Submit the document picked from the device: 1 to `maxPages` JPEG, PNG or HEIC images (one per page, in order), or
|
|
1702
|
+
* exactly one PDF (at most `pdf.maxBytes`). Only while `photo.uploadOffered`, else rejects with
|
|
1703
|
+
* `RangeError("upload_not_offered")`. More pages, or a PDF with anything else, rejects with
|
|
1704
|
+
* `RangeError("too_many_pages")`; a PDF over the limit with `RangeError("file_too_large")`; a file of another type
|
|
1705
|
+
* (or one the server's sniffer refuses) with `TypeError("unsupported_file")`. Nothing is sent on a local refusal.
|
|
1706
|
+
* Images go up as `image` media, a PDF as `document_file`, then `poa` is submitted with `source: "upload"`; the step
|
|
1707
|
+
* then moves on (a retry with its `reason`, the `holder_letter` phase, or the next step). Other failures reject with
|
|
1708
|
+
* the typed `HostedApiError`.
|
|
1709
|
+
*/
|
|
1710
|
+
uploadPages(files: Blob[]): Promise<void>;
|
|
1711
|
+
/**
|
|
1712
|
+
* The `holder_letter` phase only (else rejects with `RangeError("holder_letter_not_requested")`): the bill holder's
|
|
1713
|
+
* signed letter, with the same files and refusals as {@link ProofOfAddressStepHandle.uploadPages}.
|
|
1714
|
+
*/
|
|
1715
|
+
uploadHolderLetter(files: Blob[]): Promise<void>;
|
|
1716
|
+
/**
|
|
1717
|
+
* The step's page camera (rear, no card frame), unless `photo.source` is `upload` (then it throws
|
|
1718
|
+
* `RangeError("camera_not_offered")`). One handle per step: the same video returns the same handle until it is
|
|
1719
|
+
* destroyed.
|
|
1720
|
+
*/
|
|
1721
|
+
capturePage(options: {
|
|
1722
|
+
video: HTMLVideoElement;
|
|
1723
|
+
keepScreenAwake?: boolean;
|
|
1724
|
+
}): PageCaptureHandle;
|
|
1725
|
+
/**
|
|
1726
|
+
* Spec 2026-11-10 §5.3 licence shortcut: present only while `licenceAddressAccepted`. Submits `poa` with
|
|
1727
|
+
* `{ part: "document" }` and no media: the server decides from the driving licence read earlier in the session
|
|
1728
|
+
* (address matching still applies). The step then moves on as after an upload.
|
|
1729
|
+
*/
|
|
1730
|
+
useLicenceAddress?(): Promise<void>;
|
|
1731
|
+
/**
|
|
1732
|
+
* Sandbox DX spec 2026-11-06 §8: present only when `context.simulation.skipCapture` is set. Submits the check with
|
|
1733
|
+
* `{ simulatedCapture: true }` and no media; the step then moves on as after an upload.
|
|
1734
|
+
*/
|
|
1735
|
+
skipCapture?(): Promise<void>;
|
|
1736
|
+
}
|
|
1588
1737
|
/** The biometric step needs a phone (desktop browser). */
|
|
1589
1738
|
interface MobileRequiredStepHandle extends MobileRequiredSnapshot {
|
|
1590
1739
|
/** Switch to another option of the open choice (`context.switchable`; `POST /hosted/choice`). Present only with it. */
|
|
@@ -1613,7 +1762,7 @@ type UnsupportedStepHandle = UnsupportedSnapshot & {
|
|
|
1613
1762
|
/** The session's outcome — display only (the SDK never decides it). */
|
|
1614
1763
|
type ResultStepHandle = ResultSnapshot;
|
|
1615
1764
|
/** What `on('step')` delivers: the step's data plus its actions. */
|
|
1616
|
-
type VerificationStep = PhoneOtpStepHandle | EmailOtpStepHandle | ContactChoiceStepHandle | IdentitySummaryStepHandle | MethodStepHandle | ChoiceStepHandle | EidStepHandle | RegistryStepHandle | DocumentStepHandle | LivenessStepHandle | PortraitStepHandle | MobileRequiredStepHandle | ProcessingStepHandle | UnsupportedStepHandle | ResultStepHandle;
|
|
1765
|
+
type VerificationStep = PhoneOtpStepHandle | EmailOtpStepHandle | ContactChoiceStepHandle | IdentitySummaryStepHandle | MethodStepHandle | ChoiceStepHandle | EidStepHandle | RegistryStepHandle | DocumentStepHandle | LivenessStepHandle | PortraitStepHandle | ProofOfAddressStepHandle | MobileRequiredStepHandle | ProcessingStepHandle | UnsupportedStepHandle | ResultStepHandle;
|
|
1617
1766
|
|
|
1618
1767
|
/** The engine surface the handle binds — CaptureSessionV3 or a test double. */
|
|
1619
1768
|
interface CaptureEngine {
|
|
@@ -1755,6 +1904,128 @@ interface UploadFileInternals {
|
|
|
1755
1904
|
}, quality: number): Promise<Blob | null>;
|
|
1756
1905
|
}
|
|
1757
1906
|
|
|
1907
|
+
/**
|
|
1908
|
+
* The client surface the flow needs — `HostedClient` or a test fake. D8: the
|
|
1909
|
+
* live-camera capture proof methods are optional (a fake / an older bridge
|
|
1910
|
+
* without them presigns without a proof).
|
|
1911
|
+
*/
|
|
1912
|
+
type HostedClientLike = Pick<HostedClient, "getSession" | "recordConsent" | "choose" | "presign" | "uploadToSpaces" | "completeMedia" | "submitCheck"> & Partial<Pick<HostedClient, "presignCapture" | "armCapture">> & Partial<Pick<HostedClient, "confirmIdentity" | "identityPortrait">> & Partial<Pick<HostedClient, "reportCameraUnavailable">> & Partial<Pick<HostedClient, "reportCaptureIssue">> & Partial<Pick<HostedClient, "testerGate">>;
|
|
1913
|
+
/** The presign policy allowlist for `kind: 'clip'` (media.policy.ts mirror). */
|
|
1914
|
+
declare const CLIP_MIME_ALLOWLIST: readonly string[];
|
|
1915
|
+
/** Same-key transport replays AFTER the first try, and the pause between them. */
|
|
1916
|
+
declare const TRANSPORT_REPLAY_ATTEMPTS = 2;
|
|
1917
|
+
declare const TRANSPORT_REPLAY_DELAY_MS = 1000;
|
|
1918
|
+
/**
|
|
1919
|
+
* `503 inference_unavailable` (profile v2 step 4 — request-level: no state
|
|
1920
|
+
* change, no attempt used, not billed): retries after `retryAfterSeconds`
|
|
1921
|
+
* (default {@link INFERENCE_RETRY_DEFAULT_S}, capped at 20 s, ±25 % jitter,
|
|
1922
|
+
* at least 0.5 s: `jitteredRetryWaitMs`), at most
|
|
1923
|
+
* {@link INFERENCE_RETRY_ATTEMPTS} times, each under a FRESH key (each retry
|
|
1924
|
+
* is its own logical attempt; the backend never caches a 5xx envelope).
|
|
1925
|
+
*/
|
|
1926
|
+
declare const INFERENCE_RETRY_ATTEMPTS = 3;
|
|
1927
|
+
declare const INFERENCE_RETRY_DEFAULT_S = 10;
|
|
1928
|
+
/** `getAttestation` threw (a host's own seam): the submission is not sent. The challenge frame never throws here. */
|
|
1929
|
+
declare class AttestationError extends Error {
|
|
1930
|
+
constructor(message: string);
|
|
1931
|
+
}
|
|
1932
|
+
/** One logical submission: receives the client and ITS idempotency key. */
|
|
1933
|
+
type SubmitExecutor = (client: HostedClientLike, idempotencyKey: string) => Promise<HostedSessionView>;
|
|
1934
|
+
interface SubmitRuntime {
|
|
1935
|
+
client: HostedClientLike;
|
|
1936
|
+
/** Force-record consent (the server just said it is missing). */
|
|
1937
|
+
ensureConsent(opts: {
|
|
1938
|
+
force: true;
|
|
1939
|
+
}): Promise<void>;
|
|
1940
|
+
sleep(ms: number): Promise<void>;
|
|
1941
|
+
uuid(): string;
|
|
1942
|
+
/** An `inference_unavailable` retry is about to wait (the `busy` event). */
|
|
1943
|
+
onBusy?(info: VerificationBusy): void;
|
|
1944
|
+
/** The retry jitter source, a value in [0, 1) (tests pin it). Defaults to `Math.random`. */
|
|
1945
|
+
random?(): number;
|
|
1946
|
+
}
|
|
1947
|
+
/**
|
|
1948
|
+
* Run one logical submission (ported use-submit semantics):
|
|
1949
|
+
* - a fresh `crypto.randomUUID()` key per logical submission;
|
|
1950
|
+
* - a transport-class failure replays the SAME executor under the SAME key
|
|
1951
|
+
* (bounded) — the backend's IdempotencyInterceptor returns the first
|
|
1952
|
+
* response instead of burning another attempt;
|
|
1953
|
+
* - ONE `consent_required` recovery: force-record consent and re-run under a
|
|
1954
|
+
* FRESH key (the 409 envelope is idempotency-cached under the old one);
|
|
1955
|
+
* - ONE attestation retry (client-side Turnstile failure or a server
|
|
1956
|
+
* `attestation_invalid`): `onAttestationInvalid` drops the cached token and
|
|
1957
|
+
* the executor re-runs under a fresh key;
|
|
1958
|
+
* - up to {@link INFERENCE_RETRY_ATTEMPTS} `inference_unavailable` retries
|
|
1959
|
+
* after `retryAfterSeconds`, each under a FRESH key and with a fresh
|
|
1960
|
+
* attestation (`onAttestationInvalid` — the Turnstile token was spent).
|
|
1961
|
+
* Throws the final error otherwise.
|
|
1962
|
+
*/
|
|
1963
|
+
declare function runSubmission(rt: SubmitRuntime, executor: SubmitExecutor, hooks?: {
|
|
1964
|
+
onAttestationInvalid?: () => void;
|
|
1965
|
+
}): Promise<HostedSessionView>;
|
|
1966
|
+
interface LivenessFlowDeps extends SubmitRuntime {
|
|
1967
|
+
artifacts: CapturedArtifacts;
|
|
1968
|
+
/** Fresh attestation per call (the challenge frame's token; `{}` when the view has no challenge). */
|
|
1969
|
+
getAttestation(): Promise<AttestationInput>;
|
|
1970
|
+
/**
|
|
1971
|
+
* Why the challenge behind the attestation just returned produced no token (a `ChallengeErrorCode`), sent as
|
|
1972
|
+
* `input.capture.attestationError`; undefined when it did.
|
|
1973
|
+
*/
|
|
1974
|
+
attestationError?(): string | undefined;
|
|
1975
|
+
/** Latest hosted view (frontier decisions). */
|
|
1976
|
+
getView(): HostedSessionView;
|
|
1977
|
+
/** Re-GET the view from the server (after a RESYNC code) and fold it in. */
|
|
1978
|
+
refreshView(): Promise<HostedSessionView>;
|
|
1979
|
+
/** Fold a submit response into the view (re-reading it when the response says nothing about the next step). */
|
|
1980
|
+
applySubmit(view: HostedSessionView, submitted: CheckType): void | Promise<void>;
|
|
1981
|
+
/** Flow-state hook for the capture handle. */
|
|
1982
|
+
onPhase(phase: "uploading" | "checking"): void;
|
|
1983
|
+
/** The verification was destroyed (the only thing that cancels a chain). */
|
|
1984
|
+
isCancelled(): boolean;
|
|
1985
|
+
/**
|
|
1986
|
+
* The keyframe (face_match probe) was promoted — the plan runner keeps the
|
|
1987
|
+
* key for the profile v2 §4.4 wrong-number re-entry (face_match resubmitted
|
|
1988
|
+
* with the same image). Optional; observation only.
|
|
1989
|
+
*/
|
|
1990
|
+
onKeyframePromoted?(key: string): void;
|
|
1991
|
+
}
|
|
1992
|
+
type LivenessFlowOutcome = {
|
|
1993
|
+
kind: "settled";
|
|
1994
|
+
} | {
|
|
1995
|
+
kind: "resync";
|
|
1996
|
+
} | {
|
|
1997
|
+
kind: "unavailable";
|
|
1998
|
+
reason: SdkFailureReason | "mobile_required";
|
|
1999
|
+
} | {
|
|
2000
|
+
kind: "cancelled";
|
|
2001
|
+
};
|
|
2002
|
+
/**
|
|
2003
|
+
* Run the biometric submissions the CURRENT frontier allows, re-evaluating
|
|
2004
|
+
* after every submit and after every RESYNC re-GET:
|
|
2005
|
+
* - frontier `liveness` → clip upload + attestation + `liveness` (once per capture);
|
|
2006
|
+
* - frontier `face_match` → keyframe upload + `face_match` (once per match node, at most two per capture: a
|
|
2007
|
+
* step-up's bound match then its document match, same keyframe),
|
|
2008
|
+
* allowed when liveness was NOT part of this capture (it had already
|
|
2009
|
+
* settled — any state, incl. `failed`: the selfie-fallback case, where this
|
|
2010
|
+
* capture only feeds face_match) or settled chainable from this capture
|
|
2011
|
+
* (passed / review / processing / skipped — or absent);
|
|
2012
|
+
* - anything else (terminal view, a non-biometric frontier, a check this
|
|
2013
|
+
* capture already submitted) → `settled` for the caller to map the view.
|
|
2014
|
+
* A RESYNC code re-GETs the view and re-enters (at most {@link RESYNC_REENTRY_MAX}
|
|
2015
|
+
* times); the final RESYNC surfaces as `resync` for the caller to map.
|
|
2016
|
+
*/
|
|
2017
|
+
declare function runLivenessFlow(deps: LivenessFlowDeps): Promise<LivenessFlowOutcome>;
|
|
2018
|
+
|
|
2019
|
+
/** Seams of the page camera (tests: jsdom has neither a camera nor a canvas encoder). */
|
|
2020
|
+
interface PageCameraInternals {
|
|
2021
|
+
/** Open the rear camera. */
|
|
2022
|
+
open?(): Promise<MediaStream>;
|
|
2023
|
+
/** A JPEG still of the video's current frame. */
|
|
2024
|
+
grab?(video: HTMLVideoElement): Promise<Blob>;
|
|
2025
|
+
/** Show the stream on the video. */
|
|
2026
|
+
attach?(video: HTMLVideoElement, stream: MediaStream): void;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
1758
2029
|
/**
|
|
1759
2030
|
* Physical geometry the scanner frames (ISO/IEC 7810 / ICAO 9303). `"card"` is
|
|
1760
2031
|
* any identity card or residence permit of ANY issuer: ID-1 (TD1) or ID-2 (TD2)
|
|
@@ -1765,7 +2036,7 @@ type PhysicalFormat = Exclude<DocFormat, "card">;
|
|
|
1765
2036
|
type DocSide = "recto" | "verso" | "single";
|
|
1766
2037
|
interface DocCatalogEntry {
|
|
1767
2038
|
/** kyc-docs-v2 `document_type`, verbatim. */
|
|
1768
|
-
docType: "carte_identite" | "passport" | "residence_permit";
|
|
2039
|
+
docType: "carte_identite" | "passport" | "residence_permit" | "drivers_license";
|
|
1769
2040
|
format: DocFormat;
|
|
1770
2041
|
/** Capture sequence the hosted doc step walks, in order. */
|
|
1771
2042
|
sides: readonly DocSide[];
|
|
@@ -1797,7 +2068,7 @@ declare function aspectBand(format: DocFormat): {
|
|
|
1797
2068
|
declare function aspectFits(format: DocFormat, aspect: number): boolean;
|
|
1798
2069
|
/** The MR docTypes facet (findings §4). Order = the hosted picker's display order. */
|
|
1799
2070
|
declare const MR_DOC_CATALOG: readonly DocCatalogEntry[];
|
|
1800
|
-
/** Every document type (profile v2 §5.3a), picker order: identity card, passport, residence permit. */
|
|
2071
|
+
/** Every document type (profile v2 §5.3a), picker order: identity card, passport, residence permit, driving licence. */
|
|
1801
2072
|
declare const DOC_CATALOG: readonly DocCatalogEntry[];
|
|
1802
2073
|
/**
|
|
1803
2074
|
* Scanner format per document type for ANY issuer (profile v2 §5.3a): identity
|
|
@@ -3201,113 +3472,6 @@ captureMode?: () => ResolvedCaptureMode,
|
|
|
3201
3472
|
/** Spec 2026-11-06 §3.3: the capture mode switch of a `choice` step; absent (a standalone capture) → none. */
|
|
3202
3473
|
modeSwitch?: CaptureModeSwitch): PortraitCaptureController;
|
|
3203
3474
|
|
|
3204
|
-
/**
|
|
3205
|
-
* The client surface the flow needs — `HostedClient` or a test fake. D8: the
|
|
3206
|
-
* live-camera capture proof methods are optional (a fake / an older bridge
|
|
3207
|
-
* without them presigns without a proof).
|
|
3208
|
-
*/
|
|
3209
|
-
type HostedClientLike = Pick<HostedClient, "getSession" | "recordConsent" | "choose" | "presign" | "uploadToSpaces" | "completeMedia" | "submitCheck"> & Partial<Pick<HostedClient, "presignCapture" | "armCapture">> & Partial<Pick<HostedClient, "confirmIdentity" | "identityPortrait">> & Partial<Pick<HostedClient, "reportCameraUnavailable">> & Partial<Pick<HostedClient, "reportCaptureIssue">> & Partial<Pick<HostedClient, "testerGate">>;
|
|
3210
|
-
/** The presign policy allowlist for `kind: 'clip'` (media.policy.ts mirror). */
|
|
3211
|
-
declare const CLIP_MIME_ALLOWLIST: readonly string[];
|
|
3212
|
-
/** Same-key transport replays AFTER the first try, and the pause between them. */
|
|
3213
|
-
declare const TRANSPORT_REPLAY_ATTEMPTS = 2;
|
|
3214
|
-
declare const TRANSPORT_REPLAY_DELAY_MS = 1000;
|
|
3215
|
-
/**
|
|
3216
|
-
* `503 inference_unavailable` (profile v2 step 4 — request-level: no state
|
|
3217
|
-
* change, no attempt used, not billed): retries after `retryAfterSeconds`
|
|
3218
|
-
* (default {@link INFERENCE_RETRY_DEFAULT_S}, capped at 20 s, ±25 % jitter,
|
|
3219
|
-
* at least 0.5 s: `jitteredRetryWaitMs`), at most
|
|
3220
|
-
* {@link INFERENCE_RETRY_ATTEMPTS} times, each under a FRESH key (each retry
|
|
3221
|
-
* is its own logical attempt; the backend never caches a 5xx envelope).
|
|
3222
|
-
*/
|
|
3223
|
-
declare const INFERENCE_RETRY_ATTEMPTS = 3;
|
|
3224
|
-
declare const INFERENCE_RETRY_DEFAULT_S = 10;
|
|
3225
|
-
/** A Turnstile challenge failed client-side (load / render / error-callback / timeout). */
|
|
3226
|
-
declare class AttestationError extends Error {
|
|
3227
|
-
constructor(message: string);
|
|
3228
|
-
}
|
|
3229
|
-
/** One logical submission: receives the client and ITS idempotency key. */
|
|
3230
|
-
type SubmitExecutor = (client: HostedClientLike, idempotencyKey: string) => Promise<HostedSessionView>;
|
|
3231
|
-
interface SubmitRuntime {
|
|
3232
|
-
client: HostedClientLike;
|
|
3233
|
-
/** Force-record consent (the server just said it is missing). */
|
|
3234
|
-
ensureConsent(opts: {
|
|
3235
|
-
force: true;
|
|
3236
|
-
}): Promise<void>;
|
|
3237
|
-
sleep(ms: number): Promise<void>;
|
|
3238
|
-
uuid(): string;
|
|
3239
|
-
/** An `inference_unavailable` retry is about to wait (the `busy` event). */
|
|
3240
|
-
onBusy?(info: VerificationBusy): void;
|
|
3241
|
-
/** The retry jitter source, a value in [0, 1) (tests pin it). Defaults to `Math.random`. */
|
|
3242
|
-
random?(): number;
|
|
3243
|
-
}
|
|
3244
|
-
/**
|
|
3245
|
-
* Run one logical submission (ported use-submit semantics):
|
|
3246
|
-
* - a fresh `crypto.randomUUID()` key per logical submission;
|
|
3247
|
-
* - a transport-class failure replays the SAME executor under the SAME key
|
|
3248
|
-
* (bounded) — the backend's IdempotencyInterceptor returns the first
|
|
3249
|
-
* response instead of burning another attempt;
|
|
3250
|
-
* - ONE `consent_required` recovery: force-record consent and re-run under a
|
|
3251
|
-
* FRESH key (the 409 envelope is idempotency-cached under the old one);
|
|
3252
|
-
* - ONE attestation retry (client-side Turnstile failure or a server
|
|
3253
|
-
* `attestation_invalid`): `onAttestationInvalid` drops the cached token and
|
|
3254
|
-
* the executor re-runs under a fresh key;
|
|
3255
|
-
* - up to {@link INFERENCE_RETRY_ATTEMPTS} `inference_unavailable` retries
|
|
3256
|
-
* after `retryAfterSeconds`, each under a FRESH key and with a fresh
|
|
3257
|
-
* attestation (`onAttestationInvalid` — the Turnstile token was spent).
|
|
3258
|
-
* Throws the final error otherwise.
|
|
3259
|
-
*/
|
|
3260
|
-
declare function runSubmission(rt: SubmitRuntime, executor: SubmitExecutor, hooks?: {
|
|
3261
|
-
onAttestationInvalid?: () => void;
|
|
3262
|
-
}): Promise<HostedSessionView>;
|
|
3263
|
-
interface LivenessFlowDeps extends SubmitRuntime {
|
|
3264
|
-
artifacts: CapturedArtifacts;
|
|
3265
|
-
/** Fresh attestation per call (Turnstile execute; `{}` when the view has no site key). */
|
|
3266
|
-
getAttestation(): Promise<AttestationInput>;
|
|
3267
|
-
/** Latest hosted view (frontier decisions). */
|
|
3268
|
-
getView(): HostedSessionView;
|
|
3269
|
-
/** Re-GET the view from the server (after a RESYNC code) and fold it in. */
|
|
3270
|
-
refreshView(): Promise<HostedSessionView>;
|
|
3271
|
-
/** Fold a submit response into the view (re-reading it when the response says nothing about the next step). */
|
|
3272
|
-
applySubmit(view: HostedSessionView, submitted: CheckType): void | Promise<void>;
|
|
3273
|
-
/** Flow-state hook for the capture handle. */
|
|
3274
|
-
onPhase(phase: "uploading" | "checking"): void;
|
|
3275
|
-
/** The verification was destroyed (the only thing that cancels a chain). */
|
|
3276
|
-
isCancelled(): boolean;
|
|
3277
|
-
/**
|
|
3278
|
-
* The keyframe (face_match probe) was promoted — the plan runner keeps the
|
|
3279
|
-
* key for the profile v2 §4.4 wrong-number re-entry (face_match resubmitted
|
|
3280
|
-
* with the same image). Optional; observation only.
|
|
3281
|
-
*/
|
|
3282
|
-
onKeyframePromoted?(key: string): void;
|
|
3283
|
-
}
|
|
3284
|
-
type LivenessFlowOutcome = {
|
|
3285
|
-
kind: "settled";
|
|
3286
|
-
} | {
|
|
3287
|
-
kind: "resync";
|
|
3288
|
-
} | {
|
|
3289
|
-
kind: "unavailable";
|
|
3290
|
-
reason: SdkFailureReason | "mobile_required";
|
|
3291
|
-
} | {
|
|
3292
|
-
kind: "cancelled";
|
|
3293
|
-
};
|
|
3294
|
-
/**
|
|
3295
|
-
* Run the biometric submissions the CURRENT frontier allows, re-evaluating
|
|
3296
|
-
* after every submit and after every RESYNC re-GET:
|
|
3297
|
-
* - frontier `liveness` → clip upload + attestation + `liveness` (once per capture);
|
|
3298
|
-
* - frontier `face_match` → keyframe upload + `face_match` (once per match node, at most two per capture: a
|
|
3299
|
-
* step-up's bound match then its document match, same keyframe),
|
|
3300
|
-
* allowed when liveness was NOT part of this capture (it had already
|
|
3301
|
-
* settled — any state, incl. `failed`: the selfie-fallback case, where this
|
|
3302
|
-
* capture only feeds face_match) or settled chainable from this capture
|
|
3303
|
-
* (passed / review / processing / skipped — or absent);
|
|
3304
|
-
* - anything else (terminal view, a non-biometric frontier, a check this
|
|
3305
|
-
* capture already submitted) → `settled` for the caller to map the view.
|
|
3306
|
-
* A RESYNC code re-GETs the view and re-enters (at most {@link RESYNC_REENTRY_MAX}
|
|
3307
|
-
* times); the final RESYNC surfaces as `resync` for the caller to map.
|
|
3308
|
-
*/
|
|
3309
|
-
declare function runLivenessFlow(deps: LivenessFlowDeps): Promise<LivenessFlowOutcome>;
|
|
3310
|
-
|
|
3311
3475
|
/** The monitor never runs the landmarker faster than this (it shares the main thread with the liveness detector). */
|
|
3312
3476
|
declare const LIVE_PHOTO_MAX_HZ = 6;
|
|
3313
3477
|
/** No liveness gate tick for this long → the attempt ended: the monitor sleeps. */
|
|
@@ -3396,11 +3560,12 @@ interface VerificationInternals {
|
|
|
3396
3560
|
/** Replace the HTTP client (default: `new HostedClient({...})`). */
|
|
3397
3561
|
client?: HostedClientLike;
|
|
3398
3562
|
/**
|
|
3399
|
-
* Replace the
|
|
3400
|
-
* `signal` aborts when the verification is destroyed (M1).
|
|
3563
|
+
* Replace the challenge (default: `executeChallenge` on the view's challenge frame, loaded on first use).
|
|
3564
|
+
* `subject` is the session id the token is bound to; the `signal` aborts when the verification is destroyed (M1).
|
|
3401
3565
|
*/
|
|
3402
|
-
|
|
3566
|
+
getChallengeToken?: (challenge: HostedChallengeView, opts: {
|
|
3403
3567
|
signal: AbortSignal;
|
|
3568
|
+
subject: string;
|
|
3404
3569
|
}) => Promise<string>;
|
|
3405
3570
|
/** Capture-engine seams forwarded to {@link createLivenessCaptureInternal}. */
|
|
3406
3571
|
capture?: LivenessCaptureInternals;
|
|
@@ -3418,6 +3583,8 @@ interface VerificationInternals {
|
|
|
3418
3583
|
livePhoto?: LivePhotoKitInternals;
|
|
3419
3584
|
/** Document upload seams for the runner's document step (image decode / encode). */
|
|
3420
3585
|
upload?: UploadFileInternals;
|
|
3586
|
+
/** Page camera seams for the runner's proof of address step (camera open, still grab). */
|
|
3587
|
+
pageCamera?: PageCameraInternals;
|
|
3421
3588
|
}
|
|
3422
3589
|
/** `crypto.randomUUID()` with a v4 fallback for hosts that lack it. */
|
|
3423
3590
|
declare function randomUuid(): string;
|
|
@@ -3429,4 +3596,4 @@ declare function createVerification(options: VerificationOptions): Verification;
|
|
|
3429
3596
|
/** {@link createVerification} with construction seams (tests / Sekyro AI-internal hosts). */
|
|
3430
3597
|
declare function createVerificationInternal(options: VerificationOptions, internals: VerificationInternals): Verification;
|
|
3431
3598
|
|
|
3432
|
-
export { type
|
|
3599
|
+
export { type LivePhotoGateUpdate as $, type AcceptedDocumentsLike as A, type DocumentGuide as B, type CameraFacing as C, type DocumentCaptureOptions as D, type DocumentGuideMeasure as E, type DocumentLiveMrzOptions as F, type DocumentMrzUpdate as G, type DocumentPoint as H, type DocumentQuad as I, type DocumentReticle as J, type DocumentScanPhase as K, type DocumentScanUpdate as L, type DocumentSide as M, type DocumentSnapshot as N, type DocumentStepHandle as O, type PortraitCaptureOptions as P, type EidSnapshot as Q, type EidStepHandle as R, type EmailOtpSnapshot as S, type EmailOtpStepHandle as T, type EmailSource as U, type GateHint as V, type GateUpdate as W, ISSUER_CODES as X, type IdentitySummarySnapshot as Y, type IdentitySummaryStepHandle as Z, type InLaneSwitch as _, type DocumentCaptureHandle as a, otherOptions as a$, type LivePhotoPlan as a0, type LivenessAssetsStatus as a1, type LivenessCaptureEvents as a2, type LivenessCaptureHandle as a3, type LivenessCaptureOptions as a4, type LivenessSnapshot as a5, type LivenessStartOptions as a6, type LivenessStepHandle as a7, type MethodSnapshot as a8, type MethodStepHandle as a9, type ResultSnapshot as aA, type ResultStepHandle as aB, type SdkFailureReason as aC, type StepAttempts as aD, type StepContext as aE, type StepSnapshot as aF, type UnsupportedReason as aG, type UnsupportedSnapshot as aH, type UnsupportedStepHandle as aI, type Verification as aJ, type VerificationBusy as aK, type VerificationEvents as aL, type VerificationLocale as aM, type VerificationOptions as aN, type VerificationResult as aO, type VerificationStatus as aP, type VerificationStep as aQ, WEB_IDENTITY_METHODS as aR, acceptedIssuers as aS, acceptedTypesFor as aT, cameraUnavailableCauseOf as aU, createLivenessCapture as aV, createVerification as aW, deriveStep as aX, flagOf as aY, getLivenessAssetsStatus as aZ, laneOf as a_, type MobileRequiredSnapshot as aa, type MobileRequiredStepHandle as ab, type OtpChannel as ac, type OtpNumberSource as ad, PLATFORM_UNSUPPORTED as ae, type PageCaptureHandle as af, type PhoneOtpSnapshot as ag, type PhoneOtpStepHandle as ah, type PhotoSourceState as ai, type PlanChoiceSnapshot as aj, type PortraitCaptureEvents as ak, type PortraitCaptureState as al, type PortraitGateUpdate as am, type PortraitSnapshot as an, type PortraitStartOptions as ao, type PortraitStepHandle as ap, type PreloadLivenessAssetsOptions as aq, type ProcessingSnapshot as ar, type ProcessingStepHandle as as, type ProofOfAddressSnapshot as at, type ProofOfAddressStepHandle as au, type ReasonCode as av, type RegistrySnapshot as aw, type RegistrySource as ax, type RegistryStepHandle as ay, type ResultDisplay as az, type PortraitCaptureHandle as b, type DocQuad as b$, preloadLivenessAssets as b0, releaseLivenessAssets as b1, resolveAcceptedDocuments as b2, sectionOf as b3, subscribeLivenessAssets as b4, type SubmitRuntime as b5, type HostedClientLike as b6, type DocCatalogEntry as b7, type LiveMrzTuning as b8, type TextLockTuning as b9, DOC_CATALOG as bA, DOC_DETECT_WIDTH as bB, DOC_FEEDBACK_STATES as bC, DOC_FIRST_FRAME_MS as bD, DOC_GATE_V1_DEFAULTS as bE, DOC_SHUTTER_DEFAULTS as bF, type DeviceReadHint as bG, type DocArtifacts as bH, DocAssist as bI, type DocAssistEngine as bJ, type DocAssistTick as bK, type DocCameraTuning as bL, type DocCaptureReport as bM, type DocCaptureVia as bN, type DocChecksPayload as bO, type DocEngineLike as bP, DocFeedbackAggregator as bQ, type DocFeedbackKey as bR, type DocFeedbackState as bS, type DocFormat as bT, type DocFrameAnalysis as bU, type DocFrameMeasures as bV, type DocGateQuality as bW, type DocGateThresholds as bX, type DocGateTick as bY, type DocGateTickInput as bZ, DocGateV1 as b_, type OcrEngineClient as ba, type DocAssistReport as bb, type ReadyInfo as bc, type LoadFailure as bd, type OcrEngineOptions as be, ANALYSIS_LONG_EDGE as bf, ASPECT_BANDS as bg, AttestationError as bh, BLUR_REFUSE_SHARPNESS_MAX as bi, type BlurStatus as bj, CAPTURE_CANDIDATE_SPACING_MS as bk, CAPTURE_EXTRA_CANDIDATES as bl, CHALLENGE_EXECUTE_TIMEOUT_MS as bm, CHALLENGE_READY_TIMEOUT_MS as bn, CLIP_MIME_ALLOWLIST as bo, type CaptureEngine as bp, CaptureSessionDoc as bq, type CaptureSessionDocEvents as br, type CaptureSessionDocOptions as bs, type ChallengeAction as bt, ChallengeError as bu, DOC_ANALYSIS_DEFAULTS as bv, DOC_BLACK_FRAME_LUMA as bw, DOC_BLACK_FRAME_TICKS as bx, DOC_CADENCE_HZ as by, DOC_CAMERA_TUNING_DEFAULTS as bz, type CaptureChannel as c, type ScanReport as c$, type DocQuadPoint as c0, type DocShutterReason as c1, type DocShutterTuning as c2, type DocSide as c3, type DocumentCaptureController as c4, type DocumentCaptureInternals as c5, EMPTY_GUIDE_METRICS as c6, type EncodedDocument as c7, type ExecuteChallengeOptions as c8, FLIP_FILL_MIN as c9, type LivePhotoGate as cA, type LivePhotoKit as cB, type LivePhotoKitInternals as cC, type LivePhotoKitOptions as cD, type LivePhotoStill as cE, type LivenessCaptureInternalHandle as cF, type LivenessCaptureInternals as cG, type LivenessFlowDeps as cH, type LivenessFlowOutcome as cI, MANUAL_SHUTTER_MS as cJ, MR_DOC_CATALOG as cK, NO_REPORT_MS as cL, type OpenDocCameraDeps as cM, PORTRAIT_JPEG_QUALITY as cN, PRELOAD_BLAZE_INIT_TIMEOUT_MS as cO, PRELOAD_BUDGET_MS as cP, PROCESSING_POLL_DELAY_MS as cQ, PROCESSING_POLL_MAX as cR, type PortraitCaptureController as cS, type PortraitCaptureInternals as cT, REGISTRY_RETRY_DELAY_MS as cU, type ReticleType as cV, SAME_FACE_MAX_DROPS as cW, type ScanEvent as cX, type ScanLayout as cY, type ScanNotice as cZ, type ScanPhase as c_, FLIP_GAP_MS as ca, FLIP_TIMEOUT_MS as cb, type FocusCaps as cc, type FramingStatus as cd, GUIDE_LOCK_DEFAULTS as ce, type GlareStatus as cf, type GrabbedFrame as cg, type GuideBlocker as ch, GuideLock as ci, type GuideLockTick as cj, type GuideLockTuning as ck, type GuideMetrics as cl, type GuideRect as cm, INFERENCE_RETRY_ATTEMPTS as cn, INFERENCE_RETRY_DEFAULT_S as co, LANDMARKER_MODEL as cp, LENS_STORAGE_KEY as cq, LIVE_MRZ_DEFAULTS as cr, LIVE_PHOTO_IDLE_MS as cs, LIVE_PHOTO_MAX_HZ as ct, type LandmarkedFace as cu, type LandmarkerLike as cv, type LensSource as cw, type LightingStatus as cx, type LiveMrzCapture as cy, type LiveMrzState as cz, type CaptureEngineId as d, type ScanSide as d0, type ScanState as d1, type SubmitExecutor as d2, TEXT_LOCK_DEFAULTS as d3, TRANSPORT_REPLAY_ATTEMPTS as d4, TRANSPORT_REPLAY_DELAY_MS as d5, type VerificationInternals as d6, analyzeDocFrame as d7, analyzeGuide as d8, aspectBand as d9, portraitMatchStep as dA, preloadedDetectorFactory as dB, quadAreaFrac as dC, quadBounds as dD, quadIou as dE, quadTiltRatio as dF, randomUuid as dG, readStoredLens as dH, resetChallengeFrameForTests as dI, resetLivenessAssetsForTests as dJ, resolveDocCameraTuning as dK, resolveDocShutterTuning as dL, resolveGuideLockTuning as dM, runLivenessFlow as dN, runSubmission as dO, scannerFormatFor as dP, setPreloadLoaderForTests as dQ, settledHint as dR, singleShotFocusAt as dS, specularFraction as dT, supportsFocusMode as dU, warmDocDetector as dV, writeStoredLens as dW, aspectFits as da, buildDeviceReadHint as db, coverPointToVideo as dc, createDocumentCaptureInternal as dd, createFaceLandmarker as de, createLivePhotoKit as df, createLivenessCaptureInternal as dg, createPortraitCaptureInternal as dh, createVerificationInternal as di, docZoomFor as dj, encodeDocumentImage as dk, executeChallenge as dl, facesOf as dm, feedbackVoteOf as dn, focusOk as dp, guideQuad as dq, guideRegionInFrame as dr, initialScanState as ds, mapEngineState as dt, mapErrorKind as du, mapGuidanceHint as dv, nextScanState as dw, observe as dx, openDocCamera as dy, passportBandOf as dz, type CaptureError as e, type CaptureErrorDetail as f, type CaptureErrorKind as g, type CaptureErrorPhase as h, type CaptureState as i, type CapturedArtifacts as j, type CapturedDocument as k, type CapturedPortrait as l, type ChallengeErrorCode as m, type ChoiceOptionSnapshot as n, type ChoiceSnapshot as o, type ChoiceStepHandle as p, type ContactChoiceSnapshot as q, type ContactChoiceStepHandle as r, DEFAULT_API_ORIGIN as s, DOCUMENT_TYPE_ORDER as t, type DeriveStepEnv as u, type DocumentCaptureEvents as v, type DocumentCaptureState as w, type DocumentFeedback as x, type DocumentFeedbackKey as y, type DocumentGateUpdate as z };
|