@tsocial/tvweb-sdk-types 5.39.0 → 5.40.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/build/index.d.ts +140 -179
- package/package.json +3 -3
package/build/index.d.ts
CHANGED
|
@@ -1215,24 +1215,24 @@ type Translation = typeof _default;
|
|
|
1215
1215
|
type CustomTexts = Partial<Translation> & {
|
|
1216
1216
|
[key: string]: string;
|
|
1217
1217
|
};
|
|
1218
|
-
interface BlazefaceModel
|
|
1218
|
+
interface BlazefaceModel {
|
|
1219
1219
|
load(params?: {
|
|
1220
1220
|
modelUrl?: string;
|
|
1221
1221
|
}): Promise<any>;
|
|
1222
1222
|
}
|
|
1223
|
-
interface TFLite
|
|
1223
|
+
interface TFLite {
|
|
1224
1224
|
loadTFLiteModel(data: Uint8Array, options?: Record<string, any>): Promise<any>;
|
|
1225
1225
|
}
|
|
1226
|
-
interface TensorFlow
|
|
1226
|
+
interface TensorFlow {
|
|
1227
1227
|
enableProdMode(): Promise<void>;
|
|
1228
1228
|
setBackend(backend: string): Promise<void>;
|
|
1229
1229
|
ready(): Promise<void>;
|
|
1230
1230
|
}
|
|
1231
1231
|
declare global {
|
|
1232
1232
|
interface Window {
|
|
1233
|
-
tf: TensorFlow
|
|
1234
|
-
blazeface: BlazefaceModel
|
|
1235
|
-
tflite: TFLite
|
|
1233
|
+
tf: TensorFlow;
|
|
1234
|
+
blazeface: BlazefaceModel;
|
|
1235
|
+
tflite: TFLite;
|
|
1236
1236
|
tv_model_backend_init?: string[];
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
@@ -1465,6 +1465,13 @@ type ReadIDCardOptions = {
|
|
|
1465
1465
|
customErrors?: CustomErrors;
|
|
1466
1466
|
customTheme?: Record<string, any>;
|
|
1467
1467
|
uploadFromDevice?: UploadFromDeviceConfig;
|
|
1468
|
+
/**
|
|
1469
|
+
* Show the "how to scan" QR instruction popup before QR scanning starts.
|
|
1470
|
+
* Default `true`. Only an explicit `false` hides it; QR scanning then starts immediately.
|
|
1471
|
+
* Applies to the QR step inside ID capture and the standalone QR step.
|
|
1472
|
+
* The invalid-QR popup (Retry / Skip) is not affected.
|
|
1473
|
+
*/
|
|
1474
|
+
enableQrScanGuideline?: boolean;
|
|
1468
1475
|
};
|
|
1469
1476
|
type ReadIDCardWithApiCallOptions = Omit<ReadIDCardOptions, 'clientSettings'> & {
|
|
1470
1477
|
apiCredentials: APICredentials;
|
|
@@ -1695,28 +1702,6 @@ declare const ScannerType: {
|
|
|
1695
1702
|
readonly QR_CODE: "qr_code";
|
|
1696
1703
|
};
|
|
1697
1704
|
|
|
1698
|
-
interface BlazefaceModel {
|
|
1699
|
-
load(params?: {
|
|
1700
|
-
modelUrl?: string;
|
|
1701
|
-
}): Promise<any>;
|
|
1702
|
-
}
|
|
1703
|
-
interface TFLite {
|
|
1704
|
-
loadTFLiteModel(data: Uint8Array, options?: Record<string, any>): Promise<any>;
|
|
1705
|
-
}
|
|
1706
|
-
interface TensorFlow {
|
|
1707
|
-
enableProdMode(): Promise<void>;
|
|
1708
|
-
setBackend(backend: string): Promise<void>;
|
|
1709
|
-
ready(): Promise<void>;
|
|
1710
|
-
}
|
|
1711
|
-
declare global {
|
|
1712
|
-
interface Window {
|
|
1713
|
-
tf: TensorFlow;
|
|
1714
|
-
blazeface: BlazefaceModel;
|
|
1715
|
-
tflite: TFLite;
|
|
1716
|
-
tv_model_backend_init?: string[];
|
|
1717
|
-
}
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
1705
|
declare const defaultSteps: ({
|
|
1721
1706
|
scannerType: "id_card";
|
|
1722
1707
|
title: string;
|
|
@@ -1735,102 +1720,84 @@ declare const defaultSteps: ({
|
|
|
1735
1720
|
enableConfirmPopup: boolean;
|
|
1736
1721
|
})[];
|
|
1737
1722
|
|
|
1738
|
-
declare
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
export { enable_7 as enable };
|
|
1817
|
-
export let threshold: number;
|
|
1818
|
-
}
|
|
1819
|
-
namespace glare_check_generic {
|
|
1820
|
-
let enable_8: boolean;
|
|
1821
|
-
export { enable_8 as enable };
|
|
1822
|
-
let threshold_1: number;
|
|
1823
|
-
export { threshold_1 as threshold };
|
|
1824
|
-
}
|
|
1825
|
-
let disable_capture_button_if_alert: boolean;
|
|
1826
|
-
namespace exif_data_settings {
|
|
1827
|
-
let enable_9: boolean;
|
|
1828
|
-
export { enable_9 as enable };
|
|
1829
|
-
}
|
|
1830
|
-
namespace id_detection {
|
|
1831
|
-
let enable_10: boolean;
|
|
1832
|
-
export { enable_10 as enable };
|
|
1833
|
-
export let card_type_model_mapping: {
|
|
1723
|
+
declare const defaultClientSettings: {
|
|
1724
|
+
data: {
|
|
1725
|
+
country: string;
|
|
1726
|
+
settings: {
|
|
1727
|
+
sdk_settings: {
|
|
1728
|
+
id_detection_settings: {
|
|
1729
|
+
show_hold_still_progress: boolean;
|
|
1730
|
+
show_auto_capture_toggle: boolean;
|
|
1731
|
+
auto_capture: {
|
|
1732
|
+
enable: boolean;
|
|
1733
|
+
show_capture_button: boolean;
|
|
1734
|
+
wait_for_best_image_time_ms: number;
|
|
1735
|
+
};
|
|
1736
|
+
manual_capture: {
|
|
1737
|
+
wait_for_best_image_time_ms: number;
|
|
1738
|
+
};
|
|
1739
|
+
card_type_check: {
|
|
1740
|
+
enable: boolean;
|
|
1741
|
+
};
|
|
1742
|
+
track_card_coordinates: {
|
|
1743
|
+
enable: boolean;
|
|
1744
|
+
max_length: number;
|
|
1745
|
+
};
|
|
1746
|
+
blur_check: {
|
|
1747
|
+
enable: boolean;
|
|
1748
|
+
large_blurry_threshold_auto: number;
|
|
1749
|
+
large_blurry_threshold_manual: number;
|
|
1750
|
+
small_blurry_threshold_auto: number;
|
|
1751
|
+
small_blurry_threshold_manual: number;
|
|
1752
|
+
large_blurry_decimal: number;
|
|
1753
|
+
small_blurry_decimal: number;
|
|
1754
|
+
};
|
|
1755
|
+
blur_check_generic: {
|
|
1756
|
+
enable: boolean;
|
|
1757
|
+
large_blurry_threshold_auto: number;
|
|
1758
|
+
large_blurry_threshold_manual: number;
|
|
1759
|
+
small_blurry_threshold_auto: number;
|
|
1760
|
+
small_blurry_threshold_manual: number;
|
|
1761
|
+
large_blurry_decimal: number;
|
|
1762
|
+
small_blurry_decimal: number;
|
|
1763
|
+
full_face_image_ratio: {
|
|
1764
|
+
top: number;
|
|
1765
|
+
right: number;
|
|
1766
|
+
left: number;
|
|
1767
|
+
bottom: number;
|
|
1768
|
+
};
|
|
1769
|
+
};
|
|
1770
|
+
face_check_generic: {
|
|
1771
|
+
front_side: {
|
|
1772
|
+
enable: boolean;
|
|
1773
|
+
};
|
|
1774
|
+
back_side: {
|
|
1775
|
+
enable: boolean;
|
|
1776
|
+
};
|
|
1777
|
+
};
|
|
1778
|
+
flashlight_settings: {
|
|
1779
|
+
activation_delay_ms_back: number;
|
|
1780
|
+
activation_delay_ms_front: number;
|
|
1781
|
+
duration_ms_back: number;
|
|
1782
|
+
duration_ms_front: number;
|
|
1783
|
+
enable_back: boolean;
|
|
1784
|
+
enable_front: boolean;
|
|
1785
|
+
};
|
|
1786
|
+
glare_check: {
|
|
1787
|
+
enable: boolean;
|
|
1788
|
+
threshold: number;
|
|
1789
|
+
};
|
|
1790
|
+
glare_check_generic: {
|
|
1791
|
+
enable: boolean;
|
|
1792
|
+
threshold: number;
|
|
1793
|
+
};
|
|
1794
|
+
disable_capture_button_if_alert: boolean;
|
|
1795
|
+
exif_data_settings: {
|
|
1796
|
+
enable: boolean;
|
|
1797
|
+
};
|
|
1798
|
+
id_detection: {
|
|
1799
|
+
enable: boolean;
|
|
1800
|
+
card_type_model_mapping: {
|
|
1834
1801
|
'vn.national_id': {
|
|
1835
1802
|
model: string;
|
|
1836
1803
|
force_off_detection: boolean;
|
|
@@ -1856,61 +1823,55 @@ declare namespace defaultClientSettings {
|
|
|
1856
1823
|
force_off_detection: boolean;
|
|
1857
1824
|
};
|
|
1858
1825
|
};
|
|
1859
|
-
}
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
}
|
|
1909
|
-
}
|
|
1910
|
-
}
|
|
1911
|
-
}
|
|
1912
|
-
}
|
|
1913
|
-
}
|
|
1826
|
+
};
|
|
1827
|
+
limit_time_settings: {
|
|
1828
|
+
enable: boolean;
|
|
1829
|
+
limit_time_second: number;
|
|
1830
|
+
video_partial_length_seconds: number;
|
|
1831
|
+
max_retry_count: number;
|
|
1832
|
+
non_stoppable: boolean;
|
|
1833
|
+
};
|
|
1834
|
+
record_video: {
|
|
1835
|
+
enable_record_full_session_front: boolean;
|
|
1836
|
+
enable_record_full_session_back: boolean;
|
|
1837
|
+
enable_record_from_capture_bestframe_front: boolean;
|
|
1838
|
+
enable_record_from_capture_bestframe_back: boolean;
|
|
1839
|
+
video_frame_size_width: null;
|
|
1840
|
+
video_frame_size_height: null;
|
|
1841
|
+
bitrate: number;
|
|
1842
|
+
fps: number;
|
|
1843
|
+
};
|
|
1844
|
+
save_frame_settings: {
|
|
1845
|
+
enable: boolean;
|
|
1846
|
+
frames_interval_ms: number;
|
|
1847
|
+
quality: number;
|
|
1848
|
+
};
|
|
1849
|
+
scan_qr_settings: {
|
|
1850
|
+
enable: boolean;
|
|
1851
|
+
enable_validation: boolean;
|
|
1852
|
+
enable_scan_background: boolean;
|
|
1853
|
+
limit_time_second: number;
|
|
1854
|
+
non_stoppable: boolean;
|
|
1855
|
+
max_retry_count: number;
|
|
1856
|
+
scan_via_image: null;
|
|
1857
|
+
scan_via_step: null;
|
|
1858
|
+
};
|
|
1859
|
+
virtual_cam_hashes: {
|
|
1860
|
+
web: boolean;
|
|
1861
|
+
mobile: boolean;
|
|
1862
|
+
};
|
|
1863
|
+
image_settings: {
|
|
1864
|
+
ideal_width: null;
|
|
1865
|
+
ideal_height: null;
|
|
1866
|
+
ideal_width_mobile_web: null;
|
|
1867
|
+
ideal_height_mobile_web: null;
|
|
1868
|
+
image_quality: number;
|
|
1869
|
+
};
|
|
1870
|
+
};
|
|
1871
|
+
};
|
|
1872
|
+
};
|
|
1873
|
+
};
|
|
1874
|
+
};
|
|
1914
1875
|
|
|
1915
1876
|
declare class TVWebSDK extends BaseTVWebSDK {
|
|
1916
1877
|
constructor(props: BaseTVWebSDKProps);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsocial/tvweb-sdk-types",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.40.0",
|
|
4
4
|
"description": "TypeScript definitions for the TV Web SDK standalone (UMD/CDN) bundle — types window.TVWebSDK",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Toan Trieu <toan.trieu@trustingsocial.com>",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@tsocial/tvweb-sdk": "5.
|
|
25
|
+
"@tsocial/tvweb-sdk": "5.40.0",
|
|
26
26
|
"typescript": "^5.3.3"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "94dc2bbbeca9a2577840da334ed0c84308b2f71d"
|
|
29
29
|
}
|