@sekyro/web 0.1.0-rc.1 → 0.1.0-rc.11
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 +225 -0
- package/LICENSE +25 -16
- package/README.md +105 -61
- package/THIRD-PARTY-NOTICES.txt +154 -0
- package/dist/background-monitor-A7FKJOAG.js +1 -0
- package/dist/capture-constraints-B5omafmk.d.cts +44 -0
- package/dist/capture-constraints-B5omafmk.d.ts +44 -0
- package/dist/capture-session-doc-DMQ7T3HC.js +1 -0
- package/dist/{capture-session-v3-CAoWM8iT.d.cts → capture-session-v3-CCHws1mz.d.cts} +174 -15
- package/dist/{capture-session-v3-BJ8ciaWl.d.ts → capture-session-v3-DYrhYJoM.d.ts} +174 -15
- package/dist/chunk-73M7LS4H.js +1 -0
- package/dist/chunk-7ZCZY3ZP.js +1 -0
- package/dist/chunk-A3FUGHAH.js +2 -0
- package/dist/chunk-AHD4DA2V.js +1 -0
- package/dist/chunk-BPE5NSQ2.js +1 -0
- package/dist/chunk-CJHMFPL6.js +1 -0
- package/dist/chunk-DFTCAWMP.js +1 -0
- package/dist/chunk-DK5YPBDQ.js +1 -0
- package/dist/chunk-FHJ7HO3M.js +1 -0
- package/dist/chunk-FPXL63KZ.js +1 -0
- package/dist/chunk-FUHDOEBP.js +1 -0
- package/dist/chunk-G6LKLN4U.js +1 -0
- package/dist/chunk-GI3UFGRQ.js +1 -0
- package/dist/chunk-GT2ZLGF7.js +1 -0
- package/dist/chunk-HHCGQSD4.js +1 -0
- package/dist/chunk-IJLHPX35.js +1 -0
- package/dist/chunk-JDGEZ542.js +1 -0
- package/dist/chunk-LUKTHL6K.js +1 -0
- package/dist/chunk-MXNZMTC2.js +1 -0
- package/dist/chunk-MXWLCDFX.js +1 -0
- package/dist/chunk-O5WKNZ2C.js +1 -0
- package/dist/chunk-OKWG3PVH.js +1 -0
- package/dist/chunk-OWU22VXP.js +1 -0
- package/dist/chunk-POIQGEZM.js +1 -0
- package/dist/chunk-RI3E7GBN.js +1 -0
- package/dist/chunk-SMKCBUJL.js +1 -0
- package/dist/chunk-TDLIXFDT.js +1 -0
- package/dist/chunk-U6TYL2IJ.js +1 -0
- package/dist/chunk-URUKV6NC.js +1 -0
- package/dist/chunk-V5K2JLC7.js +1 -0
- package/dist/client/index.cjs +1 -357
- package/dist/client/index.d.cts +37 -3
- package/dist/client/index.d.ts +37 -3
- package/dist/client/index.js +1 -15
- package/dist/core/index.cjs +1 -1605
- package/dist/core/index.d.cts +5 -4
- package/dist/core/index.d.ts +5 -4
- package/dist/core/index.js +1 -139
- package/dist/core/ocr/worker.bundle.js +42 -0
- package/dist/core/ocr/worker.cjs +42 -0
- package/dist/core/ocr/worker.d.cts +84 -0
- package/dist/core/ocr/worker.d.ts +84 -0
- package/dist/core/ocr/worker.js +41 -0
- package/dist/core/v3/detect-worker.cjs +1 -392
- package/dist/core/v3/detect-worker.d.cts +1 -1
- package/dist/core/v3/detect-worker.d.ts +1 -1
- package/dist/core/v3/detect-worker.js +1 -13
- package/dist/create-document-capture-FV4XGUKQ.js +1 -0
- package/dist/create-portrait-capture-C462EIB6.js +1 -0
- package/dist/create-verification-CmJzn7sq.d.ts +3041 -0
- package/dist/create-verification-CzLrQjeM.d.cts +3041 -0
- package/dist/{detect-worker-CKXHlXx9.d.cts → detect-worker-DclNxkZT.d.cts} +6 -0
- package/dist/{detect-worker-CKXHlXx9.d.ts → detect-worker-DclNxkZT.d.ts} +6 -0
- package/dist/detector-scanic-YCDNLCGV.js +1 -0
- package/dist/icao-gate-BeznQECA.d.cts +500 -0
- package/dist/icao-gate-Bw5sQVlt.d.ts +500 -0
- package/dist/icao-gate-PWBMKRGC.js +1 -0
- package/dist/icao-tuning-4GGVX6B4.js +1 -0
- package/dist/index.cjs +1 -2580
- package/dist/index.d.cts +84 -5
- package/dist/index.d.ts +84 -5
- package/dist/index.js +1 -28
- package/dist/internal/index.cjs +1 -4110
- package/dist/internal/index.d.cts +364 -324
- package/dist/internal/index.d.ts +364 -324
- package/dist/internal/index.js +1 -647
- package/dist/keyframe-rank-YAJLYJYF.js +1 -0
- package/dist/landmarker-KB7LVXAU.js +1 -0
- package/dist/mrz-band-VYHOTDHY.js +1 -0
- package/dist/plan-runner-ZVAY4FSB.js +1 -0
- package/dist/popup/index.cjs +1 -76
- package/dist/popup/index.d.cts +7 -1
- package/dist/popup/index.d.ts +7 -1
- package/dist/popup/index.js +1 -11
- package/dist/scanic-ml-stub-KW7IZHUT.js +1 -0
- package/dist/segmenter-USLNBX65.js +1 -0
- package/dist/turnstile-FATNZ4AG.js +1 -0
- package/dist/types-BWyAHKt_.d.cts +1435 -0
- package/dist/types-BWyAHKt_.d.ts +1435 -0
- package/package.json +25 -10
- package/sbom.cdx.json +195 -0
- package/dist/capture-constraints-BujkZcfb.d.cts +0 -21
- package/dist/capture-constraints-BujkZcfb.d.ts +0 -21
- package/dist/chunk-LOTAJDRE.js +0 -1094
- package/dist/chunk-LOTAJDRE.js.map +0 -1
- 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-NU4YOLCN.js +0 -796
- package/dist/chunk-NU4YOLCN.js.map +0 -1
- package/dist/chunk-NWF46H7K.js +0 -359
- package/dist/chunk-NWF46H7K.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/create-verification--ldwakXV.d.cts +0 -341
- package/dist/create-verification-BlAPWeW5.d.ts +0 -341
- package/dist/detector-scanic-4C6IEW2K.js +0 -787
- package/dist/detector-scanic-4C6IEW2K.js.map +0 -1
- package/dist/hosted-client-BpvBqu9f.d.cts +0 -408
- package/dist/hosted-client-BpvBqu9f.d.ts +0 -408
- 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/package.json
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sekyro/web",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
4
|
-
|
|
5
|
-
"license": "
|
|
3
|
+
"version": "0.1.0-rc.11",
|
|
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/
|
|
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.11",
|
|
101
|
+
"bom-ref": "@sekyro/web@0.1.0-rc.11",
|
|
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.11?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.11|@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.11",
|
|
187
|
+
"dependsOn": [
|
|
188
|
+
"@sekyro/web@0.1.0-rc.11|@mediapipe/tasks-vision@0.10.35"
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"ref": "@sekyro/web@0.1.0-rc.11|@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 };
|