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

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 (123) hide show
  1. package/CHANGELOG.md +213 -0
  2. package/LICENSE +25 -16
  3. package/README.md +105 -61
  4. package/THIRD-PARTY-NOTICES.txt +154 -0
  5. package/dist/background-monitor-A7FKJOAG.js +1 -0
  6. package/dist/capture-constraints-B5omafmk.d.cts +44 -0
  7. package/dist/capture-constraints-B5omafmk.d.ts +44 -0
  8. package/dist/capture-session-doc-GK6G7JOI.js +1 -0
  9. package/dist/{capture-session-v3-CAoWM8iT.d.cts → capture-session-v3-CmJw_bK0.d.cts} +141 -13
  10. package/dist/{capture-session-v3-BJ8ciaWl.d.ts → capture-session-v3-DGG2stO6.d.ts} +141 -13
  11. package/dist/chunk-3MSUJYBO.js +1 -0
  12. package/dist/chunk-7ZCZY3ZP.js +1 -0
  13. package/dist/chunk-A3FUGHAH.js +2 -0
  14. package/dist/chunk-BAGSM67V.js +1 -0
  15. package/dist/chunk-BPE5NSQ2.js +1 -0
  16. package/dist/chunk-CJHMFPL6.js +1 -0
  17. package/dist/chunk-DFTCAWMP.js +1 -0
  18. package/dist/chunk-DK5YPBDQ.js +1 -0
  19. package/dist/chunk-ETY6SAAZ.js +1 -0
  20. package/dist/chunk-FFDB6LQN.js +1 -0
  21. package/dist/chunk-FHJ7HO3M.js +1 -0
  22. package/dist/chunk-FPXL63KZ.js +1 -0
  23. package/dist/chunk-FUHDOEBP.js +1 -0
  24. package/dist/chunk-G6LKLN4U.js +1 -0
  25. package/dist/chunk-GI3UFGRQ.js +1 -0
  26. package/dist/chunk-HAO6EQTH.js +1 -0
  27. package/dist/chunk-HWAXEQD5.js +1 -0
  28. package/dist/chunk-MXWLCDFX.js +1 -0
  29. package/dist/chunk-O5WKNZ2C.js +1 -0
  30. package/dist/chunk-OKWG3PVH.js +1 -0
  31. package/dist/chunk-POIQGEZM.js +1 -0
  32. package/dist/chunk-RI3E7GBN.js +1 -0
  33. package/dist/chunk-SEC64KZ3.js +1 -0
  34. package/dist/chunk-SMKCBUJL.js +1 -0
  35. package/dist/chunk-SXZCL5NO.js +1 -0
  36. package/dist/chunk-SZ7YGNUZ.js +1 -0
  37. package/dist/chunk-TDLIXFDT.js +1 -0
  38. package/dist/chunk-UGMHAFEY.js +1 -0
  39. package/dist/chunk-WKJJEPWA.js +1 -0
  40. package/dist/chunk-XR64UFLK.js +1 -0
  41. package/dist/client/index.cjs +1 -357
  42. package/dist/client/index.d.cts +35 -3
  43. package/dist/client/index.d.ts +35 -3
  44. package/dist/client/index.js +1 -15
  45. package/dist/core/index.cjs +1 -1605
  46. package/dist/core/index.d.cts +4 -4
  47. package/dist/core/index.d.ts +4 -4
  48. package/dist/core/index.js +1 -139
  49. package/dist/core/ocr/worker.bundle.js +42 -0
  50. package/dist/core/ocr/worker.cjs +42 -0
  51. package/dist/core/ocr/worker.d.cts +84 -0
  52. package/dist/core/ocr/worker.d.ts +84 -0
  53. package/dist/core/ocr/worker.js +41 -0
  54. package/dist/core/v3/detect-worker.cjs +1 -392
  55. package/dist/core/v3/detect-worker.d.cts +1 -1
  56. package/dist/core/v3/detect-worker.d.ts +1 -1
  57. package/dist/core/v3/detect-worker.js +1 -13
  58. package/dist/create-document-capture-IGUQP2NS.js +1 -0
  59. package/dist/create-portrait-capture-RJSFY37D.js +1 -0
  60. package/dist/create-verification-Bb20j6zk.d.ts +2968 -0
  61. package/dist/create-verification-CtqF4A9W.d.cts +2968 -0
  62. package/dist/{detect-worker-CKXHlXx9.d.cts → detect-worker-DclNxkZT.d.cts} +6 -0
  63. package/dist/{detect-worker-CKXHlXx9.d.ts → detect-worker-DclNxkZT.d.ts} +6 -0
  64. package/dist/detector-scanic-YCDNLCGV.js +1 -0
  65. package/dist/icao-gate-PWBMKRGC.js +1 -0
  66. package/dist/icao-gate-terzKYD7.d.cts +1770 -0
  67. package/dist/icao-gate-terzKYD7.d.ts +1770 -0
  68. package/dist/icao-tuning-4GGVX6B4.js +1 -0
  69. package/dist/index.cjs +1 -2580
  70. package/dist/index.d.cts +73 -5
  71. package/dist/index.d.ts +73 -5
  72. package/dist/index.js +1 -28
  73. package/dist/internal/index.cjs +1 -4110
  74. package/dist/internal/index.d.cts +353 -322
  75. package/dist/internal/index.d.ts +353 -322
  76. package/dist/internal/index.js +1 -647
  77. package/dist/keyframe-rank-YAJLYJYF.js +1 -0
  78. package/dist/landmarker-KB7LVXAU.js +1 -0
  79. package/dist/mrz-band-VYHOTDHY.js +1 -0
  80. package/dist/plan-runner-QCK2SOGS.js +1 -0
  81. package/dist/popup/index.cjs +1 -76
  82. package/dist/popup/index.js +1 -11
  83. package/dist/scanic-ml-stub-KW7IZHUT.js +1 -0
  84. package/dist/segmenter-USLNBX65.js +1 -0
  85. package/dist/turnstile-FATNZ4AG.js +1 -0
  86. package/package.json +25 -10
  87. package/sbom.cdx.json +195 -0
  88. package/dist/capture-constraints-BujkZcfb.d.cts +0 -21
  89. package/dist/capture-constraints-BujkZcfb.d.ts +0 -21
  90. package/dist/chunk-LOTAJDRE.js +0 -1094
  91. package/dist/chunk-LOTAJDRE.js.map +0 -1
  92. package/dist/chunk-MWNFSNMP.js +0 -52
  93. package/dist/chunk-MWNFSNMP.js.map +0 -1
  94. package/dist/chunk-NILNKLK6.js +0 -50
  95. package/dist/chunk-NILNKLK6.js.map +0 -1
  96. package/dist/chunk-NU4YOLCN.js +0 -796
  97. package/dist/chunk-NU4YOLCN.js.map +0 -1
  98. package/dist/chunk-NWF46H7K.js +0 -359
  99. package/dist/chunk-NWF46H7K.js.map +0 -1
  100. package/dist/chunk-WY6U7AIK.js +0 -193
  101. package/dist/chunk-WY6U7AIK.js.map +0 -1
  102. package/dist/chunk-YVFF4Q4G.js +0 -327
  103. package/dist/chunk-YVFF4Q4G.js.map +0 -1
  104. package/dist/client/index.cjs.map +0 -1
  105. package/dist/client/index.js.map +0 -1
  106. package/dist/core/index.cjs.map +0 -1
  107. package/dist/core/index.js.map +0 -1
  108. package/dist/core/v3/detect-worker.cjs.map +0 -1
  109. package/dist/core/v3/detect-worker.js.map +0 -1
  110. package/dist/create-verification--ldwakXV.d.cts +0 -341
  111. package/dist/create-verification-BlAPWeW5.d.ts +0 -341
  112. package/dist/detector-scanic-4C6IEW2K.js +0 -787
  113. package/dist/detector-scanic-4C6IEW2K.js.map +0 -1
  114. package/dist/hosted-client-BpvBqu9f.d.cts +0 -408
  115. package/dist/hosted-client-BpvBqu9f.d.ts +0 -408
  116. package/dist/index.cjs.map +0 -1
  117. package/dist/index.js.map +0 -1
  118. package/dist/internal/index.cjs.map +0 -1
  119. package/dist/internal/index.js.map +0 -1
  120. package/dist/popup/index.cjs.map +0 -1
  121. package/dist/popup/index.js.map +0 -1
  122. package/dist/scanic-ml-stub-S2OZ6HEF.js +0 -10
  123. package/dist/scanic-ml-stub-S2OZ6HEF.js.map +0 -1
@@ -1,76 +1 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/popup/index.ts
21
- var popup_exports = {};
22
- __export(popup_exports, {
23
- SEKYRO_EVENTS: () => SEKYRO_EVENTS,
24
- open: () => open,
25
- openHosted: () => openHosted
26
- });
27
- module.exports = __toCommonJS(popup_exports);
28
- var SEKYRO_EVENTS = [
29
- "session.completed",
30
- "session.failed",
31
- "session.review_pending",
32
- "session.expired",
33
- "session.cancelled"
34
- ];
35
- var WINDOW_NAME = "sekyro-verify";
36
- var WINDOW_FEATURES = "width=480,height=720,noopener=false";
37
- var EVENT_NAMES = new Set(SEKYRO_EVENTS);
38
- function isSekyroEvent(data) {
39
- if (data === null || typeof data !== "object") return false;
40
- const d = data;
41
- return d.source === "sekyro" && d.version === 1 && typeof d.sessionId === "string" && typeof d.event === "string" && EVENT_NAMES.has(d.event);
42
- }
43
- function open(opts) {
44
- const origin = new URL(opts.hostedUrl).origin;
45
- const popup = window.open(opts.hostedUrl, WINDOW_NAME, WINDOW_FEATURES);
46
- if (!popup) return { error: "popup_blocked" };
47
- const listener = (ev) => {
48
- if (ev.source !== popup) return;
49
- if (ev.origin !== origin) return;
50
- if (!isSekyroEvent(ev.data)) return;
51
- const { source, version, event, sessionId } = ev.data;
52
- opts.onEvent({ source, version, event, sessionId });
53
- };
54
- window.addEventListener("message", listener);
55
- return {
56
- close() {
57
- window.removeEventListener("message", listener);
58
- popup.close();
59
- }
60
- };
61
- }
62
- function openHosted(hostedUrl, opts) {
63
- if (opts.mode === "redirect") {
64
- window.location.assign(hostedUrl);
65
- return { close() {
66
- } };
67
- }
68
- return open({ hostedUrl, onEvent: opts.onEvent ?? (() => void 0) });
69
- }
70
- // Annotate the CommonJS export names for ESM import in node:
71
- 0 && (module.exports = {
72
- SEKYRO_EVENTS,
73
- open,
74
- openHosted
75
- });
76
- //# sourceMappingURL=index.cjs.map
1
+ "use strict";var s=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var f=(n,e)=>{for(var t in e)s(n,t,{get:e[t],enumerable:!0})},y=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of E(e))!l.call(n,o)&&o!==t&&s(n,o,{get:()=>e[o],enumerable:!(r=a(e,o))||r.enumerable});return n};var k=n=>y(s({},"__esModule",{value:!0}),n);var m={};f(m,{SEKYRO_EVENTS:()=>i,open:()=>p,openHosted:()=>x});module.exports=k(m);var i=["session.completed","session.failed","session.review_pending","session.expired","session.cancelled"],S="sekyro-verify",g="width=480,height=720,noopener=false",w=new Set(i);function O(n){if(n===null||typeof n!="object")return!1;let e=n;return e.source==="sekyro"&&e.version===1&&typeof e.sessionId=="string"&&typeof e.event=="string"&&w.has(e.event)}function p(n){let e=new URL(n.hostedUrl).origin,t=window.open(n.hostedUrl,S,g);if(!t)return{error:"popup_blocked"};let r=o=>{if(o.source!==t||o.origin!==e||!O(o.data))return;let{source:d,version:c,event:v,sessionId:u}=o.data;n.onEvent({source:d,version:c,event:v,sessionId:u})};return window.addEventListener("message",r),{close(){window.removeEventListener("message",r),t.close()}}}function x(n,e){return e.mode==="redirect"?(window.location.assign(n),{close(){}}):p({hostedUrl:n,onEvent:e.onEvent??(()=>{})})}0&&(module.exports={SEKYRO_EVENTS,open,openHosted});
@@ -1,11 +1 @@
1
- import {
2
- SEKYRO_EVENTS,
3
- open,
4
- openHosted
5
- } from "../chunk-NILNKLK6.js";
6
- export {
7
- SEKYRO_EVENTS,
8
- open,
9
- openHosted
10
- };
11
- //# sourceMappingURL=index.js.map
1
+ import{a,b,c}from"../chunk-SXZCL5NO.js";export{a as SEKYRO_EVENTS,b as open,c as openHosted};
@@ -0,0 +1 @@
1
+ function e(){throw new Error("scanic ML detector is not vendored (classical pipeline only)")}var t={};export{t as default,e as initMlDetector};
@@ -0,0 +1 @@
1
+ var c="selfie_segmenter.tflite";function l(t){if(t===void 0||t.length===0)return null;let r=t.length===1,n=t[0],s=Float32Array.from(n.getAsFloat32Array());if(!r)for(let e=0;e<s.length;e+=1)s[e]=1-s[e];return{data:s,width:n.width,height:n.height}}async function u(t){let r=t.replace(/\/+$/,""),n=await import("@mediapipe/tasks-vision"),s=await n.FilesetResolver.forVisionTasks(r),e=await n.ImageSegmenter.createFromOptions(s,{baseOptions:{modelAssetPath:`${r}/${c}`,delegate:"CPU"},runningMode:"VIDEO",outputConfidenceMasks:!0,outputCategoryMask:!1});return{segment(i,a){try{let o=e.segmentForVideo(i,a);try{return l(o.confidenceMasks)}finally{o.close?.()}}catch{return null}},close(){try{e.close()}catch{}}}}export{c as SEGMENTER_MODEL,u as createSelfieSegmenter,l as personMaskOf};
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e}from"./chunk-O5WKNZ2C.js";export{b as TURNSTILE_EXECUTE_TIMEOUT_MS,a as TURNSTILE_SCRIPT_SRC,e as executeTurnstile,d as loadTurnstile,c as resetTurnstileForTests};
package/package.json CHANGED
@@ -1,17 +1,13 @@
1
1
  {
2
2
  "name": "@sekyro/web",
3
- "version": "0.1.0-rc.1",
4
- "description": "Sekyro web SDK — browser liveness capture, hosted-verification client and popup embed for Sekyro identity verification",
5
- "license": "UNLICENSED",
3
+ "version": "0.1.0-rc.10",
4
+ "description": "Sekyro AI web SDK \u2014 browser liveness capture, hosted-verification client and popup embed for Sekyro AI identity verification",
5
+ "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/IBTIKAR-Technologies/sekyro-sdks.git",
8
+ "url": "git+https://github.com/IBTIKAR-Technologies/ibtikar-identity.git",
9
9
  "directory": "packages/sekyro-web"
10
10
  },
11
- "homepage": "https://github.com/IBTIKAR-Technologies/sekyro-sdks/tree/main/packages/sekyro-web#readme",
12
- "bugs": {
13
- "url": "https://github.com/IBTIKAR-Technologies/sekyro-sdks/issues"
14
- },
15
11
  "keywords": [
16
12
  "sekyro",
17
13
  "kyc",
@@ -61,6 +57,17 @@
61
57
  "default": "./dist/core/v3/detect-worker.cjs"
62
58
  }
63
59
  },
60
+ "./core/ocr/worker": {
61
+ "import": {
62
+ "types": "./dist/core/ocr/worker.d.ts",
63
+ "default": "./dist/core/ocr/worker.js"
64
+ },
65
+ "require": {
66
+ "types": "./dist/core/ocr/worker.d.cts",
67
+ "default": "./dist/core/ocr/worker.cjs"
68
+ }
69
+ },
70
+ "./core/ocr/worker.bundle.js": "./dist/core/ocr/worker.bundle.js",
64
71
  "./client": {
65
72
  "import": {
66
73
  "types": "./dist/client/index.d.ts",
@@ -96,14 +103,21 @@
96
103
  "dist",
97
104
  "README.md",
98
105
  "CHANGELOG.md",
99
- "LICENSE"
106
+ "LICENSE",
107
+ "THIRD-PARTY-NOTICES.txt",
108
+ "sbom.cdx.json"
100
109
  ],
101
110
  "scripts": {
102
111
  "build": "tsup",
103
112
  "test": "vitest run",
104
113
  "typecheck": "tsc --noEmit",
105
114
  "api:report": "api-extractor run --local",
106
- "api:check": "api-extractor run"
115
+ "api:check": "api-extractor run",
116
+ "check:lazy-doc": "node scripts/check-lazy-doc.mjs",
117
+ "check:lazy-portrait": "node scripts/check-lazy-portrait.mjs",
118
+ "size": "node scripts/check-size.mjs",
119
+ "gen:ocr-assets": "node scripts/gen-ocr-assets.mjs",
120
+ "check:ocr-assets": "node scripts/gen-ocr-assets.mjs --check && node scripts/check-ocr-assets.mjs"
107
121
  },
108
122
  "dependencies": {
109
123
  "@mediapipe/tasks-vision": "0.10.35"
@@ -112,6 +126,7 @@
112
126
  "@microsoft/api-extractor": "^7.59.4",
113
127
  "@types/node": "^22",
114
128
  "@vitest/coverage-v8": "^3",
129
+ "jpeg-js": "0.4.4",
115
130
  "jsdom": "^25",
116
131
  "tsup": "^8",
117
132
  "typescript": "^5.7",
package/sbom.cdx.json ADDED
@@ -0,0 +1,195 @@
1
+ {
2
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
3
+ "bomFormat": "CycloneDX",
4
+ "specVersion": "1.6",
5
+ "version": 1,
6
+ "metadata": {
7
+ "tools": {
8
+ "components": [
9
+ {
10
+ "type": "application",
11
+ "name": "npm",
12
+ "version": "11.12.1"
13
+ },
14
+ {
15
+ "type": "library",
16
+ "name": "cyclonedx-library",
17
+ "group": "@cyclonedx",
18
+ "version": "10.3.0",
19
+ "author": "Jan Kowalleck",
20
+ "description": "Core functionality of CycloneDX for JavaScript (Node.js or WebBrowser).",
21
+ "licenses": [
22
+ {
23
+ "license": {
24
+ "id": "Apache-2.0"
25
+ }
26
+ }
27
+ ],
28
+ "externalReferences": [
29
+ {
30
+ "url": "https://github.com/CycloneDX/cyclonedx-javascript-library/issues",
31
+ "type": "issue-tracker",
32
+ "comment": "as detected from PackageJson property \"bugs.url\""
33
+ },
34
+ {
35
+ "url": "git+https://github.com/CycloneDX/cyclonedx-javascript-library.git",
36
+ "type": "vcs",
37
+ "comment": "as detected from PackageJson property \"repository.url\""
38
+ },
39
+ {
40
+ "url": "https://github.com/CycloneDX/cyclonedx-javascript-library#readme",
41
+ "type": "website",
42
+ "comment": "as detected from PackageJson property \"homepage\""
43
+ }
44
+ ],
45
+ "properties": [
46
+ {
47
+ "name": "cdx:npm:package:constraint:engine:node",
48
+ "value": ">=20.18.0"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "type": "application",
54
+ "name": "cyclonedx-npm",
55
+ "group": "@cyclonedx",
56
+ "version": "6.0.1",
57
+ "author": "Jan Kowalleck",
58
+ "description": "Create CycloneDX Software Bill of Materials (SBOM) from NPM projects.",
59
+ "licenses": [
60
+ {
61
+ "license": {
62
+ "id": "Apache-2.0"
63
+ }
64
+ }
65
+ ],
66
+ "externalReferences": [
67
+ {
68
+ "url": "https://github.com/CycloneDX/cyclonedx-node-npm/issues",
69
+ "type": "issue-tracker",
70
+ "comment": "as detected from PackageJson property \"bugs.url\""
71
+ },
72
+ {
73
+ "url": "git+https://github.com/CycloneDX/cyclonedx-node-npm.git",
74
+ "type": "vcs",
75
+ "comment": "as detected from PackageJson property \"repository.url\""
76
+ },
77
+ {
78
+ "url": "https://github.com/CycloneDX/cyclonedx-node-npm#readme",
79
+ "type": "website",
80
+ "comment": "as detected from PackageJson property \"homepage\""
81
+ }
82
+ ],
83
+ "properties": [
84
+ {
85
+ "name": "cdx:npm:package:constraint:engine:node",
86
+ "value": ">=20.18.0"
87
+ },
88
+ {
89
+ "name": "cdx:npm:package:constraint:engine:npm",
90
+ "value": ">=9"
91
+ }
92
+ ]
93
+ }
94
+ ]
95
+ },
96
+ "component": {
97
+ "type": "application",
98
+ "name": "web",
99
+ "group": "@sekyro",
100
+ "version": "0.1.0-rc.10",
101
+ "bom-ref": "@sekyro/web@0.1.0-rc.10",
102
+ "description": "Sekyro AI web SDK — browser liveness capture, hosted-verification client and popup embed for Sekyro AI identity verification",
103
+ "licenses": [
104
+ {
105
+ "license": {
106
+ "name": "SEE LICENSE IN LICENSE",
107
+ "acknowledgement": "declared"
108
+ }
109
+ }
110
+ ],
111
+ "purl": "pkg:npm/%40sekyro/web@0.1.0-rc.10?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2FIBTIKAR-Technologies%2Fibtikar-identity.git%23packages%2Fsekyro-web",
112
+ "externalReferences": [
113
+ {
114
+ "url": "https://github.com/IBTIKAR-Technologies/ibtikar-identity/issues",
115
+ "type": "issue-tracker",
116
+ "comment": "as detected from PackageJson property \"bugs.url\""
117
+ },
118
+ {
119
+ "url": "git+https://github.com/IBTIKAR-Technologies/ibtikar-identity.git#packages/sekyro-web",
120
+ "type": "vcs",
121
+ "comment": "as detected from PackageJson property \"repository.url\" and \"repository.directory\""
122
+ },
123
+ {
124
+ "url": "https://github.com/IBTIKAR-Technologies/ibtikar-identity#readme",
125
+ "type": "website",
126
+ "comment": "as detected from PackageJson property \"homepage\""
127
+ }
128
+ ],
129
+ "properties": [
130
+ {
131
+ "name": "cdx:npm:package:constraint:engine:node",
132
+ "value": ">=20"
133
+ },
134
+ {
135
+ "name": "cdx:npm:package:path",
136
+ "value": ""
137
+ }
138
+ ]
139
+ },
140
+ "properties": [
141
+ {
142
+ "name": "cdx:reproducible",
143
+ "value": "true"
144
+ }
145
+ ]
146
+ },
147
+ "components": [
148
+ {
149
+ "type": "library",
150
+ "name": "tasks-vision",
151
+ "group": "@mediapipe",
152
+ "version": "0.10.35",
153
+ "bom-ref": "@sekyro/web@0.1.0-rc.10|@mediapipe/tasks-vision@0.10.35",
154
+ "licenses": [
155
+ {
156
+ "license": {
157
+ "id": "Apache-2.0",
158
+ "acknowledgement": "declared"
159
+ }
160
+ }
161
+ ],
162
+ "purl": "pkg:npm/%40mediapipe/tasks-vision@0.10.35",
163
+ "externalReferences": [
164
+ {
165
+ "url": "https://registry.npmjs.org/@mediapipe/tasks-vision/-/tasks-vision-0.10.35.tgz",
166
+ "type": "distribution",
167
+ "hashes": [
168
+ {
169
+ "alg": "SHA-512",
170
+ "content": "1cebda77055113a242fb8e67c988669f2c27af987f27c299bce794355386f6aff4f3be6966022dce7141f5b453bcb736eb861226a899d4db08a424ad270fde82"
171
+ }
172
+ ],
173
+ "comment": "as detected from npm-ls property \"resolved\" and property \"integrity\""
174
+ }
175
+ ],
176
+ "properties": [
177
+ {
178
+ "name": "cdx:npm:package:path",
179
+ "value": "node_modules/@mediapipe/tasks-vision"
180
+ }
181
+ ]
182
+ }
183
+ ],
184
+ "dependencies": [
185
+ {
186
+ "ref": "@sekyro/web@0.1.0-rc.10",
187
+ "dependsOn": [
188
+ "@sekyro/web@0.1.0-rc.10|@mediapipe/tasks-vision@0.10.35"
189
+ ]
190
+ },
191
+ {
192
+ "ref": "@sekyro/web@0.1.0-rc.10|@mediapipe/tasks-vision@0.10.35"
193
+ }
194
+ ]
195
+ }
@@ -1,21 +0,0 @@
1
- /** getUserMedia constraint tier — 720p-class on every device since 2026-07-06.
2
- * The v2 FAS-CLIP liveness head loses its texture cues below ~720p: the SAME
3
- * genuine clip scores heads 0.0001 at 720x1280 vs 0.355 at the old 480x360
4
- * mobile tier, which pushed real users into review (first observed live on
5
- * staging 2026-07-06; falsified on corpus clips the same day). Dimensions are
6
- * sensor-relative (landscape); mobile browsers deliver portrait via rotation
7
- * metadata, which the liveness service's decoder applies (cv2
8
- * ORIENTATION_AUTO). `isMobile` is kept for call-site compat and future
9
- * divergence — both tiers are 720p today. Bitrate pairs with VIDEO_BPS in
10
- * clip-recorder.ts (2.5 Mbps). */
11
- declare function buildCaptureConstraints(isMobile: boolean, facingMode: "user" | "environment"): MediaStreamConstraints;
12
- /** v1 mobile heuristic (FaceCaptureV2.tsx L216-224). */
13
- declare function detectIsMobile(): boolean;
14
- /** Gate radius as a fraction of the guidance circle (v1 L501: circleSize × 0.45). */
15
- declare const CIRCLE_RADIUS_FACTOR = 0.45;
16
- /** `inCircle` tolerance as a fraction of the gate radius (v1 L508: r × 0.9). */
17
- declare const IN_CIRCLE_FACTOR = 0.9;
18
- /** `centered` tolerance as a fraction of the gate radius (v1 L509: r × 0.4). */
19
- declare const CENTERED_FACTOR = 0.4;
20
-
21
- export { CENTERED_FACTOR as C, IN_CIRCLE_FACTOR as I, CIRCLE_RADIUS_FACTOR as a, buildCaptureConstraints as b, detectIsMobile as d };
@@ -1,21 +0,0 @@
1
- /** getUserMedia constraint tier — 720p-class on every device since 2026-07-06.
2
- * The v2 FAS-CLIP liveness head loses its texture cues below ~720p: the SAME
3
- * genuine clip scores heads 0.0001 at 720x1280 vs 0.355 at the old 480x360
4
- * mobile tier, which pushed real users into review (first observed live on
5
- * staging 2026-07-06; falsified on corpus clips the same day). Dimensions are
6
- * sensor-relative (landscape); mobile browsers deliver portrait via rotation
7
- * metadata, which the liveness service's decoder applies (cv2
8
- * ORIENTATION_AUTO). `isMobile` is kept for call-site compat and future
9
- * divergence — both tiers are 720p today. Bitrate pairs with VIDEO_BPS in
10
- * clip-recorder.ts (2.5 Mbps). */
11
- declare function buildCaptureConstraints(isMobile: boolean, facingMode: "user" | "environment"): MediaStreamConstraints;
12
- /** v1 mobile heuristic (FaceCaptureV2.tsx L216-224). */
13
- declare function detectIsMobile(): boolean;
14
- /** Gate radius as a fraction of the guidance circle (v1 L501: circleSize × 0.45). */
15
- declare const CIRCLE_RADIUS_FACTOR = 0.45;
16
- /** `inCircle` tolerance as a fraction of the gate radius (v1 L508: r × 0.9). */
17
- declare const IN_CIRCLE_FACTOR = 0.9;
18
- /** `centered` tolerance as a fraction of the gate radius (v1 L509: r × 0.4). */
19
- declare const CENTERED_FACTOR = 0.4;
20
-
21
- export { CENTERED_FACTOR as C, IN_CIRCLE_FACTOR as I, CIRCLE_RADIUS_FACTOR as a, buildCaptureConstraints as b, detectIsMobile as d };