@sekyro/web 0.1.0-rc.3 → 0.1.0-rc.30

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 (137) hide show
  1. package/CHANGELOG.md +427 -0
  2. package/LICENSE +25 -16
  3. package/README.md +150 -62
  4. package/THIRD-PARTY-NOTICES.txt +154 -0
  5. package/dist/background-monitor-A7FKJOAG.js +1 -0
  6. package/dist/barcode-detect-C5IOXMKI.js +1 -0
  7. package/dist/camera-trait-V4UAOPIQ.js +1 -0
  8. package/dist/capture-constraints-CVqpMNGA.d.cts +48 -0
  9. package/dist/capture-constraints-CVqpMNGA.d.ts +48 -0
  10. package/dist/capture-session-doc-ESEZJBQM.js +1 -0
  11. package/dist/{capture-session-v3-CvIfcwST.d.ts → capture-session-v3-CTQL6eFd.d.cts} +259 -13
  12. package/dist/{capture-session-v3-COIO_F2w.d.cts → capture-session-v3-DHlOE6cS.d.ts} +259 -13
  13. package/dist/challenge-frame-YAQJ5YMB.js +1 -0
  14. package/dist/chunk-2LDOXGY3.js +1 -0
  15. package/dist/chunk-33KKMPJ5.js +1 -0
  16. package/dist/chunk-3LMJ4335.js +1 -0
  17. package/dist/chunk-53POX7U4.js +1 -0
  18. package/dist/chunk-7252SFZ6.js +1 -0
  19. package/dist/chunk-7QZWBDI5.js +1 -0
  20. package/dist/chunk-A7QFTU6M.js +1 -0
  21. package/dist/chunk-CJHMFPL6.js +1 -0
  22. package/dist/chunk-CMXN4SOZ.js +1 -0
  23. package/dist/chunk-CPUECYAJ.js +1 -0
  24. package/dist/chunk-DFTCAWMP.js +1 -0
  25. package/dist/chunk-DK5YPBDQ.js +1 -0
  26. package/dist/chunk-FPXL63KZ.js +1 -0
  27. package/dist/chunk-FSSMUAKC.js +1 -0
  28. package/dist/chunk-G6LKLN4U.js +1 -0
  29. package/dist/chunk-GFJATPUR.js +1 -0
  30. package/dist/chunk-GI3UFGRQ.js +1 -0
  31. package/dist/chunk-JLVZ35QK.js +2 -0
  32. package/dist/chunk-KA43AAM7.js +1 -0
  33. package/dist/chunk-KXFHVAYQ.js +1 -0
  34. package/dist/chunk-ODI4A5K4.js +1 -0
  35. package/dist/chunk-OEQJ62CC.js +3 -0
  36. package/dist/chunk-POIQGEZM.js +1 -0
  37. package/dist/chunk-RI3E7GBN.js +1 -0
  38. package/dist/chunk-S5BUCUZ4.js +1 -0
  39. package/dist/chunk-SLKRT74K.js +1 -0
  40. package/dist/chunk-SMKCBUJL.js +1 -0
  41. package/dist/chunk-SX7TUC3V.js +1 -0
  42. package/dist/chunk-TSA6GHUG.js +1 -0
  43. package/dist/chunk-UTPUHE4J.js +1 -0
  44. package/dist/chunk-VVUQ4PFU.js +1 -0
  45. package/dist/chunk-VWGKUQ3C.js +1 -0
  46. package/dist/chunk-ZKF2XMNX.js +1 -0
  47. package/dist/client/index.cjs +1 -357
  48. package/dist/client/index.d.cts +6 -37
  49. package/dist/client/index.d.ts +6 -37
  50. package/dist/client/index.js +1 -15
  51. package/dist/clip-inspect-DLJXVKV6.js +1 -0
  52. package/dist/core/index.cjs +1 -1606
  53. package/dist/core/index.d.cts +5 -4
  54. package/dist/core/index.d.ts +5 -4
  55. package/dist/core/index.js +1 -139
  56. package/dist/core/ocr/worker.bundle.js +42 -0
  57. package/dist/core/ocr/worker.cjs +42 -0
  58. package/dist/core/ocr/worker.d.cts +84 -0
  59. package/dist/core/ocr/worker.d.ts +84 -0
  60. package/dist/core/ocr/worker.js +41 -0
  61. package/dist/core/v3/detect-worker.cjs +1 -392
  62. package/dist/core/v3/detect-worker.d.cts +1 -1
  63. package/dist/core/v3/detect-worker.d.ts +1 -1
  64. package/dist/core/v3/detect-worker.js +1 -13
  65. package/dist/create-document-capture-V7XCRRDV.js +1 -0
  66. package/dist/create-portrait-capture-5VGYZUOK.js +1 -0
  67. package/dist/create-verification-CGBe2yLE.d.cts +3719 -0
  68. package/dist/create-verification-aoY2QoRx.d.ts +3719 -0
  69. package/dist/{detect-worker-CKXHlXx9.d.ts → detect-worker-CHqsPJoM.d.cts} +25 -2
  70. package/dist/{detect-worker-CKXHlXx9.d.cts → detect-worker-CHqsPJoM.d.ts} +25 -2
  71. package/dist/detector-scanic-SE3CL55N.js +1 -0
  72. package/dist/icao-gate-DveU9Cr8.d.ts +573 -0
  73. package/dist/icao-gate-T3BTOKFJ.js +1 -0
  74. package/dist/icao-gate-xyWB7dz2.d.cts +573 -0
  75. package/dist/icao-policy-BWu1JLgi.d.cts +80 -0
  76. package/dist/icao-policy-OOEQDG9_.d.ts +80 -0
  77. package/dist/icao-tuning-4ETMF53W.js +1 -0
  78. package/dist/index.cjs +3 -2649
  79. package/dist/index.d.cts +138 -5
  80. package/dist/index.d.ts +138 -5
  81. package/dist/index.js +1 -28
  82. package/dist/internal/index.cjs +3 -4179
  83. package/dist/internal/index.d.cts +390 -371
  84. package/dist/internal/index.d.ts +390 -371
  85. package/dist/internal/index.js +1 -647
  86. package/dist/keyframe-rank-YAJLYJYF.js +1 -0
  87. package/dist/landmarker-KB7LVXAU.js +1 -0
  88. package/dist/mrz-band-VYHOTDHY.js +1 -0
  89. package/dist/plan-runner-IXCKR4DB.js +1 -0
  90. package/dist/popup/index.cjs +1 -76
  91. package/dist/popup/index.d.cts +9 -3
  92. package/dist/popup/index.d.ts +9 -3
  93. package/dist/popup/index.js +1 -11
  94. package/dist/print-SEWS3VHQ.js +1 -0
  95. package/dist/scanic-ml-stub-KW7IZHUT.js +1 -0
  96. package/dist/segmenter-USLNBX65.js +1 -0
  97. package/dist/types-CezFEXzl.d.cts +2103 -0
  98. package/dist/types-CezFEXzl.d.ts +2103 -0
  99. package/dist/upload-file-EGXXM6TQ.js +1 -0
  100. package/package.json +30 -11
  101. package/sbom.cdx.json +349 -0
  102. package/dist/capture-constraints-BujkZcfb.d.cts +0 -21
  103. package/dist/capture-constraints-BujkZcfb.d.ts +0 -21
  104. package/dist/chunk-7TC6TOZ4.js +0 -1095
  105. package/dist/chunk-7TC6TOZ4.js.map +0 -1
  106. package/dist/chunk-FIXX2AXC.js +0 -864
  107. package/dist/chunk-FIXX2AXC.js.map +0 -1
  108. package/dist/chunk-MWNFSNMP.js +0 -52
  109. package/dist/chunk-MWNFSNMP.js.map +0 -1
  110. package/dist/chunk-NILNKLK6.js +0 -50
  111. package/dist/chunk-NILNKLK6.js.map +0 -1
  112. package/dist/chunk-NWF46H7K.js +0 -359
  113. package/dist/chunk-NWF46H7K.js.map +0 -1
  114. package/dist/chunk-WY6U7AIK.js +0 -193
  115. package/dist/chunk-WY6U7AIK.js.map +0 -1
  116. package/dist/chunk-YVFF4Q4G.js +0 -327
  117. package/dist/chunk-YVFF4Q4G.js.map +0 -1
  118. package/dist/client/index.cjs.map +0 -1
  119. package/dist/client/index.js.map +0 -1
  120. package/dist/core/index.cjs.map +0 -1
  121. package/dist/core/index.js.map +0 -1
  122. package/dist/core/v3/detect-worker.cjs.map +0 -1
  123. package/dist/core/v3/detect-worker.js.map +0 -1
  124. package/dist/create-verification-CP18eq1Q.d.cts +0 -348
  125. package/dist/create-verification-CswF2As-.d.ts +0 -348
  126. package/dist/detector-scanic-4C6IEW2K.js +0 -787
  127. package/dist/detector-scanic-4C6IEW2K.js.map +0 -1
  128. package/dist/hosted-client-BpvBqu9f.d.cts +0 -408
  129. package/dist/hosted-client-BpvBqu9f.d.ts +0 -408
  130. package/dist/index.cjs.map +0 -1
  131. package/dist/index.js.map +0 -1
  132. package/dist/internal/index.cjs.map +0 -1
  133. package/dist/internal/index.js.map +0 -1
  134. package/dist/popup/index.cjs.map +0 -1
  135. package/dist/popup/index.js.map +0 -1
  136. package/dist/scanic-ml-stub-S2OZ6HEF.js +0 -10
  137. package/dist/scanic-ml-stub-S2OZ6HEF.js.map +0 -1
@@ -0,0 +1,80 @@
1
+ import { f as IcaoGateSummary } from './icao-gate-DveU9Cr8.js';
2
+ import { a9 as HostedSessionView, Y as HostedIcaoPolicy, aT as PortraitIcaoInput } from './types-CezFEXzl.js';
3
+
4
+ /**
5
+ * Every error code the hosted page can receive from the session-token surface.
6
+ * A closed string-literal union — switch over {@link KnownCode} with a `never`
7
+ * default arm for compile-checked exhaustiveness.
8
+ */
9
+ declare const KNOWN_CODES: readonly ["session_token_invalid", "session_token_required", "session_token_session_mismatch", "session_not_found", "rate_limit_exceeded", "consent_required", "session_not_active", "check_not_found", "check_already_finalized", "check_out_of_order", "check_type_unsupported", "force_outcome_forbidden", "attestation_invalid", "platform_unregistered", "app_attest_invalid", "too_many_challenges", "inference_unavailable", "mobile_required", "nni_locked", "document_nni_mismatch", "media_content_type_not_allowed", "media_too_large", "media_key_invalid", "media_key_forbidden", "media_not_found", "media_unreadable", "media_session_invalid", "idempotency_key_collision", "idempotency_in_progress", "idempotency_key_required", "validation_error", "internal_error", "unknown_error", "upload_failed", "network_error", "timeout", "nfc_outcome_not_accepted", "identity_confirm_required", "identity_confirm_locked", "choice_not_found", "choice_locked", "choice_option_unavailable", "step_not_on_path", "check_not_active", "sekyro_app_not_allowed", "sekyro_app_unverified", "id_number_locked", "document_id_number_mismatch", "simulated_capture_forbidden", "native_app_required"];
10
+ /** Closed union of {@link KNOWN_CODES} — exhaustively switchable. */
11
+ type KnownCode = (typeof KNOWN_CODES)[number];
12
+ /** Narrow an arbitrary wire code to the known union (unknown codes stay `string`). */
13
+ declare function isKnownCode(code: string): code is KnownCode;
14
+ /** One machine-readable problem of an error's `details` (Sekyro flows spec §9.4). */
15
+ interface HostedErrorIssue {
16
+ code: string;
17
+ message: string;
18
+ /** The request field (`option`, `nodeId`, …). */
19
+ path?: string;
20
+ /** A node of the flow. */
21
+ nodeId?: string;
22
+ service?: string;
23
+ field?: string;
24
+ }
25
+ /** `details` of a flow error envelope (`choice_*`, `step_not_on_path`, …): the issues, and more per code. */
26
+ interface HostedErrorDetails {
27
+ issues: HostedErrorIssue[];
28
+ /** `override_widens_flow`: the widened fields. */
29
+ fields?: string[];
30
+ /**
31
+ * `form_answers_invalid` (spec 2026-11-14 §14): one entry per refused question or consent, its id and the server's
32
+ * code (`required`, `invalid`, `too_short`, `too_long`, `not_a_choice`, `out_of_range`, `not_in_past`, `not_in_future`,
33
+ * `not_an_integer`, `card_number`, `unknown_question`, `consent_required`), never the value. `issues` is then empty.
34
+ */
35
+ errors?: Array<{
36
+ id: string;
37
+ code: string;
38
+ }>;
39
+ [key: string]: unknown;
40
+ }
41
+ /**
42
+ * Typed transport error: EVERY failure surfaces as one of these — non-2xx
43
+ * responses, rejected fetches, timeouts, and unparseable bodies alike. The
44
+ * hosted page never sees a raw TypeError/DOMException from the client.
45
+ *
46
+ * - `code` — the public envelope's `code`, or a client-synthesized fallback
47
+ * ('unknown_error' / 'upload_failed' / 'network_error' / 'timeout'). Typed
48
+ * `string` because the wire may grow codes; narrow with {@link isKnownCode}
49
+ * before an exhaustive switch.
50
+ * - `status` — the HTTP status, or 0 when no response arrived at all
51
+ * ('network_error' / 'timeout').
52
+ * - `retryAfterSeconds` — parsed from the `Retry-After` header when present
53
+ * (rate-limit 429s always set it).
54
+ * - `details` — the envelope's machine-readable `details` when present (flow
55
+ * errors: `issues[]`).
56
+ */
57
+ declare class HostedApiError extends Error {
58
+ readonly status: number;
59
+ readonly code: string;
60
+ readonly retryAfterSeconds?: number;
61
+ readonly details?: HostedErrorDetails;
62
+ constructor(args: {
63
+ status: number;
64
+ code: string;
65
+ message: string;
66
+ retryAfterSeconds?: number;
67
+ details?: HostedErrorDetails | undefined;
68
+ });
69
+ }
70
+
71
+ /** The session's ICAO policy and profile, or `null` when the selfie is not ICAO-checked. */
72
+ declare function icaoPolicyOf(view: Pick<HostedSessionView, "portrait"> | null | undefined): HostedIcaoPolicy | null;
73
+ /**
74
+ * The `gate` block of a `portrait_icao` body from the gate's summary: the eye
75
+ * baseline, the device verdict under the server's criterion names, and the
76
+ * background-uniformity numbers (telemetry).
77
+ */
78
+ declare function portraitIcaoGate(summary: IcaoGateSummary): NonNullable<PortraitIcaoInput["gate"]>;
79
+
80
+ export { HostedApiError as H, KNOWN_CODES as K, type HostedErrorDetails as a, type HostedErrorIssue as b, type KnownCode as c, isKnownCode as d, icaoPolicyOf as i, portraitIcaoGate as p };
@@ -0,0 +1 @@
1
+ import{a,b}from"./chunk-33KKMPJ5.js";import"./chunk-GI3UFGRQ.js";export{a as ICAO_FALLBACK,b as resolveIcaoTuning};