tencentcloud-sdk-nodejs-intl-en 3.0.879 → 3.0.881
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.881";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -24,6 +24,7 @@ const GetSdkVerificationResultRequest = models.GetSdkVerificationResultRequest;
|
|
|
24
24
|
const ApplyWebVerificationBizTokenIntlResponse = models.ApplyWebVerificationBizTokenIntlResponse;
|
|
25
25
|
const LivenessCompareResponse = models.LivenessCompareResponse;
|
|
26
26
|
const CreateUploadUrlResponse = models.CreateUploadUrlResponse;
|
|
27
|
+
const ApplyCardVerificationResponse = models.ApplyCardVerificationResponse;
|
|
27
28
|
const DetectReflectLivenessAndCompareRequest = models.DetectReflectLivenessAndCompareRequest;
|
|
28
29
|
const GetFaceIdTokenIntlRequest = models.GetFaceIdTokenIntlRequest;
|
|
29
30
|
const VideoLivenessCompareRequest = models.VideoLivenessCompareRequest;
|
|
@@ -43,8 +44,9 @@ const DetectReflectLivenessAndCompareResponse = models.DetectReflectLivenessAndC
|
|
|
43
44
|
const VideoLivenessCompareResponse = models.VideoLivenessCompareResponse;
|
|
44
45
|
const CardVerifyResult = models.CardVerifyResult;
|
|
45
46
|
const ApplyWebVerificationTokenRequest = models.ApplyWebVerificationTokenRequest;
|
|
47
|
+
const Address = models.Address;
|
|
46
48
|
const ApplyLivenessTokenResponse = models.ApplyLivenessTokenResponse;
|
|
47
|
-
const
|
|
49
|
+
const GetCardVerificationResultRequest = models.GetCardVerificationResultRequest;
|
|
48
50
|
const CardInfo = models.CardInfo;
|
|
49
51
|
const PhilippinesVoteID = models.PhilippinesVoteID;
|
|
50
52
|
const WebVerificationConfigIntl = models.WebVerificationConfigIntl;
|
|
@@ -58,15 +60,18 @@ const GetWebVerificationResultResponse = models.GetWebVerificationResultResponse
|
|
|
58
60
|
const FileInfo = models.FileInfo;
|
|
59
61
|
const ApplyLivenessTokenRequest = models.ApplyLivenessTokenRequest;
|
|
60
62
|
const PhilippinesDrivingLicense = models.PhilippinesDrivingLicense;
|
|
63
|
+
const GetCardVerificationResultResponse = models.GetCardVerificationResultResponse;
|
|
61
64
|
const GenerateReflectSequenceResponse = models.GenerateReflectSequenceResponse;
|
|
62
|
-
const
|
|
65
|
+
const GetWebVerificationResultIntlRequest = models.GetWebVerificationResultIntlRequest;
|
|
63
66
|
const GeneralCard = models.GeneralCard;
|
|
67
|
+
const PhilippinesUMID = models.PhilippinesUMID;
|
|
64
68
|
const PhilippinesTinID = models.PhilippinesTinID;
|
|
69
|
+
const ApplyCardVerificationRequest = models.ApplyCardVerificationRequest;
|
|
65
70
|
const LivenessCompareRequest = models.LivenessCompareRequest;
|
|
66
71
|
const MLIDCard = models.MLIDCard;
|
|
67
72
|
const OCRResult = models.OCRResult;
|
|
68
73
|
const GetFaceIdResultIntlResponse = models.GetFaceIdResultIntlResponse;
|
|
69
|
-
const
|
|
74
|
+
const GetLivenessResultRequest = models.GetLivenessResultRequest;
|
|
70
75
|
const CompareResult = models.CompareResult;
|
|
71
76
|
|
|
72
77
|
|
|
@@ -80,6 +85,17 @@ class FaceidClient extends AbstractClient {
|
|
|
80
85
|
super("faceid.tencentcloudapi.com", "2018-03-01", credential, region, profile);
|
|
81
86
|
}
|
|
82
87
|
|
|
88
|
+
/**
|
|
89
|
+
* The interface supports obtaining the certificate authentication result based on the token.
|
|
90
|
+
* @param {GetCardVerificationResultRequest} req
|
|
91
|
+
* @param {function(string, GetCardVerificationResultResponse):void} cb
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
GetCardVerificationResult(req, cb) {
|
|
95
|
+
let resp = new GetCardVerificationResultResponse();
|
|
96
|
+
this.request("GetCardVerificationResult", req, resp, cb);
|
|
97
|
+
}
|
|
98
|
+
|
|
83
99
|
/**
|
|
84
100
|
* This API is used to apply for a token before calling the liveness detection service each time. This token is required for initiating the verification process and getting the result after the verification is completed.
|
|
85
101
|
* @param {ApplyLivenessTokenRequest} req
|
|
@@ -138,6 +154,17 @@ The data generated with the SDK must be stored in COS, and the region of the COS
|
|
|
138
154
|
this.request("GenerateReflectSequence", req, resp, cb);
|
|
139
155
|
}
|
|
140
156
|
|
|
157
|
+
/**
|
|
158
|
+
* The types of national cards supported by the API and whether instructions on the back of the card are required are as follows: <table> <thead> <tr> <td style="width:200px"Nationality</td> <td style="width:200px">CardType</td> <td style="width:200px">Back side required</td> </tr> </thead> <tbody> <tr> <td>Indonesia</td> <td>ID card</td> <td>No</td> </tr> <tr> <td>Indonesia</td> <td>Drving license</td> <td>No</td> </tr> <tr> <td>Hongkong</td> <td>ID card</td> <td>Yes</td> </tr> <tr> <td>Thailand</td> <td>ID card</td> <td>No</td> </tr> <tr> <td>Thailand</td> <td>Drving license</td> <td>Yes</td> </tr> <tr> <td>Malaysia</td> <td>ID card</td> <td>Yes</td> </tr> <tr> <td>Malaysia</td> <td>Drving license</td> <td>Yes</td> </tr> <tr> <td>Singapore</td> <td>ID card</td> <td>Yes</td> </tr> <tr> <td>Singapore</td> <td>Drving license</td> <td>Yes</td> </tr> <tr> <td>Philippine</td> <td>ID card</td> <td>Yes</td> </tr> <tr> <td>Philippine</td> <td>Drving license</td> <td>No</td> </tr> <tr> <td>Japan</td> <td>ID card</td> <td>Yes</td> </tr> <tr> <td>Japan</td> <td>Drving license</td> <td>No</td> </tr> </tbody> </table>
|
|
159
|
+
* @param {ApplyCardVerificationRequest} req
|
|
160
|
+
* @param {function(string, ApplyCardVerificationResponse):void} cb
|
|
161
|
+
* @public
|
|
162
|
+
*/
|
|
163
|
+
ApplyCardVerification(req, cb) {
|
|
164
|
+
let resp = new ApplyCardVerificationResponse();
|
|
165
|
+
this.request("ApplyCardVerification", req, resp, cb);
|
|
166
|
+
}
|
|
167
|
+
|
|
141
168
|
/**
|
|
142
169
|
* This API is used to pass in URLs of 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.
|
|
143
170
|
* @param {VideoLivenessCompareRequest} req
|
|
@@ -504,6 +504,55 @@ class CreateUploadUrlResponse extends AbstractModel {
|
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
|
|
507
|
+
/**
|
|
508
|
+
* ApplyCardVerification response structure.
|
|
509
|
+
* @class
|
|
510
|
+
*/
|
|
511
|
+
class ApplyCardVerificationResponse extends AbstractModel {
|
|
512
|
+
constructor(){
|
|
513
|
+
super();
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* The token used to identify an verification process. It can be used to get the verification result after the process is completed.
|
|
517
|
+
* @type {string || null}
|
|
518
|
+
*/
|
|
519
|
+
this.CardVerificationToken = null;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* The maximum number of polls for calling the pull result interface polling.
|
|
523
|
+
* @type {number || null}
|
|
524
|
+
*/
|
|
525
|
+
this.AsyncCardVerificationMaxPollingTimes = null;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* The interval for polling when calling the pull result interface (in seconds).
|
|
529
|
+
* @type {number || null}
|
|
530
|
+
*/
|
|
531
|
+
this.AsyncCardVerificationPollingWaitTime = null;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
535
|
+
* @type {string || null}
|
|
536
|
+
*/
|
|
537
|
+
this.RequestId = null;
|
|
538
|
+
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* @private
|
|
543
|
+
*/
|
|
544
|
+
deserialize(params) {
|
|
545
|
+
if (!params) {
|
|
546
|
+
return;
|
|
547
|
+
}
|
|
548
|
+
this.CardVerificationToken = 'CardVerificationToken' in params ? params.CardVerificationToken : null;
|
|
549
|
+
this.AsyncCardVerificationMaxPollingTimes = 'AsyncCardVerificationMaxPollingTimes' in params ? params.AsyncCardVerificationMaxPollingTimes : null;
|
|
550
|
+
this.AsyncCardVerificationPollingWaitTime = 'AsyncCardVerificationPollingWaitTime' in params ? params.AsyncCardVerificationPollingWaitTime : null;
|
|
551
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
552
|
+
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
507
556
|
/**
|
|
508
557
|
* DetectReflectLivenessAndCompare request structure.
|
|
509
558
|
* @class
|
|
@@ -1911,6 +1960,97 @@ class ApplyWebVerificationTokenRequest extends AbstractModel {
|
|
|
1911
1960
|
}
|
|
1912
1961
|
}
|
|
1913
1962
|
|
|
1963
|
+
/**
|
|
1964
|
+
*
|
|
1965
|
+
* @class
|
|
1966
|
+
*/
|
|
1967
|
+
class Address extends AbstractModel {
|
|
1968
|
+
constructor(){
|
|
1969
|
+
super();
|
|
1970
|
+
|
|
1971
|
+
/**
|
|
1972
|
+
* Nationality.
|
|
1973
|
+
* @type {string || null}
|
|
1974
|
+
*/
|
|
1975
|
+
this.Country = null;
|
|
1976
|
+
|
|
1977
|
+
/**
|
|
1978
|
+
* Post code.
|
|
1979
|
+
* @type {string || null}
|
|
1980
|
+
*/
|
|
1981
|
+
this.PostalCode = null;
|
|
1982
|
+
|
|
1983
|
+
/**
|
|
1984
|
+
* Subregion.
|
|
1985
|
+
* @type {string || null}
|
|
1986
|
+
*/
|
|
1987
|
+
this.Subdivision = null;
|
|
1988
|
+
|
|
1989
|
+
/**
|
|
1990
|
+
* City.
|
|
1991
|
+
* @type {string || null}
|
|
1992
|
+
*/
|
|
1993
|
+
this.City = null;
|
|
1994
|
+
|
|
1995
|
+
/**
|
|
1996
|
+
* Complete address.
|
|
1997
|
+
* @type {string || null}
|
|
1998
|
+
*/
|
|
1999
|
+
this.FormattedAddress = null;
|
|
2000
|
+
|
|
2001
|
+
/**
|
|
2002
|
+
* The first line of address.
|
|
2003
|
+
* @type {string || null}
|
|
2004
|
+
*/
|
|
2005
|
+
this.LineOne = null;
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* The second line of address.
|
|
2009
|
+
* @type {string || null}
|
|
2010
|
+
*/
|
|
2011
|
+
this.LineTwo = null;
|
|
2012
|
+
|
|
2013
|
+
/**
|
|
2014
|
+
* The third line of address.
|
|
2015
|
+
* @type {string || null}
|
|
2016
|
+
*/
|
|
2017
|
+
this.LineThree = null;
|
|
2018
|
+
|
|
2019
|
+
/**
|
|
2020
|
+
* The fourth line of address.
|
|
2021
|
+
* @type {string || null}
|
|
2022
|
+
*/
|
|
2023
|
+
this.LineFour = null;
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* The fifth line of address.
|
|
2027
|
+
* @type {string || null}
|
|
2028
|
+
*/
|
|
2029
|
+
this.LineFive = null;
|
|
2030
|
+
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
/**
|
|
2034
|
+
* @private
|
|
2035
|
+
*/
|
|
2036
|
+
deserialize(params) {
|
|
2037
|
+
if (!params) {
|
|
2038
|
+
return;
|
|
2039
|
+
}
|
|
2040
|
+
this.Country = 'Country' in params ? params.Country : null;
|
|
2041
|
+
this.PostalCode = 'PostalCode' in params ? params.PostalCode : null;
|
|
2042
|
+
this.Subdivision = 'Subdivision' in params ? params.Subdivision : null;
|
|
2043
|
+
this.City = 'City' in params ? params.City : null;
|
|
2044
|
+
this.FormattedAddress = 'FormattedAddress' in params ? params.FormattedAddress : null;
|
|
2045
|
+
this.LineOne = 'LineOne' in params ? params.LineOne : null;
|
|
2046
|
+
this.LineTwo = 'LineTwo' in params ? params.LineTwo : null;
|
|
2047
|
+
this.LineThree = 'LineThree' in params ? params.LineThree : null;
|
|
2048
|
+
this.LineFour = 'LineFour' in params ? params.LineFour : null;
|
|
2049
|
+
this.LineFive = 'LineFive' in params ? params.LineFive : null;
|
|
2050
|
+
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
|
|
1914
2054
|
/**
|
|
1915
2055
|
* ApplyLivenessToken response structure.
|
|
1916
2056
|
* @class
|
|
@@ -1947,18 +2087,18 @@ class ApplyLivenessTokenResponse extends AbstractModel {
|
|
|
1947
2087
|
}
|
|
1948
2088
|
|
|
1949
2089
|
/**
|
|
1950
|
-
*
|
|
2090
|
+
* GetCardVerificationResult request structure.
|
|
1951
2091
|
* @class
|
|
1952
2092
|
*/
|
|
1953
|
-
class
|
|
2093
|
+
class GetCardVerificationResultRequest extends AbstractModel {
|
|
1954
2094
|
constructor(){
|
|
1955
2095
|
super();
|
|
1956
2096
|
|
|
1957
2097
|
/**
|
|
1958
|
-
* The token used to identify an
|
|
2098
|
+
* The token used to identify an verification process. It can be used to get the verification result after the process is completed.
|
|
1959
2099
|
* @type {string || null}
|
|
1960
2100
|
*/
|
|
1961
|
-
this.
|
|
2101
|
+
this.CardVerificationToken = null;
|
|
1962
2102
|
|
|
1963
2103
|
}
|
|
1964
2104
|
|
|
@@ -1969,7 +2109,7 @@ class GetLivenessResultRequest extends AbstractModel {
|
|
|
1969
2109
|
if (!params) {
|
|
1970
2110
|
return;
|
|
1971
2111
|
}
|
|
1972
|
-
this.
|
|
2112
|
+
this.CardVerificationToken = 'CardVerificationToken' in params ? params.CardVerificationToken : null;
|
|
1973
2113
|
|
|
1974
2114
|
}
|
|
1975
2115
|
}
|
|
@@ -2257,6 +2397,12 @@ class WebVerificationConfigIntl extends AbstractModel {
|
|
|
2257
2397
|
constructor(){
|
|
2258
2398
|
super();
|
|
2259
2399
|
|
|
2400
|
+
/**
|
|
2401
|
+
* When starting verification, whether to skip the starting verification page. If true, enter the verification process directly. The default is false. This configuration will not take effect if the downgrade policy is triggered.
|
|
2402
|
+
* @type {boolean || null}
|
|
2403
|
+
*/
|
|
2404
|
+
this.AutoSkipStartPage = null;
|
|
2405
|
+
|
|
2260
2406
|
/**
|
|
2261
2407
|
* When the verification passed, whether to skip the result page and automatically jump to RedirectURL. The default value is false.
|
|
2262
2408
|
Example value: false
|
|
@@ -2291,6 +2437,12 @@ Example: HKIDCard
|
|
|
2291
2437
|
*/
|
|
2292
2438
|
this.IDCardType = null;
|
|
2293
2439
|
|
|
2440
|
+
/**
|
|
2441
|
+
* Whether to turn off document alarms, the default is false (the alarm detection function is turned on). When enabled, the identity authentication process will be intercepted based on the alarm status of the certificate. If you need to use the document authentication function, please contact us.
|
|
2442
|
+
* @type {boolean || null}
|
|
2443
|
+
*/
|
|
2444
|
+
this.DisableCheckOcrWarnings = null;
|
|
2445
|
+
|
|
2294
2446
|
}
|
|
2295
2447
|
|
|
2296
2448
|
/**
|
|
@@ -2300,9 +2452,11 @@ Example: HKIDCard
|
|
|
2300
2452
|
if (!params) {
|
|
2301
2453
|
return;
|
|
2302
2454
|
}
|
|
2455
|
+
this.AutoSkipStartPage = 'AutoSkipStartPage' in params ? params.AutoSkipStartPage : null;
|
|
2303
2456
|
this.AutoSkip = 'AutoSkip' in params ? params.AutoSkip : null;
|
|
2304
2457
|
this.CheckMode = 'CheckMode' in params ? params.CheckMode : null;
|
|
2305
2458
|
this.IDCardType = 'IDCardType' in params ? params.IDCardType : null;
|
|
2459
|
+
this.DisableCheckOcrWarnings = 'DisableCheckOcrWarnings' in params ? params.DisableCheckOcrWarnings : null;
|
|
2306
2460
|
|
|
2307
2461
|
}
|
|
2308
2462
|
}
|
|
@@ -2970,24 +3124,66 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
2970
3124
|
}
|
|
2971
3125
|
|
|
2972
3126
|
/**
|
|
2973
|
-
*
|
|
3127
|
+
* GetCardVerificationResult response structure.
|
|
2974
3128
|
* @class
|
|
2975
3129
|
*/
|
|
2976
|
-
class
|
|
3130
|
+
class GetCardVerificationResultResponse extends AbstractModel {
|
|
2977
3131
|
constructor(){
|
|
2978
3132
|
super();
|
|
2979
3133
|
|
|
2980
3134
|
/**
|
|
2981
|
-
*
|
|
3135
|
+
* Pass status. When Warning and Rejected are returned, please check the specific reasons in the WarnInfo structure return. Example values are as follows:
|
|
3136
|
+
Passed
|
|
3137
|
+
Warning
|
|
3138
|
+
Rejected
|
|
2982
3139
|
* @type {string || null}
|
|
2983
3140
|
*/
|
|
2984
|
-
this.
|
|
3141
|
+
this.Status = null;
|
|
2985
3142
|
|
|
2986
3143
|
/**
|
|
2987
|
-
*
|
|
3144
|
+
* Warning information returned by document verification.
|
|
3145
|
+
* @type {Array.<string> || null}
|
|
3146
|
+
*/
|
|
3147
|
+
this.WarnInfo = null;
|
|
3148
|
+
|
|
3149
|
+
/**
|
|
3150
|
+
* Nationality code. Complies with standard ISO 3166-1 alpha-3.
|
|
3151
|
+
|
|
3152
|
+
Example value: IDN
|
|
2988
3153
|
* @type {string || null}
|
|
2989
3154
|
*/
|
|
2990
|
-
this.
|
|
3155
|
+
this.Nationality = null;
|
|
3156
|
+
|
|
3157
|
+
/**
|
|
3158
|
+
* Card Type. The supported options are:
|
|
3159
|
+
ID_CARD
|
|
3160
|
+
PASSPORT
|
|
3161
|
+
DRIVING_LICENSE
|
|
3162
|
+
AUTO
|
|
3163
|
+
|
|
3164
|
+
Example value: ID_CARD
|
|
3165
|
+
* @type {string || null}
|
|
3166
|
+
*/
|
|
3167
|
+
this.CardType = null;
|
|
3168
|
+
|
|
3169
|
+
/**
|
|
3170
|
+
* Subtype of the ID document.
|
|
3171
|
+
|
|
3172
|
+
* @type {string || null}
|
|
3173
|
+
*/
|
|
3174
|
+
this.CardSubType = null;
|
|
3175
|
+
|
|
3176
|
+
/**
|
|
3177
|
+
* Recognition results of the ID document.
|
|
3178
|
+
* @type {CardInfo || null}
|
|
3179
|
+
*/
|
|
3180
|
+
this.CardInfo = null;
|
|
3181
|
+
|
|
3182
|
+
/**
|
|
3183
|
+
* The token used to identify an verification process. It can be used to get the verification result after the process is completed.
|
|
3184
|
+
* @type {string || null}
|
|
3185
|
+
*/
|
|
3186
|
+
this.IDVerificationToken = null;
|
|
2991
3187
|
|
|
2992
3188
|
/**
|
|
2993
3189
|
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
@@ -3004,69 +3200,78 @@ class GenerateReflectSequenceResponse extends AbstractModel {
|
|
|
3004
3200
|
if (!params) {
|
|
3005
3201
|
return;
|
|
3006
3202
|
}
|
|
3007
|
-
this.
|
|
3008
|
-
this.
|
|
3203
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
3204
|
+
this.WarnInfo = 'WarnInfo' in params ? params.WarnInfo : null;
|
|
3205
|
+
this.Nationality = 'Nationality' in params ? params.Nationality : null;
|
|
3206
|
+
this.CardType = 'CardType' in params ? params.CardType : null;
|
|
3207
|
+
this.CardSubType = 'CardSubType' in params ? params.CardSubType : null;
|
|
3208
|
+
|
|
3209
|
+
if (params.CardInfo) {
|
|
3210
|
+
let obj = new CardInfo();
|
|
3211
|
+
obj.deserialize(params.CardInfo)
|
|
3212
|
+
this.CardInfo = obj;
|
|
3213
|
+
}
|
|
3214
|
+
this.IDVerificationToken = 'IDVerificationToken' in params ? params.IDVerificationToken : null;
|
|
3009
3215
|
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
3010
3216
|
|
|
3011
3217
|
}
|
|
3012
3218
|
}
|
|
3013
3219
|
|
|
3014
3220
|
/**
|
|
3015
|
-
*
|
|
3221
|
+
* GenerateReflectSequence response structure.
|
|
3016
3222
|
* @class
|
|
3017
3223
|
*/
|
|
3018
|
-
class
|
|
3224
|
+
class GenerateReflectSequenceResponse extends AbstractModel {
|
|
3019
3225
|
constructor(){
|
|
3020
3226
|
super();
|
|
3021
3227
|
|
|
3022
3228
|
/**
|
|
3023
|
-
*
|
|
3024
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3229
|
+
* The resource URL of the light sequence, which needs to be downloaded and passed through to the SDK to start the identity verification process.
|
|
3025
3230
|
* @type {string || null}
|
|
3026
3231
|
*/
|
|
3027
|
-
this.
|
|
3232
|
+
this.ReflectSequenceUrl = null;
|
|
3028
3233
|
|
|
3029
3234
|
/**
|
|
3030
|
-
*
|
|
3031
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3235
|
+
* The MD5 hash value of the light sequence, which is used to check whether the light sequence is altered.
|
|
3032
3236
|
* @type {string || null}
|
|
3033
3237
|
*/
|
|
3034
|
-
this.
|
|
3238
|
+
this.ReflectSequenceMd5 = null;
|
|
3035
3239
|
|
|
3036
3240
|
/**
|
|
3037
|
-
*
|
|
3038
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3241
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
3039
3242
|
* @type {string || null}
|
|
3040
3243
|
*/
|
|
3041
|
-
this.
|
|
3244
|
+
this.RequestId = null;
|
|
3042
3245
|
|
|
3043
|
-
|
|
3044
|
-
* Gender
|
|
3045
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3046
|
-
* @type {string || null}
|
|
3047
|
-
*/
|
|
3048
|
-
this.Sex = null;
|
|
3246
|
+
}
|
|
3049
3247
|
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3248
|
+
/**
|
|
3249
|
+
* @private
|
|
3250
|
+
*/
|
|
3251
|
+
deserialize(params) {
|
|
3252
|
+
if (!params) {
|
|
3253
|
+
return;
|
|
3254
|
+
}
|
|
3255
|
+
this.ReflectSequenceUrl = 'ReflectSequenceUrl' in params ? params.ReflectSequenceUrl : null;
|
|
3256
|
+
this.ReflectSequenceMd5 = 'ReflectSequenceMd5' in params ? params.ReflectSequenceMd5 : null;
|
|
3257
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
3056
3258
|
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
|
|
3262
|
+
/**
|
|
3263
|
+
* GetWebVerificationResultIntl request structure.
|
|
3264
|
+
* @class
|
|
3265
|
+
*/
|
|
3266
|
+
class GetWebVerificationResultIntlRequest extends AbstractModel {
|
|
3267
|
+
constructor(){
|
|
3268
|
+
super();
|
|
3063
3269
|
|
|
3064
3270
|
/**
|
|
3065
|
-
*
|
|
3066
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3271
|
+
* The token for the web-based verification, which is generated using the `ApplyWebVerificationBizTokenIntl` API.
|
|
3067
3272
|
* @type {string || null}
|
|
3068
3273
|
*/
|
|
3069
|
-
this.
|
|
3274
|
+
this.BizToken = null;
|
|
3070
3275
|
|
|
3071
3276
|
}
|
|
3072
3277
|
|
|
@@ -3077,13 +3282,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3077
3282
|
if (!params) {
|
|
3078
3283
|
return;
|
|
3079
3284
|
}
|
|
3080
|
-
this.
|
|
3081
|
-
this.MiddleName = 'MiddleName' in params ? params.MiddleName : null;
|
|
3082
|
-
this.GivenName = 'GivenName' in params ? params.GivenName : null;
|
|
3083
|
-
this.Sex = 'Sex' in params ? params.Sex : null;
|
|
3084
|
-
this.Birthday = 'Birthday' in params ? params.Birthday : null;
|
|
3085
|
-
this.Address = 'Address' in params ? params.Address : null;
|
|
3086
|
-
this.CRN = 'CRN' in params ? params.CRN : null;
|
|
3285
|
+
this.BizToken = 'BizToken' in params ? params.BizToken : null;
|
|
3087
3286
|
|
|
3088
3287
|
}
|
|
3089
3288
|
}
|
|
@@ -3183,9 +3382,9 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3183
3382
|
|
|
3184
3383
|
/**
|
|
3185
3384
|
* Gender on the license
|
|
3186
|
-
- M
|
|
3187
|
-
- F
|
|
3188
|
-
- X
|
|
3385
|
+
- M: male
|
|
3386
|
+
- F: female
|
|
3387
|
+
- X: other gender
|
|
3189
3388
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3190
3389
|
Example: M
|
|
3191
3390
|
* @type {string || null}
|
|
@@ -3228,6 +3427,13 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3228
3427
|
*/
|
|
3229
3428
|
this.RegistrationNumber = null;
|
|
3230
3429
|
|
|
3430
|
+
/**
|
|
3431
|
+
* Address
|
|
3432
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3433
|
+
* @type {Address || null}
|
|
3434
|
+
*/
|
|
3435
|
+
this.Address = null;
|
|
3436
|
+
|
|
3231
3437
|
}
|
|
3232
3438
|
|
|
3233
3439
|
/**
|
|
@@ -3256,6 +3462,89 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3256
3462
|
this.Nationality = 'Nationality' in params ? params.Nationality : null;
|
|
3257
3463
|
this.RegistrationNumber = 'RegistrationNumber' in params ? params.RegistrationNumber : null;
|
|
3258
3464
|
|
|
3465
|
+
if (params.Address) {
|
|
3466
|
+
let obj = new Address();
|
|
3467
|
+
obj.deserialize(params.Address)
|
|
3468
|
+
this.Address = obj;
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
}
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
/**
|
|
3475
|
+
* Philippines UMID Card
|
|
3476
|
+
* @class
|
|
3477
|
+
*/
|
|
3478
|
+
class PhilippinesUMID extends AbstractModel {
|
|
3479
|
+
constructor(){
|
|
3480
|
+
super();
|
|
3481
|
+
|
|
3482
|
+
/**
|
|
3483
|
+
* Surname
|
|
3484
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3485
|
+
* @type {string || null}
|
|
3486
|
+
*/
|
|
3487
|
+
this.Surname = null;
|
|
3488
|
+
|
|
3489
|
+
/**
|
|
3490
|
+
* Middle Name
|
|
3491
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3492
|
+
* @type {string || null}
|
|
3493
|
+
*/
|
|
3494
|
+
this.MiddleName = null;
|
|
3495
|
+
|
|
3496
|
+
/**
|
|
3497
|
+
* First name
|
|
3498
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3499
|
+
* @type {string || null}
|
|
3500
|
+
*/
|
|
3501
|
+
this.GivenName = null;
|
|
3502
|
+
|
|
3503
|
+
/**
|
|
3504
|
+
* Gender
|
|
3505
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3506
|
+
* @type {string || null}
|
|
3507
|
+
*/
|
|
3508
|
+
this.Sex = null;
|
|
3509
|
+
|
|
3510
|
+
/**
|
|
3511
|
+
* Birthday
|
|
3512
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3513
|
+
* @type {string || null}
|
|
3514
|
+
*/
|
|
3515
|
+
this.Birthday = null;
|
|
3516
|
+
|
|
3517
|
+
/**
|
|
3518
|
+
* Address
|
|
3519
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3520
|
+
* @type {string || null}
|
|
3521
|
+
*/
|
|
3522
|
+
this.Address = null;
|
|
3523
|
+
|
|
3524
|
+
/**
|
|
3525
|
+
* CRN code
|
|
3526
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3527
|
+
* @type {string || null}
|
|
3528
|
+
*/
|
|
3529
|
+
this.CRN = null;
|
|
3530
|
+
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
/**
|
|
3534
|
+
* @private
|
|
3535
|
+
*/
|
|
3536
|
+
deserialize(params) {
|
|
3537
|
+
if (!params) {
|
|
3538
|
+
return;
|
|
3539
|
+
}
|
|
3540
|
+
this.Surname = 'Surname' in params ? params.Surname : null;
|
|
3541
|
+
this.MiddleName = 'MiddleName' in params ? params.MiddleName : null;
|
|
3542
|
+
this.GivenName = 'GivenName' in params ? params.GivenName : null;
|
|
3543
|
+
this.Sex = 'Sex' in params ? params.Sex : null;
|
|
3544
|
+
this.Birthday = 'Birthday' in params ? params.Birthday : null;
|
|
3545
|
+
this.Address = 'Address' in params ? params.Address : null;
|
|
3546
|
+
this.CRN = 'CRN' in params ? params.CRN : null;
|
|
3547
|
+
|
|
3259
3548
|
}
|
|
3260
3549
|
}
|
|
3261
3550
|
|
|
@@ -3320,6 +3609,81 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3320
3609
|
}
|
|
3321
3610
|
}
|
|
3322
3611
|
|
|
3612
|
+
/**
|
|
3613
|
+
* ApplyCardVerification request structure.
|
|
3614
|
+
* @class
|
|
3615
|
+
*/
|
|
3616
|
+
class ApplyCardVerificationRequest extends AbstractModel {
|
|
3617
|
+
constructor(){
|
|
3618
|
+
super();
|
|
3619
|
+
|
|
3620
|
+
/**
|
|
3621
|
+
* Please select the country code of ID document.
|
|
3622
|
+
IDN: Indonesia
|
|
3623
|
+
HKG: Hong Kong
|
|
3624
|
+
THA: Thailand
|
|
3625
|
+
MYS: Malaysia
|
|
3626
|
+
SGP: Singapore
|
|
3627
|
+
JPN: Japan
|
|
3628
|
+
AUTO: Automatic Identification
|
|
3629
|
+
* @type {string || null}
|
|
3630
|
+
*/
|
|
3631
|
+
this.Nationality = null;
|
|
3632
|
+
|
|
3633
|
+
/**
|
|
3634
|
+
* Please select the type of ID document. The supported options are:
|
|
3635
|
+
ID_CARD
|
|
3636
|
+
PASSPORT
|
|
3637
|
+
DRIVING_LICENSE
|
|
3638
|
+
AUTO
|
|
3639
|
+
* @type {string || null}
|
|
3640
|
+
*/
|
|
3641
|
+
this.CardType = null;
|
|
3642
|
+
|
|
3643
|
+
/**
|
|
3644
|
+
* Base64 value for the front of the document. Supported image formats: PNG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image cannot exceed 5M after Base64 encoding.
|
|
3645
|
+
The image download takes no more than 3 seconds. Supported image resolution: 8000*8000. One of ImageUrlFront and ImageBase64 Front of the image must be provided. If both are provided, only ImageUrlFront will be used.
|
|
3646
|
+
* @type {string || null}
|
|
3647
|
+
*/
|
|
3648
|
+
this.ImageBase64Front = null;
|
|
3649
|
+
|
|
3650
|
+
/**
|
|
3651
|
+
* Base64 value of the reverse side of the document. Supported image formats: PNG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image cannot exceed 5M after Base64 encoding. The image download takes no more than 3 seconds. Maximum supported image resolution: 8000*8000. For some certificates, one of ImageUrlBack and ImageBase64Back must be provided. If both are provided, only ImageUrlBack will be used.
|
|
3652
|
+
* @type {string || null}
|
|
3653
|
+
*/
|
|
3654
|
+
this.ImageBase64Back = null;
|
|
3655
|
+
|
|
3656
|
+
/**
|
|
3657
|
+
* The URL value on the back of the certificate. Supported image formats: PNG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image cannot exceed 5M after Base64 encoding. The image download takes no more than 3 seconds. Maximum supported image resolution: 8000*8000. One of ImageUrlFront and ImageBase64Front of the image must be provided. If both are provided, only ImageUrlFront will be used.
|
|
3658
|
+
* @type {string || null}
|
|
3659
|
+
*/
|
|
3660
|
+
this.ImageUrlFront = null;
|
|
3661
|
+
|
|
3662
|
+
/**
|
|
3663
|
+
* The URL value on the back of the certificate. Supported image formats: PNG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image cannot exceed 5M after Base64 encoding. The image download takes no more than 3 seconds. Maximum supported image resolution: 8000*8000. For some certificates, one of ImageUrlBack and ImageBase64Back must be provided. If both are provided, only ImageUrlBack will be used.
|
|
3664
|
+
* @type {string || null}
|
|
3665
|
+
*/
|
|
3666
|
+
this.ImageUrlBack = null;
|
|
3667
|
+
|
|
3668
|
+
}
|
|
3669
|
+
|
|
3670
|
+
/**
|
|
3671
|
+
* @private
|
|
3672
|
+
*/
|
|
3673
|
+
deserialize(params) {
|
|
3674
|
+
if (!params) {
|
|
3675
|
+
return;
|
|
3676
|
+
}
|
|
3677
|
+
this.Nationality = 'Nationality' in params ? params.Nationality : null;
|
|
3678
|
+
this.CardType = 'CardType' in params ? params.CardType : null;
|
|
3679
|
+
this.ImageBase64Front = 'ImageBase64Front' in params ? params.ImageBase64Front : null;
|
|
3680
|
+
this.ImageBase64Back = 'ImageBase64Back' in params ? params.ImageBase64Back : null;
|
|
3681
|
+
this.ImageUrlFront = 'ImageUrlFront' in params ? params.ImageUrlFront : null;
|
|
3682
|
+
this.ImageUrlBack = 'ImageUrlBack' in params ? params.ImageUrlBack : null;
|
|
3683
|
+
|
|
3684
|
+
}
|
|
3685
|
+
}
|
|
3686
|
+
|
|
3323
3687
|
/**
|
|
3324
3688
|
* LivenessCompare request structure.
|
|
3325
3689
|
* @class
|
|
@@ -3626,18 +3990,18 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3626
3990
|
}
|
|
3627
3991
|
|
|
3628
3992
|
/**
|
|
3629
|
-
*
|
|
3993
|
+
* GetLivenessResult request structure.
|
|
3630
3994
|
* @class
|
|
3631
3995
|
*/
|
|
3632
|
-
class
|
|
3996
|
+
class GetLivenessResultRequest extends AbstractModel {
|
|
3633
3997
|
constructor(){
|
|
3634
3998
|
super();
|
|
3635
3999
|
|
|
3636
4000
|
/**
|
|
3637
|
-
* The token
|
|
4001
|
+
* The token used to identify an SDK-based verification process.
|
|
3638
4002
|
* @type {string || null}
|
|
3639
4003
|
*/
|
|
3640
|
-
this.
|
|
4004
|
+
this.SdkToken = null;
|
|
3641
4005
|
|
|
3642
4006
|
}
|
|
3643
4007
|
|
|
@@ -3648,7 +4012,7 @@ class GetWebVerificationResultIntlRequest extends AbstractModel {
|
|
|
3648
4012
|
if (!params) {
|
|
3649
4013
|
return;
|
|
3650
4014
|
}
|
|
3651
|
-
this.
|
|
4015
|
+
this.SdkToken = 'SdkToken' in params ? params.SdkToken : null;
|
|
3652
4016
|
|
|
3653
4017
|
}
|
|
3654
4018
|
}
|
|
@@ -3830,6 +4194,7 @@ module.exports = {
|
|
|
3830
4194
|
ApplyWebVerificationBizTokenIntlResponse: ApplyWebVerificationBizTokenIntlResponse,
|
|
3831
4195
|
LivenessCompareResponse: LivenessCompareResponse,
|
|
3832
4196
|
CreateUploadUrlResponse: CreateUploadUrlResponse,
|
|
4197
|
+
ApplyCardVerificationResponse: ApplyCardVerificationResponse,
|
|
3833
4198
|
DetectReflectLivenessAndCompareRequest: DetectReflectLivenessAndCompareRequest,
|
|
3834
4199
|
GetFaceIdTokenIntlRequest: GetFaceIdTokenIntlRequest,
|
|
3835
4200
|
VideoLivenessCompareRequest: VideoLivenessCompareRequest,
|
|
@@ -3849,8 +4214,9 @@ module.exports = {
|
|
|
3849
4214
|
VideoLivenessCompareResponse: VideoLivenessCompareResponse,
|
|
3850
4215
|
CardVerifyResult: CardVerifyResult,
|
|
3851
4216
|
ApplyWebVerificationTokenRequest: ApplyWebVerificationTokenRequest,
|
|
4217
|
+
Address: Address,
|
|
3852
4218
|
ApplyLivenessTokenResponse: ApplyLivenessTokenResponse,
|
|
3853
|
-
|
|
4219
|
+
GetCardVerificationResultRequest: GetCardVerificationResultRequest,
|
|
3854
4220
|
CardInfo: CardInfo,
|
|
3855
4221
|
PhilippinesVoteID: PhilippinesVoteID,
|
|
3856
4222
|
WebVerificationConfigIntl: WebVerificationConfigIntl,
|
|
@@ -3864,15 +4230,18 @@ module.exports = {
|
|
|
3864
4230
|
FileInfo: FileInfo,
|
|
3865
4231
|
ApplyLivenessTokenRequest: ApplyLivenessTokenRequest,
|
|
3866
4232
|
PhilippinesDrivingLicense: PhilippinesDrivingLicense,
|
|
4233
|
+
GetCardVerificationResultResponse: GetCardVerificationResultResponse,
|
|
3867
4234
|
GenerateReflectSequenceResponse: GenerateReflectSequenceResponse,
|
|
3868
|
-
|
|
4235
|
+
GetWebVerificationResultIntlRequest: GetWebVerificationResultIntlRequest,
|
|
3869
4236
|
GeneralCard: GeneralCard,
|
|
4237
|
+
PhilippinesUMID: PhilippinesUMID,
|
|
3870
4238
|
PhilippinesTinID: PhilippinesTinID,
|
|
4239
|
+
ApplyCardVerificationRequest: ApplyCardVerificationRequest,
|
|
3871
4240
|
LivenessCompareRequest: LivenessCompareRequest,
|
|
3872
4241
|
MLIDCard: MLIDCard,
|
|
3873
4242
|
OCRResult: OCRResult,
|
|
3874
4243
|
GetFaceIdResultIntlResponse: GetFaceIdResultIntlResponse,
|
|
3875
|
-
|
|
4244
|
+
GetLivenessResultRequest: GetLivenessResultRequest,
|
|
3876
4245
|
CompareResult: CompareResult,
|
|
3877
4246
|
|
|
3878
4247
|
}
|