@tsocial/tvweb-sdk.platform 5.34.0 → 5.34.1
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/build/types/index.d.ts
CHANGED
|
@@ -1389,18 +1389,19 @@ type ErrorObject = {
|
|
|
1389
1389
|
};
|
|
1390
1390
|
};
|
|
1391
1391
|
type FlowId = 'face_authen' | 'onboarding' | (string & {});
|
|
1392
|
+
type IDCardStep = {
|
|
1393
|
+
scannerType: 'id_card' | 'qr_code';
|
|
1394
|
+
cardSide?: 'front' | 'back';
|
|
1395
|
+
title?: string;
|
|
1396
|
+
description?: string;
|
|
1397
|
+
titleIcon?: string;
|
|
1398
|
+
cardType?: string;
|
|
1399
|
+
enableConfirmPopup?: boolean;
|
|
1400
|
+
};
|
|
1392
1401
|
type ReadIDCardOptions = {
|
|
1393
1402
|
clientSettings: Record<string, any>;
|
|
1394
1403
|
onError: (error: ErrorObject) => void;
|
|
1395
|
-
steps?: Array<
|
|
1396
|
-
scannerType: 'id_card' | 'qr_code';
|
|
1397
|
-
cardSide?: 'front' | 'back';
|
|
1398
|
-
title?: string;
|
|
1399
|
-
description?: string;
|
|
1400
|
-
titleIcon?: string;
|
|
1401
|
-
cardType?: string;
|
|
1402
|
-
enableConfirmPopup?: boolean;
|
|
1403
|
-
}>;
|
|
1404
|
+
steps?: Array<IDCardStep>;
|
|
1404
1405
|
allowedCardTypes?: Array<string | CardType>;
|
|
1405
1406
|
detectIdCard?: () => Promise<{
|
|
1406
1407
|
card_label: string;
|
|
@@ -1449,11 +1450,11 @@ type LivenessDetectionDoneResult = {
|
|
|
1449
1450
|
verifyFaceLivenessResult?: any;
|
|
1450
1451
|
verifyFacePortraitResult?: any;
|
|
1451
1452
|
};
|
|
1452
|
-
type
|
|
1453
|
-
label: string;
|
|
1454
|
-
base64: string;
|
|
1455
|
-
metadata: string;
|
|
1453
|
+
type VideoFrame = {
|
|
1456
1454
|
index: number;
|
|
1455
|
+
base64: string;
|
|
1456
|
+
label: string;
|
|
1457
|
+
metadata?: string;
|
|
1457
1458
|
};
|
|
1458
1459
|
type BaseLivenessDetectionOptions = {
|
|
1459
1460
|
mode: typeof Mode[keyof typeof Mode];
|
|
@@ -1468,7 +1469,7 @@ type BaseLivenessDetectionOptions = {
|
|
|
1468
1469
|
framesIntervalTime: number;
|
|
1469
1470
|
framesBatchLength: number;
|
|
1470
1471
|
};
|
|
1471
|
-
onFramesCaptured?: (frames:
|
|
1472
|
+
onFramesCaptured?: (frames: VideoFrame[]) => void;
|
|
1472
1473
|
outputEncryptionSettings?: OutputEncryptionSettings;
|
|
1473
1474
|
logCredentials?: LogCredentials;
|
|
1474
1475
|
customTexts?: CustomTexts;
|
|
@@ -1492,12 +1493,6 @@ type FaceImage = {
|
|
|
1492
1493
|
metadata?: string;
|
|
1493
1494
|
encrypted?: string;
|
|
1494
1495
|
};
|
|
1495
|
-
type VideoFrame = {
|
|
1496
|
-
index: number;
|
|
1497
|
-
base64: string;
|
|
1498
|
-
label: string;
|
|
1499
|
-
metadata?: string;
|
|
1500
|
-
};
|
|
1501
1496
|
type Video = {
|
|
1502
1497
|
id?: string;
|
|
1503
1498
|
metadata?: string;
|
|
@@ -1530,7 +1525,7 @@ type BaseFaceAuthenticationOptions = {
|
|
|
1530
1525
|
framesIntervalTime: number;
|
|
1531
1526
|
framesBatchLength: number;
|
|
1532
1527
|
};
|
|
1533
|
-
onFramesCaptured?: (frames:
|
|
1528
|
+
onFramesCaptured?: (frames: VideoFrame[]) => void;
|
|
1534
1529
|
outputEncryptionSettings?: OutputEncryptionSettings;
|
|
1535
1530
|
logCredentials?: LogCredentials;
|
|
1536
1531
|
customTexts?: CustomTexts;
|
|
@@ -1825,3 +1820,4 @@ declare class TVWebSDK extends BaseTVWebSDK {
|
|
|
1825
1820
|
}
|
|
1826
1821
|
|
|
1827
1822
|
export { index$1 as Constants, TVWebSDK as SDK, SDKAdapter, ScannerType, defaultClientSettings, defaultSteps as defaultReadIDCardSteps, getSDKVersion };
|
|
1823
|
+
export type { BaseTVWebSDKProps, FaceAuthenticationOptions, FaceAuthenticationResult, IDCardStep, LivenessDetectionDoneResult, LivenessDetectionOptions, ReadIDCardOptions, ReadIDCardResult, ReadIDCardWithApiCallOptions, VideoFrame };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsocial/tvweb-sdk.platform",
|
|
3
|
-
"version": "5.34.
|
|
3
|
+
"version": "5.34.1",
|
|
4
4
|
"description": "TV Web SDK - The Standalone SDK",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Nha Hoang <nha.hoang@trustingsocial.com>",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@tsocial/tvweb-builder": "5.34.
|
|
33
|
-
"@tsocial/tvweb-core": "5.34.
|
|
34
|
-
"@tsocial/tvweb-ui": "5.34.
|
|
32
|
+
"@tsocial/tvweb-builder": "5.34.1",
|
|
33
|
+
"@tsocial/tvweb-core": "5.34.1",
|
|
34
|
+
"@tsocial/tvweb-ui": "5.34.1",
|
|
35
35
|
"invariant": "^2.2.4",
|
|
36
36
|
"react": "^16.14.0",
|
|
37
37
|
"react-app-polyfill": "^2.0.0",
|
|
38
38
|
"react-dom": "^16.14.0",
|
|
39
39
|
"styled-components": "^6.1.12"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "5e5b182616fb7c74a220af97d7a30f93e1111592"
|
|
42
42
|
}
|