@sekyro/web 0.1.0-rc.6 → 0.1.0-rc.7
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 +27 -0
- package/LICENSE +3 -3
- package/README.md +4 -4
- package/dist/chunk-B45J4KC3.js +1 -0
- package/dist/chunk-BMA36W2W.js +1 -0
- package/dist/chunk-FPXL63KZ.js +1 -0
- package/dist/chunk-IYUOYINS.js +1 -0
- package/dist/chunk-P7ECRN47.js +1 -0
- package/dist/chunk-SXZCL5NO.js +1 -0
- package/dist/chunk-YOB4ZTYN.js +1 -0
- package/dist/chunk-YQBK6OIM.js +1 -0
- package/dist/client/index.cjs +1 -357
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +1 -15
- package/dist/core/index.cjs +1 -1639
- package/dist/core/index.js +1 -139
- package/dist/core/v3/detect-worker.cjs +1 -392
- package/dist/core/v3/detect-worker.js +1 -13
- package/dist/{create-verification-BKc9NFQj.d.cts → create-verification-C2JhOO6Y.d.cts} +94 -16
- package/dist/{create-verification-DjcMZHAQ.d.ts → create-verification-CGazwtAh.d.ts} +94 -16
- package/dist/detector-scanic-VQFFXKTL.js +1 -0
- package/dist/{hosted-client-DJXq_CB9.d.ts → hosted-client-kBeq-mnJ.d.cts} +164 -11
- package/dist/{hosted-client-DJXq_CB9.d.cts → hosted-client-kBeq-mnJ.d.ts} +164 -11
- package/dist/index.cjs +1 -3030
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -85
- package/dist/internal/index.cjs +1 -4439
- package/dist/internal/index.d.cts +10 -7
- package/dist/internal/index.d.ts +10 -7
- package/dist/internal/index.js +1 -657
- package/dist/popup/index.cjs +1 -76
- package/dist/popup/index.js +1 -11
- package/dist/scanic-ml-stub-KW7IZHUT.js +1 -0
- package/package.json +5 -8
- package/sbom.cdx.json +195 -0
- package/dist/chunk-MWNFSNMP.js +0 -52
- package/dist/chunk-MWNFSNMP.js.map +0 -1
- package/dist/chunk-NILNKLK6.js +0 -50
- package/dist/chunk-NILNKLK6.js.map +0 -1
- package/dist/chunk-NWF46H7K.js +0 -359
- package/dist/chunk-NWF46H7K.js.map +0 -1
- package/dist/chunk-R3SJQHYU.js +0 -1173
- package/dist/chunk-R3SJQHYU.js.map +0 -1
- package/dist/chunk-TG5IE552.js +0 -1128
- package/dist/chunk-TG5IE552.js.map +0 -1
- package/dist/chunk-WY6U7AIK.js +0 -193
- package/dist/chunk-WY6U7AIK.js.map +0 -1
- package/dist/chunk-YVFF4Q4G.js +0 -327
- package/dist/chunk-YVFF4Q4G.js.map +0 -1
- package/dist/client/index.cjs.map +0 -1
- package/dist/client/index.js.map +0 -1
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/core/v3/detect-worker.cjs.map +0 -1
- package/dist/core/v3/detect-worker.js.map +0 -1
- package/dist/detector-scanic-4C6IEW2K.js +0 -787
- package/dist/detector-scanic-4C6IEW2K.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/internal/index.cjs.map +0 -1
- package/dist/internal/index.js.map +0 -1
- package/dist/popup/index.cjs.map +0 -1
- package/dist/popup/index.js.map +0 -1
- package/dist/scanic-ml-stub-S2OZ6HEF.js +0 -10
- package/dist/scanic-ml-stub-S2OZ6HEF.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { C as CameraFacing, a as CaptureChannel, b as CaptureEngineId, c as CaptureError, d as CaptureErrorKind, e as CaptureState, f as CapturedArtifacts, D as DEFAULT_API_ORIGIN, G as GateHint, g as GateUpdate, L as LivenessAssetsStatus, h as LivenessCaptureEvents, i as LivenessCaptureHandle, j as LivenessCaptureOptions, k as LivenessStartOptions, P as PreloadLivenessAssetsOptions, R as ReasonCode, S as SdkFailureReason, V as Verification, l as
|
|
1
|
+
export { C as CameraFacing, a as CaptureChannel, b as CaptureEngineId, c as CaptureError, d as CaptureErrorKind, e as CaptureState, f as CapturedArtifacts, D as DEFAULT_API_ORIGIN, G as GateHint, g as GateUpdate, L as LivenessAssetsStatus, h as LivenessCaptureEvents, i as LivenessCaptureHandle, j as LivenessCaptureOptions, k as LivenessStartOptions, P as PreloadLivenessAssetsOptions, R as ReasonCode, S as SdkFailureReason, V as Verification, l as VerificationBusy, m as VerificationEvents, n as VerificationLocale, o as VerificationOptions, p as VerificationResult, q as VerificationStatus, r as createLivenessCapture, s as createVerification, t as getLivenessAssetsStatus, u as preloadLivenessAssets, v as releaseLivenessAssets, w as subscribeLivenessAssets } from './create-verification-C2JhOO6Y.cjs';
|
|
2
2
|
export { OpenHostedOptions, PopupBlocked, PopupHandle, SEKYRO_EVENTS, SekyroEvent, SekyroEventName, openHosted } from './popup/index.cjs';
|
|
3
3
|
export { HostedApiError, KNOWN_CODES, KnownCode, isKnownCode } from './client/index.cjs';
|
|
4
|
-
export { C as CheckReason, a as CheckState, b as CheckType, D as DocReason, F as FaceMatchReason, H as HostedOtpView,
|
|
4
|
+
export { A as AcceptedDocumentType, C as CheckReason, a as CheckState, b as CheckType, D as DecisionReason, c as DocReason, F as FaceMatchReason, H as HostedBranding, d as HostedBrandingColorKey, e as HostedOtpView, f as HostedSessionView, g as HostedStepView, h as HostedVoiceLocale, i as HostedVoiceView, I as IdentityMethod, L as LivenessReason, M as MatchReason, j as MethodChoiceView, P as PhoneOtpReason, k as PolicyFailureReason, l as PopulationReason, S as SessionFailureReason, m as SessionOutcome, n as SessionStatus } from './hosted-client-kBeq-mnJ.cjs';
|
|
5
5
|
import './detect-worker-CKXHlXx9.cjs';
|
|
6
6
|
import './capture-session-v3-UQU_WjO2.cjs';
|
|
7
7
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { C as CameraFacing, a as CaptureChannel, b as CaptureEngineId, c as CaptureError, d as CaptureErrorKind, e as CaptureState, f as CapturedArtifacts, D as DEFAULT_API_ORIGIN, G as GateHint, g as GateUpdate, L as LivenessAssetsStatus, h as LivenessCaptureEvents, i as LivenessCaptureHandle, j as LivenessCaptureOptions, k as LivenessStartOptions, P as PreloadLivenessAssetsOptions, R as ReasonCode, S as SdkFailureReason, V as Verification, l as
|
|
1
|
+
export { C as CameraFacing, a as CaptureChannel, b as CaptureEngineId, c as CaptureError, d as CaptureErrorKind, e as CaptureState, f as CapturedArtifacts, D as DEFAULT_API_ORIGIN, G as GateHint, g as GateUpdate, L as LivenessAssetsStatus, h as LivenessCaptureEvents, i as LivenessCaptureHandle, j as LivenessCaptureOptions, k as LivenessStartOptions, P as PreloadLivenessAssetsOptions, R as ReasonCode, S as SdkFailureReason, V as Verification, l as VerificationBusy, m as VerificationEvents, n as VerificationLocale, o as VerificationOptions, p as VerificationResult, q as VerificationStatus, r as createLivenessCapture, s as createVerification, t as getLivenessAssetsStatus, u as preloadLivenessAssets, v as releaseLivenessAssets, w as subscribeLivenessAssets } from './create-verification-CGazwtAh.js';
|
|
2
2
|
export { OpenHostedOptions, PopupBlocked, PopupHandle, SEKYRO_EVENTS, SekyroEvent, SekyroEventName, openHosted } from './popup/index.js';
|
|
3
3
|
export { HostedApiError, KNOWN_CODES, KnownCode, isKnownCode } from './client/index.js';
|
|
4
|
-
export { C as CheckReason, a as CheckState, b as CheckType, D as DocReason, F as FaceMatchReason, H as HostedOtpView,
|
|
4
|
+
export { A as AcceptedDocumentType, C as CheckReason, a as CheckState, b as CheckType, D as DecisionReason, c as DocReason, F as FaceMatchReason, H as HostedBranding, d as HostedBrandingColorKey, e as HostedOtpView, f as HostedSessionView, g as HostedStepView, h as HostedVoiceLocale, i as HostedVoiceView, I as IdentityMethod, L as LivenessReason, M as MatchReason, j as MethodChoiceView, P as PhoneOtpReason, k as PolicyFailureReason, l as PopulationReason, S as SessionFailureReason, m as SessionOutcome, n as SessionStatus } from './hosted-client-kBeq-mnJ.js';
|
|
5
5
|
import './detect-worker-CKXHlXx9.js';
|
|
6
6
|
import './capture-session-v3-Okq0EQHG.js';
|
|
7
7
|
|
package/dist/index.js
CHANGED
|
@@ -1,85 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SEKYRO_EVENTS,
|
|
3
|
-
openHosted
|
|
4
|
-
} from "./chunk-NILNKLK6.js";
|
|
5
|
-
import {
|
|
6
|
-
DEFAULT_API_ORIGIN,
|
|
7
|
-
createLivenessCapture,
|
|
8
|
-
createVerification,
|
|
9
|
-
getLivenessAssetsStatus,
|
|
10
|
-
preloadLivenessAssets,
|
|
11
|
-
releaseLivenessAssets,
|
|
12
|
-
subscribeLivenessAssets
|
|
13
|
-
} from "./chunk-R3SJQHYU.js";
|
|
14
|
-
import "./chunk-TG5IE552.js";
|
|
15
|
-
import {
|
|
16
|
-
HostedApiError,
|
|
17
|
-
KNOWN_CODES,
|
|
18
|
-
isKnownCode
|
|
19
|
-
} from "./chunk-YVFF4Q4G.js";
|
|
20
|
-
import "./chunk-NWF46H7K.js";
|
|
21
|
-
import "./chunk-MWNFSNMP.js";
|
|
22
|
-
|
|
23
|
-
// src/capture/camera-probe.ts
|
|
24
|
-
async function permissionStatus() {
|
|
25
|
-
try {
|
|
26
|
-
if (typeof navigator === "undefined" || typeof navigator.permissions?.query !== "function") return null;
|
|
27
|
-
return await navigator.permissions.query({ name: "camera" });
|
|
28
|
-
} catch {
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
function asState(state) {
|
|
33
|
-
return state === "granted" || state === "prompt" || state === "denied" ? state : "unknown";
|
|
34
|
-
}
|
|
35
|
-
async function queryCameraPermission() {
|
|
36
|
-
const status = await permissionStatus();
|
|
37
|
-
return status === null ? "unknown" : asState(status.state);
|
|
38
|
-
}
|
|
39
|
-
function subscribeCameraPermission(listener) {
|
|
40
|
-
let stopped = false;
|
|
41
|
-
let status = null;
|
|
42
|
-
const onChange = () => {
|
|
43
|
-
if (!stopped && status !== null) listener(asState(status.state));
|
|
44
|
-
};
|
|
45
|
-
void permissionStatus().then((resolved) => {
|
|
46
|
-
if (stopped) return;
|
|
47
|
-
status = resolved;
|
|
48
|
-
listener(resolved === null ? "unknown" : asState(resolved.state));
|
|
49
|
-
resolved?.addEventListener?.("change", onChange);
|
|
50
|
-
});
|
|
51
|
-
return () => {
|
|
52
|
-
stopped = true;
|
|
53
|
-
status?.removeEventListener?.("change", onChange);
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
async function hasMultipleCameras() {
|
|
57
|
-
if (typeof navigator === "undefined") return false;
|
|
58
|
-
const ua = String(navigator.userAgent ?? "");
|
|
59
|
-
if (/Android|iPhone|iPad|iPod/i.test(ua)) return true;
|
|
60
|
-
if (/Macintosh/.test(ua) && (navigator.maxTouchPoints ?? 0) > 1) return true;
|
|
61
|
-
try {
|
|
62
|
-
const devices = await navigator.mediaDevices?.enumerateDevices?.() ?? [];
|
|
63
|
-
return devices.filter((device) => device.kind === "videoinput").length >= 2;
|
|
64
|
-
} catch {
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
export {
|
|
69
|
-
DEFAULT_API_ORIGIN,
|
|
70
|
-
HostedApiError,
|
|
71
|
-
KNOWN_CODES,
|
|
72
|
-
SEKYRO_EVENTS,
|
|
73
|
-
createLivenessCapture,
|
|
74
|
-
createVerification,
|
|
75
|
-
getLivenessAssetsStatus,
|
|
76
|
-
hasMultipleCameras,
|
|
77
|
-
isKnownCode,
|
|
78
|
-
openHosted,
|
|
79
|
-
preloadLivenessAssets,
|
|
80
|
-
queryCameraPermission,
|
|
81
|
-
releaseLivenessAssets,
|
|
82
|
-
subscribeCameraPermission,
|
|
83
|
-
subscribeLivenessAssets
|
|
84
|
-
};
|
|
85
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import{a as v,c as S}from"./chunk-SXZCL5NO.js";import{I as y,N as C,e as a,f as u,g as p,h as c,n as d}from"./chunk-P7ECRN47.js";import"./chunk-YQBK6OIM.js";import{a as m,b as l,c as f}from"./chunk-YOB4ZTYN.js";import"./chunk-IYUOYINS.js";import"./chunk-BMA36W2W.js";import"./chunk-FPXL63KZ.js";async function r(){try{return typeof navigator>"u"||typeof navigator.permissions?.query!="function"?null:await navigator.permissions.query({name:"camera"})}catch{return null}}function i(e){return e==="granted"||e==="prompt"||e==="denied"?e:"unknown"}async function P(){let e=await r();return e===null?"unknown":i(e.state)}function h(e){let n=!1,t=null,o=()=>{!n&&t!==null&&e(i(t.state))};return r().then(s=>{n||(t=s,e(s===null?"unknown":i(s.state)),s?.addEventListener?.("change",o))}),()=>{n=!0,t?.removeEventListener?.("change",o)}}async function g(){if(typeof navigator>"u")return!1;let e=String(navigator.userAgent??"");if(/Android|iPhone|iPad|iPod/i.test(e)||/Macintosh/.test(e)&&(navigator.maxTouchPoints??0)>1)return!0;try{return(await navigator.mediaDevices?.enumerateDevices?.()??[]).filter(t=>t.kind==="videoinput").length>=2}catch{return!1}}export{y as DEFAULT_API_ORIGIN,f as HostedApiError,m as KNOWN_CODES,v as SEKYRO_EVENTS,d as createLivenessCapture,C as createVerification,u as getLivenessAssetsStatus,g as hasMultipleCameras,l as isKnownCode,S as openHosted,a as preloadLivenessAssets,P as queryCameraPermission,c as releaseLivenessAssets,h as subscribeCameraPermission,p as subscribeLivenessAssets};
|