@sekyro/web 0.1.0-rc.25 → 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.
Files changed (51) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{capture-session-doc-O33KRXH7.js → capture-session-doc-WZMI5XPE.js} +1 -1
  3. package/dist/{capture-session-v3-BoGn8vLv.d.cts → capture-session-v3-BKSjJ6L0.d.cts} +1 -1
  4. package/dist/{capture-session-v3-C0bbHvDc.d.ts → capture-session-v3-C1I_GLC9.d.ts} +1 -1
  5. package/dist/{chunk-MXWLCDFX.js → chunk-4DEPREJ3.js} +1 -1
  6. package/dist/{chunk-DIKSFEYQ.js → chunk-65JZHKVG.js} +1 -1
  7. package/dist/{chunk-24F6JCVH.js → chunk-7MZW3FFH.js} +1 -1
  8. package/dist/chunk-DVTK2DGX.js +1 -0
  9. package/dist/chunk-GPFAPAS6.js +3 -0
  10. package/dist/{chunk-EHKCOBE2.js → chunk-LLX2CKZ3.js} +1 -1
  11. package/dist/chunk-LV23FCYP.js +1 -0
  12. package/dist/{chunk-TDLIXFDT.js → chunk-NFHLJOHW.js} +1 -1
  13. package/dist/{chunk-J4S3QMK6.js → chunk-OVP7FAMJ.js} +1 -1
  14. package/dist/{chunk-7HV77AOV.js → chunk-XOTKATN6.js} +1 -1
  15. package/dist/{chunk-4ESM6SSR.js → chunk-ZCW6PNUX.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-OXPLKHOF.js +1 -0
  25. package/dist/{create-verification-DOBYRCV_.d.ts → create-verification-7wPXJN_P.d.ts} +232 -121
  26. package/dist/{create-verification-D5CrT5f5.d.cts → create-verification-YeuI7_B0.d.cts} +232 -121
  27. package/dist/{detector-scanic-YCDNLCGV.js → detector-scanic-23DAYT3H.js} +1 -1
  28. package/dist/{icao-gate-CJPTgKFb.d.ts → icao-gate-BK8TGaCk.d.ts} +1 -1
  29. package/dist/{icao-gate-DGtY696t.d.cts → icao-gate-pD2dUV3P.d.cts} +1 -1
  30. package/dist/{icao-policy-Bm0rG91t.d.cts → icao-policy-CdR6PFHS.d.cts} +2 -2
  31. package/dist/{icao-policy-D8domgld.d.ts → icao-policy-qJpZOOOu.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-EP26JU6A.js +1 -0
  41. package/dist/{types-ZBcpvLdo.d.ts → types-DB-cZTSn.d.cts} +127 -11
  42. package/dist/{types-ZBcpvLdo.d.cts → types-DB-cZTSn.d.ts} +127 -11
  43. package/dist/upload-file-EGXXM6TQ.js +1 -0
  44. package/package.json +1 -1
  45. package/sbom.cdx.json +10 -10
  46. package/dist/chunk-6XXMWK72.js +0 -1
  47. package/dist/chunk-GLXOSYBH.js +0 -3
  48. package/dist/chunk-MGO2ME5X.js +0 -1
  49. package/dist/create-document-capture-OLKNUVTU.js +0 -1
  50. package/dist/plan-runner-VKPRZ3AD.js +0 -1
  51. package/dist/upload-file-UYXOHCRG.js +0 -1
@@ -286,7 +286,9 @@ type CheckState = "pending" | "input_required" | "processing" | "passed" | "fail
286
286
  * profile v2 §4.6.5) confirms an email address with a one-time code;
287
287
  * `eid_auth` (SDK spec §3.2) is the national eID sign-in (Houwiyeti in MR).
288
288
  */
289
- type CheckType = "liveness" | "face_match" | "doc_ocr" | "population_registry" | "phone_otp" | "nfc_chip" | "email_otp" | "portrait_icao" | "eid_auth";
289
+ type CheckType = "liveness" | "face_match" | "doc_ocr" | "population_registry" | "phone_otp" | "nfc_chip" | "email_otp" | "portrait_icao" | "eid_auth"
290
+ /** Spec 2026-11-10 §5: the proof of address step (a bill or statement, images or one PDF). */
291
+ | "poa";
290
292
  type LivenessReason = "no_face" | "media_unreadable" | "clip_too_short" | "spoof_detected" | "review_band" | "liveness_inconclusive" | "device_integrity_failed" | "mobile_required" | "capture_back_camera" | "capture_not_upright" | "capture_front_camera" | "multiple_faces" | "camera_unavailable";
291
293
  type PopulationReason = "registry_record_not_found" | "nni_not_found" | "id_number_invalid" | "nni_invalid" | "registry_unavailable" | "nationality_not_allowed" | "underage" | "age_unverifiable" | "name_mismatch" | "birth_date_mismatch" | "nationality_mismatch" | "id_number_recheck" | "nni_recheck";
292
294
  type FaceMatchReason = "no_face_source" | "no_face_reference" | "low_quality_reference" | "below_threshold" | "review_band" | "match_inconclusive" | "subject_revoked" | "probe_not_from_liveness" | "prior_review_approved";
@@ -320,7 +322,7 @@ type PhoneOtpReason = "otp_mismatch" | "otp_expired" | "otp_send_failed" | "otp_
320
322
  * mail (`email_invalid`), or a disposable address the app blocks
321
323
  * (`email_disposable`) — the person enters another address or resends.
322
324
  */
323
- type EmailOtpReason = "otp_mismatch" | "otp_expired" | "otp_send_failed" | "otp_rate_limited" | "otp_resend_limit" | "email_invalid" | "email_disposable" | "otp_daily_cap_reached";
325
+ type EmailOtpReason = "otp_mismatch" | "otp_expired" | "otp_send_failed" | "otp_rate_limited" | "otp_resend_limit" | "email_invalid" | "email_disposable" | "otp_daily_cap_reached" | "payment_method_required" | "spend_cap_reached" | "insufficient_balance" | "account_verification_required";
324
326
  /**
325
327
  * nfc_chip reasons (M-nfc, SDK spec §4.3). Native SDKs read the chip; the web
326
328
  * never does — on web the step arrives `skipped` (`platform_unsupported`) or
@@ -347,12 +349,23 @@ type EidReason = "eid_identifier_invalid" | "eid_code_invalid" | "eid_code_expir
347
349
  * is final and ends the session.
348
350
  */
349
351
  type AgeEstimationReason = "age_uncertain" | "age_unavailable" | "underage_estimated";
352
+ /**
353
+ * Reasons of the proof of address step (`poa`, spec 2026-11-10 §5.3), in the server's decision order:
354
+ * `provider_unavailable` (the document could not be checked now; retry), `unreadable` (a sharper, complete copy),
355
+ * `pdf_protected` (the PDF has a password, scripts, attachments or forms), `document_kind_not_accepted` and
356
+ * `document_too_old` (the step's rule for the document's country says what is accepted: `proofOfAddress.rule`),
357
+ * `document_date_invalid` (a date in the future), `document_tampered` (final), `name_mismatch`,
358
+ * `holder_letter_required` (the bill is in another person's name: the step asks for the holder's letter,
359
+ * `proofOfAddress.phase: "holder_letter"`), `holder_letter_missing` (the letter is incomplete) and `address_mismatch`
360
+ * (the address differs from the one the partner supplied).
361
+ */
362
+ type PoaReason = "provider_unavailable" | "unreadable" | "pdf_protected" | "document_kind_not_accepted" | "document_date_invalid" | "document_too_old" | "document_tampered" | "name_mismatch" | "holder_letter_required" | "holder_letter_missing" | "address_mismatch";
350
363
  /**
351
364
  * Any frozen reason code. The backend declares the field `string`, but the
352
365
  * taxonomy is frozen (do-not-drift) — the union IS the contract. NB: liveness
353
366
  * and face_match both carry `review_band`.
354
367
  */
355
- type CheckReason = LivenessReason | PopulationReason | FaceMatchReason | DocReason | PhoneOtpReason | EmailOtpReason | NfcChipReason | PortraitIcaoReason | EidReason
368
+ type CheckReason = LivenessReason | PopulationReason | FaceMatchReason | DocReason | PhoneOtpReason | EmailOtpReason | NfcChipReason | PortraitIcaoReason | EidReason | PoaReason
356
369
  /**
357
370
  * Spec 2026-10-27 (Sandbox testers), tester-bound sessions only:
358
371
  * `tester_document_mismatch` (doc_ocr, nfc_chip) when the document read is
@@ -447,10 +460,11 @@ interface NationalEidOption {
447
460
  type EidAfterPass = "end" | "continue";
448
461
  /**
449
462
  * The section a step belongs to (flow model 2026-10-23, SDK spec §3.7): Step 1
450
- * `contact`, Step 2 `identity`, Step 3 `live_photo`. Open: a value this SDK
451
- * does not know is kept as is, so a client still places the step.
463
+ * `contact`, Step 2 `identity`, Step 3 `live_photo`; `documents` holds the proof
464
+ * of address (spec 2026-11-10). Open: a value this SDK does not know is kept as
465
+ * is, so a client still places the step.
452
466
  */
453
- type StepSection = "contact" | "identity" | "live_photo" | "screening" | (string & {});
467
+ type StepSection = "contact" | "identity" | "live_photo" | "screening" | "documents" | (string & {});
454
468
  /** A contact channel of a contact choice (`phone_otp` → `phone`, `email_otp` → `email`). */
455
469
  type ContactChannel = "phone" | "email";
456
470
  /**
@@ -598,8 +612,12 @@ interface MethodChoiceView {
598
612
  */
599
613
  nationalEid?: NationalEidOption;
600
614
  }
601
- /** A document type the backend reads (kyc-docs-v2 vocabulary; `carte_identite` = identity card of any issuer). */
602
- type AcceptedDocumentType = "carte_identite" | "passport" | "residence_permit";
615
+ /**
616
+ * A document type the backend reads (kyc-docs-v2 vocabulary; `carte_identite` = identity card of any issuer).
617
+ * `drivers_license` (spec 2026-11-10 §6): a driving licence, two faces, no MRZ, offered only when the flow lists it
618
+ * (`"*"` never includes it).
619
+ */
620
+ type AcceptedDocumentType = "carte_identite" | "passport" | "residence_permit" | "drivers_license";
603
621
  /**
604
622
  * Accepted document types per issuing country (profile v2 §5.3a): an issuer
605
623
  * uses `byIssuer[iso2] ?? default`; `"*"` = every type.
@@ -1351,6 +1369,12 @@ interface HostedSessionView {
1351
1369
  * with no upload offered (and on older APIs): `{ source: "camera", uploadOffered: false }`.
1352
1370
  */
1353
1371
  documents?: HostedDocumentsView;
1372
+ /**
1373
+ * Spec 2026-11-10 §5.4, §7.4: the open proof of address step's settings (the accepted kinds for the best known
1374
+ * country, the name rule, the phase, the photo source, the upload limits). Present only while a `poa` step is open;
1375
+ * absent on older APIs.
1376
+ */
1377
+ proofOfAddress?: HostedProofOfAddressView;
1354
1378
  /**
1355
1379
  * Spec 2026-10-29 D12: where the hosted completion screen sends the person (`returnUrl`, checked at session
1356
1380
  * create against the app's web origins or native scheme) and the partner's opaque `state`. Never the result.
@@ -1424,12 +1448,13 @@ interface SessionView {
1424
1448
  createdAt?: string;
1425
1449
  }
1426
1450
  /** Media class — selects size cap, MIME allowlist and promoted prefix (media.policy.ts). */
1427
- type MediaKind = "image" | "clip";
1451
+ type MediaKind = "image" | "clip" | "document_file";
1428
1452
  /**
1429
1453
  * Body of `POST /sessions/:id/media`. `contentType`/`contentLength` are the
1430
1454
  * exact values SIGNED into the presigned PUT — the PUT must send them verbatim.
1431
1455
  * Allowlists (media.policy.ts): image → image/jpeg | image/png (5 MB cap);
1432
- * clip → video/webm | video/mp4 (15 MB cap). BARE types only — no `;codecs=` params.
1456
+ * clip → video/webm | video/mp4 (15 MB cap); document_file → application/pdf (10 MB cap, the proof of address
1457
+ * step's upload only, spec 2026-11-10 §7.1). BARE types only — no `;codecs=` params.
1433
1458
  */
1434
1459
  interface PresignRequest {
1435
1460
  kind: MediaKind;
@@ -1631,6 +1656,90 @@ interface HostedDocumentsView {
1631
1656
  */
1632
1657
  uploadOffered: boolean;
1633
1658
  }
1659
+ /** The document kinds a proof of address may be (spec §5.2). */
1660
+ type PoaKind = "utility_bill" | "telecom_bill" | "bank_statement" | "tax_notice" | "rental_agreement" | "government_certificate" | "insurance_statement";
1661
+ /**
1662
+ * How the name on the document is matched: `exact_person` (the person's own name), `family_name` (the same family
1663
+ * name), `third_party_letter` (another holder, with a signed letter from that holder).
1664
+ */
1665
+ type PoaNameMatchMode = "exact_person" | "family_name" | "third_party_letter";
1666
+ /**
1667
+ * Where the step's rule came from: the flow's rule for the country (`flow_country`), the flow's default rule
1668
+ * (`flow_default`), Sekyro's preset for the country (`preset_country`) or the global preset (`preset_global`).
1669
+ */
1670
+ type PoaRuleSource = "flow_country" | "flow_default" | "preset_country" | "preset_global";
1671
+ /** One accepted kind of the step's rule. */
1672
+ interface HostedPoaRuleKindView {
1673
+ kind: PoaKind;
1674
+ /** How old the document of this kind may be, in days. */
1675
+ maxAgeDays: number;
1676
+ /** ISO day: today minus `maxAgeDays`, computed by the server so every client says the same date. */
1677
+ earliestIssueDate: string;
1678
+ }
1679
+ /** The accepted documents the step shows (spec §5.4 "person-facing list"), resolved by the server. */
1680
+ interface HostedPoaRuleView {
1681
+ /** The country the rule was resolved for (ISO 3166-1 alpha-2); `null` = the global entry. */
1682
+ country: string | null;
1683
+ /**
1684
+ * How that country was chosen: the identity document's issuer, else the IP country, else global; after a
1685
+ * `document_kind_not_accepted` or `document_too_old` failure, the failed document's own country (`document`).
1686
+ */
1687
+ countryFrom: "identity_document" | "ip" | "document" | "global";
1688
+ source: PoaRuleSource;
1689
+ kinds: HostedPoaRuleKindView[];
1690
+ }
1691
+ /** The open proof of address step (`HostedSessionView.proofOfAddress`). */
1692
+ interface HostedProofOfAddressView {
1693
+ rule: HostedPoaRuleView;
1694
+ nameMatch: PoaNameMatchMode;
1695
+ /** `holder_letter` once the bill was read under `third_party_letter` and the step waits for the holder's letter. */
1696
+ phase: "document" | "holder_letter";
1697
+ /** Where the pages come from ({@link PhotoSource}). */
1698
+ source: PhotoSource;
1699
+ /** The person's pick under `choice`, once made for this step. */
1700
+ sourcePick?: PhotoSourcePick;
1701
+ /** An upload would be accepted now. */
1702
+ uploadOffered: boolean;
1703
+ /** Pages per document, at most. */
1704
+ maxPages: 3;
1705
+ /** A PDF upload's limits. */
1706
+ pdf: {
1707
+ maxBytes: number;
1708
+ maxPages: 3;
1709
+ };
1710
+ /**
1711
+ * Spec 2026-11-10 §5.3 licence shortcut: the step accepts the address of the driving licence read earlier in the
1712
+ * session, so the person may continue without a document ({@link PoaLicenceInput}). Present only in the `document`
1713
+ * phase.
1714
+ */
1715
+ licenceAddressAccepted?: true;
1716
+ }
1717
+ /**
1718
+ * `poa` executor input (spec 2026-11-10 §7): the document (or, in the `holder_letter` phase, the holder's letter) as
1719
+ * 1 to 3 promoted page images, or as one promoted PDF (`document_file` media kind).
1720
+ */
1721
+ type PoaInput = PoaImagesInput | PoaPdfInput | PoaLicenceInput;
1722
+ /**
1723
+ * The licence shortcut (spec 2026-11-10 §5.3): no media; the server decides from the driving licence read earlier in
1724
+ * the session. Only while the view's `proofOfAddress.licenceAddressAccepted` is set.
1725
+ */
1726
+ interface PoaLicenceInput {
1727
+ part: "document";
1728
+ }
1729
+ /** The pages as images, in order. */
1730
+ interface PoaImagesInput {
1731
+ part: "document" | "holder_letter";
1732
+ source: PhotoSourcePick;
1733
+ /** 1 to 3 promoted `image` keys. */
1734
+ imageKeys: string[];
1735
+ }
1736
+ /** The document as one PDF (always picked from the device). */
1737
+ interface PoaPdfInput {
1738
+ part: "document" | "holder_letter";
1739
+ source: "upload";
1740
+ /** The promoted `document_file` key. */
1741
+ pdfKey: string;
1742
+ }
1634
1743
  /** doc_ocr executor input: a promoted `doc-images/…` key + which side it shows. */
1635
1744
  interface DocOcrInput {
1636
1745
  imageKey: string;
@@ -1646,6 +1755,11 @@ interface DocOcrInput {
1646
1755
  * view's `documents.uploadOffered`; else 400 `document_upload_not_allowed`). Absent = `camera`.
1647
1756
  */
1648
1757
  source?: PhotoSourcePick;
1758
+ /**
1759
+ * Spec 2026-11-10 §6.2: `drivers_license` when the person picked the driving licence, so the server reads both faces
1760
+ * with its document reader instead of the MRZ pipeline. Absent for every other type (the server keeps its path).
1761
+ */
1762
+ documentType?: "drivers_license";
1649
1763
  }
1650
1764
  /** The `doc_ocr` device-read hint (identity-backend DeviceReadSchema; strict, text-free). */
1651
1765
  interface DocDeviceRead {
@@ -1802,6 +1916,8 @@ interface CheckInputByType {
1802
1916
  portrait_icao: PortraitIcaoInput;
1803
1917
  /** SDK spec §3.2: the national eID sign-in. */
1804
1918
  eid_auth: EidAuthInput;
1919
+ /** Spec 2026-11-10 §5: the proof of address pages or PDF. */
1920
+ poa: PoaInput;
1805
1921
  }
1806
1922
  /**
1807
1923
  * Body of `POST /sessions/:id/checks/:checkType` (SubmitCheckSchema).
@@ -1817,4 +1933,4 @@ interface SubmitCheckBody {
1817
1933
  forceOutcome?: "pass" | "fail" | "age_over" | "age_uncertain" | "age_under" | "age_unavailable";
1818
1934
  }
1819
1935
 
1820
- export { type IdentityConfirmDecision as $, type AcceptedDocumentType as A, type HostedDocumentsView as B, type CaptureContext as C, type DecisionReason as D, type EidAfterPass as E, type FaceMatchInput as F, type HostedEidView as G, type HostedAcceptedDocuments as H, type HostedEmailOtpView as I, type HostedFlowRef as J, type HostedIcaoPolicy as K, type HostedIntegrity as L, type HostedLivePhotoTuning as M, type HostedNativeCaptureTuning as N, type HostedOcrTuning as O, type HostedOtpView as P, type HostedPlanView as Q, type HostedPortraitPendingFix as R, type HostedPortraitView as S, type HostedSessionView as T, type HostedSimulationView as U, type HostedStepView as V, type HostedTesterGateView as W, type HostedVoiceLocale as X, type HostedVoiceView as Y, type IcaoCriterion as Z, type IcaoReportEntry as _, type AttestationInput as a, type ScreenRampReport as a$, type IdentityMethod as a0, type IdentitySummarySource as a1, type IdentitySummaryView as a2, type LivenessCaptureInput as a3, type LivenessInput as a4, type LivenessReason as a5, type MatchReason as a6, type MediaKind as a7, type MethodChoiceView as a8, type NationalEidOption as a9, type SessionDecidingStep as aA, type SessionFailureReason as aB, type SessionReason as aC, type SessionStatus as aD, type SessionStepView as aE, type SessionView as aF, type SimulatedCaptureInput as aG, type StepResult as aH, type StepSection as aI, type SubmitCheckBody as aJ, type TesterGateInput as aK, type TesterGateResponse as aL, type VerificationAssurance as aM, type VerificationLevel as aN, type ScreenRampColour as aO, type AgeEstimationReason as aP, type CameraUnavailableCause as aQ, type CaptureIssueReport as aR, type CaptureProvenance as aS, type HostedBranding as aT, type HostedBrandingColorKey as aU, type HostedLivenessCaptureTuning as aV, type IcaoCaptureTuning as aW, type RetakeHint as aX, type ScreenRampChallenge as aY, type ScreenRampPaint as aZ, type ScreenRampRendered as a_, type NfcChipReason as aa, type NfcStepView as ab, type OtpChoiceView as ac, type PhoneCountryRule as ad, type PhoneFormat as ae, type PhoneOtpInput as af, type PhoneOtpReason as ag, type PhotoSource as ah, type PhotoSourcePick as ai, type PlanAttempts as aj, type PlanChoiceKind as ak, type PlanChoiceOption as al, type PlanChoiceView as am, type PlanSectionView as an, type PlanStepView as ao, type PopulationInput as ap, type PopulationReason as aq, type PortraitFix as ar, type PortraitFixReviewInput as as, type PortraitIcaoInput as at, type PortraitIcaoReason as au, type PortraitOutputFormat as av, type PresignRequest as aw, type PresignUploadResult as ax, type RecordConsentResult as ay, type ResolvedCaptureMode as az, type CaptureMode as b, ICAO_FALLBACK as b0, type IcaoProfile as b1, type ResolvedIcaoTuning as b2, resolveIcaoTuning as b3, type PersonMask as b4, type BackgroundUniformity as b5, type CaptureNoncesResult as c, type CaptureProof as d, type CheckInputByType as e, type CheckReason as f, type CheckState as g, type CheckType as h, type ClosedBy as i, type CompleteMediaResult as j, type ConsentLocale as k, type ContactChannel as l, type DocDeviceRead as m, type DocOcrInput as n, type DocReason as o, type DocSide as p, type EidAuthInput as q, type EidReason as r, type EmailOtpInput as s, type EmailOtpReason as t, type FaceMatchReason as u, type HostedCaptureTuning as v, type HostedChallengeView as w, type HostedConsentView as x, type HostedDocumentCaptureTuning as y, type HostedDocumentScanTuning as z };
1936
+ export { type HostedVoiceView as $, type AcceptedDocumentType as A, type HostedDocumentsView as B, type CaptureContext as C, type DecisionReason as D, type EidAfterPass as E, type FaceMatchInput as F, type HostedEidView as G, type HostedAcceptedDocuments as H, type HostedEmailOtpView as I, type HostedFlowRef as J, type HostedIcaoPolicy as K, type HostedIntegrity as L, type HostedLivePhotoTuning as M, type HostedNativeCaptureTuning as N, type HostedOcrTuning as O, type HostedOtpView as P, type HostedPlanView as Q, type HostedPoaRuleKindView as R, type HostedPoaRuleView as S, type HostedPortraitPendingFix as T, type HostedPortraitView as U, type HostedProofOfAddressView as V, type HostedSessionView as W, type HostedSimulationView as X, type HostedStepView as Y, type HostedTesterGateView as Z, type HostedVoiceLocale as _, type AttestationInput as a, type CameraUnavailableCause as a$, type IcaoCriterion as a0, type IcaoReportEntry as a1, type IdentityConfirmDecision as a2, type IdentityMethod as a3, type IdentitySummarySource as a4, type IdentitySummaryView as a5, type LivenessCaptureInput as a6, type LivenessInput as a7, type LivenessReason as a8, type MatchReason as a9, type PopulationInput as aA, type PopulationReason as aB, type PortraitFix as aC, type PortraitFixReviewInput as aD, type PortraitIcaoInput as aE, type PortraitIcaoReason as aF, type PortraitOutputFormat as aG, type PresignRequest as aH, type PresignUploadResult as aI, type RecordConsentResult as aJ, type ResolvedCaptureMode as aK, type SessionDecidingStep as aL, type SessionFailureReason as aM, type SessionReason as aN, type SessionStatus as aO, type SessionStepView as aP, type SessionView as aQ, type SimulatedCaptureInput as aR, type StepResult as aS, type StepSection as aT, type SubmitCheckBody as aU, type TesterGateInput as aV, type TesterGateResponse as aW, type VerificationAssurance as aX, type VerificationLevel as aY, type ScreenRampColour as aZ, type AgeEstimationReason as a_, type MediaKind as aa, type MethodChoiceView as ab, type NationalEidOption as ac, type NfcChipReason as ad, type NfcStepView as ae, type OtpChoiceView as af, type PhoneCountryRule as ag, type PhoneFormat as ah, type PhoneOtpInput as ai, type PhoneOtpReason as aj, type PhotoSource as ak, type PhotoSourcePick as al, type PlanAttempts as am, type PlanChoiceKind as an, type PlanChoiceOption as ao, type PlanChoiceView as ap, type PlanSectionView as aq, type PlanStepView as ar, type PoaImagesInput as as, type PoaInput as at, type PoaKind as au, type PoaLicenceInput as av, type PoaNameMatchMode as aw, type PoaPdfInput as ax, type PoaReason as ay, type PoaRuleSource as az, type CaptureMode as b, type CaptureIssueReport as b0, type CaptureProvenance as b1, type HostedBranding as b2, type HostedBrandingColorKey as b3, type HostedLivenessCaptureTuning as b4, type IcaoCaptureTuning as b5, type RetakeHint as b6, type ScreenRampChallenge as b7, type ScreenRampPaint as b8, type ScreenRampRendered as b9, type ScreenRampReport as ba, ICAO_FALLBACK as bb, type IcaoProfile as bc, type ResolvedIcaoTuning as bd, resolveIcaoTuning as be, type PersonMask as bf, type BackgroundUniformity as bg, type CaptureNoncesResult as c, type CaptureProof as d, type CheckInputByType as e, type CheckReason as f, type CheckState as g, type CheckType as h, type ClosedBy as i, type CompleteMediaResult as j, type ConsentLocale as k, type ContactChannel as l, type DocDeviceRead as m, type DocOcrInput as n, type DocReason as o, type DocSide as p, type EidAuthInput as q, type EidReason as r, type EmailOtpInput as s, type EmailOtpReason as t, type FaceMatchReason as u, type HostedCaptureTuning as v, type HostedChallengeView as w, type HostedConsentView as x, type HostedDocumentCaptureTuning as y, type HostedDocumentScanTuning as z };
@@ -286,7 +286,9 @@ type CheckState = "pending" | "input_required" | "processing" | "passed" | "fail
286
286
  * profile v2 §4.6.5) confirms an email address with a one-time code;
287
287
  * `eid_auth` (SDK spec §3.2) is the national eID sign-in (Houwiyeti in MR).
288
288
  */
289
- type CheckType = "liveness" | "face_match" | "doc_ocr" | "population_registry" | "phone_otp" | "nfc_chip" | "email_otp" | "portrait_icao" | "eid_auth";
289
+ type CheckType = "liveness" | "face_match" | "doc_ocr" | "population_registry" | "phone_otp" | "nfc_chip" | "email_otp" | "portrait_icao" | "eid_auth"
290
+ /** Spec 2026-11-10 §5: the proof of address step (a bill or statement, images or one PDF). */
291
+ | "poa";
290
292
  type LivenessReason = "no_face" | "media_unreadable" | "clip_too_short" | "spoof_detected" | "review_band" | "liveness_inconclusive" | "device_integrity_failed" | "mobile_required" | "capture_back_camera" | "capture_not_upright" | "capture_front_camera" | "multiple_faces" | "camera_unavailable";
291
293
  type PopulationReason = "registry_record_not_found" | "nni_not_found" | "id_number_invalid" | "nni_invalid" | "registry_unavailable" | "nationality_not_allowed" | "underage" | "age_unverifiable" | "name_mismatch" | "birth_date_mismatch" | "nationality_mismatch" | "id_number_recheck" | "nni_recheck";
292
294
  type FaceMatchReason = "no_face_source" | "no_face_reference" | "low_quality_reference" | "below_threshold" | "review_band" | "match_inconclusive" | "subject_revoked" | "probe_not_from_liveness" | "prior_review_approved";
@@ -320,7 +322,7 @@ type PhoneOtpReason = "otp_mismatch" | "otp_expired" | "otp_send_failed" | "otp_
320
322
  * mail (`email_invalid`), or a disposable address the app blocks
321
323
  * (`email_disposable`) — the person enters another address or resends.
322
324
  */
323
- type EmailOtpReason = "otp_mismatch" | "otp_expired" | "otp_send_failed" | "otp_rate_limited" | "otp_resend_limit" | "email_invalid" | "email_disposable" | "otp_daily_cap_reached";
325
+ type EmailOtpReason = "otp_mismatch" | "otp_expired" | "otp_send_failed" | "otp_rate_limited" | "otp_resend_limit" | "email_invalid" | "email_disposable" | "otp_daily_cap_reached" | "payment_method_required" | "spend_cap_reached" | "insufficient_balance" | "account_verification_required";
324
326
  /**
325
327
  * nfc_chip reasons (M-nfc, SDK spec §4.3). Native SDKs read the chip; the web
326
328
  * never does — on web the step arrives `skipped` (`platform_unsupported`) or
@@ -347,12 +349,23 @@ type EidReason = "eid_identifier_invalid" | "eid_code_invalid" | "eid_code_expir
347
349
  * is final and ends the session.
348
350
  */
349
351
  type AgeEstimationReason = "age_uncertain" | "age_unavailable" | "underage_estimated";
352
+ /**
353
+ * Reasons of the proof of address step (`poa`, spec 2026-11-10 §5.3), in the server's decision order:
354
+ * `provider_unavailable` (the document could not be checked now; retry), `unreadable` (a sharper, complete copy),
355
+ * `pdf_protected` (the PDF has a password, scripts, attachments or forms), `document_kind_not_accepted` and
356
+ * `document_too_old` (the step's rule for the document's country says what is accepted: `proofOfAddress.rule`),
357
+ * `document_date_invalid` (a date in the future), `document_tampered` (final), `name_mismatch`,
358
+ * `holder_letter_required` (the bill is in another person's name: the step asks for the holder's letter,
359
+ * `proofOfAddress.phase: "holder_letter"`), `holder_letter_missing` (the letter is incomplete) and `address_mismatch`
360
+ * (the address differs from the one the partner supplied).
361
+ */
362
+ type PoaReason = "provider_unavailable" | "unreadable" | "pdf_protected" | "document_kind_not_accepted" | "document_date_invalid" | "document_too_old" | "document_tampered" | "name_mismatch" | "holder_letter_required" | "holder_letter_missing" | "address_mismatch";
350
363
  /**
351
364
  * Any frozen reason code. The backend declares the field `string`, but the
352
365
  * taxonomy is frozen (do-not-drift) — the union IS the contract. NB: liveness
353
366
  * and face_match both carry `review_band`.
354
367
  */
355
- type CheckReason = LivenessReason | PopulationReason | FaceMatchReason | DocReason | PhoneOtpReason | EmailOtpReason | NfcChipReason | PortraitIcaoReason | EidReason
368
+ type CheckReason = LivenessReason | PopulationReason | FaceMatchReason | DocReason | PhoneOtpReason | EmailOtpReason | NfcChipReason | PortraitIcaoReason | EidReason | PoaReason
356
369
  /**
357
370
  * Spec 2026-10-27 (Sandbox testers), tester-bound sessions only:
358
371
  * `tester_document_mismatch` (doc_ocr, nfc_chip) when the document read is
@@ -447,10 +460,11 @@ interface NationalEidOption {
447
460
  type EidAfterPass = "end" | "continue";
448
461
  /**
449
462
  * The section a step belongs to (flow model 2026-10-23, SDK spec §3.7): Step 1
450
- * `contact`, Step 2 `identity`, Step 3 `live_photo`. Open: a value this SDK
451
- * does not know is kept as is, so a client still places the step.
463
+ * `contact`, Step 2 `identity`, Step 3 `live_photo`; `documents` holds the proof
464
+ * of address (spec 2026-11-10). Open: a value this SDK does not know is kept as
465
+ * is, so a client still places the step.
452
466
  */
453
- type StepSection = "contact" | "identity" | "live_photo" | "screening" | (string & {});
467
+ type StepSection = "contact" | "identity" | "live_photo" | "screening" | "documents" | (string & {});
454
468
  /** A contact channel of a contact choice (`phone_otp` → `phone`, `email_otp` → `email`). */
455
469
  type ContactChannel = "phone" | "email";
456
470
  /**
@@ -598,8 +612,12 @@ interface MethodChoiceView {
598
612
  */
599
613
  nationalEid?: NationalEidOption;
600
614
  }
601
- /** A document type the backend reads (kyc-docs-v2 vocabulary; `carte_identite` = identity card of any issuer). */
602
- type AcceptedDocumentType = "carte_identite" | "passport" | "residence_permit";
615
+ /**
616
+ * A document type the backend reads (kyc-docs-v2 vocabulary; `carte_identite` = identity card of any issuer).
617
+ * `drivers_license` (spec 2026-11-10 §6): a driving licence, two faces, no MRZ, offered only when the flow lists it
618
+ * (`"*"` never includes it).
619
+ */
620
+ type AcceptedDocumentType = "carte_identite" | "passport" | "residence_permit" | "drivers_license";
603
621
  /**
604
622
  * Accepted document types per issuing country (profile v2 §5.3a): an issuer
605
623
  * uses `byIssuer[iso2] ?? default`; `"*"` = every type.
@@ -1351,6 +1369,12 @@ interface HostedSessionView {
1351
1369
  * with no upload offered (and on older APIs): `{ source: "camera", uploadOffered: false }`.
1352
1370
  */
1353
1371
  documents?: HostedDocumentsView;
1372
+ /**
1373
+ * Spec 2026-11-10 §5.4, §7.4: the open proof of address step's settings (the accepted kinds for the best known
1374
+ * country, the name rule, the phase, the photo source, the upload limits). Present only while a `poa` step is open;
1375
+ * absent on older APIs.
1376
+ */
1377
+ proofOfAddress?: HostedProofOfAddressView;
1354
1378
  /**
1355
1379
  * Spec 2026-10-29 D12: where the hosted completion screen sends the person (`returnUrl`, checked at session
1356
1380
  * create against the app's web origins or native scheme) and the partner's opaque `state`. Never the result.
@@ -1424,12 +1448,13 @@ interface SessionView {
1424
1448
  createdAt?: string;
1425
1449
  }
1426
1450
  /** Media class — selects size cap, MIME allowlist and promoted prefix (media.policy.ts). */
1427
- type MediaKind = "image" | "clip";
1451
+ type MediaKind = "image" | "clip" | "document_file";
1428
1452
  /**
1429
1453
  * Body of `POST /sessions/:id/media`. `contentType`/`contentLength` are the
1430
1454
  * exact values SIGNED into the presigned PUT — the PUT must send them verbatim.
1431
1455
  * Allowlists (media.policy.ts): image → image/jpeg | image/png (5 MB cap);
1432
- * clip → video/webm | video/mp4 (15 MB cap). BARE types only — no `;codecs=` params.
1456
+ * clip → video/webm | video/mp4 (15 MB cap); document_file → application/pdf (10 MB cap, the proof of address
1457
+ * step's upload only, spec 2026-11-10 §7.1). BARE types only — no `;codecs=` params.
1433
1458
  */
1434
1459
  interface PresignRequest {
1435
1460
  kind: MediaKind;
@@ -1631,6 +1656,90 @@ interface HostedDocumentsView {
1631
1656
  */
1632
1657
  uploadOffered: boolean;
1633
1658
  }
1659
+ /** The document kinds a proof of address may be (spec §5.2). */
1660
+ type PoaKind = "utility_bill" | "telecom_bill" | "bank_statement" | "tax_notice" | "rental_agreement" | "government_certificate" | "insurance_statement";
1661
+ /**
1662
+ * How the name on the document is matched: `exact_person` (the person's own name), `family_name` (the same family
1663
+ * name), `third_party_letter` (another holder, with a signed letter from that holder).
1664
+ */
1665
+ type PoaNameMatchMode = "exact_person" | "family_name" | "third_party_letter";
1666
+ /**
1667
+ * Where the step's rule came from: the flow's rule for the country (`flow_country`), the flow's default rule
1668
+ * (`flow_default`), Sekyro's preset for the country (`preset_country`) or the global preset (`preset_global`).
1669
+ */
1670
+ type PoaRuleSource = "flow_country" | "flow_default" | "preset_country" | "preset_global";
1671
+ /** One accepted kind of the step's rule. */
1672
+ interface HostedPoaRuleKindView {
1673
+ kind: PoaKind;
1674
+ /** How old the document of this kind may be, in days. */
1675
+ maxAgeDays: number;
1676
+ /** ISO day: today minus `maxAgeDays`, computed by the server so every client says the same date. */
1677
+ earliestIssueDate: string;
1678
+ }
1679
+ /** The accepted documents the step shows (spec §5.4 "person-facing list"), resolved by the server. */
1680
+ interface HostedPoaRuleView {
1681
+ /** The country the rule was resolved for (ISO 3166-1 alpha-2); `null` = the global entry. */
1682
+ country: string | null;
1683
+ /**
1684
+ * How that country was chosen: the identity document's issuer, else the IP country, else global; after a
1685
+ * `document_kind_not_accepted` or `document_too_old` failure, the failed document's own country (`document`).
1686
+ */
1687
+ countryFrom: "identity_document" | "ip" | "document" | "global";
1688
+ source: PoaRuleSource;
1689
+ kinds: HostedPoaRuleKindView[];
1690
+ }
1691
+ /** The open proof of address step (`HostedSessionView.proofOfAddress`). */
1692
+ interface HostedProofOfAddressView {
1693
+ rule: HostedPoaRuleView;
1694
+ nameMatch: PoaNameMatchMode;
1695
+ /** `holder_letter` once the bill was read under `third_party_letter` and the step waits for the holder's letter. */
1696
+ phase: "document" | "holder_letter";
1697
+ /** Where the pages come from ({@link PhotoSource}). */
1698
+ source: PhotoSource;
1699
+ /** The person's pick under `choice`, once made for this step. */
1700
+ sourcePick?: PhotoSourcePick;
1701
+ /** An upload would be accepted now. */
1702
+ uploadOffered: boolean;
1703
+ /** Pages per document, at most. */
1704
+ maxPages: 3;
1705
+ /** A PDF upload's limits. */
1706
+ pdf: {
1707
+ maxBytes: number;
1708
+ maxPages: 3;
1709
+ };
1710
+ /**
1711
+ * Spec 2026-11-10 §5.3 licence shortcut: the step accepts the address of the driving licence read earlier in the
1712
+ * session, so the person may continue without a document ({@link PoaLicenceInput}). Present only in the `document`
1713
+ * phase.
1714
+ */
1715
+ licenceAddressAccepted?: true;
1716
+ }
1717
+ /**
1718
+ * `poa` executor input (spec 2026-11-10 §7): the document (or, in the `holder_letter` phase, the holder's letter) as
1719
+ * 1 to 3 promoted page images, or as one promoted PDF (`document_file` media kind).
1720
+ */
1721
+ type PoaInput = PoaImagesInput | PoaPdfInput | PoaLicenceInput;
1722
+ /**
1723
+ * The licence shortcut (spec 2026-11-10 §5.3): no media; the server decides from the driving licence read earlier in
1724
+ * the session. Only while the view's `proofOfAddress.licenceAddressAccepted` is set.
1725
+ */
1726
+ interface PoaLicenceInput {
1727
+ part: "document";
1728
+ }
1729
+ /** The pages as images, in order. */
1730
+ interface PoaImagesInput {
1731
+ part: "document" | "holder_letter";
1732
+ source: PhotoSourcePick;
1733
+ /** 1 to 3 promoted `image` keys. */
1734
+ imageKeys: string[];
1735
+ }
1736
+ /** The document as one PDF (always picked from the device). */
1737
+ interface PoaPdfInput {
1738
+ part: "document" | "holder_letter";
1739
+ source: "upload";
1740
+ /** The promoted `document_file` key. */
1741
+ pdfKey: string;
1742
+ }
1634
1743
  /** doc_ocr executor input: a promoted `doc-images/…` key + which side it shows. */
1635
1744
  interface DocOcrInput {
1636
1745
  imageKey: string;
@@ -1646,6 +1755,11 @@ interface DocOcrInput {
1646
1755
  * view's `documents.uploadOffered`; else 400 `document_upload_not_allowed`). Absent = `camera`.
1647
1756
  */
1648
1757
  source?: PhotoSourcePick;
1758
+ /**
1759
+ * Spec 2026-11-10 §6.2: `drivers_license` when the person picked the driving licence, so the server reads both faces
1760
+ * with its document reader instead of the MRZ pipeline. Absent for every other type (the server keeps its path).
1761
+ */
1762
+ documentType?: "drivers_license";
1649
1763
  }
1650
1764
  /** The `doc_ocr` device-read hint (identity-backend DeviceReadSchema; strict, text-free). */
1651
1765
  interface DocDeviceRead {
@@ -1802,6 +1916,8 @@ interface CheckInputByType {
1802
1916
  portrait_icao: PortraitIcaoInput;
1803
1917
  /** SDK spec §3.2: the national eID sign-in. */
1804
1918
  eid_auth: EidAuthInput;
1919
+ /** Spec 2026-11-10 §5: the proof of address pages or PDF. */
1920
+ poa: PoaInput;
1805
1921
  }
1806
1922
  /**
1807
1923
  * Body of `POST /sessions/:id/checks/:checkType` (SubmitCheckSchema).
@@ -1817,4 +1933,4 @@ interface SubmitCheckBody {
1817
1933
  forceOutcome?: "pass" | "fail" | "age_over" | "age_uncertain" | "age_under" | "age_unavailable";
1818
1934
  }
1819
1935
 
1820
- export { type IdentityConfirmDecision as $, type AcceptedDocumentType as A, type HostedDocumentsView as B, type CaptureContext as C, type DecisionReason as D, type EidAfterPass as E, type FaceMatchInput as F, type HostedEidView as G, type HostedAcceptedDocuments as H, type HostedEmailOtpView as I, type HostedFlowRef as J, type HostedIcaoPolicy as K, type HostedIntegrity as L, type HostedLivePhotoTuning as M, type HostedNativeCaptureTuning as N, type HostedOcrTuning as O, type HostedOtpView as P, type HostedPlanView as Q, type HostedPortraitPendingFix as R, type HostedPortraitView as S, type HostedSessionView as T, type HostedSimulationView as U, type HostedStepView as V, type HostedTesterGateView as W, type HostedVoiceLocale as X, type HostedVoiceView as Y, type IcaoCriterion as Z, type IcaoReportEntry as _, type AttestationInput as a, type ScreenRampReport as a$, type IdentityMethod as a0, type IdentitySummarySource as a1, type IdentitySummaryView as a2, type LivenessCaptureInput as a3, type LivenessInput as a4, type LivenessReason as a5, type MatchReason as a6, type MediaKind as a7, type MethodChoiceView as a8, type NationalEidOption as a9, type SessionDecidingStep as aA, type SessionFailureReason as aB, type SessionReason as aC, type SessionStatus as aD, type SessionStepView as aE, type SessionView as aF, type SimulatedCaptureInput as aG, type StepResult as aH, type StepSection as aI, type SubmitCheckBody as aJ, type TesterGateInput as aK, type TesterGateResponse as aL, type VerificationAssurance as aM, type VerificationLevel as aN, type ScreenRampColour as aO, type AgeEstimationReason as aP, type CameraUnavailableCause as aQ, type CaptureIssueReport as aR, type CaptureProvenance as aS, type HostedBranding as aT, type HostedBrandingColorKey as aU, type HostedLivenessCaptureTuning as aV, type IcaoCaptureTuning as aW, type RetakeHint as aX, type ScreenRampChallenge as aY, type ScreenRampPaint as aZ, type ScreenRampRendered as a_, type NfcChipReason as aa, type NfcStepView as ab, type OtpChoiceView as ac, type PhoneCountryRule as ad, type PhoneFormat as ae, type PhoneOtpInput as af, type PhoneOtpReason as ag, type PhotoSource as ah, type PhotoSourcePick as ai, type PlanAttempts as aj, type PlanChoiceKind as ak, type PlanChoiceOption as al, type PlanChoiceView as am, type PlanSectionView as an, type PlanStepView as ao, type PopulationInput as ap, type PopulationReason as aq, type PortraitFix as ar, type PortraitFixReviewInput as as, type PortraitIcaoInput as at, type PortraitIcaoReason as au, type PortraitOutputFormat as av, type PresignRequest as aw, type PresignUploadResult as ax, type RecordConsentResult as ay, type ResolvedCaptureMode as az, type CaptureMode as b, ICAO_FALLBACK as b0, type IcaoProfile as b1, type ResolvedIcaoTuning as b2, resolveIcaoTuning as b3, type PersonMask as b4, type BackgroundUniformity as b5, type CaptureNoncesResult as c, type CaptureProof as d, type CheckInputByType as e, type CheckReason as f, type CheckState as g, type CheckType as h, type ClosedBy as i, type CompleteMediaResult as j, type ConsentLocale as k, type ContactChannel as l, type DocDeviceRead as m, type DocOcrInput as n, type DocReason as o, type DocSide as p, type EidAuthInput as q, type EidReason as r, type EmailOtpInput as s, type EmailOtpReason as t, type FaceMatchReason as u, type HostedCaptureTuning as v, type HostedChallengeView as w, type HostedConsentView as x, type HostedDocumentCaptureTuning as y, type HostedDocumentScanTuning as z };
1936
+ export { type HostedVoiceView as $, type AcceptedDocumentType as A, type HostedDocumentsView as B, type CaptureContext as C, type DecisionReason as D, type EidAfterPass as E, type FaceMatchInput as F, type HostedEidView as G, type HostedAcceptedDocuments as H, type HostedEmailOtpView as I, type HostedFlowRef as J, type HostedIcaoPolicy as K, type HostedIntegrity as L, type HostedLivePhotoTuning as M, type HostedNativeCaptureTuning as N, type HostedOcrTuning as O, type HostedOtpView as P, type HostedPlanView as Q, type HostedPoaRuleKindView as R, type HostedPoaRuleView as S, type HostedPortraitPendingFix as T, type HostedPortraitView as U, type HostedProofOfAddressView as V, type HostedSessionView as W, type HostedSimulationView as X, type HostedStepView as Y, type HostedTesterGateView as Z, type HostedVoiceLocale as _, type AttestationInput as a, type CameraUnavailableCause as a$, type IcaoCriterion as a0, type IcaoReportEntry as a1, type IdentityConfirmDecision as a2, type IdentityMethod as a3, type IdentitySummarySource as a4, type IdentitySummaryView as a5, type LivenessCaptureInput as a6, type LivenessInput as a7, type LivenessReason as a8, type MatchReason as a9, type PopulationInput as aA, type PopulationReason as aB, type PortraitFix as aC, type PortraitFixReviewInput as aD, type PortraitIcaoInput as aE, type PortraitIcaoReason as aF, type PortraitOutputFormat as aG, type PresignRequest as aH, type PresignUploadResult as aI, type RecordConsentResult as aJ, type ResolvedCaptureMode as aK, type SessionDecidingStep as aL, type SessionFailureReason as aM, type SessionReason as aN, type SessionStatus as aO, type SessionStepView as aP, type SessionView as aQ, type SimulatedCaptureInput as aR, type StepResult as aS, type StepSection as aT, type SubmitCheckBody as aU, type TesterGateInput as aV, type TesterGateResponse as aW, type VerificationAssurance as aX, type VerificationLevel as aY, type ScreenRampColour as aZ, type AgeEstimationReason as a_, type MediaKind as aa, type MethodChoiceView as ab, type NationalEidOption as ac, type NfcChipReason as ad, type NfcStepView as ae, type OtpChoiceView as af, type PhoneCountryRule as ag, type PhoneFormat as ah, type PhoneOtpInput as ai, type PhoneOtpReason as aj, type PhotoSource as ak, type PhotoSourcePick as al, type PlanAttempts as am, type PlanChoiceKind as an, type PlanChoiceOption as ao, type PlanChoiceView as ap, type PlanSectionView as aq, type PlanStepView as ar, type PoaImagesInput as as, type PoaInput as at, type PoaKind as au, type PoaLicenceInput as av, type PoaNameMatchMode as aw, type PoaPdfInput as ax, type PoaReason as ay, type PoaRuleSource as az, type CaptureMode as b, type CaptureIssueReport as b0, type CaptureProvenance as b1, type HostedBranding as b2, type HostedBrandingColorKey as b3, type HostedLivenessCaptureTuning as b4, type IcaoCaptureTuning as b5, type RetakeHint as b6, type ScreenRampChallenge as b7, type ScreenRampPaint as b8, type ScreenRampRendered as b9, type ScreenRampReport as ba, ICAO_FALLBACK as bb, type IcaoProfile as bc, type ResolvedIcaoTuning as bd, resolveIcaoTuning as be, type PersonMask as bf, type BackgroundUniformity as bg, type CaptureNoncesResult as c, type CaptureProof as d, type CheckInputByType as e, type CheckReason as f, type CheckState as g, type CheckType as h, type ClosedBy as i, type CompleteMediaResult as j, type ConsentLocale as k, type ContactChannel as l, type DocDeviceRead as m, type DocOcrInput as n, type DocReason as o, type DocSide as p, type EidAuthInput as q, type EidReason as r, type EmailOtpInput as s, type EmailOtpReason as t, type FaceMatchReason as u, type HostedCaptureTuning as v, type HostedChallengeView as w, type HostedConsentView as x, type HostedDocumentCaptureTuning as y, type HostedDocumentScanTuning as z };
@@ -0,0 +1 @@
1
+ var U=5242880,_=2560,g=[.92,.85,.75],m=new Set(["","image/jpeg","image/jpg","image/pjpeg","image/png","image/heic","image/heif","image/heic-sequence","image/heif-sequence"]),h=new Set(["heic","heix","hevc","hevx","heim","heis","mif1","msf1"]);function w(e){if(e.length>=3&&e[0]===255&&e[1]===216&&e[2]===255)return"jpeg";if(e.length>=8&&e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71&&e[4]===13&&e[5]===10&&e[6]===26&&e[7]===10)return"png";if(e.length>=12&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112){let t=String.fromCharCode(e[8],e[9],e[10],e[11]);return h.has(t)?"heif":null}return null}function x(e){return e.length>=5&&e[0]===37&&e[1]===80&&e[2]===68&&e[3]===70&&e[4]===45}var b=new Set(["application/pdf","application/x-pdf"]);async function E(e){let t=(e.type??"").toLowerCase();if(t!==""&&!b.has(t))return"other";let n;try{n=x(await p(e))}catch{n=!1}return n?"pdf":t===""?"other":"bad"}async function p(e){let t=e.slice(0,16);return typeof t.arrayBuffer=="function"?new Uint8Array(await t.arrayBuffer()):new Promise((n,r)=>{let o=new FileReader;o.onload=()=>n(new Uint8Array(o.result)),o.onerror=()=>r(o.error),o.readAsArrayBuffer(t)})}var y=async e=>{let t=await createImageBitmap(e,{imageOrientation:"from-image"});return{width:t.width,height:t.height,draw:(n,r,o)=>n.drawImage(t,0,0,r,o),close:()=>t.close()}},A=(e,t)=>{let n=document.createElement("canvas");n.width=e.width,n.height=e.height;let r=n.getContext("2d");return r===null?Promise.resolve(null):(e.draw(r,e.width,e.height),new Promise(o=>n.toBlob(o,"image/jpeg",t)))};async function P(e,t={}){let n=(e.type??"").toLowerCase();if(!m.has(n)||e.size===0)throw new TypeError("unsupported_file");let r;try{r=w(await p(e))}catch{r=null}if(r===null)throw new TypeError("unsupported_file");if(r!=="heif"&&e.size<=5242880)return{blob:e,contentType:r==="png"?"image/png":"image/jpeg",converted:!1};let o=t.decode??y,d=t.encode??A,i;try{i=await o(e)}catch{throw new TypeError("unsupported_file")}try{if(!(i.width>0&&i.height>0))throw new TypeError("unsupported_file");let l=Math.min(2560,Math.max(i.width,i.height));for(let c=0;c<2;c+=1){let s=l/Math.max(i.width,i.height),u={width:Math.max(1,Math.round(i.width*s)),height:Math.max(1,Math.round(i.height*s)),draw:i.draw};for(let f of g){let a=await d(u,f).catch(()=>null);if(a!==null&&a.size>0&&a.size<=5242880)return{blob:a,contentType:"image/jpeg",converted:!0}}l=Math.round(l*.75)}throw new TypeError("unsupported_file")}finally{i.close()}}export{U as UPLOAD_MAX_BYTES,_ as UPLOAD_MAX_LONG_SIDE,E as pdfFileKind,P as prepareUploadFile,x as sniffPdf,w as sniffUploadFormat};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sekyro/web",
3
- "version": "0.1.0-rc.25",
3
+ "version": "0.1.0-rc.26",
4
4
  "description": "Sekyro AI web SDK \u2014 browser liveness capture, hosted-verification client and popup embed for Sekyro AI identity verification",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
package/sbom.cdx.json CHANGED
@@ -97,8 +97,8 @@
97
97
  "type": "application",
98
98
  "name": "web",
99
99
  "group": "@sekyro",
100
- "version": "0.1.0-rc.25",
101
- "bom-ref": "@sekyro/web@0.1.0-rc.25",
100
+ "version": "0.1.0-rc.26",
101
+ "bom-ref": "@sekyro/web@0.1.0-rc.26",
102
102
  "description": "Sekyro AI web SDK — browser liveness capture, hosted-verification client and popup embed for Sekyro AI identity verification",
103
103
  "licenses": [
104
104
  {
@@ -108,7 +108,7 @@
108
108
  }
109
109
  }
110
110
  ],
111
- "purl": "pkg:npm/%40sekyro/web@0.1.0-rc.25?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2FIBTIKAR-Technologies%2Fibtikar-identity.git%23packages%2Fsekyro-web",
111
+ "purl": "pkg:npm/%40sekyro/web@0.1.0-rc.26?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2FIBTIKAR-Technologies%2Fibtikar-identity.git%23packages%2Fsekyro-web",
112
112
  "externalReferences": [
113
113
  {
114
114
  "url": "https://github.com/IBTIKAR-Technologies/ibtikar-identity/issues",
@@ -150,7 +150,7 @@
150
150
  "name": "tasks-vision",
151
151
  "group": "@mediapipe",
152
152
  "version": "0.10.35",
153
- "bom-ref": "@sekyro/web@0.1.0-rc.25|@mediapipe/tasks-vision@0.10.35",
153
+ "bom-ref": "@sekyro/web@0.1.0-rc.26|@mediapipe/tasks-vision@0.10.35",
154
154
  "licenses": [
155
155
  {
156
156
  "license": {
@@ -185,7 +185,7 @@
185
185
  "name": "thumbmarkjs",
186
186
  "group": "@thumbmarkjs",
187
187
  "version": "1.12.0",
188
- "bom-ref": "@sekyro/web@0.1.0-rc.25|@thumbmarkjs/thumbmarkjs@1.12.0",
188
+ "bom-ref": "@sekyro/web@0.1.0-rc.26|@thumbmarkjs/thumbmarkjs@1.12.0",
189
189
  "licenses": [
190
190
  {
191
191
  "license": {
@@ -218,17 +218,17 @@
218
218
  ],
219
219
  "dependencies": [
220
220
  {
221
- "ref": "@sekyro/web@0.1.0-rc.25",
221
+ "ref": "@sekyro/web@0.1.0-rc.26",
222
222
  "dependsOn": [
223
- "@sekyro/web@0.1.0-rc.25|@mediapipe/tasks-vision@0.10.35",
224
- "@sekyro/web@0.1.0-rc.25|@thumbmarkjs/thumbmarkjs@1.12.0"
223
+ "@sekyro/web@0.1.0-rc.26|@mediapipe/tasks-vision@0.10.35",
224
+ "@sekyro/web@0.1.0-rc.26|@thumbmarkjs/thumbmarkjs@1.12.0"
225
225
  ]
226
226
  },
227
227
  {
228
- "ref": "@sekyro/web@0.1.0-rc.25|@mediapipe/tasks-vision@0.10.35"
228
+ "ref": "@sekyro/web@0.1.0-rc.26|@mediapipe/tasks-vision@0.10.35"
229
229
  },
230
230
  {
231
- "ref": "@sekyro/web@0.1.0-rc.25|@thumbmarkjs/thumbmarkjs@1.12.0"
231
+ "ref": "@sekyro/web@0.1.0-rc.26|@thumbmarkjs/thumbmarkjs@1.12.0"
232
232
  }
233
233
  ]
234
234
  }