@sekyro/web 0.1.0-rc.20 → 0.1.0-rc.22
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 +58 -0
- package/README.md +12 -11
- package/dist/camera-trait-V4UAOPIQ.js +1 -0
- package/dist/{capture-constraints-B5omafmk.d.cts → capture-constraints-CVqpMNGA.d.cts} +7 -3
- package/dist/{capture-constraints-B5omafmk.d.ts → capture-constraints-CVqpMNGA.d.ts} +7 -3
- package/dist/{capture-session-doc-QA4DOFRF.js → capture-session-doc-YDUKUN3P.js} +1 -1
- package/dist/{capture-session-v3-CNL-GX11.d.cts → capture-session-v3-CkcuPKSD.d.ts} +90 -13
- package/dist/{capture-session-v3-DaBqN8fO.d.ts → capture-session-v3-TJL-0Muv.d.cts} +90 -13
- package/dist/chunk-2KTSNAVR.js +1 -0
- package/dist/chunk-2LDOXGY3.js +1 -0
- package/dist/chunk-32ELI5BZ.js +1 -0
- package/dist/chunk-33KKMPJ5.js +1 -0
- package/dist/chunk-53POX7U4.js +1 -0
- package/dist/chunk-7QZWBDI5.js +1 -0
- package/dist/chunk-7XT5YDSC.js +1 -0
- package/dist/chunk-BATJN3VQ.js +1 -0
- package/dist/chunk-CPUECYAJ.js +1 -0
- package/dist/chunk-FSSMUAKC.js +1 -0
- package/dist/{chunk-IG466TOP.js → chunk-HYGINGDC.js} +1 -1
- package/dist/chunk-LJYMZQY2.js +1 -0
- package/dist/chunk-PZYVSLPG.js +1 -0
- package/dist/chunk-RALQBQPT.js +1 -0
- package/dist/chunk-SX7TUC3V.js +1 -0
- package/dist/chunk-TJUM65FN.js +1 -0
- package/dist/chunk-TSA6GHUG.js +1 -0
- package/dist/chunk-VWGKUQ3C.js +1 -0
- package/dist/chunk-Z2BIZYZQ.js +1 -0
- package/dist/chunk-Z5D7SZUW.js +1 -0
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.js +1 -1
- package/dist/clip-inspect-DLJXVKV6.js +1 -0
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +5 -5
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +1 -1
- package/dist/core/v3/detect-worker.cjs +1 -1
- package/dist/core/v3/detect-worker.d.cts +1 -1
- package/dist/core/v3/detect-worker.d.ts +1 -1
- package/dist/core/v3/detect-worker.js +1 -1
- package/dist/create-document-capture-K6EHRCWN.js +1 -0
- package/dist/create-portrait-capture-5VGYZUOK.js +1 -0
- package/dist/{create-verification-COpe2hxf.d.ts → create-verification-DnyHCSu6.d.cts} +216 -82
- package/dist/{create-verification-BBOUYpga.d.cts → create-verification-DoISHOqL.d.ts} +216 -82
- package/dist/{detect-worker-DclNxkZT.d.cts → detect-worker-CHqsPJoM.d.cts} +19 -2
- package/dist/{detect-worker-DclNxkZT.d.ts → detect-worker-CHqsPJoM.d.ts} +19 -2
- package/dist/{icao-gate-CEGvJR3q.d.ts → icao-gate-BFlSZYCZ.d.cts} +36 -4
- package/dist/icao-gate-T3BTOKFJ.js +1 -0
- package/dist/{icao-gate-l40OU6x1.d.cts → icao-gate-lZ_fHE7k.d.ts} +36 -4
- package/dist/{icao-policy-BgI1Y870.d.ts → icao-policy-BOcutYdD.d.ts} +3 -3
- package/dist/{icao-policy-C7fIdRzo.d.cts → icao-policy-JZH0UdmD.d.cts} +3 -3
- package/dist/icao-tuning-4ETMF53W.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +11 -15
- package/dist/index.d.ts +11 -15
- package/dist/index.js +1 -1
- package/dist/internal/index.cjs +1 -1
- package/dist/internal/index.d.cts +53 -34
- package/dist/internal/index.d.ts +53 -34
- package/dist/internal/index.js +1 -1
- package/dist/plan-runner-3ZMV7SFQ.js +1 -0
- package/dist/popup/index.cjs +1 -1
- package/dist/popup/index.d.cts +3 -3
- package/dist/popup/index.d.ts +3 -3
- package/dist/popup/index.js +1 -1
- package/dist/{print-AYSCRSZB.js → print-SEWS3VHQ.js} +1 -1
- package/dist/{turnstile-FATNZ4AG.js → turnstile-2J3LUHCG.js} +1 -1
- package/dist/{types-Dpfg2cO8.d.cts → types-DwfyBTte.d.cts} +167 -79
- package/dist/{types-Dpfg2cO8.d.ts → types-DwfyBTte.d.ts} +167 -79
- package/package.json +1 -1
- package/sbom.cdx.json +10 -10
- package/dist/camera-trait-45MJTW4K.js +0 -1
- package/dist/chunk-5ZKQHFFW.js +0 -1
- package/dist/chunk-7ZCZY3ZP.js +0 -1
- package/dist/chunk-BPE5NSQ2.js +0 -1
- package/dist/chunk-CQ7SKLMC.js +0 -1
- package/dist/chunk-FGOVIGGL.js +0 -1
- package/dist/chunk-FUHDOEBP.js +0 -1
- package/dist/chunk-GT2ZLGF7.js +0 -1
- package/dist/chunk-KHR4U2SZ.js +0 -1
- package/dist/chunk-KZBBB5B2.js +0 -1
- package/dist/chunk-NJML6FMD.js +0 -1
- package/dist/chunk-O5WKNZ2C.js +0 -1
- package/dist/chunk-OKWG3PVH.js +0 -1
- package/dist/chunk-TQB3URP2.js +0 -1
- package/dist/chunk-U6S7SCBY.js +0 -1
- package/dist/chunk-U6TYL2IJ.js +0 -1
- package/dist/chunk-W2WD7PR2.js +0 -1
- package/dist/chunk-XCKE2MJL.js +0 -1
- package/dist/chunk-ZLWH4RBO.js +0 -1
- package/dist/create-document-capture-GJXBQMTC.js +0 -1
- package/dist/create-portrait-capture-MOS2D7CL.js +0 -1
- package/dist/icao-gate-PWBMKRGC.js +0 -1
- package/dist/icao-tuning-4GGVX6B4.js +0 -1
- package/dist/plan-runner-35655N4Z.js +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-
|
|
2
|
-
export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as ChoiceOptionSnapshot, n as ChoiceSnapshot, o as ChoiceStepHandle, p as ContactChoiceSnapshot, q as ContactChoiceStepHandle, r as DEFAULT_API_ORIGIN, s as DOCUMENT_TYPE_ORDER, t as DeriveStepEnv, u as DocumentCaptureEvents, v as DocumentCaptureState, w as DocumentFeedback, x as DocumentFeedbackKey, y as DocumentGateUpdate, z as DocumentGuide, B as DocumentGuideMeasure, E as DocumentLiveMrzOptions, F as DocumentMrzUpdate, G as DocumentPoint, H as DocumentQuad, I as DocumentReticle, J as DocumentScanPhase, K as DocumentScanUpdate, L as DocumentSide, M as DocumentSnapshot, N as DocumentStepHandle, O as EidSnapshot, Q as EidStepHandle, R as EmailOtpSnapshot, S as EmailOtpStepHandle, T as EmailSource, U as GateHint, V as GateUpdate, W as ISSUER_CODES, X as IdentitySummarySnapshot, Y as IdentitySummaryStepHandle, Z as InLaneSwitch, _ as LivePhotoGateUpdate, $ as LivePhotoPlan, a0 as LivenessAssetsStatus, a1 as LivenessCaptureEvents, a2 as LivenessCaptureHandle, a3 as LivenessCaptureOptions, a4 as LivenessSnapshot, a5 as LivenessStartOptions, a6 as LivenessStepHandle, a7 as MethodSnapshot, a8 as MethodStepHandle, a9 as MobileRequiredSnapshot, aa as MobileRequiredStepHandle, ab as OtpChannel, ac as OtpNumberSource, ad as PLATFORM_UNSUPPORTED, ae as PhoneOtpSnapshot, af as PhoneOtpStepHandle, ag as PhotoSourceState, ah as PlanChoiceSnapshot, ai as PortraitCaptureEvents, aj as PortraitCaptureState, ak as PortraitGateUpdate, al as PortraitSnapshot, am as PortraitStartOptions, an as PortraitStepHandle, ao as PreloadLivenessAssetsOptions, ap as ProcessingSnapshot, aq as ProcessingStepHandle, ar as ReasonCode, as as RegistrySnapshot, at as RegistrySource, au as RegistryStepHandle, av as ResultDisplay, aw as ResultSnapshot, ax as ResultStepHandle, ay as SdkFailureReason, az as StepAttempts, aA as StepContext, aB as StepSnapshot, aC as UnsupportedReason, aD as UnsupportedSnapshot, aE as UnsupportedStepHandle, aF as Verification, aG as VerificationBusy, aH as VerificationEvents, aI as VerificationLocale, aJ as VerificationOptions, aK as VerificationResult, aL as VerificationStatus, aM as VerificationStep, aN as WEB_IDENTITY_METHODS, aO as acceptedIssuers, aP as acceptedTypesFor, aQ as cameraUnavailableCauseOf, aR as createLivenessCapture, aS as createVerification, aT as deriveStep, aU as flagOf, aV as getLivenessAssetsStatus, aW as laneOf, aX as otherOptions, aY as preloadLivenessAssets, aZ as releaseLivenessAssets, a_ as resolveAcceptedDocuments, a$ as sectionOf, b0 as subscribeLivenessAssets } from './create-verification-
|
|
3
|
-
import {
|
|
4
|
-
export { A as AcceptedDocumentType,
|
|
1
|
+
import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-DnyHCSu6.cjs';
|
|
2
|
+
export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as ChoiceOptionSnapshot, n as ChoiceSnapshot, o as ChoiceStepHandle, p as ContactChoiceSnapshot, q as ContactChoiceStepHandle, r as DEFAULT_API_ORIGIN, s as DOCUMENT_TYPE_ORDER, t as DeriveStepEnv, u as DocumentCaptureEvents, v as DocumentCaptureState, w as DocumentFeedback, x as DocumentFeedbackKey, y as DocumentGateUpdate, z as DocumentGuide, B as DocumentGuideMeasure, E as DocumentLiveMrzOptions, F as DocumentMrzUpdate, G as DocumentPoint, H as DocumentQuad, I as DocumentReticle, J as DocumentScanPhase, K as DocumentScanUpdate, L as DocumentSide, M as DocumentSnapshot, N as DocumentStepHandle, O as EidSnapshot, Q as EidStepHandle, R as EmailOtpSnapshot, S as EmailOtpStepHandle, T as EmailSource, U as GateHint, V as GateUpdate, W as ISSUER_CODES, X as IdentitySummarySnapshot, Y as IdentitySummaryStepHandle, Z as InLaneSwitch, _ as LivePhotoGateUpdate, $ as LivePhotoPlan, a0 as LivenessAssetsStatus, a1 as LivenessCaptureEvents, a2 as LivenessCaptureHandle, a3 as LivenessCaptureOptions, a4 as LivenessSnapshot, a5 as LivenessStartOptions, a6 as LivenessStepHandle, a7 as MethodSnapshot, a8 as MethodStepHandle, a9 as MobileRequiredSnapshot, aa as MobileRequiredStepHandle, ab as OtpChannel, ac as OtpNumberSource, ad as PLATFORM_UNSUPPORTED, ae as PhoneOtpSnapshot, af as PhoneOtpStepHandle, ag as PhotoSourceState, ah as PlanChoiceSnapshot, ai as PortraitCaptureEvents, aj as PortraitCaptureState, ak as PortraitGateUpdate, al as PortraitSnapshot, am as PortraitStartOptions, an as PortraitStepHandle, ao as PreloadLivenessAssetsOptions, ap as ProcessingSnapshot, aq as ProcessingStepHandle, ar as ReasonCode, as as RegistrySnapshot, at as RegistrySource, au as RegistryStepHandle, av as ResultDisplay, aw as ResultSnapshot, ax as ResultStepHandle, ay as SdkFailureReason, az as StepAttempts, aA as StepContext, aB as StepSnapshot, aC as UnsupportedReason, aD as UnsupportedSnapshot, aE as UnsupportedStepHandle, aF as Verification, aG as VerificationBusy, aH as VerificationEvents, aI as VerificationLocale, aJ as VerificationOptions, aK as VerificationResult, aL as VerificationStatus, aM as VerificationStep, aN as WEB_IDENTITY_METHODS, aO as acceptedIssuers, aP as acceptedTypesFor, aQ as cameraUnavailableCauseOf, aR as createLivenessCapture, aS as createVerification, aT as deriveStep, aU as flagOf, aV as getLivenessAssetsStatus, aW as laneOf, aX as otherOptions, aY as preloadLivenessAssets, aZ as releaseLivenessAssets, a_ as resolveAcceptedDocuments, a$ as sectionOf, b0 as subscribeLivenessAssets } from './create-verification-DnyHCSu6.cjs';
|
|
3
|
+
import { aK as ScreenRampColour } from './types-DwfyBTte.cjs';
|
|
4
|
+
export { A as AcceptedDocumentType, aL as AgeEstimationReason, aM as CameraUnavailableCause, aN as CaptureIssueReport, b as CaptureMode, aO as CaptureProvenance, f as CheckReason, g as CheckState, h as CheckType, i as ClosedBy, l as ContactChannel, D as DecisionReason, o as DocReason, E as EidAfterPass, q as EidAuthInput, r as EidReason, t as EmailOtpReason, u as FaceMatchReason, H as HostedAcceptedDocuments, aP as HostedBranding, aQ as HostedBrandingColorKey, v as HostedCaptureTuning, w as HostedConsentView, x as HostedDocumentCaptureTuning, y as HostedDocumentScanTuning, z as HostedDocumentsView, B as HostedEidView, G as HostedEmailOtpView, I as HostedFlowRef, J as HostedIcaoPolicy, K as HostedIntegrity, L as HostedLivePhotoTuning, aR as HostedLivenessCaptureTuning, M as HostedNativeCaptureTuning, N as HostedOcrTuning, O as HostedOtpView, P as HostedPlanView, Q as HostedPortraitPendingFix, R as HostedPortraitView, S as HostedSessionView, T as HostedSimulationView, U as HostedStepView, V as HostedVoiceLocale, W as HostedVoiceView, aS as IcaoCaptureTuning, X as IcaoCriterion, Y as IcaoReportEntry, Z as IdentityConfirmDecision, _ as IdentityMethod, $ as IdentitySummarySource, a0 as IdentitySummaryView, a3 as LivenessReason, a4 as MatchReason, a6 as MethodChoiceView, a7 as NationalEidOption, a8 as NfcChipReason, a9 as NfcStepView, aa as OtpChoiceView, ab as PhoneCountryRule, ac as PhoneFormat, ae as PhoneOtpReason, af as PhotoSource, ag as PhotoSourcePick, ah as PlanAttempts, ai as PlanChoiceKind, aj as PlanChoiceOption, ak as PlanChoiceView, al as PlanSectionView, am as PlanStepView, ao as PopulationReason, ap as PortraitFix, aq as PortraitFixReviewInput, ar as PortraitIcaoInput, as as PortraitIcaoReason, at as PortraitOutputFormat, ax as ResolvedCaptureMode, aT as RetakeHint, aU as ScreenRampChallenge, aV as ScreenRampPaint, aW as ScreenRampRendered, aX as ScreenRampReport, ay as SessionDecidingStep, az as SessionFailureReason, aA as SessionReason, aB as SessionStatus, aE as SimulatedCaptureInput, aF as StepResult, aG as StepSection, aI as VerificationAssurance, aJ as VerificationLevel } from './types-DwfyBTte.cjs';
|
|
5
5
|
export { OpenHostedOptions, PopupBlocked, PopupHandle, SEKYRO_EVENTS, SekyroEvent, SekyroEventName, openHosted } from './popup/index.cjs';
|
|
6
|
-
export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-
|
|
7
|
-
export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-
|
|
8
|
-
import './detect-worker-
|
|
9
|
-
import './capture-session-v3-
|
|
6
|
+
export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-JZH0UdmD.cjs';
|
|
7
|
+
export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-BFlSZYCZ.cjs';
|
|
8
|
+
import './detect-worker-CHqsPJoM.cjs';
|
|
9
|
+
import './capture-session-v3-TJL-0Muv.cjs';
|
|
10
10
|
|
|
11
|
-
/** Each colour holds for 400 ms (the service measures the mean chroma per segment). */
|
|
12
|
-
declare const SCREEN_RAMP_SEGMENT_MS = 400;
|
|
13
|
-
/** The layer returns to transparent at 2,000 ms on the clip timeline (before the 2,500 ms clip ends). */
|
|
14
|
-
declare const SCREEN_RAMP_END_MS = 2000;
|
|
15
11
|
/** The closed palette, in the order the backend lists it. */
|
|
16
12
|
declare const SCREEN_RAMP_COLOURS: readonly ScreenRampColour[];
|
|
17
|
-
/** The CSS colour of a palette entry (`rgb(r, g, b)`). */
|
|
18
|
-
declare function screenRampColourValue(colour: ScreenRampColour): string;
|
|
13
|
+
/** The CSS colour of a palette entry or of the dark gap (`rgb(r, g, b)`). */
|
|
14
|
+
declare function screenRampColourValue(colour: ScreenRampColour | "dark"): string;
|
|
19
15
|
|
|
20
16
|
/** Camera permission as the Permissions API reports it; `'unknown'` where it cannot tell. */
|
|
21
17
|
type CameraPermissionState = "granted" | "prompt" | "denied" | "unknown";
|
|
@@ -108,4 +104,4 @@ declare function createPortraitCapture(options: PortraitCaptureOptions): Portrai
|
|
|
108
104
|
/** Prefetch the portrait engine (call when the portrait step mounts). */
|
|
109
105
|
declare function warmPortraitCapture(): void;
|
|
110
106
|
|
|
111
|
-
export { type CameraPermissionState, DocumentCaptureHandle, DocumentCaptureOptions, type IdNumber, type IdNumberType, InvalidInputError, OtpInputError, PortraitCaptureHandle, PortraitCaptureOptions, SCREEN_RAMP_COLOURS,
|
|
107
|
+
export { type CameraPermissionState, DocumentCaptureHandle, DocumentCaptureOptions, type IdNumber, type IdNumberType, InvalidInputError, OtpInputError, PortraitCaptureHandle, PortraitCaptureOptions, SCREEN_RAMP_COLOURS, ScreenRampColour, createDocumentCapture, createPortraitCapture, hasMultipleCameras, isValidIdNumber, isValidNni, normalizeDigits, normalizeNni, queryCameraPermission, screenRampColourValue, subscribeCameraPermission, warmDocumentCapture, warmPortraitCapture };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-
|
|
2
|
-
export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as ChoiceOptionSnapshot, n as ChoiceSnapshot, o as ChoiceStepHandle, p as ContactChoiceSnapshot, q as ContactChoiceStepHandle, r as DEFAULT_API_ORIGIN, s as DOCUMENT_TYPE_ORDER, t as DeriveStepEnv, u as DocumentCaptureEvents, v as DocumentCaptureState, w as DocumentFeedback, x as DocumentFeedbackKey, y as DocumentGateUpdate, z as DocumentGuide, B as DocumentGuideMeasure, E as DocumentLiveMrzOptions, F as DocumentMrzUpdate, G as DocumentPoint, H as DocumentQuad, I as DocumentReticle, J as DocumentScanPhase, K as DocumentScanUpdate, L as DocumentSide, M as DocumentSnapshot, N as DocumentStepHandle, O as EidSnapshot, Q as EidStepHandle, R as EmailOtpSnapshot, S as EmailOtpStepHandle, T as EmailSource, U as GateHint, V as GateUpdate, W as ISSUER_CODES, X as IdentitySummarySnapshot, Y as IdentitySummaryStepHandle, Z as InLaneSwitch, _ as LivePhotoGateUpdate, $ as LivePhotoPlan, a0 as LivenessAssetsStatus, a1 as LivenessCaptureEvents, a2 as LivenessCaptureHandle, a3 as LivenessCaptureOptions, a4 as LivenessSnapshot, a5 as LivenessStartOptions, a6 as LivenessStepHandle, a7 as MethodSnapshot, a8 as MethodStepHandle, a9 as MobileRequiredSnapshot, aa as MobileRequiredStepHandle, ab as OtpChannel, ac as OtpNumberSource, ad as PLATFORM_UNSUPPORTED, ae as PhoneOtpSnapshot, af as PhoneOtpStepHandle, ag as PhotoSourceState, ah as PlanChoiceSnapshot, ai as PortraitCaptureEvents, aj as PortraitCaptureState, ak as PortraitGateUpdate, al as PortraitSnapshot, am as PortraitStartOptions, an as PortraitStepHandle, ao as PreloadLivenessAssetsOptions, ap as ProcessingSnapshot, aq as ProcessingStepHandle, ar as ReasonCode, as as RegistrySnapshot, at as RegistrySource, au as RegistryStepHandle, av as ResultDisplay, aw as ResultSnapshot, ax as ResultStepHandle, ay as SdkFailureReason, az as StepAttempts, aA as StepContext, aB as StepSnapshot, aC as UnsupportedReason, aD as UnsupportedSnapshot, aE as UnsupportedStepHandle, aF as Verification, aG as VerificationBusy, aH as VerificationEvents, aI as VerificationLocale, aJ as VerificationOptions, aK as VerificationResult, aL as VerificationStatus, aM as VerificationStep, aN as WEB_IDENTITY_METHODS, aO as acceptedIssuers, aP as acceptedTypesFor, aQ as cameraUnavailableCauseOf, aR as createLivenessCapture, aS as createVerification, aT as deriveStep, aU as flagOf, aV as getLivenessAssetsStatus, aW as laneOf, aX as otherOptions, aY as preloadLivenessAssets, aZ as releaseLivenessAssets, a_ as resolveAcceptedDocuments, a$ as sectionOf, b0 as subscribeLivenessAssets } from './create-verification-
|
|
3
|
-
import {
|
|
4
|
-
export { A as AcceptedDocumentType,
|
|
1
|
+
import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-DoISHOqL.js';
|
|
2
|
+
export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorDetail, g as CaptureErrorKind, h as CaptureErrorPhase, i as CaptureState, j as CapturedArtifacts, k as CapturedDocument, l as CapturedPortrait, m as ChoiceOptionSnapshot, n as ChoiceSnapshot, o as ChoiceStepHandle, p as ContactChoiceSnapshot, q as ContactChoiceStepHandle, r as DEFAULT_API_ORIGIN, s as DOCUMENT_TYPE_ORDER, t as DeriveStepEnv, u as DocumentCaptureEvents, v as DocumentCaptureState, w as DocumentFeedback, x as DocumentFeedbackKey, y as DocumentGateUpdate, z as DocumentGuide, B as DocumentGuideMeasure, E as DocumentLiveMrzOptions, F as DocumentMrzUpdate, G as DocumentPoint, H as DocumentQuad, I as DocumentReticle, J as DocumentScanPhase, K as DocumentScanUpdate, L as DocumentSide, M as DocumentSnapshot, N as DocumentStepHandle, O as EidSnapshot, Q as EidStepHandle, R as EmailOtpSnapshot, S as EmailOtpStepHandle, T as EmailSource, U as GateHint, V as GateUpdate, W as ISSUER_CODES, X as IdentitySummarySnapshot, Y as IdentitySummaryStepHandle, Z as InLaneSwitch, _ as LivePhotoGateUpdate, $ as LivePhotoPlan, a0 as LivenessAssetsStatus, a1 as LivenessCaptureEvents, a2 as LivenessCaptureHandle, a3 as LivenessCaptureOptions, a4 as LivenessSnapshot, a5 as LivenessStartOptions, a6 as LivenessStepHandle, a7 as MethodSnapshot, a8 as MethodStepHandle, a9 as MobileRequiredSnapshot, aa as MobileRequiredStepHandle, ab as OtpChannel, ac as OtpNumberSource, ad as PLATFORM_UNSUPPORTED, ae as PhoneOtpSnapshot, af as PhoneOtpStepHandle, ag as PhotoSourceState, ah as PlanChoiceSnapshot, ai as PortraitCaptureEvents, aj as PortraitCaptureState, ak as PortraitGateUpdate, al as PortraitSnapshot, am as PortraitStartOptions, an as PortraitStepHandle, ao as PreloadLivenessAssetsOptions, ap as ProcessingSnapshot, aq as ProcessingStepHandle, ar as ReasonCode, as as RegistrySnapshot, at as RegistrySource, au as RegistryStepHandle, av as ResultDisplay, aw as ResultSnapshot, ax as ResultStepHandle, ay as SdkFailureReason, az as StepAttempts, aA as StepContext, aB as StepSnapshot, aC as UnsupportedReason, aD as UnsupportedSnapshot, aE as UnsupportedStepHandle, aF as Verification, aG as VerificationBusy, aH as VerificationEvents, aI as VerificationLocale, aJ as VerificationOptions, aK as VerificationResult, aL as VerificationStatus, aM as VerificationStep, aN as WEB_IDENTITY_METHODS, aO as acceptedIssuers, aP as acceptedTypesFor, aQ as cameraUnavailableCauseOf, aR as createLivenessCapture, aS as createVerification, aT as deriveStep, aU as flagOf, aV as getLivenessAssetsStatus, aW as laneOf, aX as otherOptions, aY as preloadLivenessAssets, aZ as releaseLivenessAssets, a_ as resolveAcceptedDocuments, a$ as sectionOf, b0 as subscribeLivenessAssets } from './create-verification-DoISHOqL.js';
|
|
3
|
+
import { aK as ScreenRampColour } from './types-DwfyBTte.js';
|
|
4
|
+
export { A as AcceptedDocumentType, aL as AgeEstimationReason, aM as CameraUnavailableCause, aN as CaptureIssueReport, b as CaptureMode, aO as CaptureProvenance, f as CheckReason, g as CheckState, h as CheckType, i as ClosedBy, l as ContactChannel, D as DecisionReason, o as DocReason, E as EidAfterPass, q as EidAuthInput, r as EidReason, t as EmailOtpReason, u as FaceMatchReason, H as HostedAcceptedDocuments, aP as HostedBranding, aQ as HostedBrandingColorKey, v as HostedCaptureTuning, w as HostedConsentView, x as HostedDocumentCaptureTuning, y as HostedDocumentScanTuning, z as HostedDocumentsView, B as HostedEidView, G as HostedEmailOtpView, I as HostedFlowRef, J as HostedIcaoPolicy, K as HostedIntegrity, L as HostedLivePhotoTuning, aR as HostedLivenessCaptureTuning, M as HostedNativeCaptureTuning, N as HostedOcrTuning, O as HostedOtpView, P as HostedPlanView, Q as HostedPortraitPendingFix, R as HostedPortraitView, S as HostedSessionView, T as HostedSimulationView, U as HostedStepView, V as HostedVoiceLocale, W as HostedVoiceView, aS as IcaoCaptureTuning, X as IcaoCriterion, Y as IcaoReportEntry, Z as IdentityConfirmDecision, _ as IdentityMethod, $ as IdentitySummarySource, a0 as IdentitySummaryView, a3 as LivenessReason, a4 as MatchReason, a6 as MethodChoiceView, a7 as NationalEidOption, a8 as NfcChipReason, a9 as NfcStepView, aa as OtpChoiceView, ab as PhoneCountryRule, ac as PhoneFormat, ae as PhoneOtpReason, af as PhotoSource, ag as PhotoSourcePick, ah as PlanAttempts, ai as PlanChoiceKind, aj as PlanChoiceOption, ak as PlanChoiceView, al as PlanSectionView, am as PlanStepView, ao as PopulationReason, ap as PortraitFix, aq as PortraitFixReviewInput, ar as PortraitIcaoInput, as as PortraitIcaoReason, at as PortraitOutputFormat, ax as ResolvedCaptureMode, aT as RetakeHint, aU as ScreenRampChallenge, aV as ScreenRampPaint, aW as ScreenRampRendered, aX as ScreenRampReport, ay as SessionDecidingStep, az as SessionFailureReason, aA as SessionReason, aB as SessionStatus, aE as SimulatedCaptureInput, aF as StepResult, aG as StepSection, aI as VerificationAssurance, aJ as VerificationLevel } from './types-DwfyBTte.js';
|
|
5
5
|
export { OpenHostedOptions, PopupBlocked, PopupHandle, SEKYRO_EVENTS, SekyroEvent, SekyroEventName, openHosted } from './popup/index.js';
|
|
6
|
-
export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-
|
|
7
|
-
export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-
|
|
8
|
-
import './detect-worker-
|
|
9
|
-
import './capture-session-v3-
|
|
6
|
+
export { H as HostedApiError, a as HostedErrorDetails, b as HostedErrorIssue, K as KNOWN_CODES, c as KnownCode, i as icaoPolicyOf, d as isKnownCode } from './icao-policy-BOcutYdD.js';
|
|
7
|
+
export { c as HeadPose, I as IcaoCoachKey, d as IcaoCriterionState, e as IcaoGateCriterion, f as IcaoGateSummary, g as IcaoGateUpdate } from './icao-gate-lZ_fHE7k.js';
|
|
8
|
+
import './detect-worker-CHqsPJoM.js';
|
|
9
|
+
import './capture-session-v3-CkcuPKSD.js';
|
|
10
10
|
|
|
11
|
-
/** Each colour holds for 400 ms (the service measures the mean chroma per segment). */
|
|
12
|
-
declare const SCREEN_RAMP_SEGMENT_MS = 400;
|
|
13
|
-
/** The layer returns to transparent at 2,000 ms on the clip timeline (before the 2,500 ms clip ends). */
|
|
14
|
-
declare const SCREEN_RAMP_END_MS = 2000;
|
|
15
11
|
/** The closed palette, in the order the backend lists it. */
|
|
16
12
|
declare const SCREEN_RAMP_COLOURS: readonly ScreenRampColour[];
|
|
17
|
-
/** The CSS colour of a palette entry (`rgb(r, g, b)`). */
|
|
18
|
-
declare function screenRampColourValue(colour: ScreenRampColour): string;
|
|
13
|
+
/** The CSS colour of a palette entry or of the dark gap (`rgb(r, g, b)`). */
|
|
14
|
+
declare function screenRampColourValue(colour: ScreenRampColour | "dark"): string;
|
|
19
15
|
|
|
20
16
|
/** Camera permission as the Permissions API reports it; `'unknown'` where it cannot tell. */
|
|
21
17
|
type CameraPermissionState = "granted" | "prompt" | "denied" | "unknown";
|
|
@@ -108,4 +104,4 @@ declare function createPortraitCapture(options: PortraitCaptureOptions): Portrai
|
|
|
108
104
|
/** Prefetch the portrait engine (call when the portrait step mounts). */
|
|
109
105
|
declare function warmPortraitCapture(): void;
|
|
110
106
|
|
|
111
|
-
export { type CameraPermissionState, DocumentCaptureHandle, DocumentCaptureOptions, type IdNumber, type IdNumberType, InvalidInputError, OtpInputError, PortraitCaptureHandle, PortraitCaptureOptions, SCREEN_RAMP_COLOURS,
|
|
107
|
+
export { type CameraPermissionState, DocumentCaptureHandle, DocumentCaptureOptions, type IdNumber, type IdNumberType, InvalidInputError, OtpInputError, PortraitCaptureHandle, PortraitCaptureOptions, SCREEN_RAMP_COLOURS, ScreenRampColour, createDocumentCapture, createPortraitCapture, hasMultipleCameras, isValidIdNumber, isValidNni, normalizeDigits, normalizeNni, queryCameraPermission, screenRampColourValue, subscribeCameraPermission, warmDocumentCapture, warmPortraitCapture };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as j,c as $}from"./chunk-LJYMZQY2.js";import{a as _,f as Z,h as Y,i as f,j as y,k as h,l as P,m as v,n as z,o as W,p as J,q,r as Q,t as X}from"./chunk-32ELI5BZ.js";import{C,D as S}from"./chunk-PZYVSLPG.js";import{e as b,f as V,g as G,h as U,o as B}from"./chunk-RALQBQPT.js";import{b as N,c as T,d as x}from"./chunk-7QZWBDI5.js";import{o as O,p as I}from"./chunk-7XT5YDSC.js";import"./chunk-SX7TUC3V.js";import"./chunk-POIQGEZM.js";import"./chunk-CPUECYAJ.js";import"./chunk-FPXL63KZ.js";import{a as F,b as K,c as w,h as k}from"./chunk-2KTSNAVR.js";import"./chunk-TSA6GHUG.js";import"./chunk-BATJN3VQ.js";import"./chunk-FSSMUAKC.js";function ee(e){if(e==="permission")return"denied";if(e==="notfound"||e==="insecure"||e==="unsupported")return"no_camera"}var te=/^[A-Z0-9][A-Z0-9 -]{0,39}$/,oe=Object.freeze({normalize:e=>e.trim().toUpperCase().replace(/\s+/g," "),check:e=>te.test(e),registrySources:Object.freeze([]),describe:"number must be 1 to 40 letters, digits, spaces or hyphens"});function re(e){return typeof e=="string"&&/^\d{10}$/.test(e)&&Number(e)%97===1}var ne=Object.freeze({normalize:e=>e.trim(),check:e=>re(e),registrySources:Object.freeze(["MR.anrpts"]),describe:"number must be the 10-digit Mauritanian national ID number with a valid check digit"}),ie=Object.freeze({"MR:national_id":ne});function m(e,t){return ie[`${e.toUpperCase()}:${t}`]??oe}var ae=Object.freeze({MRT:"MR"});function R(e,t){let r=e.trim().toUpperCase();return m(ae[r]??r,t)}function se(e){let t=R(e.issuingCountry,e.type);return t.check(t.normalize(e.number))}function pe(e){return m("MR","national_id").check(e)}function g(e){let t="";for(let r of e){let n=r.codePointAt(0)??0;n>=1632&&n<=1641?t+=String(n-1632):n>=1776&&n<=1785?t+=String(n-1776):r!==" "&&r!=="-"&&r!==" "&&(t+=r)}return t}function ue(e){return g(e)}var De=f,Ae=y,Le=h,Oe=P,Ie=v;var M=()=>import("./create-document-capture-K6EHRCWN.js");function H(e){let t=null,r=null,n=!1,u=null,l=null,d=[],i=(o,s)=>{o.off=s.on(o.event,o.handler)},a=()=>(r??(r=M().then(o=>{if(n)return null;let s=o.createDocumentCaptureInternal(e,{}).handle;for(let c of d)c.removed||i(c,s);return u!==null&&s.setSide(u),l!==null&&s.setGuide(l.guide),t=s,s})),r),p=()=>a().catch(()=>{if(r=null,!n)for(let o of d)!o.removed&&o.event==="error"&&o.handler({kind:"generic",retryable:!0});return null});return{get state(){return t?.state??"idle"},on:(o,s)=>{let c={event:o,handler:s,off:null,removed:!1};return d.push(c),t!==null&&i(c,t),()=>{c.removed=!0,c.off?.()}},start:async()=>{let o=await p();o!==null&&!n&&await o.start()},retry:()=>{t!==null?t.retry():p().then(o=>o?.start())},setSide:o=>{t!==null?t.setSide(o):u=o},shutter:()=>t?.shutter(),setTorch:o=>t?.setTorch(o),focusAt:(o,s)=>t?.focusAt(o,s),setGuide:o=>{t!==null?t.setGuide(o):l={guide:o}},destroy:()=>{n=!0,t?.destroy(),t=null,d.length=0}}}function E(){M().then(e=>e.warmDocumentCapture()).catch(()=>{})}function Ve(e){return H(e)}function Ge(){E()}var D=()=>import("./create-portrait-capture-5VGYZUOK.js");function A(e){let t=null,r=null,n=!1,u=[],l=(i,a)=>{i.off=a.on(i.event,i.handler)},d=()=>(r??(r=D().then(i=>{if(n)return null;let a=i.createPortraitCaptureInternal(e).handle;for(let p of u)p.removed||l(p,a);return t=a,a})),r);return{get state(){return t?.state??"idle"},get captureMode(){return t?.captureMode??"self"},get facingMode(){return t?.facingMode??"user"},on:(i,a)=>{let p={event:i,handler:a,off:null,removed:!1};return u.push(p),t!==null&&l(p,t),()=>{p.removed=!0,p.off?.()}},start:async i=>{let a=await d();a!==null&&!n&&await a.start(i)},retry:()=>{t!==null?t.retry():d().then(i=>i?.start())},switchCamera:()=>t?.switchCamera()??!1,canSwitchCaptureMode:async()=>!1,setCaptureMode:async()=>!1,destroy:()=>{n=!0,t?.destroy(),t=null,u.length=0}}}function L(){D().then(e=>e.warmPortraitCapture()).catch(()=>{})}function we(e){return A(e)}function ke(){L()}export{_ as DEFAULT_API_ORIGIN,De as DOCUMENT_TYPE_ORDER,w as HostedApiError,Y as ISSUER_CODES,C as InvalidInputError,F as KNOWN_CODES,S as OtpInputError,W as PLATFORM_UNSUPPORTED,O as SCREEN_RAMP_COLOURS,j as SEKYRO_EVENTS,z as WEB_IDENTITY_METHODS,Le as acceptedIssuers,Ae as acceptedTypesFor,ee as cameraUnavailableCauseOf,Ve as createDocumentCapture,B as createLivenessCapture,we as createPortraitCapture,Z as createVerification,X as deriveStep,Ie as flagOf,V as getLivenessAssetsStatus,x as hasMultipleCameras,k as icaoPolicyOf,K as isKnownCode,se as isValidIdNumber,pe as isValidNni,q as laneOf,g as normalizeDigits,ue as normalizeNni,$ as openHosted,Q as otherOptions,b as preloadLivenessAssets,N as queryCameraPermission,U as releaseLivenessAssets,Oe as resolveAcceptedDocuments,I as screenRampColourValue,J as sectionOf,T as subscribeCameraPermission,G as subscribeLivenessAssets,Ge as warmDocumentCapture,ke as warmPortraitCapture};
|