@moveris/shared 3.11.0 → 3.12.0

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/README.md CHANGED
@@ -213,18 +213,42 @@ Model selection for liveness detection speed/accuracy trade-off.
213
213
 
214
214
  ```typescript
215
215
  type FastCheckModel =
216
+ | 'mixed-10-v3_1'
217
+ | 'mixed-30-v3_1'
218
+ | 'mixed-60-v3_1'
219
+ | 'mixed-90-v3_1' // Mixed v3_1 models (latest)
220
+ | 'mixed-10-v3'
221
+ | 'mixed-30-v3'
222
+ | 'mixed-60-v3' // Mixed v3 models
216
223
  | 'mixed-10-v2'
217
224
  | 'mixed-30-v2'
218
225
  | 'mixed-60-v2'
219
226
  | 'mixed-90-v2'
220
- | 'mixed-120-v2' // Active mixed-v2 models (recommended)
227
+ | 'mixed-120-v2' // Mixed v2 models
221
228
  | '10'
222
229
  | '50'
223
230
  | '250' // Legacy standard models
224
231
  | (string & object); // Forward-compatible with future model IDs
225
232
  ```
226
233
 
227
- Active models (recommended):
234
+ Mixed v3_1 models (alias: `'v3_1'`):
235
+
236
+ | Value | Frames | Description |
237
+ | ----------------- | ------ | ------------------------------ |
238
+ | `'mixed-10-v3_1'` | 10 | Fast verification, low latency |
239
+ | `'mixed-30-v3_1'` | 30 | Balanced speed and accuracy |
240
+ | `'mixed-60-v3_1'` | 60 | Higher accuracy |
241
+ | `'mixed-90-v3_1'` | 90 | High accuracy |
242
+
243
+ Mixed v3 models (alias: `'v3'`):
244
+
245
+ | Value | Frames | Description |
246
+ | --------------- | ------ | ------------------------------ |
247
+ | `'mixed-10-v3'` | 10 | Fast verification, low latency |
248
+ | `'mixed-30-v3'` | 30 | Balanced speed and accuracy |
249
+ | `'mixed-60-v3'` | 60 | Higher accuracy |
250
+
251
+ Mixed v2 models (alias: `'v2'`):
228
252
 
229
253
  | Value | Frames | Description |
230
254
  | ---------------- | ------ | ------------------------------ |
@@ -374,12 +398,23 @@ interface CropData {
374
398
  Version alias sent via the `X-Model-Version` request header for server-side model resolution.
375
399
 
376
400
  ```typescript
377
- type ModelVersion = 'latest' | 'v2' | 'v1' | 'fast' | 'spatial' | 'hybrid' | (string & object);
401
+ type ModelVersion =
402
+ | 'latest'
403
+ | 'v3_1'
404
+ | 'v3'
405
+ | 'v2'
406
+ | 'v1'
407
+ | 'fast'
408
+ | 'spatial'
409
+ | 'hybrid'
410
+ | (string & object);
378
411
  ```
379
412
 
380
413
  | Value | Resolves to |
381
414
  | ----------- | ----------------------------------- |
382
415
  | `'latest'` | Current production mixed-v2 model |
416
+ | `'v3_1'` | Mixed v3_1 models |
417
+ | `'v3'` | Mixed v3 models |
383
418
  | `'v2'` | Pinned mixed-v2 version |
384
419
  | `'v1'` | Legacy mixed-v1 models (deprecated) |
385
420
  | `'fast'` | Model `'10'` |
package/dist/index.d.mts CHANGED
@@ -42,8 +42,8 @@ interface ModelEntry {
42
42
  aliases?: string[];
43
43
  }
44
44
  type ModelsResponse = ModelEntry[];
45
- type FastCheckModel = '10' | '50' | '250' | 'hybrid-v2-10' | 'hybrid-v2-30' | 'hybrid-v2-50' | 'hybrid-v2-60' | 'hybrid-v2-90' | 'hybrid-v2-100' | 'hybrid-v2-125' | 'hybrid-v2-150' | 'hybrid-v2-250' | 'mixed-10' | 'mixed-30' | 'mixed-60' | 'mixed-90' | 'mixed-120' | 'mixed-150' | 'mixed-250' | 'mixed-10-v2' | 'mixed-30-v2' | 'mixed-60-v2' | 'mixed-90-v2' | 'mixed-120-v2' | (string & object);
46
- type ModelVersion = 'latest' | 'v2' | 'v1' | 'fast' | 'spatial' | 'hybrid' | (string & object);
45
+ type FastCheckModel = '10' | '50' | '250' | 'hybrid-v2-10' | 'hybrid-v2-30' | 'hybrid-v2-50' | 'hybrid-v2-60' | 'hybrid-v2-90' | 'hybrid-v2-100' | 'hybrid-v2-125' | 'hybrid-v2-150' | 'hybrid-v2-250' | 'mixed-10' | 'mixed-30' | 'mixed-60' | 'mixed-90' | 'mixed-120' | 'mixed-150' | 'mixed-250' | 'mixed-10-v2' | 'mixed-30-v2' | 'mixed-60-v2' | 'mixed-90-v2' | 'mixed-120-v2' | 'mixed-10-v3' | 'mixed-30-v3' | 'mixed-60-v3' | 'mixed-10-v3_1' | 'mixed-30-v3_1' | 'mixed-60-v3_1' | 'mixed-90-v3_1' | (string & object);
46
+ type ModelVersion = 'latest' | 'v1' | 'v2' | 'v3' | 'v3_1' | 'fast' | 'spatial' | 'hybrid' | (string & object);
47
47
  interface DeprecationInfo {
48
48
  deprecated: boolean;
49
49
  resolvedModel: string;
package/dist/index.d.ts CHANGED
@@ -42,8 +42,8 @@ interface ModelEntry {
42
42
  aliases?: string[];
43
43
  }
44
44
  type ModelsResponse = ModelEntry[];
45
- type FastCheckModel = '10' | '50' | '250' | 'hybrid-v2-10' | 'hybrid-v2-30' | 'hybrid-v2-50' | 'hybrid-v2-60' | 'hybrid-v2-90' | 'hybrid-v2-100' | 'hybrid-v2-125' | 'hybrid-v2-150' | 'hybrid-v2-250' | 'mixed-10' | 'mixed-30' | 'mixed-60' | 'mixed-90' | 'mixed-120' | 'mixed-150' | 'mixed-250' | 'mixed-10-v2' | 'mixed-30-v2' | 'mixed-60-v2' | 'mixed-90-v2' | 'mixed-120-v2' | (string & object);
46
- type ModelVersion = 'latest' | 'v2' | 'v1' | 'fast' | 'spatial' | 'hybrid' | (string & object);
45
+ type FastCheckModel = '10' | '50' | '250' | 'hybrid-v2-10' | 'hybrid-v2-30' | 'hybrid-v2-50' | 'hybrid-v2-60' | 'hybrid-v2-90' | 'hybrid-v2-100' | 'hybrid-v2-125' | 'hybrid-v2-150' | 'hybrid-v2-250' | 'mixed-10' | 'mixed-30' | 'mixed-60' | 'mixed-90' | 'mixed-120' | 'mixed-150' | 'mixed-250' | 'mixed-10-v2' | 'mixed-30-v2' | 'mixed-60-v2' | 'mixed-90-v2' | 'mixed-120-v2' | 'mixed-10-v3' | 'mixed-30-v3' | 'mixed-60-v3' | 'mixed-10-v3_1' | 'mixed-30-v3_1' | 'mixed-60-v3_1' | 'mixed-90-v3_1' | (string & object);
46
+ type ModelVersion = 'latest' | 'v1' | 'v2' | 'v3' | 'v3_1' | 'fast' | 'spatial' | 'hybrid' | (string & object);
47
47
  interface DeprecationInfo {
48
48
  deprecated: boolean;
49
49
  resolvedModel: string;
package/dist/index.js CHANGED
@@ -239,7 +239,7 @@ async function sleep(ms) {
239
239
  }
240
240
 
241
241
  // package.json
242
- var version = "3.11.0";
242
+ var version = "3.12.0";
243
243
 
244
244
  // src/utils/deviceIntelligence.ts
245
245
  var IPINFO_URL = "https://ipinfo.io/json";
@@ -1357,6 +1357,64 @@ var MODEL_CONFIGS = {
1357
1357
  description: "Mixed V2 120-frame model",
1358
1358
  deprecated: false,
1359
1359
  aliases: ["latest", "v2"]
1360
+ },
1361
+ // Mixed V3 models
1362
+ "mixed-10-v3": {
1363
+ type: "mixed-10-v3",
1364
+ minFrames: 10,
1365
+ recommendedFrames: 10,
1366
+ description: "Mixed V3 10-frame model",
1367
+ deprecated: false,
1368
+ aliases: ["v3"]
1369
+ },
1370
+ "mixed-30-v3": {
1371
+ type: "mixed-30-v3",
1372
+ minFrames: 30,
1373
+ recommendedFrames: 30,
1374
+ description: "Mixed V3 30-frame model",
1375
+ deprecated: false,
1376
+ aliases: ["v3"]
1377
+ },
1378
+ "mixed-60-v3": {
1379
+ type: "mixed-60-v3",
1380
+ minFrames: 60,
1381
+ recommendedFrames: 60,
1382
+ description: "Mixed V3 60-frame model",
1383
+ deprecated: false,
1384
+ aliases: ["v3"]
1385
+ },
1386
+ // Mixed V3_1 models
1387
+ "mixed-10-v3_1": {
1388
+ type: "mixed-10-v3_1",
1389
+ minFrames: 10,
1390
+ recommendedFrames: 10,
1391
+ description: "Mixed V3.1 10-frame model",
1392
+ deprecated: false,
1393
+ aliases: ["v3_1"]
1394
+ },
1395
+ "mixed-30-v3_1": {
1396
+ type: "mixed-30-v3_1",
1397
+ minFrames: 30,
1398
+ recommendedFrames: 30,
1399
+ description: "Mixed V3.1 30-frame model",
1400
+ deprecated: false,
1401
+ aliases: ["v3_1"]
1402
+ },
1403
+ "mixed-60-v3_1": {
1404
+ type: "mixed-60-v3_1",
1405
+ minFrames: 60,
1406
+ recommendedFrames: 60,
1407
+ description: "Mixed V3.1 60-frame model",
1408
+ deprecated: false,
1409
+ aliases: ["v3_1"]
1410
+ },
1411
+ "mixed-90-v3_1": {
1412
+ type: "mixed-90-v3_1",
1413
+ minFrames: 90,
1414
+ recommendedFrames: 90,
1415
+ description: "Mixed V3.1 90-frame model",
1416
+ deprecated: false,
1417
+ aliases: ["v3_1"]
1360
1418
  }
1361
1419
  };
1362
1420
  var HYBRID_MODEL_CONFIGS = {
package/dist/index.mjs CHANGED
@@ -97,7 +97,7 @@ async function sleep(ms) {
97
97
  }
98
98
 
99
99
  // package.json
100
- var version = "3.11.0";
100
+ var version = "3.12.0";
101
101
 
102
102
  // src/utils/deviceIntelligence.ts
103
103
  var IPINFO_URL = "https://ipinfo.io/json";
@@ -1215,6 +1215,64 @@ var MODEL_CONFIGS = {
1215
1215
  description: "Mixed V2 120-frame model",
1216
1216
  deprecated: false,
1217
1217
  aliases: ["latest", "v2"]
1218
+ },
1219
+ // Mixed V3 models
1220
+ "mixed-10-v3": {
1221
+ type: "mixed-10-v3",
1222
+ minFrames: 10,
1223
+ recommendedFrames: 10,
1224
+ description: "Mixed V3 10-frame model",
1225
+ deprecated: false,
1226
+ aliases: ["v3"]
1227
+ },
1228
+ "mixed-30-v3": {
1229
+ type: "mixed-30-v3",
1230
+ minFrames: 30,
1231
+ recommendedFrames: 30,
1232
+ description: "Mixed V3 30-frame model",
1233
+ deprecated: false,
1234
+ aliases: ["v3"]
1235
+ },
1236
+ "mixed-60-v3": {
1237
+ type: "mixed-60-v3",
1238
+ minFrames: 60,
1239
+ recommendedFrames: 60,
1240
+ description: "Mixed V3 60-frame model",
1241
+ deprecated: false,
1242
+ aliases: ["v3"]
1243
+ },
1244
+ // Mixed V3_1 models
1245
+ "mixed-10-v3_1": {
1246
+ type: "mixed-10-v3_1",
1247
+ minFrames: 10,
1248
+ recommendedFrames: 10,
1249
+ description: "Mixed V3.1 10-frame model",
1250
+ deprecated: false,
1251
+ aliases: ["v3_1"]
1252
+ },
1253
+ "mixed-30-v3_1": {
1254
+ type: "mixed-30-v3_1",
1255
+ minFrames: 30,
1256
+ recommendedFrames: 30,
1257
+ description: "Mixed V3.1 30-frame model",
1258
+ deprecated: false,
1259
+ aliases: ["v3_1"]
1260
+ },
1261
+ "mixed-60-v3_1": {
1262
+ type: "mixed-60-v3_1",
1263
+ minFrames: 60,
1264
+ recommendedFrames: 60,
1265
+ description: "Mixed V3.1 60-frame model",
1266
+ deprecated: false,
1267
+ aliases: ["v3_1"]
1268
+ },
1269
+ "mixed-90-v3_1": {
1270
+ type: "mixed-90-v3_1",
1271
+ minFrames: 90,
1272
+ recommendedFrames: 90,
1273
+ description: "Mixed V3.1 90-frame model",
1274
+ deprecated: false,
1275
+ aliases: ["v3_1"]
1218
1276
  }
1219
1277
  };
1220
1278
  var HYBRID_MODEL_CONFIGS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moveris/shared",
3
- "version": "3.11.0",
3
+ "version": "3.12.0",
4
4
  "description": "Core business logic for Moveris Live SDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",