@sekyro/web 0.1.0-rc.28 → 0.1.0-rc.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/barcode-detect-C5IOXMKI.js +1 -0
- package/dist/{capture-session-doc-LUA4Y7PZ.js → capture-session-doc-YC4CT2EQ.js} +1 -1
- package/dist/{capture-session-v3-ClByT4KN.d.cts → capture-session-v3-CTQL6eFd.d.cts} +1 -1
- package/dist/{capture-session-v3-IjQwKfLS.d.ts → capture-session-v3-DHlOE6cS.d.ts} +1 -1
- package/dist/{challenge-frame-NUGPTWFP.js → challenge-frame-5GG4NDF5.js} +1 -1
- package/dist/{chunk-QP23DM4Z.js → chunk-34IITQFB.js} +1 -1
- package/dist/chunk-6AH7FXVC.js +1 -0
- package/dist/{chunk-MOOWUPOZ.js → chunk-AL6LIOLW.js} +1 -1
- package/dist/chunk-BF7CLNFA.js +1 -0
- package/dist/chunk-CKHBGAUA.js +1 -0
- package/dist/chunk-EVIGRYOX.js +3 -0
- package/dist/chunk-FVWFAO45.js +1 -0
- package/dist/{chunk-FSXWIMSG.js → chunk-IA5M34P7.js} +1 -1
- package/dist/chunk-JLVZ35QK.js +2 -0
- package/dist/{chunk-4DEPREJ3.js → chunk-KXFHVAYQ.js} +1 -1
- package/dist/chunk-VVUQ4PFU.js +1 -0
- package/dist/{chunk-KLEARRAD.js → chunk-WOVWAJD4.js} +1 -1
- package/dist/chunk-XIKMTHHH.js +1 -0
- package/dist/chunk-ZKF2XMNX.js +1 -0
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.js +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +1 -1
- package/dist/core/ocr/worker.js +1 -1
- package/dist/create-document-capture-O64FR2DA.js +1 -0
- package/dist/{create-verification-C4FMWIix.d.ts → create-verification-BvldYuLZ.d.ts} +126 -16
- package/dist/{create-verification-BN7ebjC2.d.cts → create-verification-DzPluhA3.d.cts} +126 -16
- package/dist/{detector-scanic-23DAYT3H.js → detector-scanic-SE3CL55N.js} +1 -1
- package/dist/{icao-gate-CjbKCatx.d.cts → icao-gate-DveU9Cr8.d.ts} +1 -1
- package/dist/{icao-gate-CYb-35iH.d.ts → icao-gate-xyWB7dz2.d.cts} +1 -1
- package/dist/{icao-policy-D4AZivI8.d.ts → icao-policy-BWu1JLgi.d.cts} +12 -3
- package/dist/{icao-policy-CAZZYEJ6.d.cts → icao-policy-OOEQDG9_.d.ts} +12 -3
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +40 -8
- package/dist/index.d.ts +40 -8
- package/dist/index.js +1 -1
- package/dist/internal/index.cjs +2 -2
- package/dist/internal/index.d.cts +6 -6
- package/dist/internal/index.d.ts +6 -6
- package/dist/internal/index.js +1 -1
- package/dist/plan-runner-WGMNUBWJ.js +1 -0
- package/dist/{types-CgHWIEZj.d.ts → types-CezFEXzl.d.cts} +148 -8
- package/dist/{types-CgHWIEZj.d.cts → types-CezFEXzl.d.ts} +148 -8
- package/package.json +6 -3
- package/sbom.cdx.json +125 -10
- package/dist/chunk-A3FUGHAH.js +0 -2
- package/dist/chunk-CUBNJXZN.js +0 -1
- package/dist/chunk-HVW2AB35.js +0 -1
- package/dist/chunk-J7D3S5ZJ.js +0 -1
- package/dist/chunk-MJUOZH3U.js +0 -1
- package/dist/chunk-NFHLJOHW.js +0 -1
- package/dist/chunk-R4IQTGF5.js +0 -3
- package/dist/chunk-THQWX6EH.js +0 -1
- package/dist/create-document-capture-ZTJKSEJB.js +0 -1
- package/dist/plan-runner-INQLWFGS.js +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { bc as SubmitRuntime, a9 as LivenessCaptureOptions, a8 as LivenessCaptureHandle, aX as VerificationStep, aV as VerificationResult, aM as StepSnapshot, a4 as LivePhotoGateUpdate, bd as HostedClientLike, be as DocCatalogEntry, bf as LiveMrzTuning, bg as TextLockTuning, bh as OcrEngineClient, bi as DocAssistReport, bj as ReadyInfo, bk as LoadFailure, bl as OcrEngineOptions } from '../create-verification-DzPluhA3.cjs';
|
|
2
|
+
export { bm as ANALYSIS_LONG_EDGE, bn as ASPECT_BANDS, bo as AttestationError, bp as BLUR_REFUSE_SHARPNESS_MAX, bq as BlurStatus, br as CAPTURE_CANDIDATE_SPACING_MS, bs as CAPTURE_EXTRA_CANDIDATES, bt as CHALLENGE_EXECUTE_TIMEOUT_MS, bu as CHALLENGE_READY_TIMEOUT_MS, bv as CLIP_MIME_ALLOWLIST, bw as CaptureEngine, bx as CaptureSessionDoc, by as CaptureSessionDocEvents, bz as CaptureSessionDocOptions, bA as ChallengeAction, bB as ChallengeError, m as ChallengeErrorCode, bC as DOC_ANALYSIS_DEFAULTS, bD as DOC_BLACK_FRAME_LUMA, bE as DOC_BLACK_FRAME_TICKS, bF as DOC_CADENCE_HZ, bG as DOC_CAMERA_TUNING_DEFAULTS, bH as DOC_CATALOG, bI as DOC_DETECT_WIDTH, bJ as DOC_FEEDBACK_STATES, bK as DOC_FIRST_FRAME_MS, bL as DOC_GATE_V1_DEFAULTS, bM as DOC_SHUTTER_DEFAULTS, bN as DeviceReadHint, bO as DocArtifacts, bP as DocAssist, bQ as DocAssistEngine, bR as DocAssistTick, bS as DocCameraTuning, bT as DocCaptureReport, bU as DocCaptureVia, bV as DocChecksPayload, bW as DocEngineLike, bX as DocFeedbackAggregator, bY as DocFeedbackKey, bZ as DocFeedbackState, b_ as DocFormat, b$ as DocFrameAnalysis, c0 as DocFrameMeasures, c1 as DocGateQuality, c2 as DocGateThresholds, c3 as DocGateTick, c4 as DocGateTickInput, c5 as DocGateV1, c6 as DocQuad, c7 as DocQuadPoint, c8 as DocShutterReason, c9 as DocShutterTuning, ca as DocSide, cb as DocumentCaptureController, cc as DocumentCaptureInternals, cd as EMPTY_GUIDE_METRICS, ce as EncodedDocument, cf as ExecuteChallengeOptions, cg as FLIP_FILL_MIN, ch as FLIP_GAP_MS, ci as FLIP_TIMEOUT_MS, cj as FocusCaps, ck as FramingStatus, cl as GUIDE_LOCK_DEFAULTS, cm as GlareStatus, cn as GrabbedFrame, co as GuideBlocker, cp as GuideLock, cq as GuideLockTick, cr as GuideLockTuning, cs as GuideMetrics, ct as GuideRect, cu as INFERENCE_RETRY_ATTEMPTS, cv as INFERENCE_RETRY_DEFAULT_S, a0 as ISSUER_CODES, cw as LANDMARKER_MODEL, cx as LENS_STORAGE_KEY, cy as LIVE_MRZ_DEFAULTS, cz as LIVE_PHOTO_IDLE_MS, cA as LIVE_PHOTO_MAX_HZ, cB as LandmarkedFace, cC as LandmarkerLike, cD as LensSource, cE as LightingStatus, cF as LiveMrzCapture, cG as LiveMrzState, cH as LivePhotoGate, cI as LivePhotoKit, cJ as LivePhotoKitInternals, cK as LivePhotoKitOptions, cL as LivePhotoStill, cM as LivenessCaptureInternalHandle, cN as LivenessCaptureInternals, cO as LivenessFlowDeps, cP as LivenessFlowOutcome, cQ as MANUAL_SHUTTER_MS, cR as MR_DOC_CATALOG, cS as NO_REPORT_MS, cT as OpenDocCameraDeps, cU as PORTRAIT_JPEG_QUALITY, cV as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cW as PRELOAD_BUDGET_MS, cX as PROCESSING_POLL_DELAY_MS, cY as PROCESSING_POLL_MAX, cZ as PortraitCaptureController, c_ as PortraitCaptureInternals, c$ as REGISTRY_RETRY_DELAY_MS, d0 as ReticleType, d1 as SAME_FACE_MAX_DROPS, d2 as ScanEvent, d3 as ScanLayout, d4 as ScanNotice, d5 as ScanPhase, d6 as ScanReport, d7 as ScanSide, d8 as ScanState, d9 as SubmitExecutor, da as TEXT_LOCK_DEFAULTS, db as TRANSPORT_REPLAY_ATTEMPTS, dc as TRANSPORT_REPLAY_DELAY_MS, dd as VerificationInternals, de as analyzeDocFrame, df as analyzeGuide, dg as aspectBand, dh as aspectFits, di as buildDeviceReadHint, dj as coverPointToVideo, dk as createDocumentCaptureInternal, dl as createFaceLandmarker, dm as createLivePhotoKit, dn as createLivenessCaptureInternal, dp as createPortraitCaptureInternal, dq as createVerificationInternal, dr as docZoomFor, ds as encodeDocumentImage, dt as executeChallenge, du as facesOf, dv as feedbackVoteOf, dw as focusOk, dx as guideQuad, dy as guideRegionInFrame, dz as initialScanState, dA as mapEngineState, dB as mapErrorKind, dC as mapGuidanceHint, dD as nextScanState, dE as observePortraitFrame, dF as openDocCamera, dG as passportBandOf, dH as portraitMatchStep, dI as preloadedDetectorFactory, dJ as quadAreaFrac, dK as quadBounds, dL as quadIou, dM as quadTiltRatio, dN as randomUuid, dO as readStoredLens, dP as resetChallengeFrameForTests, dQ as resetLivenessAssetsForTests, dR as resolveDocCameraTuning, dS as resolveDocShutterTuning, dT as resolveGuideLockTuning, dU as runLivenessFlow, dV as runSubmission, dW as scannerFormatFor, dX as setPreloadLoaderForTests, dY as settledHint, dZ as singleShotFocusAt, d_ as specularFraction, d$ as supportsFocusMode, e0 as warmDocDetector, e1 as writeStoredLens } from '../create-verification-DzPluhA3.cjs';
|
|
3
3
|
export { C as CENTERED_FACTOR, a as CIRCLE_RADIUS_FACTOR, F as FormFactor, I as IN_CIRCLE_FACTOR, d as detectFormFactor, c as detectIsMobile } from '../capture-constraints-CVqpMNGA.cjs';
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
6
|
-
export { B as BackgroundStats, h as Box, C as CLIPPED_LUMA, F as FaceGeometry, i as FaceLighting, c as HeadPose, j as ICAO_CANVAS, k as ICAO_GATE_CRITERIA, l as ICAO_SHARP_REF, I as IcaoCoachKey, d as IcaoCriterionState, m as IcaoFrameObservation, n as IcaoGate, e as IcaoGateCriterion, o as IcaoGateOptions, p as IcaoGateScores, f as IcaoGateSummary, g as IcaoGateUpdate, q as IcaoJudgedCriterion, r as IcaoMeasures, t as IcaoMouthScores, u as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, v as backgroundStats, w as createIcaoGate, x as eyeLineRoll, y as eyeOpenness, z as eyeSpecular, A as faceGeometry, D as faceLighting, E as faceSharpness, G as icaoPixelStats, J as icaoWindow, K as judgeIcao, N as lumaPlane, O as percentile, Q as portraitCropRegion, T as poseFromMatrix, V as regionStats, W as scoreFrame, X as windowOverflow } from '../icao-gate-
|
|
4
|
+
import { a9 as HostedSessionView, h as CheckType, aG as PlanStepView } from '../types-CezFEXzl.cjs';
|
|
5
|
+
export { bs as ICAO_FALLBACK, bm as IcaoCaptureTuning, bt as IcaoProfile, bu as ResolvedIcaoTuning, bv as resolveIcaoTuning } from '../types-CezFEXzl.cjs';
|
|
6
|
+
export { B as BackgroundStats, h as Box, C as CLIPPED_LUMA, F as FaceGeometry, i as FaceLighting, c as HeadPose, j as ICAO_CANVAS, k as ICAO_GATE_CRITERIA, l as ICAO_SHARP_REF, I as IcaoCoachKey, d as IcaoCriterionState, m as IcaoFrameObservation, n as IcaoGate, e as IcaoGateCriterion, o as IcaoGateOptions, p as IcaoGateScores, f as IcaoGateSummary, g as IcaoGateUpdate, q as IcaoJudgedCriterion, r as IcaoMeasures, t as IcaoMouthScores, u as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, v as backgroundStats, w as createIcaoGate, x as eyeLineRoll, y as eyeOpenness, z as eyeSpecular, A as faceGeometry, D as faceLighting, E as faceSharpness, G as icaoPixelStats, J as icaoWindow, K as judgeIcao, N as lumaPlane, O as percentile, Q as portraitCropRegion, T as poseFromMatrix, V as regionStats, W as scoreFrame, X as windowOverflow } from '../icao-gate-xyWB7dz2.cjs';
|
|
7
7
|
import '../detect-worker-CHqsPJoM.cjs';
|
|
8
|
-
import '../capture-session-v3-
|
|
8
|
+
import '../capture-session-v3-CTQL6eFd.cjs';
|
|
9
9
|
|
|
10
10
|
/** `processing` re-reads (1+2+4+8+15 = 30 s, spec §6.5), then `stalled`. */
|
|
11
11
|
declare const PROCESSING_BACKOFF_MS: readonly number[];
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { bc as SubmitRuntime, a9 as LivenessCaptureOptions, a8 as LivenessCaptureHandle, aX as VerificationStep, aV as VerificationResult, aM as StepSnapshot, a4 as LivePhotoGateUpdate, bd as HostedClientLike, be as DocCatalogEntry, bf as LiveMrzTuning, bg as TextLockTuning, bh as OcrEngineClient, bi as DocAssistReport, bj as ReadyInfo, bk as LoadFailure, bl as OcrEngineOptions } from '../create-verification-BvldYuLZ.js';
|
|
2
|
+
export { bm as ANALYSIS_LONG_EDGE, bn as ASPECT_BANDS, bo as AttestationError, bp as BLUR_REFUSE_SHARPNESS_MAX, bq as BlurStatus, br as CAPTURE_CANDIDATE_SPACING_MS, bs as CAPTURE_EXTRA_CANDIDATES, bt as CHALLENGE_EXECUTE_TIMEOUT_MS, bu as CHALLENGE_READY_TIMEOUT_MS, bv as CLIP_MIME_ALLOWLIST, bw as CaptureEngine, bx as CaptureSessionDoc, by as CaptureSessionDocEvents, bz as CaptureSessionDocOptions, bA as ChallengeAction, bB as ChallengeError, m as ChallengeErrorCode, bC as DOC_ANALYSIS_DEFAULTS, bD as DOC_BLACK_FRAME_LUMA, bE as DOC_BLACK_FRAME_TICKS, bF as DOC_CADENCE_HZ, bG as DOC_CAMERA_TUNING_DEFAULTS, bH as DOC_CATALOG, bI as DOC_DETECT_WIDTH, bJ as DOC_FEEDBACK_STATES, bK as DOC_FIRST_FRAME_MS, bL as DOC_GATE_V1_DEFAULTS, bM as DOC_SHUTTER_DEFAULTS, bN as DeviceReadHint, bO as DocArtifacts, bP as DocAssist, bQ as DocAssistEngine, bR as DocAssistTick, bS as DocCameraTuning, bT as DocCaptureReport, bU as DocCaptureVia, bV as DocChecksPayload, bW as DocEngineLike, bX as DocFeedbackAggregator, bY as DocFeedbackKey, bZ as DocFeedbackState, b_ as DocFormat, b$ as DocFrameAnalysis, c0 as DocFrameMeasures, c1 as DocGateQuality, c2 as DocGateThresholds, c3 as DocGateTick, c4 as DocGateTickInput, c5 as DocGateV1, c6 as DocQuad, c7 as DocQuadPoint, c8 as DocShutterReason, c9 as DocShutterTuning, ca as DocSide, cb as DocumentCaptureController, cc as DocumentCaptureInternals, cd as EMPTY_GUIDE_METRICS, ce as EncodedDocument, cf as ExecuteChallengeOptions, cg as FLIP_FILL_MIN, ch as FLIP_GAP_MS, ci as FLIP_TIMEOUT_MS, cj as FocusCaps, ck as FramingStatus, cl as GUIDE_LOCK_DEFAULTS, cm as GlareStatus, cn as GrabbedFrame, co as GuideBlocker, cp as GuideLock, cq as GuideLockTick, cr as GuideLockTuning, cs as GuideMetrics, ct as GuideRect, cu as INFERENCE_RETRY_ATTEMPTS, cv as INFERENCE_RETRY_DEFAULT_S, a0 as ISSUER_CODES, cw as LANDMARKER_MODEL, cx as LENS_STORAGE_KEY, cy as LIVE_MRZ_DEFAULTS, cz as LIVE_PHOTO_IDLE_MS, cA as LIVE_PHOTO_MAX_HZ, cB as LandmarkedFace, cC as LandmarkerLike, cD as LensSource, cE as LightingStatus, cF as LiveMrzCapture, cG as LiveMrzState, cH as LivePhotoGate, cI as LivePhotoKit, cJ as LivePhotoKitInternals, cK as LivePhotoKitOptions, cL as LivePhotoStill, cM as LivenessCaptureInternalHandle, cN as LivenessCaptureInternals, cO as LivenessFlowDeps, cP as LivenessFlowOutcome, cQ as MANUAL_SHUTTER_MS, cR as MR_DOC_CATALOG, cS as NO_REPORT_MS, cT as OpenDocCameraDeps, cU as PORTRAIT_JPEG_QUALITY, cV as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cW as PRELOAD_BUDGET_MS, cX as PROCESSING_POLL_DELAY_MS, cY as PROCESSING_POLL_MAX, cZ as PortraitCaptureController, c_ as PortraitCaptureInternals, c$ as REGISTRY_RETRY_DELAY_MS, d0 as ReticleType, d1 as SAME_FACE_MAX_DROPS, d2 as ScanEvent, d3 as ScanLayout, d4 as ScanNotice, d5 as ScanPhase, d6 as ScanReport, d7 as ScanSide, d8 as ScanState, d9 as SubmitExecutor, da as TEXT_LOCK_DEFAULTS, db as TRANSPORT_REPLAY_ATTEMPTS, dc as TRANSPORT_REPLAY_DELAY_MS, dd as VerificationInternals, de as analyzeDocFrame, df as analyzeGuide, dg as aspectBand, dh as aspectFits, di as buildDeviceReadHint, dj as coverPointToVideo, dk as createDocumentCaptureInternal, dl as createFaceLandmarker, dm as createLivePhotoKit, dn as createLivenessCaptureInternal, dp as createPortraitCaptureInternal, dq as createVerificationInternal, dr as docZoomFor, ds as encodeDocumentImage, dt as executeChallenge, du as facesOf, dv as feedbackVoteOf, dw as focusOk, dx as guideQuad, dy as guideRegionInFrame, dz as initialScanState, dA as mapEngineState, dB as mapErrorKind, dC as mapGuidanceHint, dD as nextScanState, dE as observePortraitFrame, dF as openDocCamera, dG as passportBandOf, dH as portraitMatchStep, dI as preloadedDetectorFactory, dJ as quadAreaFrac, dK as quadBounds, dL as quadIou, dM as quadTiltRatio, dN as randomUuid, dO as readStoredLens, dP as resetChallengeFrameForTests, dQ as resetLivenessAssetsForTests, dR as resolveDocCameraTuning, dS as resolveDocShutterTuning, dT as resolveGuideLockTuning, dU as runLivenessFlow, dV as runSubmission, dW as scannerFormatFor, dX as setPreloadLoaderForTests, dY as settledHint, dZ as singleShotFocusAt, d_ as specularFraction, d$ as supportsFocusMode, e0 as warmDocDetector, e1 as writeStoredLens } from '../create-verification-BvldYuLZ.js';
|
|
3
3
|
export { C as CENTERED_FACTOR, a as CIRCLE_RADIUS_FACTOR, F as FormFactor, I as IN_CIRCLE_FACTOR, d as detectFormFactor, c as detectIsMobile } from '../capture-constraints-CVqpMNGA.js';
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
6
|
-
export { B as BackgroundStats, h as Box, C as CLIPPED_LUMA, F as FaceGeometry, i as FaceLighting, c as HeadPose, j as ICAO_CANVAS, k as ICAO_GATE_CRITERIA, l as ICAO_SHARP_REF, I as IcaoCoachKey, d as IcaoCriterionState, m as IcaoFrameObservation, n as IcaoGate, e as IcaoGateCriterion, o as IcaoGateOptions, p as IcaoGateScores, f as IcaoGateSummary, g as IcaoGateUpdate, q as IcaoJudgedCriterion, r as IcaoMeasures, t as IcaoMouthScores, u as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, v as backgroundStats, w as createIcaoGate, x as eyeLineRoll, y as eyeOpenness, z as eyeSpecular, A as faceGeometry, D as faceLighting, E as faceSharpness, G as icaoPixelStats, J as icaoWindow, K as judgeIcao, N as lumaPlane, O as percentile, Q as portraitCropRegion, T as poseFromMatrix, V as regionStats, W as scoreFrame, X as windowOverflow } from '../icao-gate-
|
|
4
|
+
import { a9 as HostedSessionView, h as CheckType, aG as PlanStepView } from '../types-CezFEXzl.js';
|
|
5
|
+
export { bs as ICAO_FALLBACK, bm as IcaoCaptureTuning, bt as IcaoProfile, bu as ResolvedIcaoTuning, bv as resolveIcaoTuning } from '../types-CezFEXzl.js';
|
|
6
|
+
export { B as BackgroundStats, h as Box, C as CLIPPED_LUMA, F as FaceGeometry, i as FaceLighting, c as HeadPose, j as ICAO_CANVAS, k as ICAO_GATE_CRITERIA, l as ICAO_SHARP_REF, I as IcaoCoachKey, d as IcaoCriterionState, m as IcaoFrameObservation, n as IcaoGate, e as IcaoGateCriterion, o as IcaoGateOptions, p as IcaoGateScores, f as IcaoGateSummary, g as IcaoGateUpdate, q as IcaoJudgedCriterion, r as IcaoMeasures, t as IcaoMouthScores, u as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, v as backgroundStats, w as createIcaoGate, x as eyeLineRoll, y as eyeOpenness, z as eyeSpecular, A as faceGeometry, D as faceLighting, E as faceSharpness, G as icaoPixelStats, J as icaoWindow, K as judgeIcao, N as lumaPlane, O as percentile, Q as portraitCropRegion, T as poseFromMatrix, V as regionStats, W as scoreFrame, X as windowOverflow } from '../icao-gate-DveU9Cr8.js';
|
|
7
7
|
import '../detect-worker-CHqsPJoM.js';
|
|
8
|
-
import '../capture-session-v3-
|
|
8
|
+
import '../capture-session-v3-DHlOE6cS.js';
|
|
9
9
|
|
|
10
10
|
/** `processing` re-reads (1+2+4+8+15 = 30 s, spec §6.5), then `stalled`. */
|
|
11
11
|
declare const PROCESSING_BACKOFF_MS: readonly number[];
|
package/dist/internal/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as me,d as _e,e as Le,h as le,i as ce,j as Se}from"../chunk-
|
|
1
|
+
import{c as me,d as _e,e as Le,h as le,i as ce,j as Se}from"../chunk-XIKMTHHH.js";import{a as W,b as ve,c as ge,d as he,e as Ge,f as be,g as He,h as Ye,i as Ue,j as k,k as K,l as w,m as X,n as Z,o as J,p as Q,q as j,r as q,s as $,t as ee,u as te,x as re}from"../chunk-CKHBGAUA.js";import{a as Bt,b as Vt,c as Xt,d as Zt,e as Jt,f as Qt,g as jt,h as qt,i as $t,j as ne,k as ie,m as se,n as Ee}from"../chunk-VWGKUQ3C.js";import{a as Ft,b as Nt,c as vt,d as gt,e as ht,f as Gt,g as bt,h as Ht,i as Yt,j as Ut,k as Wt,l as kt,m as Kt}from"../chunk-53POX7U4.js";import{a as wt,b as zt}from"../chunk-33KKMPJ5.js";import{b as oe,c as pe,d as ae}from"../chunk-CJHMFPL6.js";import"../chunk-RI3E7GBN.js";import"../chunk-GI3UFGRQ.js";import{a as P,b as d,c as M,d as F,e as N}from"../chunk-FVWFAO45.js";import{A as Ct,B as At,C as Ot,D as xt,E as It,F as ut,G as Dt,H as Pt,I as dt,J as Mt,a as Ke,b as we,c as ze,d as je,e as qe,f as $e,g as et,h as tt,i as rt,j as ot,k as pt,l as at,m as nt,n as it,o as st,p as Et,q as mt,r as _t,s as Lt,t as lt,u as ct,v as St,w as Rt,x as yt,y as Tt,z as ft}from"../chunk-WOVWAJD4.js";import{a as v,b as g,c as h,d as G,e as b,f as H,g as Y,h as U,i as z,j as B,l as V}from"../chunk-G6LKLN4U.js";import{a as We,b as ke}from"../chunk-SMKCBUJL.js";import{a as Be,b as Ve,c as Xe,d as Ze,e as Je,f as Qe}from"../chunk-KXFHVAYQ.js";import{b as De,c as Pe,d as de,e as Me,f as Fe,g as Ne}from"../chunk-VVUQ4PFU.js";import{b as ye,c as Te,d as fe,e as Ce,g as Ae,h as er,i as tr,j as rr,k as or,l as pr,m as ar,z as Oe}from"../chunk-EVIGRYOX.js";import{A as I,C as u,D,i as c,j as S,k as R,l as y,o as T,v as f,w as C,x as A,y as O,z as x}from"../chunk-BF7CLNFA.js";import{a,b as n,c as i,d as s,i as E,j as m,k as _,l as L,n as l}from"../chunk-34IITQFB.js";import"../chunk-7QZWBDI5.js";import"../chunk-AL6LIOLW.js";import"../chunk-SX7TUC3V.js";import"../chunk-POIQGEZM.js";import{p as xe,q as Ie,r as ue}from"../chunk-CPUECYAJ.js";import"../chunk-FPXL63KZ.js";import"../chunk-6AH7FXVC.js";import{c as e,d as t,f as r,g as o,h as p}from"../chunk-TSA6GHUG.js";import"../chunk-IA5M34P7.js";import"../chunk-FSSMUAKC.js";import{a as Re}from"../chunk-DFTCAWMP.js";import"../chunk-DK5YPBDQ.js";export{ne as ANALYSIS_LONG_EDGE,De as ASPECT_BANDS,I as AttestationError,He as BLUR_REFUSE_SHARPNESS_MAX,Mt as CAPTURE_CANDIDATE_SPACING_MS,dt as CAPTURE_EXTRA_CANDIDATES,p as CENTERED_FACTOR,M as CHALLENGE_EXECUTE_TIMEOUT_MS,d as CHALLENGE_READY_TIMEOUT_MS,r as CIRCLE_RADIUS_FACTOR,Bt as CLIPPED_LUMA,f as CLIP_MIME_ALLOWLIST,Dt as CaptureSessionDoc,P as ChallengeError,tr as DOCUMENT_TYPE_ORDER,je as DOC_ANALYSIS_DEFAULTS,At as DOC_BLACK_FRAME_LUMA,Ot as DOC_BLACK_FRAME_TICKS,xt as DOC_CADENCE_HZ,tt as DOC_CAMERA_TUNING_DEFAULTS,Me as DOC_CATALOG,Be as DOC_DETECT_WIDTH,Ke as DOC_FEEDBACK_STATES,Ct as DOC_FIRST_FRAME_MS,Ve as DOC_GATE_V1_DEFAULTS,It as DOC_SHUTTER_DEFAULTS,V as DocAssist,ze as DocFeedbackAggregator,Qe as DocGateV1,Lt as EMPTY_GUIDE_METRICS,ge as FLIP_FILL_MIN,ve as FLIP_GAP_MS,he as FLIP_TIMEOUT_MS,Rt as GUIDE_LOCK_DEFAULTS,Tt as GuideLock,gt as ICAO_CANVAS,wt as ICAO_FALLBACK,Ht as ICAO_GATE_CRITERIA,Vt as ICAO_SHARP_REF,O as INFERENCE_RETRY_ATTEMPTS,x as INFERENCE_RETRY_DEFAULT_S,o as IN_CIRCLE_FACTOR,er as ISSUER_CODES,oe as LANDMARKER_MODEL,ot as LENS_STORAGE_KEY,xe as LENS_TRY_MAX,B as LIVE_MRZ_DEFAULTS,_e as LIVE_PHOTO_IDLE_MS,me as LIVE_PHOTO_MAX_HZ,Ge as MANUAL_SHUTTER_MS,We as MRZ_BAND_DEFAULTS,Fe as MR_DOC_CATALOG,be as NO_REPORT_MS,Re as OCR_ASSET_SET,ce as OTP_RESEND_COOLDOWN_MS,ie as PORTRAIT_JPEG_QUALITY,a as PRELOAD_BLAZE_INIT_TIMEOUT_MS,n as PRELOAD_BUDGET_MS,le as PROCESSING_BACKOFF_MS,Te as PROCESSING_POLL_DELAY_MS,fe as PROCESSING_POLL_MAX,h as REGION_PAD,ye as REGISTRY_RETRY_DELAY_MS,te as SAME_FACE_MAX_DROPS,v as SHARPNESS_LONG_EDGE,z as TEXT_LOCK_DEFAULTS,C as TRANSPORT_REPLAY_ATTEMPTS,A as TRANSPORT_REPLAY_DELAY_MS,J as WEB_OCR_ENGINE,or as acceptedIssuers,rr as acceptedTypesFor,et as analyzeDocFrame,ct as analyzeGuide,Pe as aspectBand,de as aspectFits,jt as backgroundStats,q as browserFamily,X as buildDeviceReadHint,K as classifyCardSide,k as classifyCardSideWith,st as coverPointToVideo,re as createDocumentCaptureInternal,ae as createFaceLandmarker,Kt as createIcaoGate,Le as createLivePhotoKit,l as createLivenessCaptureInternal,Ee as createPortraitCaptureInternal,Se as createStepRunner,Ae as createVerificationInternal,b as cropImage,e as detectFormFactor,t as detectIsMobile,ke as detectMrzBand,Et as docZoomFor,W as encodeDocumentImage,N as executeChallenge,vt as eyeLineRoll,Ut as eyeOpenness,Qt as eyeSpecular,Ft as faceGeometry,Jt as faceLighting,qt as faceSharpness,pe as facesOf,we as feedbackVoteOf,ar as flagOf,mt as focusOk,ee as formatMismatch,R as frontierStep,St as guideQuad,lt as guideRegionInFrame,$t as icaoPixelStats,ht as icaoWindow,Ye as initialScanState,c as isExecutable,S as isTerminalView,Yt as judgeIcao,Ie as lensKindOf,$ as liveMrzWireReport,Xt as lumaPlane,_ as mapEngineState,L as mapErrorKind,m as mapGuidanceHint,T as mapSessionResult,U as measureBitmapSharpness,Y as measureRegionSharpness,Ue as nextScanState,se as observePortraitFrame,_t as openDocCamera,Pt as passportBandOf,Wt as percentile,g as photoSharpness,bt as portraitCropRegion,Oe as portraitMatchStep,Nt as poseFromMatrix,E as preloadedDetectorFactory,Xe as quadAreaFrac,Je as quadBounds,Ze as quadIou,$e as quadTiltRatio,Ce as randomUuid,ue as rankBackCameras,pt as readStoredLens,Zt as regionStats,F as resetChallengeFrameForTests,s as resetLivenessAssetsForTests,H as resizeLongEdge,pr as resolveAcceptedDocuments,rt as resolveDocCameraTuning,ut as resolveDocShutterTuning,yt as resolveGuideLockTuning,zt as resolveIcaoTuning,Q as resolveWebOcrPlan,D as runLivenessFlow,u as runSubmission,Ne as scannerFormatFor,kt as scoreFrame,i as setPreloadLoaderForTests,Z as settledHint,it as singleShotFocusAt,qe as specularFraction,j as startWebOcr,y as stepOf,G as stillRegionOf,w as stillToImageData,nt as supportsFocusMode,ft as warmDocDetector,Gt as windowOverflow,at as writeStoredLens};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as te}from"./chunk-ZKF2XMNX.js";import"./chunk-JLVZ35QK.js";import{a as J,b as W,e as Z,f as O,g as V,j as ee}from"./chunk-XIKMTHHH.js";import{x as q}from"./chunk-CKHBGAUA.js";import{n as X}from"./chunk-VWGKUQ3C.js";import"./chunk-53POX7U4.js";import"./chunk-33KKMPJ5.js";import"./chunk-CJHMFPL6.js";import"./chunk-RI3E7GBN.js";import"./chunk-GI3UFGRQ.js";import{F as Q,i as $,x as N}from"./chunk-WOVWAJD4.js";import"./chunk-G6LKLN4U.js";import"./chunk-SMKCBUJL.js";import"./chunk-KXFHVAYQ.js";import"./chunk-VVUQ4PFU.js";import{b as H,c as j,r as z,t as K,u as B}from"./chunk-BF7CLNFA.js";import"./chunk-34IITQFB.js";import"./chunk-7QZWBDI5.js";import"./chunk-AL6LIOLW.js";import{b as G}from"./chunk-SX7TUC3V.js";import"./chunk-POIQGEZM.js";import"./chunk-CPUECYAJ.js";import"./chunk-FPXL63KZ.js";import{c as D,i as Y}from"./chunk-6AH7FXVC.js";import"./chunk-TSA6GHUG.js";import{a as F}from"./chunk-IA5M34P7.js";import"./chunk-FSSMUAKC.js";import"./chunk-DFTCAWMP.js";import"./chunk-DK5YPBDQ.js";var le=2e4,ue=new Set(["media_type_unsupported","media_type_mismatch"]),ne=new Set(["document_upload_not_allowed","portrait_source_not_allowed","uploaded_media_not_allowed"]);function re(e){let o=null,h=Promise.resolve(),c=!1,_=null,S=null,C=!1,E=null,A=!1,M=!1,T=()=>{o?.controller.handle.destroy(),o=null},u=()=>{let t=e.currentView(),n=t===null?null:V(t,{isMobile:e.isMobile()});return n?.kind==="portrait"?n:null},a=()=>{if(e.destroyed())return"self";let t=e.currentView(),n=t===null?void 0:O(t);return n==="self"||n==="assisted"?n:n==="choice"&&e.captureModeSwitch!==void 0?e.captureModeSwitch.pick()??"self":e.cameraMode?.()??K(n??z(t),null)},f=e.captureModeSwitch,m=f===void 0?void 0:{session:()=>{let t=e.currentView();return t!==null&&O(t)==="choice"?"choice":a()},onModeChange:t=>f.choose(t)},y=async(t,n)=>{if(e.destroyed())return;let d=a();n.setFlowState("uploading"),c=!1;let s=null;try{await e.runner().submit("portrait_icao",async(r,v)=>{if(s===null){let k=await B(r,"image","image/jpeg",t.image.size,{engine:"portrait"});await r.uploadToSpaces(k.uploadUrl,t.image,"image/jpeg"),s=(await r.completeMedia(k.key)).key}n.setFlowState("checking");let g={media:{portrait:s},gate:Y(t.gate),...t.tuningVersion!==void 0?{tuningVersion:t.tuningVersion}:{},source:"camera",capture:{mode:d,facingMode:t.facingMode}};return r.submitCheck("portrait_icao",g,{idempotencyKey:v})})}catch(r){c=!0,r instanceof D&&ne.has(r.code)&&await e.refreshView?.().catch(()=>{})}if(n.setFlowState("done"),e.destroyed())return;let i=u();(i===null||i.phase!=="capture")&&o?.controller===n&&T(),e.runner().republish()},R=t=>e.runner().submit("face_match",(n,d)=>n.submitCheck("face_match",e.runner().faceProbeSkipped()?{simulatedCapture:!0}:{},{idempotencyKey:d})).then(()=>{},()=>{c=!0,t()}),b=null,w=async t=>{let n=u();if(n===null||n.phase!=="capture"||!n.photo.uploadOffered)throw new RangeError("upload_not_offered");let{prepareUploadFile:d}=await import("./upload-file-EGXXM6TQ.js"),s=await d(t,e.uploadInternals);if(e.destroyed())return;T(),c=!1;let i=null;try{await e.runner().submit("portrait_icao",async(r,v)=>{if(i===null){let k=await r.presign("image",s.contentType,s.blob.size,{source:"upload"});await r.uploadToSpaces(k.uploadUrl,s.blob,s.contentType),i=(await r.completeMedia(k.key)).key}let g={media:{portrait:i},source:"upload"};return r.submitCheck("portrait_icao",g,{idempotencyKey:v})})}catch(r){throw r instanceof D&&ue.has(r.code)?new TypeError("unsupported_file"):(r instanceof D&&ne.has(r.code)&&await e.refreshView?.().catch(()=>{}),r)}},P=null,I=t=>{if(P!==null)return P;let n=u();if(n===null||n.phase!=="review")return Promise.reject(new RangeError("no_pending_fix"));let d={fixReview:{accept:t}},s=e.runner().submit("portrait_icao",(i,r)=>i.submitCheck("portrait_icao",d,{idempotencyKey:r})).catch(async i=>{throw i instanceof D&&i.code==="portrait_no_pending_fix"&&await e.refreshView?.().catch(()=>{}),i}).finally(()=>{P=null});return P=s,s},l=t=>{let n=()=>w(t),d=(b===null?n():b.then(n,n)).finally(()=>{b===d&&(b=null)});return b=d,d};return{bind:(t,n)=>{if(t.phase==="review")return T(),{...t,uploadFailed:c,resubmit:()=>Promise.resolve(),capture:()=>{throw new Error("the adjusted photo waits for confirmFix()")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:I};if(t.phase==="match")return T(),_!==t.attemptsRemaining&&!c&&(_=t.attemptsRemaining,R(n)),{...t,uploadFailed:c,resubmit:()=>(c=!1,_=t.attemptsRemaining,n(),R(n)),capture:()=>{throw new Error("the portrait was already accepted")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:I};if(_=null,t.reuse===!0&&t.phase==="capture")return T(),!A&&E!==t.attemptsRemaining&&(E=t.attemptsRemaining,A=!0,e.runner().submit("portrait_icao",(s,i)=>s.submitCheck("portrait_icao",{},{idempotencyKey:i})).then(()=>{M=!1},()=>{M=!0}).finally(()=>{A=!1,n()})),{kind:"processing",key:"processing",context:t.context,section:t.section,stalled:M&&!A,refresh:()=>(M=!1,E=null,n(),Promise.resolve())};let d=e.keptPortraitInput?.()??null;return d!==null&&(C||d!==S&&t.report===null&&t.reason===void 0&&!t.retakeOnly)?(C||(S=d,C=!0,e.runner().submit("portrait_icao",(s,i)=>s.submitCheck("portrait_icao",d,{idempotencyKey:i})).catch(()=>{}).finally(()=>{C=!1,n()})),{kind:"processing",key:"processing",context:t.context,section:t.section,stalled:!1,refresh:()=>Promise.resolve()}):{...t,uploadFailed:c,resubmit:()=>Promise.resolve(),capture:s=>{if(o!==null&&o.video===s.video)return o.controller.handle;T(),c=!1;let i=X({video:s.video,tuning:t.tuning,tuningVersion:t.tuningVersion,...t.icao!=null?{policy:t.icao.policy}:{},...s.keepScreenAwake!==void 0?{keepScreenAwake:s.keepScreenAwake}:{},...s.assetBaseUrl!==void 0?{assetBaseUrl:s.assetBaseUrl}:{}},e.internals,a,m);o={video:s.video,controller:i};let r=i.handle.destroy;i.handle.destroy=()=>{o?.controller===i&&(o=null),r()},i.handle.on("error",k=>{e.reportCaptureIssue?.(H("portrait",k,0))});let v=!1,g=(k,L)=>{let x=i.gateScores();x!==null&&e.reportGate?.({kind:"portrait_gate",platform:"web",outcome:k,...L!==null?{failing:L}:{},...x})};return i.handle.on("gate",k=>{!v&&!k.ready&&(i.gateScores()?.elapsedMs??0)>=le&&(v=!0,g("stuck",k.failing))}),i.handle.on("captured",k=>{g("captured",null),v=!1,h=h.then(()=>y(k,i)).catch(()=>{})}),i.handle},uploadPortrait:l,confirmFix:I}},destroy:T}}var de=.92,ce=()=>G("environment",{width:{ideal:1920},height:{ideal:1080}},{getUserMedia:e=>navigator.mediaDevices.getUserMedia(e),enumerateDevices:()=>navigator.mediaDevices.enumerateDevices()}),pe=e=>{let o=document.createElement("canvas");o.width=e.videoWidth,o.height=e.videoHeight;let h=o.getContext("2d");return h===null||o.width===0||o.height===0?Promise.reject(new Error("the camera has no frame yet")):(h.drawImage(e,0,0,o.width,o.height),new Promise((c,_)=>o.toBlob(S=>S===null?_(new Error("the still could not be encoded")):c(S),"image/jpeg",de)))},me=(e,o)=>{try{e.muted=!0,e.playsInline=!0,e.srcObject=o,e.play().catch(()=>{})}catch{}};function oe(e){let o=null,h=null,c=u=>{let a=(h===null?u():h.then(u,u)).finally(()=>{h===a&&(h=null)});return h=a,a},_=()=>{o?.handle.destroy(),o=null},S=()=>{let u=e.currentView(),a=u===null?null:V(u,{isMobile:e.isMobile()});return a?.kind==="proof_of_address"?a:null},C=async(u,a)=>{if(a.length===0)throw new RangeError("no_pages");if(a.length>u.maxPages)throw new RangeError("too_many_pages");let{pdfFileKind:f,prepareUploadFile:m}=await import("./upload-file-EGXXM6TQ.js"),y=await Promise.all(a.map(b=>f(b)));if(y.includes("bad"))throw new TypeError("unsupported_file");if(y.includes("pdf")){if(a.length>1)throw new RangeError("too_many_pages");let b=a[0];if(b.size>u.pdf.maxBytes)throw new RangeError("file_too_large");return[{kind:"document_file",blob:b,contentType:"application/pdf"}]}let R=[];for(let b of a){let w=await m(b,e.uploadInternals);R.push({kind:"image",blob:w.blob,contentType:w.contentType})}return R},E=async(u,a,f)=>{let m=null;try{await e.runner().submit("poa",async(y,R)=>{if(m===null){let w=[];for(let P of f){let I=a==="upload"?await y.presign(P.kind,P.contentType,P.blob.size,{source:"upload"}):await B(y,P.kind,P.contentType,P.blob.size,{engine:"poa_page"});await y.uploadToSpaces(I.uploadUrl,P.blob,P.contentType),w.push((await y.completeMedia(I.key)).key)}m=w}let b=f[0]?.kind==="document_file"?{part:u,source:"upload",pdfKey:m[0]}:{part:u,source:a,imageKeys:m};return y.submitCheck("poa",b,{idempotencyKey:R})})}catch(y){throw y instanceof D&&(y.code==="media_type_unsupported"||y.code==="media_type_mismatch")?new TypeError("unsupported_file"):(y instanceof D&&(y.code==="document_upload_not_allowed"||y.code==="uploaded_media_not_allowed")&&await e.refreshView?.().catch(()=>{}),y)}},A=async(u,a)=>{let f=S();if(f===null||!f.photo.uploadOffered)throw new RangeError("upload_not_offered");if(u==="holder_letter"&&f.phase!=="holder_letter")throw new RangeError("holder_letter_not_requested");let m=await C(f,a);e.destroyed()||(_(),await E(u,"upload",m))},M=(u,a)=>{let f=null,m=[],y=!0,R=()=>{for(let w of f?.getTracks()??[])w.stop();f=null},b={get pages(){return m},start:async()=>{if(!y||f!==null)return;let w=await(e.pageCamera?.open??ce)();if(!y){for(let P of w.getTracks())P.stop();return}f=w,(e.pageCamera?.attach??me)(u,w)},takePage:async()=>{if(m.length>=a)throw new RangeError("too_many_pages");let w=await(e.pageCamera?.grab??pe)(u);if(m.length>=a)throw new RangeError("too_many_pages");return m=[...m,w],w},removePage:w=>{m=m.filter((P,I)=>I!==w)},submitPages:()=>c(async()=>{if(m.length===0)throw new RangeError("no_pages");let w=S();if(w===null)throw new RangeError("camera_not_offered");let P=w.phase==="holder_letter"?"holder_letter":"document";await E(P,"camera",m.map(I=>({kind:"image",blob:I,contentType:"image/jpeg"}))),o?.handle===b?_():b.destroy()}),destroy:()=>{y=!1,m=[],R(),o?.handle===b&&(o=null)}};return b},T=async()=>{let u=S();if(u===null||!u.licenceAddressAccepted)throw new RangeError("licence_address_not_accepted");if(e.destroyed())return;_();let a={part:"document"};await e.runner().submit("poa",(f,m)=>f.submitCheck("poa",a,{idempotencyKey:m}))};return{bind:u=>({...u,...u.licenceAddressAccepted?{useLicenceAddress:()=>c(T)}:{},uploadPages:a=>c(()=>A("document",a)),uploadHolderLetter:a=>c(()=>A("holder_letter",a)),capturePage:a=>{if(u.photo.source==="upload")throw new RangeError("camera_not_offered");if(o!==null&&o.video===a.video)return o.handle;_();let f=M(a.video,u.maxPages);return o={video:a.video,handle:f},f}}),destroy:_}}function ie(e){let o=e;if(typeof o.apiOrigin!="string"||typeof o.sessionToken!="string")return;let h=`${o.apiOrigin}/api/v2/hosted/capture-reports`,c=o.sessionToken;return _=>{try{fetch(h,{method:"POST",headers:{"content-type":"application/json","x-session-token":c,"x-sekyro-sdk":`@sekyro/web/${F}`},body:JSON.stringify({reports:_}),keepalive:!0}).catch(()=>{})}catch{}}}function ae(e){let o=e.apiOrigin;return te("sdk",typeof o=="string"&&/staging|sandbox|localhost/.test(o)?"sandbox":"live")}function fe(e){return ae(e).replace(/\/ocr$/,"/barcode")}function ze(e){let o=null,h=null,c=null,_=j(),S=Promise.resolve(),C=()=>{c?.flow.handle.destroy(),c=null},E=l=>l===null?{}:{documentType:l.documentType,documentCountry:l.issuer},A=async(l,p,t)=>{if(e.destroyed())return;p.setFlowState("uploading");let n=null,d=E(t),s,i=!1,r=e.currentView()?.documents!==void 0;try{await o.submit("doc_ocr",async(x,se)=>{if(n===null){let U=await B(x,"image","image/jpeg",l.image.size,{engine:"document"});await x.uploadToSpaces(U.uploadUrl,l.image,"image/jpeg"),n=(await x.completeMedia(U.key)).key}return p.setFlowState("checking"),s===void 0&&(s=p.takeDeviceRead(l)),x.submitCheck("doc_ocr",{imageKey:n,side:l.side,...s!==null?{deviceRead:s}:{},...r?{source:"camera"}:{},...d},{idempotencyKey:se})})}catch{i=!0}finally{p.setFlowState("done")}if(e.destroyed())return;if(i){p.settle(l.side,{ok:!1,issue:"technical"});return}let v=e.currentView(),g=v===null?null:V(v,{isMobile:e.isMobile()});if(g?.kind!=="document"){p.settle(l.side,{ok:!0}),c?.flow===p?C():p.handle.destroy();return}if(g.reason==="document_type_not_accepted"||g.reason==="document_type_not_supported"){h=null,c?.flow===p&&C(),o.republish();return}let k=g.acceptedSides;l.side!=="single"&&(k.includes(l.side)||g.reason==="side_missing")&&!(k.includes("recto")&&k.includes("verso"))?(p.settle(l.side,{ok:!0}),h?.documentType!=="passport"&&p.handle.setSide(g.side)):g.reason==="document_sides_mismatch"&&k.length===0?(p.settle(l.side,{ok:!1,issue:"reread"}),p.handle.retry()):p.settle(l.side,{ok:!1,issue:"reread"})},M=null,T=async l=>{let p=e.currentView(),t=p===null?null:V(p,{isMobile:e.isMobile()});if(p===null||t?.kind!=="document")throw new RangeError("upload_not_offered");if(!t.photo.uploadOffered)throw new RangeError("upload_not_offered");let n=h,d=n?.documentType==="passport"?"single":t.side,{prepareUploadFile:s}=await import("./upload-file-EGXXM6TQ.js"),i=await s(l,e.uploadInternals);if(e.destroyed())return;C();let r=null,v=E(n);try{await o.submit("doc_ocr",async(g,k)=>{if(r===null){let L=await g.presign("image",i.contentType,i.blob.size,{source:"upload"});await g.uploadToSpaces(L.uploadUrl,i.blob,i.contentType),r=(await g.completeMedia(L.key)).key}return g.submitCheck("doc_ocr",{imageKey:r,side:d,source:"upload",...v},{idempotencyKey:k})})}catch(g){throw g instanceof D&&(g.code==="media_type_unsupported"||g.code==="media_type_mismatch")?new TypeError("unsupported_file"):(g instanceof D&&(g.code==="document_upload_not_allowed"||g.code==="uploaded_media_not_allowed")&&await e.refreshView().catch(()=>{}),g)}},u=(l,p)=>({...l,uploadDocument:t=>{let n=()=>T(t),d=(M===null?n():M.then(n,n)).finally(()=>{M===d&&(M=null)});return M=d,d},issuer:h?.issuer??null,documentType:h?.documentType??null,captureSide:h===null?null:h.documentType==="passport"?"single":l.side,selectDocument:(t,n)=>{if(!W(l.documents).includes(t)||!J(l.documents,t).includes(n))throw new RangeError(`${n} from ${t} is not accepted`);(h?.issuer!==t||h.documentType!==n)&&C(),h={issuer:t,documentType:n},p()},capture:t=>{if(h===null)throw new Error("selectDocument() first");if(c!==null&&c.video===t.video)return c.flow.handle;C();let n=h,d=n.documentType==="passport"?"single":l.acceptedSides.length>0?l.side:void 0,s=q({video:t.video,documentType:n.documentType,issuer:n.issuer,...d!==void 0?{side:d}:{},...t.keepScreenAwake!==void 0?{keepScreenAwake:t.keepScreenAwake}:{},...t.liveMrz!==void 0?{liveMrz:t.liveMrz}:{},...t.barcodeAssetBaseUrl!==void 0?{barcodeAssetBaseUrl:t.barcodeAssetBaseUrl}:{}},{...e.documentInternals??{},...(()=>{let r=e.currentView()?.capture?.document,v=e.documentInternals?.blurRefuseSharpnessMax??r?.scan?.blurRefuseSharpnessMax;return{engineOptions:{camera:$(r?.camera),shutter:Q(r?.scan),guideLock:N(r?.guide),...e.documentInternals?.engineOptions??{}},...typeof v=="number"&&Number.isFinite(v)&&v>=0&&v<=1?{blurRefuseSharpnessMax:v}:{},catalogCapture:e.documentInternals?.catalogCapture??r?.catalog===!0}})(),deferRead:!0,...e.documentInternals?.barcode!==void 0?{}:{barcode:{assetBaseUrl:fe(e.runtime.client)}},...(()=>{let r=e.currentView();if(r===null||e.documentInternals?.webOcr!==void 0)return{};let v=ie(e.runtime.client);return{webOcr:{captureDocument:r.capture?.document,salt:r.sessionId,baseUrl:ae(e.runtime.client),...v!==void 0?{reports:v}:{}}}})()});c={video:t.video,flow:s};let i=s.handle.destroy;return s.handle.destroy=()=>{c?.flow===s&&(c=null),i()},_.newHandle(),s.handle.on("state",r=>_.note(r)),s.handle.on("error",r=>{_.noteError(),e.reportCaptureIssue?.(H("document",r,_.value))}),s.handle.on("captured",r=>{S=S.then(()=>A(r,s,n)).catch(()=>{})}),s.handle}}),a=null,f=null,m=new Set,y=e.runtime.client;e.runtime.client=new Proxy(y,{get(l,p){if(p==="submitCheck")return(f??l).submitCheck.bind(f??l);let t=Reflect.get(l,p);return typeof t=="function"?t.bind(l):t}});let R=()=>{a?.destroy(),a=null,f=null},b=l=>{let p=e.currentView(),t=p===null?null:V(p,{isMobile:e.isMobile()});if(p===null||t?.kind!=="liveness"||t.livePhoto?.icao!==!0)return;if(a===null){let i=Z({tuning:p.capture?.icao??null,tuningVersion:p.capture?.tuningVersion??null,...t.icao!=null?{policy:t.icao.policy}:{},still:t.livePhoto.still,...l.assetBaseUrl!==void 0?{assetBaseUrl:l.assetBaseUrl}:{}},e.livePhotoInternals);a=i,f=i.decorate(y),i.onGate(r=>{for(let v of m)v(r)})}let n=a,d=e.baseCapture??{},s=d.engineOptions?.telemetry;return{...d,engineOptions:{...d.engineOptions??{},measureQuality:n.engineOptions.measureQuality,telemetry:i=>{s?.(i),n.engineOptions.telemetry(i)}}}},w=re({keptPortraitInput:()=>a?.lastPortraitInput()??null,runner:()=>o,currentView:e.currentView,...e.cameraMode!==void 0?{cameraMode:e.cameraMode}:{},...e.captureModeSwitch!==void 0?{captureModeSwitch:e.captureModeSwitch}:{},destroyed:e.destroyed,isMobile:e.isMobile,...e.portraitInternals!==void 0?{internals:e.portraitInternals}:{},...e.uploadInternals!==void 0?{uploadInternals:e.uploadInternals}:{},refreshView:()=>e.refreshView(),...e.reportCaptureIssue!==void 0?{reportCaptureIssue:e.reportCaptureIssue}:{},reportGate:l=>ie(e.runtime.client)?.([l])}),P=oe({runner:()=>o,currentView:e.currentView,destroyed:e.destroyed,isMobile:e.isMobile,...e.uploadInternals!==void 0?{uploadInternals:e.uploadInternals}:{},...e.pageCameraInternals!==void 0?{pageCamera:e.pageCameraInternals}:{},refreshView:()=>e.refreshView()}),I=ee({...e,bindDocument:u,bindPortrait:w.bind,bindProofOfAddress:P.bind,stopCameras:()=>{C(),w.destroy(),P.destroy(),R(),e.stopLiveness?.()},onLivePhoto:l=>(m.add(l),()=>m.delete(l))});return o=I,{...I,captureInternals:b,destroy:()=>{C(),w.destroy(),P.destroy(),R(),m.clear()}}}export{fe as barcodeAssetBase,ze as createPlanRunner,ie as reportSink,ae as sdkAssetBase};
|
|
@@ -293,12 +293,14 @@ type CheckState = "pending" | "input_required" | "processing" | "passed" | "fail
|
|
|
293
293
|
* `eid_auth` (SDK spec §3.2) is the national eID sign-in (Houwiyeti in MR).
|
|
294
294
|
*/
|
|
295
295
|
type CheckType = "liveness" | "face_match" | "doc_ocr" | "population_registry" | "phone_otp" | "nfc_chip" | "email_otp" | "portrait_icao" | "eid_auth"
|
|
296
|
+
/** Spec 2026-11-14 §14: the Form step (the person's declared answers and the client's consents). */
|
|
297
|
+
| "form"
|
|
296
298
|
/** Spec 2026-11-10 §5: the proof of address step (a bill or statement, images or one PDF). */
|
|
297
299
|
| "poa";
|
|
298
300
|
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";
|
|
299
301
|
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";
|
|
300
302
|
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";
|
|
301
|
-
type DocReason = "side_missing" | "mrz_checksum_failed" | "unreadable" | "expired_document" | "authenticity_review" | "document_authenticity" | "registry_mismatch" | "document_id_number_mismatch" | "document_nni_mismatch" | "nationality_unreadable" | "document_type_not_accepted" | "nationality_not_allowed" | "underage" | "age_unverifiable" | "name_mismatch" | "birth_date_mismatch" | "nationality_mismatch" | "document_number_mismatch";
|
|
303
|
+
type DocReason = "side_missing" | "mrz_checksum_failed" | "unreadable" | "expired_document" | "authenticity_review" | "document_authenticity" | "registry_mismatch" | "document_id_number_mismatch" | "document_nni_mismatch" | "nationality_unreadable" | "document_type_not_accepted" | "nationality_not_allowed" | "underage" | "age_unverifiable" | "document_type_not_supported" | "name_mismatch" | "birth_date_mismatch" | "nationality_mismatch" | "document_number_mismatch" | "document_sides_mismatch" | "document_photo_mismatch";
|
|
302
304
|
/**
|
|
303
305
|
* Profile v2 step 3 matching reasons: a field the partner sent at session
|
|
304
306
|
* create (`subject`) differs from the reference identity (document or
|
|
@@ -334,7 +336,7 @@ type EmailOtpReason = "otp_mismatch" | "otp_expired" | "otp_send_failed" | "otp_
|
|
|
334
336
|
* never does — on web the step arrives `skipped` (`platform_unsupported`) or
|
|
335
337
|
* the session shows `reasonCode: 'platform_unsupported'`.
|
|
336
338
|
*/
|
|
337
|
-
type NfcChipReason = "chip_read_failed" | "chip_access_denied" | "chip_parse_failed" | "chip_not_present" | "nfc_unavailable" | "chip_document_mismatch" | "chip_integrity_failed" | "registry_mismatch" | "document_id_number_mismatch" | "document_nni_mismatch" | "platform_unsupported";
|
|
339
|
+
type NfcChipReason = "chip_read_failed" | "chip_access_denied" | "chip_parse_failed" | "chip_not_present" | "nfc_unavailable" | "chip_document_mismatch" | "chip_integrity_failed" | "registry_mismatch" | "document_id_number_mismatch" | "document_nni_mismatch" | "platform_unsupported" | "document_photo_mismatch";
|
|
338
340
|
/**
|
|
339
341
|
* eid_auth reasons (SDK spec §3.2, generic national eID; Houwiyeti in MR).
|
|
340
342
|
* Retryable: `eid_identifier_invalid` (re-enter the number), `eid_code_invalid`
|
|
@@ -432,9 +434,20 @@ interface CaptureIssueReport {
|
|
|
432
434
|
phase?: "preflight" | "acquiring" | "models" | "recording" | "keyframes" | "upload";
|
|
433
435
|
/** The engine kind before the public collapse, or the `unavailable` reason code (lower case, at most 32 characters). */
|
|
434
436
|
engineKind?: string;
|
|
435
|
-
/**
|
|
437
|
+
/**
|
|
438
|
+
* Which capture attempt of the page failed (0 = the first); for `attestation`, which failed challenge of the page. The
|
|
439
|
+
* client reports one issue per attempt and cause.
|
|
440
|
+
*/
|
|
436
441
|
attempt?: number;
|
|
437
442
|
formFactor?: "phone" | "tablet" | "desktop";
|
|
443
|
+
/** `attestation`: Cloudflare's numeric error code, when the challenge reported one (incident 2026-11-13). */
|
|
444
|
+
detail?: string;
|
|
445
|
+
/** `attestation`: milliseconds from the challenge request to its failure (the frame client's own retry included). */
|
|
446
|
+
challengeMs?: number;
|
|
447
|
+
/** `attestation`: milliseconds from inserting the challenge frame to its `ready`; absent when it never answered. */
|
|
448
|
+
readyMs?: number;
|
|
449
|
+
/** `attestation`: the page runs in an app's WebView (a user-agent heuristic, as the device header's `inApp`). */
|
|
450
|
+
inApp?: boolean;
|
|
438
451
|
}
|
|
439
452
|
/**
|
|
440
453
|
* How the person proves their identity when the app makes the document
|
|
@@ -470,7 +483,7 @@ type EidAfterPass = "end" | "continue";
|
|
|
470
483
|
* of address (spec 2026-11-10). Open: a value this SDK does not know is kept as
|
|
471
484
|
* is, so a client still places the step.
|
|
472
485
|
*/
|
|
473
|
-
type StepSection = "contact" | "identity" | "live_photo" | "screening" | "documents" | (string & {});
|
|
486
|
+
type StepSection = "contact" | "identity" | "live_photo" | "screening" | "documents" | "form" | (string & {});
|
|
474
487
|
/** A contact channel of a contact choice (`phone_otp` → `phone`, `email_otp` → `email`). */
|
|
475
488
|
type ContactChannel = "phone" | "email";
|
|
476
489
|
/**
|
|
@@ -864,6 +877,11 @@ interface HostedStepView {
|
|
|
864
877
|
* camera capture from a desktop answers `409 mobile_required`. Absent on `upload` steps and steps without a camera.
|
|
865
878
|
*/
|
|
866
879
|
requiresMobile?: boolean;
|
|
880
|
+
/**
|
|
881
|
+
* Native-only capture (spec 2026-11-15): this camera step runs in a native app only (the partner's app or the
|
|
882
|
+
* Sekyro AI app). A browser shows the way there; a submission from it answers `409 native_app_required`.
|
|
883
|
+
*/
|
|
884
|
+
requiresNativeApp?: boolean;
|
|
867
885
|
/** nfc_chip only (M-nfc). */
|
|
868
886
|
nfc?: NfcStepView;
|
|
869
887
|
/** portrait_icao only (SDK spec §4.9): the last attempt's per-criterion report. */
|
|
@@ -884,7 +902,104 @@ interface HostedStepView {
|
|
|
884
902
|
docCapture?: {
|
|
885
903
|
mode: "mrz_for_chip" | (string & {});
|
|
886
904
|
};
|
|
905
|
+
/**
|
|
906
|
+
* form only (spec 2026-11-14 §14): the questions of the open Form step in the language chosen for the person
|
|
907
|
+
* (§8), and the prefill (§10). Absent before the session token is presented and once the step is submitted.
|
|
908
|
+
*/
|
|
909
|
+
form?: HostedFormView;
|
|
910
|
+
}
|
|
911
|
+
/** A hosted language of a Form step's own text (spec 2026-11-14 §8). */
|
|
912
|
+
type FormLocale = "ar" | "fr" | "en" | "es" | "pt" | "de";
|
|
913
|
+
/** A ready-made Form field (spec 2026-11-14 §5): label, input, help and errors are Sekyro's, in the person's language. */
|
|
914
|
+
type FormFieldName = "full_name" | "birth_date" | "email" | "phone" | "address" | "country" | "occupation";
|
|
915
|
+
/** A custom Form question type (spec 2026-11-14 §5). */
|
|
916
|
+
type FormQuestionType = "short_text" | "long_text" | "single_choice" | "multiple_choice" | "yes_no" | "date" | "number";
|
|
917
|
+
/**
|
|
918
|
+
* The open Form step (`plan.steps[].form`, spec 2026-11-14 §14): one screen, questions in the client's order, then
|
|
919
|
+
* the consents. Every client text is already in `locale`; render it with that `lang` (and its direction), whatever the
|
|
920
|
+
* page language. Sekyro's own text (ready-made labels, buttons, errors) stays in the page language.
|
|
921
|
+
*/
|
|
922
|
+
interface HostedFormView {
|
|
923
|
+
/** The language of the client's text (§8: the person's language when complete, else the default, else the source). */
|
|
924
|
+
locale: FormLocale | (string & {});
|
|
925
|
+
title?: string;
|
|
926
|
+
intro?: string;
|
|
927
|
+
questions: FormQuestionView[];
|
|
928
|
+
consents: FormConsentView[];
|
|
929
|
+
/** Prefilled answers by question id (§10); the person can change every one. Consents are never prefilled. */
|
|
930
|
+
prefill?: Record<string, FormAnswerValue>;
|
|
931
|
+
}
|
|
932
|
+
/** A question of the Form step: a ready-made field or a custom question. */
|
|
933
|
+
type FormQuestionView = FormFieldQuestionView | FormCustomQuestionView;
|
|
934
|
+
/** A ready-made field (`id` is the field name). */
|
|
935
|
+
interface FormFieldQuestionView {
|
|
936
|
+
kind: "field";
|
|
937
|
+
id: FormFieldName | (string & {});
|
|
938
|
+
field: FormFieldName | (string & {});
|
|
939
|
+
required: boolean;
|
|
940
|
+
}
|
|
941
|
+
/** A custom question, its text in the view's `locale`. */
|
|
942
|
+
interface FormCustomQuestionView {
|
|
943
|
+
kind: "custom";
|
|
944
|
+
id: string;
|
|
945
|
+
type: FormQuestionType | (string & {});
|
|
946
|
+
required: boolean;
|
|
947
|
+
label: string;
|
|
948
|
+
help?: string;
|
|
949
|
+
/** single_choice and multiple_choice: 2 to 12 choices, in order. */
|
|
950
|
+
choices?: FormChoiceView[];
|
|
951
|
+
/** date: `min` / `max` (`YYYY-MM-DD`) or `period`; number: `min` / `max` / `integer`. */
|
|
952
|
+
options?: FormQuestionOptions;
|
|
953
|
+
}
|
|
954
|
+
interface FormChoiceView {
|
|
955
|
+
value: string;
|
|
956
|
+
label: string;
|
|
957
|
+
}
|
|
958
|
+
/** The bounds of a date or number question. */
|
|
959
|
+
interface FormQuestionOptions {
|
|
960
|
+
min?: string | number;
|
|
961
|
+
max?: string | number;
|
|
962
|
+
period?: "past" | "future";
|
|
963
|
+
integer?: boolean;
|
|
964
|
+
}
|
|
965
|
+
/** A consent checkbox of the client's (spec 2026-11-14 §5); `required` ones must be ticked to continue. */
|
|
966
|
+
interface FormConsentView {
|
|
967
|
+
id: string;
|
|
968
|
+
required: boolean;
|
|
969
|
+
text: string;
|
|
970
|
+
link?: {
|
|
971
|
+
url: string;
|
|
972
|
+
label: string;
|
|
973
|
+
};
|
|
887
974
|
}
|
|
975
|
+
/** The address answer (the shape of the person address: country, city, 1 to 4 lines, postcode). */
|
|
976
|
+
interface FormAddressValue {
|
|
977
|
+
/** ISO 3166-1 alpha-2. */
|
|
978
|
+
country: string;
|
|
979
|
+
city: string;
|
|
980
|
+
lines: string[];
|
|
981
|
+
postcode?: string;
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* One answer: text, a choice value, a list of choice values, a boolean (yes / no), `YYYY-MM-DD`, a number, E.164 (phone),
|
|
985
|
+
* ISO alpha-2 (country) or an address.
|
|
986
|
+
*/
|
|
987
|
+
type FormAnswerValue = string | string[] | boolean | number | FormAddressValue;
|
|
988
|
+
/**
|
|
989
|
+
* `form` executor input (spec 2026-11-14 §14): answers by question id (an optional question left empty is left out)
|
|
990
|
+
* and every consent by id (`true` = ticked). A refused submit answers 422 `form_answers_invalid` with one
|
|
991
|
+
* `details.errors[]` entry per question id (`{ id, code }`, the server's code; the verification maps it to a
|
|
992
|
+
* {@link FormIssueCode}); it does not use an attempt.
|
|
993
|
+
*/
|
|
994
|
+
interface FormInput {
|
|
995
|
+
answers: Record<string, FormAnswerValue>;
|
|
996
|
+
consents: Record<string, boolean>;
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* Why an answer was refused (the `code` of a `form_answers_invalid` issue). The client checks the same rules before
|
|
1000
|
+
* sending; `card_number` comes only from the server (a Luhn-valid card number typed into a text answer, §17).
|
|
1001
|
+
*/
|
|
1002
|
+
type FormIssueCode = "required" | "too_long" | "too_short" | "email_invalid" | "phone_invalid" | "date_invalid" | "date_not_past" | "date_not_future" | "date_too_early" | "date_too_late" | "number_invalid" | "number_not_integer" | "number_decimals" | "number_too_small" | "number_too_large" | "choice_invalid" | "address_invalid" | "card_number" | "consent_required";
|
|
888
1003
|
/** A locale the Sekyro AI-hosted voice clips are recorded in. */
|
|
889
1004
|
type HostedVoiceLocale = "ar" | "fr" | "en";
|
|
890
1005
|
/**
|
|
@@ -1185,6 +1300,12 @@ interface HostedSessionView {
|
|
|
1185
1300
|
expiresAt: string;
|
|
1186
1301
|
consentRecorded: boolean;
|
|
1187
1302
|
orgName: string;
|
|
1303
|
+
/**
|
|
1304
|
+
* Website demo spec 2026-11-13 §4.5: present (`true`) on a website demo session whose `orgName`
|
|
1305
|
+
* is the visitor's own name. The hosted page shows "Demo by Sekyro AI" under it; SDK surfaces
|
|
1306
|
+
* ignore it.
|
|
1307
|
+
*/
|
|
1308
|
+
demo?: true;
|
|
1188
1309
|
/**
|
|
1189
1310
|
* The FIRST allowlisted web-SDK origin of the owning org (Task 12), or null
|
|
1190
1311
|
* when none is registered. The hosted page posts the SDK popup postMessage
|
|
@@ -1285,6 +1406,12 @@ interface HostedSessionView {
|
|
|
1285
1406
|
capture?: HostedCaptureTuning;
|
|
1286
1407
|
/** Native device attestation parameters; absent for web-only apps and on older APIs. */
|
|
1287
1408
|
integrity?: HostedIntegrity;
|
|
1409
|
+
/**
|
|
1410
|
+
* Native-only capture (spec 2026-11-15): present when the session's flow takes its photos in a native app only.
|
|
1411
|
+
* Its camera steps carry `requiresNativeApp`; a browser shows the way to the partner's app (and the Sekyro AI app
|
|
1412
|
+
* when `sekyroApp`) instead of opening the camera. Absent on flows that take photos on any device.
|
|
1413
|
+
*/
|
|
1414
|
+
nativeApp?: HostedNativeAppView;
|
|
1288
1415
|
/**
|
|
1289
1416
|
* SDK spec §3.5: present when the session runs the ICAO portrait step — the
|
|
1290
1417
|
* client runs the ICAO gate (read it with `icaoPolicyOf`). `icao` is absent on
|
|
@@ -1400,6 +1527,15 @@ interface HostedSessionView {
|
|
|
1400
1527
|
hosts: string[];
|
|
1401
1528
|
};
|
|
1402
1529
|
}
|
|
1530
|
+
/** {@link HostedSessionView.nativeApp}: where a browser sends the person when the flow takes photos in an app only. */
|
|
1531
|
+
interface HostedNativeAppView {
|
|
1532
|
+
/** The session's app allows verification in the Sekyro AI app. */
|
|
1533
|
+
sekyroApp: boolean;
|
|
1534
|
+
/** This session's link (`https://…/<code>`): on a phone with the Sekyro AI app it opens the app. */
|
|
1535
|
+
link?: string;
|
|
1536
|
+
/** `sekyro://verify/<code>`: opens this session in the Sekyro AI app. Only with `sekyroApp`. */
|
|
1537
|
+
sekyroAppLink?: string;
|
|
1538
|
+
}
|
|
1403
1539
|
/** `POST /hosted/consent` result — 201 on first record, 200 `{alreadyRecorded: true}` on replay. */
|
|
1404
1540
|
/**
|
|
1405
1541
|
* `POST /hosted/consent` answer (Sekyro flows §8.2): the hosted view with
|
|
@@ -1783,10 +1919,12 @@ interface DocOcrInput {
|
|
|
1783
1919
|
*/
|
|
1784
1920
|
source?: PhotoSourcePick;
|
|
1785
1921
|
/**
|
|
1786
|
-
*
|
|
1787
|
-
*
|
|
1922
|
+
* The document type the person picked (spec 2026-11-11 D11 rule 1). The server refuses a document that is not the
|
|
1923
|
+
* one picked; `drivers_license` also routes both faces to its document reader (spec 2026-11-10 §6.2).
|
|
1788
1924
|
*/
|
|
1789
|
-
documentType?:
|
|
1925
|
+
documentType?: AcceptedDocumentType;
|
|
1926
|
+
/** The issuing country the person picked, ISO 3166-1 alpha-2. Sent with `documentType`. */
|
|
1927
|
+
documentCountry?: string;
|
|
1790
1928
|
}
|
|
1791
1929
|
/** The `doc_ocr` device-read hint (identity-backend DeviceReadSchema; strict, text-free). */
|
|
1792
1930
|
interface DocDeviceRead {
|
|
@@ -1945,6 +2083,8 @@ interface CheckInputByType {
|
|
|
1945
2083
|
eid_auth: EidAuthInput;
|
|
1946
2084
|
/** Spec 2026-11-10 §5: the proof of address pages or PDF. */
|
|
1947
2085
|
poa: PoaInput;
|
|
2086
|
+
/** Spec 2026-11-14 §14: the Form step's answers and consents. */
|
|
2087
|
+
form: FormInput;
|
|
1948
2088
|
}
|
|
1949
2089
|
/**
|
|
1950
2090
|
* Body of `POST /sessions/:id/checks/:checkType` (SubmitCheckSchema).
|
|
@@ -1960,4 +2100,4 @@ interface SubmitCheckBody {
|
|
|
1960
2100
|
forceOutcome?: "pass" | "fail" | "age_over" | "age_uncertain" | "age_under" | "age_unavailable";
|
|
1961
2101
|
}
|
|
1962
2102
|
|
|
1963
|
-
export { type
|
|
2103
|
+
export { type HostedNativeAppView as $, type AcceptedDocumentType as A, type FormFieldName as B, type CaptureContext as C, type DecisionReason as D, type EidAfterPass as E, type FaceMatchInput as F, type FormFieldQuestionView as G, type FormInput as H, type FormIssueCode as I, type FormLocale as J, type FormQuestionOptions as K, type FormQuestionType as L, type FormQuestionView as M, type HostedAcceptedDocuments as N, type HostedCaptureTuning as O, type HostedChallengeView as P, type HostedConsentView as Q, type HostedDocumentCaptureTuning as R, type HostedDocumentScanTuning as S, type HostedDocumentsView as T, type HostedEidView as U, type HostedEmailOtpView as V, type HostedFlowRef as W, type HostedFormView as X, type HostedIcaoPolicy as Y, type HostedIntegrity as Z, type HostedLivePhotoTuning as _, type AttestationInput as a, type SandboxSimulation as a$, type HostedNativeCaptureTuning as a0, type HostedOcrTuning as a1, type HostedOtpView as a2, type HostedPlanView as a3, type HostedPoaRuleKindView as a4, type HostedPoaRuleView as a5, type HostedPortraitPendingFix as a6, type HostedPortraitView as a7, type HostedProofOfAddressView as a8, type HostedSessionView as a9, type PhotoSourcePick as aA, type PlanAttempts as aB, type PlanChoiceKind as aC, type PlanChoiceOption as aD, type PlanChoiceView as aE, type PlanSectionView as aF, type PlanStepView as aG, type PoaImagesInput as aH, type PoaInput as aI, type PoaKind as aJ, type PoaLicenceInput as aK, type PoaNameMatchMode as aL, type PoaPdfInput as aM, type PoaReason as aN, type PoaRuleSource 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 SandboxSimulatedReason as a_, type HostedSimulationView as aa, type HostedStepView as ab, type HostedTesterGateView as ac, type HostedVoiceLocale as ad, type HostedVoiceView as ae, type IcaoCriterion as af, type IcaoReportEntry as ag, type IdentityConfirmDecision as ah, type IdentityMethod as ai, type IdentitySummarySource as aj, type IdentitySummaryView as ak, type LivenessCaptureInput as al, type LivenessInput as am, type LivenessReason as an, type MatchReason as ao, type MediaKind as ap, type MethodChoiceView as aq, type NationalEidOption as ar, type NfcChipReason as as, type NfcStepView as at, type OtpChoiceView as au, type PhoneCountryRule as av, type PhoneFormat as aw, type PhoneOtpInput as ax, type PhoneOtpReason as ay, type PhotoSource as az, type CaptureMode as b, type SessionDecidingStep as b0, type SessionFailureReason as b1, type SessionReason as b2, type SessionStatus as b3, type SessionStepView as b4, type SessionView as b5, type SimulatedCaptureInput as b6, type StepResult as b7, type StepSection as b8, type SubmitCheckBody as b9, type TesterGateInput as ba, type TesterGateResponse as bb, type VerificationAssurance as bc, type VerificationLevel as bd, type ScreenRampColour as be, type AgeEstimationReason as bf, type CameraUnavailableCause as bg, type CaptureIssueReport as bh, type CaptureProvenance as bi, type HostedBranding as bj, type HostedBrandingColorKey as bk, type HostedLivenessCaptureTuning as bl, type IcaoCaptureTuning as bm, type RetakeHint as bn, type ScreenRampChallenge as bo, type ScreenRampPaint as bp, type ScreenRampRendered as bq, type ScreenRampReport as br, ICAO_FALLBACK as bs, type IcaoProfile as bt, type ResolvedIcaoTuning as bu, resolveIcaoTuning as bv, type PersonMask as bw, type BackgroundUniformity as bx, 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 FormAddressValue as v, type FormAnswerValue as w, type FormChoiceView as x, type FormConsentView as y, type FormCustomQuestionView as z };
|