@sekyro/web 0.1.0-rc.10 → 0.1.0-rc.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{capture-session-doc-GK6G7JOI.js → capture-session-doc-KW5VR4IR.js} +1 -1
  3. package/dist/{capture-session-v3-DGG2stO6.d.ts → capture-session-v3-DqUUcIU-.d.ts} +34 -3
  4. package/dist/{capture-session-v3-CmJw_bK0.d.cts → capture-session-v3-xNtY5m-7.d.cts} +34 -3
  5. package/dist/{chunk-BAGSM67V.js → chunk-4IVRXJR2.js} +1 -1
  6. package/dist/chunk-6DPFJNGL.js +1 -0
  7. package/dist/{chunk-SEC64KZ3.js → chunk-73M7LS4H.js} +1 -1
  8. package/dist/chunk-EF52BRBD.js +1 -0
  9. package/dist/chunk-GT2ZLGF7.js +1 -0
  10. package/dist/chunk-IF6YOFFO.js +1 -0
  11. package/dist/chunk-MUVEJRGK.js +1 -0
  12. package/dist/{chunk-UGMHAFEY.js → chunk-OBLQOE66.js} +1 -1
  13. package/dist/chunk-U6TYL2IJ.js +1 -0
  14. package/dist/{chunk-FFDB6LQN.js → chunk-U6YQAQBD.js} +1 -1
  15. package/dist/chunk-Y7S7LYCL.js +1 -0
  16. package/dist/chunk-YZH5PR5R.js +1 -0
  17. package/dist/client/index.cjs +1 -1
  18. package/dist/client/index.d.cts +5 -3
  19. package/dist/client/index.d.ts +5 -3
  20. package/dist/client/index.js +1 -1
  21. package/dist/core/index.cjs +1 -1
  22. package/dist/core/index.d.cts +3 -2
  23. package/dist/core/index.d.ts +3 -2
  24. package/dist/core/index.js +1 -1
  25. package/dist/{create-document-capture-IGUQP2NS.js → create-document-capture-PXOJHLWV.js} +1 -1
  26. package/dist/{create-portrait-capture-RJSFY37D.js → create-portrait-capture-C462EIB6.js} +1 -1
  27. package/dist/{create-verification-Bb20j6zk.d.ts → create-verification-CDOTGHQj.d.ts} +87 -9
  28. package/dist/{create-verification-CtqF4A9W.d.cts → create-verification-D4749F6L.d.cts} +87 -9
  29. package/dist/icao-gate-BRuIgOE2.d.cts +503 -0
  30. package/dist/icao-gate-CphntEQ2.d.ts +503 -0
  31. package/dist/index.cjs +1 -1
  32. package/dist/index.d.cts +16 -5
  33. package/dist/index.d.ts +16 -5
  34. package/dist/index.js +1 -1
  35. package/dist/internal/index.cjs +1 -1
  36. package/dist/internal/index.d.cts +17 -8
  37. package/dist/internal/index.d.ts +17 -8
  38. package/dist/internal/index.js +1 -1
  39. package/dist/{plan-runner-QCK2SOGS.js → plan-runner-2FJLUALJ.js} +1 -1
  40. package/dist/popup/index.cjs +1 -1
  41. package/dist/popup/index.d.cts +7 -1
  42. package/dist/popup/index.d.ts +7 -1
  43. package/dist/popup/index.js +1 -1
  44. package/dist/{icao-gate-terzKYD7.d.cts → types-4rgeNIlz.d.cts} +179 -498
  45. package/dist/{icao-gate-terzKYD7.d.ts → types-4rgeNIlz.d.ts} +179 -498
  46. package/package.json +1 -1
  47. package/sbom.cdx.json +7 -7
  48. package/dist/chunk-3MSUJYBO.js +0 -1
  49. package/dist/chunk-ETY6SAAZ.js +0 -1
  50. package/dist/chunk-HAO6EQTH.js +0 -1
  51. package/dist/chunk-HWAXEQD5.js +0 -1
  52. package/dist/chunk-SXZCL5NO.js +0 -1
  53. package/dist/chunk-SZ7YGNUZ.js +0 -1
  54. package/dist/chunk-WKJJEPWA.js +0 -1
  55. package/dist/chunk-XR64UFLK.js +0 -1
package/dist/index.d.cts CHANGED
@@ -1,10 +1,21 @@
1
- import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-CtqF4A9W.cjs';
2
- export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorKind, g as CaptureState, h as CapturedArtifacts, i as CapturedDocument, j as CapturedPortrait, k as ChoiceOptionSnapshot, l as ChoiceSnapshot, m as ChoiceStepHandle, n as ContactChoiceSnapshot, o as ContactChoiceStepHandle, p as DEFAULT_API_ORIGIN, q as DOCUMENT_TYPE_ORDER, r as DeriveStepEnv, s as DocumentCaptureEvents, t as DocumentCaptureState, u as DocumentFeedback, v as DocumentFeedbackKey, w as DocumentGateUpdate, x as DocumentGuide, y as DocumentGuideMeasure, z as DocumentLiveMrzOptions, B as DocumentMrzUpdate, E as DocumentPoint, F as DocumentQuad, G as DocumentReticle, H as DocumentScanPhase, I as DocumentScanUpdate, J as DocumentSide, K as DocumentSnapshot, L as DocumentStepHandle, M as EidSnapshot, N as EidStepHandle, O as EmailOtpSnapshot, Q as EmailOtpStepHandle, R as EmailSource, S as GateHint, T as GateUpdate, U as ISSUER_CODES, V as IdentitySummarySnapshot, W as IdentitySummaryStepHandle, X as InLaneSwitch, Y as LivePhotoGateUpdate, Z as LivePhotoPlan, _ as LivenessAssetsStatus, $ as LivenessCaptureEvents, a0 as LivenessCaptureHandle, a1 as LivenessCaptureOptions, a2 as LivenessSnapshot, a3 as LivenessStartOptions, a4 as LivenessStepHandle, a5 as MethodSnapshot, a6 as MethodStepHandle, a7 as MobileRequiredSnapshot, a8 as MobileRequiredStepHandle, a9 as OtpChannel, aa as OtpNumberSource, ab as PLATFORM_UNSUPPORTED, ac as PhoneOtpSnapshot, ad as PhoneOtpStepHandle, ae as PlanChoiceSnapshot, af as PortraitCaptureEvents, ag as PortraitCaptureState, ah as PortraitGateUpdate, ai as PortraitSnapshot, aj as PortraitStartOptions, ak as PortraitStepHandle, al as PreloadLivenessAssetsOptions, am as ProcessingSnapshot, an as ProcessingStepHandle, ao as ReasonCode, ap as RegistrySnapshot, aq as RegistrySource, ar as RegistryStepHandle, as as ResultDisplay, at as ResultSnapshot, au as ResultStepHandle, av as SdkFailureReason, aw as StepAttempts, ax as StepContext, ay as StepSnapshot, az as UnsupportedReason, aA as UnsupportedSnapshot, aB as UnsupportedStepHandle, aC as Verification, aD as VerificationBusy, aE as VerificationEvents, aF as VerificationLocale, aG as VerificationOptions, aH as VerificationResult, aI as VerificationStatus, aJ as VerificationStep, aK as WEB_IDENTITY_METHODS, aL as acceptedIssuers, aM as acceptedTypesFor, aN as createLivenessCapture, aO as createVerification, aP as deriveStep, aQ as flagOf, aR as getLivenessAssetsStatus, aS as laneOf, aT as otherOptions, aU as preloadLivenessAssets, aV as releaseLivenessAssets, aW as resolveAcceptedDocuments, aX as sectionOf, aY as subscribeLivenessAssets } from './create-verification-CtqF4A9W.cjs';
1
+ import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-D4749F6L.cjs';
2
+ export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorKind, g as CaptureState, h as CapturedArtifacts, i as CapturedDocument, j as CapturedPortrait, k as ChoiceOptionSnapshot, l as ChoiceSnapshot, m as ChoiceStepHandle, n as ContactChoiceSnapshot, o as ContactChoiceStepHandle, p as DEFAULT_API_ORIGIN, q as DOCUMENT_TYPE_ORDER, r as DeriveStepEnv, s as DocumentCaptureEvents, t as DocumentCaptureState, u as DocumentFeedback, v as DocumentFeedbackKey, w as DocumentGateUpdate, x as DocumentGuide, y as DocumentGuideMeasure, z as DocumentLiveMrzOptions, B as DocumentMrzUpdate, E as DocumentPoint, F as DocumentQuad, G as DocumentReticle, H as DocumentScanPhase, I as DocumentScanUpdate, J as DocumentSide, K as DocumentSnapshot, L as DocumentStepHandle, M as EidSnapshot, N as EidStepHandle, O as EmailOtpSnapshot, Q as EmailOtpStepHandle, R as EmailSource, S as GateHint, T as GateUpdate, U as ISSUER_CODES, V as IdentitySummarySnapshot, W as IdentitySummaryStepHandle, X as InLaneSwitch, Y as LivePhotoGateUpdate, Z as LivePhotoPlan, _ as LivenessAssetsStatus, $ as LivenessCaptureEvents, a0 as LivenessCaptureHandle, a1 as LivenessCaptureOptions, a2 as LivenessSnapshot, a3 as LivenessStartOptions, a4 as LivenessStepHandle, a5 as MethodSnapshot, a6 as MethodStepHandle, a7 as MobileRequiredSnapshot, a8 as MobileRequiredStepHandle, a9 as OtpChannel, aa as OtpNumberSource, ab as PLATFORM_UNSUPPORTED, ac as PhoneOtpSnapshot, ad as PhoneOtpStepHandle, ae as PlanChoiceSnapshot, af as PortraitCaptureEvents, ag as PortraitCaptureState, ah as PortraitGateUpdate, ai as PortraitSnapshot, aj as PortraitStartOptions, ak as PortraitStepHandle, al as PreloadLivenessAssetsOptions, am as ProcessingSnapshot, an as ProcessingStepHandle, ao as ReasonCode, ap as RegistrySnapshot, aq as RegistrySource, ar as RegistryStepHandle, as as ResultDisplay, at as ResultSnapshot, au as ResultStepHandle, av as SdkFailureReason, aw as StepAttempts, ax as StepContext, ay as StepSnapshot, az as UnsupportedReason, aA as UnsupportedSnapshot, aB as UnsupportedStepHandle, aC as Verification, aD as VerificationBusy, aE as VerificationEvents, aF as VerificationLocale, aG as VerificationOptions, aH as VerificationResult, aI as VerificationStatus, aJ as VerificationStep, aK as WEB_IDENTITY_METHODS, aL as acceptedIssuers, aM as acceptedTypesFor, aN as cameraUnavailableCauseOf, aO as createLivenessCapture, aP as createVerification, aQ as deriveStep, aR as flagOf, aS as getLivenessAssetsStatus, aT as laneOf, aU as otherOptions, aV as preloadLivenessAssets, aW as releaseLivenessAssets, aX as resolveAcceptedDocuments, aY as sectionOf, aZ as subscribeLivenessAssets } from './create-verification-D4749F6L.cjs';
3
+ import { S as ScreenRampColour } from './types-4rgeNIlz.cjs';
4
+ export { A as AcceptedDocumentType, h as AgeEstimationReason, b as CameraUnavailableCause, i as CaptureMode, j as CaptureProvenance, k as CheckReason, l as CheckState, e as CheckType, m as ContactChannel, D as DecisionReason, n as DocReason, E as EidAfterPass, o as EidAuthInput, p as EidReason, q as EmailOtpReason, F as FaceMatchReason, r as HostedAcceptedDocuments, s as HostedBranding, t as HostedBrandingColorKey, u as HostedCaptureTuning, a as HostedConsentView, v as HostedDocumentCaptureTuning, w as HostedDocumentScanTuning, x as HostedEidView, y as HostedEmailOtpView, z as HostedFlowRef, G as HostedIcaoPolicy, J as HostedIntegrity, K as HostedLivePhotoTuning, L as HostedLivenessCaptureTuning, N as HostedNativeCaptureTuning, O as HostedOcrTuning, Q as HostedOtpView, T as HostedPlanView, U as HostedPortraitView, H as HostedSessionView, V as HostedStepView, W as HostedVoiceLocale, X as HostedVoiceView, Y as IcaoCaptureTuning, g as IcaoCriterion, Z as IcaoReportEntry, I as IdentityConfirmDecision, _ as IdentityMethod, $ as IdentitySummarySource, a0 as IdentitySummaryView, a1 as LivenessReason, a2 as MatchReason, a3 as MethodChoiceView, a4 as NationalEidOption, a5 as NfcChipReason, a6 as NfcStepView, a7 as OtpChoiceView, a8 as PhoneOtpReason, a9 as PlanAttempts, aa as PlanChoiceKind, ab as PlanChoiceOption, ac as PlanChoiceView, ad as PlanSectionView, ae as PlanStepView, af as PolicyFailureReason, ag as PopulationReason, ah as PortraitIcaoInput, ai as PortraitIcaoReason, aj as RetakeHint, ak as ScreenRampChallenge, al as ScreenRampRendered, am as ScreenRampReport, an as SessionFailureReason, ao as SessionOutcome, ap as SessionStatus, aq as StepSection, ar as VerificationAssurance, as as VerificationLevel } from './types-4rgeNIlz.cjs';
3
5
  export { OpenHostedOptions, PopupBlocked, PopupHandle, SEKYRO_EVENTS, SekyroEvent, SekyroEventName, openHosted } from './popup/index.cjs';
4
6
  export { HostedApiError, HostedErrorDetails, HostedErrorIssue, KNOWN_CODES, KnownCode, icaoPolicyOf, isKnownCode } from './client/index.cjs';
5
- export { A as AcceptedDocumentType, C as CaptureMode, a as CheckReason, b as CheckState, c as CheckType, d as ContactChannel, D as DecisionReason, e as DocReason, E as EidAfterPass, f as EidAuthInput, g as EidReason, h as EmailOtpReason, F as FaceMatchReason, H as HeadPose, i as HostedAcceptedDocuments, j as HostedBranding, k as HostedBrandingColorKey, l as HostedCaptureTuning, m as HostedConsentView, n as HostedDocumentCaptureTuning, o as HostedDocumentScanTuning, p as HostedEidView, q as HostedEmailOtpView, r as HostedFlowRef, s as HostedIcaoPolicy, t as HostedIntegrity, u as HostedLivePhotoTuning, v as HostedNativeCaptureTuning, w as HostedOcrTuning, x as HostedOtpView, y as HostedPlanView, z as HostedPortraitView, B as HostedSessionView, G as HostedStepView, I as HostedVoiceLocale, J as HostedVoiceView, K as IcaoCaptureTuning, L as IcaoCoachKey, M as IcaoCriterion, N as IcaoCriterionState, O as IcaoGateCriterion, P as IcaoGateSummary, Q as IcaoGateUpdate, R as IcaoReportEntry, S as IdentityConfirmDecision, T as IdentityMethod, U as IdentitySummarySource, V as IdentitySummaryView, W as LivenessReason, X as MatchReason, Y as MethodChoiceView, Z as NationalEidOption, _ as NfcChipReason, $ as NfcStepView, a0 as OtpChoiceView, a1 as PhoneOtpReason, a2 as PlanAttempts, a3 as PlanChoiceKind, a4 as PlanChoiceOption, a5 as PlanChoiceView, a6 as PlanSectionView, a7 as PlanStepView, a8 as PolicyFailureReason, a9 as PopulationReason, aa as PortraitIcaoInput, ab as PortraitIcaoReason, ac as SessionFailureReason, ad as SessionOutcome, ae as SessionStatus, af as StepSection } from './icao-gate-terzKYD7.cjs';
7
+ export { H as HeadPose, I as IcaoCoachKey, a as IcaoCriterionState, b as IcaoGateCriterion, c as IcaoGateSummary, d as IcaoGateUpdate } from './icao-gate-BRuIgOE2.cjs';
6
8
  import './detect-worker-DclNxkZT.cjs';
7
- import './capture-session-v3-CmJw_bK0.cjs';
9
+ import './capture-session-v3-xNtY5m-7.cjs';
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
+ /** The closed palette, in the order the backend lists it. */
16
+ 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;
8
19
 
9
20
  /** Camera permission as the Permissions API reports it; `'unknown'` where it cannot tell. */
10
21
  type CameraPermissionState = "granted" | "prompt" | "denied" | "unknown";
@@ -71,4 +82,4 @@ declare function createPortraitCapture(options: PortraitCaptureOptions): Portrai
71
82
  /** Prefetch the portrait engine (call when the portrait step mounts). */
72
83
  declare function warmPortraitCapture(): void;
73
84
 
74
- export { type CameraPermissionState, DocumentCaptureHandle, DocumentCaptureOptions, InvalidInputError, OtpInputError, PortraitCaptureHandle, PortraitCaptureOptions, createDocumentCapture, createPortraitCapture, hasMultipleCameras, isValidNni, normalizeNni, queryCameraPermission, subscribeCameraPermission, warmDocumentCapture, warmPortraitCapture };
85
+ export { type CameraPermissionState, DocumentCaptureHandle, DocumentCaptureOptions, InvalidInputError, OtpInputError, PortraitCaptureHandle, PortraitCaptureOptions, SCREEN_RAMP_COLOURS, SCREEN_RAMP_END_MS, SCREEN_RAMP_SEGMENT_MS, ScreenRampColour, createDocumentCapture, createPortraitCapture, hasMultipleCameras, isValidNni, normalizeNni, queryCameraPermission, screenRampColourValue, subscribeCameraPermission, warmDocumentCapture, warmPortraitCapture };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,21 @@
1
- import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-Bb20j6zk.js';
2
- export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorKind, g as CaptureState, h as CapturedArtifacts, i as CapturedDocument, j as CapturedPortrait, k as ChoiceOptionSnapshot, l as ChoiceSnapshot, m as ChoiceStepHandle, n as ContactChoiceSnapshot, o as ContactChoiceStepHandle, p as DEFAULT_API_ORIGIN, q as DOCUMENT_TYPE_ORDER, r as DeriveStepEnv, s as DocumentCaptureEvents, t as DocumentCaptureState, u as DocumentFeedback, v as DocumentFeedbackKey, w as DocumentGateUpdate, x as DocumentGuide, y as DocumentGuideMeasure, z as DocumentLiveMrzOptions, B as DocumentMrzUpdate, E as DocumentPoint, F as DocumentQuad, G as DocumentReticle, H as DocumentScanPhase, I as DocumentScanUpdate, J as DocumentSide, K as DocumentSnapshot, L as DocumentStepHandle, M as EidSnapshot, N as EidStepHandle, O as EmailOtpSnapshot, Q as EmailOtpStepHandle, R as EmailSource, S as GateHint, T as GateUpdate, U as ISSUER_CODES, V as IdentitySummarySnapshot, W as IdentitySummaryStepHandle, X as InLaneSwitch, Y as LivePhotoGateUpdate, Z as LivePhotoPlan, _ as LivenessAssetsStatus, $ as LivenessCaptureEvents, a0 as LivenessCaptureHandle, a1 as LivenessCaptureOptions, a2 as LivenessSnapshot, a3 as LivenessStartOptions, a4 as LivenessStepHandle, a5 as MethodSnapshot, a6 as MethodStepHandle, a7 as MobileRequiredSnapshot, a8 as MobileRequiredStepHandle, a9 as OtpChannel, aa as OtpNumberSource, ab as PLATFORM_UNSUPPORTED, ac as PhoneOtpSnapshot, ad as PhoneOtpStepHandle, ae as PlanChoiceSnapshot, af as PortraitCaptureEvents, ag as PortraitCaptureState, ah as PortraitGateUpdate, ai as PortraitSnapshot, aj as PortraitStartOptions, ak as PortraitStepHandle, al as PreloadLivenessAssetsOptions, am as ProcessingSnapshot, an as ProcessingStepHandle, ao as ReasonCode, ap as RegistrySnapshot, aq as RegistrySource, ar as RegistryStepHandle, as as ResultDisplay, at as ResultSnapshot, au as ResultStepHandle, av as SdkFailureReason, aw as StepAttempts, ax as StepContext, ay as StepSnapshot, az as UnsupportedReason, aA as UnsupportedSnapshot, aB as UnsupportedStepHandle, aC as Verification, aD as VerificationBusy, aE as VerificationEvents, aF as VerificationLocale, aG as VerificationOptions, aH as VerificationResult, aI as VerificationStatus, aJ as VerificationStep, aK as WEB_IDENTITY_METHODS, aL as acceptedIssuers, aM as acceptedTypesFor, aN as createLivenessCapture, aO as createVerification, aP as deriveStep, aQ as flagOf, aR as getLivenessAssetsStatus, aS as laneOf, aT as otherOptions, aU as preloadLivenessAssets, aV as releaseLivenessAssets, aW as resolveAcceptedDocuments, aX as sectionOf, aY as subscribeLivenessAssets } from './create-verification-Bb20j6zk.js';
1
+ import { D as DocumentCaptureOptions, a as DocumentCaptureHandle, P as PortraitCaptureOptions, b as PortraitCaptureHandle } from './create-verification-CDOTGHQj.js';
2
+ export { A as AcceptedDocumentsLike, C as CameraFacing, c as CaptureChannel, d as CaptureEngineId, e as CaptureError, f as CaptureErrorKind, g as CaptureState, h as CapturedArtifacts, i as CapturedDocument, j as CapturedPortrait, k as ChoiceOptionSnapshot, l as ChoiceSnapshot, m as ChoiceStepHandle, n as ContactChoiceSnapshot, o as ContactChoiceStepHandle, p as DEFAULT_API_ORIGIN, q as DOCUMENT_TYPE_ORDER, r as DeriveStepEnv, s as DocumentCaptureEvents, t as DocumentCaptureState, u as DocumentFeedback, v as DocumentFeedbackKey, w as DocumentGateUpdate, x as DocumentGuide, y as DocumentGuideMeasure, z as DocumentLiveMrzOptions, B as DocumentMrzUpdate, E as DocumentPoint, F as DocumentQuad, G as DocumentReticle, H as DocumentScanPhase, I as DocumentScanUpdate, J as DocumentSide, K as DocumentSnapshot, L as DocumentStepHandle, M as EidSnapshot, N as EidStepHandle, O as EmailOtpSnapshot, Q as EmailOtpStepHandle, R as EmailSource, S as GateHint, T as GateUpdate, U as ISSUER_CODES, V as IdentitySummarySnapshot, W as IdentitySummaryStepHandle, X as InLaneSwitch, Y as LivePhotoGateUpdate, Z as LivePhotoPlan, _ as LivenessAssetsStatus, $ as LivenessCaptureEvents, a0 as LivenessCaptureHandle, a1 as LivenessCaptureOptions, a2 as LivenessSnapshot, a3 as LivenessStartOptions, a4 as LivenessStepHandle, a5 as MethodSnapshot, a6 as MethodStepHandle, a7 as MobileRequiredSnapshot, a8 as MobileRequiredStepHandle, a9 as OtpChannel, aa as OtpNumberSource, ab as PLATFORM_UNSUPPORTED, ac as PhoneOtpSnapshot, ad as PhoneOtpStepHandle, ae as PlanChoiceSnapshot, af as PortraitCaptureEvents, ag as PortraitCaptureState, ah as PortraitGateUpdate, ai as PortraitSnapshot, aj as PortraitStartOptions, ak as PortraitStepHandle, al as PreloadLivenessAssetsOptions, am as ProcessingSnapshot, an as ProcessingStepHandle, ao as ReasonCode, ap as RegistrySnapshot, aq as RegistrySource, ar as RegistryStepHandle, as as ResultDisplay, at as ResultSnapshot, au as ResultStepHandle, av as SdkFailureReason, aw as StepAttempts, ax as StepContext, ay as StepSnapshot, az as UnsupportedReason, aA as UnsupportedSnapshot, aB as UnsupportedStepHandle, aC as Verification, aD as VerificationBusy, aE as VerificationEvents, aF as VerificationLocale, aG as VerificationOptions, aH as VerificationResult, aI as VerificationStatus, aJ as VerificationStep, aK as WEB_IDENTITY_METHODS, aL as acceptedIssuers, aM as acceptedTypesFor, aN as cameraUnavailableCauseOf, aO as createLivenessCapture, aP as createVerification, aQ as deriveStep, aR as flagOf, aS as getLivenessAssetsStatus, aT as laneOf, aU as otherOptions, aV as preloadLivenessAssets, aW as releaseLivenessAssets, aX as resolveAcceptedDocuments, aY as sectionOf, aZ as subscribeLivenessAssets } from './create-verification-CDOTGHQj.js';
3
+ import { S as ScreenRampColour } from './types-4rgeNIlz.js';
4
+ export { A as AcceptedDocumentType, h as AgeEstimationReason, b as CameraUnavailableCause, i as CaptureMode, j as CaptureProvenance, k as CheckReason, l as CheckState, e as CheckType, m as ContactChannel, D as DecisionReason, n as DocReason, E as EidAfterPass, o as EidAuthInput, p as EidReason, q as EmailOtpReason, F as FaceMatchReason, r as HostedAcceptedDocuments, s as HostedBranding, t as HostedBrandingColorKey, u as HostedCaptureTuning, a as HostedConsentView, v as HostedDocumentCaptureTuning, w as HostedDocumentScanTuning, x as HostedEidView, y as HostedEmailOtpView, z as HostedFlowRef, G as HostedIcaoPolicy, J as HostedIntegrity, K as HostedLivePhotoTuning, L as HostedLivenessCaptureTuning, N as HostedNativeCaptureTuning, O as HostedOcrTuning, Q as HostedOtpView, T as HostedPlanView, U as HostedPortraitView, H as HostedSessionView, V as HostedStepView, W as HostedVoiceLocale, X as HostedVoiceView, Y as IcaoCaptureTuning, g as IcaoCriterion, Z as IcaoReportEntry, I as IdentityConfirmDecision, _ as IdentityMethod, $ as IdentitySummarySource, a0 as IdentitySummaryView, a1 as LivenessReason, a2 as MatchReason, a3 as MethodChoiceView, a4 as NationalEidOption, a5 as NfcChipReason, a6 as NfcStepView, a7 as OtpChoiceView, a8 as PhoneOtpReason, a9 as PlanAttempts, aa as PlanChoiceKind, ab as PlanChoiceOption, ac as PlanChoiceView, ad as PlanSectionView, ae as PlanStepView, af as PolicyFailureReason, ag as PopulationReason, ah as PortraitIcaoInput, ai as PortraitIcaoReason, aj as RetakeHint, ak as ScreenRampChallenge, al as ScreenRampRendered, am as ScreenRampReport, an as SessionFailureReason, ao as SessionOutcome, ap as SessionStatus, aq as StepSection, ar as VerificationAssurance, as as VerificationLevel } from './types-4rgeNIlz.js';
3
5
  export { OpenHostedOptions, PopupBlocked, PopupHandle, SEKYRO_EVENTS, SekyroEvent, SekyroEventName, openHosted } from './popup/index.js';
4
6
  export { HostedApiError, HostedErrorDetails, HostedErrorIssue, KNOWN_CODES, KnownCode, icaoPolicyOf, isKnownCode } from './client/index.js';
5
- export { A as AcceptedDocumentType, C as CaptureMode, a as CheckReason, b as CheckState, c as CheckType, d as ContactChannel, D as DecisionReason, e as DocReason, E as EidAfterPass, f as EidAuthInput, g as EidReason, h as EmailOtpReason, F as FaceMatchReason, H as HeadPose, i as HostedAcceptedDocuments, j as HostedBranding, k as HostedBrandingColorKey, l as HostedCaptureTuning, m as HostedConsentView, n as HostedDocumentCaptureTuning, o as HostedDocumentScanTuning, p as HostedEidView, q as HostedEmailOtpView, r as HostedFlowRef, s as HostedIcaoPolicy, t as HostedIntegrity, u as HostedLivePhotoTuning, v as HostedNativeCaptureTuning, w as HostedOcrTuning, x as HostedOtpView, y as HostedPlanView, z as HostedPortraitView, B as HostedSessionView, G as HostedStepView, I as HostedVoiceLocale, J as HostedVoiceView, K as IcaoCaptureTuning, L as IcaoCoachKey, M as IcaoCriterion, N as IcaoCriterionState, O as IcaoGateCriterion, P as IcaoGateSummary, Q as IcaoGateUpdate, R as IcaoReportEntry, S as IdentityConfirmDecision, T as IdentityMethod, U as IdentitySummarySource, V as IdentitySummaryView, W as LivenessReason, X as MatchReason, Y as MethodChoiceView, Z as NationalEidOption, _ as NfcChipReason, $ as NfcStepView, a0 as OtpChoiceView, a1 as PhoneOtpReason, a2 as PlanAttempts, a3 as PlanChoiceKind, a4 as PlanChoiceOption, a5 as PlanChoiceView, a6 as PlanSectionView, a7 as PlanStepView, a8 as PolicyFailureReason, a9 as PopulationReason, aa as PortraitIcaoInput, ab as PortraitIcaoReason, ac as SessionFailureReason, ad as SessionOutcome, ae as SessionStatus, af as StepSection } from './icao-gate-terzKYD7.js';
7
+ export { H as HeadPose, I as IcaoCoachKey, a as IcaoCriterionState, b as IcaoGateCriterion, c as IcaoGateSummary, d as IcaoGateUpdate } from './icao-gate-CphntEQ2.js';
6
8
  import './detect-worker-DclNxkZT.js';
7
- import './capture-session-v3-DGG2stO6.js';
9
+ import './capture-session-v3-DqUUcIU-.js';
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
+ /** The closed palette, in the order the backend lists it. */
16
+ 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;
8
19
 
9
20
  /** Camera permission as the Permissions API reports it; `'unknown'` where it cannot tell. */
10
21
  type CameraPermissionState = "granted" | "prompt" | "denied" | "unknown";
@@ -71,4 +82,4 @@ declare function createPortraitCapture(options: PortraitCaptureOptions): Portrai
71
82
  /** Prefetch the portrait engine (call when the portrait step mounts). */
72
83
  declare function warmPortraitCapture(): void;
73
84
 
74
- export { type CameraPermissionState, DocumentCaptureHandle, DocumentCaptureOptions, InvalidInputError, OtpInputError, PortraitCaptureHandle, PortraitCaptureOptions, createDocumentCapture, createPortraitCapture, hasMultipleCameras, isValidNni, normalizeNni, queryCameraPermission, subscribeCameraPermission, warmDocumentCapture, warmPortraitCapture };
85
+ export { type CameraPermissionState, DocumentCaptureHandle, DocumentCaptureOptions, InvalidInputError, OtpInputError, PortraitCaptureHandle, PortraitCaptureOptions, SCREEN_RAMP_COLOURS, SCREEN_RAMP_END_MS, SCREEN_RAMP_SEGMENT_MS, ScreenRampColour, createDocumentCapture, createPortraitCapture, hasMultipleCameras, isValidNni, normalizeNni, queryCameraPermission, screenRampColourValue, subscribeCameraPermission, warmDocumentCapture, warmPortraitCapture };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{a as q,c as W}from"./chunk-SXZCL5NO.js";import{a as k,f as U,h as b,i as y,j as f,k as C,l as S,m as h,n as F,o as z,p as _,q as K,r as B,t as Y}from"./chunk-3MSUJYBO.js";import{w as l,x as m}from"./chunk-XR64UFLK.js";import{e as I,f as R,g as w,h as A,n as T}from"./chunk-ETY6SAAZ.js";import{b as g,c as x,d as L}from"./chunk-HAO6EQTH.js";import"./chunk-SZ7YGNUZ.js";import"./chunk-FUHDOEBP.js";import"./chunk-POIQGEZM.js";import"./chunk-FHJ7HO3M.js";import"./chunk-FPXL63KZ.js";import{a as V,b as M,c as N,f as G}from"./chunk-HWAXEQD5.js";import"./chunk-BAGSM67V.js";import"./chunk-OKWG3PVH.js";function Q(o){return/^\d{10}$/.test(o)&&Number(o)%97===1}function $(o){let e="";for(let i of o){let n=i.codePointAt(0)??0;n>=1632&&n<=1641?e+=String(n-1632):n>=1776&&n<=1785?e+=String(n-1776):i!==" "&&i!=="-"&&i!=="\xA0"&&(e+=i)}return e}var pe=y,se=f,ue=C,ce=S,de=h;var D=()=>import("./create-document-capture-IGUQP2NS.js");function P(o){let e=null,i=null,n=!1,s=null,c=null,d=[],r=(t,p)=>{t.off=p.on(t.event,t.handler)},a=()=>(i??(i=D().then(t=>{if(n)return null;let p=t.createDocumentCaptureInternal(o,{}).handle;for(let u of d)u.removed||r(u,p);return s!==null&&p.setSide(s),c!==null&&p.setGuide(c.guide),e=p,p})),i);return{get state(){return e?.state??"idle"},on:(t,p)=>{let u={event:t,handler:p,off:null,removed:!1};return d.push(u),e!==null&&r(u,e),()=>{u.removed=!0,u.off?.()}},start:async()=>{let t=await a();t!==null&&!n&&await t.start()},retry:()=>{e!==null?e.retry():a().then(t=>t?.start())},setSide:t=>{e!==null?e.setSide(t):s=t},shutter:()=>e?.shutter(),setTorch:t=>e?.setTorch(t),focusAt:(t,p)=>e?.focusAt(t,p),setGuide:t=>{e!==null?e.setGuide(t):c={guide:t}},destroy:()=>{n=!0,e?.destroy(),e=null,d.length=0}}}function v(){D().then(o=>o.warmDocumentCapture()).catch(()=>{})}function Ce(o){return P(o)}function Se(){v()}var H=()=>import("./create-portrait-capture-RJSFY37D.js");function O(o){let e=null,i=null,n=!1,s=[],c=(r,a)=>{r.off=a.on(r.event,r.handler)},d=()=>(i??(i=H().then(r=>{if(n)return null;let a=r.createPortraitCaptureInternal(o).handle;for(let t of s)t.removed||c(t,a);return e=a,a})),i);return{get state(){return e?.state??"idle"},get captureMode(){return e?.captureMode??"self"},get facingMode(){return e?.facingMode??"user"},on:(r,a)=>{let t={event:r,handler:a,off:null,removed:!1};return s.push(t),e!==null&&c(t,e),()=>{t.removed=!0,t.off?.()}},start:async r=>{let a=await d();a!==null&&!n&&await a.start(r)},retry:()=>{e!==null?e.retry():d().then(r=>r?.start())},switchCamera:()=>e?.switchCamera()??!1,destroy:()=>{n=!0,e?.destroy(),e=null,s.length=0}}}function E(){H().then(o=>o.warmPortraitCapture()).catch(()=>{})}function He(o){return O(o)}function Oe(){E()}export{k as DEFAULT_API_ORIGIN,pe as DOCUMENT_TYPE_ORDER,N as HostedApiError,b as ISSUER_CODES,l as InvalidInputError,V as KNOWN_CODES,m as OtpInputError,z as PLATFORM_UNSUPPORTED,q as SEKYRO_EVENTS,F as WEB_IDENTITY_METHODS,ue as acceptedIssuers,se as acceptedTypesFor,Ce as createDocumentCapture,T as createLivenessCapture,He as createPortraitCapture,U as createVerification,Y as deriveStep,de as flagOf,R as getLivenessAssetsStatus,L as hasMultipleCameras,G as icaoPolicyOf,M as isKnownCode,Q as isValidNni,K as laneOf,$ as normalizeNni,W as openHosted,B as otherOptions,I as preloadLivenessAssets,g as queryCameraPermission,A as releaseLivenessAssets,ce as resolveAcceptedDocuments,_ as sectionOf,x as subscribeCameraPermission,w as subscribeLivenessAssets,Se as warmDocumentCapture,Oe as warmPortraitCapture};
1
+ import{a as $,c as J}from"./chunk-U6TYL2IJ.js";import{a as F,f as K,h as z,i as f,j as C,k as y,l as S,m as h,n as B,o as q,p as Y,q as j,r as W,t as Q}from"./chunk-Y7S7LYCL.js";import{w as l,x as m}from"./chunk-IF6YOFFO.js";import{e as A,f as w,g as I,h as T,n as U}from"./chunk-EF52BRBD.js";import{b as V,c as b,d as M}from"./chunk-GT2ZLGF7.js";import{g as R,h as E,i as O,j as L}from"./chunk-YZH5PR5R.js";import"./chunk-FUHDOEBP.js";import"./chunk-POIQGEZM.js";import"./chunk-FHJ7HO3M.js";import"./chunk-FPXL63KZ.js";import{a as k,b as _,c as G,f as N}from"./chunk-MUVEJRGK.js";import"./chunk-4IVRXJR2.js";import"./chunk-OKWG3PVH.js";function X(o){if(o==="permission")return"denied";if(o==="notfound"||o==="insecure"||o==="unsupported")return"no_camera"}function Z(o){return/^\d{10}$/.test(o)&&Number(o)%97===1}function ee(o){let e="";for(let i of o){let n=i.codePointAt(0)??0;n>=1632&&n<=1641?e+=String(n-1632):n>=1776&&n<=1785?e+=String(n-1776):i!==" "&&i!=="-"&&i!=="\xA0"&&(e+=i)}return e}var Ce=f,ye=C,Se=y,he=S,ve=h;var v=()=>import("./create-document-capture-PXOJHLWV.js");function P(o){let e=null,i=null,n=!1,p=null,c=null,u=[],r=(t,s)=>{t.off=s.on(t.event,t.handler)},a=()=>(i??(i=v().then(t=>{if(n)return null;let s=t.createDocumentCaptureInternal(o,{}).handle;for(let d of u)d.removed||r(d,s);return p!==null&&s.setSide(p),c!==null&&s.setGuide(c.guide),e=s,s})),i);return{get state(){return e?.state??"idle"},on:(t,s)=>{let d={event:t,handler:s,off:null,removed:!1};return u.push(d),e!==null&&r(d,e),()=>{d.removed=!0,d.off?.()}},start:async()=>{let t=await a();t!==null&&!n&&await t.start()},retry:()=>{e!==null?e.retry():a().then(t=>t?.start())},setSide:t=>{e!==null?e.setSide(t):p=t},shutter:()=>e?.shutter(),setTorch:t=>e?.setTorch(t),focusAt:(t,s)=>e?.focusAt(t,s),setGuide:t=>{e!==null?e.setGuide(t):c={guide:t}},destroy:()=>{n=!0,e?.destroy(),e=null,u.length=0}}}function g(){v().then(o=>o.warmDocumentCapture()).catch(()=>{})}function xe(o){return P(o)}function Re(){g()}var H=()=>import("./create-portrait-capture-C462EIB6.js");function D(o){let e=null,i=null,n=!1,p=[],c=(r,a)=>{r.off=a.on(r.event,r.handler)},u=()=>(i??(i=H().then(r=>{if(n)return null;let a=r.createPortraitCaptureInternal(o).handle;for(let t of p)t.removed||c(t,a);return e=a,a})),i);return{get state(){return e?.state??"idle"},get captureMode(){return e?.captureMode??"self"},get facingMode(){return e?.facingMode??"user"},on:(r,a)=>{let t={event:r,handler:a,off:null,removed:!1};return p.push(t),e!==null&&c(t,e),()=>{t.removed=!0,t.off?.()}},start:async r=>{let a=await u();a!==null&&!n&&await a.start(r)},retry:()=>{e!==null?e.retry():u().then(r=>r?.start())},switchCamera:()=>e?.switchCamera()??!1,destroy:()=>{n=!0,e?.destroy(),e=null,p.length=0}}}function x(){H().then(o=>o.warmPortraitCapture()).catch(()=>{})}function be(o){return D(o)}function Me(){x()}export{F as DEFAULT_API_ORIGIN,Ce as DOCUMENT_TYPE_ORDER,G as HostedApiError,z as ISSUER_CODES,l as InvalidInputError,k as KNOWN_CODES,m as OtpInputError,q as PLATFORM_UNSUPPORTED,O as SCREEN_RAMP_COLOURS,E as SCREEN_RAMP_END_MS,R as SCREEN_RAMP_SEGMENT_MS,$ as SEKYRO_EVENTS,B as WEB_IDENTITY_METHODS,Se as acceptedIssuers,ye as acceptedTypesFor,X as cameraUnavailableCauseOf,xe as createDocumentCapture,U as createLivenessCapture,be as createPortraitCapture,K as createVerification,Q as deriveStep,ve as flagOf,w as getLivenessAssetsStatus,M as hasMultipleCameras,N as icaoPolicyOf,_ as isKnownCode,Z as isValidNni,j as laneOf,ee as normalizeNni,J as openHosted,W as otherOptions,A as preloadLivenessAssets,V as queryCameraPermission,T as releaseLivenessAssets,he as resolveAcceptedDocuments,L as screenRampColourValue,Y as sectionOf,b as subscribeCameraPermission,I as subscribeLivenessAssets,Re as warmDocumentCapture,Me as warmPortraitCapture};