tencentcloud-sdk-nodejs-intl-en 3.0.698 → 3.0.699

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.698",
3
+ "version": "3.0.699",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.698";
1
+ const sdkVersion = "3.0.699";
2
2
  module.exports = sdkVersion
@@ -682,19 +682,19 @@ class ApplySdkVerificationTokenRequest extends AbstractModel {
682
682
  this.NeedVerifyIdCard = null;
683
683
 
684
684
  /**
685
- * The card type. Valid values: `HK` (identity card of Hong Kong (China)) (default), `ML` (Malaysian identity card), `PhilippinesVoteID` (Philippine voters ID card), `IndonesiaIDCard` (Indonesian identity card), `SingaporeIDCard` (Singapore identity card), and `PhilippinesDrivingLicense` (Philippine driver's license).
685
+ * The identity document type. Valid values: `HK` (identity card of Hong Kong (China)) (default), `ML` (Malaysian identity card), `IndonesiaIDCard` (Indonesian identity card), `PhilippinesVoteID` (Philippine voters ID card), `PhilippinesDrivingLicense` (Philippine driver's license), `PhilippinesTinID` (Philippine TIN ID card), `PhilippinesSSSID` (Philippine SSS ID card), and `MLIDPassport` (passport issued in Hong Kong/Macao/Taiwan (China) or other countries/regions).
686
686
  * @type {string || null}
687
687
  */
688
688
  this.IdCardType = null;
689
689
 
690
690
  /**
691
- * Disable the modification of the OCR result by the user. Default value: `false` (modification allowed).
691
+ * Whether to forbid the modification of the OCR result by users. Default value: `false` (modification allowed).
692
692
  * @type {boolean || null}
693
693
  */
694
694
  this.DisableChangeOcrResult = null;
695
695
 
696
696
  /**
697
- * Disable the OCR warnings. Default value: `false` (not disable), where OCR warnings are enabled and the OCR result will not be returned based on the warnings. If the value of `NeedVerifyIdCard` is `true`, the value of this field will also be `true`.
697
+ * Whether to disable the OCR warnings. Default value: `false` (not disable), where OCR warnings are enabled and the OCR result will not be returned if there is a warning. If `NeedVerifyIdCard` is set to `true`, this parameter must also be set to `true`.
698
698
  * @type {boolean || null}
699
699
  */
700
700
  this.DisableCheckOcrWarnings = null;
@@ -894,7 +894,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
894
894
  }
895
895
 
896
896
  /**
897
- * The result of a single authentication or OCR process during the identity verification.
897
+ * The OCR result of a user's identity document during the eKYC verification process.
898
898
  * @class
899
899
  */
900
900
  class CardVerifyResult extends AbstractModel {
@@ -908,68 +908,84 @@ class CardVerifyResult extends AbstractModel {
908
908
  this.IsPass = null;
909
909
 
910
910
  /**
911
- * The video for ID card authentication. This field is returned only if the video-based ID card authentication is enabled. The URL is valid for 10 minutes.
912
- Note: This field may return null, indicating that no valid values can be obtained.
911
+ * The download URL of the video used for identity document verification, which is valid for 10 minutes. This parameter is returned only if video-based identity document verification is enabled.
912
+ Note: This field may return null, indicating that no valid value can be obtained.
913
913
  * @type {FileInfo || null}
914
914
  */
915
915
  this.CardVideo = null;
916
916
 
917
917
  /**
918
- * The identity document image. The URL is valid for 10 minutes.
919
- Note: This field may return null, indicating that no valid values can be obtained.
918
+ * The download URL of the identity document image, which is valid for 10 minutes.
919
+ Note: This field may return null, indicating that no valid value can be obtained.
920
920
  * @type {FileInfo || null}
921
921
  */
922
922
  this.CardImage = null;
923
923
 
924
924
  /**
925
- * The OCR result (in JSON) of the identity document image. If authentication or OCR fails, this parameter is left empty. The URL is valid for 10 minutes.
925
+ * The OCR result (in JSON) of the identity document image. If verification or OCR fails, this parameter is left empty. The URL is valid for 10 minutes.
926
+ (1) Hong Kong (China) identity card
926
927
  When the value of `IdCardType` is `HK`:
927
- - CnName (string): Chinese name.
928
- - EnName (string): English name.
929
- - TelexCode (string): The code corresponding to the Chinese name.
928
+ - CnName (string): Name in Chinese.
929
+ - EnName (string): Name in English.
930
+ - TelexCode (string): The code corresponding to the name in Chinese.
930
931
  - Sex (string): Gender. Valid values: `M` (male) and `F` (female).
931
932
  - Birthday (string): Date of birth.
932
933
  - Permanent (int): Whether it is a permanent residence identity card. Valid values: `0` (non-permanent), `1` (permanent), and `-1` (unknown).
933
- - IdNum (string): ID number.
934
+ - IdNum (string): Identity card number.
934
935
  - Symbol (string): The ID symbol below the date of birth, such as "***AZ".
935
- - FirstIssueDate (string): The date of first issuance.
936
+ - FirstIssueDate (string): Month and year of first registration.
936
937
  - CurrentIssueDate (string): The date of latest issuance.
937
938
 
939
+ (2) Malaysian identity card
938
940
  When the value of `IdCardType` is `ML`:
939
- - Sex (string): `LELAKI` (male) and `PEREMPUAN` (female).
941
+ - Sex (string): Gender. Valid values: `LELAKI` (male) and `PEREMPUAN` (female).
940
942
  - Birthday (string): Date of birth.
941
- - ID (string): ID number.
943
+ - ID (string): Identity card number.
942
944
  - Name (string): Name.
943
945
  - Address (string): Address.
944
946
  - Type (string): Identity document type.
945
947
 
948
+ (3) Philippine identity document
946
949
  When the value of `IdCardType` is `PhilippinesVoteID`:
947
950
  - Birthday (string): Date of birth.
948
951
  - Address (string): Address.
949
- - LastName (string): Family name.
952
+ - LastName (string): Last name.
950
953
  - FirstName (string): First name.
951
- - VIN (string): VIN number.
952
- - CivilStatus (string): Marital status.
954
+ - VIN (string): Voter's identification number (VIN).
955
+ - CivilStatus (string): Civil status.
953
956
  - Citizenship (string): Citizenship.
954
- - PrecinctNo (string): Region.
957
+ - PrecinctNo (string): Precinct.
955
958
 
956
959
  When the value of `IdCardType` is `PhilippinesDrivingLicense`:
957
960
  - Sex (string): Gender.
958
961
  - Birthday (string): Date of birth.
959
962
  - Name (string): Name.
960
963
  - Address (string): Address.
961
- - LastName (string): Family name.
964
+ - LastName (string): Last name.
962
965
  - FirstName (string): First name.
963
966
  - MiddleName (string): Middle name.
964
967
  - Nationality (string): Nationality.
965
968
  - LicenseNo (string): License number.
966
- - ExpiresDate (string): Validity period.
969
+ - ExpiresDate (string): Expiration date.
967
970
  - AgencyCode (string): Agency code.
968
971
 
972
+ When the value of `IdCardType` is `PhilippinesTinID`:
973
+ - LicenseNumber (string): Tax identification number (TIN).
974
+ - FullName (string): Full name.
975
+ - Address (string): Address.
976
+ - Birthday (string): Date of birth.
977
+ - IssueDate (string): Issue date.
978
+
979
+ When the value of `IdCardType` is `PhilippinesSSSID`:
980
+ - LicenseNumber (string): Common reference number (CRN).
981
+ - FullName (string): Full name.
982
+ - Birthday (string): Date of birth.
983
+
984
+ (4) Indonesian identity card
969
985
  When the value of `IdCardType` is `IndonesiaIDCard`:
970
- - NIK (string): Identity document No.
971
- - Nama (string): Name.
972
- - TempatTglLahir (string): Place/Date of birth.
986
+ - NIK (string): Single Identity Number.
987
+ - Nama (string): Full name.
988
+ - TempatTglLahir (string): Place and date of birth.
973
989
  - JenisKelamin (string): Gender.
974
990
  - GolDarah (string): Blood type.
975
991
  - Alamat (string): Address.
@@ -978,12 +994,22 @@ When the value of `IdCardType` is `IndonesiaIDCard`:
978
994
  - Kecamatan (string): Region.
979
995
  - Agama (string): Religion.
980
996
  - StatusPerkawinan (string): Marital status.
981
- - Perkerjaan (string): Profession.
997
+ - Perkerjaan (string): Occupation.
982
998
  - KewargaNegaraan (string): Nationality.
983
- - BerlakuHingga (string): Expiry date of the identity document.
984
- - IssuedDate (string): Date of issuance.
985
-
986
- Note: This field may return null, indicating that no valid values can be obtained.
999
+ - BerlakuHingga (string): Expiry date.
1000
+ - IssuedDate (string): Issue date.
1001
+
1002
+ (5) A passport issued in Hong Kong/Macao/Taiwan (China) or other countries/regions
1003
+ When the value of `IdCardType` is `MLIDPassport`:
1004
+ - FullName (string): Full name.
1005
+ - Surname (string): Surname.
1006
+ - GivenName (string): Given name.
1007
+ - Birthday (string): Date of birth.
1008
+ - Sex (string): Gender. Valid values: `F` (female) and `M` (male).
1009
+ - DateOfExpiration (string): Expiration date.
1010
+ - IssuingCountry (string): Issuing country.
1011
+ - NationalityCode (string): Country/region code.
1012
+ Note: This field may return null, indicating that no valid value can be obtained.
987
1013
  * @type {FileInfo || null}
988
1014
  */
989
1015
  this.CardInfoOcrJson = null;
@@ -1632,13 +1658,22 @@ class CompareResult extends AbstractModel {
1632
1658
  super();
1633
1659
 
1634
1660
  /**
1635
- * The final comparison result.
1661
+ * The final verification result code.
1662
+ 0: Success.
1663
+ 1001: Failed to call the liveness detection engine.
1664
+ 1004: Face detection failed.
1665
+ 2004: The uploaded face image is too large or too small.
1666
+ 2012: The face is not fully exposed.
1667
+ 2013: No face is detected.
1668
+ 2014: The resolution of the uploaded image is too low . Please upload a new one.
1669
+ 2015: Face comparison failed.
1670
+ 2016: The similarity did not reach the passing standard.
1636
1671
  * @type {string || null}
1637
1672
  */
1638
1673
  this.ErrorCode = null;
1639
1674
 
1640
1675
  /**
1641
- * The description of the final comparison result.
1676
+ * The description of the final verification result.
1642
1677
  * @type {string || null}
1643
1678
  */
1644
1679
  this.ErrorMsg = null;
@@ -1650,13 +1685,16 @@ class CompareResult extends AbstractModel {
1650
1685
  this.LiveData = null;
1651
1686
 
1652
1687
  /**
1653
- * The video for this liveness detection process. The URL is valid for 10 minutes.
1688
+ * The download URL of the video used for verification, which is valid for 10 minutes.
1654
1689
  * @type {FileInfo || null}
1655
1690
  */
1656
1691
  this.LiveVideo = null;
1657
1692
 
1658
1693
  /**
1659
- * The code of the liveness detection result.
1694
+ * The liveness detection result code.
1695
+ 0: Success.
1696
+ 1001: Failed to call the liveness detection engine.
1697
+ 1004: Face detection failed.
1660
1698
  * @type {string || null}
1661
1699
  */
1662
1700
  this.LiveErrorCode = null;
@@ -1668,21 +1706,28 @@ class CompareResult extends AbstractModel {
1668
1706
  this.LiveErrorMsg = null;
1669
1707
 
1670
1708
  /**
1671
- * The best face screenshot in this liveness detection. The URL is valid for 10 minutes.
1672
- Note: This field may return null, indicating that no valid values can be obtained.
1709
+ * The download URL of the face screenshot during verification, which is valid for 10 minutes.
1710
+ Note: This field may return null, indicating that no valid value can be obtained.
1673
1711
  * @type {FileInfo || null}
1674
1712
  */
1675
1713
  this.BestFrame = null;
1676
1714
 
1677
1715
  /**
1678
- * The profile photo screenshot from the identity document. The URL is valid for 10 minutes.
1716
+ * The download URL of the profile photo screenshot from the identity document, which is valid for 10 minutes.
1679
1717
  * @type {FileInfo || null}
1680
1718
  */
1681
1719
  this.ProfileImage = null;
1682
1720
 
1683
1721
  /**
1684
- * The code of the face comparison result.
1685
- Note: This field may return null, indicating that no valid values can be obtained.
1722
+ * The face comparison result code.
1723
+ 0: Success.
1724
+ 2004: The uploaded face image is too large or too small.
1725
+ 2012: The face is not fully exposed.
1726
+ 2013: No face is detected.
1727
+ 2014: The resolution of the uploaded image is too low . Please upload a new one.
1728
+ 2015: Face comparison failed.
1729
+ 2016: The similarity did not reach the passing standard.
1730
+ Note: This field may return null, indicating that no valid value can be obtained.
1686
1731
  * @type {string || null}
1687
1732
  */
1688
1733
  this.CompareErrorCode = null;
@@ -1695,8 +1740,8 @@ Note: This field may return null, indicating that no valid values can be obtaine
1695
1740
  this.CompareErrorMsg = null;
1696
1741
 
1697
1742
  /**
1698
- * Similarity
1699
- Note: This field may return null, indicating that no valid values can be obtained.
1743
+ * The similarity score of face comparison.
1744
+ Note: This field may return null, indicating that no valid value can be obtained.
1700
1745
  * @type {number || null}
1701
1746
  */
1702
1747
  this.Sim = null;
@@ -1790,6 +1790,130 @@ class Coord extends AbstractModel {
1790
1790
  }
1791
1791
  }
1792
1792
 
1793
+ /**
1794
+ * RecognizePhilippinesUMIDOCR response structure.
1795
+ * @class
1796
+ */
1797
+ class RecognizePhilippinesUMIDOCRResponse extends AbstractModel {
1798
+ constructor(){
1799
+ super();
1800
+
1801
+ /**
1802
+ * The surname.
1803
+ * @type {TextDetectionResult || null}
1804
+ */
1805
+ this.Surname = null;
1806
+
1807
+ /**
1808
+ * The middle name.
1809
+ * @type {TextDetectionResult || null}
1810
+ */
1811
+ this.MiddleName = null;
1812
+
1813
+ /**
1814
+ * The given name.
1815
+ * @type {TextDetectionResult || null}
1816
+ */
1817
+ this.GivenName = null;
1818
+
1819
+ /**
1820
+ * The address.
1821
+ * @type {TextDetectionResult || null}
1822
+ */
1823
+ this.Address = null;
1824
+
1825
+ /**
1826
+ * The date of birth.
1827
+ * @type {TextDetectionResult || null}
1828
+ */
1829
+ this.Birthday = null;
1830
+
1831
+ /**
1832
+ * The common reference number (CRN).
1833
+ * @type {TextDetectionResult || null}
1834
+ */
1835
+ this.CRN = null;
1836
+
1837
+ /**
1838
+ * The gender.
1839
+ * @type {TextDetectionResult || null}
1840
+ */
1841
+ this.Sex = null;
1842
+
1843
+ /**
1844
+ * The Base64-encoded identity photo.
1845
+ * @type {TextDetectionResult || null}
1846
+ */
1847
+ this.HeadPortrait = null;
1848
+
1849
+ /**
1850
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1851
+ * @type {string || null}
1852
+ */
1853
+ this.RequestId = null;
1854
+
1855
+ }
1856
+
1857
+ /**
1858
+ * @private
1859
+ */
1860
+ deserialize(params) {
1861
+ if (!params) {
1862
+ return;
1863
+ }
1864
+
1865
+ if (params.Surname) {
1866
+ let obj = new TextDetectionResult();
1867
+ obj.deserialize(params.Surname)
1868
+ this.Surname = obj;
1869
+ }
1870
+
1871
+ if (params.MiddleName) {
1872
+ let obj = new TextDetectionResult();
1873
+ obj.deserialize(params.MiddleName)
1874
+ this.MiddleName = obj;
1875
+ }
1876
+
1877
+ if (params.GivenName) {
1878
+ let obj = new TextDetectionResult();
1879
+ obj.deserialize(params.GivenName)
1880
+ this.GivenName = obj;
1881
+ }
1882
+
1883
+ if (params.Address) {
1884
+ let obj = new TextDetectionResult();
1885
+ obj.deserialize(params.Address)
1886
+ this.Address = obj;
1887
+ }
1888
+
1889
+ if (params.Birthday) {
1890
+ let obj = new TextDetectionResult();
1891
+ obj.deserialize(params.Birthday)
1892
+ this.Birthday = obj;
1893
+ }
1894
+
1895
+ if (params.CRN) {
1896
+ let obj = new TextDetectionResult();
1897
+ obj.deserialize(params.CRN)
1898
+ this.CRN = obj;
1899
+ }
1900
+
1901
+ if (params.Sex) {
1902
+ let obj = new TextDetectionResult();
1903
+ obj.deserialize(params.Sex)
1904
+ this.Sex = obj;
1905
+ }
1906
+
1907
+ if (params.HeadPortrait) {
1908
+ let obj = new TextDetectionResult();
1909
+ obj.deserialize(params.HeadPortrait)
1910
+ this.HeadPortrait = obj;
1911
+ }
1912
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1913
+
1914
+ }
1915
+ }
1916
+
1793
1917
  /**
1794
1918
  * RecognizeKoreanIDCardOCR request structure.
1795
1919
  * @class
@@ -2793,6 +2917,55 @@ class ItemCoord extends AbstractModel {
2793
2917
  }
2794
2918
  }
2795
2919
 
2920
+ /**
2921
+ * RecognizePhilippinesUMIDOCR request structure.
2922
+ * @class
2923
+ */
2924
+ class RecognizePhilippinesUMIDOCRRequest extends AbstractModel {
2925
+ constructor(){
2926
+ super();
2927
+
2928
+ /**
2929
+ * The Base64-encoded value of the image.
2930
+ Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
2931
+ Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
2932
+ Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, only `ImageUrl` is used.
2933
+ * @type {string || null}
2934
+ */
2935
+ this.ImageBase64 = null;
2936
+
2937
+ /**
2938
+ * The URL of the image.
2939
+ Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
2940
+ Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
2941
+ We recommend that you store the image in Tencent Cloud for higher download speed and stability.
2942
+ The download speed and stability of non-Tencent Cloud URLs may be low.
2943
+ * @type {string || null}
2944
+ */
2945
+ this.ImageUrl = null;
2946
+
2947
+ /**
2948
+ * Whether to return the identity photo.
2949
+ * @type {boolean || null}
2950
+ */
2951
+ this.ReturnHeadImage = null;
2952
+
2953
+ }
2954
+
2955
+ /**
2956
+ * @private
2957
+ */
2958
+ deserialize(params) {
2959
+ if (!params) {
2960
+ return;
2961
+ }
2962
+ this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
2963
+ this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
2964
+ this.ReturnHeadImage = 'ReturnHeadImage' in params ? params.ReturnHeadImage : null;
2965
+
2966
+ }
2967
+ }
2968
+
2796
2969
  /**
2797
2970
  * OCR result.
2798
2971
  * @class
@@ -3120,6 +3293,7 @@ module.exports = {
3120
3293
  DetectedWordCoordPoint: DetectedWordCoordPoint,
3121
3294
  Value: Value,
3122
3295
  Coord: Coord,
3296
+ RecognizePhilippinesUMIDOCRResponse: RecognizePhilippinesUMIDOCRResponse,
3123
3297
  RecognizeKoreanIDCardOCRRequest: RecognizeKoreanIDCardOCRRequest,
3124
3298
  RecognizeKoreanIDCardOCRResponse: RecognizeKoreanIDCardOCRResponse,
3125
3299
  RecognizePhilippinesSssIDOCRResponse: RecognizePhilippinesSssIDOCRResponse,
@@ -3134,6 +3308,7 @@ module.exports = {
3134
3308
  LineInfo: LineInfo,
3135
3309
  BankCardOCRResponse: BankCardOCRResponse,
3136
3310
  ItemCoord: ItemCoord,
3311
+ RecognizePhilippinesUMIDOCRRequest: RecognizePhilippinesUMIDOCRRequest,
3137
3312
  TextDetection: TextDetection,
3138
3313
  RecognizePhilippinesTinIDOCRResponse: RecognizePhilippinesTinIDOCRResponse,
3139
3314
  GeneralBasicOCRRequest: GeneralBasicOCRRequest,
@@ -43,6 +43,7 @@ const TableOCRResponse = models.TableOCRResponse;
43
43
  const DetectedWordCoordPoint = models.DetectedWordCoordPoint;
44
44
  const Value = models.Value;
45
45
  const Coord = models.Coord;
46
+ const RecognizePhilippinesUMIDOCRResponse = models.RecognizePhilippinesUMIDOCRResponse;
46
47
  const RecognizeKoreanIDCardOCRRequest = models.RecognizeKoreanIDCardOCRRequest;
47
48
  const RecognizeKoreanIDCardOCRResponse = models.RecognizeKoreanIDCardOCRResponse;
48
49
  const RecognizePhilippinesSssIDOCRResponse = models.RecognizePhilippinesSssIDOCRResponse;
@@ -57,6 +58,7 @@ const TableOCRRequest = models.TableOCRRequest;
57
58
  const LineInfo = models.LineInfo;
58
59
  const BankCardOCRResponse = models.BankCardOCRResponse;
59
60
  const ItemCoord = models.ItemCoord;
61
+ const RecognizePhilippinesUMIDOCRRequest = models.RecognizePhilippinesUMIDOCRRequest;
60
62
  const TextDetection = models.TextDetection;
61
63
  const RecognizePhilippinesTinIDOCRResponse = models.RecognizePhilippinesTinIDOCRResponse;
62
64
  const GeneralBasicOCRRequest = models.GeneralBasicOCRRequest;
@@ -107,6 +109,17 @@ A maximum of 10 requests can be initiated per second for this API.
107
109
  this.request("SmartStructuralOCRV2", req, resp, cb);
108
110
  }
109
111
 
112
+ /**
113
+ * This API is used to recognize a Philippine Unified Multi-Purpose ID (UMID) card.
114
+ * @param {RecognizePhilippinesUMIDOCRRequest} req
115
+ * @param {function(string, RecognizePhilippinesUMIDOCRResponse):void} cb
116
+ * @public
117
+ */
118
+ RecognizePhilippinesUMIDOCR(req, cb) {
119
+ let resp = new RecognizePhilippinesUMIDOCRResponse();
120
+ this.request("RecognizePhilippinesUMIDOCR", req, resp, cb);
121
+ }
122
+
110
123
  /**
111
124
  * This API is used to detect and recognize key fields such as the card number, bank information, and expiration date on mainstream bank cards in Mainland China.
112
125