tencentcloud-sdk-nodejs-intl-en 3.0.695 → 3.0.698
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/ocr/v20181119/models.js +292 -0
- package/tencentcloud/ocr/v20181119/ocr_client.js +32 -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.698";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -1327,6 +1327,13 @@ class Key extends AbstractModel {
|
|
|
1327
1327
|
*/
|
|
1328
1328
|
this.AutoName = null;
|
|
1329
1329
|
|
|
1330
|
+
/**
|
|
1331
|
+
* The name of a defined field (the key passed in).
|
|
1332
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
1333
|
+
* @type {string || null}
|
|
1334
|
+
*/
|
|
1335
|
+
this.ConfigName = null;
|
|
1336
|
+
|
|
1330
1337
|
}
|
|
1331
1338
|
|
|
1332
1339
|
/**
|
|
@@ -1337,6 +1344,7 @@ class Key extends AbstractModel {
|
|
|
1337
1344
|
return;
|
|
1338
1345
|
}
|
|
1339
1346
|
this.AutoName = 'AutoName' in params ? params.AutoName : null;
|
|
1347
|
+
this.ConfigName = 'ConfigName' in params ? params.ConfigName : null;
|
|
1340
1348
|
|
|
1341
1349
|
}
|
|
1342
1350
|
}
|
|
@@ -1782,6 +1790,132 @@ class Coord extends AbstractModel {
|
|
|
1782
1790
|
}
|
|
1783
1791
|
}
|
|
1784
1792
|
|
|
1793
|
+
/**
|
|
1794
|
+
* RecognizeKoreanIDCardOCR request structure.
|
|
1795
|
+
* @class
|
|
1796
|
+
*/
|
|
1797
|
+
class RecognizeKoreanIDCardOCRRequest extends AbstractModel {
|
|
1798
|
+
constructor(){
|
|
1799
|
+
super();
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* The Base64-encoded value of the image.
|
|
1803
|
+
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
|
|
1804
|
+
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
|
|
1805
|
+
Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, only `ImageUrl` is used.
|
|
1806
|
+
* @type {string || null}
|
|
1807
|
+
*/
|
|
1808
|
+
this.ImageBase64 = null;
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* The URL of the image.
|
|
1812
|
+
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
|
|
1813
|
+
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
|
|
1814
|
+
We recommend that you store the image in Tencent Cloud for higher download speed and stability.
|
|
1815
|
+
The download speed and stability of non-Tencent Cloud URLs may be low.
|
|
1816
|
+
* @type {string || null}
|
|
1817
|
+
*/
|
|
1818
|
+
this.ImageUrl = null;
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* Whether to return the identity photo.
|
|
1822
|
+
* @type {boolean || null}
|
|
1823
|
+
*/
|
|
1824
|
+
this.ReturnHeadImage = null;
|
|
1825
|
+
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* @private
|
|
1830
|
+
*/
|
|
1831
|
+
deserialize(params) {
|
|
1832
|
+
if (!params) {
|
|
1833
|
+
return;
|
|
1834
|
+
}
|
|
1835
|
+
this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
|
|
1836
|
+
this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
|
|
1837
|
+
this.ReturnHeadImage = 'ReturnHeadImage' in params ? params.ReturnHeadImage : null;
|
|
1838
|
+
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
/**
|
|
1843
|
+
* RecognizeKoreanIDCardOCR response structure.
|
|
1844
|
+
* @class
|
|
1845
|
+
*/
|
|
1846
|
+
class RecognizeKoreanIDCardOCRResponse extends AbstractModel {
|
|
1847
|
+
constructor(){
|
|
1848
|
+
super();
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* The ID card number.
|
|
1852
|
+
* @type {string || null}
|
|
1853
|
+
*/
|
|
1854
|
+
this.ID = null;
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* The address.
|
|
1858
|
+
* @type {string || null}
|
|
1859
|
+
*/
|
|
1860
|
+
this.Address = null;
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* The name.
|
|
1864
|
+
* @type {string || null}
|
|
1865
|
+
*/
|
|
1866
|
+
this.Name = null;
|
|
1867
|
+
|
|
1868
|
+
/**
|
|
1869
|
+
* The issue date.
|
|
1870
|
+
* @type {string || null}
|
|
1871
|
+
*/
|
|
1872
|
+
this.DateOfIssue = null;
|
|
1873
|
+
|
|
1874
|
+
/**
|
|
1875
|
+
* The Base64-encoded identity photo.
|
|
1876
|
+
* @type {string || null}
|
|
1877
|
+
*/
|
|
1878
|
+
this.Photo = null;
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* The gender.
|
|
1882
|
+
* @type {string || null}
|
|
1883
|
+
*/
|
|
1884
|
+
this.Sex = null;
|
|
1885
|
+
|
|
1886
|
+
/**
|
|
1887
|
+
* The birth date in the format of dd/mm/yyyy.
|
|
1888
|
+
* @type {string || null}
|
|
1889
|
+
*/
|
|
1890
|
+
this.Birthday = null;
|
|
1891
|
+
|
|
1892
|
+
/**
|
|
1893
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
1894
|
+
* @type {string || null}
|
|
1895
|
+
*/
|
|
1896
|
+
this.RequestId = null;
|
|
1897
|
+
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* @private
|
|
1902
|
+
*/
|
|
1903
|
+
deserialize(params) {
|
|
1904
|
+
if (!params) {
|
|
1905
|
+
return;
|
|
1906
|
+
}
|
|
1907
|
+
this.ID = 'ID' in params ? params.ID : null;
|
|
1908
|
+
this.Address = 'Address' in params ? params.Address : null;
|
|
1909
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
1910
|
+
this.DateOfIssue = 'DateOfIssue' in params ? params.DateOfIssue : null;
|
|
1911
|
+
this.Photo = 'Photo' in params ? params.Photo : null;
|
|
1912
|
+
this.Sex = 'Sex' in params ? params.Sex : null;
|
|
1913
|
+
this.Birthday = 'Birthday' in params ? params.Birthday : null;
|
|
1914
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
1915
|
+
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1785
1919
|
/**
|
|
1786
1920
|
* RecognizePhilippinesSssIDOCR response structure.
|
|
1787
1921
|
* @class
|
|
@@ -1858,6 +1992,55 @@ class RecognizePhilippinesSssIDOCRResponse extends AbstractModel {
|
|
|
1858
1992
|
}
|
|
1859
1993
|
}
|
|
1860
1994
|
|
|
1995
|
+
/**
|
|
1996
|
+
* RecognizeKoreanDrivingLicenseOCR request structure.
|
|
1997
|
+
* @class
|
|
1998
|
+
*/
|
|
1999
|
+
class RecognizeKoreanDrivingLicenseOCRRequest extends AbstractModel {
|
|
2000
|
+
constructor(){
|
|
2001
|
+
super();
|
|
2002
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* The Base64-encoded value of the image.
|
|
2005
|
+
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
|
|
2006
|
+
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
|
|
2007
|
+
Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, only `ImageUrl` is used.
|
|
2008
|
+
* @type {string || null}
|
|
2009
|
+
*/
|
|
2010
|
+
this.ImageBase64 = null;
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
* The URL of the image.
|
|
2014
|
+
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
|
|
2015
|
+
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
|
|
2016
|
+
We recommend that you store the image in Tencent Cloud for higher download speed and stability.
|
|
2017
|
+
The download speed and stability of non-Tencent Cloud URLs may be low.
|
|
2018
|
+
* @type {string || null}
|
|
2019
|
+
*/
|
|
2020
|
+
this.ImageUrl = null;
|
|
2021
|
+
|
|
2022
|
+
/**
|
|
2023
|
+
* Whether to return the identity photo.
|
|
2024
|
+
* @type {boolean || null}
|
|
2025
|
+
*/
|
|
2026
|
+
this.ReturnHeadImage = null;
|
|
2027
|
+
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* @private
|
|
2032
|
+
*/
|
|
2033
|
+
deserialize(params) {
|
|
2034
|
+
if (!params) {
|
|
2035
|
+
return;
|
|
2036
|
+
}
|
|
2037
|
+
this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
|
|
2038
|
+
this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
|
|
2039
|
+
this.ReturnHeadImage = 'ReturnHeadImage' in params ? params.ReturnHeadImage : null;
|
|
2040
|
+
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
|
|
1861
2044
|
/**
|
|
1862
2045
|
* RecognizeIndonesiaIDCardOCR request structure.
|
|
1863
2046
|
* @class
|
|
@@ -2071,6 +2254,111 @@ class RecognizeIndonesiaIDCardOCRResponse extends AbstractModel {
|
|
|
2071
2254
|
}
|
|
2072
2255
|
}
|
|
2073
2256
|
|
|
2257
|
+
/**
|
|
2258
|
+
* RecognizeKoreanDrivingLicenseOCR response structure.
|
|
2259
|
+
* @class
|
|
2260
|
+
*/
|
|
2261
|
+
class RecognizeKoreanDrivingLicenseOCRResponse extends AbstractModel {
|
|
2262
|
+
constructor(){
|
|
2263
|
+
super();
|
|
2264
|
+
|
|
2265
|
+
/**
|
|
2266
|
+
* The ID card number.
|
|
2267
|
+
* @type {string || null}
|
|
2268
|
+
*/
|
|
2269
|
+
this.ID = null;
|
|
2270
|
+
|
|
2271
|
+
/**
|
|
2272
|
+
* The license number.
|
|
2273
|
+
* @type {string || null}
|
|
2274
|
+
*/
|
|
2275
|
+
this.LicenseNumber = null;
|
|
2276
|
+
|
|
2277
|
+
/**
|
|
2278
|
+
* The resident registration number.
|
|
2279
|
+
* @type {string || null}
|
|
2280
|
+
*/
|
|
2281
|
+
this.Number = null;
|
|
2282
|
+
|
|
2283
|
+
/**
|
|
2284
|
+
* The license class type.
|
|
2285
|
+
* @type {string || null}
|
|
2286
|
+
*/
|
|
2287
|
+
this.Type = null;
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* The address.
|
|
2291
|
+
* @type {string || null}
|
|
2292
|
+
*/
|
|
2293
|
+
this.Address = null;
|
|
2294
|
+
|
|
2295
|
+
/**
|
|
2296
|
+
* The name.
|
|
2297
|
+
* @type {string || null}
|
|
2298
|
+
*/
|
|
2299
|
+
this.Name = null;
|
|
2300
|
+
|
|
2301
|
+
/**
|
|
2302
|
+
* The renewal period.
|
|
2303
|
+
* @type {string || null}
|
|
2304
|
+
*/
|
|
2305
|
+
this.AptitudeTesDate = null;
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* The issue date.
|
|
2309
|
+
* @type {string || null}
|
|
2310
|
+
*/
|
|
2311
|
+
this.DateOfIssue = null;
|
|
2312
|
+
|
|
2313
|
+
/**
|
|
2314
|
+
* The Base64-encoded identity photo.
|
|
2315
|
+
* @type {string || null}
|
|
2316
|
+
*/
|
|
2317
|
+
this.Photo = null;
|
|
2318
|
+
|
|
2319
|
+
/**
|
|
2320
|
+
* The gender.
|
|
2321
|
+
* @type {string || null}
|
|
2322
|
+
*/
|
|
2323
|
+
this.Sex = null;
|
|
2324
|
+
|
|
2325
|
+
/**
|
|
2326
|
+
* The birth date in the format of dd/mm/yyyy.
|
|
2327
|
+
* @type {string || null}
|
|
2328
|
+
*/
|
|
2329
|
+
this.Birthday = null;
|
|
2330
|
+
|
|
2331
|
+
/**
|
|
2332
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
2333
|
+
* @type {string || null}
|
|
2334
|
+
*/
|
|
2335
|
+
this.RequestId = null;
|
|
2336
|
+
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2339
|
+
/**
|
|
2340
|
+
* @private
|
|
2341
|
+
*/
|
|
2342
|
+
deserialize(params) {
|
|
2343
|
+
if (!params) {
|
|
2344
|
+
return;
|
|
2345
|
+
}
|
|
2346
|
+
this.ID = 'ID' in params ? params.ID : null;
|
|
2347
|
+
this.LicenseNumber = 'LicenseNumber' in params ? params.LicenseNumber : null;
|
|
2348
|
+
this.Number = 'Number' in params ? params.Number : null;
|
|
2349
|
+
this.Type = 'Type' in params ? params.Type : null;
|
|
2350
|
+
this.Address = 'Address' in params ? params.Address : null;
|
|
2351
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
2352
|
+
this.AptitudeTesDate = 'AptitudeTesDate' in params ? params.AptitudeTesDate : null;
|
|
2353
|
+
this.DateOfIssue = 'DateOfIssue' in params ? params.DateOfIssue : null;
|
|
2354
|
+
this.Photo = 'Photo' in params ? params.Photo : null;
|
|
2355
|
+
this.Sex = 'Sex' in params ? params.Sex : null;
|
|
2356
|
+
this.Birthday = 'Birthday' in params ? params.Birthday : null;
|
|
2357
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
2358
|
+
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2074
2362
|
/**
|
|
2075
2363
|
* MLIDCardOCR response structure.
|
|
2076
2364
|
* @class
|
|
@@ -2832,9 +3120,13 @@ module.exports = {
|
|
|
2832
3120
|
DetectedWordCoordPoint: DetectedWordCoordPoint,
|
|
2833
3121
|
Value: Value,
|
|
2834
3122
|
Coord: Coord,
|
|
3123
|
+
RecognizeKoreanIDCardOCRRequest: RecognizeKoreanIDCardOCRRequest,
|
|
3124
|
+
RecognizeKoreanIDCardOCRResponse: RecognizeKoreanIDCardOCRResponse,
|
|
2835
3125
|
RecognizePhilippinesSssIDOCRResponse: RecognizePhilippinesSssIDOCRResponse,
|
|
3126
|
+
RecognizeKoreanDrivingLicenseOCRRequest: RecognizeKoreanDrivingLicenseOCRRequest,
|
|
2836
3127
|
RecognizeIndonesiaIDCardOCRRequest: RecognizeIndonesiaIDCardOCRRequest,
|
|
2837
3128
|
RecognizeIndonesiaIDCardOCRResponse: RecognizeIndonesiaIDCardOCRResponse,
|
|
3129
|
+
RecognizeKoreanDrivingLicenseOCRResponse: RecognizeKoreanDrivingLicenseOCRResponse,
|
|
2838
3130
|
MLIDCardOCRResponse: MLIDCardOCRResponse,
|
|
2839
3131
|
RecognizePhilippinesTinIDOCRRequest: RecognizePhilippinesTinIDOCRRequest,
|
|
2840
3132
|
RecognizePhilippinesVoteIDOCRRequest: RecognizePhilippinesVoteIDOCRRequest,
|
|
@@ -43,9 +43,13 @@ const TableOCRResponse = models.TableOCRResponse;
|
|
|
43
43
|
const DetectedWordCoordPoint = models.DetectedWordCoordPoint;
|
|
44
44
|
const Value = models.Value;
|
|
45
45
|
const Coord = models.Coord;
|
|
46
|
+
const RecognizeKoreanIDCardOCRRequest = models.RecognizeKoreanIDCardOCRRequest;
|
|
47
|
+
const RecognizeKoreanIDCardOCRResponse = models.RecognizeKoreanIDCardOCRResponse;
|
|
46
48
|
const RecognizePhilippinesSssIDOCRResponse = models.RecognizePhilippinesSssIDOCRResponse;
|
|
49
|
+
const RecognizeKoreanDrivingLicenseOCRRequest = models.RecognizeKoreanDrivingLicenseOCRRequest;
|
|
47
50
|
const RecognizeIndonesiaIDCardOCRRequest = models.RecognizeIndonesiaIDCardOCRRequest;
|
|
48
51
|
const RecognizeIndonesiaIDCardOCRResponse = models.RecognizeIndonesiaIDCardOCRResponse;
|
|
52
|
+
const RecognizeKoreanDrivingLicenseOCRResponse = models.RecognizeKoreanDrivingLicenseOCRResponse;
|
|
49
53
|
const MLIDCardOCRResponse = models.MLIDCardOCRResponse;
|
|
50
54
|
const RecognizePhilippinesTinIDOCRRequest = models.RecognizePhilippinesTinIDOCRRequest;
|
|
51
55
|
const RecognizePhilippinesVoteIDOCRRequest = models.RecognizePhilippinesVoteIDOCRRequest;
|
|
@@ -79,6 +83,17 @@ class OcrClient extends AbstractClient {
|
|
|
79
83
|
this.request("RecognizePhilippinesDrivingLicenseOCR", req, resp, cb);
|
|
80
84
|
}
|
|
81
85
|
|
|
86
|
+
/**
|
|
87
|
+
* This API is used to recognize a Philippine SSSID/UMID card.
|
|
88
|
+
* @param {RecognizePhilippinesSssIDOCRRequest} req
|
|
89
|
+
* @param {function(string, RecognizePhilippinesSssIDOCRResponse):void} cb
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
RecognizePhilippinesSssIDOCR(req, cb) {
|
|
93
|
+
let resp = new RecognizePhilippinesSssIDOCRResponse();
|
|
94
|
+
this.request("RecognizePhilippinesSssIDOCR", req, resp, cb);
|
|
95
|
+
}
|
|
96
|
+
|
|
82
97
|
/**
|
|
83
98
|
* This API is used to recognize fields from cards, documents, bills, forms, contracts, and other structured information. It is flexible and efficient to use, without any configuration required. This API is suitable for recognizing structured information.
|
|
84
99
|
|
|
@@ -106,14 +121,25 @@ This API is not fully available for the time being. For more information, please
|
|
|
106
121
|
}
|
|
107
122
|
|
|
108
123
|
/**
|
|
109
|
-
* This API is used to recognize a
|
|
110
|
-
* @param {
|
|
111
|
-
* @param {function(string,
|
|
124
|
+
* This API is used to recognize a South Korean driver's license.
|
|
125
|
+
* @param {RecognizeKoreanDrivingLicenseOCRRequest} req
|
|
126
|
+
* @param {function(string, RecognizeKoreanDrivingLicenseOCRResponse):void} cb
|
|
112
127
|
* @public
|
|
113
128
|
*/
|
|
114
|
-
|
|
115
|
-
let resp = new
|
|
116
|
-
this.request("
|
|
129
|
+
RecognizeKoreanDrivingLicenseOCR(req, cb) {
|
|
130
|
+
let resp = new RecognizeKoreanDrivingLicenseOCRResponse();
|
|
131
|
+
this.request("RecognizeKoreanDrivingLicenseOCR", req, resp, cb);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* This API is used to recognize a South Korean ID card.
|
|
136
|
+
* @param {RecognizeKoreanIDCardOCRRequest} req
|
|
137
|
+
* @param {function(string, RecognizeKoreanIDCardOCRResponse):void} cb
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
140
|
+
RecognizeKoreanIDCardOCR(req, cb) {
|
|
141
|
+
let resp = new RecognizeKoreanIDCardOCRResponse();
|
|
142
|
+
this.request("RecognizeKoreanIDCardOCR", req, resp, cb);
|
|
117
143
|
}
|
|
118
144
|
|
|
119
145
|
/**
|
|
@@ -1076,7 +1076,7 @@ class SendSmsRequest extends AbstractModel {
|
|
|
1076
1076
|
|
|
1077
1077
|
/**
|
|
1078
1078
|
* Target mobile number in the E.164 standard in the format of +[country/region code][mobile number]. Up to 200 mobile numbers are supported in one request (which should be all Chinese mainland mobile numbers or all global mobile numbers).
|
|
1079
|
-
For example, +
|
|
1079
|
+
For example, +60198890000, which has a + sign followed by 60 (country/region code) and then by 198890000 (mobile number).
|
|
1080
1080
|
* @type {Array.<string> || null}
|
|
1081
1081
|
*/
|
|
1082
1082
|
this.PhoneNumberSet = null;
|