@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.
Files changed (2) hide show
  1. package/build/index.d.ts +140 -179
  2. 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$1 {
1218
+ interface BlazefaceModel {
1219
1219
  load(params?: {
1220
1220
  modelUrl?: string;
1221
1221
  }): Promise<any>;
1222
1222
  }
1223
- interface TFLite$1 {
1223
+ interface TFLite {
1224
1224
  loadTFLiteModel(data: Uint8Array, options?: Record<string, any>): Promise<any>;
1225
1225
  }
1226
- interface TensorFlow$1 {
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$1;
1234
- blazeface: BlazefaceModel$1;
1235
- tflite: TFLite$1;
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 namespace defaultClientSettings {
1739
- namespace data {
1740
- let country: string;
1741
- namespace settings {
1742
- namespace sdk_settings {
1743
- namespace id_detection_settings {
1744
- let show_hold_still_progress: boolean;
1745
- let show_auto_capture_toggle: boolean;
1746
- namespace auto_capture {
1747
- let enable: boolean;
1748
- let show_capture_button: boolean;
1749
- let wait_for_best_image_time_ms: number;
1750
- }
1751
- namespace manual_capture {
1752
- let wait_for_best_image_time_ms_1: number;
1753
- export { wait_for_best_image_time_ms_1 as wait_for_best_image_time_ms };
1754
- }
1755
- namespace card_type_check {
1756
- let enable_1: boolean;
1757
- export { enable_1 as enable };
1758
- }
1759
- namespace track_card_coordinates {
1760
- let enable_2: boolean;
1761
- export { enable_2 as enable };
1762
- export let max_length: number;
1763
- }
1764
- namespace blur_check {
1765
- let enable_3: boolean;
1766
- export { enable_3 as enable };
1767
- export let large_blurry_threshold_auto: number;
1768
- export let large_blurry_threshold_manual: number;
1769
- export let small_blurry_threshold_auto: number;
1770
- export let small_blurry_threshold_manual: number;
1771
- export let large_blurry_decimal: number;
1772
- export let small_blurry_decimal: number;
1773
- }
1774
- namespace blur_check_generic {
1775
- let enable_4: boolean;
1776
- export { enable_4 as enable };
1777
- let large_blurry_threshold_auto_1: number;
1778
- export { large_blurry_threshold_auto_1 as large_blurry_threshold_auto };
1779
- let large_blurry_threshold_manual_1: number;
1780
- export { large_blurry_threshold_manual_1 as large_blurry_threshold_manual };
1781
- let small_blurry_threshold_auto_1: number;
1782
- export { small_blurry_threshold_auto_1 as small_blurry_threshold_auto };
1783
- let small_blurry_threshold_manual_1: number;
1784
- export { small_blurry_threshold_manual_1 as small_blurry_threshold_manual };
1785
- let large_blurry_decimal_1: number;
1786
- export { large_blurry_decimal_1 as large_blurry_decimal };
1787
- let small_blurry_decimal_1: number;
1788
- export { small_blurry_decimal_1 as small_blurry_decimal };
1789
- export namespace full_face_image_ratio {
1790
- let top: number;
1791
- let right: number;
1792
- let left: number;
1793
- let bottom: number;
1794
- }
1795
- }
1796
- namespace face_check_generic {
1797
- namespace front_side {
1798
- let enable_5: boolean;
1799
- export { enable_5 as enable };
1800
- }
1801
- namespace back_side {
1802
- let enable_6: boolean;
1803
- export { enable_6 as enable };
1804
- }
1805
- }
1806
- namespace flashlight_settings {
1807
- let activation_delay_ms_back: number;
1808
- let activation_delay_ms_front: number;
1809
- let duration_ms_back: number;
1810
- let duration_ms_front: number;
1811
- let enable_back: boolean;
1812
- let enable_front: boolean;
1813
- }
1814
- namespace glare_check {
1815
- let enable_7: boolean;
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
- namespace limit_time_settings {
1861
- let enable_11: boolean;
1862
- export { enable_11 as enable };
1863
- export let limit_time_second: number;
1864
- export let video_partial_length_seconds: number;
1865
- export let max_retry_count: number;
1866
- export let non_stoppable: boolean;
1867
- }
1868
- namespace record_video {
1869
- let enable_record_full_session_front: boolean;
1870
- let enable_record_full_session_back: boolean;
1871
- let enable_record_from_capture_bestframe_front: boolean;
1872
- let enable_record_from_capture_bestframe_back: boolean;
1873
- let video_frame_size_width: null;
1874
- let video_frame_size_height: null;
1875
- let bitrate: number;
1876
- let fps: number;
1877
- }
1878
- namespace save_frame_settings {
1879
- let enable_12: boolean;
1880
- export { enable_12 as enable };
1881
- export let frames_interval_ms: number;
1882
- export let quality: number;
1883
- }
1884
- namespace scan_qr_settings {
1885
- let enable_13: boolean;
1886
- export { enable_13 as enable };
1887
- export let enable_validation: boolean;
1888
- export let enable_scan_background: boolean;
1889
- let limit_time_second_1: number;
1890
- export { limit_time_second_1 as limit_time_second };
1891
- let non_stoppable_1: boolean;
1892
- export { non_stoppable_1 as non_stoppable };
1893
- let max_retry_count_1: number;
1894
- export { max_retry_count_1 as max_retry_count };
1895
- export let scan_via_image: null;
1896
- export let scan_via_step: null;
1897
- }
1898
- namespace virtual_cam_hashes {
1899
- let web: boolean;
1900
- let mobile: boolean;
1901
- }
1902
- namespace image_settings {
1903
- let ideal_width: null;
1904
- let ideal_height: null;
1905
- let ideal_width_mobile_web: null;
1906
- let ideal_height_mobile_web: null;
1907
- let image_quality: number;
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.39.0",
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.39.0",
25
+ "@tsocial/tvweb-sdk": "5.40.0",
26
26
  "typescript": "^5.3.3"
27
27
  },
28
- "gitHead": "aba8c75e4b86a49cd75100a595e41d4c1ae05001"
28
+ "gitHead": "94dc2bbbeca9a2577840da334ed0c84308b2f71d"
29
29
  }