@sekyro/web 0.1.0-rc.5 → 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.
Files changed (67) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/LICENSE +3 -3
  3. package/README.md +4 -4
  4. package/dist/chunk-B45J4KC3.js +1 -0
  5. package/dist/chunk-BMA36W2W.js +1 -0
  6. package/dist/chunk-FPXL63KZ.js +1 -0
  7. package/dist/chunk-IYUOYINS.js +1 -0
  8. package/dist/chunk-P7ECRN47.js +1 -0
  9. package/dist/chunk-SXZCL5NO.js +1 -0
  10. package/dist/chunk-YOB4ZTYN.js +1 -0
  11. package/dist/chunk-YQBK6OIM.js +1 -0
  12. package/dist/client/index.cjs +1 -357
  13. package/dist/client/index.d.cts +2 -2
  14. package/dist/client/index.d.ts +2 -2
  15. package/dist/client/index.js +1 -15
  16. package/dist/core/index.cjs +1 -1639
  17. package/dist/core/index.js +1 -139
  18. package/dist/core/v3/detect-worker.cjs +1 -392
  19. package/dist/core/v3/detect-worker.js +1 -13
  20. package/dist/{create-verification-CA-3szPI.d.cts → create-verification-C2JhOO6Y.d.cts} +100 -15
  21. package/dist/{create-verification-c98uAxbl.d.ts → create-verification-CGazwtAh.d.ts} +100 -15
  22. package/dist/detector-scanic-VQFFXKTL.js +1 -0
  23. package/dist/{hosted-client-DWzCRYJK.d.ts → hosted-client-kBeq-mnJ.d.cts} +188 -7
  24. package/dist/{hosted-client-DWzCRYJK.d.cts → hosted-client-kBeq-mnJ.d.ts} +188 -7
  25. package/dist/index.cjs +1 -3020
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +1 -85
  29. package/dist/internal/index.cjs +1 -4429
  30. package/dist/internal/index.d.cts +10 -7
  31. package/dist/internal/index.d.ts +10 -7
  32. package/dist/internal/index.js +1 -657
  33. package/dist/popup/index.cjs +1 -76
  34. package/dist/popup/index.js +1 -11
  35. package/dist/scanic-ml-stub-KW7IZHUT.js +1 -0
  36. package/package.json +5 -8
  37. package/sbom.cdx.json +195 -0
  38. package/dist/chunk-MWNFSNMP.js +0 -52
  39. package/dist/chunk-MWNFSNMP.js.map +0 -1
  40. package/dist/chunk-NILNKLK6.js +0 -50
  41. package/dist/chunk-NILNKLK6.js.map +0 -1
  42. package/dist/chunk-NWF46H7K.js +0 -359
  43. package/dist/chunk-NWF46H7K.js.map +0 -1
  44. package/dist/chunk-SGDXLAXR.js +0 -1163
  45. package/dist/chunk-SGDXLAXR.js.map +0 -1
  46. package/dist/chunk-TG5IE552.js +0 -1128
  47. package/dist/chunk-TG5IE552.js.map +0 -1
  48. package/dist/chunk-WY6U7AIK.js +0 -193
  49. package/dist/chunk-WY6U7AIK.js.map +0 -1
  50. package/dist/chunk-YVFF4Q4G.js +0 -327
  51. package/dist/chunk-YVFF4Q4G.js.map +0 -1
  52. package/dist/client/index.cjs.map +0 -1
  53. package/dist/client/index.js.map +0 -1
  54. package/dist/core/index.cjs.map +0 -1
  55. package/dist/core/index.js.map +0 -1
  56. package/dist/core/v3/detect-worker.cjs.map +0 -1
  57. package/dist/core/v3/detect-worker.js.map +0 -1
  58. package/dist/detector-scanic-4C6IEW2K.js +0 -787
  59. package/dist/detector-scanic-4C6IEW2K.js.map +0 -1
  60. package/dist/index.cjs.map +0 -1
  61. package/dist/index.js.map +0 -1
  62. package/dist/internal/index.cjs.map +0 -1
  63. package/dist/internal/index.js.map +0 -1
  64. package/dist/popup/index.cjs.map +0 -1
  65. package/dist/popup/index.js.map +0 -1
  66. package/dist/scanic-ml-stub-S2OZ6HEF.js +0 -10
  67. 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 VerificationEvents, m as VerificationLocale, n as VerificationOptions, o as VerificationResult, p as VerificationStatus, q as createLivenessCapture, r as createVerification, s as getLivenessAssetsStatus, t as preloadLivenessAssets, u as releaseLivenessAssets, v as subscribeLivenessAssets } from './create-verification-CA-3szPI.cjs';
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, c as HostedSessionView, d as HostedStepView, L as LivenessReason, P as PhoneOtpReason, e as PopulationReason, S as SessionOutcome, f as SessionStatus } from './hosted-client-DWzCRYJK.cjs';
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 VerificationEvents, m as VerificationLocale, n as VerificationOptions, o as VerificationResult, p as VerificationStatus, q as createLivenessCapture, r as createVerification, s as getLivenessAssetsStatus, t as preloadLivenessAssets, u as releaseLivenessAssets, v as subscribeLivenessAssets } from './create-verification-c98uAxbl.js';
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, c as HostedSessionView, d as HostedStepView, L as LivenessReason, P as PhoneOtpReason, e as PopulationReason, S as SessionOutcome, f as SessionStatus } from './hosted-client-DWzCRYJK.js';
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-SGDXLAXR.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};