tencentcloud-sdk-nodejs-intl-en 3.0.1022 → 3.0.1024
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,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1024";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -21,21 +21,22 @@ const GetFaceIdTokenIntlResponse = models.GetFaceIdTokenIntlResponse;
|
|
|
21
21
|
const InternationalIDPassport = models.InternationalIDPassport;
|
|
22
22
|
const GetSdkVerificationResultResponse = models.GetSdkVerificationResultResponse;
|
|
23
23
|
const GetSdkVerificationResultRequest = models.GetSdkVerificationResultRequest;
|
|
24
|
-
const
|
|
25
|
-
const
|
|
24
|
+
const DetectAIFakeFacesRequest = models.DetectAIFakeFacesRequest;
|
|
25
|
+
const AttackRiskDetail = models.AttackRiskDetail;
|
|
26
|
+
const ExtraInfo = models.ExtraInfo;
|
|
26
27
|
const CreateUploadUrlResponse = models.CreateUploadUrlResponse;
|
|
27
28
|
const ApplyCardVerificationResponse = models.ApplyCardVerificationResponse;
|
|
28
29
|
const DetectReflectLivenessAndCompareRequest = models.DetectReflectLivenessAndCompareRequest;
|
|
29
30
|
const GetFaceIdTokenIntlRequest = models.GetFaceIdTokenIntlRequest;
|
|
30
31
|
const JapanIDCard = models.JapanIDCard;
|
|
31
|
-
const
|
|
32
|
+
const EditDetail = models.EditDetail;
|
|
32
33
|
const ApplyWebVerificationTokenResponse = models.ApplyWebVerificationTokenResponse;
|
|
33
34
|
const NormalHKIDCard = models.NormalHKIDCard;
|
|
34
35
|
const GetWebVerificationResultRequest = models.GetWebVerificationResultRequest;
|
|
35
36
|
const ThailandIDCard = models.ThailandIDCard;
|
|
36
37
|
const VerificationDetail = models.VerificationDetail;
|
|
37
38
|
const GetWebVerificationResultIntlResponse = models.GetWebVerificationResultIntlResponse;
|
|
38
|
-
const
|
|
39
|
+
const FileInfo = models.FileInfo;
|
|
39
40
|
const HKIDCard = models.HKIDCard;
|
|
40
41
|
const SingaporeIDCard = models.SingaporeIDCard;
|
|
41
42
|
const IndonesiaDrivingLicense = models.IndonesiaDrivingLicense;
|
|
@@ -44,19 +45,23 @@ const NormalCardInfo = models.NormalCardInfo;
|
|
|
44
45
|
const GetFaceIdResultIntlResponse = models.GetFaceIdResultIntlResponse;
|
|
45
46
|
const ApplySdkVerificationTokenRequest = models.ApplySdkVerificationTokenRequest;
|
|
46
47
|
const GenerateReflectSequenceRequest = models.GenerateReflectSequenceRequest;
|
|
47
|
-
const
|
|
48
|
+
const DetectAIFakeFacesResponse = models.DetectAIFakeFacesResponse;
|
|
48
49
|
const VideoLivenessCompareResponse = models.VideoLivenessCompareResponse;
|
|
49
50
|
const PhilippinesSSSID = models.PhilippinesSSSID;
|
|
50
51
|
const CardVerifyResult = models.CardVerifyResult;
|
|
52
|
+
const TaiWanIDCard = models.TaiWanIDCard;
|
|
53
|
+
const VideoLivenessCompareRequest = models.VideoLivenessCompareRequest;
|
|
51
54
|
const ApplyWebVerificationTokenRequest = models.ApplyWebVerificationTokenRequest;
|
|
52
|
-
const
|
|
55
|
+
const ApplyWebVerificationBizTokenIntlResponse = models.ApplyWebVerificationBizTokenIntlResponse;
|
|
56
|
+
const RetrievalLivenessExtraInfo = models.RetrievalLivenessExtraInfo;
|
|
53
57
|
const ApplyLivenessTokenResponse = models.ApplyLivenessTokenResponse;
|
|
54
58
|
const GetCardVerificationResultRequest = models.GetCardVerificationResultRequest;
|
|
55
59
|
const CardInfo = models.CardInfo;
|
|
56
60
|
const PhilippinesVoteID = models.PhilippinesVoteID;
|
|
57
61
|
const WebVerificationConfigIntl = models.WebVerificationConfigIntl;
|
|
58
62
|
const MainlandIDCard = models.MainlandIDCard;
|
|
59
|
-
const
|
|
63
|
+
const Encryption = models.Encryption;
|
|
64
|
+
const Address = models.Address;
|
|
60
65
|
const NormalMLIDCard = models.NormalMLIDCard;
|
|
61
66
|
const NormalIndonesiaIDCard = models.NormalIndonesiaIDCard;
|
|
62
67
|
const CompareFaceLivenessResponse = models.CompareFaceLivenessResponse;
|
|
@@ -65,7 +70,7 @@ const ApplySdkVerificationTokenResponse = models.ApplySdkVerificationTokenRespon
|
|
|
65
70
|
const CreateUploadUrlRequest = models.CreateUploadUrlRequest;
|
|
66
71
|
const ApplyWebVerificationBizTokenIntlRequest = models.ApplyWebVerificationBizTokenIntlRequest;
|
|
67
72
|
const GetWebVerificationResultResponse = models.GetWebVerificationResultResponse;
|
|
68
|
-
const
|
|
73
|
+
const CompareFaceLivenessRequest = models.CompareFaceLivenessRequest;
|
|
69
74
|
const ApplyLivenessTokenRequest = models.ApplyLivenessTokenRequest;
|
|
70
75
|
const NormalThailandIDCard = models.NormalThailandIDCard;
|
|
71
76
|
const PhilippinesDrivingLicense = models.PhilippinesDrivingLicense;
|
|
@@ -73,6 +78,7 @@ const GetCardVerificationResultResponse = models.GetCardVerificationResultRespon
|
|
|
73
78
|
const GenerateReflectSequenceResponse = models.GenerateReflectSequenceResponse;
|
|
74
79
|
const GetWebVerificationResultIntlRequest = models.GetWebVerificationResultIntlRequest;
|
|
75
80
|
const GeneralCard = models.GeneralCard;
|
|
81
|
+
const LivenessCompareResponse = models.LivenessCompareResponse;
|
|
76
82
|
const MacaoIDCard = models.MacaoIDCard;
|
|
77
83
|
const PhilippinesUMID = models.PhilippinesUMID;
|
|
78
84
|
const PhilippinesTinID = models.PhilippinesTinID;
|
|
@@ -276,6 +282,17 @@ The data will be stored in a COS bucket in the region specified by the parameter
|
|
|
276
282
|
this.request("ApplySdkVerificationToken", req, resp, cb);
|
|
277
283
|
}
|
|
278
284
|
|
|
285
|
+
/**
|
|
286
|
+
* Based on the multimodal AI large model algorithm, it provides anti-attack detection capabilities for facial images and videos. It can effectively identify highly simulated AIGC face-changing, high-definition remakes, batch black market attacks, watermarks and other attack traces, and enhance the anti-counterfeiting security capabilities of images and videos.
|
|
287
|
+
* @param {DetectAIFakeFacesRequest} req
|
|
288
|
+
* @param {function(string, DetectAIFakeFacesResponse):void} cb
|
|
289
|
+
* @public
|
|
290
|
+
*/
|
|
291
|
+
DetectAIFakeFaces(req, cb) {
|
|
292
|
+
let resp = new DetectAIFakeFacesResponse();
|
|
293
|
+
this.request("DetectAIFakeFaces", req, resp, cb);
|
|
294
|
+
}
|
|
295
|
+
|
|
279
296
|
/**
|
|
280
297
|
* This API is used to get the verification result with the corresponding token (SdkToken) after the liveness detection is completed. The token is valid for two hours after issuance and can be called multiple times.
|
|
281
298
|
* @param {GetLivenessResultRequest} req
|
|
@@ -341,39 +341,36 @@ class GetSdkVerificationResultRequest extends AbstractModel {
|
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
/**
|
|
344
|
-
*
|
|
344
|
+
* DetectAIFakeFaces request structure.
|
|
345
345
|
* @class
|
|
346
346
|
*/
|
|
347
|
-
class
|
|
347
|
+
class DetectAIFakeFacesRequest extends AbstractModel {
|
|
348
348
|
constructor(){
|
|
349
349
|
super();
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
|
-
*
|
|
353
|
-
Example: https://intl.faceid.qq.com/reflect/?token=81EEF678-28EE-4759-A82E-6CBBBE6BC442
|
|
352
|
+
* Enter the image or video with a face to be detected, in base64 encoding. Base64 value of the image: The overall image resolution is recommended to be 480x640, and the face size is 100X100 or larger; The image data size after Base64 encoding does not exceed 3M, and only supports jpg and png formats. Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications. Base64 value of the video: The size after Base64 encoding does not exceed 8M, and supports mp4, avi, and flv formats. Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications. The maximum supported video length is 20s, and the recommended length is 2 to 5s. The recommended video resolution is 480x640, and the frame rate is between 25fps and 30fps.
|
|
354
353
|
* @type {string || null}
|
|
355
354
|
*/
|
|
356
|
-
this.
|
|
355
|
+
this.FaceInput = null;
|
|
357
356
|
|
|
358
357
|
/**
|
|
359
|
-
* The
|
|
360
|
-
|
|
361
|
-
* @type {string || null}
|
|
358
|
+
* The type of input is 1- The input type is a picture 2- The input type is a video Others - Return error code InvalidParameter
|
|
359
|
+
* @type {number || null}
|
|
362
360
|
*/
|
|
363
|
-
this.
|
|
361
|
+
this.FaceInputType = null;
|
|
364
362
|
|
|
365
363
|
/**
|
|
366
|
-
*
|
|
367
|
-
|
|
368
|
-
* @type {string || null}
|
|
364
|
+
* Whether the request information needs to be fully encrypted; Supported encryption algorithms: AES-256-CBC, SM4-GCM; Users with encryption requirements can use this parameter, for details, please click the link on the left.
|
|
365
|
+
* @type {Encryption || null}
|
|
369
366
|
*/
|
|
370
|
-
this.
|
|
367
|
+
this.Encryption = null;
|
|
371
368
|
|
|
372
369
|
/**
|
|
373
|
-
*
|
|
370
|
+
* Encrypted ciphertext; The data format before encryption is as follows:{"FaceInput":"AAAAA","FaceInputType":1}
|
|
374
371
|
* @type {string || null}
|
|
375
372
|
*/
|
|
376
|
-
this.
|
|
373
|
+
this.EncryptedBody = null;
|
|
377
374
|
|
|
378
375
|
}
|
|
379
376
|
|
|
@@ -384,57 +381,60 @@ Example: https://intl.faceid.qq.com/reflect/?token=81EEF678-28EE-4759-A82E-6CBBB
|
|
|
384
381
|
if (!params) {
|
|
385
382
|
return;
|
|
386
383
|
}
|
|
387
|
-
this.
|
|
388
|
-
this.
|
|
389
|
-
|
|
390
|
-
|
|
384
|
+
this.FaceInput = 'FaceInput' in params ? params.FaceInput : null;
|
|
385
|
+
this.FaceInputType = 'FaceInputType' in params ? params.FaceInputType : null;
|
|
386
|
+
|
|
387
|
+
if (params.Encryption) {
|
|
388
|
+
let obj = new Encryption();
|
|
389
|
+
obj.deserialize(params.Encryption)
|
|
390
|
+
this.Encryption = obj;
|
|
391
|
+
}
|
|
392
|
+
this.EncryptedBody = 'EncryptedBody' in params ? params.EncryptedBody : null;
|
|
391
393
|
|
|
392
394
|
}
|
|
393
395
|
}
|
|
394
396
|
|
|
395
397
|
/**
|
|
396
|
-
*
|
|
398
|
+
*
|
|
397
399
|
* @class
|
|
398
400
|
*/
|
|
399
|
-
class
|
|
401
|
+
class AttackRiskDetail extends AbstractModel {
|
|
400
402
|
constructor(){
|
|
401
403
|
super();
|
|
402
404
|
|
|
403
405
|
/**
|
|
404
|
-
*
|
|
406
|
+
*
|
|
405
407
|
* @type {string || null}
|
|
406
408
|
*/
|
|
407
|
-
this.
|
|
409
|
+
this.Type = null;
|
|
408
410
|
|
|
409
|
-
|
|
410
|
-
* 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%).
|
|
411
|
-
* @type {number || null}
|
|
412
|
-
*/
|
|
413
|
-
this.Sim = null;
|
|
411
|
+
}
|
|
414
412
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
413
|
+
/**
|
|
414
|
+
* @private
|
|
415
|
+
*/
|
|
416
|
+
deserialize(params) {
|
|
417
|
+
if (!params) {
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
this.Type = 'Type' in params ? params.Type : null;
|
|
420
421
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
* @type {string || null}
|
|
424
|
-
*/
|
|
425
|
-
this.Description = null;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
426
424
|
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
* @class
|
|
428
|
+
*/
|
|
429
|
+
class ExtraInfo extends AbstractModel {
|
|
430
|
+
constructor(){
|
|
431
|
+
super();
|
|
432
432
|
|
|
433
433
|
/**
|
|
434
|
-
*
|
|
435
|
-
* @type {
|
|
434
|
+
*
|
|
435
|
+
* @type {Array.<RetrievalLivenessExtraInfo> || null}
|
|
436
436
|
*/
|
|
437
|
-
this.
|
|
437
|
+
this.RetrievalLivenessExtraInfo = null;
|
|
438
438
|
|
|
439
439
|
}
|
|
440
440
|
|
|
@@ -445,12 +445,15 @@ class LivenessCompareResponse extends AbstractModel {
|
|
|
445
445
|
if (!params) {
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
448
|
+
|
|
449
|
+
if (params.RetrievalLivenessExtraInfo) {
|
|
450
|
+
this.RetrievalLivenessExtraInfo = new Array();
|
|
451
|
+
for (let z in params.RetrievalLivenessExtraInfo) {
|
|
452
|
+
let obj = new RetrievalLivenessExtraInfo();
|
|
453
|
+
obj.deserialize(params.RetrievalLivenessExtraInfo[z]);
|
|
454
|
+
this.RetrievalLivenessExtraInfo.push(obj);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
454
457
|
|
|
455
458
|
}
|
|
456
459
|
}
|
|
@@ -729,55 +732,30 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
729
732
|
}
|
|
730
733
|
|
|
731
734
|
/**
|
|
732
|
-
*
|
|
735
|
+
*
|
|
733
736
|
* @class
|
|
734
737
|
*/
|
|
735
|
-
class
|
|
738
|
+
class EditDetail extends AbstractModel {
|
|
736
739
|
constructor(){
|
|
737
740
|
super();
|
|
738
741
|
|
|
739
742
|
/**
|
|
740
|
-
*
|
|
741
|
-
|
|
742
|
-
The image must be stored in a COS bucket in the region where the FaceID service resides to ensure a higher download speed and better stability. You can generate an image URL by using `CreateUploadUrl` or purchase the COS service.
|
|
743
|
-
* @type {string || null}
|
|
744
|
-
*/
|
|
745
|
-
this.ImageUrl = null;
|
|
746
|
-
|
|
747
|
-
/**
|
|
748
|
-
* The 32-bit MD5 checksum of the image for comparison
|
|
749
|
-
* @type {string || null}
|
|
750
|
-
*/
|
|
751
|
-
this.ImageMd5 = null;
|
|
752
|
-
|
|
753
|
-
/**
|
|
754
|
-
* The URL of the video for liveness detection. The downloaded video after Base64 encoding can be up to 8 MB and must be in MP4, AVI, or FLV. It takes no more than 4s to download the video.
|
|
755
|
-
|
|
756
|
-
The video must be stored in a COS bucket in the region where the FaceID service resides to ensure a higher download speed and better stability. You can generate a video URL by using `CreateUploadUrl` or purchase the COS service.
|
|
757
|
-
* @type {string || null}
|
|
758
|
-
*/
|
|
759
|
-
this.VideoUrl = null;
|
|
760
|
-
|
|
761
|
-
/**
|
|
762
|
-
* The 32-bit MD5 checksum of the video
|
|
743
|
+
* Modified Field Name
|
|
763
744
|
* @type {string || null}
|
|
764
745
|
*/
|
|
765
|
-
this.
|
|
746
|
+
this.FieldName = null;
|
|
766
747
|
|
|
767
748
|
/**
|
|
768
|
-
*
|
|
769
|
-
`LIP`: Numeric mode; `ACTION`: Motion mode; `SILENT`: silent mode. Select one of them.
|
|
749
|
+
* Value of the field before modification, the original OCR result
|
|
770
750
|
* @type {string || null}
|
|
771
751
|
*/
|
|
772
|
-
this.
|
|
752
|
+
this.OriginalFieldValue = null;
|
|
773
753
|
|
|
774
754
|
/**
|
|
775
|
-
*
|
|
776
|
-
ACTION parameter: Pass in a custom action sequence (`2,1` or `1,2`).
|
|
777
|
-
SILENT parameter: Null.
|
|
755
|
+
* Value of the field after modification,the user's manually entered result
|
|
778
756
|
* @type {string || null}
|
|
779
757
|
*/
|
|
780
|
-
this.
|
|
758
|
+
this.RevisedFieldValue = null;
|
|
781
759
|
|
|
782
760
|
}
|
|
783
761
|
|
|
@@ -788,12 +766,9 @@ SILENT parameter: Null.
|
|
|
788
766
|
if (!params) {
|
|
789
767
|
return;
|
|
790
768
|
}
|
|
791
|
-
this.
|
|
792
|
-
this.
|
|
793
|
-
this.
|
|
794
|
-
this.VideoMd5 = 'VideoMd5' in params ? params.VideoMd5 : null;
|
|
795
|
-
this.LivenessType = 'LivenessType' in params ? params.LivenessType : null;
|
|
796
|
-
this.ValidateData = 'ValidateData' in params ? params.ValidateData : null;
|
|
769
|
+
this.FieldName = 'FieldName' in params ? params.FieldName : null;
|
|
770
|
+
this.OriginalFieldValue = 'OriginalFieldValue' in params ? params.OriginalFieldValue : null;
|
|
771
|
+
this.RevisedFieldValue = 'RevisedFieldValue' in params ? params.RevisedFieldValue : null;
|
|
797
772
|
|
|
798
773
|
}
|
|
799
774
|
}
|
|
@@ -1244,54 +1219,30 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
1244
1219
|
}
|
|
1245
1220
|
|
|
1246
1221
|
/**
|
|
1247
|
-
*
|
|
1222
|
+
* The description of a file, including a download URL and the MD5 checksum and size of the file.
|
|
1248
1223
|
* @class
|
|
1249
1224
|
*/
|
|
1250
|
-
class
|
|
1225
|
+
class FileInfo extends AbstractModel {
|
|
1251
1226
|
constructor(){
|
|
1252
1227
|
super();
|
|
1253
1228
|
|
|
1254
1229
|
/**
|
|
1255
|
-
*
|
|
1256
|
-
The size of image data encoded by Base64 shall not exceed 3M, only jpg and png are supported.
|
|
1257
|
-
Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications.
|
|
1258
|
-
Example values: "/9j/4AAQSk... (total length:61944)KiiK//2Q=="
|
|
1259
|
-
* @type {string || null}
|
|
1260
|
-
*/
|
|
1261
|
-
this.ImageBase64 = null;
|
|
1262
|
-
|
|
1263
|
-
/**
|
|
1264
|
-
* Base64 value of videos used for face comparison.
|
|
1265
|
-
The size of videos data encoded by Base64 shall not exceed 8M, only mp4,avi,flv are supported.
|
|
1266
|
-
Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications.
|
|
1267
|
-
Example values: "/9j/4AAQSk... (total length:61944)KiiK//2Q=="
|
|
1230
|
+
* The URL for downloading the file
|
|
1268
1231
|
* @type {string || null}
|
|
1269
1232
|
*/
|
|
1270
|
-
this.
|
|
1233
|
+
this.Url = null;
|
|
1271
1234
|
|
|
1272
1235
|
/**
|
|
1273
|
-
* The
|
|
1274
|
-
`LIP`: Numeric mode; `ACTION`: Motion mode; `SILENT`: silent mode. Select one of them.
|
|
1275
|
-
Example value: "SILENT"
|
|
1236
|
+
* The 32-bit MD5 checksum of the file
|
|
1276
1237
|
* @type {string || null}
|
|
1277
1238
|
*/
|
|
1278
|
-
this.
|
|
1239
|
+
this.MD5 = null;
|
|
1279
1240
|
|
|
1280
1241
|
/**
|
|
1281
|
-
*
|
|
1282
|
-
|
|
1283
|
-
1 (open mouth)
|
|
1284
|
-
2 (blink)
|
|
1285
|
-
3 (nod)
|
|
1286
|
-
4 (shake head).
|
|
1287
|
-
Select one or two from the four actions.
|
|
1288
|
-
Example of passing single action parameter: "1".
|
|
1289
|
-
Example of passing multiple action parameters: "4,2".
|
|
1290
|
-
When the "LivenessType" parameter value is "SILENT", it shall be unspecified.
|
|
1291
|
-
Example value: ""
|
|
1292
|
-
* @type {string || null}
|
|
1242
|
+
* The file size
|
|
1243
|
+
* @type {number || null}
|
|
1293
1244
|
*/
|
|
1294
|
-
this.
|
|
1245
|
+
this.Size = null;
|
|
1295
1246
|
|
|
1296
1247
|
}
|
|
1297
1248
|
|
|
@@ -1302,10 +1253,9 @@ Example value: ""
|
|
|
1302
1253
|
if (!params) {
|
|
1303
1254
|
return;
|
|
1304
1255
|
}
|
|
1305
|
-
this.
|
|
1306
|
-
this.
|
|
1307
|
-
this.
|
|
1308
|
-
this.ValidateData = 'ValidateData' in params ? params.ValidateData : null;
|
|
1256
|
+
this.Url = 'Url' in params ? params.Url : null;
|
|
1257
|
+
this.MD5 = 'MD5' in params ? params.MD5 : null;
|
|
1258
|
+
this.Size = 'Size' in params ? params.Size : null;
|
|
1309
1259
|
|
|
1310
1260
|
}
|
|
1311
1261
|
}
|
|
@@ -2151,30 +2101,36 @@ class GenerateReflectSequenceRequest extends AbstractModel {
|
|
|
2151
2101
|
}
|
|
2152
2102
|
|
|
2153
2103
|
/**
|
|
2154
|
-
*
|
|
2104
|
+
* DetectAIFakeFaces response structure.
|
|
2155
2105
|
* @class
|
|
2156
2106
|
*/
|
|
2157
|
-
class
|
|
2107
|
+
class DetectAIFakeFacesResponse extends AbstractModel {
|
|
2158
2108
|
constructor(){
|
|
2159
2109
|
super();
|
|
2160
2110
|
|
|
2161
2111
|
/**
|
|
2162
|
-
*
|
|
2112
|
+
* Whether the detected image is an attack: Low: No attack risk Mid: Moderately suspected attack High: Highly suspected attack
|
|
2163
2113
|
* @type {string || null}
|
|
2164
2114
|
*/
|
|
2165
|
-
this.
|
|
2115
|
+
this.AttackRiskLevel = null;
|
|
2166
2116
|
|
|
2167
2117
|
/**
|
|
2168
|
-
*
|
|
2169
|
-
* @type {
|
|
2118
|
+
* A list of suspected attack traces detected. Note: When no attack traces are detected, an empty array is returned. This parameter is only used as a reference for result judgment. In actual applications, it is still recommended to use the result of AttackRiskLevel.
|
|
2119
|
+
* @type {Array.<AttackRiskDetail> || null}
|
|
2170
2120
|
*/
|
|
2171
|
-
this.
|
|
2121
|
+
this.AttackRiskDetailList = null;
|
|
2172
2122
|
|
|
2173
2123
|
/**
|
|
2174
|
-
*
|
|
2124
|
+
* Additional Information
|
|
2125
|
+
* @type {ExtraInfo || null}
|
|
2126
|
+
*/
|
|
2127
|
+
this.ExtraInfo = null;
|
|
2128
|
+
|
|
2129
|
+
/**
|
|
2130
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2175
2131
|
* @type {string || null}
|
|
2176
2132
|
*/
|
|
2177
|
-
this.
|
|
2133
|
+
this.RequestId = null;
|
|
2178
2134
|
|
|
2179
2135
|
}
|
|
2180
2136
|
|
|
@@ -2185,9 +2141,23 @@ class EditDetail extends AbstractModel {
|
|
|
2185
2141
|
if (!params) {
|
|
2186
2142
|
return;
|
|
2187
2143
|
}
|
|
2188
|
-
this.
|
|
2189
|
-
|
|
2190
|
-
|
|
2144
|
+
this.AttackRiskLevel = 'AttackRiskLevel' in params ? params.AttackRiskLevel : null;
|
|
2145
|
+
|
|
2146
|
+
if (params.AttackRiskDetailList) {
|
|
2147
|
+
this.AttackRiskDetailList = new Array();
|
|
2148
|
+
for (let z in params.AttackRiskDetailList) {
|
|
2149
|
+
let obj = new AttackRiskDetail();
|
|
2150
|
+
obj.deserialize(params.AttackRiskDetailList[z]);
|
|
2151
|
+
this.AttackRiskDetailList.push(obj);
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
if (params.ExtraInfo) {
|
|
2156
|
+
let obj = new ExtraInfo();
|
|
2157
|
+
obj.deserialize(params.ExtraInfo)
|
|
2158
|
+
this.ExtraInfo = obj;
|
|
2159
|
+
}
|
|
2160
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
2191
2161
|
|
|
2192
2162
|
}
|
|
2193
2163
|
}
|
|
@@ -2528,32 +2498,47 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
2528
2498
|
}
|
|
2529
2499
|
|
|
2530
2500
|
/**
|
|
2531
|
-
*
|
|
2501
|
+
* Taiwan ID card.
|
|
2532
2502
|
* @class
|
|
2533
2503
|
*/
|
|
2534
|
-
class
|
|
2504
|
+
class TaiWanIDCard extends AbstractModel {
|
|
2535
2505
|
constructor(){
|
|
2536
2506
|
super();
|
|
2537
2507
|
|
|
2538
2508
|
/**
|
|
2539
|
-
*
|
|
2509
|
+
* Full name
|
|
2510
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
2540
2511
|
* @type {string || null}
|
|
2541
2512
|
*/
|
|
2542
|
-
this.
|
|
2513
|
+
this.FullName = null;
|
|
2543
2514
|
|
|
2544
2515
|
/**
|
|
2545
|
-
*
|
|
2546
|
-
|
|
2547
|
-
2. Use an existing COS URL. For a private bucket, grant the download permission with a pre-signed URL. The corresponding COS bucket must be in the same region as the input parameter `Region`.
|
|
2516
|
+
* License number
|
|
2517
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
2548
2518
|
* @type {string || null}
|
|
2549
2519
|
*/
|
|
2550
|
-
this.
|
|
2520
|
+
this.LicenseNumber = null;
|
|
2551
2521
|
|
|
2552
2522
|
/**
|
|
2553
|
-
*
|
|
2523
|
+
* Gender
|
|
2524
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
2554
2525
|
* @type {string || null}
|
|
2555
2526
|
*/
|
|
2556
|
-
this.
|
|
2527
|
+
this.Sex = null;
|
|
2528
|
+
|
|
2529
|
+
/**
|
|
2530
|
+
* Issued country
|
|
2531
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
2532
|
+
* @type {string || null}
|
|
2533
|
+
*/
|
|
2534
|
+
this.IssuedCountry = null;
|
|
2535
|
+
|
|
2536
|
+
/**
|
|
2537
|
+
* Registration number
|
|
2538
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
2539
|
+
* @type {string || null}
|
|
2540
|
+
*/
|
|
2541
|
+
this.RegistrationNumber = null;
|
|
2557
2542
|
|
|
2558
2543
|
}
|
|
2559
2544
|
|
|
@@ -2564,80 +2549,163 @@ class ApplyWebVerificationTokenRequest extends AbstractModel {
|
|
|
2564
2549
|
if (!params) {
|
|
2565
2550
|
return;
|
|
2566
2551
|
}
|
|
2567
|
-
this.
|
|
2568
|
-
this.
|
|
2569
|
-
this.
|
|
2552
|
+
this.FullName = 'FullName' in params ? params.FullName : null;
|
|
2553
|
+
this.LicenseNumber = 'LicenseNumber' in params ? params.LicenseNumber : null;
|
|
2554
|
+
this.Sex = 'Sex' in params ? params.Sex : null;
|
|
2555
|
+
this.IssuedCountry = 'IssuedCountry' in params ? params.IssuedCountry : null;
|
|
2556
|
+
this.RegistrationNumber = 'RegistrationNumber' in params ? params.RegistrationNumber : null;
|
|
2570
2557
|
|
|
2571
2558
|
}
|
|
2572
2559
|
}
|
|
2573
2560
|
|
|
2574
2561
|
/**
|
|
2575
|
-
*
|
|
2562
|
+
* VideoLivenessCompare request structure.
|
|
2576
2563
|
* @class
|
|
2577
2564
|
*/
|
|
2578
|
-
class
|
|
2565
|
+
class VideoLivenessCompareRequest extends AbstractModel {
|
|
2579
2566
|
constructor(){
|
|
2580
2567
|
super();
|
|
2581
2568
|
|
|
2582
2569
|
/**
|
|
2583
|
-
*
|
|
2570
|
+
* The URL of the photo for face comparison. The downloaded image after Base64 encoding can be up to 3 MB and must be in JPG or PNG.
|
|
2571
|
+
|
|
2572
|
+
The image must be stored in a COS bucket in the region where the FaceID service resides to ensure a higher download speed and better stability. You can generate an image URL by using `CreateUploadUrl` or purchase the COS service.
|
|
2584
2573
|
* @type {string || null}
|
|
2585
2574
|
*/
|
|
2586
|
-
this.
|
|
2575
|
+
this.ImageUrl = null;
|
|
2587
2576
|
|
|
2588
2577
|
/**
|
|
2589
|
-
*
|
|
2578
|
+
* The 32-bit MD5 checksum of the image for comparison
|
|
2590
2579
|
* @type {string || null}
|
|
2591
2580
|
*/
|
|
2592
|
-
this.
|
|
2581
|
+
this.ImageMd5 = null;
|
|
2593
2582
|
|
|
2594
2583
|
/**
|
|
2595
|
-
*
|
|
2584
|
+
* The URL of the video for liveness detection. The downloaded video after Base64 encoding can be up to 8 MB and must be in MP4, AVI, or FLV. It takes no more than 4s to download the video.
|
|
2585
|
+
|
|
2586
|
+
The video must be stored in a COS bucket in the region where the FaceID service resides to ensure a higher download speed and better stability. You can generate a video URL by using `CreateUploadUrl` or purchase the COS service.
|
|
2596
2587
|
* @type {string || null}
|
|
2597
2588
|
*/
|
|
2598
|
-
this.
|
|
2589
|
+
this.VideoUrl = null;
|
|
2599
2590
|
|
|
2600
2591
|
/**
|
|
2601
|
-
*
|
|
2592
|
+
* The 32-bit MD5 checksum of the video
|
|
2602
2593
|
* @type {string || null}
|
|
2603
2594
|
*/
|
|
2604
|
-
this.
|
|
2595
|
+
this.VideoMd5 = null;
|
|
2605
2596
|
|
|
2606
2597
|
/**
|
|
2607
|
-
*
|
|
2598
|
+
* The liveness detection type. Valid values: `LIP`, `ACTION`, and `SILENT`.
|
|
2599
|
+
`LIP`: Numeric mode; `ACTION`: Motion mode; `SILENT`: silent mode. Select one of them.
|
|
2608
2600
|
* @type {string || null}
|
|
2609
2601
|
*/
|
|
2610
|
-
this.
|
|
2602
|
+
this.LivenessType = null;
|
|
2611
2603
|
|
|
2612
2604
|
/**
|
|
2613
|
-
*
|
|
2605
|
+
* LIP parameter: Pass in a custom 4-digit verification code.
|
|
2606
|
+
ACTION parameter: Pass in a custom action sequence (`2,1` or `1,2`).
|
|
2607
|
+
SILENT parameter: Null.
|
|
2614
2608
|
* @type {string || null}
|
|
2615
2609
|
*/
|
|
2616
|
-
this.
|
|
2610
|
+
this.ValidateData = null;
|
|
2611
|
+
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
/**
|
|
2615
|
+
* @private
|
|
2616
|
+
*/
|
|
2617
|
+
deserialize(params) {
|
|
2618
|
+
if (!params) {
|
|
2619
|
+
return;
|
|
2620
|
+
}
|
|
2621
|
+
this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
|
|
2622
|
+
this.ImageMd5 = 'ImageMd5' in params ? params.ImageMd5 : null;
|
|
2623
|
+
this.VideoUrl = 'VideoUrl' in params ? params.VideoUrl : null;
|
|
2624
|
+
this.VideoMd5 = 'VideoMd5' in params ? params.VideoMd5 : null;
|
|
2625
|
+
this.LivenessType = 'LivenessType' in params ? params.LivenessType : null;
|
|
2626
|
+
this.ValidateData = 'ValidateData' in params ? params.ValidateData : null;
|
|
2627
|
+
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
/**
|
|
2632
|
+
* ApplyWebVerificationToken request structure.
|
|
2633
|
+
* @class
|
|
2634
|
+
*/
|
|
2635
|
+
class ApplyWebVerificationTokenRequest extends AbstractModel {
|
|
2636
|
+
constructor(){
|
|
2637
|
+
super();
|
|
2617
2638
|
|
|
2618
2639
|
/**
|
|
2619
|
-
* The
|
|
2640
|
+
* The web redirect URL after the verification is completed.
|
|
2620
2641
|
* @type {string || null}
|
|
2621
2642
|
*/
|
|
2622
|
-
this.
|
|
2643
|
+
this.RedirectUrl = null;
|
|
2623
2644
|
|
|
2624
2645
|
/**
|
|
2625
|
-
* The
|
|
2646
|
+
* The COS URL of the image for face comparison, which can be obtained with one of the following methods:
|
|
2647
|
+
1. Call the `CreateUploadUrl` API to generate a URL and call it again after the image is successfully uploaded.
|
|
2648
|
+
2. Use an existing COS URL. For a private bucket, grant the download permission with a pre-signed URL. The corresponding COS bucket must be in the same region as the input parameter `Region`.
|
|
2626
2649
|
* @type {string || null}
|
|
2627
2650
|
*/
|
|
2628
|
-
this.
|
|
2651
|
+
this.CompareImageUrl = null;
|
|
2629
2652
|
|
|
2630
2653
|
/**
|
|
2631
|
-
* The
|
|
2654
|
+
* The MD5 hash values of the image for face comparison (CompareImageUrl).
|
|
2632
2655
|
* @type {string || null}
|
|
2633
2656
|
*/
|
|
2634
|
-
this.
|
|
2657
|
+
this.CompareImageMd5 = null;
|
|
2658
|
+
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
/**
|
|
2662
|
+
* @private
|
|
2663
|
+
*/
|
|
2664
|
+
deserialize(params) {
|
|
2665
|
+
if (!params) {
|
|
2666
|
+
return;
|
|
2667
|
+
}
|
|
2668
|
+
this.RedirectUrl = 'RedirectUrl' in params ? params.RedirectUrl : null;
|
|
2669
|
+
this.CompareImageUrl = 'CompareImageUrl' in params ? params.CompareImageUrl : null;
|
|
2670
|
+
this.CompareImageMd5 = 'CompareImageMd5' in params ? params.CompareImageMd5 : null;
|
|
2671
|
+
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
/**
|
|
2676
|
+
* ApplyWebVerificationBizTokenIntl response structure.
|
|
2677
|
+
* @class
|
|
2678
|
+
*/
|
|
2679
|
+
class ApplyWebVerificationBizTokenIntlResponse extends AbstractModel {
|
|
2680
|
+
constructor(){
|
|
2681
|
+
super();
|
|
2635
2682
|
|
|
2636
2683
|
/**
|
|
2637
|
-
* The
|
|
2684
|
+
* 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.
|
|
2685
|
+
Example: https://intl.faceid.qq.com/reflect/?token=81EEF678-28EE-4759-A82E-6CBBBE6BC442
|
|
2638
2686
|
* @type {string || null}
|
|
2639
2687
|
*/
|
|
2640
|
-
this.
|
|
2688
|
+
this.VerificationUrl = null;
|
|
2689
|
+
|
|
2690
|
+
/**
|
|
2691
|
+
* The token for the web-based verification, which is generated using the ApplyWebVerificationBizTokenIntl API.
|
|
2692
|
+
Example: 81EEF678-28EE-4759-A82E-6CBBBE6BC442
|
|
2693
|
+
* @type {string || null}
|
|
2694
|
+
*/
|
|
2695
|
+
this.BizToken = null;
|
|
2696
|
+
|
|
2697
|
+
/**
|
|
2698
|
+
* The verification URL to be opened with a browser to start the verification process.
|
|
2699
|
+
Example: https://intl.faceid.qq.com/reflect/?token=81EEF678-28EE-4759-A82E-6CBBBE6BC442
|
|
2700
|
+
* @type {string || null}
|
|
2701
|
+
*/
|
|
2702
|
+
this.VerificationURL = null;
|
|
2703
|
+
|
|
2704
|
+
/**
|
|
2705
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2706
|
+
* @type {string || null}
|
|
2707
|
+
*/
|
|
2708
|
+
this.RequestId = null;
|
|
2641
2709
|
|
|
2642
2710
|
}
|
|
2643
2711
|
|
|
@@ -2648,16 +2716,52 @@ class Address extends AbstractModel {
|
|
|
2648
2716
|
if (!params) {
|
|
2649
2717
|
return;
|
|
2650
2718
|
}
|
|
2651
|
-
this.
|
|
2652
|
-
this.
|
|
2653
|
-
this.
|
|
2654
|
-
this.
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2719
|
+
this.VerificationUrl = 'VerificationUrl' in params ? params.VerificationUrl : null;
|
|
2720
|
+
this.BizToken = 'BizToken' in params ? params.BizToken : null;
|
|
2721
|
+
this.VerificationURL = 'VerificationURL' in params ? params.VerificationURL : null;
|
|
2722
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
2723
|
+
|
|
2724
|
+
}
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2727
|
+
/**
|
|
2728
|
+
*
|
|
2729
|
+
* @class
|
|
2730
|
+
*/
|
|
2731
|
+
class RetrievalLivenessExtraInfo extends AbstractModel {
|
|
2732
|
+
constructor(){
|
|
2733
|
+
super();
|
|
2734
|
+
|
|
2735
|
+
/**
|
|
2736
|
+
*
|
|
2737
|
+
* @type {string || null}
|
|
2738
|
+
*/
|
|
2739
|
+
this.HitGroup = null;
|
|
2740
|
+
|
|
2741
|
+
/**
|
|
2742
|
+
*
|
|
2743
|
+
* @type {number || null}
|
|
2744
|
+
*/
|
|
2745
|
+
this.SimilarityScore = null;
|
|
2746
|
+
|
|
2747
|
+
/**
|
|
2748
|
+
*
|
|
2749
|
+
* @type {string || null}
|
|
2750
|
+
*/
|
|
2751
|
+
this.HitTemplate = null;
|
|
2752
|
+
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
/**
|
|
2756
|
+
* @private
|
|
2757
|
+
*/
|
|
2758
|
+
deserialize(params) {
|
|
2759
|
+
if (!params) {
|
|
2760
|
+
return;
|
|
2761
|
+
}
|
|
2762
|
+
this.HitGroup = 'HitGroup' in params ? params.HitGroup : null;
|
|
2763
|
+
this.SimilarityScore = 'SimilarityScore' in params ? params.SimilarityScore : null;
|
|
2764
|
+
this.HitTemplate = 'HitTemplate' in params ? params.HitTemplate : null;
|
|
2661
2765
|
|
|
2662
2766
|
}
|
|
2663
2767
|
}
|
|
@@ -3244,47 +3348,128 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3244
3348
|
}
|
|
3245
3349
|
|
|
3246
3350
|
/**
|
|
3247
|
-
*
|
|
3351
|
+
*
|
|
3248
3352
|
* @class
|
|
3249
3353
|
*/
|
|
3250
|
-
class
|
|
3354
|
+
class Encryption extends AbstractModel {
|
|
3251
3355
|
constructor(){
|
|
3252
3356
|
super();
|
|
3253
3357
|
|
|
3254
3358
|
/**
|
|
3255
|
-
*
|
|
3256
|
-
|
|
3359
|
+
*
|
|
3360
|
+
* @type {Array.<string> || null}
|
|
3361
|
+
*/
|
|
3362
|
+
this.EncryptList = null;
|
|
3363
|
+
|
|
3364
|
+
/**
|
|
3365
|
+
*
|
|
3257
3366
|
* @type {string || null}
|
|
3258
3367
|
*/
|
|
3259
|
-
this.
|
|
3368
|
+
this.CiphertextBlob = null;
|
|
3260
3369
|
|
|
3261
3370
|
/**
|
|
3262
|
-
*
|
|
3263
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3371
|
+
*
|
|
3264
3372
|
* @type {string || null}
|
|
3265
3373
|
*/
|
|
3266
|
-
this.
|
|
3374
|
+
this.Iv = null;
|
|
3267
3375
|
|
|
3268
3376
|
/**
|
|
3269
|
-
*
|
|
3270
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3377
|
+
*
|
|
3271
3378
|
* @type {string || null}
|
|
3272
3379
|
*/
|
|
3273
|
-
this.
|
|
3380
|
+
this.Algorithm = null;
|
|
3274
3381
|
|
|
3275
3382
|
/**
|
|
3276
|
-
*
|
|
3277
|
-
|
|
3383
|
+
*
|
|
3384
|
+
* @type {Array.<string> || null}
|
|
3385
|
+
*/
|
|
3386
|
+
this.TagList = null;
|
|
3387
|
+
|
|
3388
|
+
}
|
|
3389
|
+
|
|
3390
|
+
/**
|
|
3391
|
+
* @private
|
|
3392
|
+
*/
|
|
3393
|
+
deserialize(params) {
|
|
3394
|
+
if (!params) {
|
|
3395
|
+
return;
|
|
3396
|
+
}
|
|
3397
|
+
this.EncryptList = 'EncryptList' in params ? params.EncryptList : null;
|
|
3398
|
+
this.CiphertextBlob = 'CiphertextBlob' in params ? params.CiphertextBlob : null;
|
|
3399
|
+
this.Iv = 'Iv' in params ? params.Iv : null;
|
|
3400
|
+
this.Algorithm = 'Algorithm' in params ? params.Algorithm : null;
|
|
3401
|
+
this.TagList = 'TagList' in params ? params.TagList : null;
|
|
3402
|
+
|
|
3403
|
+
}
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
/**
|
|
3407
|
+
*
|
|
3408
|
+
* @class
|
|
3409
|
+
*/
|
|
3410
|
+
class Address extends AbstractModel {
|
|
3411
|
+
constructor(){
|
|
3412
|
+
super();
|
|
3413
|
+
|
|
3414
|
+
/**
|
|
3415
|
+
* Nationality.
|
|
3278
3416
|
* @type {string || null}
|
|
3279
3417
|
*/
|
|
3280
|
-
this.
|
|
3418
|
+
this.Country = null;
|
|
3281
3419
|
|
|
3282
3420
|
/**
|
|
3283
|
-
*
|
|
3284
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3421
|
+
* Post code.
|
|
3285
3422
|
* @type {string || null}
|
|
3286
3423
|
*/
|
|
3287
|
-
this.
|
|
3424
|
+
this.PostalCode = null;
|
|
3425
|
+
|
|
3426
|
+
/**
|
|
3427
|
+
* Subregion.
|
|
3428
|
+
* @type {string || null}
|
|
3429
|
+
*/
|
|
3430
|
+
this.Subdivision = null;
|
|
3431
|
+
|
|
3432
|
+
/**
|
|
3433
|
+
* City.
|
|
3434
|
+
* @type {string || null}
|
|
3435
|
+
*/
|
|
3436
|
+
this.City = null;
|
|
3437
|
+
|
|
3438
|
+
/**
|
|
3439
|
+
* Complete address.
|
|
3440
|
+
* @type {string || null}
|
|
3441
|
+
*/
|
|
3442
|
+
this.FormattedAddress = null;
|
|
3443
|
+
|
|
3444
|
+
/**
|
|
3445
|
+
* The first line of address.
|
|
3446
|
+
* @type {string || null}
|
|
3447
|
+
*/
|
|
3448
|
+
this.LineOne = null;
|
|
3449
|
+
|
|
3450
|
+
/**
|
|
3451
|
+
* The second line of address.
|
|
3452
|
+
* @type {string || null}
|
|
3453
|
+
*/
|
|
3454
|
+
this.LineTwo = null;
|
|
3455
|
+
|
|
3456
|
+
/**
|
|
3457
|
+
* The third line of address.
|
|
3458
|
+
* @type {string || null}
|
|
3459
|
+
*/
|
|
3460
|
+
this.LineThree = null;
|
|
3461
|
+
|
|
3462
|
+
/**
|
|
3463
|
+
* The fourth line of address.
|
|
3464
|
+
* @type {string || null}
|
|
3465
|
+
*/
|
|
3466
|
+
this.LineFour = null;
|
|
3467
|
+
|
|
3468
|
+
/**
|
|
3469
|
+
* The fifth line of address.
|
|
3470
|
+
* @type {string || null}
|
|
3471
|
+
*/
|
|
3472
|
+
this.LineFive = null;
|
|
3288
3473
|
|
|
3289
3474
|
}
|
|
3290
3475
|
|
|
@@ -3295,11 +3480,16 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3295
3480
|
if (!params) {
|
|
3296
3481
|
return;
|
|
3297
3482
|
}
|
|
3298
|
-
this.
|
|
3299
|
-
this.
|
|
3300
|
-
this.
|
|
3301
|
-
this.
|
|
3302
|
-
this.
|
|
3483
|
+
this.Country = 'Country' in params ? params.Country : null;
|
|
3484
|
+
this.PostalCode = 'PostalCode' in params ? params.PostalCode : null;
|
|
3485
|
+
this.Subdivision = 'Subdivision' in params ? params.Subdivision : null;
|
|
3486
|
+
this.City = 'City' in params ? params.City : null;
|
|
3487
|
+
this.FormattedAddress = 'FormattedAddress' in params ? params.FormattedAddress : null;
|
|
3488
|
+
this.LineOne = 'LineOne' in params ? params.LineOne : null;
|
|
3489
|
+
this.LineTwo = 'LineTwo' in params ? params.LineTwo : null;
|
|
3490
|
+
this.LineThree = 'LineThree' in params ? params.LineThree : null;
|
|
3491
|
+
this.LineFour = 'LineFour' in params ? params.LineFour : null;
|
|
3492
|
+
this.LineFive = 'LineFive' in params ? params.LineFive : null;
|
|
3303
3493
|
|
|
3304
3494
|
}
|
|
3305
3495
|
}
|
|
@@ -3970,30 +4160,54 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3970
4160
|
}
|
|
3971
4161
|
|
|
3972
4162
|
/**
|
|
3973
|
-
*
|
|
4163
|
+
* CompareFaceLiveness request structure.
|
|
3974
4164
|
* @class
|
|
3975
4165
|
*/
|
|
3976
|
-
class
|
|
4166
|
+
class CompareFaceLivenessRequest extends AbstractModel {
|
|
3977
4167
|
constructor(){
|
|
3978
4168
|
super();
|
|
3979
4169
|
|
|
3980
4170
|
/**
|
|
3981
|
-
*
|
|
4171
|
+
* Base64 value of photos used for face comparison.
|
|
4172
|
+
The size of image data encoded by Base64 shall not exceed 3M, only jpg and png are supported.
|
|
4173
|
+
Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications.
|
|
4174
|
+
Example values: "/9j/4AAQSk... (total length:61944)KiiK//2Q=="
|
|
3982
4175
|
* @type {string || null}
|
|
3983
4176
|
*/
|
|
3984
|
-
this.
|
|
4177
|
+
this.ImageBase64 = null;
|
|
3985
4178
|
|
|
3986
4179
|
/**
|
|
3987
|
-
*
|
|
4180
|
+
* Base64 value of videos used for face comparison.
|
|
4181
|
+
The size of videos data encoded by Base64 shall not exceed 8M, only mp4,avi,flv are supported.
|
|
4182
|
+
Please use standard Base64 encoding (use = for padding). Refer to RFC4648 for encoding specifications.
|
|
4183
|
+
Example values: "/9j/4AAQSk... (total length:61944)KiiK//2Q=="
|
|
3988
4184
|
* @type {string || null}
|
|
3989
4185
|
*/
|
|
3990
|
-
this.
|
|
4186
|
+
this.VideoBase64 = null;
|
|
3991
4187
|
|
|
3992
4188
|
/**
|
|
3993
|
-
* The
|
|
3994
|
-
|
|
4189
|
+
* The liveness detection type. Valid values: `LIP`, `ACTION`, and `SILENT`.
|
|
4190
|
+
`LIP`: Numeric mode; `ACTION`: Motion mode; `SILENT`: silent mode. Select one of them.
|
|
4191
|
+
Example value: "SILENT"
|
|
4192
|
+
* @type {string || null}
|
|
3995
4193
|
*/
|
|
3996
|
-
this.
|
|
4194
|
+
this.LivenessType = null;
|
|
4195
|
+
|
|
4196
|
+
/**
|
|
4197
|
+
* When the "LivenessType" parameter is "ACTION", it must be specified.
|
|
4198
|
+
It is used to control the action sequence. Action types:
|
|
4199
|
+
1 (open mouth)
|
|
4200
|
+
2 (blink)
|
|
4201
|
+
3 (nod)
|
|
4202
|
+
4 (shake head).
|
|
4203
|
+
Select one or two from the four actions.
|
|
4204
|
+
Example of passing single action parameter: "1".
|
|
4205
|
+
Example of passing multiple action parameters: "4,2".
|
|
4206
|
+
When the "LivenessType" parameter value is "SILENT", it shall be unspecified.
|
|
4207
|
+
Example value: ""
|
|
4208
|
+
* @type {string || null}
|
|
4209
|
+
*/
|
|
4210
|
+
this.ValidateData = null;
|
|
3997
4211
|
|
|
3998
4212
|
}
|
|
3999
4213
|
|
|
@@ -4004,9 +4218,10 @@ class FileInfo extends AbstractModel {
|
|
|
4004
4218
|
if (!params) {
|
|
4005
4219
|
return;
|
|
4006
4220
|
}
|
|
4007
|
-
this.
|
|
4008
|
-
this.
|
|
4009
|
-
this.
|
|
4221
|
+
this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
|
|
4222
|
+
this.VideoBase64 = 'VideoBase64' in params ? params.VideoBase64 : null;
|
|
4223
|
+
this.LivenessType = 'LivenessType' in params ? params.LivenessType : null;
|
|
4224
|
+
this.ValidateData = 'ValidateData' in params ? params.ValidateData : null;
|
|
4010
4225
|
|
|
4011
4226
|
}
|
|
4012
4227
|
}
|
|
@@ -4628,6 +4843,69 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
4628
4843
|
}
|
|
4629
4844
|
}
|
|
4630
4845
|
|
|
4846
|
+
/**
|
|
4847
|
+
* LivenessCompare response structure.
|
|
4848
|
+
* @class
|
|
4849
|
+
*/
|
|
4850
|
+
class LivenessCompareResponse extends AbstractModel {
|
|
4851
|
+
constructor(){
|
|
4852
|
+
super();
|
|
4853
|
+
|
|
4854
|
+
/**
|
|
4855
|
+
* The best screenshot of the video after successful verification. The photo is Base64-encoded and in JPG format.
|
|
4856
|
+
* @type {string || null}
|
|
4857
|
+
*/
|
|
4858
|
+
this.BestFrameBase64 = null;
|
|
4859
|
+
|
|
4860
|
+
/**
|
|
4861
|
+
* 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%).
|
|
4862
|
+
* @type {number || null}
|
|
4863
|
+
*/
|
|
4864
|
+
this.Sim = null;
|
|
4865
|
+
|
|
4866
|
+
/**
|
|
4867
|
+
* Service error code. `Success` will be returned for success. For error information, please see the `FailedOperation` section in the error code list below.
|
|
4868
|
+
* @type {string || null}
|
|
4869
|
+
*/
|
|
4870
|
+
this.Result = null;
|
|
4871
|
+
|
|
4872
|
+
/**
|
|
4873
|
+
* Service result description.
|
|
4874
|
+
* @type {string || null}
|
|
4875
|
+
*/
|
|
4876
|
+
this.Description = null;
|
|
4877
|
+
|
|
4878
|
+
/**
|
|
4879
|
+
*
|
|
4880
|
+
* @type {Array.<string> || null}
|
|
4881
|
+
*/
|
|
4882
|
+
this.BestFrameList = null;
|
|
4883
|
+
|
|
4884
|
+
/**
|
|
4885
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
4886
|
+
* @type {string || null}
|
|
4887
|
+
*/
|
|
4888
|
+
this.RequestId = null;
|
|
4889
|
+
|
|
4890
|
+
}
|
|
4891
|
+
|
|
4892
|
+
/**
|
|
4893
|
+
* @private
|
|
4894
|
+
*/
|
|
4895
|
+
deserialize(params) {
|
|
4896
|
+
if (!params) {
|
|
4897
|
+
return;
|
|
4898
|
+
}
|
|
4899
|
+
this.BestFrameBase64 = 'BestFrameBase64' in params ? params.BestFrameBase64 : null;
|
|
4900
|
+
this.Sim = 'Sim' in params ? params.Sim : null;
|
|
4901
|
+
this.Result = 'Result' in params ? params.Result : null;
|
|
4902
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
4903
|
+
this.BestFrameList = 'BestFrameList' in params ? params.BestFrameList : null;
|
|
4904
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
4905
|
+
|
|
4906
|
+
}
|
|
4907
|
+
}
|
|
4908
|
+
|
|
4631
4909
|
/**
|
|
4632
4910
|
* Macao ID Card
|
|
4633
4911
|
* @class
|
|
@@ -5461,21 +5739,22 @@ module.exports = {
|
|
|
5461
5739
|
InternationalIDPassport: InternationalIDPassport,
|
|
5462
5740
|
GetSdkVerificationResultResponse: GetSdkVerificationResultResponse,
|
|
5463
5741
|
GetSdkVerificationResultRequest: GetSdkVerificationResultRequest,
|
|
5464
|
-
|
|
5465
|
-
|
|
5742
|
+
DetectAIFakeFacesRequest: DetectAIFakeFacesRequest,
|
|
5743
|
+
AttackRiskDetail: AttackRiskDetail,
|
|
5744
|
+
ExtraInfo: ExtraInfo,
|
|
5466
5745
|
CreateUploadUrlResponse: CreateUploadUrlResponse,
|
|
5467
5746
|
ApplyCardVerificationResponse: ApplyCardVerificationResponse,
|
|
5468
5747
|
DetectReflectLivenessAndCompareRequest: DetectReflectLivenessAndCompareRequest,
|
|
5469
5748
|
GetFaceIdTokenIntlRequest: GetFaceIdTokenIntlRequest,
|
|
5470
5749
|
JapanIDCard: JapanIDCard,
|
|
5471
|
-
|
|
5750
|
+
EditDetail: EditDetail,
|
|
5472
5751
|
ApplyWebVerificationTokenResponse: ApplyWebVerificationTokenResponse,
|
|
5473
5752
|
NormalHKIDCard: NormalHKIDCard,
|
|
5474
5753
|
GetWebVerificationResultRequest: GetWebVerificationResultRequest,
|
|
5475
5754
|
ThailandIDCard: ThailandIDCard,
|
|
5476
5755
|
VerificationDetail: VerificationDetail,
|
|
5477
5756
|
GetWebVerificationResultIntlResponse: GetWebVerificationResultIntlResponse,
|
|
5478
|
-
|
|
5757
|
+
FileInfo: FileInfo,
|
|
5479
5758
|
HKIDCard: HKIDCard,
|
|
5480
5759
|
SingaporeIDCard: SingaporeIDCard,
|
|
5481
5760
|
IndonesiaDrivingLicense: IndonesiaDrivingLicense,
|
|
@@ -5484,19 +5763,23 @@ module.exports = {
|
|
|
5484
5763
|
GetFaceIdResultIntlResponse: GetFaceIdResultIntlResponse,
|
|
5485
5764
|
ApplySdkVerificationTokenRequest: ApplySdkVerificationTokenRequest,
|
|
5486
5765
|
GenerateReflectSequenceRequest: GenerateReflectSequenceRequest,
|
|
5487
|
-
|
|
5766
|
+
DetectAIFakeFacesResponse: DetectAIFakeFacesResponse,
|
|
5488
5767
|
VideoLivenessCompareResponse: VideoLivenessCompareResponse,
|
|
5489
5768
|
PhilippinesSSSID: PhilippinesSSSID,
|
|
5490
5769
|
CardVerifyResult: CardVerifyResult,
|
|
5770
|
+
TaiWanIDCard: TaiWanIDCard,
|
|
5771
|
+
VideoLivenessCompareRequest: VideoLivenessCompareRequest,
|
|
5491
5772
|
ApplyWebVerificationTokenRequest: ApplyWebVerificationTokenRequest,
|
|
5492
|
-
|
|
5773
|
+
ApplyWebVerificationBizTokenIntlResponse: ApplyWebVerificationBizTokenIntlResponse,
|
|
5774
|
+
RetrievalLivenessExtraInfo: RetrievalLivenessExtraInfo,
|
|
5493
5775
|
ApplyLivenessTokenResponse: ApplyLivenessTokenResponse,
|
|
5494
5776
|
GetCardVerificationResultRequest: GetCardVerificationResultRequest,
|
|
5495
5777
|
CardInfo: CardInfo,
|
|
5496
5778
|
PhilippinesVoteID: PhilippinesVoteID,
|
|
5497
5779
|
WebVerificationConfigIntl: WebVerificationConfigIntl,
|
|
5498
5780
|
MainlandIDCard: MainlandIDCard,
|
|
5499
|
-
|
|
5781
|
+
Encryption: Encryption,
|
|
5782
|
+
Address: Address,
|
|
5500
5783
|
NormalMLIDCard: NormalMLIDCard,
|
|
5501
5784
|
NormalIndonesiaIDCard: NormalIndonesiaIDCard,
|
|
5502
5785
|
CompareFaceLivenessResponse: CompareFaceLivenessResponse,
|
|
@@ -5505,7 +5788,7 @@ module.exports = {
|
|
|
5505
5788
|
CreateUploadUrlRequest: CreateUploadUrlRequest,
|
|
5506
5789
|
ApplyWebVerificationBizTokenIntlRequest: ApplyWebVerificationBizTokenIntlRequest,
|
|
5507
5790
|
GetWebVerificationResultResponse: GetWebVerificationResultResponse,
|
|
5508
|
-
|
|
5791
|
+
CompareFaceLivenessRequest: CompareFaceLivenessRequest,
|
|
5509
5792
|
ApplyLivenessTokenRequest: ApplyLivenessTokenRequest,
|
|
5510
5793
|
NormalThailandIDCard: NormalThailandIDCard,
|
|
5511
5794
|
PhilippinesDrivingLicense: PhilippinesDrivingLicense,
|
|
@@ -5513,6 +5796,7 @@ module.exports = {
|
|
|
5513
5796
|
GenerateReflectSequenceResponse: GenerateReflectSequenceResponse,
|
|
5514
5797
|
GetWebVerificationResultIntlRequest: GetWebVerificationResultIntlRequest,
|
|
5515
5798
|
GeneralCard: GeneralCard,
|
|
5799
|
+
LivenessCompareResponse: LivenessCompareResponse,
|
|
5516
5800
|
MacaoIDCard: MacaoIDCard,
|
|
5517
5801
|
PhilippinesUMID: PhilippinesUMID,
|
|
5518
5802
|
PhilippinesTinID: PhilippinesTinID,
|