tencentcloud-sdk-nodejs-intl-en 3.0.748 → 3.0.750
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/faceid_client.js +42 -16
- package/tencentcloud/faceid/v20180301/models.js +275 -81
- package/tencentcloud/tdmq/v20200217/models.js +2088 -333
- package/tencentcloud/tdmq/v20200217/tdmq_client.js +655 -479
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.750";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -19,14 +19,17 @@ const AbstractClient = require('../../common/abstract_client')
|
|
|
19
19
|
const GetLivenessResultResponse = models.GetLivenessResultResponse;
|
|
20
20
|
const GetFaceIdTokenIntlResponse = models.GetFaceIdTokenIntlResponse;
|
|
21
21
|
const GetSdkVerificationResultResponse = models.GetSdkVerificationResultResponse;
|
|
22
|
-
const
|
|
22
|
+
const ApplyWebVerificationBizTokenIntlResponse = models.ApplyWebVerificationBizTokenIntlResponse;
|
|
23
23
|
const LivenessCompareResponse = models.LivenessCompareResponse;
|
|
24
24
|
const CreateUploadUrlResponse = models.CreateUploadUrlResponse;
|
|
25
25
|
const DetectReflectLivenessAndCompareRequest = models.DetectReflectLivenessAndCompareRequest;
|
|
26
|
+
const ApplyWebVerificationBizTokenIntlRequest = models.ApplyWebVerificationBizTokenIntlRequest;
|
|
26
27
|
const VideoLivenessCompareRequest = models.VideoLivenessCompareRequest;
|
|
27
28
|
const ApplyWebVerificationTokenResponse = models.ApplyWebVerificationTokenResponse;
|
|
28
29
|
const GetWebVerificationResultRequest = models.GetWebVerificationResultRequest;
|
|
29
|
-
const
|
|
30
|
+
const VerificationDetail = models.VerificationDetail;
|
|
31
|
+
const GetWebVerificationResultIntlResponse = models.GetWebVerificationResultIntlResponse;
|
|
32
|
+
const GetSdkVerificationResultRequest = models.GetSdkVerificationResultRequest;
|
|
30
33
|
const GetFaceIdResultIntlRequest = models.GetFaceIdResultIntlRequest;
|
|
31
34
|
const ApplySdkVerificationTokenRequest = models.ApplySdkVerificationTokenRequest;
|
|
32
35
|
const GenerateReflectSequenceRequest = models.GenerateReflectSequenceRequest;
|
|
@@ -40,11 +43,12 @@ const ApplySdkVerificationTokenResponse = models.ApplySdkVerificationTokenRespon
|
|
|
40
43
|
const CreateUploadUrlRequest = models.CreateUploadUrlRequest;
|
|
41
44
|
const GetFaceIdTokenIntlRequest = models.GetFaceIdTokenIntlRequest;
|
|
42
45
|
const GetWebVerificationResultResponse = models.GetWebVerificationResultResponse;
|
|
43
|
-
const
|
|
46
|
+
const FileInfo = models.FileInfo;
|
|
44
47
|
const ApplyLivenessTokenRequest = models.ApplyLivenessTokenRequest;
|
|
45
48
|
const GenerateReflectSequenceResponse = models.GenerateReflectSequenceResponse;
|
|
46
49
|
const LivenessCompareRequest = models.LivenessCompareRequest;
|
|
47
50
|
const GetFaceIdResultIntlResponse = models.GetFaceIdResultIntlResponse;
|
|
51
|
+
const GetWebVerificationResultIntlRequest = models.GetWebVerificationResultIntlRequest;
|
|
48
52
|
const CompareResult = models.CompareResult;
|
|
49
53
|
|
|
50
54
|
|
|
@@ -69,6 +73,17 @@ class FaceidClient extends AbstractClient {
|
|
|
69
73
|
this.request("ApplyLivenessToken", req, resp, cb);
|
|
70
74
|
}
|
|
71
75
|
|
|
76
|
+
/**
|
|
77
|
+
* This API is used to get the verification result with the corresponding BizToken after the u200dweb-based verification is completed. The token is valid for three days (259,200s) after issuance and can be called multiple times.
|
|
78
|
+
* @param {GetWebVerificationResultIntlRequest} req
|
|
79
|
+
* @param {function(string, GetWebVerificationResultIntlResponse):void} cb
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
GetWebVerificationResultIntl(req, cb) {
|
|
83
|
+
let resp = new GetWebVerificationResultIntlResponse();
|
|
84
|
+
this.request("GetWebVerificationResultIntl", req, resp, cb);
|
|
85
|
+
}
|
|
86
|
+
|
|
72
87
|
/**
|
|
73
88
|
* 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.
|
|
74
89
|
This API on the legacy version will continue to serve existing users but will be unavailable to new users. We recommend you use `VideoLivenessCompare` for better service quality.
|
|
@@ -94,14 +109,15 @@ The image and the data generated with the SDK must be stored in COS, and the reg
|
|
|
94
109
|
}
|
|
95
110
|
|
|
96
111
|
/**
|
|
97
|
-
* This API is used to
|
|
98
|
-
|
|
99
|
-
* @param {
|
|
112
|
+
* This API is used to generate an appropriate light sequence based on the information collected by the liveness comparison (reflection-based) SDK and pass the light sequence into the SDK to start the identity verification process.
|
|
113
|
+
The data generated with the SDK must be stored in COS, and the region of the COS bucket must be same as that of requests made with this API. We recommend that you pass resources with upload link APIs.
|
|
114
|
+
* @param {GenerateReflectSequenceRequest} req
|
|
115
|
+
* @param {function(string, GenerateReflectSequenceResponse):void} cb
|
|
100
116
|
* @public
|
|
101
117
|
*/
|
|
102
|
-
|
|
103
|
-
let resp = new
|
|
104
|
-
this.request("
|
|
118
|
+
GenerateReflectSequence(req, cb) {
|
|
119
|
+
let resp = new GenerateReflectSequenceResponse();
|
|
120
|
+
this.request("GenerateReflectSequence", req, resp, cb);
|
|
105
121
|
}
|
|
106
122
|
|
|
107
123
|
/**
|
|
@@ -116,15 +132,14 @@ The image and the data generated with the SDK must be stored in COS, and the reg
|
|
|
116
132
|
}
|
|
117
133
|
|
|
118
134
|
/**
|
|
119
|
-
* This API is used to
|
|
120
|
-
|
|
121
|
-
* @param {
|
|
122
|
-
* @param {function(string, GenerateReflectSequenceResponse):void} cb
|
|
135
|
+
* This API is used to apply for a BizToken before calling the web-based verification service each time. This token is required for initiating a verification process and getting the result after the verification is completed.
|
|
136
|
+
* @param {ApplyWebVerificationBizTokenIntlRequest} req
|
|
137
|
+
* @param {function(string, ApplyWebVerificationBizTokenIntlResponse):void} cb
|
|
123
138
|
* @public
|
|
124
139
|
*/
|
|
125
|
-
|
|
126
|
-
let resp = new
|
|
127
|
-
this.request("
|
|
140
|
+
ApplyWebVerificationBizTokenIntl(req, cb) {
|
|
141
|
+
let resp = new ApplyWebVerificationBizTokenIntlResponse();
|
|
142
|
+
this.request("ApplyWebVerificationBizTokenIntl", req, resp, cb);
|
|
128
143
|
}
|
|
129
144
|
|
|
130
145
|
/**
|
|
@@ -160,6 +175,17 @@ The data generated with the SDK must be stored in COS, and the region of the COS
|
|
|
160
175
|
this.request("GetFaceIdTokenIntl", req, resp, cb);
|
|
161
176
|
}
|
|
162
177
|
|
|
178
|
+
/**
|
|
179
|
+
* This API is used to get the verification result with the corresponding token (BizToken) after the web-based verification is completed. The BizToken is valid for three days (3*24*3,600s) after issuance and can be called multiple times.
|
|
180
|
+
* @param {GetWebVerificationResultRequest} req
|
|
181
|
+
* @param {function(string, GetWebVerificationResultResponse):void} cb
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
GetWebVerificationResult(req, cb) {
|
|
185
|
+
let resp = new GetWebVerificationResultResponse();
|
|
186
|
+
this.request("GetWebVerificationResult", req, resp, cb);
|
|
187
|
+
}
|
|
188
|
+
|
|
163
189
|
/**
|
|
164
190
|
* This API is used to generate a temporary `UploadUrl` for uploading resource files (with the `HTTP PUT` method). After resource upload, `ResourceUrl` will be passed to the `TargetAction` API to complete the resource passing (specific fields vary by case).
|
|
165
191
|
The data will be stored in a COS bucket in the region specified by the parameter `Region` for two hours.
|
|
@@ -204,75 +204,30 @@ class GetSdkVerificationResultResponse extends AbstractModel {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
|
-
*
|
|
207
|
+
* ApplyWebVerificationBizTokenIntl response structure.
|
|
208
208
|
* @class
|
|
209
209
|
*/
|
|
210
|
-
class
|
|
210
|
+
class ApplyWebVerificationBizTokenIntlResponse extends AbstractModel {
|
|
211
211
|
constructor(){
|
|
212
212
|
super();
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
|
-
* The
|
|
216
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
217
|
-
* @type {number || null}
|
|
218
|
-
*/
|
|
219
|
-
this.ErrorCode = null;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* The description of the final verification result.
|
|
223
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
224
|
-
* @type {string || null}
|
|
225
|
-
*/
|
|
226
|
-
this.ErrorMsg = null;
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* The result of this liveness detection process. `0` indicates success.
|
|
230
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
231
|
-
* @type {number || null}
|
|
232
|
-
*/
|
|
233
|
-
this.LivenessErrorCode = null;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* The result description of this liveness detection process.
|
|
237
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
215
|
+
* The URL of this verification process, which will be returned to the frontend of the browser for starting the process.
|
|
238
216
|
* @type {string || null}
|
|
239
217
|
*/
|
|
240
|
-
this.
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* The result of this comparison process. `0` indicates that the person in the best face screenshot collected from the video stream is the same as that in the uploaded image for comparison.
|
|
244
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
245
|
-
* @type {number || null}
|
|
246
|
-
*/
|
|
247
|
-
this.CompareErrorCode = null;
|
|
218
|
+
this.VerificationUrl = null;
|
|
248
219
|
|
|
249
220
|
/**
|
|
250
|
-
* The
|
|
251
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
221
|
+
* The token identifying this web-based verification process, valid for 7,200s after issuance. It is required for getting the result after the verification process is completed.
|
|
252
222
|
* @type {string || null}
|
|
253
223
|
*/
|
|
254
|
-
this.
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* The timestamp (ms) of this verification process.
|
|
258
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
259
|
-
* @type {number || null}
|
|
260
|
-
*/
|
|
261
|
-
this.ReqTimestamp = null;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* The similarity of the best face screenshot collected from the video stream and the uploaded image for comparison in this verification process. Valid range: [0.00, 100.00]. By default, the person in the screenshot is judged as the same person in the image if the similarity is greater than or equal to 70.
|
|
265
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
266
|
-
* @type {number || null}
|
|
267
|
-
*/
|
|
268
|
-
this.Similarity = null;
|
|
224
|
+
this.BizToken = null;
|
|
269
225
|
|
|
270
226
|
/**
|
|
271
|
-
*
|
|
272
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
227
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
273
228
|
* @type {string || null}
|
|
274
229
|
*/
|
|
275
|
-
this.
|
|
230
|
+
this.RequestId = null;
|
|
276
231
|
|
|
277
232
|
}
|
|
278
233
|
|
|
@@ -283,15 +238,9 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
283
238
|
if (!params) {
|
|
284
239
|
return;
|
|
285
240
|
}
|
|
286
|
-
this.
|
|
287
|
-
this.
|
|
288
|
-
this.
|
|
289
|
-
this.LivenessErrorMsg = 'LivenessErrorMsg' in params ? params.LivenessErrorMsg : null;
|
|
290
|
-
this.CompareErrorCode = 'CompareErrorCode' in params ? params.CompareErrorCode : null;
|
|
291
|
-
this.CompareErrorMsg = 'CompareErrorMsg' in params ? params.CompareErrorMsg : null;
|
|
292
|
-
this.ReqTimestamp = 'ReqTimestamp' in params ? params.ReqTimestamp : null;
|
|
293
|
-
this.Similarity = 'Similarity' in params ? params.Similarity : null;
|
|
294
|
-
this.Seq = 'Seq' in params ? params.Seq : null;
|
|
241
|
+
this.VerificationUrl = 'VerificationUrl' in params ? params.VerificationUrl : null;
|
|
242
|
+
this.BizToken = 'BizToken' in params ? params.BizToken : null;
|
|
243
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
295
244
|
|
|
296
245
|
}
|
|
297
246
|
}
|
|
@@ -457,6 +406,49 @@ class DetectReflectLivenessAndCompareRequest extends AbstractModel {
|
|
|
457
406
|
}
|
|
458
407
|
}
|
|
459
408
|
|
|
409
|
+
/**
|
|
410
|
+
* ApplyWebVerificationBizTokenIntl request structure.
|
|
411
|
+
* @class
|
|
412
|
+
*/
|
|
413
|
+
class ApplyWebVerificationBizTokenIntlRequest extends AbstractModel {
|
|
414
|
+
constructor(){
|
|
415
|
+
super();
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* The Base64-encoded string (max 8 MB in size) of the photo to be compared.
|
|
419
|
+
* @type {string || null}
|
|
420
|
+
*/
|
|
421
|
+
this.CompareImageBase64 = null;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* The web callback URL to redirect to after the verification is completed, including the protocol, hostname, and path. Example: `https://www.tencentcloud.com/products/faceid`.
|
|
425
|
+
After the verification process is completed, the `BizToken` of this process will be spliced to the callback URL in the format of `https://www.tencentcloud.com/products/faceid?token={BizToken}` before redirect.
|
|
426
|
+
* @type {string || null}
|
|
427
|
+
*/
|
|
428
|
+
this.RedirectURL = null;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* The passthrough parameter of the business, max 1,000 characters, which will be returned in `GetWebVerificationResultIntl`.
|
|
432
|
+
* @type {string || null}
|
|
433
|
+
*/
|
|
434
|
+
this.Extra = null;
|
|
435
|
+
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* @private
|
|
440
|
+
*/
|
|
441
|
+
deserialize(params) {
|
|
442
|
+
if (!params) {
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
this.CompareImageBase64 = 'CompareImageBase64' in params ? params.CompareImageBase64 : null;
|
|
446
|
+
this.RedirectURL = 'RedirectURL' in params ? params.RedirectURL : null;
|
|
447
|
+
this.Extra = 'Extra' in params ? params.Extra : null;
|
|
448
|
+
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
460
452
|
/**
|
|
461
453
|
* VideoLivenessCompare request structure.
|
|
462
454
|
* @class
|
|
@@ -598,30 +590,75 @@ class GetWebVerificationResultRequest extends AbstractModel {
|
|
|
598
590
|
}
|
|
599
591
|
|
|
600
592
|
/**
|
|
601
|
-
* The
|
|
593
|
+
* The details of the verification process.
|
|
602
594
|
* @class
|
|
603
595
|
*/
|
|
604
|
-
class
|
|
596
|
+
class VerificationDetail extends AbstractModel {
|
|
605
597
|
constructor(){
|
|
606
598
|
super();
|
|
607
599
|
|
|
608
600
|
/**
|
|
609
|
-
* The
|
|
601
|
+
* The final result of this verification. `0` indicates that the person is the same as that in the photo.
|
|
602
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
603
|
+
* @type {number || null}
|
|
604
|
+
*/
|
|
605
|
+
this.ErrorCode = null;
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* The description of the final verification result.
|
|
609
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
610
610
|
* @type {string || null}
|
|
611
611
|
*/
|
|
612
|
-
this.
|
|
612
|
+
this.ErrorMsg = null;
|
|
613
613
|
|
|
614
614
|
/**
|
|
615
|
-
* The
|
|
615
|
+
* The result of this liveness detection process. `0` indicates success.
|
|
616
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
617
|
+
* @type {number || null}
|
|
618
|
+
*/
|
|
619
|
+
this.LivenessErrorCode = null;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* The result description of this liveness detection process.
|
|
623
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
616
624
|
* @type {string || null}
|
|
617
625
|
*/
|
|
618
|
-
this.
|
|
626
|
+
this.LivenessErrorMsg = null;
|
|
619
627
|
|
|
620
628
|
/**
|
|
621
|
-
* The
|
|
629
|
+
* The result of this comparison process. `0` indicates that the person in the best face screenshot collected from the video stream is the same as that in the uploaded image for comparison.
|
|
630
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
622
631
|
* @type {number || null}
|
|
623
632
|
*/
|
|
624
|
-
this.
|
|
633
|
+
this.CompareErrorCode = null;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* The result description of this comparison process.
|
|
637
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
638
|
+
* @type {string || null}
|
|
639
|
+
*/
|
|
640
|
+
this.CompareErrorMsg = null;
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* The timestamp (ms) of this verification process.
|
|
644
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
645
|
+
* @type {number || null}
|
|
646
|
+
*/
|
|
647
|
+
this.ReqTimestamp = null;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* The similarity of the best face screenshot collected from the video stream and the uploaded image for comparison in this verification process. Value range: [0.00, 100.00]. By default, the person in the screenshot is determined to be the same person in the image if the similarity is greater than or equal to 70.
|
|
651
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
652
|
+
* @type {number || null}
|
|
653
|
+
*/
|
|
654
|
+
this.Similarity = null;
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Unique ID of this verification process.
|
|
658
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
659
|
+
* @type {string || null}
|
|
660
|
+
*/
|
|
661
|
+
this.Seq = null;
|
|
625
662
|
|
|
626
663
|
}
|
|
627
664
|
|
|
@@ -632,9 +669,120 @@ class FileInfo extends AbstractModel {
|
|
|
632
669
|
if (!params) {
|
|
633
670
|
return;
|
|
634
671
|
}
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
637
|
-
this.
|
|
672
|
+
this.ErrorCode = 'ErrorCode' in params ? params.ErrorCode : null;
|
|
673
|
+
this.ErrorMsg = 'ErrorMsg' in params ? params.ErrorMsg : null;
|
|
674
|
+
this.LivenessErrorCode = 'LivenessErrorCode' in params ? params.LivenessErrorCode : null;
|
|
675
|
+
this.LivenessErrorMsg = 'LivenessErrorMsg' in params ? params.LivenessErrorMsg : null;
|
|
676
|
+
this.CompareErrorCode = 'CompareErrorCode' in params ? params.CompareErrorCode : null;
|
|
677
|
+
this.CompareErrorMsg = 'CompareErrorMsg' in params ? params.CompareErrorMsg : null;
|
|
678
|
+
this.ReqTimestamp = 'ReqTimestamp' in params ? params.ReqTimestamp : null;
|
|
679
|
+
this.Similarity = 'Similarity' in params ? params.Similarity : null;
|
|
680
|
+
this.Seq = 'Seq' in params ? params.Seq : null;
|
|
681
|
+
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* GetWebVerificationResultIntl response structure.
|
|
687
|
+
* @class
|
|
688
|
+
*/
|
|
689
|
+
class GetWebVerificationResultIntlResponse extends AbstractModel {
|
|
690
|
+
constructor(){
|
|
691
|
+
super();
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* The final result of this verification. `0` indicates that the person is the same as that in the photo.
|
|
695
|
+
For other error codes, see <a href="https://www.tencentcloud.com/document/product/1061/55390?lang=en&pg=#8a960e1e-39c0-42cb-b181-b3164d77f81e">Liveness Detection and Face Comparison (Mobile HTML5) Error Codes</a>
|
|
696
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
697
|
+
* @type {number || null}
|
|
698
|
+
*/
|
|
699
|
+
this.ErrorCode = null;
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* The description of the final verification result.
|
|
703
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
704
|
+
* @type {string || null}
|
|
705
|
+
*/
|
|
706
|
+
this.ErrorMsg = null;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* The detailed verification result list of this process. Retries are allowed, so a verification process may have several entries of results.
|
|
710
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
711
|
+
* @type {Array.<VerificationDetail> || null}
|
|
712
|
+
*/
|
|
713
|
+
this.VerificationDetailList = null;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* The Base64-encoded string of the video collected from the video stream. Retries are allowed, and this field returns only the data collected in the last verification. If no video is collected, null is returned.
|
|
717
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
718
|
+
* @type {string || null}
|
|
719
|
+
*/
|
|
720
|
+
this.VideoBase64 = null;
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* The Base64-encoded string of the best face screenshot u200dcollected from the video stream. Retries are allowed, and this field returns only the data collected in the last verification. If no best face screenshot is collected, null is returned.
|
|
724
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
725
|
+
* @type {string || null}
|
|
726
|
+
*/
|
|
727
|
+
this.BestFrameBase64 = null;
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
731
|
+
* @type {string || null}
|
|
732
|
+
*/
|
|
733
|
+
this.RequestId = null;
|
|
734
|
+
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* @private
|
|
739
|
+
*/
|
|
740
|
+
deserialize(params) {
|
|
741
|
+
if (!params) {
|
|
742
|
+
return;
|
|
743
|
+
}
|
|
744
|
+
this.ErrorCode = 'ErrorCode' in params ? params.ErrorCode : null;
|
|
745
|
+
this.ErrorMsg = 'ErrorMsg' in params ? params.ErrorMsg : null;
|
|
746
|
+
|
|
747
|
+
if (params.VerificationDetailList) {
|
|
748
|
+
this.VerificationDetailList = new Array();
|
|
749
|
+
for (let z in params.VerificationDetailList) {
|
|
750
|
+
let obj = new VerificationDetail();
|
|
751
|
+
obj.deserialize(params.VerificationDetailList[z]);
|
|
752
|
+
this.VerificationDetailList.push(obj);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
this.VideoBase64 = 'VideoBase64' in params ? params.VideoBase64 : null;
|
|
756
|
+
this.BestFrameBase64 = 'BestFrameBase64' in params ? params.BestFrameBase64 : null;
|
|
757
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
758
|
+
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* GetSdkVerificationResult request structure.
|
|
764
|
+
* @class
|
|
765
|
+
*/
|
|
766
|
+
class GetSdkVerificationResultRequest extends AbstractModel {
|
|
767
|
+
constructor(){
|
|
768
|
+
super();
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* The token used to identify an SDK-based verification process.
|
|
772
|
+
* @type {string || null}
|
|
773
|
+
*/
|
|
774
|
+
this.SdkToken = null;
|
|
775
|
+
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* @private
|
|
780
|
+
*/
|
|
781
|
+
deserialize(params) {
|
|
782
|
+
if (!params) {
|
|
783
|
+
return;
|
|
784
|
+
}
|
|
785
|
+
this.SdkToken = 'SdkToken' in params ? params.SdkToken : null;
|
|
638
786
|
|
|
639
787
|
}
|
|
640
788
|
}
|
|
@@ -1422,18 +1570,30 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
1422
1570
|
}
|
|
1423
1571
|
|
|
1424
1572
|
/**
|
|
1425
|
-
*
|
|
1573
|
+
* The description of a file, including a download URL and the MD5 checksum and size of the file.
|
|
1426
1574
|
* @class
|
|
1427
1575
|
*/
|
|
1428
|
-
class
|
|
1576
|
+
class FileInfo extends AbstractModel {
|
|
1429
1577
|
constructor(){
|
|
1430
1578
|
super();
|
|
1431
1579
|
|
|
1432
1580
|
/**
|
|
1433
|
-
* The
|
|
1581
|
+
* The URL for downloading the file
|
|
1434
1582
|
* @type {string || null}
|
|
1435
1583
|
*/
|
|
1436
|
-
this.
|
|
1584
|
+
this.Url = null;
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* The 32-bit MD5 checksum of the file
|
|
1588
|
+
* @type {string || null}
|
|
1589
|
+
*/
|
|
1590
|
+
this.MD5 = null;
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* The file size
|
|
1594
|
+
* @type {number || null}
|
|
1595
|
+
*/
|
|
1596
|
+
this.Size = null;
|
|
1437
1597
|
|
|
1438
1598
|
}
|
|
1439
1599
|
|
|
@@ -1444,7 +1604,9 @@ class GetSdkVerificationResultRequest extends AbstractModel {
|
|
|
1444
1604
|
if (!params) {
|
|
1445
1605
|
return;
|
|
1446
1606
|
}
|
|
1447
|
-
this.
|
|
1607
|
+
this.Url = 'Url' in params ? params.Url : null;
|
|
1608
|
+
this.MD5 = 'MD5' in params ? params.MD5 : null;
|
|
1609
|
+
this.Size = 'Size' in params ? params.Size : null;
|
|
1448
1610
|
|
|
1449
1611
|
}
|
|
1450
1612
|
}
|
|
@@ -1698,6 +1860,34 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
1698
1860
|
}
|
|
1699
1861
|
}
|
|
1700
1862
|
|
|
1863
|
+
/**
|
|
1864
|
+
* GetWebVerificationResultIntl request structure.
|
|
1865
|
+
* @class
|
|
1866
|
+
*/
|
|
1867
|
+
class GetWebVerificationResultIntlRequest extends AbstractModel {
|
|
1868
|
+
constructor(){
|
|
1869
|
+
super();
|
|
1870
|
+
|
|
1871
|
+
/**
|
|
1872
|
+
* The token for the web-based verification, which is generated using the `ApplyWebVerificationBizTokenIntl` API.
|
|
1873
|
+
* @type {string || null}
|
|
1874
|
+
*/
|
|
1875
|
+
this.BizToken = null;
|
|
1876
|
+
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
/**
|
|
1880
|
+
* @private
|
|
1881
|
+
*/
|
|
1882
|
+
deserialize(params) {
|
|
1883
|
+
if (!params) {
|
|
1884
|
+
return;
|
|
1885
|
+
}
|
|
1886
|
+
this.BizToken = 'BizToken' in params ? params.BizToken : null;
|
|
1887
|
+
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1701
1891
|
/**
|
|
1702
1892
|
* The description of a single comparison result.
|
|
1703
1893
|
* @class
|
|
@@ -1870,14 +2060,17 @@ module.exports = {
|
|
|
1870
2060
|
GetLivenessResultResponse: GetLivenessResultResponse,
|
|
1871
2061
|
GetFaceIdTokenIntlResponse: GetFaceIdTokenIntlResponse,
|
|
1872
2062
|
GetSdkVerificationResultResponse: GetSdkVerificationResultResponse,
|
|
1873
|
-
|
|
2063
|
+
ApplyWebVerificationBizTokenIntlResponse: ApplyWebVerificationBizTokenIntlResponse,
|
|
1874
2064
|
LivenessCompareResponse: LivenessCompareResponse,
|
|
1875
2065
|
CreateUploadUrlResponse: CreateUploadUrlResponse,
|
|
1876
2066
|
DetectReflectLivenessAndCompareRequest: DetectReflectLivenessAndCompareRequest,
|
|
2067
|
+
ApplyWebVerificationBizTokenIntlRequest: ApplyWebVerificationBizTokenIntlRequest,
|
|
1877
2068
|
VideoLivenessCompareRequest: VideoLivenessCompareRequest,
|
|
1878
2069
|
ApplyWebVerificationTokenResponse: ApplyWebVerificationTokenResponse,
|
|
1879
2070
|
GetWebVerificationResultRequest: GetWebVerificationResultRequest,
|
|
1880
|
-
|
|
2071
|
+
VerificationDetail: VerificationDetail,
|
|
2072
|
+
GetWebVerificationResultIntlResponse: GetWebVerificationResultIntlResponse,
|
|
2073
|
+
GetSdkVerificationResultRequest: GetSdkVerificationResultRequest,
|
|
1881
2074
|
GetFaceIdResultIntlRequest: GetFaceIdResultIntlRequest,
|
|
1882
2075
|
ApplySdkVerificationTokenRequest: ApplySdkVerificationTokenRequest,
|
|
1883
2076
|
GenerateReflectSequenceRequest: GenerateReflectSequenceRequest,
|
|
@@ -1891,11 +2084,12 @@ module.exports = {
|
|
|
1891
2084
|
CreateUploadUrlRequest: CreateUploadUrlRequest,
|
|
1892
2085
|
GetFaceIdTokenIntlRequest: GetFaceIdTokenIntlRequest,
|
|
1893
2086
|
GetWebVerificationResultResponse: GetWebVerificationResultResponse,
|
|
1894
|
-
|
|
2087
|
+
FileInfo: FileInfo,
|
|
1895
2088
|
ApplyLivenessTokenRequest: ApplyLivenessTokenRequest,
|
|
1896
2089
|
GenerateReflectSequenceResponse: GenerateReflectSequenceResponse,
|
|
1897
2090
|
LivenessCompareRequest: LivenessCompareRequest,
|
|
1898
2091
|
GetFaceIdResultIntlResponse: GetFaceIdResultIntlResponse,
|
|
2092
|
+
GetWebVerificationResultIntlRequest: GetWebVerificationResultIntlRequest,
|
|
1899
2093
|
CompareResult: CompareResult,
|
|
1900
2094
|
|
|
1901
2095
|
}
|