@sekyro/web 0.1.0-rc.25 → 0.1.0-rc.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{capture-session-doc-O33KRXH7.js → capture-session-doc-FRBI7OKF.js} +1 -1
  3. package/dist/{capture-session-v3-C0bbHvDc.d.ts → capture-session-v3-CjaciYJQ.d.ts} +1 -1
  4. package/dist/{capture-session-v3-BoGn8vLv.d.cts → capture-session-v3-DZmmTeDY.d.cts} +1 -1
  5. package/dist/chunk-3XVIDHFY.js +3 -0
  6. package/dist/{chunk-MXWLCDFX.js → chunk-4DEPREJ3.js} +1 -1
  7. package/dist/{chunk-7HV77AOV.js → chunk-C5FD3ADY.js} +1 -1
  8. package/dist/{chunk-24F6JCVH.js → chunk-HLV2XYHX.js} +1 -1
  9. package/dist/{chunk-TDLIXFDT.js → chunk-NFHLJOHW.js} +1 -1
  10. package/dist/chunk-SDDM5ZTK.js +1 -0
  11. package/dist/{chunk-EHKCOBE2.js → chunk-U3JUGEIW.js} +1 -1
  12. package/dist/chunk-VXHK5YC6.js +1 -0
  13. package/dist/{chunk-DIKSFEYQ.js → chunk-Y5ZLVLCU.js} +1 -1
  14. package/dist/{chunk-J4S3QMK6.js → chunk-ZCOWTM46.js} +1 -1
  15. package/dist/{chunk-4ESM6SSR.js → chunk-ZCZ2E2YN.js} +1 -1
  16. package/dist/client/index.cjs +1 -1
  17. package/dist/client/index.d.cts +3 -3
  18. package/dist/client/index.d.ts +3 -3
  19. package/dist/client/index.js +1 -1
  20. package/dist/core/index.cjs +1 -1
  21. package/dist/core/index.d.cts +3 -3
  22. package/dist/core/index.d.ts +3 -3
  23. package/dist/core/index.js +1 -1
  24. package/dist/create-document-capture-2YBCDEUB.js +1 -0
  25. package/dist/{create-verification-DOBYRCV_.d.ts → create-verification-ClZ9Nvop.d.ts} +234 -123
  26. package/dist/{create-verification-D5CrT5f5.d.cts → create-verification-CnsFqT2E.d.cts} +234 -123
  27. package/dist/{detector-scanic-YCDNLCGV.js → detector-scanic-23DAYT3H.js} +1 -1
  28. package/dist/{icao-gate-CJPTgKFb.d.ts → icao-gate-DWexlqVW.d.ts} +1 -1
  29. package/dist/{icao-gate-DGtY696t.d.cts → icao-gate-Dfpj4nT4.d.cts} +1 -1
  30. package/dist/{icao-policy-Bm0rG91t.d.cts → icao-policy-BnXH_-WM.d.cts} +2 -2
  31. package/dist/{icao-policy-D8domgld.d.ts → icao-policy-eLrX6Twc.d.ts} +2 -2
  32. package/dist/index.cjs +3 -3
  33. package/dist/index.d.cts +9 -9
  34. package/dist/index.d.ts +9 -9
  35. package/dist/index.js +1 -1
  36. package/dist/internal/index.cjs +3 -3
  37. package/dist/internal/index.d.cts +68 -64
  38. package/dist/internal/index.d.ts +68 -64
  39. package/dist/internal/index.js +1 -1
  40. package/dist/plan-runner-KQM7I4MR.js +1 -0
  41. package/dist/popup/index.d.cts +2 -2
  42. package/dist/popup/index.d.ts +2 -2
  43. package/dist/popup/index.js +1 -1
  44. package/dist/{types-ZBcpvLdo.d.ts → types-BGUwaKjk.d.cts} +138 -16
  45. package/dist/{types-ZBcpvLdo.d.cts → types-BGUwaKjk.d.ts} +138 -16
  46. package/dist/upload-file-EGXXM6TQ.js +1 -0
  47. package/package.json +1 -1
  48. package/sbom.cdx.json +10 -10
  49. package/dist/chunk-6XXMWK72.js +0 -1
  50. package/dist/chunk-GLXOSYBH.js +0 -3
  51. package/dist/chunk-MGO2ME5X.js +0 -1
  52. package/dist/create-document-capture-OLKNUVTU.js +0 -1
  53. package/dist/plan-runner-VKPRZ3AD.js +0 -1
  54. package/dist/upload-file-UYXOHCRG.js +0 -1
  55. /package/dist/{chunk-LJYMZQY2.js → chunk-GFJATPUR.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { b as Detector } from './detect-worker-CHqsPJoM.js';
2
- import { A as AcceptedDocumentType, a9 as NationalEidOption, aI as StepSection, aT as HostedBranding, an as PlanSectionView, ak as PlanChoiceKind, U as HostedSimulationView, l as ContactChannel, f as CheckReason, aX as RetakeHint, ah as PhotoSource, ai as PhotoSourcePick, a0 as IdentityMethod, E as EidAfterPass, a1 as IdentitySummarySource, K as HostedIcaoPolicy, ad as PhoneCountryRule, _ as IcaoReportEntry, aW as IcaoCaptureTuning, R as HostedPortraitPendingFix, b as CaptureMode, aC as SessionReason, aA as SessionDecidingStep, T as HostedSessionView, V as HostedStepView, ao as PlanStepView, az as ResolvedCaptureMode, a$ as ScreenRampReport, aS as CaptureProvenance, aZ as ScreenRampPaint, aB as SessionFailureReason, aP as AgeEstimationReason, aN as VerificationLevel, aM as VerificationAssurance, a8 as MethodChoiceView, aQ as CameraUnavailableCause, aR as CaptureIssueReport, Y as HostedVoiceView, aY as ScreenRampChallenge, b4 as PersonMask, a as AttestationInput, h as CheckType, at as PortraitIcaoInput, w as HostedChallengeView } from './types-ZBcpvLdo.js';
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-C0bbHvDc.js';
4
- import { f as IcaoGateSummary, g as IcaoGateUpdate, P as Point, p as IcaoGateScores, h as Box, m as IcaoFrameObservation, H as HostedClient, n as IcaoGate } from './icao-gate-CJPTgKFb.js';
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-BGUwaKjk.js';
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-CjaciYJQ.js';
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-DWexlqVW.js';
5
5
 
6
6
  /** Why a challenge produced no token (spec §4.5). */
7
7
  type ChallengeErrorCode = "challenge_frame_blocked" | "challenge_script_blocked" | "site_key_rejected" | "challenge_failed" | "timeout" | "embedder_opaque" | "aborted";
@@ -432,6 +432,37 @@ interface PhotoSourceState {
432
432
  */
433
433
  cameraOnPhone?: true;
434
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
+ }
435
466
  interface LivenessSnapshot extends StepAttempts {
436
467
  /**
437
468
  * Flow model 2026-10-23: the section of the flow (`contact`, `identity`,
@@ -534,7 +565,7 @@ interface MobileRequiredSnapshot {
534
565
  key: string;
535
566
  context: StepContext;
536
567
  /** The camera step to continue on a phone (spec 2026-11-06 §3.1: every live camera capture, in every decision mode). */
537
- checkType: "liveness" | "face_match" | "doc_ocr" | "portrait_icao";
568
+ checkType: "liveness" | "face_match" | "doc_ocr" | "portrait_icao" | "poa";
538
569
  }
539
570
  interface ProcessingSnapshot {
540
571
  /**
@@ -596,7 +627,7 @@ interface ResultSnapshot {
596
627
  step?: SessionDecidingStep;
597
628
  retryAfter?: string;
598
629
  }
599
- 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;
600
631
  /**
601
632
  * ID mode: `face_match` is due right after an ACCEPTED portrait (passed, or
602
633
  * review after the cap) that it has not been tried with yet — the server picks
@@ -1195,8 +1226,8 @@ interface VerificationResult {
1195
1226
  retryAfter?: string;
1196
1227
  /**
1197
1228
  * What the session proved (`verified`, `not_verified`, `review`), when the API
1198
- * reports it: `1` a live person, `2` their identity, `3` corroborated, `0`
1199
- * not verified. A display hint: confirm on your server with the result token.
1229
+ * reports it: `1` Contact, `2` Human, `3` Identity, `0` nothing proven. A
1230
+ * display hint: confirm on your server with the result token.
1200
1231
  */
1201
1232
  level?: VerificationLevel;
1202
1233
  /** How the level was proved, when the API reports it. */
@@ -1635,6 +1666,74 @@ interface PortraitStepHandle extends PortraitSnapshot {
1635
1666
  */
1636
1667
  skipCapture?(): Promise<void>;
1637
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
+ }
1638
1737
  /** The biometric step needs a phone (desktop browser). */
1639
1738
  interface MobileRequiredStepHandle extends MobileRequiredSnapshot {
1640
1739
  /** Switch to another option of the open choice (`context.switchable`; `POST /hosted/choice`). Present only with it. */
@@ -1663,7 +1762,7 @@ type UnsupportedStepHandle = UnsupportedSnapshot & {
1663
1762
  /** The session's outcome — display only (the SDK never decides it). */
1664
1763
  type ResultStepHandle = ResultSnapshot;
1665
1764
  /** What `on('step')` delivers: the step's data plus its actions. */
1666
- 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;
1667
1766
 
1668
1767
  /** The engine surface the handle binds — CaptureSessionV3 or a test double. */
1669
1768
  interface CaptureEngine {
@@ -1805,6 +1904,128 @@ interface UploadFileInternals {
1805
1904
  }, quality: number): Promise<Blob | null>;
1806
1905
  }
1807
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
+
1808
2029
  /**
1809
2030
  * Physical geometry the scanner frames (ISO/IEC 7810 / ICAO 9303). `"card"` is
1810
2031
  * any identity card or residence permit of ANY issuer: ID-1 (TD1) or ID-2 (TD2)
@@ -1815,7 +2036,7 @@ type PhysicalFormat = Exclude<DocFormat, "card">;
1815
2036
  type DocSide = "recto" | "verso" | "single";
1816
2037
  interface DocCatalogEntry {
1817
2038
  /** kyc-docs-v2 `document_type`, verbatim. */
1818
- docType: "carte_identite" | "passport" | "residence_permit";
2039
+ docType: "carte_identite" | "passport" | "residence_permit" | "drivers_license";
1819
2040
  format: DocFormat;
1820
2041
  /** Capture sequence the hosted doc step walks, in order. */
1821
2042
  sides: readonly DocSide[];
@@ -1847,7 +2068,7 @@ declare function aspectBand(format: DocFormat): {
1847
2068
  declare function aspectFits(format: DocFormat, aspect: number): boolean;
1848
2069
  /** The MR docTypes facet (findings §4). Order = the hosted picker's display order. */
1849
2070
  declare const MR_DOC_CATALOG: readonly DocCatalogEntry[];
1850
- /** 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. */
1851
2072
  declare const DOC_CATALOG: readonly DocCatalogEntry[];
1852
2073
  /**
1853
2074
  * Scanner format per document type for ANY issuer (profile v2 §5.3a): identity
@@ -3251,118 +3472,6 @@ captureMode?: () => ResolvedCaptureMode,
3251
3472
  /** Spec 2026-11-06 §3.3: the capture mode switch of a `choice` step; absent (a standalone capture) → none. */
3252
3473
  modeSwitch?: CaptureModeSwitch): PortraitCaptureController;
3253
3474
 
3254
- /**
3255
- * The client surface the flow needs — `HostedClient` or a test fake. D8: the
3256
- * live-camera capture proof methods are optional (a fake / an older bridge
3257
- * without them presigns without a proof).
3258
- */
3259
- 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">>;
3260
- /** The presign policy allowlist for `kind: 'clip'` (media.policy.ts mirror). */
3261
- declare const CLIP_MIME_ALLOWLIST: readonly string[];
3262
- /** Same-key transport replays AFTER the first try, and the pause between them. */
3263
- declare const TRANSPORT_REPLAY_ATTEMPTS = 2;
3264
- declare const TRANSPORT_REPLAY_DELAY_MS = 1000;
3265
- /**
3266
- * `503 inference_unavailable` (profile v2 step 4 — request-level: no state
3267
- * change, no attempt used, not billed): retries after `retryAfterSeconds`
3268
- * (default {@link INFERENCE_RETRY_DEFAULT_S}, capped at 20 s, ±25 % jitter,
3269
- * at least 0.5 s: `jitteredRetryWaitMs`), at most
3270
- * {@link INFERENCE_RETRY_ATTEMPTS} times, each under a FRESH key (each retry
3271
- * is its own logical attempt; the backend never caches a 5xx envelope).
3272
- */
3273
- declare const INFERENCE_RETRY_ATTEMPTS = 3;
3274
- declare const INFERENCE_RETRY_DEFAULT_S = 10;
3275
- /** `getAttestation` threw (a host's own seam): the submission is not sent. The challenge frame never throws here. */
3276
- declare class AttestationError extends Error {
3277
- constructor(message: string);
3278
- }
3279
- /** One logical submission: receives the client and ITS idempotency key. */
3280
- type SubmitExecutor = (client: HostedClientLike, idempotencyKey: string) => Promise<HostedSessionView>;
3281
- interface SubmitRuntime {
3282
- client: HostedClientLike;
3283
- /** Force-record consent (the server just said it is missing). */
3284
- ensureConsent(opts: {
3285
- force: true;
3286
- }): Promise<void>;
3287
- sleep(ms: number): Promise<void>;
3288
- uuid(): string;
3289
- /** An `inference_unavailable` retry is about to wait (the `busy` event). */
3290
- onBusy?(info: VerificationBusy): void;
3291
- /** The retry jitter source, a value in [0, 1) (tests pin it). Defaults to `Math.random`. */
3292
- random?(): number;
3293
- }
3294
- /**
3295
- * Run one logical submission (ported use-submit semantics):
3296
- * - a fresh `crypto.randomUUID()` key per logical submission;
3297
- * - a transport-class failure replays the SAME executor under the SAME key
3298
- * (bounded) — the backend's IdempotencyInterceptor returns the first
3299
- * response instead of burning another attempt;
3300
- * - ONE `consent_required` recovery: force-record consent and re-run under a
3301
- * FRESH key (the 409 envelope is idempotency-cached under the old one);
3302
- * - ONE attestation retry (client-side Turnstile failure or a server
3303
- * `attestation_invalid`): `onAttestationInvalid` drops the cached token and
3304
- * the executor re-runs under a fresh key;
3305
- * - up to {@link INFERENCE_RETRY_ATTEMPTS} `inference_unavailable` retries
3306
- * after `retryAfterSeconds`, each under a FRESH key and with a fresh
3307
- * attestation (`onAttestationInvalid` — the Turnstile token was spent).
3308
- * Throws the final error otherwise.
3309
- */
3310
- declare function runSubmission(rt: SubmitRuntime, executor: SubmitExecutor, hooks?: {
3311
- onAttestationInvalid?: () => void;
3312
- }): Promise<HostedSessionView>;
3313
- interface LivenessFlowDeps extends SubmitRuntime {
3314
- artifacts: CapturedArtifacts;
3315
- /** Fresh attestation per call (the challenge frame's token; `{}` when the view has no challenge). */
3316
- getAttestation(): Promise<AttestationInput>;
3317
- /**
3318
- * Why the challenge behind the attestation just returned produced no token (a `ChallengeErrorCode`), sent as
3319
- * `input.capture.attestationError`; undefined when it did.
3320
- */
3321
- attestationError?(): string | undefined;
3322
- /** Latest hosted view (frontier decisions). */
3323
- getView(): HostedSessionView;
3324
- /** Re-GET the view from the server (after a RESYNC code) and fold it in. */
3325
- refreshView(): Promise<HostedSessionView>;
3326
- /** Fold a submit response into the view (re-reading it when the response says nothing about the next step). */
3327
- applySubmit(view: HostedSessionView, submitted: CheckType): void | Promise<void>;
3328
- /** Flow-state hook for the capture handle. */
3329
- onPhase(phase: "uploading" | "checking"): void;
3330
- /** The verification was destroyed (the only thing that cancels a chain). */
3331
- isCancelled(): boolean;
3332
- /**
3333
- * The keyframe (face_match probe) was promoted — the plan runner keeps the
3334
- * key for the profile v2 §4.4 wrong-number re-entry (face_match resubmitted
3335
- * with the same image). Optional; observation only.
3336
- */
3337
- onKeyframePromoted?(key: string): void;
3338
- }
3339
- type LivenessFlowOutcome = {
3340
- kind: "settled";
3341
- } | {
3342
- kind: "resync";
3343
- } | {
3344
- kind: "unavailable";
3345
- reason: SdkFailureReason | "mobile_required";
3346
- } | {
3347
- kind: "cancelled";
3348
- };
3349
- /**
3350
- * Run the biometric submissions the CURRENT frontier allows, re-evaluating
3351
- * after every submit and after every RESYNC re-GET:
3352
- * - frontier `liveness` → clip upload + attestation + `liveness` (once per capture);
3353
- * - frontier `face_match` → keyframe upload + `face_match` (once per match node, at most two per capture: a
3354
- * step-up's bound match then its document match, same keyframe),
3355
- * allowed when liveness was NOT part of this capture (it had already
3356
- * settled — any state, incl. `failed`: the selfie-fallback case, where this
3357
- * capture only feeds face_match) or settled chainable from this capture
3358
- * (passed / review / processing / skipped — or absent);
3359
- * - anything else (terminal view, a non-biometric frontier, a check this
3360
- * capture already submitted) → `settled` for the caller to map the view.
3361
- * A RESYNC code re-GETs the view and re-enters (at most {@link RESYNC_REENTRY_MAX}
3362
- * times); the final RESYNC surfaces as `resync` for the caller to map.
3363
- */
3364
- declare function runLivenessFlow(deps: LivenessFlowDeps): Promise<LivenessFlowOutcome>;
3365
-
3366
3475
  /** The monitor never runs the landmarker faster than this (it shares the main thread with the liveness detector). */
3367
3476
  declare const LIVE_PHOTO_MAX_HZ = 6;
3368
3477
  /** No liveness gate tick for this long → the attempt ended: the monitor sleeps. */
@@ -3474,6 +3583,8 @@ interface VerificationInternals {
3474
3583
  livePhoto?: LivePhotoKitInternals;
3475
3584
  /** Document upload seams for the runner's document step (image decode / encode). */
3476
3585
  upload?: UploadFileInternals;
3586
+ /** Page camera seams for the runner's proof of address step (camera open, still grab). */
3587
+ pageCamera?: PageCameraInternals;
3477
3588
  }
3478
3589
  /** `crypto.randomUUID()` with a v4 fallback for hosts that lack it. */
3479
3590
  declare function randomUuid(): string;
@@ -3485,4 +3596,4 @@ declare function createVerification(options: VerificationOptions): Verification;
3485
3596
  /** {@link createVerification} with construction seams (tests / Sekyro AI-internal hosts). */
3486
3597
  declare function createVerificationInternal(options: VerificationOptions, internals: VerificationInternals): Verification;
3487
3598
 
3488
- 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, resolveAcceptedDocuments 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 StepAttempts as aA, type StepContext as aB, type StepSnapshot as aC, type UnsupportedReason as aD, type UnsupportedSnapshot as aE, type UnsupportedStepHandle as aF, type Verification as aG, type VerificationBusy as aH, type VerificationEvents as aI, type VerificationLocale as aJ, type VerificationOptions as aK, type VerificationResult as aL, type VerificationStatus as aM, type VerificationStep as aN, WEB_IDENTITY_METHODS as aO, acceptedIssuers as aP, acceptedTypesFor as aQ, cameraUnavailableCauseOf as aR, createLivenessCapture as aS, createVerification as aT, deriveStep as aU, flagOf as aV, getLivenessAssetsStatus as aW, laneOf as aX, otherOptions as aY, preloadLivenessAssets as aZ, releaseLivenessAssets as a_, type MobileRequiredSnapshot as aa, type MobileRequiredStepHandle as ab, type OtpChannel as ac, type OtpNumberSource as ad, PLATFORM_UNSUPPORTED as ae, type PhoneOtpSnapshot as af, type PhoneOtpStepHandle as ag, type PhotoSourceState as ah, type PlanChoiceSnapshot as ai, type PortraitCaptureEvents as aj, type PortraitCaptureState as ak, type PortraitGateUpdate as al, type PortraitSnapshot as am, type PortraitStartOptions as an, type PortraitStepHandle as ao, type PreloadLivenessAssetsOptions as ap, type ProcessingSnapshot as aq, type ProcessingStepHandle as ar, type ReasonCode as as, type RegistrySnapshot as at, type RegistrySource as au, type RegistryStepHandle as av, type ResultDisplay as aw, type ResultSnapshot as ax, type ResultStepHandle as ay, type SdkFailureReason as az, type PortraitCaptureHandle as b, type DocShutterTuning as b$, sectionOf as b0, subscribeLivenessAssets as b1, type DocCatalogEntry as b2, type LiveMrzTuning as b3, type TextLockTuning as b4, type OcrEngineClient as b5, type DocAssistReport as b6, type ReadyInfo as b7, type LoadFailure as b8, type OcrEngineOptions as b9, DOC_FIRST_FRAME_MS as bA, DOC_GATE_V1_DEFAULTS as bB, DOC_SHUTTER_DEFAULTS as bC, type DeviceReadHint as bD, type DocArtifacts as bE, DocAssist as bF, type DocAssistEngine as bG, type DocAssistTick as bH, type DocCameraTuning as bI, type DocCaptureReport as bJ, type DocCaptureVia as bK, type DocChecksPayload as bL, type DocEngineLike as bM, DocFeedbackAggregator as bN, type DocFeedbackKey as bO, type DocFeedbackState as bP, type DocFormat as bQ, type DocFrameAnalysis as bR, type DocFrameMeasures as bS, type DocGateQuality as bT, type DocGateThresholds as bU, type DocGateTick as bV, type DocGateTickInput as bW, DocGateV1 as bX, type DocQuad as bY, type DocQuadPoint as bZ, type DocShutterReason as b_, type SubmitRuntime as ba, type HostedClientLike as bb, ANALYSIS_LONG_EDGE as bc, ASPECT_BANDS as bd, AttestationError as be, BLUR_REFUSE_SHARPNESS_MAX as bf, type BlurStatus as bg, CAPTURE_CANDIDATE_SPACING_MS as bh, CAPTURE_EXTRA_CANDIDATES as bi, CHALLENGE_EXECUTE_TIMEOUT_MS as bj, CHALLENGE_READY_TIMEOUT_MS as bk, CLIP_MIME_ALLOWLIST as bl, type CaptureEngine as bm, CaptureSessionDoc as bn, type CaptureSessionDocEvents as bo, type CaptureSessionDocOptions as bp, type ChallengeAction as bq, ChallengeError as br, DOC_ANALYSIS_DEFAULTS as bs, DOC_BLACK_FRAME_LUMA as bt, DOC_BLACK_FRAME_TICKS as bu, DOC_CADENCE_HZ as bv, DOC_CAMERA_TUNING_DEFAULTS as bw, DOC_CATALOG as bx, DOC_DETECT_WIDTH as by, DOC_FEEDBACK_STATES as bz, type CaptureChannel as c, type SubmitExecutor as c$, type DocSide as c0, type DocumentCaptureController as c1, type DocumentCaptureInternals as c2, EMPTY_GUIDE_METRICS as c3, type EncodedDocument as c4, type ExecuteChallengeOptions as c5, FLIP_FILL_MIN as c6, FLIP_GAP_MS as c7, FLIP_TIMEOUT_MS as c8, type FocusCaps as c9, type LivePhotoKitOptions as cA, type LivePhotoStill as cB, type LivenessCaptureInternalHandle as cC, type LivenessCaptureInternals as cD, type LivenessFlowDeps as cE, type LivenessFlowOutcome as cF, MANUAL_SHUTTER_MS as cG, MR_DOC_CATALOG as cH, NO_REPORT_MS as cI, type OpenDocCameraDeps as cJ, PORTRAIT_JPEG_QUALITY as cK, PRELOAD_BLAZE_INIT_TIMEOUT_MS as cL, PRELOAD_BUDGET_MS as cM, PROCESSING_POLL_DELAY_MS as cN, PROCESSING_POLL_MAX as cO, type PortraitCaptureController as cP, type PortraitCaptureInternals as cQ, REGISTRY_RETRY_DELAY_MS as cR, type ReticleType as cS, SAME_FACE_MAX_DROPS as cT, type ScanEvent as cU, type ScanLayout as cV, type ScanNotice as cW, type ScanPhase as cX, type ScanReport as cY, type ScanSide as cZ, type ScanState as c_, type FramingStatus as ca, GUIDE_LOCK_DEFAULTS as cb, type GlareStatus as cc, type GrabbedFrame as cd, type GuideBlocker as ce, GuideLock as cf, type GuideLockTick as cg, type GuideLockTuning as ch, type GuideMetrics as ci, type GuideRect as cj, INFERENCE_RETRY_ATTEMPTS as ck, INFERENCE_RETRY_DEFAULT_S as cl, LANDMARKER_MODEL as cm, LENS_STORAGE_KEY as cn, LIVE_MRZ_DEFAULTS as co, LIVE_PHOTO_IDLE_MS as cp, LIVE_PHOTO_MAX_HZ as cq, type LandmarkedFace as cr, type LandmarkerLike as cs, type LensSource as ct, type LightingStatus as cu, type LiveMrzCapture as cv, type LiveMrzState as cw, type LivePhotoGate as cx, type LivePhotoKit as cy, type LivePhotoKitInternals as cz, type CaptureEngineId as d, TEXT_LOCK_DEFAULTS as d0, TRANSPORT_REPLAY_ATTEMPTS as d1, TRANSPORT_REPLAY_DELAY_MS as d2, type VerificationInternals as d3, analyzeDocFrame as d4, analyzeGuide as d5, aspectBand as d6, aspectFits as d7, buildDeviceReadHint as d8, coverPointToVideo as d9, quadBounds as dA, quadIou as dB, quadTiltRatio as dC, randomUuid as dD, readStoredLens as dE, resetChallengeFrameForTests as dF, resetLivenessAssetsForTests as dG, resolveDocCameraTuning as dH, resolveDocShutterTuning as dI, resolveGuideLockTuning as dJ, runLivenessFlow as dK, runSubmission as dL, scannerFormatFor as dM, setPreloadLoaderForTests as dN, settledHint as dO, singleShotFocusAt as dP, specularFraction as dQ, supportsFocusMode as dR, warmDocDetector as dS, writeStoredLens as dT, createDocumentCaptureInternal as da, createFaceLandmarker as db, createLivePhotoKit as dc, createLivenessCaptureInternal as dd, createPortraitCaptureInternal as de, createVerificationInternal as df, docZoomFor as dg, encodeDocumentImage as dh, executeChallenge as di, facesOf as dj, feedbackVoteOf as dk, focusOk as dl, guideQuad as dm, guideRegionInFrame as dn, initialScanState as dp, mapEngineState as dq, mapErrorKind as dr, mapGuidanceHint as ds, nextScanState as dt, observe as du, openDocCamera as dv, passportBandOf as dw, portraitMatchStep as dx, preloadedDetectorFactory as dy, quadAreaFrac 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 };
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 };