tencentcloud-sdk-nodejs-faceid 4.0.1040 → 4.1.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,494 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
- /*
3
- * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
19
- import {
20
- AttackRiskDetail,
21
- ExtraInfo,
22
- GetFaceidRiskInfoTokenResponse,
23
- CheckIdNameDateResponse,
24
- IdCardVerificationRequest,
25
- ImageRecognitionV2Response,
26
- GetDetectInfoEnhancedResponse,
27
- IntentionQuestionResult,
28
- RuleIdConfig,
29
- MobileStatusRequest,
30
- ParseNfcDataResponse,
31
- LivenessRecognitionRequest,
32
- CheckEidTokenStatusResponse,
33
- EidInfo,
34
- DetectAuthRequest,
35
- CheckEidTokenStatusRequest,
36
- GetFaceIdRiskInfoResponse,
37
- LivenessCompareResponse,
38
- BankCard2EVerificationResponse,
39
- MobileStatusResponse,
40
- LivenessResponse,
41
- EncryptedPhoneVerificationRequest,
42
- EncryptedPhoneVerificationResponse,
43
- DetectInfoVideoData,
44
- LivenessRequest,
45
- DetectAIFakeFacesRequest,
46
- CheckBankCardInformationResponse,
47
- GetEidTokenRequest,
48
- CheckIdNameDateRequest,
49
- GetFaceIdTokenResponse,
50
- IntentionActionResultDetail,
51
- MinorsVerificationRequest,
52
- GetFaceIdResultResponse,
53
- DetectAIFakeFacesResponse,
54
- IntentionVerifyData,
55
- LivenessCompareRequest,
56
- DetectDetail,
57
- RetrievalLivenessExtraInfo,
58
- IntentionActionConfig,
59
- CheckBankCardInformationRequest,
60
- BankCardVerificationRequest,
61
- DetectInfoBestFrame,
62
- GetWeChatBillDetailsResponse,
63
- CheckIdCardInformationResponse,
64
- GetEidResultRequest,
65
- DetectAuthResponse,
66
- PhoneVerificationResponse,
67
- IdCardOCRVerificationRequest,
68
- BankCard4EVerificationResponse,
69
- Encryption,
70
- MobileNetworkTimeVerificationRequest,
71
- PhoneVerificationCMCCResponse,
72
- MobileNetworkTimeVerificationResponse,
73
- PhoneVerificationCUCCResponse,
74
- CheckIdCardInformationRequest,
75
- GetEidTokenConfig,
76
- MinorsVerificationResponse,
77
- GetWeChatBillDetailsRequest,
78
- BankCardVerificationResponse,
79
- PhoneVerificationCUCCRequest,
80
- PhoneVerificationCMCCRequest,
81
- DetectInfoText,
82
- ImageRecognitionResponse,
83
- GetDetectInfoResponse,
84
- IdCardOCRVerificationResponse,
85
- IdCardVerificationResponse,
86
- GetActionSequenceRequest,
87
- GetDetectInfoEnhancedRequest,
88
- LivenessRecognitionResponse,
89
- GetLiveCodeRequest,
90
- GetEidResultResponse,
91
- WeChatBillDetail,
92
- PhoneVerificationRequest,
93
- GetFaceIdResultRequest,
94
- CheckPhoneAndNameResponse,
95
- GetFaceIdTokenRequest,
96
- IntentionActionResult,
97
- GetFaceidRiskInfoTokenRequest,
98
- BankCard2EVerificationRequest,
99
- ImageRecognitionV2Request,
100
- PhoneVerificationCTCCResponse,
101
- ChargeDetail,
102
- ParseNfcDataRequest,
103
- PhoneVerificationCTCCRequest,
104
- ImageRecognitionRequest,
105
- BankCard4EVerificationRequest,
106
- GetActionSequenceResponse,
107
- GetFaceIdRiskInfoRequest,
108
- GetLiveCodeResponse,
109
- GetDetectInfoRequest,
110
- DetectInfoIdCardData,
111
- CheckPhoneAndNameRequest,
112
- GetEidTokenResponse,
113
- IntentionQuestion,
114
- } from "./faceid_models"
115
-
116
- /**
117
- * faceid client
118
- * @class
119
- */
120
- export class Client extends TencentCloudCommon.AbstractClient {
121
- constructor(clientConfig: TencentCloudCommon.ClientConfig) {
122
- super("faceid.tencentcloudapi.com", "2018-03-01", clientConfig)
123
- }
124
-
125
- /**
126
- * 使用数字活体检测模式前,需调用本接口获取数字验证码。
127
- */
128
- async GetLiveCode(
129
- req?: GetLiveCodeRequest,
130
- cb?: (error: string, rep: GetLiveCodeResponse) => void
131
- ): Promise<GetLiveCodeResponse> {
132
- return this.request("GetLiveCode", req, cb)
133
- }
134
-
135
- /**
136
- * 完成验证后,用FaceIdToken调用本接口获取设备风险相关信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
137
- */
138
- async GetFaceIdRiskInfo(
139
- req: GetFaceIdRiskInfoRequest,
140
- cb?: (error: string, rep: GetFaceIdRiskInfoResponse) => void
141
- ): Promise<GetFaceIdRiskInfoResponse> {
142
- return this.request("GetFaceIdRiskInfo", req, cb)
143
- }
144
-
145
- /**
146
- * 查询微信渠道服务(微信小程序、微信原生H5、微信普通H5)的账单明细及计费状态。
147
- */
148
- async GetWeChatBillDetails(
149
- req: GetWeChatBillDetailsRequest,
150
- cb?: (error: string, rep: GetWeChatBillDetailsResponse) => void
151
- ): Promise<GetWeChatBillDetailsResponse> {
152
- return this.request("GetWeChatBillDetails", req, cb)
153
- }
154
-
155
- /**
156
- * 传入身份证人像面照片,识别身份证照片上的信息,并将姓名、身份证号、身份证人像照片与权威库的证件照进行比对,是否属于同一个人,从而验证身份证信息的真实性。
157
- */
158
- async CheckIdCardInformation(
159
- req: CheckIdCardInformationRequest,
160
- cb?: (error: string, rep: CheckIdCardInformationResponse) => void
161
- ): Promise<CheckIdCardInformationResponse> {
162
- return this.request("CheckIdCardInformation", req, cb)
163
- }
164
-
165
- /**
166
- * 用于轮询E证通H5场景EidToken验证状态。
167
- */
168
- async CheckEidTokenStatus(
169
- req: CheckEidTokenStatusRequest,
170
- cb?: (error: string, rep: CheckEidTokenStatusResponse) => void
171
- ): Promise<CheckEidTokenStatusResponse> {
172
- return this.request("CheckEidTokenStatus", req, cb)
173
- }
174
-
175
- /**
176
- * 本接口用于输入银行卡号、姓名、开户证件号、开户手机号,校验信息的真实性和一致性。
177
- */
178
- async BankCard4EVerification(
179
- req: BankCard4EVerificationRequest,
180
- cb?: (error: string, rep: BankCard4EVerificationResponse) => void
181
- ): Promise<BankCard4EVerificationResponse> {
182
- return this.request("BankCard4EVerification", req, cb)
183
- }
184
-
185
- /**
186
- * 本接口用于校验手机号、姓名和身份证号的真实性和一致性,入参支持明文、MD5和SHA256加密传输。
187
- */
188
- async EncryptedPhoneVerification(
189
- req: EncryptedPhoneVerificationRequest,
190
- cb?: (error: string, rep: EncryptedPhoneVerificationResponse) => void
191
- ): Promise<EncryptedPhoneVerificationResponse> {
192
- return this.request("EncryptedPhoneVerification", req, cb)
193
- }
194
-
195
- /**
196
- * 使用动作活体检测模式前,需调用本接口获取动作顺序。
197
- */
198
- async GetActionSequence(
199
- req: GetActionSequenceRequest,
200
- cb?: (error: string, rep: GetActionSequenceResponse) => void
201
- ): Promise<GetActionSequenceResponse> {
202
- return this.request("GetActionSequence", req, cb)
203
- }
204
-
205
- /**
206
- * 完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
207
- */
208
- async GetDetectInfoEnhanced(
209
- req: GetDetectInfoEnhancedRequest,
210
- cb?: (error: string, rep: GetDetectInfoEnhancedResponse) => void
211
- ): Promise<GetDetectInfoEnhancedResponse> {
212
- return this.request("GetDetectInfoEnhanced", req, cb)
213
- }
214
-
215
- /**
216
- * 每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取验证结果信息,该token仅能核身一次。
217
- */
218
- async GetFaceIdToken(
219
- req: GetFaceIdTokenRequest,
220
- cb?: (error: string, rep: GetFaceIdTokenResponse) => void
221
- ): Promise<GetFaceIdTokenResponse> {
222
- return this.request("GetFaceIdToken", req, cb)
223
- }
224
-
225
- /**
226
- * 手机号二要素核验接口用于校验手机号和姓名的真实性和一致性,支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
227
- */
228
- async CheckPhoneAndName(
229
- req: CheckPhoneAndNameRequest,
230
- cb?: (error: string, rep: CheckPhoneAndNameResponse) => void
231
- ): Promise<CheckPhoneAndNameResponse> {
232
- return this.request("CheckPhoneAndName", req, cb)
233
- }
234
-
235
- /**
236
- * 本接口用于银行卡号、姓名、开户证件号信息的真实性和一致性。
237
- */
238
- async BankCardVerification(
239
- req: BankCardVerificationRequest,
240
- cb?: (error: string, rep: BankCardVerificationResponse) => void
241
- ): Promise<BankCardVerificationResponse> {
242
- return this.request("BankCardVerification", req, cb)
243
- }
244
-
245
- /**
246
- * 传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人。
247
- */
248
- async ImageRecognitionV2(
249
- req: ImageRecognitionV2Request,
250
- cb?: (error: string, rep: ImageRecognitionV2Response) => void
251
- ): Promise<ImageRecognitionV2Response> {
252
- return this.request("ImageRecognitionV2", req, cb)
253
- }
254
-
255
- /**
256
- * 传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
257
- */
258
- async LivenessCompare(
259
- req: LivenessCompareRequest,
260
- cb?: (error: string, rep: LivenessCompareResponse) => void
261
- ): Promise<LivenessCompareResponse> {
262
- return this.request("LivenessCompare", req, cb)
263
- }
264
-
265
- /**
266
- * 本接口用于校验姓名和身份证号的真实性和一致性,您可以通过输入姓名和身份证号或传入身份证人像面照片提供所需验证信息。
267
- */
268
- async IdCardOCRVerification(
269
- req: IdCardOCRVerificationRequest,
270
- cb?: (error: string, rep: IdCardOCRVerificationResponse) => void
271
- ): Promise<IdCardOCRVerificationResponse> {
272
- return this.request("IdCardOCRVerification", req, cb)
273
- }
274
-
275
- /**
276
- * 完成验证后,用FaceIdToken调用本接口获取结果信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
277
- */
278
- async GetFaceIdResult(
279
- req: GetFaceIdResultRequest,
280
- cb?: (error: string, rep: GetFaceIdResultResponse) => void
281
- ): Promise<GetFaceIdResultResponse> {
282
- return this.request("GetFaceIdResult", req, cb)
283
- }
284
-
285
- /**
286
- * 传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人(该接口已停止接入,新客户请使用<a href="https://cloud.tencent.com/document/product/1007/102203">照片人脸核身(V2.0)</a>接口)。
287
- */
288
- async ImageRecognition(
289
- req: ImageRecognitionRequest,
290
- cb?: (error: string, rep: ImageRecognitionResponse) => void
291
- ): Promise<ImageRecognitionResponse> {
292
- return this.request("ImageRecognition", req, cb)
293
- }
294
-
295
- /**
296
- * 每次调用E证通服务前,需先调用本接口获取EidToken,用来串联E证通流程,在验证完成后,用于获取E证通结果信息。
297
- */
298
- async GetEidToken(
299
- req: GetEidTokenRequest,
300
- cb?: (error: string, rep: GetEidTokenResponse) => void
301
- ): Promise<GetEidTokenResponse> {
302
- return this.request("GetEidToken", req, cb)
303
- }
304
-
305
- /**
306
- * 基于多模态的AI大模型算法,提供对人脸图片、视频的防攻击检测能力,可针对性有效识别高仿真的AIGC换脸、高清翻拍、批量黑产攻击、水印等攻击痕迹,增强对图片和视频的防伪安全能力。
307
- */
308
- async DetectAIFakeFaces(
309
- req: DetectAIFakeFacesRequest,
310
- cb?: (error: string, rep: DetectAIFakeFacesResponse) => void
311
- ): Promise<DetectAIFakeFacesResponse> {
312
- return this.request("DetectAIFakeFaces", req, cb)
313
- }
314
-
315
- /**
316
- * 本接口用于校验手机号、姓名和身份证号的真实性和一致性。支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
317
- */
318
- async PhoneVerification(
319
- req: PhoneVerificationRequest,
320
- cb?: (error: string, rep: PhoneVerificationResponse) => void
321
- ): Promise<PhoneVerificationResponse> {
322
- return this.request("PhoneVerification", req, cb)
323
- }
324
-
325
- /**
326
- * 本接口用于验证手机号的状态,您可以输入手机号进行查询。
327
- */
328
- async MobileStatus(
329
- req: MobileStatusRequest,
330
- cb?: (error: string, rep: MobileStatusResponse) => void
331
- ): Promise<MobileStatusResponse> {
332
- return this.request("MobileStatus", req, cb)
333
- }
334
-
335
- /**
336
- * 本接口用于校验姓名、身份证号、身份证有效期的真实性和一致性。
337
- */
338
- async CheckIdNameDate(
339
- req: CheckIdNameDateRequest,
340
- cb?: (error: string, rep: CheckIdNameDateResponse) => void
341
- ): Promise<CheckIdNameDateResponse> {
342
- return this.request("CheckIdNameDate", req, cb)
343
- }
344
-
345
- /**
346
- * 本接口用于校验中国移动手机号、姓名和身份证号的真实性和一致性。中国移动支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
347
- */
348
- async PhoneVerificationCMCC(
349
- req: PhoneVerificationCMCCRequest,
350
- cb?: (error: string, rep: PhoneVerificationCMCCResponse) => void
351
- ): Promise<PhoneVerificationCMCCResponse> {
352
- return this.request("PhoneVerificationCMCC", req, cb)
353
- }
354
-
355
- /**
356
- * 通过传入手机号或姓名和身份证号,结合权威数据源和腾讯健康守护可信模型,判断该信息是否真实且年满18周岁。腾讯健康守护可信模型覆盖了上十亿手机库源,覆盖率高、准确率高,如果不在库中的手机号,还可以通过姓名+身份证进行兜底验证。
357
- */
358
- async MinorsVerification(
359
- req: MinorsVerificationRequest,
360
- cb?: (error: string, rep: MinorsVerificationResponse) => void
361
- ): Promise<MinorsVerificationResponse> {
362
- return this.request("MinorsVerification", req, cb)
363
- }
364
-
365
- /**
366
- * 每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取风险结果信息,该Token仅能核身一次。
367
- */
368
- async GetFaceidRiskInfoToken(
369
- req: GetFaceidRiskInfoTokenRequest,
370
- cb?: (error: string, rep: GetFaceidRiskInfoTokenResponse) => void
371
- ): Promise<GetFaceidRiskInfoTokenResponse> {
372
- return this.request("GetFaceidRiskInfoToken", req, cb)
373
- }
374
-
375
- /**
376
- * 活体检测
377
- */
378
- async Liveness(
379
- req: LivenessRequest,
380
- cb?: (error: string, rep: LivenessResponse) => void
381
- ): Promise<LivenessResponse> {
382
- return this.request("Liveness", req, cb)
383
- }
384
-
385
- /**
386
- * 本接口用于校验中国联通手机号、姓名和身份证号的真实性和一致性。中国联通支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
387
- */
388
- async PhoneVerificationCUCC(
389
- req: PhoneVerificationCUCCRequest,
390
- cb?: (error: string, rep: PhoneVerificationCUCCResponse) => void
391
- ): Promise<PhoneVerificationCUCCResponse> {
392
- return this.request("PhoneVerificationCUCC", req, cb)
393
- }
394
-
395
- /**
396
- * 传入视频和身份信息,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与权威库的证件照是否属于同一个人。
397
- */
398
- async LivenessRecognition(
399
- req: LivenessRecognitionRequest,
400
- cb?: (error: string, rep: LivenessRecognitionResponse) => void
401
- ): Promise<LivenessRecognitionResponse> {
402
- return this.request("LivenessRecognition", req, cb)
403
- }
404
-
405
- /**
406
- * 解析SDK获取到的证件NFC数据,接口传入SDK返回的ReqId,返回证件信息(个别字段为特定证件类型特有)。SDK生成的ReqId五分钟内有效,重复查询仅收一次费。支持身份证类证件(二代身份证、港澳居住证、台湾居住证、外国人永居证)以及旅行类证件(港澳通行证、台湾通行证、台胞证、回乡证)的NFC识别及核验。
407
- */
408
- async ParseNfcData(
409
- req: ParseNfcDataRequest,
410
- cb?: (error: string, rep: ParseNfcDataResponse) => void
411
- ): Promise<ParseNfcDataResponse> {
412
- return this.request("ParseNfcData", req, cb)
413
- }
414
-
415
- /**
416
- * 传入姓名和身份证号,校验两者的真实性和一致性。
417
- */
418
- async IdCardVerification(
419
- req: IdCardVerificationRequest,
420
- cb?: (error: string, rep: IdCardVerificationResponse) => void
421
- ): Promise<IdCardVerificationResponse> {
422
- return this.request("IdCardVerification", req, cb)
423
- }
424
-
425
- /**
426
- * 本接口用于查询手机号在网时长,输入手机号进行查询。
427
- */
428
- async MobileNetworkTimeVerification(
429
- req: MobileNetworkTimeVerificationRequest,
430
- cb?: (error: string, rep: MobileNetworkTimeVerificationResponse) => void
431
- ): Promise<MobileNetworkTimeVerificationResponse> {
432
- return this.request("MobileNetworkTimeVerification", req, cb)
433
- }
434
-
435
- /**
436
- * 完成验证后,用EidToken调用本接口获取结果信息,EidToken生成后三天内(3\*24\*3,600秒)可多次拉取。
437
- */
438
- async GetEidResult(
439
- req: GetEidResultRequest,
440
- cb?: (error: string, rep: GetEidResultResponse) => void
441
- ): Promise<GetEidResultResponse> {
442
- return this.request("GetEidResult", req, cb)
443
- }
444
-
445
- /**
446
- * 每次调用人脸核身SaaS化服务前,需先调用本接口获取BizToken,用来串联核身流程,在验证完成后,用于获取验证结果信息。
447
- */
448
- async DetectAuth(
449
- req: DetectAuthRequest,
450
- cb?: (error: string, rep: DetectAuthResponse) => void
451
- ): Promise<DetectAuthResponse> {
452
- return this.request("DetectAuth", req, cb)
453
- }
454
-
455
- /**
456
- * 银行卡基础信息查询
457
- */
458
- async CheckBankCardInformation(
459
- req: CheckBankCardInformationRequest,
460
- cb?: (error: string, rep: CheckBankCardInformationResponse) => void
461
- ): Promise<CheckBankCardInformationResponse> {
462
- return this.request("CheckBankCardInformation", req, cb)
463
- }
464
-
465
- /**
466
- * 完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
467
- */
468
- async GetDetectInfo(
469
- req: GetDetectInfoRequest,
470
- cb?: (error: string, rep: GetDetectInfoResponse) => void
471
- ): Promise<GetDetectInfoResponse> {
472
- return this.request("GetDetectInfo", req, cb)
473
- }
474
-
475
- /**
476
- * 本接口用于校验姓名和银行卡号的真实性和一致性。
477
- */
478
- async BankCard2EVerification(
479
- req: BankCard2EVerificationRequest,
480
- cb?: (error: string, rep: BankCard2EVerificationResponse) => void
481
- ): Promise<BankCard2EVerificationResponse> {
482
- return this.request("BankCard2EVerification", req, cb)
483
- }
484
-
485
- /**
486
- * 本接口用于校验中国电信手机号、姓名和身份证号的真实性和一致性。中国电信支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
487
- */
488
- async PhoneVerificationCTCC(
489
- req: PhoneVerificationCTCCRequest,
490
- cb?: (error: string, rep: PhoneVerificationCTCCResponse) => void
491
- ): Promise<PhoneVerificationCTCCResponse> {
492
- return this.request("PhoneVerificationCTCC", req, cb)
493
- }
494
- }