tencentcloud-sdk-nodejs-intl-en 3.0.1349 → 3.0.1350

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.
@@ -17,84 +17,102 @@
17
17
  const models = require("./models");
18
18
  const AbstractClient = require('../../common/abstract_client')
19
19
  const GetLivenessResultResponse = models.GetLivenessResultResponse;
20
+ const AttackRiskDetail = models.AttackRiskDetail;
21
+ const ExtraInfo = models.ExtraInfo;
22
+ const CheckIdNameDateResponse = models.CheckIdNameDateResponse;
23
+ const IdCardVerificationRequest = models.IdCardVerificationRequest;
24
+ const ImageRecognitionV2Response = models.ImageRecognitionV2Response;
25
+ const GetWebVerificationResultIntlResponse = models.GetWebVerificationResultIntlResponse;
26
+ const MobileStatusRequest = models.MobileStatusRequest;
27
+ const OCRResult = models.OCRResult;
28
+ const BangladeshIDCard = models.BangladeshIDCard;
29
+ const LivenessCompareResponse = models.LivenessCompareResponse;
30
+ const GenerateReflectSequenceResponse = models.GenerateReflectSequenceResponse;
31
+ const DetectAIFakeFacesRequest = models.DetectAIFakeFacesRequest;
32
+ const IndonesiaIDCard = models.IndonesiaIDCard;
33
+ const SingaporeIDCard = models.SingaporeIDCard;
34
+ const MacaoIDCard = models.MacaoIDCard;
35
+ const GeneralCard = models.GeneralCard;
36
+ const PhilippinesUMID = models.PhilippinesUMID;
37
+ const BankCard2EVerificationResponse = models.BankCard2EVerificationResponse;
38
+ const MobileStatusResponse = models.MobileStatusResponse;
39
+ const NormalThailandIDCard = models.NormalThailandIDCard;
20
40
  const GetFaceIdTokenIntlResponse = models.GetFaceIdTokenIntlResponse;
21
- const InternationalIDPassport = models.InternationalIDPassport;
22
- const ApplySdkVerificationTokenRequest = models.ApplySdkVerificationTokenRequest;
23
- const PhilippinesVoteID = models.PhilippinesVoteID;
24
41
  const GetSdkVerificationResultResponse = models.GetSdkVerificationResultResponse;
25
- const GetSdkVerificationResultRequest = models.GetSdkVerificationResultRequest;
26
42
  const ApplyWebVerificationBizTokenIntlResponse = models.ApplyWebVerificationBizTokenIntlResponse;
27
- const AttackRiskDetail = models.AttackRiskDetail;
28
- const Encryption = models.Encryption;
29
- const CreateUploadUrlResponse = models.CreateUploadUrlResponse;
30
- const NormalMLIDCard = models.NormalMLIDCard;
31
- const DetectReflectLivenessAndCompareResponse = models.DetectReflectLivenessAndCompareResponse;
32
43
  const DetectReflectLivenessAndCompareRequest = models.DetectReflectLivenessAndCompareRequest;
33
- const GetFaceIdTokenIntlRequest = models.GetFaceIdTokenIntlRequest;
34
- const JapanIDCard = models.JapanIDCard;
35
- const BankCardVerificationRequest = models.BankCardVerificationRequest;
36
- const EditDetail = models.EditDetail;
37
- const NigeriaDrivingLicense = models.NigeriaDrivingLicense;
44
+ const VideoLivenessCompareRequest = models.VideoLivenessCompareRequest;
38
45
  const CheckBankCardInformationResponse = models.CheckBankCardInformationResponse;
39
- const ThailandIDCard = models.ThailandIDCard;
40
- const VerificationDetail = models.VerificationDetail;
41
- const GetWebVerificationResultIntlResponse = models.GetWebVerificationResultIntlResponse;
42
- const FileInfo = models.FileInfo;
43
- const HKIDCard = models.HKIDCard;
44
- const SingaporeIDCard = models.SingaporeIDCard;
45
- const IndonesiaDrivingLicense = models.IndonesiaDrivingLicense;
46
46
  const GetFaceIdResultIntlRequest = models.GetFaceIdResultIntlRequest;
47
47
  const NormalCardInfo = models.NormalCardInfo;
48
+ const ApplySdkVerificationTokenRequest = models.ApplySdkVerificationTokenRequest;
49
+ const CardVerifyResult = models.CardVerifyResult;
50
+ const CheckIdNameDateRequest = models.CheckIdNameDateRequest;
51
+ const ApplyLivenessTokenResponse = models.ApplyLivenessTokenResponse;
52
+ const CardInfo = models.CardInfo;
53
+ const PhilippinesVoteID = models.PhilippinesVoteID;
54
+ const ApplySdkVerificationTokenResponse = models.ApplySdkVerificationTokenResponse;
55
+ const GetFaceIdTokenIntlRequest = models.GetFaceIdTokenIntlRequest;
48
56
  const PakistanDrivingLicense = models.PakistanDrivingLicense;
57
+ const CompareFaceLivenessRequest = models.CompareFaceLivenessRequest;
58
+ const NormalIndonesiaIDCard = models.NormalIndonesiaIDCard;
59
+ const HMTPermit = models.HMTPermit;
60
+ const PhilippinesTinID = models.PhilippinesTinID;
61
+ const DetectAIFakeFacesResponse = models.DetectAIFakeFacesResponse;
62
+ const LivenessCompareRequest = models.LivenessCompareRequest;
63
+ const MLIDCard = models.MLIDCard;
64
+ const GetFaceIdResultIntlResponse = models.GetFaceIdResultIntlResponse;
65
+ const CheckBankCardInformationRequest = models.CheckBankCardInformationRequest;
66
+ const BankCardVerificationRequest = models.BankCardVerificationRequest;
67
+ const ThailandIDCard = models.ThailandIDCard;
68
+ const CheckIdCardInformationResponse = models.CheckIdCardInformationResponse;
69
+ const PhoneVerificationResponse = models.PhoneVerificationResponse;
70
+ const IdCardOCRVerificationRequest = models.IdCardOCRVerificationRequest;
49
71
  const BankCard4EVerificationResponse = models.BankCard4EVerificationResponse;
50
72
  const GenerateReflectSequenceRequest = models.GenerateReflectSequenceRequest;
51
- const BangladeshIDCard = models.BangladeshIDCard;
52
- const VideoLivenessCompareResponse = models.VideoLivenessCompareResponse;
53
- const PhilippinesSSSID = models.PhilippinesSSSID;
54
- const CardVerifyResult = models.CardVerifyResult;
55
- const BankCard2EVerificationRequest = models.BankCard2EVerificationRequest;
56
- const Address = models.Address;
73
+ const EditDetail = models.EditDetail;
57
74
  const PakistanIDCard = models.PakistanIDCard;
58
- const CheckBankCardInformationRequest = models.CheckBankCardInformationRequest;
75
+ const Encryption = models.Encryption;
76
+ const MobileNetworkTimeVerificationRequest = models.MobileNetworkTimeVerificationRequest;
59
77
  const GetLivenessResultRequest = models.GetLivenessResultRequest;
60
- const CardInfo = models.CardInfo;
61
- const ExtraInfo = models.ExtraInfo;
62
- const WebVerificationConfigIntl = models.WebVerificationConfigIntl;
63
- const MainlandIDCard = models.MainlandIDCard;
64
- const DetectAIFakeFacesRequest = models.DetectAIFakeFacesRequest;
65
- const TaiWanIDCard = models.TaiWanIDCard;
66
- const RetrievalLivenessExtraInfo = models.RetrievalLivenessExtraInfo;
78
+ const CheckIdCardInformationRequest = models.CheckIdCardInformationRequest;
79
+ const IdCardOCRVerificationResponse = models.IdCardOCRVerificationResponse;
67
80
  const NigeriaIDCard = models.NigeriaIDCard;
68
- const NormalIndonesiaIDCard = models.NormalIndonesiaIDCard;
69
81
  const CompareFaceLivenessResponse = models.CompareFaceLivenessResponse;
70
82
  const BankCardVerificationResponse = models.BankCardVerificationResponse;
71
- const ApplySdkVerificationTokenResponse = models.ApplySdkVerificationTokenResponse;
83
+ const ApplyWebVerificationBizTokenIntlRequest = models.ApplyWebVerificationBizTokenIntlRequest;
84
+ const FileInfo = models.FileInfo;
85
+ const PhilippinesDrivingLicense = models.PhilippinesDrivingLicense;
86
+ const PhilippinesSSSID = models.PhilippinesSSSID;
87
+ const ImageRecognitionResponse = models.ImageRecognitionResponse;
88
+ const IdCardVerificationResponse = models.IdCardVerificationResponse;
89
+ const WebVerificationConfigIntl = models.WebVerificationConfigIntl;
90
+ const CompareResult = models.CompareResult;
91
+ const InternationalIDPassport = models.InternationalIDPassport;
92
+ const MobileNetworkTimeVerificationResponse = models.MobileNetworkTimeVerificationResponse;
93
+ const CreateUploadUrlResponse = models.CreateUploadUrlResponse;
94
+ const JapanIDCard = models.JapanIDCard;
95
+ const NigeriaDrivingLicense = models.NigeriaDrivingLicense;
96
+ const HKIDCard = models.HKIDCard;
97
+ const PhoneVerificationRequest = models.PhoneVerificationRequest;
98
+ const IndonesiaDrivingLicense = models.IndonesiaDrivingLicense;
99
+ const VerificationDetail = models.VerificationDetail;
100
+ const DetectReflectLivenessAndCompareResponse = models.DetectReflectLivenessAndCompareResponse;
101
+ const VideoLivenessCompareResponse = models.VideoLivenessCompareResponse;
102
+ const BankCard2EVerificationRequest = models.BankCard2EVerificationRequest;
103
+ const Address = models.Address;
104
+ const RetrievalLivenessExtraInfo = models.RetrievalLivenessExtraInfo;
105
+ const ImageRecognitionV2Request = models.ImageRecognitionV2Request;
106
+ const MainlandIDCard = models.MainlandIDCard;
107
+ const NormalMLIDCard = models.NormalMLIDCard;
108
+ const ImageRecognitionRequest = models.ImageRecognitionRequest;
72
109
  const BankCard4EVerificationRequest = models.BankCard4EVerificationRequest;
73
110
  const CreateUploadUrlRequest = models.CreateUploadUrlRequest;
74
- const ApplyWebVerificationBizTokenIntlRequest = models.ApplyWebVerificationBizTokenIntlRequest;
75
111
  const NormalHKIDCard = models.NormalHKIDCard;
76
- const CompareFaceLivenessRequest = models.CompareFaceLivenessRequest;
112
+ const GetSdkVerificationResultRequest = models.GetSdkVerificationResultRequest;
77
113
  const ApplyLivenessTokenRequest = models.ApplyLivenessTokenRequest;
78
- const NormalThailandIDCard = models.NormalThailandIDCard;
79
- const PhilippinesDrivingLicense = models.PhilippinesDrivingLicense;
80
- const VideoLivenessCompareRequest = models.VideoLivenessCompareRequest;
81
- const GenerateReflectSequenceResponse = models.GenerateReflectSequenceResponse;
82
- const HMTPermit = models.HMTPermit;
83
- const IndonesiaIDCard = models.IndonesiaIDCard;
84
- const GeneralCard = models.GeneralCard;
85
- const LivenessCompareResponse = models.LivenessCompareResponse;
86
- const MacaoIDCard = models.MacaoIDCard;
87
- const PhilippinesUMID = models.PhilippinesUMID;
88
- const BankCard2EVerificationResponse = models.BankCard2EVerificationResponse;
89
- const ApplyLivenessTokenResponse = models.ApplyLivenessTokenResponse;
90
- const PhilippinesTinID = models.PhilippinesTinID;
91
- const DetectAIFakeFacesResponse = models.DetectAIFakeFacesResponse;
92
- const LivenessCompareRequest = models.LivenessCompareRequest;
93
- const MLIDCard = models.MLIDCard;
94
- const OCRResult = models.OCRResult;
95
- const GetFaceIdResultIntlResponse = models.GetFaceIdResultIntlResponse;
114
+ const TaiWanIDCard = models.TaiWanIDCard;
96
115
  const GetWebVerificationResultIntlRequest = models.GetWebVerificationResultIntlRequest;
97
- const CompareResult = models.CompareResult;
98
116
 
99
117
 
100
118
  /**
@@ -119,60 +137,103 @@ class FaceidClient extends AbstractClient {
119
137
  }
120
138
 
121
139
  /**
122
- * 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.
123
- * @param {ApplyLivenessTokenRequest} req
124
- * @param {function(string, ApplyLivenessTokenResponse):void} cb
140
+ * This API is used to import the ID card portrait side photo, recognize the information on the ID card photo, and compare the name, identity card number, and ID card portrait photo with the ID photo in the authoritative database to verify if they belong to the same person, thereby verifying the authenticity of the identity card information.
141
+ * @param {CheckIdCardInformationRequest} req
142
+ * @param {function(string, CheckIdCardInformationResponse):void} cb
125
143
  * @public
126
144
  */
127
- ApplyLivenessToken(req, cb) {
128
- let resp = new ApplyLivenessTokenResponse();
129
- this.request("ApplyLivenessToken", req, resp, cb);
145
+ CheckIdCardInformation(req, cb) {
146
+ let resp = new CheckIdCardInformationResponse();
147
+ this.request("CheckIdCardInformation", req, resp, cb);
130
148
  }
131
149
 
132
150
  /**
133
- * This interface supports judgment of real person and photo comparison to verify the user's identity online. By passing the video and photo into the interface, it will first judge whether the person in the video is real. If yes, it judges whether the person in the video is the same one as the uploaded photo and returns authentication result.
134
- * @param {CompareFaceLivenessRequest} req
135
- * @param {function(string, CompareFaceLivenessResponse):void} cb
151
+ * This API is used to apply for an SDK token before calling the selfie verification SDK each time. The SDK token is used throughout the eKYC process and to get the verification result after the verification is completed. A token is valid for one eKYC process only.
152
+ * @param {GetFaceIdTokenIntlRequest} req
153
+ * @param {function(string, GetFaceIdTokenIntlResponse):void} cb
136
154
  * @public
137
155
  */
138
- CompareFaceLiveness(req, cb) {
139
- let resp = new CompareFaceLivenessResponse();
140
- this.request("CompareFaceLiveness", req, resp, cb);
156
+ GetFaceIdTokenIntl(req, cb) {
157
+ let resp = new GetFaceIdTokenIntlResponse();
158
+ this.request("GetFaceIdTokenIntl", req, resp, cb);
141
159
  }
142
160
 
143
161
  /**
144
- * This API is used to get the verification result with the corresponding BizToken after the web-based verification is completed. The token is valid for three days (259,200s) after issuance and can be called multiple times.
145
- * @param {GetWebVerificationResultIntlRequest} req
146
- * @param {function(string, GetWebVerificationResultIntlResponse):void} cb
162
+ * This API is used to obtain a BizToken before each call to the Web verification service. Save the BizToken to initiate the verification process and retrieve the result upon completion. The BizToken is valid for 10 minutes.
163
+ * @param {ApplyWebVerificationBizTokenIntlRequest} req
164
+ * @param {function(string, ApplyWebVerificationBizTokenIntlResponse):void} cb
147
165
  * @public
148
166
  */
149
- GetWebVerificationResultIntl(req, cb) {
150
- let resp = new GetWebVerificationResultIntlResponse();
151
- this.request("GetWebVerificationResultIntl", req, resp, cb);
167
+ ApplyWebVerificationBizTokenIntl(req, cb) {
168
+ let resp = new ApplyWebVerificationBizTokenIntlResponse();
169
+ this.request("ApplyWebVerificationBizTokenIntl", req, resp, cb);
152
170
  }
153
171
 
154
172
  /**
155
- * 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 eKYC process.
156
- 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.
157
- * @param {GenerateReflectSequenceRequest} req
158
- * @param {function(string, GenerateReflectSequenceResponse):void} cb
173
+ * This API is used to get the verification result with the corresponding SDK token after the identity verification process is completed. The SDK token is valid for 72 hours (72*3600s) after generation and can be called multiple times.
174
+ * @param {GetFaceIdResultIntlRequest} req
175
+ * @param {function(string, GetFaceIdResultIntlResponse):void} cb
159
176
  * @public
160
177
  */
161
- GenerateReflectSequence(req, cb) {
162
- let resp = new GenerateReflectSequenceResponse();
163
- this.request("GenerateReflectSequence", req, resp, cb);
178
+ GetFaceIdResultIntl(req, cb) {
179
+ let resp = new GetFaceIdResultIntlResponse();
180
+ this.request("GetFaceIdResultIntl", req, resp, cb);
164
181
  }
165
182
 
166
183
  /**
167
- * This API is used to detect liveness with the package generated by the liveness comparison (reflection-based) SDK, and to compare the person detected with that in the image passed in.
168
- The image and 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.
169
- * @param {DetectReflectLivenessAndCompareRequest} req
170
- * @param {function(string, DetectReflectLivenessAndCompareResponse):void} cb
184
+ * 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).
185
+ The data will be stored in a COS bucket in the region specified by the parameter `Region` for two hours.
186
+ * @param {CreateUploadUrlRequest} req
187
+ * @param {function(string, CreateUploadUrlResponse):void} cb
171
188
  * @public
172
189
  */
173
- DetectReflectLivenessAndCompare(req, cb) {
174
- let resp = new DetectReflectLivenessAndCompareResponse();
175
- this.request("DetectReflectLivenessAndCompare", req, resp, cb);
190
+ CreateUploadUrl(req, cb) {
191
+ let resp = new CreateUploadUrlResponse();
192
+ this.request("CreateUploadUrl", req, resp, cb);
193
+ }
194
+
195
+ /**
196
+ * This API is used to verify the authenticity and consistency of the bank card number, name, ID number, and mobile number for account opening.
197
+ * @param {BankCard4EVerificationRequest} req
198
+ * @param {function(string, BankCard4EVerificationResponse):void} cb
199
+ * @public
200
+ */
201
+ BankCard4EVerification(req, cb) {
202
+ let resp = new BankCard4EVerificationResponse();
203
+ this.request("BankCard4EVerification", req, resp, cb);
204
+ }
205
+
206
+ /**
207
+ * This API is used to apply for a token before calling the eKYC SDK service each time. This token is required for initiating the verification process and getting the result after the verification is completed.
208
+ * @param {ApplySdkVerificationTokenRequest} req
209
+ * @param {function(string, ApplySdkVerificationTokenResponse):void} cb
210
+ * @public
211
+ */
212
+ ApplySdkVerificationToken(req, cb) {
213
+ let resp = new ApplySdkVerificationTokenResponse();
214
+ this.request("ApplySdkVerificationToken", req, resp, cb);
215
+ }
216
+
217
+ /**
218
+ * This API is used to query the duration of a mobile number. Enter mobile number to query.
219
+ * @param {MobileNetworkTimeVerificationRequest} req
220
+ * @param {function(string, MobileNetworkTimeVerificationResponse):void} cb
221
+ * @public
222
+ */
223
+ MobileNetworkTimeVerification(req, cb) {
224
+ let resp = new MobileNetworkTimeVerificationResponse();
225
+ this.request("MobileNetworkTimeVerification", req, resp, cb);
226
+ }
227
+
228
+ /**
229
+ * 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.
230
+ * @param {ApplyLivenessTokenRequest} req
231
+ * @param {function(string, ApplyLivenessTokenResponse):void} cb
232
+ * @public
233
+ */
234
+ ApplyLivenessToken(req, cb) {
235
+ let resp = new ApplyLivenessTokenResponse();
236
+ this.request("ApplyLivenessToken", req, resp, cb);
176
237
  }
177
238
 
178
239
  /**
@@ -187,14 +248,14 @@ The image and the data generated with the SDK must be stored in COS, and the reg
187
248
  }
188
249
 
189
250
  /**
190
- * This API is used to apply for an SDK token before calling the selfie verification SDK each time. The SDK token is used throughout the eKYC process and to get the verification result after the verification is completed. A token is valid for one eKYC process only.
191
- * @param {GetFaceIdTokenIntlRequest} req
192
- * @param {function(string, GetFaceIdTokenIntlResponse):void} cb
251
+ * This API is used to judge whether the image passed in and the ID photo in the authoritative database belong to the same person based on the identity information.
252
+ * @param {ImageRecognitionV2Request} req
253
+ * @param {function(string, ImageRecognitionV2Response):void} cb
193
254
  * @public
194
255
  */
195
- GetFaceIdTokenIntl(req, cb) {
196
- let resp = new GetFaceIdTokenIntlResponse();
197
- this.request("GetFaceIdTokenIntl", req, resp, cb);
256
+ ImageRecognitionV2(req, cb) {
257
+ let resp = new ImageRecognitionV2Response();
258
+ this.request("ImageRecognitionV2", req, resp, cb);
198
259
  }
199
260
 
200
261
  /**
@@ -210,25 +271,15 @@ This API on the legacy version will continue to serve existing users but will be
210
271
  }
211
272
 
212
273
  /**
213
- * This API is used to obtain a BizToken before each call to the Web verification service. Save the BizToken to initiate the verification process and retrieve the result upon completion. The BizToken is valid for 10 minutes.
214
- * @param {ApplyWebVerificationBizTokenIntlRequest} req
215
- * @param {function(string, ApplyWebVerificationBizTokenIntlResponse):void} cb
216
- * @public
217
- */
218
- ApplyWebVerificationBizTokenIntl(req, cb) {
219
- let resp = new ApplyWebVerificationBizTokenIntlResponse();
220
- this.request("ApplyWebVerificationBizTokenIntl", req, resp, cb);
221
- }
222
-
223
- /**
224
- * This API is used to get the verification result with the corresponding SDK token after the identity verification process is completed. The SDK token is valid for 72 hours (72*3600s) after generation and can be called multiple times.
225
- * @param {GetFaceIdResultIntlRequest} req
226
- * @param {function(string, GetFaceIdResultIntlResponse):void} cb
274
+ * 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 eKYC process.
275
+ 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.
276
+ * @param {GenerateReflectSequenceRequest} req
277
+ * @param {function(string, GenerateReflectSequenceResponse):void} cb
227
278
  * @public
228
279
  */
229
- GetFaceIdResultIntl(req, cb) {
230
- let resp = new GetFaceIdResultIntlResponse();
231
- this.request("GetFaceIdResultIntl", req, resp, cb);
280
+ GenerateReflectSequence(req, cb) {
281
+ let resp = new GenerateReflectSequenceResponse();
282
+ this.request("GenerateReflectSequence", req, resp, cb);
232
283
  }
233
284
 
234
285
  /**
@@ -243,48 +294,36 @@ This API on the legacy version will continue to serve existing users but will be
243
294
  }
244
295
 
245
296
  /**
246
- * This API is used to validate the authenticity and consistency of the name and bank card number.
247
- * @param {BankCard2EVerificationRequest} req
248
- * @param {function(string, BankCard2EVerificationResponse):void} cb
297
+ * This API is used to validate the authenticity and consistency of the name and identity card number. You can provide the required verification information by manually inputting the name and identity card number or importing the ID card portrait side image.
298
+ * @param {IdCardOCRVerificationRequest} req
299
+ * @param {function(string, IdCardOCRVerificationResponse):void} cb
249
300
  * @public
250
301
  */
251
- BankCard2EVerification(req, cb) {
252
- let resp = new BankCard2EVerificationResponse();
253
- this.request("BankCard2EVerification", req, resp, cb);
302
+ IdCardOCRVerification(req, cb) {
303
+ let resp = new IdCardOCRVerificationResponse();
304
+ this.request("IdCardOCRVerification", req, resp, cb);
254
305
  }
255
306
 
256
307
  /**
257
- * 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).
258
- The data will be stored in a COS bucket in the region specified by the parameter `Region` for two hours.
259
- * @param {CreateUploadUrlRequest} req
260
- * @param {function(string, CreateUploadUrlResponse):void} cb
261
- * @public
262
- */
263
- CreateUploadUrl(req, cb) {
264
- let resp = new CreateUploadUrlResponse();
265
- this.request("CreateUploadUrl", req, resp, cb);
266
- }
267
-
268
- /**
269
- * This API is used to verify the authenticity and consistency of the bank card number, name, ID number, and mobile number for account opening.
270
- * @param {BankCard4EVerificationRequest} req
271
- * @param {function(string, BankCard4EVerificationResponse):void} cb
308
+ * This interface supports judgment of real person and photo comparison to verify the user's identity online. By passing the video and photo into the interface, it will first judge whether the person in the video is real. If yes, it judges whether the person in the video is the same one as the uploaded photo and returns authentication result.
309
+ * @param {CompareFaceLivenessRequest} req
310
+ * @param {function(string, CompareFaceLivenessResponse):void} cb
272
311
  * @public
273
312
  */
274
- BankCard4EVerification(req, cb) {
275
- let resp = new BankCard4EVerificationResponse();
276
- this.request("BankCard4EVerification", req, resp, cb);
313
+ CompareFaceLiveness(req, cb) {
314
+ let resp = new CompareFaceLivenessResponse();
315
+ this.request("CompareFaceLiveness", req, resp, cb);
277
316
  }
278
317
 
279
318
  /**
280
- * This API is used to apply for a token before calling the eKYC SDK service each time. This token is required for initiating the verification process and getting the result after the verification is completed.
281
- * @param {ApplySdkVerificationTokenRequest} req
282
- * @param {function(string, ApplySdkVerificationTokenResponse):void} cb
319
+ * This API is used to judge whether the image passed in and the ID photo in the authoritative database belong to the same person based on the identity information (this interface has stopped integration, new customers please use the <a href="https://www.tencentcloud.com/document/product/1007/102203?from_cn_redirect=1">photo face verification (V2.0)</a> API).
320
+ * @param {ImageRecognitionRequest} req
321
+ * @param {function(string, ImageRecognitionResponse):void} cb
283
322
  * @public
284
323
  */
285
- ApplySdkVerificationToken(req, cb) {
286
- let resp = new ApplySdkVerificationTokenResponse();
287
- this.request("ApplySdkVerificationToken", req, resp, cb);
324
+ ImageRecognition(req, cb) {
325
+ let resp = new ImageRecognitionResponse();
326
+ this.request("ImageRecognition", req, resp, cb);
288
327
  }
289
328
 
290
329
  /**
@@ -298,6 +337,62 @@ The data will be stored in a COS bucket in the region specified by the parameter
298
337
  this.request("DetectAIFakeFaces", req, resp, cb);
299
338
  }
300
339
 
340
+ /**
341
+ * This API is used to validate the authenticity and consistency of the mobile number, name, and identity card number. For details on supported mobile number segments, see the <a href="https://www.tencentcloud.com/document/product/1007/46063?from_cn_redirect=1">carrier</a> document.
342
+ * @param {PhoneVerificationRequest} req
343
+ * @param {function(string, PhoneVerificationResponse):void} cb
344
+ * @public
345
+ */
346
+ PhoneVerification(req, cb) {
347
+ let resp = new PhoneVerificationResponse();
348
+ this.request("PhoneVerification", req, resp, cb);
349
+ }
350
+
351
+ /**
352
+ * This API is used to detect liveness with the package generated by the liveness comparison (reflection-based) SDK, and to compare the person detected with that in the image passed in.
353
+ The image and 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.
354
+ * @param {DetectReflectLivenessAndCompareRequest} req
355
+ * @param {function(string, DetectReflectLivenessAndCompareResponse):void} cb
356
+ * @public
357
+ */
358
+ DetectReflectLivenessAndCompare(req, cb) {
359
+ let resp = new DetectReflectLivenessAndCompareResponse();
360
+ this.request("DetectReflectLivenessAndCompare", req, resp, cb);
361
+ }
362
+
363
+ /**
364
+ * This API is used to validate the authenticity and consistency of the name and identity card number.
365
+ * @param {IdCardVerificationRequest} req
366
+ * @param {function(string, IdCardVerificationResponse):void} cb
367
+ * @public
368
+ */
369
+ IdCardVerification(req, cb) {
370
+ let resp = new IdCardVerificationResponse();
371
+ this.request("IdCardVerification", req, resp, cb);
372
+ }
373
+
374
+ /**
375
+ * This API is used to get the verification result with the corresponding BizToken after the web-based verification is completed. The token is valid for three days (259,200s) after issuance and can be called multiple times.
376
+ * @param {GetWebVerificationResultIntlRequest} req
377
+ * @param {function(string, GetWebVerificationResultIntlResponse):void} cb
378
+ * @public
379
+ */
380
+ GetWebVerificationResultIntl(req, cb) {
381
+ let resp = new GetWebVerificationResultIntlResponse();
382
+ this.request("GetWebVerificationResultIntl", req, resp, cb);
383
+ }
384
+
385
+ /**
386
+ * This API is used to validate the authenticity and consistency of the name, identity card number, and valid period.
387
+ * @param {CheckIdNameDateRequest} req
388
+ * @param {function(string, CheckIdNameDateResponse):void} cb
389
+ * @public
390
+ */
391
+ CheckIdNameDate(req, cb) {
392
+ let resp = new CheckIdNameDateResponse();
393
+ this.request("CheckIdNameDate", req, resp, cb);
394
+ }
395
+
301
396
  /**
302
397
  * Bank card basic information query
303
398
  * @param {CheckBankCardInformationRequest} req
@@ -309,6 +404,28 @@ The data will be stored in a COS bucket in the region specified by the parameter
309
404
  this.request("CheckBankCardInformation", req, resp, cb);
310
405
  }
311
406
 
407
+ /**
408
+ * This API is used to verify phone number status. You can enter mobile number to query.
409
+ * @param {MobileStatusRequest} req
410
+ * @param {function(string, MobileStatusResponse):void} cb
411
+ * @public
412
+ */
413
+ MobileStatus(req, cb) {
414
+ let resp = new MobileStatusResponse();
415
+ this.request("MobileStatus", req, resp, cb);
416
+ }
417
+
418
+ /**
419
+ * This API is used to validate the authenticity and consistency of the name and bank card number.
420
+ * @param {BankCard2EVerificationRequest} req
421
+ * @param {function(string, BankCard2EVerificationResponse):void} cb
422
+ * @public
423
+ */
424
+ BankCard2EVerification(req, cb) {
425
+ let resp = new BankCard2EVerificationResponse();
426
+ this.request("BankCard2EVerification", req, resp, cb);
427
+ }
428
+
312
429
  /**
313
430
  * 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.
314
431
  * @param {GetLivenessResultRequest} req