@sekyro/web 0.1.0-rc.15 → 0.1.0-rc.16
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 +6 -0
- package/dist/{capture-session-doc-5FHM3DSX.js → capture-session-doc-BIW3YORT.js} +1 -1
- package/dist/{capture-session-v3-DsHBvxFa.d.ts → capture-session-v3-B4wPuppJ.d.ts} +1 -1
- package/dist/{capture-session-v3-DVJvecJq.d.cts → capture-session-v3-BRu4ET1H.d.cts} +1 -1
- package/dist/{chunk-4SQBEKG7.js → chunk-4QJIIN6X.js} +1 -1
- package/dist/{chunk-23XZDY52.js → chunk-73B7S6RA.js} +1 -1
- package/dist/{chunk-G7WHAP7L.js → chunk-CGRFUBVV.js} +1 -1
- package/dist/{chunk-EIFZSEYD.js → chunk-LIMHSSC4.js} +1 -1
- package/dist/{chunk-M35OBPDV.js → chunk-PGEOLOGD.js} +1 -1
- package/dist/{chunk-ZJUA2Y22.js → chunk-SIPWSFTI.js} +1 -1
- package/dist/{chunk-7SJHXIM3.js → chunk-TPYWFLT4.js} +1 -1
- package/dist/{chunk-RNZ4CQEC.js → chunk-UFUBBIAS.js} +1 -1
- package/dist/{chunk-RBDRJRXB.js → chunk-ZBRKR5KC.js} +1 -1
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.ts +4 -4
- 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-4KABJ5FV.js → create-document-capture-E733IQ2S.js} +1 -1
- package/dist/{create-verification-2hqtJWN9.d.ts → create-verification-CMFtWutL.d.ts} +3 -3
- package/dist/{create-verification-60S1U9Dl.d.cts → create-verification-ayrPuW_P.d.cts} +3 -3
- package/dist/{icao-gate-sKqrgMTo.d.cts → icao-gate-D9D3t6z2.d.cts} +1 -1
- package/dist/{icao-gate-B2zgdb5m.d.ts → icao-gate-aS101PTk.d.ts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/internal/index.cjs +1 -1
- 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-FZJ5KVT3.js → plan-runner-LWPBOZX6.js} +1 -1
- package/dist/{types-BZXO8xhw.d.cts → types---PS7_W4.d.cts} +16 -4
- package/dist/{types-BZXO8xhw.d.ts → types---PS7_W4.d.ts} +16 -4
- package/package.json +1 -1
- package/sbom.cdx.json +7 -7
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a_ as DocCatalogEntry, a$ as LiveMrzTuning, b0 as TextLockTuning, b1 as OcrEngineClient, b2 as DocAssistReport, b3 as ReadyInfo, b4 as LoadFailure, b5 as OcrEngineOptions, b6 as SubmitRuntime, a1 as LivenessCaptureOptions, a0 as LivenessCaptureHandle, aJ as VerificationStep, aH as VerificationResult, ay as StepSnapshot, Y as LivePhotoGateUpdate, b7 as HostedClientLike } from '../create-verification-
|
|
2
|
-
export { b8 as ANALYSIS_LONG_EDGE, b9 as ASPECT_BANDS, ba as AttestationError, bb as BLUR_REFUSE_SHARPNESS_MAX, bc as BlurStatus, bd as CAPTURE_CANDIDATE_SPACING_MS, be as CAPTURE_EXTRA_CANDIDATES, bf as CLIP_MIME_ALLOWLIST, bg as CaptureEngine, bh as CaptureSessionDoc, bi as CaptureSessionDocEvents, bj as CaptureSessionDocOptions, bk as DOC_ANALYSIS_DEFAULTS, bl as DOC_BLACK_FRAME_LUMA, bm as DOC_BLACK_FRAME_TICKS, bn as DOC_CADENCE_HZ, bo as DOC_CAMERA_TUNING_DEFAULTS, bp as DOC_CATALOG, bq as DOC_DETECT_WIDTH, br as DOC_FEEDBACK_STATES, bs as DOC_FIRST_FRAME_MS, bt as DOC_GATE_V1_DEFAULTS, bu as DOC_SHUTTER_DEFAULTS, bv as DeviceReadHint, bw as DocArtifacts, bx as DocAssist, by as DocAssistEngine, bz as DocAssistTick, bA as DocCameraTuning, bB as DocCaptureReport, bC as DocCaptureVia, bD as DocChecksPayload, bE as DocEngineLike, bF as DocFeedbackAggregator, bG as DocFeedbackKey, bH as DocFeedbackState, bI as DocFormat, bJ as DocFrameAnalysis, bK as DocFrameMeasures, bL as DocGateQuality, bM as DocGateThresholds, bN as DocGateTick, bO as DocGateTickInput, bP as DocGateV1, bQ as DocQuad, bR as DocQuadPoint, bS as DocShutterReason, bT as DocShutterTuning, bU as DocSide, bV as DocumentCaptureController, bW as DocumentCaptureInternals, bX as EMPTY_GUIDE_METRICS, bY as EncodedDocument, bZ as FLIP_FILL_MIN, b_ as FLIP_GAP_MS, b$ as FLIP_TIMEOUT_MS, c0 as FocusCaps, c1 as FramingStatus, c2 as GUIDE_LOCK_DEFAULTS, c3 as GlareStatus, c4 as GrabbedFrame, c5 as GuideBlocker, c6 as GuideLock, c7 as GuideLockTick, c8 as GuideLockTuning, c9 as GuideMetrics, ca as GuideRect, cb as INFERENCE_RETRY_ATTEMPTS, cc as INFERENCE_RETRY_DEFAULT_S, U as ISSUER_CODES, cd as LANDMARKER_MODEL, ce as LENS_STORAGE_KEY, cf as LENS_TRY_MAX, cg as LIVE_MRZ_DEFAULTS, ch as LIVE_PHOTO_IDLE_MS, ci as LIVE_PHOTO_MAX_HZ, cj as LandmarkedFace, ck as LandmarkerLike, cl as LensKind, cm as LensSource, cn as LightingStatus, co as LiveMrzCapture, cp as LiveMrzState, cq as LivePhotoGate, cr as LivePhotoKit, cs as LivePhotoKitInternals, ct as LivePhotoKitOptions, cu as LivePhotoStill, cv as LivenessCaptureInternalHandle, cw as LivenessCaptureInternals, cx as LivenessFlowDeps, cy as LivenessFlowOutcome, cz as MANUAL_SHUTTER_MS, cA as MR_DOC_CATALOG, cB as NO_REPORT_MS, cC as OpenDocCameraDeps, cD as PORTRAIT_JPEG_QUALITY, cE as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cF as PRELOAD_BUDGET_MS, cG as PROCESSING_POLL_DELAY_MS, cH as PROCESSING_POLL_MAX, cI as PortraitCaptureController, cJ as PortraitCaptureInternals, cK as REGISTRY_RETRY_DELAY_MS, cL as ReticleType, cM as SAME_FACE_MAX_DROPS, cN as ScanEvent, cO as ScanLayout, cP as ScanNotice, cQ as ScanPhase, cR as ScanReport, cS as ScanSide, cT as ScanState, cU as SubmitExecutor, cV as TEXT_LOCK_DEFAULTS, cW as TRANSPORT_REPLAY_ATTEMPTS, cX as TRANSPORT_REPLAY_DELAY_MS, cY as VerificationInternals, cZ as analyzeDocFrame, c_ as analyzeGuide, c$ as aspectBand, d0 as aspectFits, d1 as buildDeviceReadHint, d2 as coverPointToVideo, d3 as createDocumentCaptureInternal, d4 as createFaceLandmarker, d5 as createLivePhotoKit, d6 as createLivenessCaptureInternal, d7 as createPortraitCaptureInternal, d8 as createVerificationInternal, d9 as docZoomFor, da as encodeDocumentImage, db as facesOf, dc as feedbackVoteOf, dd as focusOk, de as guideQuad, df as guideRegionInFrame, dg as initialScanState, dh as lensKindOf, di as mapEngineState, dj as mapErrorKind, dk as mapGuidanceHint, dl as nextScanState, dm as observePortraitFrame, dn as openDocCamera, dp as passportBandOf, dq as portraitMatchStep, dr as preloadedDetectorFactory, ds as quadAreaFrac, dt as quadBounds, du as quadIou, dv as quadTiltRatio, dw as randomUuid, dx as rankBackCameras, dy as readStoredLens, dz as resetLivenessAssetsForTests, dA as resolveDocCameraTuning, dB as resolveDocShutterTuning, dC as resolveGuideLockTuning, dD as runLivenessFlow, dE as runSubmission, dF as scannerFormatFor, dG as setPreloadLoaderForTests, dH as settledHint, dI as singleShotFocusAt, dJ as specularFraction, dK as supportsFocusMode, dL as warmDocDetector, dM as writeStoredLens } from '../create-verification-
|
|
1
|
+
import { a_ as DocCatalogEntry, a$ as LiveMrzTuning, b0 as TextLockTuning, b1 as OcrEngineClient, b2 as DocAssistReport, b3 as ReadyInfo, b4 as LoadFailure, b5 as OcrEngineOptions, b6 as SubmitRuntime, a1 as LivenessCaptureOptions, a0 as LivenessCaptureHandle, aJ as VerificationStep, aH as VerificationResult, ay as StepSnapshot, Y as LivePhotoGateUpdate, b7 as HostedClientLike } from '../create-verification-ayrPuW_P.cjs';
|
|
2
|
+
export { b8 as ANALYSIS_LONG_EDGE, b9 as ASPECT_BANDS, ba as AttestationError, bb as BLUR_REFUSE_SHARPNESS_MAX, bc as BlurStatus, bd as CAPTURE_CANDIDATE_SPACING_MS, be as CAPTURE_EXTRA_CANDIDATES, bf as CLIP_MIME_ALLOWLIST, bg as CaptureEngine, bh as CaptureSessionDoc, bi as CaptureSessionDocEvents, bj as CaptureSessionDocOptions, bk as DOC_ANALYSIS_DEFAULTS, bl as DOC_BLACK_FRAME_LUMA, bm as DOC_BLACK_FRAME_TICKS, bn as DOC_CADENCE_HZ, bo as DOC_CAMERA_TUNING_DEFAULTS, bp as DOC_CATALOG, bq as DOC_DETECT_WIDTH, br as DOC_FEEDBACK_STATES, bs as DOC_FIRST_FRAME_MS, bt as DOC_GATE_V1_DEFAULTS, bu as DOC_SHUTTER_DEFAULTS, bv as DeviceReadHint, bw as DocArtifacts, bx as DocAssist, by as DocAssistEngine, bz as DocAssistTick, bA as DocCameraTuning, bB as DocCaptureReport, bC as DocCaptureVia, bD as DocChecksPayload, bE as DocEngineLike, bF as DocFeedbackAggregator, bG as DocFeedbackKey, bH as DocFeedbackState, bI as DocFormat, bJ as DocFrameAnalysis, bK as DocFrameMeasures, bL as DocGateQuality, bM as DocGateThresholds, bN as DocGateTick, bO as DocGateTickInput, bP as DocGateV1, bQ as DocQuad, bR as DocQuadPoint, bS as DocShutterReason, bT as DocShutterTuning, bU as DocSide, bV as DocumentCaptureController, bW as DocumentCaptureInternals, bX as EMPTY_GUIDE_METRICS, bY as EncodedDocument, bZ as FLIP_FILL_MIN, b_ as FLIP_GAP_MS, b$ as FLIP_TIMEOUT_MS, c0 as FocusCaps, c1 as FramingStatus, c2 as GUIDE_LOCK_DEFAULTS, c3 as GlareStatus, c4 as GrabbedFrame, c5 as GuideBlocker, c6 as GuideLock, c7 as GuideLockTick, c8 as GuideLockTuning, c9 as GuideMetrics, ca as GuideRect, cb as INFERENCE_RETRY_ATTEMPTS, cc as INFERENCE_RETRY_DEFAULT_S, U as ISSUER_CODES, cd as LANDMARKER_MODEL, ce as LENS_STORAGE_KEY, cf as LENS_TRY_MAX, cg as LIVE_MRZ_DEFAULTS, ch as LIVE_PHOTO_IDLE_MS, ci as LIVE_PHOTO_MAX_HZ, cj as LandmarkedFace, ck as LandmarkerLike, cl as LensKind, cm as LensSource, cn as LightingStatus, co as LiveMrzCapture, cp as LiveMrzState, cq as LivePhotoGate, cr as LivePhotoKit, cs as LivePhotoKitInternals, ct as LivePhotoKitOptions, cu as LivePhotoStill, cv as LivenessCaptureInternalHandle, cw as LivenessCaptureInternals, cx as LivenessFlowDeps, cy as LivenessFlowOutcome, cz as MANUAL_SHUTTER_MS, cA as MR_DOC_CATALOG, cB as NO_REPORT_MS, cC as OpenDocCameraDeps, cD as PORTRAIT_JPEG_QUALITY, cE as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cF as PRELOAD_BUDGET_MS, cG as PROCESSING_POLL_DELAY_MS, cH as PROCESSING_POLL_MAX, cI as PortraitCaptureController, cJ as PortraitCaptureInternals, cK as REGISTRY_RETRY_DELAY_MS, cL as ReticleType, cM as SAME_FACE_MAX_DROPS, cN as ScanEvent, cO as ScanLayout, cP as ScanNotice, cQ as ScanPhase, cR as ScanReport, cS as ScanSide, cT as ScanState, cU as SubmitExecutor, cV as TEXT_LOCK_DEFAULTS, cW as TRANSPORT_REPLAY_ATTEMPTS, cX as TRANSPORT_REPLAY_DELAY_MS, cY as VerificationInternals, cZ as analyzeDocFrame, c_ as analyzeGuide, c$ as aspectBand, d0 as aspectFits, d1 as buildDeviceReadHint, d2 as coverPointToVideo, d3 as createDocumentCaptureInternal, d4 as createFaceLandmarker, d5 as createLivePhotoKit, d6 as createLivenessCaptureInternal, d7 as createPortraitCaptureInternal, d8 as createVerificationInternal, d9 as docZoomFor, da as encodeDocumentImage, db as facesOf, dc as feedbackVoteOf, dd as focusOk, de as guideQuad, df as guideRegionInFrame, dg as initialScanState, dh as lensKindOf, di as mapEngineState, dj as mapErrorKind, dk as mapGuidanceHint, dl as nextScanState, dm as observePortraitFrame, dn as openDocCamera, dp as passportBandOf, dq as portraitMatchStep, dr as preloadedDetectorFactory, ds as quadAreaFrac, dt as quadBounds, du as quadIou, dv as quadTiltRatio, dw as randomUuid, dx as rankBackCameras, dy as readStoredLens, dz as resetLivenessAssetsForTests, dA as resolveDocCameraTuning, dB as resolveDocShutterTuning, dC as resolveGuideLockTuning, dD as runLivenessFlow, dE as runSubmission, dF as scannerFormatFor, dG as setPreloadLoaderForTests, dH as settledHint, dI as singleShotFocusAt, dJ as specularFraction, dK as supportsFocusMode, dL as warmDocDetector, dM as writeStoredLens } from '../create-verification-ayrPuW_P.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-B5omafmk.cjs';
|
|
4
|
-
import { H as HostedSessionView, e as CheckType, k as CheckReason, ae as PlanStepView } from '../types
|
|
5
|
-
export { at as ICAO_FALLBACK, Y as IcaoCaptureTuning, au as IcaoProfile, R as ResolvedIcaoTuning, av as resolveIcaoTuning } from '../types
|
|
6
|
-
export { B as BackgroundStats, e as Box, C as CLIPPED_LUMA, F as FaceGeometry, f as FaceLighting, H as HeadPose, g as ICAO_CANVAS, h as ICAO_GATE_CRITERIA, i as ICAO_SHARP_REF, I as IcaoCoachKey, a as IcaoCriterionState, j as IcaoFrameObservation, k as IcaoGate, b as IcaoGateCriterion, l as IcaoGateOptions, c as IcaoGateSummary, d as IcaoGateUpdate, m as IcaoJudgedCriterion, n as IcaoMeasures, o as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, p as backgroundStats, q as createIcaoGate, r as eyeLineRoll, s as eyeOpenness, t as eyeSpecular, u as faceGeometry, v as faceLighting, w as faceSharpness, x as icaoPixelStats, y as icaoWindow, z as judgeIcao, A as lumaPlane, D as percentile, E as portraitCropRegion, G as poseFromMatrix, J as regionStats, K as scoreFrame, M as windowOverflow } from '../icao-gate-
|
|
4
|
+
import { H as HostedSessionView, e as CheckType, k as CheckReason, ae as PlanStepView } from '../types---PS7_W4.cjs';
|
|
5
|
+
export { at as ICAO_FALLBACK, Y as IcaoCaptureTuning, au as IcaoProfile, R as ResolvedIcaoTuning, av as resolveIcaoTuning } from '../types---PS7_W4.cjs';
|
|
6
|
+
export { B as BackgroundStats, e as Box, C as CLIPPED_LUMA, F as FaceGeometry, f as FaceLighting, H as HeadPose, g as ICAO_CANVAS, h as ICAO_GATE_CRITERIA, i as ICAO_SHARP_REF, I as IcaoCoachKey, a as IcaoCriterionState, j as IcaoFrameObservation, k as IcaoGate, b as IcaoGateCriterion, l as IcaoGateOptions, c as IcaoGateSummary, d as IcaoGateUpdate, m as IcaoJudgedCriterion, n as IcaoMeasures, o as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, p as backgroundStats, q as createIcaoGate, r as eyeLineRoll, s as eyeOpenness, t as eyeSpecular, u as faceGeometry, v as faceLighting, w as faceSharpness, x as icaoPixelStats, y as icaoWindow, z as judgeIcao, A as lumaPlane, D as percentile, E as portraitCropRegion, G as poseFromMatrix, J as regionStats, K as scoreFrame, M as windowOverflow } from '../icao-gate-D9D3t6z2.cjs';
|
|
7
7
|
import '../detect-worker-DclNxkZT.cjs';
|
|
8
|
-
import '../capture-session-v3-
|
|
8
|
+
import '../capture-session-v3-BRu4ET1H.cjs';
|
|
9
9
|
|
|
10
10
|
type DocumentTypeId = DocCatalogEntry["docType"];
|
|
11
11
|
/** Same shape as the hosted view's `acceptedDocuments`. */
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a_ as DocCatalogEntry, a$ as LiveMrzTuning, b0 as TextLockTuning, b1 as OcrEngineClient, b2 as DocAssistReport, b3 as ReadyInfo, b4 as LoadFailure, b5 as OcrEngineOptions, b6 as SubmitRuntime, a1 as LivenessCaptureOptions, a0 as LivenessCaptureHandle, aJ as VerificationStep, aH as VerificationResult, ay as StepSnapshot, Y as LivePhotoGateUpdate, b7 as HostedClientLike } from '../create-verification-
|
|
2
|
-
export { b8 as ANALYSIS_LONG_EDGE, b9 as ASPECT_BANDS, ba as AttestationError, bb as BLUR_REFUSE_SHARPNESS_MAX, bc as BlurStatus, bd as CAPTURE_CANDIDATE_SPACING_MS, be as CAPTURE_EXTRA_CANDIDATES, bf as CLIP_MIME_ALLOWLIST, bg as CaptureEngine, bh as CaptureSessionDoc, bi as CaptureSessionDocEvents, bj as CaptureSessionDocOptions, bk as DOC_ANALYSIS_DEFAULTS, bl as DOC_BLACK_FRAME_LUMA, bm as DOC_BLACK_FRAME_TICKS, bn as DOC_CADENCE_HZ, bo as DOC_CAMERA_TUNING_DEFAULTS, bp as DOC_CATALOG, bq as DOC_DETECT_WIDTH, br as DOC_FEEDBACK_STATES, bs as DOC_FIRST_FRAME_MS, bt as DOC_GATE_V1_DEFAULTS, bu as DOC_SHUTTER_DEFAULTS, bv as DeviceReadHint, bw as DocArtifacts, bx as DocAssist, by as DocAssistEngine, bz as DocAssistTick, bA as DocCameraTuning, bB as DocCaptureReport, bC as DocCaptureVia, bD as DocChecksPayload, bE as DocEngineLike, bF as DocFeedbackAggregator, bG as DocFeedbackKey, bH as DocFeedbackState, bI as DocFormat, bJ as DocFrameAnalysis, bK as DocFrameMeasures, bL as DocGateQuality, bM as DocGateThresholds, bN as DocGateTick, bO as DocGateTickInput, bP as DocGateV1, bQ as DocQuad, bR as DocQuadPoint, bS as DocShutterReason, bT as DocShutterTuning, bU as DocSide, bV as DocumentCaptureController, bW as DocumentCaptureInternals, bX as EMPTY_GUIDE_METRICS, bY as EncodedDocument, bZ as FLIP_FILL_MIN, b_ as FLIP_GAP_MS, b$ as FLIP_TIMEOUT_MS, c0 as FocusCaps, c1 as FramingStatus, c2 as GUIDE_LOCK_DEFAULTS, c3 as GlareStatus, c4 as GrabbedFrame, c5 as GuideBlocker, c6 as GuideLock, c7 as GuideLockTick, c8 as GuideLockTuning, c9 as GuideMetrics, ca as GuideRect, cb as INFERENCE_RETRY_ATTEMPTS, cc as INFERENCE_RETRY_DEFAULT_S, U as ISSUER_CODES, cd as LANDMARKER_MODEL, ce as LENS_STORAGE_KEY, cf as LENS_TRY_MAX, cg as LIVE_MRZ_DEFAULTS, ch as LIVE_PHOTO_IDLE_MS, ci as LIVE_PHOTO_MAX_HZ, cj as LandmarkedFace, ck as LandmarkerLike, cl as LensKind, cm as LensSource, cn as LightingStatus, co as LiveMrzCapture, cp as LiveMrzState, cq as LivePhotoGate, cr as LivePhotoKit, cs as LivePhotoKitInternals, ct as LivePhotoKitOptions, cu as LivePhotoStill, cv as LivenessCaptureInternalHandle, cw as LivenessCaptureInternals, cx as LivenessFlowDeps, cy as LivenessFlowOutcome, cz as MANUAL_SHUTTER_MS, cA as MR_DOC_CATALOG, cB as NO_REPORT_MS, cC as OpenDocCameraDeps, cD as PORTRAIT_JPEG_QUALITY, cE as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cF as PRELOAD_BUDGET_MS, cG as PROCESSING_POLL_DELAY_MS, cH as PROCESSING_POLL_MAX, cI as PortraitCaptureController, cJ as PortraitCaptureInternals, cK as REGISTRY_RETRY_DELAY_MS, cL as ReticleType, cM as SAME_FACE_MAX_DROPS, cN as ScanEvent, cO as ScanLayout, cP as ScanNotice, cQ as ScanPhase, cR as ScanReport, cS as ScanSide, cT as ScanState, cU as SubmitExecutor, cV as TEXT_LOCK_DEFAULTS, cW as TRANSPORT_REPLAY_ATTEMPTS, cX as TRANSPORT_REPLAY_DELAY_MS, cY as VerificationInternals, cZ as analyzeDocFrame, c_ as analyzeGuide, c$ as aspectBand, d0 as aspectFits, d1 as buildDeviceReadHint, d2 as coverPointToVideo, d3 as createDocumentCaptureInternal, d4 as createFaceLandmarker, d5 as createLivePhotoKit, d6 as createLivenessCaptureInternal, d7 as createPortraitCaptureInternal, d8 as createVerificationInternal, d9 as docZoomFor, da as encodeDocumentImage, db as facesOf, dc as feedbackVoteOf, dd as focusOk, de as guideQuad, df as guideRegionInFrame, dg as initialScanState, dh as lensKindOf, di as mapEngineState, dj as mapErrorKind, dk as mapGuidanceHint, dl as nextScanState, dm as observePortraitFrame, dn as openDocCamera, dp as passportBandOf, dq as portraitMatchStep, dr as preloadedDetectorFactory, ds as quadAreaFrac, dt as quadBounds, du as quadIou, dv as quadTiltRatio, dw as randomUuid, dx as rankBackCameras, dy as readStoredLens, dz as resetLivenessAssetsForTests, dA as resolveDocCameraTuning, dB as resolveDocShutterTuning, dC as resolveGuideLockTuning, dD as runLivenessFlow, dE as runSubmission, dF as scannerFormatFor, dG as setPreloadLoaderForTests, dH as settledHint, dI as singleShotFocusAt, dJ as specularFraction, dK as supportsFocusMode, dL as warmDocDetector, dM as writeStoredLens } from '../create-verification-
|
|
1
|
+
import { a_ as DocCatalogEntry, a$ as LiveMrzTuning, b0 as TextLockTuning, b1 as OcrEngineClient, b2 as DocAssistReport, b3 as ReadyInfo, b4 as LoadFailure, b5 as OcrEngineOptions, b6 as SubmitRuntime, a1 as LivenessCaptureOptions, a0 as LivenessCaptureHandle, aJ as VerificationStep, aH as VerificationResult, ay as StepSnapshot, Y as LivePhotoGateUpdate, b7 as HostedClientLike } from '../create-verification-CMFtWutL.js';
|
|
2
|
+
export { b8 as ANALYSIS_LONG_EDGE, b9 as ASPECT_BANDS, ba as AttestationError, bb as BLUR_REFUSE_SHARPNESS_MAX, bc as BlurStatus, bd as CAPTURE_CANDIDATE_SPACING_MS, be as CAPTURE_EXTRA_CANDIDATES, bf as CLIP_MIME_ALLOWLIST, bg as CaptureEngine, bh as CaptureSessionDoc, bi as CaptureSessionDocEvents, bj as CaptureSessionDocOptions, bk as DOC_ANALYSIS_DEFAULTS, bl as DOC_BLACK_FRAME_LUMA, bm as DOC_BLACK_FRAME_TICKS, bn as DOC_CADENCE_HZ, bo as DOC_CAMERA_TUNING_DEFAULTS, bp as DOC_CATALOG, bq as DOC_DETECT_WIDTH, br as DOC_FEEDBACK_STATES, bs as DOC_FIRST_FRAME_MS, bt as DOC_GATE_V1_DEFAULTS, bu as DOC_SHUTTER_DEFAULTS, bv as DeviceReadHint, bw as DocArtifacts, bx as DocAssist, by as DocAssistEngine, bz as DocAssistTick, bA as DocCameraTuning, bB as DocCaptureReport, bC as DocCaptureVia, bD as DocChecksPayload, bE as DocEngineLike, bF as DocFeedbackAggregator, bG as DocFeedbackKey, bH as DocFeedbackState, bI as DocFormat, bJ as DocFrameAnalysis, bK as DocFrameMeasures, bL as DocGateQuality, bM as DocGateThresholds, bN as DocGateTick, bO as DocGateTickInput, bP as DocGateV1, bQ as DocQuad, bR as DocQuadPoint, bS as DocShutterReason, bT as DocShutterTuning, bU as DocSide, bV as DocumentCaptureController, bW as DocumentCaptureInternals, bX as EMPTY_GUIDE_METRICS, bY as EncodedDocument, bZ as FLIP_FILL_MIN, b_ as FLIP_GAP_MS, b$ as FLIP_TIMEOUT_MS, c0 as FocusCaps, c1 as FramingStatus, c2 as GUIDE_LOCK_DEFAULTS, c3 as GlareStatus, c4 as GrabbedFrame, c5 as GuideBlocker, c6 as GuideLock, c7 as GuideLockTick, c8 as GuideLockTuning, c9 as GuideMetrics, ca as GuideRect, cb as INFERENCE_RETRY_ATTEMPTS, cc as INFERENCE_RETRY_DEFAULT_S, U as ISSUER_CODES, cd as LANDMARKER_MODEL, ce as LENS_STORAGE_KEY, cf as LENS_TRY_MAX, cg as LIVE_MRZ_DEFAULTS, ch as LIVE_PHOTO_IDLE_MS, ci as LIVE_PHOTO_MAX_HZ, cj as LandmarkedFace, ck as LandmarkerLike, cl as LensKind, cm as LensSource, cn as LightingStatus, co as LiveMrzCapture, cp as LiveMrzState, cq as LivePhotoGate, cr as LivePhotoKit, cs as LivePhotoKitInternals, ct as LivePhotoKitOptions, cu as LivePhotoStill, cv as LivenessCaptureInternalHandle, cw as LivenessCaptureInternals, cx as LivenessFlowDeps, cy as LivenessFlowOutcome, cz as MANUAL_SHUTTER_MS, cA as MR_DOC_CATALOG, cB as NO_REPORT_MS, cC as OpenDocCameraDeps, cD as PORTRAIT_JPEG_QUALITY, cE as PRELOAD_BLAZE_INIT_TIMEOUT_MS, cF as PRELOAD_BUDGET_MS, cG as PROCESSING_POLL_DELAY_MS, cH as PROCESSING_POLL_MAX, cI as PortraitCaptureController, cJ as PortraitCaptureInternals, cK as REGISTRY_RETRY_DELAY_MS, cL as ReticleType, cM as SAME_FACE_MAX_DROPS, cN as ScanEvent, cO as ScanLayout, cP as ScanNotice, cQ as ScanPhase, cR as ScanReport, cS as ScanSide, cT as ScanState, cU as SubmitExecutor, cV as TEXT_LOCK_DEFAULTS, cW as TRANSPORT_REPLAY_ATTEMPTS, cX as TRANSPORT_REPLAY_DELAY_MS, cY as VerificationInternals, cZ as analyzeDocFrame, c_ as analyzeGuide, c$ as aspectBand, d0 as aspectFits, d1 as buildDeviceReadHint, d2 as coverPointToVideo, d3 as createDocumentCaptureInternal, d4 as createFaceLandmarker, d5 as createLivePhotoKit, d6 as createLivenessCaptureInternal, d7 as createPortraitCaptureInternal, d8 as createVerificationInternal, d9 as docZoomFor, da as encodeDocumentImage, db as facesOf, dc as feedbackVoteOf, dd as focusOk, de as guideQuad, df as guideRegionInFrame, dg as initialScanState, dh as lensKindOf, di as mapEngineState, dj as mapErrorKind, dk as mapGuidanceHint, dl as nextScanState, dm as observePortraitFrame, dn as openDocCamera, dp as passportBandOf, dq as portraitMatchStep, dr as preloadedDetectorFactory, ds as quadAreaFrac, dt as quadBounds, du as quadIou, dv as quadTiltRatio, dw as randomUuid, dx as rankBackCameras, dy as readStoredLens, dz as resetLivenessAssetsForTests, dA as resolveDocCameraTuning, dB as resolveDocShutterTuning, dC as resolveGuideLockTuning, dD as runLivenessFlow, dE as runSubmission, dF as scannerFormatFor, dG as setPreloadLoaderForTests, dH as settledHint, dI as singleShotFocusAt, dJ as specularFraction, dK as supportsFocusMode, dL as warmDocDetector, dM as writeStoredLens } from '../create-verification-CMFtWutL.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-B5omafmk.js';
|
|
4
|
-
import { H as HostedSessionView, e as CheckType, k as CheckReason, ae as PlanStepView } from '../types
|
|
5
|
-
export { at as ICAO_FALLBACK, Y as IcaoCaptureTuning, au as IcaoProfile, R as ResolvedIcaoTuning, av as resolveIcaoTuning } from '../types
|
|
6
|
-
export { B as BackgroundStats, e as Box, C as CLIPPED_LUMA, F as FaceGeometry, f as FaceLighting, H as HeadPose, g as ICAO_CANVAS, h as ICAO_GATE_CRITERIA, i as ICAO_SHARP_REF, I as IcaoCoachKey, a as IcaoCriterionState, j as IcaoFrameObservation, k as IcaoGate, b as IcaoGateCriterion, l as IcaoGateOptions, c as IcaoGateSummary, d as IcaoGateUpdate, m as IcaoJudgedCriterion, n as IcaoMeasures, o as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, p as backgroundStats, q as createIcaoGate, r as eyeLineRoll, s as eyeOpenness, t as eyeSpecular, u as faceGeometry, v as faceLighting, w as faceSharpness, x as icaoPixelStats, y as icaoWindow, z as judgeIcao, A as lumaPlane, D as percentile, E as portraitCropRegion, G as poseFromMatrix, J as regionStats, K as scoreFrame, M as windowOverflow } from '../icao-gate-
|
|
4
|
+
import { H as HostedSessionView, e as CheckType, k as CheckReason, ae as PlanStepView } from '../types---PS7_W4.js';
|
|
5
|
+
export { at as ICAO_FALLBACK, Y as IcaoCaptureTuning, au as IcaoProfile, R as ResolvedIcaoTuning, av as resolveIcaoTuning } from '../types---PS7_W4.js';
|
|
6
|
+
export { B as BackgroundStats, e as Box, C as CLIPPED_LUMA, F as FaceGeometry, f as FaceLighting, H as HeadPose, g as ICAO_CANVAS, h as ICAO_GATE_CRITERIA, i as ICAO_SHARP_REF, I as IcaoCoachKey, a as IcaoCriterionState, j as IcaoFrameObservation, k as IcaoGate, b as IcaoGateCriterion, l as IcaoGateOptions, c as IcaoGateSummary, d as IcaoGateUpdate, m as IcaoJudgedCriterion, n as IcaoMeasures, o as IcaoPixelStats, L as LumaPlane, P as Point, R as RegionStats, p as backgroundStats, q as createIcaoGate, r as eyeLineRoll, s as eyeOpenness, t as eyeSpecular, u as faceGeometry, v as faceLighting, w as faceSharpness, x as icaoPixelStats, y as icaoWindow, z as judgeIcao, A as lumaPlane, D as percentile, E as portraitCropRegion, G as poseFromMatrix, J as regionStats, K as scoreFrame, M as windowOverflow } from '../icao-gate-aS101PTk.js';
|
|
7
7
|
import '../detect-worker-DclNxkZT.js';
|
|
8
|
-
import '../capture-session-v3-
|
|
8
|
+
import '../capture-session-v3-B4wPuppJ.js';
|
|
9
9
|
|
|
10
10
|
type DocumentTypeId = DocCatalogEntry["docType"];
|
|
11
11
|
/** Same shape as the hosted view's `acceptedDocuments`. */
|
package/dist/internal/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _e,d as Le,e as Re,g as Se,h as Te,i as ce}from"../chunk-
|
|
1
|
+
import{c as _e,d as Le,e as Re,g as Se,h as Te,i as ce}from"../chunk-SIPWSFTI.js";import{a as Vt,b as Xt,c as Zt,d as Jt,e as Qt,f as jt,g as qt,h as $t,i as er,j as ae,l as se,n as Ee,o as me}from"../chunk-G6MU3B5V.js";import{b as pe,c as ie,d as ne}from"../chunk-CJHMFPL6.js";import"../chunk-RI3E7GBN.js";import{a as d,b as M,c as F,d as N,e as v}from"../chunk-O5WKNZ2C.js";import{A as yt,B as ft,C as ut,D as Ot,E as At,F as It,G as xt,H as Ct,I as Pt,J as Dt,K as dt,L as Mt,M as Ft,a as We,b as ke,c as Ke,d as Je,e as Qe,f as je,g as qe,h as $e,i as et,j as tt,k as rt,l as ot,m as pt,n as it,o as nt,p as at,q as st,r as Et,s as mt,t as _t,u as Lt,v as Rt,w as St,x as Tt,y as ct,z as lt}from"../chunk-ZBRKR5KC.js";import{a as Ye,b as He}from"../chunk-SMKCBUJL.js";import{a as Be,b as we,c as ze,d as Ve,e as Xe,f as Ze}from"../chunk-MXWLCDFX.js";import{a as k,b as Fe,c as Ne,d as ve,e as ge,f as be,g as Ge,h as he,i as Ue,j as K,k as B,l as w,m as Z,n as J,o as Q,p as j,q,r as $,s as ee,t as te,u as re,x as oe}from"../chunk-PGEOLOGD.js";import{a as g,b,c as G,d as h,e as U,f as Y,g as H,h as W,i as z,j as V,l as X}from"../chunk-G6LKLN4U.js";import{a as xe,b as Ce,c as Pe,d as De,e as de,f as Me}from"../chunk-TDLIXFDT.js";import{a as Nt,b as vt,c as gt,d as bt,e as Gt,f as ht,g as Ut,h as Yt,i as Ht,j as Wt,k as kt,l as Kt,m as Bt}from"../chunk-7ZCZY3ZP.js";import{a as wt,b as zt}from"../chunk-BPE5NSQ2.js";import"../chunk-GI3UFGRQ.js";import{b as ye,c as fe,d as ue,e as Oe,g as Ae,h as tr,i as rr,j as or,k as pr,l as ir,m as nr,s as Ie}from"../chunk-4QJIIN6X.js";import{c as S,i as T,j as c,k as l,l as y,n as f,p as u,q as O,r as A,s as I,t as x,u as C,v as P,w as D}from"../chunk-CGRFUBVV.js";import{a as i,b as n,c as a,d as s,i as E,j as m,k as _,l as L,m as R}from"../chunk-LIMHSSC4.js";import"../chunk-GT2ZLGF7.js";import"../chunk-TPYWFLT4.js";import{c as e,d as t,f as r,g as o,h as p}from"../chunk-FUHDOEBP.js";import"../chunk-POIQGEZM.js";import"../chunk-2BFYVMUU.js";import"../chunk-FPXL63KZ.js";import"../chunk-73B7S6RA.js";import"../chunk-UFUBBIAS.js";import"../chunk-OKWG3PVH.js";import{a as le}from"../chunk-DFTCAWMP.js";import"../chunk-DK5YPBDQ.js";export{ae as ANALYSIS_LONG_EDGE,xe as ASPECT_BANDS,C as AttestationError,Ge as BLUR_REFUSE_SHARPNESS_MAX,Ft as CAPTURE_CANDIDATE_SPACING_MS,Mt as CAPTURE_EXTRA_CANDIDATES,p as CENTERED_FACTOR,r as CIRCLE_RADIUS_FACTOR,Vt as CLIPPED_LUMA,u as CLIP_MIME_ALLOWLIST,Dt as CaptureSessionDoc,rr as DOCUMENT_TYPE_ORDER,Je as DOC_ANALYSIS_DEFAULTS,At as DOC_BLACK_FRAME_LUMA,It as DOC_BLACK_FRAME_TICKS,xt as DOC_CADENCE_HZ,$e as DOC_CAMERA_TUNING_DEFAULTS,de as DOC_CATALOG,Be as DOC_DETECT_WIDTH,We as DOC_FEEDBACK_STATES,Ot as DOC_FIRST_FRAME_MS,we as DOC_GATE_V1_DEFAULTS,Ct as DOC_SHUTTER_DEFAULTS,X as DocAssist,Ke as DocFeedbackAggregator,Ze as DocGateV1,Rt as EMPTY_GUIDE_METRICS,Ne as FLIP_FILL_MIN,Fe as FLIP_GAP_MS,ve as FLIP_TIMEOUT_MS,lt as GUIDE_LOCK_DEFAULTS,ft as GuideLock,bt as ICAO_CANVAS,wt as ICAO_FALLBACK,Yt as ICAO_GATE_CRITERIA,Xt as ICAO_SHARP_REF,I as INFERENCE_RETRY_ATTEMPTS,x as INFERENCE_RETRY_DEFAULT_S,o as IN_CIRCLE_FACTOR,tr as ISSUER_CODES,pe as LANDMARKER_MODEL,ot as LENS_STORAGE_KEY,_t as LENS_TRY_MAX,V as LIVE_MRZ_DEFAULTS,Le as LIVE_PHOTO_IDLE_MS,_e as LIVE_PHOTO_MAX_HZ,ge as MANUAL_SHUTTER_MS,Ye as MRZ_BAND_DEFAULTS,De as MR_DOC_CATALOG,be as NO_REPORT_MS,le as OCR_ASSET_SET,Te as OTP_RESEND_COOLDOWN_MS,se as PORTRAIT_JPEG_QUALITY,i as PRELOAD_BLAZE_INIT_TIMEOUT_MS,n as PRELOAD_BUDGET_MS,Se as PROCESSING_BACKOFF_MS,fe as PROCESSING_POLL_DELAY_MS,ue as PROCESSING_POLL_MAX,G as REGION_PAD,ye as REGISTRY_RETRY_DELAY_MS,S as RETRYABLE_REASONS,re as SAME_FACE_MAX_DROPS,g as SHARPNESS_LONG_EDGE,z as TEXT_LOCK_DEFAULTS,O as TRANSPORT_REPLAY_ATTEMPTS,A as TRANSPORT_REPLAY_DELAY_MS,M as TURNSTILE_EXECUTE_TIMEOUT_MS,d as TURNSTILE_SCRIPT_SRC,Q as WEB_OCR_ENGINE,pr as acceptedIssuers,or as acceptedTypesFor,qe as analyzeDocFrame,Tt as analyzeGuide,Ce as aspectBand,Pe as aspectFits,qt as backgroundStats,$ as browserFamily,Z as buildDeviceReadHint,B as classifyCardSide,K as classifyCardSideWith,st as coverPointToVideo,oe as createDocumentCaptureInternal,ne as createFaceLandmarker,Bt as createIcaoGate,Re as createLivePhotoKit,R as createLivenessCaptureInternal,me as createPortraitCaptureInternal,ce as createStepRunner,Ae as createVerificationInternal,U as cropImage,e as detectFormFactor,t as detectIsMobile,He as detectMrzBand,Et as docZoomFor,k as encodeDocumentImage,v as executeTurnstile,gt as eyeLineRoll,Wt as eyeOpenness,jt as eyeSpecular,Nt as faceGeometry,Qt as faceLighting,$t as faceSharpness,ie as facesOf,ke as feedbackVoteOf,nr as flagOf,mt as focusOk,te as formatMismatch,l as frontierStep,ct as guideQuad,St as guideRegionInFrame,er as icaoPixelStats,Gt as icaoWindow,he as initialScanState,T as isExecutable,c as isTerminalView,Ht as judgeIcao,tt as lensKindOf,ee as liveMrzWireReport,N as loadTurnstile,Zt as lumaPlane,_ as mapEngineState,L as mapErrorKind,m as mapGuidanceHint,f as mapSessionResult,W as measureBitmapSharpness,H as measureRegionSharpness,Ue as nextScanState,Ee as observePortraitFrame,Lt as openDocCamera,dt as passportBandOf,kt as percentile,b as photoSharpness,Ut as portraitCropRegion,Ie as portraitMatchStep,vt as poseFromMatrix,E as preloadedDetectorFactory,ze as quadAreaFrac,Xe as quadBounds,Ve as quadIou,je as quadTiltRatio,Oe as randomUuid,rt as rankBackCameras,pt as readStoredLens,Jt as regionStats,s as resetLivenessAssetsForTests,F as resetTurnstileForTests,Y as resizeLongEdge,ir as resolveAcceptedDocuments,et as resolveDocCameraTuning,Pt as resolveDocShutterTuning,yt as resolveGuideLockTuning,zt as resolveIcaoTuning,j as resolveWebOcrPlan,D as runLivenessFlow,P as runSubmission,Me as scannerFormatFor,Kt as scoreFrame,a as setPreloadLoaderForTests,J as settledHint,at as singleShotFocusAt,Qe as specularFraction,q as startWebOcr,y as stepOf,h as stillRegionOf,w as stillToImageData,nt as supportsFocusMode,ut as warmDocDetector,ht as windowOverflow,it as writeStoredLens};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as K}from"./chunk-A3FUGHAH.js";import{a as B,b as H,e as F,f as w,i as U}from"./chunk-
|
|
1
|
+
import{e as K}from"./chunk-A3FUGHAH.js";import{a as B,b as H,e as F,f as w,i as U}from"./chunk-SIPWSFTI.js";import{o as A}from"./chunk-G6MU3B5V.js";import"./chunk-CJHMFPL6.js";import"./chunk-RI3E7GBN.js";import{A as T,I as V,i as x}from"./chunk-ZBRKR5KC.js";import"./chunk-SMKCBUJL.js";import"./chunk-MXWLCDFX.js";import{x as O}from"./chunk-PGEOLOGD.js";import"./chunk-G6LKLN4U.js";import"./chunk-TDLIXFDT.js";import"./chunk-7ZCZY3ZP.js";import"./chunk-BPE5NSQ2.js";import"./chunk-GI3UFGRQ.js";import{a as L,o as I}from"./chunk-CGRFUBVV.js";import"./chunk-LIMHSSC4.js";import"./chunk-GT2ZLGF7.js";import"./chunk-TPYWFLT4.js";import"./chunk-FUHDOEBP.js";import"./chunk-POIQGEZM.js";import"./chunk-2BFYVMUU.js";import"./chunk-FPXL63KZ.js";import{h as _}from"./chunk-73B7S6RA.js";import{a as M}from"./chunk-UFUBBIAS.js";import"./chunk-OKWG3PVH.js";import"./chunk-DFTCAWMP.js";import"./chunk-DK5YPBDQ.js";function z(e){let a=null,c=Promise.resolve(),u=!1,g=null,y=null,C=null,k=!1,m=()=>{a?.controller.handle.destroy(),a=null},h=()=>{let i=e.currentView(),l=i===null?null:w(i,{isMobile:e.isMobile()});return l?.kind==="portrait"?l:null},P=async(i,l)=>{if(e.destroyed())return;l.setFlowState("uploading"),u=!1;let d=null;try{await e.runner().submit("portrait_icao",async(n,r)=>{if(d===null){let p=await I(n,"image","image/jpeg",i.image.size,{engine:"portrait"});await n.uploadToSpaces(p.uploadUrl,i.image,"image/jpeg"),d=(await n.completeMedia(p.key)).key}l.setFlowState("checking");let s={media:{portrait:d},gate:_(i.gate),...i.tuningVersion!==void 0?{tuningVersion:i.tuningVersion}:{}};return n.submitCheck("portrait_icao",s,{idempotencyKey:r})},()=>{g=d})}catch{u=!0}if(l.setFlowState("done"),e.destroyed())return;let t=h();(t===null||t.phase!=="capture")&&a?.controller===l&&m(),e.runner().republish()},b=i=>e.runner().submit("face_match",(l,d)=>l.submitCheck("face_match",g!==null?{imageKey:g}:{},{idempotencyKey:d})).then(()=>{},()=>{u=!0,i()});return{bind:(i,l)=>{if(i.phase==="match")return m(),y!==i.attemptsRemaining&&!u&&(y=i.attemptsRemaining,b(l)),{...i,uploadFailed:u,resubmit:()=>(u=!1,y=i.attemptsRemaining,l(),b(l)),capture:()=>{throw new Error("the portrait was already accepted")}};y=null;let d=e.keptPortraitInput?.()??null;return d!==null&&(k||d!==C&&i.report===null&&i.reason===void 0&&!i.retakeOnly)?(k||(C=d,k=!0,e.runner().submit("portrait_icao",(t,n)=>t.submitCheck("portrait_icao",d,{idempotencyKey:n}),()=>{g=d.media.portrait}).catch(()=>{}).finally(()=>{k=!1,l()})),{kind:"processing",key:"processing",context:i.context,section:i.section,stalled:!1,refresh:()=>Promise.resolve()}):{...i,uploadFailed:u,resubmit:()=>Promise.resolve(),capture:t=>{if(a!==null&&a.video===t.video)return a.controller.handle;m(),u=!1;let n=A({video:t.video,tuning:i.tuning,tuningVersion:i.tuningVersion,...i.icao!=null?{policy:i.icao.policy}:{},...t.keepScreenAwake!==void 0?{keepScreenAwake:t.keepScreenAwake}:{},...t.assetBaseUrl!==void 0?{assetBaseUrl:t.assetBaseUrl}:{}},e.internals,()=>e.destroyed()?"self":L(e.currentView()));return a={video:t.video,controller:n},n.handle.on("captured",r=>{c=c.then(()=>P(r,n)).catch(()=>{})}),n.handle}}},destroy:m}}function j(e){let a=e;if(typeof a.apiOrigin!="string"||typeof a.sessionToken!="string")return;let c=`${a.apiOrigin}/api/v2/hosted/capture-reports`,u=a.sessionToken;return g=>{try{fetch(c,{method:"POST",headers:{"content-type":"application/json","x-session-token":u,"x-sekyro-sdk":`@sekyro/web/${M}`},body:JSON.stringify({reports:g}),keepalive:!0}).catch(()=>{})}catch{}}}function G(e){let a=e.apiOrigin;return K("sdk",typeof a=="string"&&/staging|sandbox|localhost/.test(a)?"sandbox":"live")}function le(e){let a=null,c=null,u=null,g=Promise.resolve(),y=()=>{u?.flow.handle.destroy(),u=null},C=async(t,n)=>{if(e.destroyed())return;n.setFlowState("uploading");let r=null,s,p=!1;try{await a.submit("doc_ocr",async(S,E)=>{if(r===null){let R=await I(S,"image","image/jpeg",t.image.size,{engine:"document"});await S.uploadToSpaces(R.uploadUrl,t.image,"image/jpeg"),r=(await S.completeMedia(R.key)).key}return n.setFlowState("checking"),s===void 0&&(s=n.takeDeviceRead(t)),S.submitCheck("doc_ocr",{imageKey:r,side:t.side,...s!==null?{deviceRead:s}:{}},{idempotencyKey:E})})}catch{p=!0}finally{n.setFlowState("done")}if(e.destroyed())return;if(p){n.settle(t.side,{ok:!1,issue:"technical"});return}let v=e.currentView(),o=v===null?null:w(v,{isMobile:e.isMobile()});if(o?.kind!=="document"){n.settle(t.side,{ok:!0}),u?.flow===n?y():n.handle.destroy();return}if(o.reason==="document_type_not_accepted"){c=null,u?.flow===n&&y(),a.republish();return}t.side==="single"||o.acceptedSides.includes(t.side)||o.reason==="side_missing"?(n.settle(t.side,{ok:!0}),c?.documentType!=="passport"&&n.handle.setSide(o.side)):n.settle(t.side,{ok:!1,issue:"reread"})},k=(t,n)=>({...t,issuer:c?.issuer??null,documentType:c?.documentType??null,captureSide:c===null?null:c.documentType==="passport"?"single":t.side,selectDocument:(r,s)=>{if(!H(t.documents).includes(r)||!B(t.documents,r).includes(s))throw new RangeError(`${s} from ${r} is not accepted`);(c?.issuer!==r||c.documentType!==s)&&y(),c={issuer:r,documentType:s},n()},capture:r=>{if(c===null)throw new Error("selectDocument() first");if(u!==null&&u.video===r.video)return u.flow.handle;y();let s=c,p=s.documentType==="passport"?"single":t.acceptedSides.length>0?t.side:void 0,v=O({video:r.video,documentType:s.documentType,issuer:s.issuer,...p!==void 0?{side:p}:{},...r.keepScreenAwake!==void 0?{keepScreenAwake:r.keepScreenAwake}:{},...r.liveMrz!==void 0?{liveMrz:r.liveMrz}:{}},{...e.documentInternals??{},...(()=>{let o=e.currentView()?.capture?.document,f=e.documentInternals?.blurRefuseSharpnessMax??o?.scan?.blurRefuseSharpnessMax;return{engineOptions:{camera:x(o?.camera),shutter:V(o?.scan),guideLock:T(o?.guide),...e.documentInternals?.engineOptions??{}},...typeof f=="number"&&Number.isFinite(f)&&f>=0&&f<=1?{blurRefuseSharpnessMax:f}:{}}})(),deferRead:!0,...(()=>{let o=e.currentView();if(o===null||e.documentInternals?.webOcr!==void 0)return{};let f=j(e.runtime.client);return{webOcr:{captureDocument:o.capture?.document,salt:o.sessionId,baseUrl:G(e.runtime.client),...f!==void 0?{reports:f}:{}}}})()});return u={video:r.video,flow:v},v.handle.on("captured",o=>{g=g.then(()=>C(o,v)).catch(()=>{})}),v.handle}}),m=null,h=null,P=new Set,b=e.runtime.client;e.runtime.client=new Proxy(b,{get(t,n){if(n==="submitCheck")return(h??t).submitCheck.bind(h??t);let r=Reflect.get(t,n);return typeof r=="function"?r.bind(t):r}});let D=()=>{m?.destroy(),m=null,h=null},i=t=>{let n=e.currentView(),r=n===null?null:w(n,{isMobile:e.isMobile()});if(n===null||r?.kind!=="liveness"||r.livePhoto?.icao!==!0)return;if(m===null){let o=F({tuning:n.capture?.icao??null,tuningVersion:n.capture?.tuningVersion??null,...r.icao!=null?{policy:r.icao.policy}:{},still:r.livePhoto.still,...t.assetBaseUrl!==void 0?{assetBaseUrl:t.assetBaseUrl}:{}},e.livePhotoInternals);m=o,h=o.decorate(b),o.onGate(f=>{for(let S of P)S(f)})}let s=m,p=e.baseCapture??{},v=p.engineOptions?.telemetry;return{...p,engineOptions:{...p.engineOptions??{},measureQuality:s.engineOptions.measureQuality,telemetry:o=>{v?.(o),s.engineOptions.telemetry(o)}}}},l=z({keptPortraitInput:()=>m?.lastPortraitInput()??null,runner:()=>a,currentView:e.currentView,destroyed:e.destroyed,isMobile:e.isMobile,...e.portraitInternals!==void 0?{internals:e.portraitInternals}:{}}),d=U({...e,bindDocument:k,bindPortrait:l.bind,onLivePhoto:t=>(P.add(t),()=>P.delete(t))});return a=d,{...d,captureInternals:i,destroy:()=>{y(),l.destroy(),D(),P.clear()}}}export{le as createPlanRunner,j as reportSink,G as sdkAssetBase};
|
|
@@ -241,8 +241,13 @@ declare function resolveIcaoTuning(raw: unknown, tuningVersion?: unknown): Resol
|
|
|
241
241
|
|
|
242
242
|
/** Session lifecycle status (spec §4 two-field status/outcome model). */
|
|
243
243
|
type SessionStatus = "created" | "in_progress" | "review_pending" | "completed" | "expired" | "failed";
|
|
244
|
-
/**
|
|
245
|
-
|
|
244
|
+
/**
|
|
245
|
+
* Terminal verdict, orthogonal to `status`; `null` until terminal/review.
|
|
246
|
+
* `superseded` (status `completed`): the session waited for a review and a
|
|
247
|
+
* newer attempt of the same person took that review over; its review step
|
|
248
|
+
* failed with `superseded_by_retry`, and the verdict is on the newer session.
|
|
249
|
+
*/
|
|
250
|
+
type SessionOutcome = "approved" | "review" | "rejected" | "superseded";
|
|
246
251
|
/**
|
|
247
252
|
* What a finished session proved (spec 2026-10-29 §3.2): `1` a live, real
|
|
248
253
|
* person, `2` that person's identity, `3` an identity corroborated by an
|
|
@@ -262,7 +267,7 @@ type CheckState = "pending" | "input_required" | "processing" | "passed" | "fail
|
|
|
262
267
|
type CheckType = "liveness" | "face_match" | "doc_ocr" | "population_registry" | "phone_otp" | "nfc_chip" | "email_otp" | "portrait_icao" | "eid_auth";
|
|
263
268
|
type LivenessReason = "no_face" | "media_unreadable" | "clip_too_short" | "spoof_detected" | "review_band" | "liveness_inconclusive" | "device_integrity_failed" | "mobile_required" | "uncalibrated_capture_channel" | "capture_back_camera" | "capture_not_upright" | "camera_unavailable";
|
|
264
269
|
type PopulationReason = "registry_record_not_found" | "nni_not_found" | "id_number_invalid" | "nni_invalid" | "registry_unavailable" | "result_from_cache" | "nationality_not_allowed" | "underage" | "age_unverifiable" | "name_mismatch" | "birth_date_mismatch" | "nationality_mismatch" | "id_number_recheck" | "nni_recheck";
|
|
265
|
-
type FaceMatchReason = "no_face_source" | "no_face_reference" | "low_quality_reference" | "below_threshold" | "review_band" | "match_inconclusive" | "subject_revoked" | "probe_not_from_liveness";
|
|
270
|
+
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" | "prior_review_rejected";
|
|
266
271
|
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";
|
|
267
272
|
/**
|
|
268
273
|
* Profile v2 step 3 matching reasons: a field the partner sent at session
|
|
@@ -332,7 +337,14 @@ type CheckReason = LivenessReason | PopulationReason | FaceMatchReason | DocReas
|
|
|
332
337
|
* not the bound tester's; `tester_phone_mismatch` (phone_otp) when the
|
|
333
338
|
* number is not the one the tester enrolled with.
|
|
334
339
|
*/
|
|
335
|
-
| "tester_document_mismatch" | "tester_phone_mismatch"
|
|
340
|
+
| "tester_document_mismatch" | "tester_phone_mismatch"
|
|
341
|
+
/**
|
|
342
|
+
* Review outcomes, on any reviewed step: `superseded_by_retry` (a newer
|
|
343
|
+
* attempt of the same person took the review over; the session outcome is
|
|
344
|
+
* `superseded`) and `review_split` (two reviewers disagreed and nobody
|
|
345
|
+
* settled it before the review deadline; the session is rejected).
|
|
346
|
+
*/
|
|
347
|
+
| "superseded_by_retry" | "review_split";
|
|
336
348
|
/**
|
|
337
349
|
* Session-level failure reasons: the session was stopped by a policy gate,
|
|
338
350
|
* not by a failed check. All are terminal (no retry on this session):
|
|
@@ -241,8 +241,13 @@ declare function resolveIcaoTuning(raw: unknown, tuningVersion?: unknown): Resol
|
|
|
241
241
|
|
|
242
242
|
/** Session lifecycle status (spec §4 two-field status/outcome model). */
|
|
243
243
|
type SessionStatus = "created" | "in_progress" | "review_pending" | "completed" | "expired" | "failed";
|
|
244
|
-
/**
|
|
245
|
-
|
|
244
|
+
/**
|
|
245
|
+
* Terminal verdict, orthogonal to `status`; `null` until terminal/review.
|
|
246
|
+
* `superseded` (status `completed`): the session waited for a review and a
|
|
247
|
+
* newer attempt of the same person took that review over; its review step
|
|
248
|
+
* failed with `superseded_by_retry`, and the verdict is on the newer session.
|
|
249
|
+
*/
|
|
250
|
+
type SessionOutcome = "approved" | "review" | "rejected" | "superseded";
|
|
246
251
|
/**
|
|
247
252
|
* What a finished session proved (spec 2026-10-29 §3.2): `1` a live, real
|
|
248
253
|
* person, `2` that person's identity, `3` an identity corroborated by an
|
|
@@ -262,7 +267,7 @@ type CheckState = "pending" | "input_required" | "processing" | "passed" | "fail
|
|
|
262
267
|
type CheckType = "liveness" | "face_match" | "doc_ocr" | "population_registry" | "phone_otp" | "nfc_chip" | "email_otp" | "portrait_icao" | "eid_auth";
|
|
263
268
|
type LivenessReason = "no_face" | "media_unreadable" | "clip_too_short" | "spoof_detected" | "review_band" | "liveness_inconclusive" | "device_integrity_failed" | "mobile_required" | "uncalibrated_capture_channel" | "capture_back_camera" | "capture_not_upright" | "camera_unavailable";
|
|
264
269
|
type PopulationReason = "registry_record_not_found" | "nni_not_found" | "id_number_invalid" | "nni_invalid" | "registry_unavailable" | "result_from_cache" | "nationality_not_allowed" | "underage" | "age_unverifiable" | "name_mismatch" | "birth_date_mismatch" | "nationality_mismatch" | "id_number_recheck" | "nni_recheck";
|
|
265
|
-
type FaceMatchReason = "no_face_source" | "no_face_reference" | "low_quality_reference" | "below_threshold" | "review_band" | "match_inconclusive" | "subject_revoked" | "probe_not_from_liveness";
|
|
270
|
+
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" | "prior_review_rejected";
|
|
266
271
|
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";
|
|
267
272
|
/**
|
|
268
273
|
* Profile v2 step 3 matching reasons: a field the partner sent at session
|
|
@@ -332,7 +337,14 @@ type CheckReason = LivenessReason | PopulationReason | FaceMatchReason | DocReas
|
|
|
332
337
|
* not the bound tester's; `tester_phone_mismatch` (phone_otp) when the
|
|
333
338
|
* number is not the one the tester enrolled with.
|
|
334
339
|
*/
|
|
335
|
-
| "tester_document_mismatch" | "tester_phone_mismatch"
|
|
340
|
+
| "tester_document_mismatch" | "tester_phone_mismatch"
|
|
341
|
+
/**
|
|
342
|
+
* Review outcomes, on any reviewed step: `superseded_by_retry` (a newer
|
|
343
|
+
* attempt of the same person took the review over; the session outcome is
|
|
344
|
+
* `superseded`) and `review_split` (two reviewers disagreed and nobody
|
|
345
|
+
* settled it before the review deadline; the session is rejected).
|
|
346
|
+
*/
|
|
347
|
+
| "superseded_by_retry" | "review_split";
|
|
336
348
|
/**
|
|
337
349
|
* Session-level failure reasons: the session was stopped by a policy gate,
|
|
338
350
|
* not by a failed check. All are terminal (no retry on this session):
|
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.16",
|
|
4
4
|
"description": "Sekyro AI web SDK \u2014 browser liveness capture, hosted-verification client and popup embed for Sekyro AI identity verification",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
package/sbom.cdx.json
CHANGED
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"type": "application",
|
|
98
98
|
"name": "web",
|
|
99
99
|
"group": "@sekyro",
|
|
100
|
-
"version": "0.1.0-rc.
|
|
101
|
-
"bom-ref": "@sekyro/web@0.1.0-rc.
|
|
100
|
+
"version": "0.1.0-rc.16",
|
|
101
|
+
"bom-ref": "@sekyro/web@0.1.0-rc.16",
|
|
102
102
|
"description": "Sekyro AI web SDK — browser liveness capture, hosted-verification client and popup embed for Sekyro AI identity verification",
|
|
103
103
|
"licenses": [
|
|
104
104
|
{
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
],
|
|
111
|
-
"purl": "pkg:npm/%40sekyro/web@0.1.0-rc.
|
|
111
|
+
"purl": "pkg:npm/%40sekyro/web@0.1.0-rc.16?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2FIBTIKAR-Technologies%2Fibtikar-identity.git%23packages%2Fsekyro-web",
|
|
112
112
|
"externalReferences": [
|
|
113
113
|
{
|
|
114
114
|
"url": "https://github.com/IBTIKAR-Technologies/ibtikar-identity/issues",
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"name": "tasks-vision",
|
|
151
151
|
"group": "@mediapipe",
|
|
152
152
|
"version": "0.10.35",
|
|
153
|
-
"bom-ref": "@sekyro/web@0.1.0-rc.
|
|
153
|
+
"bom-ref": "@sekyro/web@0.1.0-rc.16|@mediapipe/tasks-vision@0.10.35",
|
|
154
154
|
"licenses": [
|
|
155
155
|
{
|
|
156
156
|
"license": {
|
|
@@ -183,13 +183,13 @@
|
|
|
183
183
|
],
|
|
184
184
|
"dependencies": [
|
|
185
185
|
{
|
|
186
|
-
"ref": "@sekyro/web@0.1.0-rc.
|
|
186
|
+
"ref": "@sekyro/web@0.1.0-rc.16",
|
|
187
187
|
"dependsOn": [
|
|
188
|
-
"@sekyro/web@0.1.0-rc.
|
|
188
|
+
"@sekyro/web@0.1.0-rc.16|@mediapipe/tasks-vision@0.10.35"
|
|
189
189
|
]
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
"ref": "@sekyro/web@0.1.0-rc.
|
|
192
|
+
"ref": "@sekyro/web@0.1.0-rc.16|@mediapipe/tasks-vision@0.10.35"
|
|
193
193
|
}
|
|
194
194
|
]
|
|
195
195
|
}
|