@sekyro/web 0.1.0-rc.23 → 0.1.0-rc.25
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 +18 -0
- package/README.md +34 -2
- package/dist/{capture-session-doc-BBDKMEAP.js → capture-session-doc-O33KRXH7.js} +1 -1
- package/dist/{capture-session-v3-CFXYS0Pg.d.cts → capture-session-v3-BoGn8vLv.d.cts} +1 -1
- package/dist/{capture-session-v3-DID39wUZ.d.ts → capture-session-v3-C0bbHvDc.d.ts} +1 -1
- package/dist/challenge-frame-NUGPTWFP.js +1 -0
- package/dist/{chunk-LFMIFR6T.js → chunk-24F6JCVH.js} +1 -1
- package/dist/chunk-4ESM6SSR.js +1 -0
- package/dist/chunk-6XXMWK72.js +1 -0
- package/dist/{chunk-JWEHH2MS.js → chunk-7HV77AOV.js} +1 -1
- package/dist/{chunk-5DTWBDCP.js → chunk-DIKSFEYQ.js} +1 -1
- package/dist/{chunk-JYU5YHXN.js → chunk-EHKCOBE2.js} +1 -1
- package/dist/chunk-GLXOSYBH.js +3 -0
- package/dist/chunk-HVW2AB35.js +1 -0
- package/dist/{chunk-PBLZ5W7P.js → chunk-J4S3QMK6.js} +1 -1
- package/dist/{chunk-YWGW63B3.js → chunk-MGO2ME5X.js} +1 -1
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.js +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +1 -1
- package/dist/{create-document-capture-K5PDVOGV.js → create-document-capture-OLKNUVTU.js} +1 -1
- package/dist/{create-verification-BP2L4rzV.d.cts → create-verification-D5CrT5f5.d.cts} +66 -10
- package/dist/{create-verification-Dc1Rd-4T.d.ts → create-verification-DOBYRCV_.d.ts} +66 -10
- package/dist/{icao-gate-COt4O4h_.d.ts → icao-gate-CJPTgKFb.d.ts} +1 -1
- package/dist/{icao-gate-CIXjbPCL.d.cts → icao-gate-DGtY696t.d.cts} +1 -1
- package/dist/{icao-policy-Cizs5guu.d.cts → icao-policy-Bm0rG91t.d.cts} +2 -2
- package/dist/{icao-policy-DI4kU6Mv.d.ts → icao-policy-D8domgld.d.ts} +2 -2
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/internal/index.cjs +3 -1
- package/dist/internal/index.d.cts +7 -52
- package/dist/internal/index.d.ts +7 -52
- package/dist/internal/index.js +1 -1
- package/dist/{plan-runner-AD2JTMC7.js → plan-runner-VKPRZ3AD.js} +1 -1
- package/dist/{types-Cjnp1o8i.d.cts → types-ZBcpvLdo.d.cts} +34 -23
- package/dist/{types-Cjnp1o8i.d.ts → types-ZBcpvLdo.d.ts} +34 -23
- package/package.json +1 -1
- package/sbom.cdx.json +10 -10
- package/dist/chunk-72LG73YL.js +0 -1
- package/dist/chunk-RPVI2OGR.js +0 -1
- package/dist/chunk-U3NYGTX7.js +0 -1
- package/dist/chunk-X6UIO5E3.js +0 -1
- package/dist/turnstile-F4DS2L3F.js +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { b2 as DocCatalogEntry, b3 as LiveMrzTuning, b4 as TextLockTuning, b5 as OcrEngineClient, b6 as DocAssistReport, b7 as ReadyInfo, b8 as LoadFailure, b9 as OcrEngineOptions, ba as SubmitRuntime, a4 as LivenessCaptureOptions, a3 as LivenessCaptureHandle, aN as VerificationStep, aL as VerificationResult, aC as StepSnapshot, $ as LivePhotoGateUpdate, bb as HostedClientLike } from '../create-verification-D5CrT5f5.cjs';
|
|
2
|
+
export { bc as ANALYSIS_LONG_EDGE, bd as ASPECT_BANDS, be as AttestationError, bf as BLUR_REFUSE_SHARPNESS_MAX, bg as BlurStatus, bh as CAPTURE_CANDIDATE_SPACING_MS, bi as CAPTURE_EXTRA_CANDIDATES, bj as CHALLENGE_EXECUTE_TIMEOUT_MS, bk as CHALLENGE_READY_TIMEOUT_MS, bl as CLIP_MIME_ALLOWLIST, bm as CaptureEngine, bn as CaptureSessionDoc, bo as CaptureSessionDocEvents, bp as CaptureSessionDocOptions, bq as ChallengeAction, br as ChallengeError, m as ChallengeErrorCode, bs as DOC_ANALYSIS_DEFAULTS, bt as DOC_BLACK_FRAME_LUMA, bu as DOC_BLACK_FRAME_TICKS, bv as DOC_CADENCE_HZ, bw as DOC_CAMERA_TUNING_DEFAULTS, bx as DOC_CATALOG, by as DOC_DETECT_WIDTH, bz as DOC_FEEDBACK_STATES, bA as DOC_FIRST_FRAME_MS, bB as DOC_GATE_V1_DEFAULTS, bC as DOC_SHUTTER_DEFAULTS, bD as DeviceReadHint, bE as DocArtifacts, bF as DocAssist, bG as DocAssistEngine, bH as DocAssistTick, bI as DocCameraTuning, bJ as DocCaptureReport, bK as DocCaptureVia, bL as DocChecksPayload, bM as DocEngineLike, bN as DocFeedbackAggregator, bO as DocFeedbackKey, bP as DocFeedbackState, bQ as DocFormat, bR as DocFrameAnalysis, bS as DocFrameMeasures, bT as DocGateQuality, bU as DocGateThresholds, bV as DocGateTick, bW as DocGateTickInput, bX as DocGateV1, bY as DocQuad, bZ as DocQuadPoint, b_ as DocShutterReason, b$ as DocShutterTuning, c0 as DocSide, c1 as DocumentCaptureController, c2 as DocumentCaptureInternals, c3 as EMPTY_GUIDE_METRICS, c4 as EncodedDocument, c5 as ExecuteChallengeOptions, c6 as FLIP_FILL_MIN, c7 as FLIP_GAP_MS, c8 as FLIP_TIMEOUT_MS, c9 as FocusCaps, ca as FramingStatus, cb as GUIDE_LOCK_DEFAULTS, cc as GlareStatus, cd as GrabbedFrame, ce as GuideBlocker, cf as GuideLock, cg as GuideLockTick, ch as GuideLockTuning, ci as GuideMetrics, cj as GuideRect, ck as INFERENCE_RETRY_ATTEMPTS, cl as INFERENCE_RETRY_DEFAULT_S, X as ISSUER_CODES, cm as LANDMARKER_MODEL, cn as LENS_STORAGE_KEY, co as LIVE_MRZ_DEFAULTS, cp as LIVE_PHOTO_IDLE_MS, cq as LIVE_PHOTO_MAX_HZ, cr as LandmarkedFace, cs as LandmarkerLike, ct as LensSource, cu as LightingStatus, cv as LiveMrzCapture, cw as LiveMrzState, cx as LivePhotoGate, cy as LivePhotoKit, cz as LivePhotoKitInternals, cA as LivePhotoKitOptions, cB as LivePhotoStill, cC as LivenessCaptureInternalHandle, cD as LivenessCaptureInternals, cE as LivenessFlowDeps, cF as LivenessFlowOutcome, cG as MANUAL_SHUTTER_MS, cH as MR_DOC_CATALOG, cI as NO_REPORT_MS, cJ as OpenDocCameraDeps, cK as PORTRAIT_JPEG_QUALITY, cL as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cM as PRELOAD_BUDGET_MS, cN as PROCESSING_POLL_DELAY_MS, cO as PROCESSING_POLL_MAX, cP as PortraitCaptureController, cQ as PortraitCaptureInternals, cR as REGISTRY_RETRY_DELAY_MS, cS as ReticleType, cT as SAME_FACE_MAX_DROPS, cU as ScanEvent, cV as ScanLayout, cW as ScanNotice, cX as ScanPhase, cY as ScanReport, cZ as ScanSide, c_ as ScanState, c$ as SubmitExecutor, d0 as TEXT_LOCK_DEFAULTS, d1 as TRANSPORT_REPLAY_ATTEMPTS, d2 as TRANSPORT_REPLAY_DELAY_MS, d3 as VerificationInternals, d4 as analyzeDocFrame, d5 as analyzeGuide, d6 as aspectBand, d7 as aspectFits, d8 as buildDeviceReadHint, d9 as coverPointToVideo, da as createDocumentCaptureInternal, db as createFaceLandmarker, dc as createLivePhotoKit, dd as createLivenessCaptureInternal, de as createPortraitCaptureInternal, df as createVerificationInternal, dg as docZoomFor, dh as encodeDocumentImage, di as executeChallenge, dj as facesOf, dk as feedbackVoteOf, dl as focusOk, dm as guideQuad, dn as guideRegionInFrame, dp as initialScanState, dq as mapEngineState, dr as mapErrorKind, ds as mapGuidanceHint, dt as nextScanState, du as observePortraitFrame, dv as openDocCamera, dw as passportBandOf, dx as portraitMatchStep, dy as preloadedDetectorFactory, dz as quadAreaFrac, dA as quadBounds, dB as quadIou, dC as quadTiltRatio, dD as randomUuid, dE as readStoredLens, dF as resetChallengeFrameForTests, dG as resetLivenessAssetsForTests, dH as resolveDocCameraTuning, dI as resolveDocShutterTuning, dJ as resolveGuideLockTuning, dK as runLivenessFlow, dL as runSubmission, dM as scannerFormatFor, dN as setPreloadLoaderForTests, dO as settledHint, dP as singleShotFocusAt, dQ as specularFraction, dR as supportsFocusMode, dS as warmDocDetector, dT as writeStoredLens } from '../create-verification-D5CrT5f5.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 { T as HostedSessionView, h as CheckType, ao as PlanStepView } from '../types-ZBcpvLdo.cjs';
|
|
5
|
+
export { b0 as ICAO_FALLBACK, aW as IcaoCaptureTuning, b1 as IcaoProfile, b2 as ResolvedIcaoTuning, b3 as resolveIcaoTuning } from '../types-ZBcpvLdo.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-DGtY696t.cjs';
|
|
7
7
|
import '../detect-worker-CHqsPJoM.cjs';
|
|
8
|
-
import '../capture-session-v3-
|
|
8
|
+
import '../capture-session-v3-BoGn8vLv.cjs';
|
|
9
9
|
|
|
10
10
|
/** At most this many ranked lenses are tried (each costs a camera reopen). */
|
|
11
11
|
declare const LENS_TRY_MAX = 3;
|
|
@@ -365,51 +365,6 @@ interface ResultOptions {
|
|
|
365
365
|
previous?: HostedSessionView;
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
-
declare const TURNSTILE_SCRIPT_SRC = "https://challenges.cloudflare.com/turnstile/v0/api.js";
|
|
369
|
-
/**
|
|
370
|
-
* Bound on a single execute round-trip (challenge fetch + solve). A healthy
|
|
371
|
-
* invisible challenge settles in a few seconds; a stalled one is retried once by
|
|
372
|
-
* the liveness submission, so a stall costs about this long, not a full minute.
|
|
373
|
-
*/
|
|
374
|
-
declare const TURNSTILE_EXECUTE_TIMEOUT_MS = 10000;
|
|
375
|
-
interface TurnstileRenderParams {
|
|
376
|
-
sitekey: string;
|
|
377
|
-
callback: (token: string) => void;
|
|
378
|
-
"error-callback"?: (code?: string) => void;
|
|
379
|
-
execution?: "render" | "execute";
|
|
380
|
-
appearance?: "always" | "execute" | "interaction-only";
|
|
381
|
-
}
|
|
382
|
-
/** The subset of the Turnstile JS API this module uses. */
|
|
383
|
-
interface TurnstileApi {
|
|
384
|
-
render(container: HTMLElement, params: TurnstileRenderParams): string | undefined;
|
|
385
|
-
execute(widgetId: string): void;
|
|
386
|
-
reset(widgetId: string): void;
|
|
387
|
-
remove(widgetId: string): void;
|
|
388
|
-
}
|
|
389
|
-
/** Test-only: reset the module singletons between cases. */
|
|
390
|
-
declare function resetTurnstileForTests(): void;
|
|
391
|
-
/** Load the Turnstile script once (singleton; a load failure resets it so a
|
|
392
|
-
* retry can re-attempt). */
|
|
393
|
-
declare function loadTurnstile(): Promise<TurnstileApi>;
|
|
394
|
-
/** Options of {@link executeTurnstile}. */
|
|
395
|
-
interface ExecuteTurnstileOptions {
|
|
396
|
-
/** Bound on the challenge round-trip; default {@link TURNSTILE_EXECUTE_TIMEOUT_MS}. */
|
|
397
|
-
timeoutMs?: number;
|
|
398
|
-
/**
|
|
399
|
-
* Aborts the challenge: the promise rejects and the widget, its container and
|
|
400
|
-
* the timeout are cleaned up at once. `createVerification().destroy()` passes
|
|
401
|
-
* its own signal so a torn-down verification never leaves a widget behind.
|
|
402
|
-
*/
|
|
403
|
-
signal?: AbortSignal;
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* Run one invisible execute-mode challenge on the kept widget and resolve its
|
|
407
|
-
* token. Rejects on challenge error, on `signal` abort, or after
|
|
408
|
-
* {@link TURNSTILE_EXECUTE_TIMEOUT_MS} — the verification maps a failure to
|
|
409
|
-
* `result {status:'unavailable', reason:'attestation'}` after one retry.
|
|
410
|
-
*/
|
|
411
|
-
declare function executeTurnstile(siteKey: string, opts?: ExecuteTurnstileOptions): Promise<string>;
|
|
412
|
-
|
|
413
368
|
/**
|
|
414
369
|
* Face of a decoded still: an MRZ band means the verso. With `cardOnly` (the still is the card itself) the band must
|
|
415
370
|
* sit in its lower half, where a card's MRZ is: the line of print across a recto's top (the issuing state) is not one.
|
|
@@ -488,4 +443,4 @@ declare function measureRegionSharpness(image: RawImage, region: StillRegion | n
|
|
|
488
443
|
*/
|
|
489
444
|
declare function measureBitmapSharpness(bitmap: ImageBitmap, region: StillRegion | null): number;
|
|
490
445
|
|
|
491
|
-
export { type AcceptedDocumentsLike, type BrowserFamily, DOCUMENT_TYPE_ORDER, DocAssistReport, DocCatalogEntry, type DocumentTypeId,
|
|
446
|
+
export { type AcceptedDocumentsLike, type BrowserFamily, DOCUMENT_TYPE_ORDER, DocAssistReport, DocCatalogEntry, type DocumentTypeId, HostedClientLike, LENS_TRY_MAX, type LensKind, LiveMrzTuning, type LiveMrzWireReport, LoadFailure, MRZ_BAND_DEFAULTS, type MrzBand, type MrzBandThresholds, OCR_ASSET_SET, OTP_RESEND_COOLDOWN_MS, OcrEngineClient, PROCESSING_BACKOFF_MS, REGION_PAD, ReadyInfo, type RunnerDeps, SHARPNESS_LONG_EDGE, type StepRunner, type StillRegion, SubmitRuntime, TextLockTuning, WEB_OCR_ENGINE, type WebOcrPlan, type WebOcrStart, acceptedIssuers, acceptedTypesFor, browserFamily, classifyCardSide, classifyCardSideWith, createStepRunner, cropImage, detectMrzBand, flagOf, formatMismatch, frontierStep, isExecutable, isTerminalView, lensKindOf, liveMrzWireReport, mapSessionResult, measureBitmapSharpness, measureRegionSharpness, photoSharpness, rankBackCameras, resizeLongEdge, resolveAcceptedDocuments, resolveWebOcrPlan, startWebOcr, stepOf, stillRegionOf, stillToImageData };
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { b2 as DocCatalogEntry, b3 as LiveMrzTuning, b4 as TextLockTuning, b5 as OcrEngineClient, b6 as DocAssistReport, b7 as ReadyInfo, b8 as LoadFailure, b9 as OcrEngineOptions, ba as SubmitRuntime, a4 as LivenessCaptureOptions, a3 as LivenessCaptureHandle, aN as VerificationStep, aL as VerificationResult, aC as StepSnapshot, $ as LivePhotoGateUpdate, bb as HostedClientLike } from '../create-verification-DOBYRCV_.js';
|
|
2
|
+
export { bc as ANALYSIS_LONG_EDGE, bd as ASPECT_BANDS, be as AttestationError, bf as BLUR_REFUSE_SHARPNESS_MAX, bg as BlurStatus, bh as CAPTURE_CANDIDATE_SPACING_MS, bi as CAPTURE_EXTRA_CANDIDATES, bj as CHALLENGE_EXECUTE_TIMEOUT_MS, bk as CHALLENGE_READY_TIMEOUT_MS, bl as CLIP_MIME_ALLOWLIST, bm as CaptureEngine, bn as CaptureSessionDoc, bo as CaptureSessionDocEvents, bp as CaptureSessionDocOptions, bq as ChallengeAction, br as ChallengeError, m as ChallengeErrorCode, bs as DOC_ANALYSIS_DEFAULTS, bt as DOC_BLACK_FRAME_LUMA, bu as DOC_BLACK_FRAME_TICKS, bv as DOC_CADENCE_HZ, bw as DOC_CAMERA_TUNING_DEFAULTS, bx as DOC_CATALOG, by as DOC_DETECT_WIDTH, bz as DOC_FEEDBACK_STATES, bA as DOC_FIRST_FRAME_MS, bB as DOC_GATE_V1_DEFAULTS, bC as DOC_SHUTTER_DEFAULTS, bD as DeviceReadHint, bE as DocArtifacts, bF as DocAssist, bG as DocAssistEngine, bH as DocAssistTick, bI as DocCameraTuning, bJ as DocCaptureReport, bK as DocCaptureVia, bL as DocChecksPayload, bM as DocEngineLike, bN as DocFeedbackAggregator, bO as DocFeedbackKey, bP as DocFeedbackState, bQ as DocFormat, bR as DocFrameAnalysis, bS as DocFrameMeasures, bT as DocGateQuality, bU as DocGateThresholds, bV as DocGateTick, bW as DocGateTickInput, bX as DocGateV1, bY as DocQuad, bZ as DocQuadPoint, b_ as DocShutterReason, b$ as DocShutterTuning, c0 as DocSide, c1 as DocumentCaptureController, c2 as DocumentCaptureInternals, c3 as EMPTY_GUIDE_METRICS, c4 as EncodedDocument, c5 as ExecuteChallengeOptions, c6 as FLIP_FILL_MIN, c7 as FLIP_GAP_MS, c8 as FLIP_TIMEOUT_MS, c9 as FocusCaps, ca as FramingStatus, cb as GUIDE_LOCK_DEFAULTS, cc as GlareStatus, cd as GrabbedFrame, ce as GuideBlocker, cf as GuideLock, cg as GuideLockTick, ch as GuideLockTuning, ci as GuideMetrics, cj as GuideRect, ck as INFERENCE_RETRY_ATTEMPTS, cl as INFERENCE_RETRY_DEFAULT_S, X as ISSUER_CODES, cm as LANDMARKER_MODEL, cn as LENS_STORAGE_KEY, co as LIVE_MRZ_DEFAULTS, cp as LIVE_PHOTO_IDLE_MS, cq as LIVE_PHOTO_MAX_HZ, cr as LandmarkedFace, cs as LandmarkerLike, ct as LensSource, cu as LightingStatus, cv as LiveMrzCapture, cw as LiveMrzState, cx as LivePhotoGate, cy as LivePhotoKit, cz as LivePhotoKitInternals, cA as LivePhotoKitOptions, cB as LivePhotoStill, cC as LivenessCaptureInternalHandle, cD as LivenessCaptureInternals, cE as LivenessFlowDeps, cF as LivenessFlowOutcome, cG as MANUAL_SHUTTER_MS, cH as MR_DOC_CATALOG, cI as NO_REPORT_MS, cJ as OpenDocCameraDeps, cK as PORTRAIT_JPEG_QUALITY, cL as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cM as PRELOAD_BUDGET_MS, cN as PROCESSING_POLL_DELAY_MS, cO as PROCESSING_POLL_MAX, cP as PortraitCaptureController, cQ as PortraitCaptureInternals, cR as REGISTRY_RETRY_DELAY_MS, cS as ReticleType, cT as SAME_FACE_MAX_DROPS, cU as ScanEvent, cV as ScanLayout, cW as ScanNotice, cX as ScanPhase, cY as ScanReport, cZ as ScanSide, c_ as ScanState, c$ as SubmitExecutor, d0 as TEXT_LOCK_DEFAULTS, d1 as TRANSPORT_REPLAY_ATTEMPTS, d2 as TRANSPORT_REPLAY_DELAY_MS, d3 as VerificationInternals, d4 as analyzeDocFrame, d5 as analyzeGuide, d6 as aspectBand, d7 as aspectFits, d8 as buildDeviceReadHint, d9 as coverPointToVideo, da as createDocumentCaptureInternal, db as createFaceLandmarker, dc as createLivePhotoKit, dd as createLivenessCaptureInternal, de as createPortraitCaptureInternal, df as createVerificationInternal, dg as docZoomFor, dh as encodeDocumentImage, di as executeChallenge, dj as facesOf, dk as feedbackVoteOf, dl as focusOk, dm as guideQuad, dn as guideRegionInFrame, dp as initialScanState, dq as mapEngineState, dr as mapErrorKind, ds as mapGuidanceHint, dt as nextScanState, du as observePortraitFrame, dv as openDocCamera, dw as passportBandOf, dx as portraitMatchStep, dy as preloadedDetectorFactory, dz as quadAreaFrac, dA as quadBounds, dB as quadIou, dC as quadTiltRatio, dD as randomUuid, dE as readStoredLens, dF as resetChallengeFrameForTests, dG as resetLivenessAssetsForTests, dH as resolveDocCameraTuning, dI as resolveDocShutterTuning, dJ as resolveGuideLockTuning, dK as runLivenessFlow, dL as runSubmission, dM as scannerFormatFor, dN as setPreloadLoaderForTests, dO as settledHint, dP as singleShotFocusAt, dQ as specularFraction, dR as supportsFocusMode, dS as warmDocDetector, dT as writeStoredLens } from '../create-verification-DOBYRCV_.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 { T as HostedSessionView, h as CheckType, ao as PlanStepView } from '../types-ZBcpvLdo.js';
|
|
5
|
+
export { b0 as ICAO_FALLBACK, aW as IcaoCaptureTuning, b1 as IcaoProfile, b2 as ResolvedIcaoTuning, b3 as resolveIcaoTuning } from '../types-ZBcpvLdo.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-CJPTgKFb.js';
|
|
7
7
|
import '../detect-worker-CHqsPJoM.js';
|
|
8
|
-
import '../capture-session-v3-
|
|
8
|
+
import '../capture-session-v3-C0bbHvDc.js';
|
|
9
9
|
|
|
10
10
|
/** At most this many ranked lenses are tried (each costs a camera reopen). */
|
|
11
11
|
declare const LENS_TRY_MAX = 3;
|
|
@@ -365,51 +365,6 @@ interface ResultOptions {
|
|
|
365
365
|
previous?: HostedSessionView;
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
-
declare const TURNSTILE_SCRIPT_SRC = "https://challenges.cloudflare.com/turnstile/v0/api.js";
|
|
369
|
-
/**
|
|
370
|
-
* Bound on a single execute round-trip (challenge fetch + solve). A healthy
|
|
371
|
-
* invisible challenge settles in a few seconds; a stalled one is retried once by
|
|
372
|
-
* the liveness submission, so a stall costs about this long, not a full minute.
|
|
373
|
-
*/
|
|
374
|
-
declare const TURNSTILE_EXECUTE_TIMEOUT_MS = 10000;
|
|
375
|
-
interface TurnstileRenderParams {
|
|
376
|
-
sitekey: string;
|
|
377
|
-
callback: (token: string) => void;
|
|
378
|
-
"error-callback"?: (code?: string) => void;
|
|
379
|
-
execution?: "render" | "execute";
|
|
380
|
-
appearance?: "always" | "execute" | "interaction-only";
|
|
381
|
-
}
|
|
382
|
-
/** The subset of the Turnstile JS API this module uses. */
|
|
383
|
-
interface TurnstileApi {
|
|
384
|
-
render(container: HTMLElement, params: TurnstileRenderParams): string | undefined;
|
|
385
|
-
execute(widgetId: string): void;
|
|
386
|
-
reset(widgetId: string): void;
|
|
387
|
-
remove(widgetId: string): void;
|
|
388
|
-
}
|
|
389
|
-
/** Test-only: reset the module singletons between cases. */
|
|
390
|
-
declare function resetTurnstileForTests(): void;
|
|
391
|
-
/** Load the Turnstile script once (singleton; a load failure resets it so a
|
|
392
|
-
* retry can re-attempt). */
|
|
393
|
-
declare function loadTurnstile(): Promise<TurnstileApi>;
|
|
394
|
-
/** Options of {@link executeTurnstile}. */
|
|
395
|
-
interface ExecuteTurnstileOptions {
|
|
396
|
-
/** Bound on the challenge round-trip; default {@link TURNSTILE_EXECUTE_TIMEOUT_MS}. */
|
|
397
|
-
timeoutMs?: number;
|
|
398
|
-
/**
|
|
399
|
-
* Aborts the challenge: the promise rejects and the widget, its container and
|
|
400
|
-
* the timeout are cleaned up at once. `createVerification().destroy()` passes
|
|
401
|
-
* its own signal so a torn-down verification never leaves a widget behind.
|
|
402
|
-
*/
|
|
403
|
-
signal?: AbortSignal;
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* Run one invisible execute-mode challenge on the kept widget and resolve its
|
|
407
|
-
* token. Rejects on challenge error, on `signal` abort, or after
|
|
408
|
-
* {@link TURNSTILE_EXECUTE_TIMEOUT_MS} — the verification maps a failure to
|
|
409
|
-
* `result {status:'unavailable', reason:'attestation'}` after one retry.
|
|
410
|
-
*/
|
|
411
|
-
declare function executeTurnstile(siteKey: string, opts?: ExecuteTurnstileOptions): Promise<string>;
|
|
412
|
-
|
|
413
368
|
/**
|
|
414
369
|
* Face of a decoded still: an MRZ band means the verso. With `cardOnly` (the still is the card itself) the band must
|
|
415
370
|
* sit in its lower half, where a card's MRZ is: the line of print across a recto's top (the issuing state) is not one.
|
|
@@ -488,4 +443,4 @@ declare function measureRegionSharpness(image: RawImage, region: StillRegion | n
|
|
|
488
443
|
*/
|
|
489
444
|
declare function measureBitmapSharpness(bitmap: ImageBitmap, region: StillRegion | null): number;
|
|
490
445
|
|
|
491
|
-
export { type AcceptedDocumentsLike, type BrowserFamily, DOCUMENT_TYPE_ORDER, DocAssistReport, DocCatalogEntry, type DocumentTypeId,
|
|
446
|
+
export { type AcceptedDocumentsLike, type BrowserFamily, DOCUMENT_TYPE_ORDER, DocAssistReport, DocCatalogEntry, type DocumentTypeId, HostedClientLike, LENS_TRY_MAX, type LensKind, LiveMrzTuning, type LiveMrzWireReport, LoadFailure, MRZ_BAND_DEFAULTS, type MrzBand, type MrzBandThresholds, OCR_ASSET_SET, OTP_RESEND_COOLDOWN_MS, OcrEngineClient, PROCESSING_BACKOFF_MS, REGION_PAD, ReadyInfo, type RunnerDeps, SHARPNESS_LONG_EDGE, type StepRunner, type StillRegion, SubmitRuntime, TextLockTuning, WEB_OCR_ENGINE, type WebOcrPlan, type WebOcrStart, acceptedIssuers, acceptedTypesFor, browserFamily, classifyCardSide, classifyCardSideWith, createStepRunner, cropImage, detectMrzBand, flagOf, formatMismatch, frontierStep, isExecutable, isTerminalView, lensKindOf, liveMrzWireReport, mapSessionResult, measureBitmapSharpness, measureRegionSharpness, photoSharpness, rankBackCameras, resizeLongEdge, resolveAcceptedDocuments, resolveWebOcrPlan, startWebOcr, stepOf, stillRegionOf, stillToImageData };
|
package/dist/internal/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as me,d as _e,e as Le,h as
|
|
1
|
+
import{c as me,d as _e,e as Le,h as le,i as ce,j as Se}from"../chunk-6XXMWK72.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-MGO2ME5X.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-HVW2AB35.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-24F6JCVH.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-MXWLCDFX.js";import{a as De,b as Pe,c as de,d as Me,e as Fe,f as Ne}from"../chunk-TDLIXFDT.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,s as Oe}from"../chunk-GLXOSYBH.js";import{A as u,B as D,i as c,j as S,k as R,l as y,o as T,u as f,v as C,w as A,x as O,y as x,z as I}from"../chunk-4ESM6SSR.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-DIKSFEYQ.js";import"../chunk-7QZWBDI5.js";import"../chunk-J4S3QMK6.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-7HV77AOV.js";import{c as e,d as t,f as r,g as o,h as p}from"../chunk-TSA6GHUG.js";import"../chunk-EHKCOBE2.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,Fe 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,Me 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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as Z}from"./chunk-A3FUGHAH.js";import{a as Q,b as J,e as X,f as E,g as R,j as Y}from"./chunk-U3NYGTX7.js";import{x as $}from"./chunk-YWGW63B3.js";import{n as W}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 N,i as z,x as K}from"./chunk-LFMIFR6T.js";import"./chunk-G6LKLN4U.js";import"./chunk-SMKCBUJL.js";import"./chunk-MXWLCDFX.js";import"./chunk-TDLIXFDT.js";import{b as O,c as B,q as G,s as j,t as F}from"./chunk-X6UIO5E3.js";import"./chunk-5DTWBDCP.js";import"./chunk-7QZWBDI5.js";import"./chunk-PBLZ5W7P.js";import"./chunk-SX7TUC3V.js";import"./chunk-POIQGEZM.js";import"./chunk-CPUECYAJ.js";import"./chunk-FPXL63KZ.js";import{c as C,i as q}from"./chunk-JWEHH2MS.js";import"./chunk-TSA6GHUG.js";import{a as H}from"./chunk-JYU5YHXN.js";import"./chunk-FSSMUAKC.js";import"./chunk-DFTCAWMP.js";import"./chunk-DK5YPBDQ.js";var re=2e4,oe=new Set(["media_type_unsupported","media_type_mismatch"]),ee=new Set(["document_upload_not_allowed","portrait_source_not_allowed","uploaded_media_not_allowed"]);function te(e){let c=null,m=Promise.resolve(),d=!1,w=null,M=null,h=!1,D=null,g=!1,_=!1,k=()=>{c?.controller.handle.destroy(),c=null},v=()=>{let t=e.currentView(),r=t===null?null:R(t,{isMobile:e.isMobile()});return r?.kind==="portrait"?r:null},S=()=>{if(e.destroyed())return"self";let t=e.currentView(),r=t===null?void 0:E(t);return r==="self"||r==="assisted"?r:r==="choice"&&e.captureModeSwitch!==void 0?e.captureModeSwitch.pick()??"self":e.cameraMode?.()??j(r??G(t),null)},I=e.captureModeSwitch,x=I===void 0?void 0:{session:()=>{let t=e.currentView();return t!==null&&E(t)==="choice"?"choice":S()},onModeChange:t=>I.choose(t)},T=async(t,r)=>{if(e.destroyed())return;let u=S();r.setFlowState("uploading"),d=!1;let n=null;try{await e.runner().submit("portrait_icao",async(s,y)=>{if(n===null){let f=await F(s,"image","image/jpeg",t.image.size,{engine:"portrait"});await s.uploadToSpaces(f.uploadUrl,t.image,"image/jpeg"),n=(await s.completeMedia(f.key)).key}r.setFlowState("checking");let b={media:{portrait:n},gate:q(t.gate),...t.tuningVersion!==void 0?{tuningVersion:t.tuningVersion}:{},source:"camera",capture:{mode:u,facingMode:t.facingMode}};return s.submitCheck("portrait_icao",b,{idempotencyKey:y})})}catch(s){d=!0,s instanceof C&&ee.has(s.code)&&await e.refreshView?.().catch(()=>{})}if(r.setFlowState("done"),e.destroyed())return;let o=v();(o===null||o.phase!=="capture")&&c?.controller===r&&k(),e.runner().republish()},L=t=>e.runner().submit("face_match",(r,u)=>r.submitCheck("face_match",e.runner().faceProbeSkipped()?{simulatedCapture:!0}:{},{idempotencyKey:u})).then(()=>{},()=>{d=!0,t()}),P=null,V=async t=>{let r=v();if(r===null||r.phase!=="capture"||!r.photo.uploadOffered)throw new RangeError("upload_not_offered");let{prepareUploadFile:u}=await import("./upload-file-UYXOHCRG.js"),n=await u(t,e.uploadInternals);if(e.destroyed())return;k(),d=!1;let o=null;try{await e.runner().submit("portrait_icao",async(s,y)=>{if(o===null){let f=await s.presign("image",n.contentType,n.blob.size,{source:"upload"});await s.uploadToSpaces(f.uploadUrl,n.blob,n.contentType),o=(await s.completeMedia(f.key)).key}let b={media:{portrait:o},source:"upload"};return s.submitCheck("portrait_icao",b,{idempotencyKey:y})})}catch(s){throw s instanceof C&&oe.has(s.code)?new TypeError("unsupported_file"):(s instanceof C&&ee.has(s.code)&&await e.refreshView?.().catch(()=>{}),s)}},i=null,l=t=>{if(i!==null)return i;let r=v();if(r===null||r.phase!=="review")return Promise.reject(new RangeError("no_pending_fix"));let u={fixReview:{accept:t}},n=e.runner().submit("portrait_icao",(o,s)=>o.submitCheck("portrait_icao",u,{idempotencyKey:s})).catch(async o=>{throw o instanceof C&&o.code==="portrait_no_pending_fix"&&await e.refreshView?.().catch(()=>{}),o}).finally(()=>{i=null});return i=n,n},a=t=>{let r=()=>V(t),u=(P===null?r():P.then(r,r)).finally(()=>{P===u&&(P=null)});return P=u,u};return{bind:(t,r)=>{if(t.phase==="review")return k(),{...t,uploadFailed:d,resubmit:()=>Promise.resolve(),capture:()=>{throw new Error("the adjusted photo waits for confirmFix()")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:l};if(t.phase==="match")return k(),w!==t.attemptsRemaining&&!d&&(w=t.attemptsRemaining,L(r)),{...t,uploadFailed:d,resubmit:()=>(d=!1,w=t.attemptsRemaining,r(),L(r)),capture:()=>{throw new Error("the portrait was already accepted")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:l};if(w=null,t.reuse===!0&&t.phase==="capture")return k(),!g&&D!==t.attemptsRemaining&&(D=t.attemptsRemaining,g=!0,e.runner().submit("portrait_icao",(n,o)=>n.submitCheck("portrait_icao",{},{idempotencyKey:o})).then(()=>{_=!1},()=>{_=!0}).finally(()=>{g=!1,r()})),{kind:"processing",key:"processing",context:t.context,section:t.section,stalled:_&&!g,refresh:()=>(_=!1,D=null,r(),Promise.resolve())};let u=e.keptPortraitInput?.()??null;return u!==null&&(h||u!==M&&t.report===null&&t.reason===void 0&&!t.retakeOnly)?(h||(M=u,h=!0,e.runner().submit("portrait_icao",(n,o)=>n.submitCheck("portrait_icao",u,{idempotencyKey:o})).catch(()=>{}).finally(()=>{h=!1,r()})),{kind:"processing",key:"processing",context:t.context,section:t.section,stalled:!1,refresh:()=>Promise.resolve()}):{...t,uploadFailed:d,resubmit:()=>Promise.resolve(),capture:n=>{if(c!==null&&c.video===n.video)return c.controller.handle;k(),d=!1;let o=W({video:n.video,tuning:t.tuning,tuningVersion:t.tuningVersion,...t.icao!=null?{policy:t.icao.policy}:{},...n.keepScreenAwake!==void 0?{keepScreenAwake:n.keepScreenAwake}:{},...n.assetBaseUrl!==void 0?{assetBaseUrl:n.assetBaseUrl}:{}},e.internals,S,x);c={video:n.video,controller:o};let s=o.handle.destroy;o.handle.destroy=()=>{c?.controller===o&&(c=null),s()},o.handle.on("error",f=>{e.reportCaptureIssue?.(O("portrait",f,0))});let y=!1,b=(f,U)=>{let A=o.gateScores();A!==null&&e.reportGate?.({kind:"portrait_gate",platform:"web",outcome:f,...U!==null?{failing:U}:{},...A})};return o.handle.on("gate",f=>{!y&&!f.ready&&(o.gateScores()?.elapsedMs??0)>=re&&(y=!0,b("stuck",f.failing))}),o.handle.on("captured",f=>{b("captured",null),y=!1,m=m.then(()=>T(f,o)).catch(()=>{})}),o.handle},uploadPortrait:a,confirmFix:l}},destroy:k}}function ne(e){let c=e;if(typeof c.apiOrigin!="string"||typeof c.sessionToken!="string")return;let m=`${c.apiOrigin}/api/v2/hosted/capture-reports`,d=c.sessionToken;return w=>{try{fetch(m,{method:"POST",headers:{"content-type":"application/json","x-session-token":d,"x-sekyro-sdk":`@sekyro/web/${H}`},body:JSON.stringify({reports:w}),keepalive:!0}).catch(()=>{})}catch{}}}function ie(e){let c=e.apiOrigin;return Z("sdk",typeof c=="string"&&/staging|sandbox|localhost/.test(c)?"sandbox":"live")}function Me(e){let c=null,m=null,d=null,w=B(),M=Promise.resolve(),h=()=>{d?.flow.handle.destroy(),d=null},D=async(i,l)=>{if(e.destroyed())return;l.setFlowState("uploading");let a=null,p,t=!1,r=e.currentView()?.documents!==void 0;try{await c.submit("doc_ocr",async(y,b)=>{if(a===null){let f=await F(y,"image","image/jpeg",i.image.size,{engine:"document"});await y.uploadToSpaces(f.uploadUrl,i.image,"image/jpeg"),a=(await y.completeMedia(f.key)).key}return l.setFlowState("checking"),p===void 0&&(p=l.takeDeviceRead(i)),y.submitCheck("doc_ocr",{imageKey:a,side:i.side,...p!==null?{deviceRead:p}:{},...r?{source:"camera"}:{}},{idempotencyKey:b})})}catch{t=!0}finally{l.setFlowState("done")}if(e.destroyed())return;if(t){l.settle(i.side,{ok:!1,issue:"technical"});return}let u=e.currentView(),n=u===null?null:R(u,{isMobile:e.isMobile()});if(n?.kind!=="document"){l.settle(i.side,{ok:!0}),d?.flow===l?h():l.handle.destroy();return}if(n.reason==="document_type_not_accepted"){m=null,d?.flow===l&&h(),c.republish();return}let o=n.acceptedSides;i.side!=="single"&&(o.includes(i.side)||n.reason==="side_missing")&&!(o.includes("recto")&&o.includes("verso"))?(l.settle(i.side,{ok:!0}),m?.documentType!=="passport"&&l.handle.setSide(n.side)):l.settle(i.side,{ok:!1,issue:"reread"})},g=null,_=async i=>{let l=e.currentView(),a=l===null?null:R(l,{isMobile:e.isMobile()});if(l===null||a?.kind!=="document")throw new RangeError("upload_not_offered");if(!a.photo.uploadOffered)throw new RangeError("upload_not_offered");let p=m?.documentType==="passport"?"single":a.side,{prepareUploadFile:t}=await import("./upload-file-UYXOHCRG.js"),r=await t(i,e.uploadInternals);if(e.destroyed())return;h();let u=null;try{await c.submit("doc_ocr",async(n,o)=>{if(u===null){let s=await n.presign("image",r.contentType,r.blob.size,{source:"upload"});await n.uploadToSpaces(s.uploadUrl,r.blob,r.contentType),u=(await n.completeMedia(s.key)).key}return n.submitCheck("doc_ocr",{imageKey:u,side:p,source:"upload"},{idempotencyKey:o})})}catch(n){throw n instanceof C&&(n.code==="media_type_unsupported"||n.code==="media_type_mismatch")?new TypeError("unsupported_file"):(n instanceof C&&(n.code==="document_upload_not_allowed"||n.code==="uploaded_media_not_allowed")&&await e.refreshView().catch(()=>{}),n)}},k=(i,l)=>({...i,uploadDocument:a=>{let p=()=>_(a),t=(g===null?p():g.then(p,p)).finally(()=>{g===t&&(g=null)});return g=t,t},issuer:m?.issuer??null,documentType:m?.documentType??null,captureSide:m===null?null:m.documentType==="passport"?"single":i.side,selectDocument:(a,p)=>{if(!J(i.documents).includes(a)||!Q(i.documents,a).includes(p))throw new RangeError(`${p} from ${a} is not accepted`);(m?.issuer!==a||m.documentType!==p)&&h(),m={issuer:a,documentType:p},l()},capture:a=>{if(m===null)throw new Error("selectDocument() first");if(d!==null&&d.video===a.video)return d.flow.handle;h();let p=m,t=p.documentType==="passport"?"single":i.acceptedSides.length>0?i.side:void 0,r=$({video:a.video,documentType:p.documentType,issuer:p.issuer,...t!==void 0?{side:t}:{},...a.keepScreenAwake!==void 0?{keepScreenAwake:a.keepScreenAwake}:{},...a.liveMrz!==void 0?{liveMrz:a.liveMrz}:{}},{...e.documentInternals??{},...(()=>{let n=e.currentView()?.capture?.document,o=e.documentInternals?.blurRefuseSharpnessMax??n?.scan?.blurRefuseSharpnessMax;return{engineOptions:{camera:z(n?.camera),shutter:N(n?.scan),guideLock:K(n?.guide),...e.documentInternals?.engineOptions??{}},...typeof o=="number"&&Number.isFinite(o)&&o>=0&&o<=1?{blurRefuseSharpnessMax:o}:{}}})(),deferRead:!0,...(()=>{let n=e.currentView();if(n===null||e.documentInternals?.webOcr!==void 0)return{};let o=ne(e.runtime.client);return{webOcr:{captureDocument:n.capture?.document,salt:n.sessionId,baseUrl:ie(e.runtime.client),...o!==void 0?{reports:o}:{}}}})()});d={video:a.video,flow:r};let u=r.handle.destroy;return r.handle.destroy=()=>{d?.flow===r&&(d=null),u()},w.newHandle(),r.handle.on("state",n=>w.note(n)),r.handle.on("error",n=>{w.noteError(),e.reportCaptureIssue?.(O("document",n,w.value))}),r.handle.on("captured",n=>{M=M.then(()=>D(n,r)).catch(()=>{})}),r.handle}}),v=null,S=null,I=new Set,x=e.runtime.client;e.runtime.client=new Proxy(x,{get(i,l){if(l==="submitCheck")return(S??i).submitCheck.bind(S??i);let a=Reflect.get(i,l);return typeof a=="function"?a.bind(i):a}});let T=()=>{v?.destroy(),v=null,S=null},L=i=>{let l=e.currentView(),a=l===null?null:R(l,{isMobile:e.isMobile()});if(l===null||a?.kind!=="liveness"||a.livePhoto?.icao!==!0)return;if(v===null){let u=X({tuning:l.capture?.icao??null,tuningVersion:l.capture?.tuningVersion??null,...a.icao!=null?{policy:a.icao.policy}:{},still:a.livePhoto.still,...i.assetBaseUrl!==void 0?{assetBaseUrl:i.assetBaseUrl}:{}},e.livePhotoInternals);v=u,S=u.decorate(x),u.onGate(n=>{for(let o of I)o(n)})}let p=v,t=e.baseCapture??{},r=t.engineOptions?.telemetry;return{...t,engineOptions:{...t.engineOptions??{},measureQuality:p.engineOptions.measureQuality,telemetry:u=>{r?.(u),p.engineOptions.telemetry(u)}}}},P=te({keptPortraitInput:()=>v?.lastPortraitInput()??null,runner:()=>c,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:i=>ne(e.runtime.client)?.([i])}),V=Y({...e,bindDocument:k,bindPortrait:P.bind,stopCameras:()=>{h(),P.destroy(),T(),e.stopLiveness?.()},onLivePhoto:i=>(I.add(i),()=>I.delete(i))});return c=V,{...V,captureInternals:L,destroy:()=>{h(),P.destroy(),T(),I.clear()}}}export{Me as createPlanRunner,ne as reportSink,ie as sdkAssetBase};
|
|
1
|
+
import{e as Z}from"./chunk-A3FUGHAH.js";import{a as Q,b as J,e as X,f as E,g as R,j as Y}from"./chunk-6XXMWK72.js";import{x as $}from"./chunk-MGO2ME5X.js";import{n as W}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 N,i as z,x as K}from"./chunk-24F6JCVH.js";import"./chunk-G6LKLN4U.js";import"./chunk-SMKCBUJL.js";import"./chunk-MXWLCDFX.js";import"./chunk-TDLIXFDT.js";import{b as O,c as B,q as G,s as j,t as F}from"./chunk-4ESM6SSR.js";import"./chunk-DIKSFEYQ.js";import"./chunk-7QZWBDI5.js";import"./chunk-J4S3QMK6.js";import"./chunk-SX7TUC3V.js";import"./chunk-POIQGEZM.js";import"./chunk-CPUECYAJ.js";import"./chunk-FPXL63KZ.js";import{c as C,i as q}from"./chunk-7HV77AOV.js";import"./chunk-TSA6GHUG.js";import{a as H}from"./chunk-EHKCOBE2.js";import"./chunk-FSSMUAKC.js";import"./chunk-DFTCAWMP.js";import"./chunk-DK5YPBDQ.js";var re=2e4,oe=new Set(["media_type_unsupported","media_type_mismatch"]),ee=new Set(["document_upload_not_allowed","portrait_source_not_allowed","uploaded_media_not_allowed"]);function te(e){let c=null,m=Promise.resolve(),d=!1,w=null,M=null,h=!1,D=null,g=!1,_=!1,k=()=>{c?.controller.handle.destroy(),c=null},v=()=>{let t=e.currentView(),r=t===null?null:R(t,{isMobile:e.isMobile()});return r?.kind==="portrait"?r:null},S=()=>{if(e.destroyed())return"self";let t=e.currentView(),r=t===null?void 0:E(t);return r==="self"||r==="assisted"?r:r==="choice"&&e.captureModeSwitch!==void 0?e.captureModeSwitch.pick()??"self":e.cameraMode?.()??j(r??G(t),null)},I=e.captureModeSwitch,x=I===void 0?void 0:{session:()=>{let t=e.currentView();return t!==null&&E(t)==="choice"?"choice":S()},onModeChange:t=>I.choose(t)},T=async(t,r)=>{if(e.destroyed())return;let u=S();r.setFlowState("uploading"),d=!1;let n=null;try{await e.runner().submit("portrait_icao",async(s,y)=>{if(n===null){let f=await F(s,"image","image/jpeg",t.image.size,{engine:"portrait"});await s.uploadToSpaces(f.uploadUrl,t.image,"image/jpeg"),n=(await s.completeMedia(f.key)).key}r.setFlowState("checking");let b={media:{portrait:n},gate:q(t.gate),...t.tuningVersion!==void 0?{tuningVersion:t.tuningVersion}:{},source:"camera",capture:{mode:u,facingMode:t.facingMode}};return s.submitCheck("portrait_icao",b,{idempotencyKey:y})})}catch(s){d=!0,s instanceof C&&ee.has(s.code)&&await e.refreshView?.().catch(()=>{})}if(r.setFlowState("done"),e.destroyed())return;let o=v();(o===null||o.phase!=="capture")&&c?.controller===r&&k(),e.runner().republish()},L=t=>e.runner().submit("face_match",(r,u)=>r.submitCheck("face_match",e.runner().faceProbeSkipped()?{simulatedCapture:!0}:{},{idempotencyKey:u})).then(()=>{},()=>{d=!0,t()}),P=null,V=async t=>{let r=v();if(r===null||r.phase!=="capture"||!r.photo.uploadOffered)throw new RangeError("upload_not_offered");let{prepareUploadFile:u}=await import("./upload-file-UYXOHCRG.js"),n=await u(t,e.uploadInternals);if(e.destroyed())return;k(),d=!1;let o=null;try{await e.runner().submit("portrait_icao",async(s,y)=>{if(o===null){let f=await s.presign("image",n.contentType,n.blob.size,{source:"upload"});await s.uploadToSpaces(f.uploadUrl,n.blob,n.contentType),o=(await s.completeMedia(f.key)).key}let b={media:{portrait:o},source:"upload"};return s.submitCheck("portrait_icao",b,{idempotencyKey:y})})}catch(s){throw s instanceof C&&oe.has(s.code)?new TypeError("unsupported_file"):(s instanceof C&&ee.has(s.code)&&await e.refreshView?.().catch(()=>{}),s)}},i=null,l=t=>{if(i!==null)return i;let r=v();if(r===null||r.phase!=="review")return Promise.reject(new RangeError("no_pending_fix"));let u={fixReview:{accept:t}},n=e.runner().submit("portrait_icao",(o,s)=>o.submitCheck("portrait_icao",u,{idempotencyKey:s})).catch(async o=>{throw o instanceof C&&o.code==="portrait_no_pending_fix"&&await e.refreshView?.().catch(()=>{}),o}).finally(()=>{i=null});return i=n,n},a=t=>{let r=()=>V(t),u=(P===null?r():P.then(r,r)).finally(()=>{P===u&&(P=null)});return P=u,u};return{bind:(t,r)=>{if(t.phase==="review")return k(),{...t,uploadFailed:d,resubmit:()=>Promise.resolve(),capture:()=>{throw new Error("the adjusted photo waits for confirmFix()")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:l};if(t.phase==="match")return k(),w!==t.attemptsRemaining&&!d&&(w=t.attemptsRemaining,L(r)),{...t,uploadFailed:d,resubmit:()=>(d=!1,w=t.attemptsRemaining,r(),L(r)),capture:()=>{throw new Error("the portrait was already accepted")},uploadPortrait:()=>Promise.reject(new RangeError("upload_not_offered")),confirmFix:l};if(w=null,t.reuse===!0&&t.phase==="capture")return k(),!g&&D!==t.attemptsRemaining&&(D=t.attemptsRemaining,g=!0,e.runner().submit("portrait_icao",(n,o)=>n.submitCheck("portrait_icao",{},{idempotencyKey:o})).then(()=>{_=!1},()=>{_=!0}).finally(()=>{g=!1,r()})),{kind:"processing",key:"processing",context:t.context,section:t.section,stalled:_&&!g,refresh:()=>(_=!1,D=null,r(),Promise.resolve())};let u=e.keptPortraitInput?.()??null;return u!==null&&(h||u!==M&&t.report===null&&t.reason===void 0&&!t.retakeOnly)?(h||(M=u,h=!0,e.runner().submit("portrait_icao",(n,o)=>n.submitCheck("portrait_icao",u,{idempotencyKey:o})).catch(()=>{}).finally(()=>{h=!1,r()})),{kind:"processing",key:"processing",context:t.context,section:t.section,stalled:!1,refresh:()=>Promise.resolve()}):{...t,uploadFailed:d,resubmit:()=>Promise.resolve(),capture:n=>{if(c!==null&&c.video===n.video)return c.controller.handle;k(),d=!1;let o=W({video:n.video,tuning:t.tuning,tuningVersion:t.tuningVersion,...t.icao!=null?{policy:t.icao.policy}:{},...n.keepScreenAwake!==void 0?{keepScreenAwake:n.keepScreenAwake}:{},...n.assetBaseUrl!==void 0?{assetBaseUrl:n.assetBaseUrl}:{}},e.internals,S,x);c={video:n.video,controller:o};let s=o.handle.destroy;o.handle.destroy=()=>{c?.controller===o&&(c=null),s()},o.handle.on("error",f=>{e.reportCaptureIssue?.(O("portrait",f,0))});let y=!1,b=(f,U)=>{let A=o.gateScores();A!==null&&e.reportGate?.({kind:"portrait_gate",platform:"web",outcome:f,...U!==null?{failing:U}:{},...A})};return o.handle.on("gate",f=>{!y&&!f.ready&&(o.gateScores()?.elapsedMs??0)>=re&&(y=!0,b("stuck",f.failing))}),o.handle.on("captured",f=>{b("captured",null),y=!1,m=m.then(()=>T(f,o)).catch(()=>{})}),o.handle},uploadPortrait:a,confirmFix:l}},destroy:k}}function ne(e){let c=e;if(typeof c.apiOrigin!="string"||typeof c.sessionToken!="string")return;let m=`${c.apiOrigin}/api/v2/hosted/capture-reports`,d=c.sessionToken;return w=>{try{fetch(m,{method:"POST",headers:{"content-type":"application/json","x-session-token":d,"x-sekyro-sdk":`@sekyro/web/${H}`},body:JSON.stringify({reports:w}),keepalive:!0}).catch(()=>{})}catch{}}}function ie(e){let c=e.apiOrigin;return Z("sdk",typeof c=="string"&&/staging|sandbox|localhost/.test(c)?"sandbox":"live")}function Me(e){let c=null,m=null,d=null,w=B(),M=Promise.resolve(),h=()=>{d?.flow.handle.destroy(),d=null},D=async(i,l)=>{if(e.destroyed())return;l.setFlowState("uploading");let a=null,p,t=!1,r=e.currentView()?.documents!==void 0;try{await c.submit("doc_ocr",async(y,b)=>{if(a===null){let f=await F(y,"image","image/jpeg",i.image.size,{engine:"document"});await y.uploadToSpaces(f.uploadUrl,i.image,"image/jpeg"),a=(await y.completeMedia(f.key)).key}return l.setFlowState("checking"),p===void 0&&(p=l.takeDeviceRead(i)),y.submitCheck("doc_ocr",{imageKey:a,side:i.side,...p!==null?{deviceRead:p}:{},...r?{source:"camera"}:{}},{idempotencyKey:b})})}catch{t=!0}finally{l.setFlowState("done")}if(e.destroyed())return;if(t){l.settle(i.side,{ok:!1,issue:"technical"});return}let u=e.currentView(),n=u===null?null:R(u,{isMobile:e.isMobile()});if(n?.kind!=="document"){l.settle(i.side,{ok:!0}),d?.flow===l?h():l.handle.destroy();return}if(n.reason==="document_type_not_accepted"){m=null,d?.flow===l&&h(),c.republish();return}let o=n.acceptedSides;i.side!=="single"&&(o.includes(i.side)||n.reason==="side_missing")&&!(o.includes("recto")&&o.includes("verso"))?(l.settle(i.side,{ok:!0}),m?.documentType!=="passport"&&l.handle.setSide(n.side)):l.settle(i.side,{ok:!1,issue:"reread"})},g=null,_=async i=>{let l=e.currentView(),a=l===null?null:R(l,{isMobile:e.isMobile()});if(l===null||a?.kind!=="document")throw new RangeError("upload_not_offered");if(!a.photo.uploadOffered)throw new RangeError("upload_not_offered");let p=m?.documentType==="passport"?"single":a.side,{prepareUploadFile:t}=await import("./upload-file-UYXOHCRG.js"),r=await t(i,e.uploadInternals);if(e.destroyed())return;h();let u=null;try{await c.submit("doc_ocr",async(n,o)=>{if(u===null){let s=await n.presign("image",r.contentType,r.blob.size,{source:"upload"});await n.uploadToSpaces(s.uploadUrl,r.blob,r.contentType),u=(await n.completeMedia(s.key)).key}return n.submitCheck("doc_ocr",{imageKey:u,side:p,source:"upload"},{idempotencyKey:o})})}catch(n){throw n instanceof C&&(n.code==="media_type_unsupported"||n.code==="media_type_mismatch")?new TypeError("unsupported_file"):(n instanceof C&&(n.code==="document_upload_not_allowed"||n.code==="uploaded_media_not_allowed")&&await e.refreshView().catch(()=>{}),n)}},k=(i,l)=>({...i,uploadDocument:a=>{let p=()=>_(a),t=(g===null?p():g.then(p,p)).finally(()=>{g===t&&(g=null)});return g=t,t},issuer:m?.issuer??null,documentType:m?.documentType??null,captureSide:m===null?null:m.documentType==="passport"?"single":i.side,selectDocument:(a,p)=>{if(!J(i.documents).includes(a)||!Q(i.documents,a).includes(p))throw new RangeError(`${p} from ${a} is not accepted`);(m?.issuer!==a||m.documentType!==p)&&h(),m={issuer:a,documentType:p},l()},capture:a=>{if(m===null)throw new Error("selectDocument() first");if(d!==null&&d.video===a.video)return d.flow.handle;h();let p=m,t=p.documentType==="passport"?"single":i.acceptedSides.length>0?i.side:void 0,r=$({video:a.video,documentType:p.documentType,issuer:p.issuer,...t!==void 0?{side:t}:{},...a.keepScreenAwake!==void 0?{keepScreenAwake:a.keepScreenAwake}:{},...a.liveMrz!==void 0?{liveMrz:a.liveMrz}:{}},{...e.documentInternals??{},...(()=>{let n=e.currentView()?.capture?.document,o=e.documentInternals?.blurRefuseSharpnessMax??n?.scan?.blurRefuseSharpnessMax;return{engineOptions:{camera:z(n?.camera),shutter:N(n?.scan),guideLock:K(n?.guide),...e.documentInternals?.engineOptions??{}},...typeof o=="number"&&Number.isFinite(o)&&o>=0&&o<=1?{blurRefuseSharpnessMax:o}:{}}})(),deferRead:!0,...(()=>{let n=e.currentView();if(n===null||e.documentInternals?.webOcr!==void 0)return{};let o=ne(e.runtime.client);return{webOcr:{captureDocument:n.capture?.document,salt:n.sessionId,baseUrl:ie(e.runtime.client),...o!==void 0?{reports:o}:{}}}})()});d={video:a.video,flow:r};let u=r.handle.destroy;return r.handle.destroy=()=>{d?.flow===r&&(d=null),u()},w.newHandle(),r.handle.on("state",n=>w.note(n)),r.handle.on("error",n=>{w.noteError(),e.reportCaptureIssue?.(O("document",n,w.value))}),r.handle.on("captured",n=>{M=M.then(()=>D(n,r)).catch(()=>{})}),r.handle}}),v=null,S=null,I=new Set,x=e.runtime.client;e.runtime.client=new Proxy(x,{get(i,l){if(l==="submitCheck")return(S??i).submitCheck.bind(S??i);let a=Reflect.get(i,l);return typeof a=="function"?a.bind(i):a}});let T=()=>{v?.destroy(),v=null,S=null},L=i=>{let l=e.currentView(),a=l===null?null:R(l,{isMobile:e.isMobile()});if(l===null||a?.kind!=="liveness"||a.livePhoto?.icao!==!0)return;if(v===null){let u=X({tuning:l.capture?.icao??null,tuningVersion:l.capture?.tuningVersion??null,...a.icao!=null?{policy:a.icao.policy}:{},still:a.livePhoto.still,...i.assetBaseUrl!==void 0?{assetBaseUrl:i.assetBaseUrl}:{}},e.livePhotoInternals);v=u,S=u.decorate(x),u.onGate(n=>{for(let o of I)o(n)})}let p=v,t=e.baseCapture??{},r=t.engineOptions?.telemetry;return{...t,engineOptions:{...t.engineOptions??{},measureQuality:p.engineOptions.measureQuality,telemetry:u=>{r?.(u),p.engineOptions.telemetry(u)}}}},P=te({keptPortraitInput:()=>v?.lastPortraitInput()??null,runner:()=>c,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:i=>ne(e.runtime.client)?.([i])}),V=Y({...e,bindDocument:k,bindPortrait:P.bind,stopCameras:()=>{h(),P.destroy(),T(),e.stopLiveness?.()},onLivePhoto:i=>(I.add(i),()=>I.delete(i))});return c=V,{...V,captureInternals:L,destroy:()=>{h(),P.destroy(),T(),I.clear()}}}export{Me as createPlanRunner,ne as reportSink,ie as sdkAssetBase};
|
|
@@ -252,10 +252,10 @@ type SessionStatus = "created" | "in_progress" | "review_pending" | "verified" |
|
|
|
252
252
|
/**
|
|
253
253
|
* Why a `not_verified` session was not verified (verification-session.schema.ts
|
|
254
254
|
* `SESSION_REASONS`): a verdict against the person (`rejected`), no verdict
|
|
255
|
-
* (`inconclusive`), the check could not run (`unavailable`), the person
|
|
256
|
-
* result (`abandoned`),
|
|
257
|
-
*
|
|
258
|
-
* (`superseded`).
|
|
255
|
+
* (`inconclusive`), the check could not run (`unavailable`), the person started but the
|
|
256
|
+
* session expired before a result (`abandoned`), the link was sent but the session expired
|
|
257
|
+
* before it was opened (`not_opened`), a flow rule (`policy`), the organization cancelled
|
|
258
|
+
* it (`cancelled`), a newer session took its review over (`superseded`).
|
|
259
259
|
*/
|
|
260
260
|
type SessionReason = "rejected" | "inconclusive" | "unavailable" | "abandoned" | "not_opened" | "policy" | "cancelled" | "superseded";
|
|
261
261
|
/** Who or what closed a finished session (verification-session.schema.ts `CLOSED_BY`). */
|
|
@@ -402,8 +402,11 @@ type CameraUnavailableCause = "denied" | "no_camera";
|
|
|
402
402
|
* error's `name` (letters only, at most 40 characters).
|
|
403
403
|
*/
|
|
404
404
|
interface CaptureIssueReport {
|
|
405
|
-
/**
|
|
406
|
-
|
|
405
|
+
/**
|
|
406
|
+
* The step whose camera failed (`portrait`: the portrait step's own camera, 2026-11-05), or `attestation`: the
|
|
407
|
+
* challenge frame produced no token (`kind: 'unavailable'`, the `ChallengeErrorCode` in `engineKind`).
|
|
408
|
+
*/
|
|
409
|
+
check: "liveness" | "document" | "portrait" | "attestation";
|
|
407
410
|
/** The public capture error kind shown, or `unavailable` (the SDK reason then rides in `engineKind`). */
|
|
408
411
|
kind: "permission" | "notfound" | "inuse" | "insecure" | "unsupported" | "generic" | "unavailable";
|
|
409
412
|
name?: string;
|
|
@@ -1131,6 +1134,13 @@ interface HostedIntegrity {
|
|
|
1131
1134
|
appAttest: true;
|
|
1132
1135
|
};
|
|
1133
1136
|
}
|
|
1137
|
+
/** `HostedSessionView.challenge`: where the browser obtains its attestation token (spec 2026-11-10 §4.3). */
|
|
1138
|
+
interface HostedChallengeView {
|
|
1139
|
+
/** The challenge frame (`<hosted origin>/challenge`, always the platform host, never a custom domain). */
|
|
1140
|
+
url: string;
|
|
1141
|
+
/** The Turnstile site key the frame renders. */
|
|
1142
|
+
siteKey: string;
|
|
1143
|
+
}
|
|
1134
1144
|
interface HostedSessionView {
|
|
1135
1145
|
sessionId: string;
|
|
1136
1146
|
status: SessionStatus;
|
|
@@ -1161,15 +1171,13 @@ interface HostedSessionView {
|
|
|
1161
1171
|
*/
|
|
1162
1172
|
sdkOrigin?: string | null;
|
|
1163
1173
|
/**
|
|
1164
|
-
*
|
|
1165
|
-
*
|
|
1166
|
-
*
|
|
1167
|
-
*
|
|
1168
|
-
*
|
|
1169
|
-
* environments. `null` only on a Live deployment without Turnstile: the SDK
|
|
1170
|
-
* sends no token and the server decides.
|
|
1174
|
+
* The Sekyro challenge frame the browser asks for an attestation token before it submits `liveness` (spec
|
|
1175
|
+
* 2026-11-10 §4.3): the platform's Turnstile widget runs inside a hidden frame at `url`, so the host page needs
|
|
1176
|
+
* only `frame-src <origin of url>`. On a Sandbox session `siteKey` is Cloudflare's always-passing test key, so the
|
|
1177
|
+
* same code runs in both environments. `null` only on a Live deployment without Turnstile: the SDK sends no token
|
|
1178
|
+
* and the server decides.
|
|
1171
1179
|
*/
|
|
1172
|
-
|
|
1180
|
+
challenge: HostedChallengeView | null;
|
|
1173
1181
|
/**
|
|
1174
1182
|
* A Sandbox (test) session: the hosted page marks it as a test session.
|
|
1175
1183
|
* Optional: absent on an older backend.
|
|
@@ -1476,18 +1484,16 @@ interface CompleteMediaResult {
|
|
|
1476
1484
|
}
|
|
1477
1485
|
/**
|
|
1478
1486
|
* Liveness attestation bag (attestation-verifier.service.ts). The web SDK sends
|
|
1479
|
-
* `{channel: 'hosted_web',
|
|
1480
|
-
* `
|
|
1481
|
-
*
|
|
1482
|
-
*
|
|
1483
|
-
*
|
|
1487
|
+
* `{channel: 'hosted_web', turnstileToken}` in both environments, or
|
|
1488
|
+
* `{channel: 'hosted_web'}` when the challenge produced no token (the server's
|
|
1489
|
+
* attestation rules decide). The token comes from the Sekyro challenge frame
|
|
1490
|
+
* ({@link HostedChallengeView}) and is bound to the session and the page's
|
|
1491
|
+
* origin. Native SDKs use platform attestation.
|
|
1484
1492
|
*/
|
|
1485
1493
|
interface AttestationInput {
|
|
1486
1494
|
signature?: string;
|
|
1487
1495
|
channel?: "hosted_web";
|
|
1488
1496
|
turnstileToken?: string;
|
|
1489
|
-
/** The Turnstile site key the token was minted with (selects the verifying secret). */
|
|
1490
|
-
siteKey?: string;
|
|
1491
1497
|
}
|
|
1492
1498
|
/**
|
|
1493
1499
|
* liveness executor input: a promoted `clips/…` key + optional attestation.
|
|
@@ -1535,8 +1541,13 @@ interface LivenessCaptureInput {
|
|
|
1535
1541
|
cameraReadyMs?: number;
|
|
1536
1542
|
faceAcquireMs?: number;
|
|
1537
1543
|
captureMs?: number;
|
|
1538
|
-
/** Uploads settled → attestation token in hand (the
|
|
1544
|
+
/** Uploads settled → attestation token in hand (the challenge frame on the web), ms. */
|
|
1539
1545
|
attestationMs?: number;
|
|
1546
|
+
/**
|
|
1547
|
+
* Why the web challenge produced no token (a `ChallengeErrorCode`: `challenge_frame_blocked`, `timeout`, ...),
|
|
1548
|
+
* lower case, at most 32 characters. Absent when the token was obtained.
|
|
1549
|
+
*/
|
|
1550
|
+
attestationError?: string;
|
|
1540
1551
|
/** The camera the clip was filmed with (`environment` = back). */
|
|
1541
1552
|
facingMode?: 'user' | 'environment';
|
|
1542
1553
|
/**
|
|
@@ -1806,4 +1817,4 @@ interface SubmitCheckBody {
|
|
|
1806
1817
|
forceOutcome?: "pass" | "fail" | "age_over" | "age_uncertain" | "age_under" | "age_unavailable";
|
|
1807
1818
|
}
|
|
1808
1819
|
|
|
1809
|
-
export { type
|
|
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 };
|
|
@@ -252,10 +252,10 @@ type SessionStatus = "created" | "in_progress" | "review_pending" | "verified" |
|
|
|
252
252
|
/**
|
|
253
253
|
* Why a `not_verified` session was not verified (verification-session.schema.ts
|
|
254
254
|
* `SESSION_REASONS`): a verdict against the person (`rejected`), no verdict
|
|
255
|
-
* (`inconclusive`), the check could not run (`unavailable`), the person
|
|
256
|
-
* result (`abandoned`),
|
|
257
|
-
*
|
|
258
|
-
* (`superseded`).
|
|
255
|
+
* (`inconclusive`), the check could not run (`unavailable`), the person started but the
|
|
256
|
+
* session expired before a result (`abandoned`), the link was sent but the session expired
|
|
257
|
+
* before it was opened (`not_opened`), a flow rule (`policy`), the organization cancelled
|
|
258
|
+
* it (`cancelled`), a newer session took its review over (`superseded`).
|
|
259
259
|
*/
|
|
260
260
|
type SessionReason = "rejected" | "inconclusive" | "unavailable" | "abandoned" | "not_opened" | "policy" | "cancelled" | "superseded";
|
|
261
261
|
/** Who or what closed a finished session (verification-session.schema.ts `CLOSED_BY`). */
|
|
@@ -402,8 +402,11 @@ type CameraUnavailableCause = "denied" | "no_camera";
|
|
|
402
402
|
* error's `name` (letters only, at most 40 characters).
|
|
403
403
|
*/
|
|
404
404
|
interface CaptureIssueReport {
|
|
405
|
-
/**
|
|
406
|
-
|
|
405
|
+
/**
|
|
406
|
+
* The step whose camera failed (`portrait`: the portrait step's own camera, 2026-11-05), or `attestation`: the
|
|
407
|
+
* challenge frame produced no token (`kind: 'unavailable'`, the `ChallengeErrorCode` in `engineKind`).
|
|
408
|
+
*/
|
|
409
|
+
check: "liveness" | "document" | "portrait" | "attestation";
|
|
407
410
|
/** The public capture error kind shown, or `unavailable` (the SDK reason then rides in `engineKind`). */
|
|
408
411
|
kind: "permission" | "notfound" | "inuse" | "insecure" | "unsupported" | "generic" | "unavailable";
|
|
409
412
|
name?: string;
|
|
@@ -1131,6 +1134,13 @@ interface HostedIntegrity {
|
|
|
1131
1134
|
appAttest: true;
|
|
1132
1135
|
};
|
|
1133
1136
|
}
|
|
1137
|
+
/** `HostedSessionView.challenge`: where the browser obtains its attestation token (spec 2026-11-10 §4.3). */
|
|
1138
|
+
interface HostedChallengeView {
|
|
1139
|
+
/** The challenge frame (`<hosted origin>/challenge`, always the platform host, never a custom domain). */
|
|
1140
|
+
url: string;
|
|
1141
|
+
/** The Turnstile site key the frame renders. */
|
|
1142
|
+
siteKey: string;
|
|
1143
|
+
}
|
|
1134
1144
|
interface HostedSessionView {
|
|
1135
1145
|
sessionId: string;
|
|
1136
1146
|
status: SessionStatus;
|
|
@@ -1161,15 +1171,13 @@ interface HostedSessionView {
|
|
|
1161
1171
|
*/
|
|
1162
1172
|
sdkOrigin?: string | null;
|
|
1163
1173
|
/**
|
|
1164
|
-
*
|
|
1165
|
-
*
|
|
1166
|
-
*
|
|
1167
|
-
*
|
|
1168
|
-
*
|
|
1169
|
-
* environments. `null` only on a Live deployment without Turnstile: the SDK
|
|
1170
|
-
* sends no token and the server decides.
|
|
1174
|
+
* The Sekyro challenge frame the browser asks for an attestation token before it submits `liveness` (spec
|
|
1175
|
+
* 2026-11-10 §4.3): the platform's Turnstile widget runs inside a hidden frame at `url`, so the host page needs
|
|
1176
|
+
* only `frame-src <origin of url>`. On a Sandbox session `siteKey` is Cloudflare's always-passing test key, so the
|
|
1177
|
+
* same code runs in both environments. `null` only on a Live deployment without Turnstile: the SDK sends no token
|
|
1178
|
+
* and the server decides.
|
|
1171
1179
|
*/
|
|
1172
|
-
|
|
1180
|
+
challenge: HostedChallengeView | null;
|
|
1173
1181
|
/**
|
|
1174
1182
|
* A Sandbox (test) session: the hosted page marks it as a test session.
|
|
1175
1183
|
* Optional: absent on an older backend.
|
|
@@ -1476,18 +1484,16 @@ interface CompleteMediaResult {
|
|
|
1476
1484
|
}
|
|
1477
1485
|
/**
|
|
1478
1486
|
* Liveness attestation bag (attestation-verifier.service.ts). The web SDK sends
|
|
1479
|
-
* `{channel: 'hosted_web',
|
|
1480
|
-
* `
|
|
1481
|
-
*
|
|
1482
|
-
*
|
|
1483
|
-
*
|
|
1487
|
+
* `{channel: 'hosted_web', turnstileToken}` in both environments, or
|
|
1488
|
+
* `{channel: 'hosted_web'}` when the challenge produced no token (the server's
|
|
1489
|
+
* attestation rules decide). The token comes from the Sekyro challenge frame
|
|
1490
|
+
* ({@link HostedChallengeView}) and is bound to the session and the page's
|
|
1491
|
+
* origin. Native SDKs use platform attestation.
|
|
1484
1492
|
*/
|
|
1485
1493
|
interface AttestationInput {
|
|
1486
1494
|
signature?: string;
|
|
1487
1495
|
channel?: "hosted_web";
|
|
1488
1496
|
turnstileToken?: string;
|
|
1489
|
-
/** The Turnstile site key the token was minted with (selects the verifying secret). */
|
|
1490
|
-
siteKey?: string;
|
|
1491
1497
|
}
|
|
1492
1498
|
/**
|
|
1493
1499
|
* liveness executor input: a promoted `clips/…` key + optional attestation.
|
|
@@ -1535,8 +1541,13 @@ interface LivenessCaptureInput {
|
|
|
1535
1541
|
cameraReadyMs?: number;
|
|
1536
1542
|
faceAcquireMs?: number;
|
|
1537
1543
|
captureMs?: number;
|
|
1538
|
-
/** Uploads settled → attestation token in hand (the
|
|
1544
|
+
/** Uploads settled → attestation token in hand (the challenge frame on the web), ms. */
|
|
1539
1545
|
attestationMs?: number;
|
|
1546
|
+
/**
|
|
1547
|
+
* Why the web challenge produced no token (a `ChallengeErrorCode`: `challenge_frame_blocked`, `timeout`, ...),
|
|
1548
|
+
* lower case, at most 32 characters. Absent when the token was obtained.
|
|
1549
|
+
*/
|
|
1550
|
+
attestationError?: string;
|
|
1540
1551
|
/** The camera the clip was filmed with (`environment` = back). */
|
|
1541
1552
|
facingMode?: 'user' | 'environment';
|
|
1542
1553
|
/**
|
|
@@ -1806,4 +1817,4 @@ interface SubmitCheckBody {
|
|
|
1806
1817
|
forceOutcome?: "pass" | "fail" | "age_over" | "age_uncertain" | "age_under" | "age_unavailable";
|
|
1807
1818
|
}
|
|
1808
1819
|
|
|
1809
|
-
export { type
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sekyro/web",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.25",
|
|
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": {
|