tencentcloud-sdk-nodejs-intl-en 3.0.696 → 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 +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/faceid/v20180301/models.js +86 -41
- package/tencentcloud/ocr/v20181119/models.js +467 -0
- package/tencentcloud/ocr/v20181119/ocr_client.js +45 -6
- package/tencentcloud/sms/v20210111/models.js +1 -1
- package/tencentcloud/tiw/v20190919/models.js +5943 -681
- package/tencentcloud/tiw/v20190919/tiw_client.js +653 -78
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
|
912
|
-
Note: This field may return null, indicating that no valid
|
|
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
|
|
919
|
-
Note: This field may return null, indicating that no valid
|
|
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
|
|
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
|
|
928
|
-
- EnName (string): English
|
|
929
|
-
- TelexCode (string): The code corresponding to the Chinese
|
|
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):
|
|
934
|
+
- IdNum (string): Identity card number.
|
|
934
935
|
- Symbol (string): The ID symbol below the date of birth, such as "***AZ".
|
|
935
|
-
- FirstIssueDate (string):
|
|
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):
|
|
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):
|
|
952
|
+
- LastName (string): Last name.
|
|
950
953
|
- FirstName (string): First name.
|
|
951
|
-
- VIN (string):
|
|
952
|
-
- CivilStatus (string):
|
|
954
|
+
- VIN (string): Voter's identification number (VIN).
|
|
955
|
+
- CivilStatus (string): Civil status.
|
|
953
956
|
- Citizenship (string): Citizenship.
|
|
954
|
-
- PrecinctNo (string):
|
|
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):
|
|
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):
|
|
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
|
|
971
|
-
- Nama (string):
|
|
972
|
-
- TempatTglLahir (string): Place
|
|
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):
|
|
997
|
+
- Perkerjaan (string): Occupation.
|
|
982
998
|
- KewargaNegaraan (string): Nationality.
|
|
983
|
-
- BerlakuHingga (string): Expiry date
|
|
984
|
-
- IssuedDate (string):
|
|
985
|
-
|
|
986
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1672
|
-
Note: This field may return null, indicating that no valid
|
|
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
|
|
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
|
|
1685
|
-
|
|
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
|
-
*
|
|
1699
|
-
Note: This field may return null, indicating that no valid
|
|
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;
|