tencentcloud-sdk-nodejs-intl-en 3.0.355 → 3.0.356

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.
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.355";
1
+ const sdkVersion = "3.0.356";
2
2
  module.exports = sdkVersion
@@ -16,7 +16,9 @@
16
16
  */
17
17
  const models = require("./models");
18
18
  const AbstractClient = require('../../common/abstract_client')
19
+ const DetectReflectLivenessAndCompareRequest = models.DetectReflectLivenessAndCompareRequest;
19
20
  const LivenessCompareResponse = models.LivenessCompareResponse;
21
+ const DetectReflectLivenessAndCompareResponse = models.DetectReflectLivenessAndCompareResponse;
20
22
  const LivenessCompareRequest = models.LivenessCompareRequest;
21
23
 
22
24
 
@@ -30,6 +32,17 @@ class FaceidClient extends AbstractClient {
30
32
  super("faceid.tencentcloudapi.com", "2018-03-01", credential, region, profile);
31
33
  }
32
34
 
35
+ /**
36
+ * This API is used to detect liveness with the package generated by the Updated E-KYC SDK, and to compare the person detected with that in the image passed in.
37
+ * @param {DetectReflectLivenessAndCompareRequest} req
38
+ * @param {function(string, DetectReflectLivenessAndCompareResponse):void} cb
39
+ * @public
40
+ */
41
+ DetectReflectLivenessAndCompare(req, cb) {
42
+ let resp = new DetectReflectLivenessAndCompareResponse();
43
+ this.request("DetectReflectLivenessAndCompare", req, resp, cb);
44
+ }
45
+
33
46
  /**
34
47
  * This API is used to pass in a video and a photo, determine whether the person in the video is real, and if yes, then determine whether the person in the video is the same as that in the photo.
35
48
  * @param {LivenessCompareRequest} req
@@ -16,6 +16,55 @@
16
16
  */
17
17
  const AbstractModel = require("../../common/abstract_model");
18
18
 
19
+ /**
20
+ * DetectReflectLivenessAndCompare request structure.
21
+ * @class
22
+ */
23
+ class DetectReflectLivenessAndCompareRequest extends AbstractModel {
24
+ constructor(){
25
+ super();
26
+
27
+ /**
28
+ * URL of the liveness data package generated by the SDK
29
+ * @type {string || null}
30
+ */
31
+ this.LiveDataUrl = null;
32
+
33
+ /**
34
+ * MD5 hash value of the liveness data package generated by the SDK
35
+ * @type {string || null}
36
+ */
37
+ this.LiveDataMd5 = null;
38
+
39
+ /**
40
+ * URL of the target image for comparison
41
+ * @type {string || null}
42
+ */
43
+ this.ImageUrl = null;
44
+
45
+ /**
46
+ * MD5 hash value of the target image for comparison
47
+ * @type {string || null}
48
+ */
49
+ this.ImageMd5 = null;
50
+
51
+ }
52
+
53
+ /**
54
+ * @private
55
+ */
56
+ deserialize(params) {
57
+ if (!params) {
58
+ return;
59
+ }
60
+ this.LiveDataUrl = 'LiveDataUrl' in params ? params.LiveDataUrl : null;
61
+ this.LiveDataMd5 = 'LiveDataMd5' in params ? params.LiveDataMd5 : null;
62
+ this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
63
+ this.ImageMd5 = 'ImageMd5' in params ? params.ImageMd5 : null;
64
+
65
+ }
66
+ }
67
+
19
68
  /**
20
69
  * LivenessCompare response structure.
21
70
  * @class
@@ -79,6 +128,69 @@ class LivenessCompareResponse extends AbstractModel {
79
128
  }
80
129
  }
81
130
 
131
+ /**
132
+ * DetectReflectLivenessAndCompare response structure.
133
+ * @class
134
+ */
135
+ class DetectReflectLivenessAndCompareResponse extends AbstractModel {
136
+ constructor(){
137
+ super();
138
+
139
+ /**
140
+ * URL of the best screenshot (in JPG format) of the video after successful verification
141
+ * @type {string || null}
142
+ */
143
+ this.BestFrameUrl = null;
144
+
145
+ /**
146
+ * MD5 hash value of the best screenshot of the video after successful verification
147
+ * @type {string || null}
148
+ */
149
+ this.BestFrameMd5 = null;
150
+
151
+ /**
152
+ * Service error code. `Success` will be returned for success. For error information, please see the `FailedOperation` section in the error code list below.
153
+ * @type {string || null}
154
+ */
155
+ this.Result = null;
156
+
157
+ /**
158
+ * Service result description
159
+ * @type {string || null}
160
+ */
161
+ this.Description = null;
162
+
163
+ /**
164
+ * Similarity. Value range: [0.00, 100.00]. As a recommendation, when the similarity is greater than or equal to 70, it can be determined that the two faces are of the same person. You can adjust the threshold according to your specific scenario (the FAR at the threshold of 70 is 0.1%, and FAR at the threshold of 80 is 0.01%).
165
+ * @type {number || null}
166
+ */
167
+ this.Sim = null;
168
+
169
+ /**
170
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
171
+ * @type {string || null}
172
+ */
173
+ this.RequestId = null;
174
+
175
+ }
176
+
177
+ /**
178
+ * @private
179
+ */
180
+ deserialize(params) {
181
+ if (!params) {
182
+ return;
183
+ }
184
+ this.BestFrameUrl = 'BestFrameUrl' in params ? params.BestFrameUrl : null;
185
+ this.BestFrameMd5 = 'BestFrameMd5' in params ? params.BestFrameMd5 : null;
186
+ this.Result = 'Result' in params ? params.Result : null;
187
+ this.Description = 'Description' in params ? params.Description : null;
188
+ this.Sim = 'Sim' in params ? params.Sim : null;
189
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
190
+
191
+ }
192
+ }
193
+
82
194
  /**
83
195
  * LivenessCompare request structure.
84
196
  * @class
@@ -172,7 +284,9 @@ We recommend you store the video in Tencent Cloud, as a Tencent Cloud URL can gu
172
284
  }
173
285
 
174
286
  module.exports = {
287
+ DetectReflectLivenessAndCompareRequest: DetectReflectLivenessAndCompareRequest,
175
288
  LivenessCompareResponse: LivenessCompareResponse,
289
+ DetectReflectLivenessAndCompareResponse: DetectReflectLivenessAndCompareResponse,
176
290
  LivenessCompareRequest: LivenessCompareRequest,
177
291
 
178
292
  }
@@ -26,6 +26,7 @@ const DestroyHourDBInstanceRequest = models.DestroyHourDBInstanceRequest;
26
26
  const AssociateSecurityGroupsRequest = models.AssociateSecurityGroupsRequest;
27
27
  const DescribeDBSecurityGroupsResponse = models.DescribeDBSecurityGroupsResponse;
28
28
  const CancelDcnJobResponse = models.CancelDcnJobResponse;
29
+ const DescribeFileDownloadUrlRequest = models.DescribeFileDownloadUrlRequest;
29
30
  const DescribeDBResourceUsageDetailsResponse = models.DescribeDBResourceUsageDetailsResponse;
30
31
  const DestroyHourDBInstanceResponse = models.DestroyHourDBInstanceResponse;
31
32
  const Account = models.Account;
@@ -63,6 +64,7 @@ const DBParamValue = models.DBParamValue;
63
64
  const ModifyDBParametersRequest = models.ModifyDBParametersRequest;
64
65
  const ModifyDBInstanceSecurityGroupsRequest = models.ModifyDBInstanceSecurityGroupsRequest;
65
66
  const DescribeDcnDetailRequest = models.DescribeDcnDetailRequest;
67
+ const DescribeFileDownloadUrlResponse = models.DescribeFileDownloadUrlResponse;
66
68
  const ModifyDBParametersResponse = models.ModifyDBParametersResponse;
67
69
  const CopyAccountPrivilegesRequest = models.CopyAccountPrivilegesRequest;
68
70
  const SecurityGroup = models.SecurityGroup;
@@ -170,6 +172,17 @@ Note: accounts with the same username but different hosts are different accounts
170
172
  this.request("ModifyAccountDescription", req, resp, cb);
171
173
  }
172
174
 
175
+ /**
176
+ * This API is used to get the download URL of a specific backup or log file of a database.
177
+ * @param {DescribeFileDownloadUrlRequest} req
178
+ * @param {function(string, DescribeFileDownloadUrlResponse):void} cb
179
+ * @public
180
+ */
181
+ DescribeFileDownloadUrl(req, cb) {
182
+ let resp = new DescribeFileDownloadUrlResponse();
183
+ this.request("DescribeFileDownloadUrl", req, resp, cb);
184
+ }
185
+
173
186
  /**
174
187
  * This API is used to get the backup time of a TencentDB instance. The backend system will perform instance backup regularly according to this configuration.
175
188
  * @param {DescribeBackupTimeRequest} req
@@ -431,6 +431,41 @@ class CancelDcnJobResponse extends AbstractModel {
431
431
  }
432
432
  }
433
433
 
434
+ /**
435
+ * DescribeFileDownloadUrl request structure.
436
+ * @class
437
+ */
438
+ class DescribeFileDownloadUrlRequest extends AbstractModel {
439
+ constructor(){
440
+ super();
441
+
442
+ /**
443
+ * Instance ID
444
+ * @type {string || null}
445
+ */
446
+ this.InstanceId = null;
447
+
448
+ /**
449
+ * Unsigned file path
450
+ * @type {string || null}
451
+ */
452
+ this.FilePath = null;
453
+
454
+ }
455
+
456
+ /**
457
+ * @private
458
+ */
459
+ deserialize(params) {
460
+ if (!params) {
461
+ return;
462
+ }
463
+ this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
464
+ this.FilePath = 'FilePath' in params ? params.FilePath : null;
465
+
466
+ }
467
+ }
468
+
434
469
  /**
435
470
  * DescribeDBResourceUsageDetails response structure.
436
471
  * @class
@@ -2232,6 +2267,41 @@ class DescribeDcnDetailRequest extends AbstractModel {
2232
2267
  }
2233
2268
  }
2234
2269
 
2270
+ /**
2271
+ * DescribeFileDownloadUrl response structure.
2272
+ * @class
2273
+ */
2274
+ class DescribeFileDownloadUrlResponse extends AbstractModel {
2275
+ constructor(){
2276
+ super();
2277
+
2278
+ /**
2279
+ * Signed download URL
2280
+ * @type {string || null}
2281
+ */
2282
+ this.PreSignedUrl = null;
2283
+
2284
+ /**
2285
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2286
+ * @type {string || null}
2287
+ */
2288
+ this.RequestId = null;
2289
+
2290
+ }
2291
+
2292
+ /**
2293
+ * @private
2294
+ */
2295
+ deserialize(params) {
2296
+ if (!params) {
2297
+ return;
2298
+ }
2299
+ this.PreSignedUrl = 'PreSignedUrl' in params ? params.PreSignedUrl : null;
2300
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2301
+
2302
+ }
2303
+ }
2304
+
2235
2305
  /**
2236
2306
  * ModifyDBParameters response structure.
2237
2307
  * @class
@@ -5684,6 +5754,7 @@ module.exports = {
5684
5754
  AssociateSecurityGroupsRequest: AssociateSecurityGroupsRequest,
5685
5755
  DescribeDBSecurityGroupsResponse: DescribeDBSecurityGroupsResponse,
5686
5756
  CancelDcnJobResponse: CancelDcnJobResponse,
5757
+ DescribeFileDownloadUrlRequest: DescribeFileDownloadUrlRequest,
5687
5758
  DescribeDBResourceUsageDetailsResponse: DescribeDBResourceUsageDetailsResponse,
5688
5759
  DestroyHourDBInstanceResponse: DestroyHourDBInstanceResponse,
5689
5760
  Account: Account,
@@ -5721,6 +5792,7 @@ module.exports = {
5721
5792
  ModifyDBParametersRequest: ModifyDBParametersRequest,
5722
5793
  ModifyDBInstanceSecurityGroupsRequest: ModifyDBInstanceSecurityGroupsRequest,
5723
5794
  DescribeDcnDetailRequest: DescribeDcnDetailRequest,
5795
+ DescribeFileDownloadUrlResponse: DescribeFileDownloadUrlResponse,
5724
5796
  ModifyDBParametersResponse: ModifyDBParametersResponse,
5725
5797
  CopyAccountPrivilegesRequest: CopyAccountPrivilegesRequest,
5726
5798
  SecurityGroup: SecurityGroup,