@sekyro/web 0.1.0-rc.2 → 0.1.0-rc.21

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 (133) hide show
  1. package/CHANGELOG.md +313 -0
  2. package/LICENSE +25 -16
  3. package/README.md +111 -60
  4. package/THIRD-PARTY-NOTICES.txt +154 -0
  5. package/dist/background-monitor-A7FKJOAG.js +1 -0
  6. package/dist/camera-trait-45MJTW4K.js +1 -0
  7. package/dist/capture-constraints-B5omafmk.d.cts +44 -0
  8. package/dist/capture-constraints-B5omafmk.d.ts +44 -0
  9. package/dist/capture-session-doc-XBZGXWOP.js +1 -0
  10. package/dist/{capture-session-v3-CAoWM8iT.d.cts → capture-session-v3-26FgzBIl.d.cts} +185 -15
  11. package/dist/{capture-session-v3-BJ8ciaWl.d.ts → capture-session-v3-ZO0QOeQH.d.ts} +185 -15
  12. package/dist/chunk-234OZEDB.js +1 -0
  13. package/dist/chunk-33KKMPJ5.js +1 -0
  14. package/dist/chunk-53POX7U4.js +1 -0
  15. package/dist/chunk-7Q4YPMAF.js +1 -0
  16. package/dist/chunk-A3FUGHAH.js +2 -0
  17. package/dist/chunk-B2X33ZW2.js +1 -0
  18. package/dist/chunk-CJHMFPL6.js +1 -0
  19. package/dist/chunk-CQ7SKLMC.js +1 -0
  20. package/dist/chunk-DFTCAWMP.js +1 -0
  21. package/dist/chunk-DK5YPBDQ.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-GT2ZLGF7.js +1 -0
  27. package/dist/chunk-H3HVCWLF.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-P3H3D33O.js +1 -0
  32. package/dist/chunk-P6UP4UQY.js +1 -0
  33. package/dist/chunk-POIQGEZM.js +1 -0
  34. package/dist/chunk-QYYJLXKA.js +1 -0
  35. package/dist/chunk-RI3E7GBN.js +1 -0
  36. package/dist/chunk-SMKCBUJL.js +1 -0
  37. package/dist/chunk-SNACCYTL.js +1 -0
  38. package/dist/chunk-TDLIXFDT.js +1 -0
  39. package/dist/chunk-TQB3URP2.js +1 -0
  40. package/dist/chunk-VIAT4DEA.js +1 -0
  41. package/dist/chunk-ZADZTM3M.js +1 -0
  42. package/dist/chunk-ZNIZACXD.js +1 -0
  43. package/dist/client/index.cjs +1 -357
  44. package/dist/client/index.d.cts +6 -37
  45. package/dist/client/index.d.ts +6 -37
  46. package/dist/client/index.js +1 -15
  47. package/dist/core/index.cjs +1 -1605
  48. package/dist/core/index.d.cts +5 -4
  49. package/dist/core/index.d.ts +5 -4
  50. package/dist/core/index.js +1 -139
  51. package/dist/core/ocr/worker.bundle.js +42 -0
  52. package/dist/core/ocr/worker.cjs +42 -0
  53. package/dist/core/ocr/worker.d.cts +84 -0
  54. package/dist/core/ocr/worker.d.ts +84 -0
  55. package/dist/core/ocr/worker.js +41 -0
  56. package/dist/core/v3/detect-worker.cjs +1 -392
  57. package/dist/core/v3/detect-worker.d.cts +1 -1
  58. package/dist/core/v3/detect-worker.d.ts +1 -1
  59. package/dist/core/v3/detect-worker.js +1 -13
  60. package/dist/create-document-capture-23R2F47A.js +1 -0
  61. package/dist/create-portrait-capture-AGFHECK7.js +1 -0
  62. package/dist/create-verification-CXhXxknV.d.cts +3313 -0
  63. package/dist/create-verification-KlHIU4Fy.d.ts +3313 -0
  64. package/dist/{detect-worker-CKXHlXx9.d.cts → detect-worker-DclNxkZT.d.cts} +6 -0
  65. package/dist/{detect-worker-CKXHlXx9.d.ts → detect-worker-DclNxkZT.d.ts} +6 -0
  66. package/dist/detector-scanic-YCDNLCGV.js +1 -0
  67. package/dist/icao-gate-DI8VePWd.d.ts +566 -0
  68. package/dist/icao-gate-DvzOzHq6.d.cts +566 -0
  69. package/dist/icao-gate-T3BTOKFJ.js +1 -0
  70. package/dist/icao-policy-DztbA50-.d.ts +71 -0
  71. package/dist/icao-policy-MRB8NMAu.d.cts +71 -0
  72. package/dist/icao-tuning-4ETMF53W.js +1 -0
  73. package/dist/index.cjs +1 -2636
  74. package/dist/index.d.cts +110 -5
  75. package/dist/index.d.ts +110 -5
  76. package/dist/index.js +1 -28
  77. package/dist/internal/index.cjs +1 -4166
  78. package/dist/internal/index.d.cts +369 -324
  79. package/dist/internal/index.d.ts +369 -324
  80. package/dist/internal/index.js +1 -647
  81. package/dist/keyframe-rank-YAJLYJYF.js +1 -0
  82. package/dist/landmarker-KB7LVXAU.js +1 -0
  83. package/dist/mrz-band-VYHOTDHY.js +1 -0
  84. package/dist/plan-runner-NUWONT7F.js +1 -0
  85. package/dist/popup/index.cjs +1 -76
  86. package/dist/popup/index.d.cts +8 -2
  87. package/dist/popup/index.d.ts +8 -2
  88. package/dist/popup/index.js +1 -11
  89. package/dist/print-AYSCRSZB.js +1 -0
  90. package/dist/scanic-ml-stub-KW7IZHUT.js +1 -0
  91. package/dist/segmenter-USLNBX65.js +1 -0
  92. package/dist/turnstile-FATNZ4AG.js +1 -0
  93. package/dist/types-C_XP92JQ.d.cts +1732 -0
  94. package/dist/types-C_XP92JQ.d.ts +1732 -0
  95. package/dist/upload-file-UYXOHCRG.js +1 -0
  96. package/package.json +27 -11
  97. package/sbom.cdx.json +234 -0
  98. package/dist/capture-constraints-BujkZcfb.d.cts +0 -21
  99. package/dist/capture-constraints-BujkZcfb.d.ts +0 -21
  100. package/dist/chunk-BPYVZUJA.js +0 -852
  101. package/dist/chunk-BPYVZUJA.js.map +0 -1
  102. package/dist/chunk-LOTAJDRE.js +0 -1094
  103. package/dist/chunk-LOTAJDRE.js.map +0 -1
  104. package/dist/chunk-MWNFSNMP.js +0 -52
  105. package/dist/chunk-MWNFSNMP.js.map +0 -1
  106. package/dist/chunk-NILNKLK6.js +0 -50
  107. package/dist/chunk-NILNKLK6.js.map +0 -1
  108. package/dist/chunk-NWF46H7K.js +0 -359
  109. package/dist/chunk-NWF46H7K.js.map +0 -1
  110. package/dist/chunk-WY6U7AIK.js +0 -193
  111. package/dist/chunk-WY6U7AIK.js.map +0 -1
  112. package/dist/chunk-YVFF4Q4G.js +0 -327
  113. package/dist/chunk-YVFF4Q4G.js.map +0 -1
  114. package/dist/client/index.cjs.map +0 -1
  115. package/dist/client/index.js.map +0 -1
  116. package/dist/core/index.cjs.map +0 -1
  117. package/dist/core/index.js.map +0 -1
  118. package/dist/core/v3/detect-worker.cjs.map +0 -1
  119. package/dist/core/v3/detect-worker.js.map +0 -1
  120. package/dist/create-verification-CjLnJ0w6.d.ts +0 -348
  121. package/dist/create-verification-EnZ13uY4.d.cts +0 -348
  122. package/dist/detector-scanic-4C6IEW2K.js +0 -787
  123. package/dist/detector-scanic-4C6IEW2K.js.map +0 -1
  124. package/dist/hosted-client-BpvBqu9f.d.cts +0 -408
  125. package/dist/hosted-client-BpvBqu9f.d.ts +0 -408
  126. package/dist/index.cjs.map +0 -1
  127. package/dist/index.js.map +0 -1
  128. package/dist/internal/index.cjs.map +0 -1
  129. package/dist/internal/index.js.map +0 -1
  130. package/dist/popup/index.cjs.map +0 -1
  131. package/dist/popup/index.js.map +0 -1
  132. package/dist/scanic-ml-stub-S2OZ6HEF.js +0 -10
  133. package/dist/scanic-ml-stub-S2OZ6HEF.js.map +0 -1
@@ -0,0 +1 @@
1
+ var y=5242880,A=2560,m=[.92,.85,.75],g=new Set(["","image/jpeg","image/jpg","image/pjpeg","image/png","image/heic","image/heif","image/heic-sequence","image/heif-sequence"]),h=new Set(["heic","heix","hevc","hevx","heim","heis","mif1","msf1"]);function f(e){if(e.length>=3&&e[0]===255&&e[1]===216&&e[2]===255)return"jpeg";if(e.length>=8&&e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71&&e[4]===13&&e[5]===10&&e[6]===26&&e[7]===10)return"png";if(e.length>=12&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112){let t=String.fromCharCode(e[8],e[9],e[10],e[11]);return h.has(t)?"heif":null}return null}async function w(e){let t=e.slice(0,16);return typeof t.arrayBuffer=="function"?new Uint8Array(await t.arrayBuffer()):new Promise((i,n)=>{let r=new FileReader;r.onload=()=>i(new Uint8Array(r.result)),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}var x=async e=>{let t=await createImageBitmap(e,{imageOrientation:"from-image"});return{width:t.width,height:t.height,draw:(i,n,r)=>i.drawImage(t,0,0,n,r),close:()=>t.close()}},b=(e,t)=>{let i=document.createElement("canvas");i.width=e.width,i.height=e.height;let n=i.getContext("2d");return n===null?Promise.resolve(null):(e.draw(n,e.width,e.height),new Promise(r=>i.toBlob(r,"image/jpeg",t)))};async function U(e,t={}){let i=(e.type??"").toLowerCase();if(!g.has(i)||e.size===0)throw new TypeError("unsupported_file");let n;try{n=f(await w(e))}catch{n=null}if(n===null)throw new TypeError("unsupported_file");if(n!=="heif"&&e.size<=5242880)return{blob:e,contentType:n==="png"?"image/png":"image/jpeg",converted:!1};let r=t.decode??x,u=t.encode??b,o;try{o=await r(e)}catch{throw new TypeError("unsupported_file")}try{if(!(o.width>0&&o.height>0))throw new TypeError("unsupported_file");let l=Math.min(2560,Math.max(o.width,o.height));for(let c=0;c<2;c+=1){let s=l/Math.max(o.width,o.height),d={width:Math.max(1,Math.round(o.width*s)),height:Math.max(1,Math.round(o.height*s)),draw:o.draw};for(let p of m){let a=await u(d,p).catch(()=>null);if(a!==null&&a.size>0&&a.size<=5242880)return{blob:a,contentType:"image/jpeg",converted:!0}}l=Math.round(l*.75)}throw new TypeError("unsupported_file")}finally{o.close()}}export{y as UPLOAD_MAX_BYTES,A as UPLOAD_MAX_LONG_SIDE,U as prepareUploadFile,f as sniffUploadFormat};
package/package.json CHANGED
@@ -1,17 +1,13 @@
1
1
  {
2
2
  "name": "@sekyro/web",
3
- "version": "0.1.0-rc.2",
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.21",
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,22 +103,31 @@
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
- "@mediapipe/tasks-vision": "0.10.35"
123
+ "@mediapipe/tasks-vision": "0.10.35",
124
+ "@thumbmarkjs/thumbmarkjs": "1.12.0"
110
125
  },
111
126
  "devDependencies": {
112
127
  "@microsoft/api-extractor": "^7.59.4",
113
128
  "@types/node": "^22",
114
129
  "@vitest/coverage-v8": "^3",
130
+ "jpeg-js": "0.4.4",
115
131
  "jsdom": "^25",
116
132
  "tsup": "^8",
117
133
  "typescript": "^5.7",
package/sbom.cdx.json ADDED
@@ -0,0 +1,234 @@
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.21",
101
+ "bom-ref": "@sekyro/web@0.1.0-rc.21",
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.21?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.21|@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
+ "type": "library",
185
+ "name": "thumbmarkjs",
186
+ "group": "@thumbmarkjs",
187
+ "version": "1.12.0",
188
+ "bom-ref": "@sekyro/web@0.1.0-rc.21|@thumbmarkjs/thumbmarkjs@1.12.0",
189
+ "licenses": [
190
+ {
191
+ "license": {
192
+ "id": "MIT",
193
+ "acknowledgement": "declared"
194
+ }
195
+ }
196
+ ],
197
+ "purl": "pkg:npm/%40thumbmarkjs/thumbmarkjs@1.12.0",
198
+ "externalReferences": [
199
+ {
200
+ "url": "https://registry.npmjs.org/@thumbmarkjs/thumbmarkjs/-/thumbmarkjs-1.12.0.tgz",
201
+ "type": "distribution",
202
+ "hashes": [
203
+ {
204
+ "alg": "SHA-512",
205
+ "content": "a8620a9522a1b07ec2b5acd4f1d868c010cda359750de02bdf42bbf399c2b457734966a6fecc9bca388f9a62aefe352392e509f24afc572457896431426ffcd7"
206
+ }
207
+ ],
208
+ "comment": "as detected from npm-ls property \"resolved\" and property \"integrity\""
209
+ }
210
+ ],
211
+ "properties": [
212
+ {
213
+ "name": "cdx:npm:package:path",
214
+ "value": "node_modules/@thumbmarkjs/thumbmarkjs"
215
+ }
216
+ ]
217
+ }
218
+ ],
219
+ "dependencies": [
220
+ {
221
+ "ref": "@sekyro/web@0.1.0-rc.21",
222
+ "dependsOn": [
223
+ "@sekyro/web@0.1.0-rc.21|@mediapipe/tasks-vision@0.10.35",
224
+ "@sekyro/web@0.1.0-rc.21|@thumbmarkjs/thumbmarkjs@1.12.0"
225
+ ]
226
+ },
227
+ {
228
+ "ref": "@sekyro/web@0.1.0-rc.21|@mediapipe/tasks-vision@0.10.35"
229
+ },
230
+ {
231
+ "ref": "@sekyro/web@0.1.0-rc.21|@thumbmarkjs/thumbmarkjs@1.12.0"
232
+ }
233
+ ]
234
+ }
@@ -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 };