tencentcloud-sdk-nodejs-faceid 4.0.819 → 4.0.821

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,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-faceid",
3
- "version": "4.0.819",
3
+ "version": "4.0.821",
4
4
  "description": "Tencent Cloud API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
package/products.md CHANGED
@@ -5,8 +5,8 @@
5
5
  | acp | [应用合规平台](https://cloud.tencent.com/document/product/1553) | 2024-03-20 01:07:29 |
6
6
  | advisor | [云顾问](https://cloud.tencent.com/document/product/1264) | 2024-03-20 01:07:31 |
7
7
  | af | [借贷反欺诈](https://cloud.tencent.com/document/product/668) | 2024-03-20 01:07:31 |
8
- | afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2024-03-20 01:07:32 |
9
- | aiart | [大模型图像创作引擎](https://cloud.tencent.com/document/product/1668) | 2024-03-20 01:07:33 |
8
+ | afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2024-03-27 01:07:50 |
9
+ | aiart | [大模型图像创作引擎](https://cloud.tencent.com/document/product/1668) | 2024-03-26 10:43:03 |
10
10
  | ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2023-08-17 01:06:14 |
11
11
  | ams | [音频内容安全](https://cloud.tencent.com/document/product/1219) | 2024-03-20 01:07:34 |
12
12
  | anicloud | [动效素材服务](https://cloud.tencent.com/document/product/1641) | 2023-05-18 01:01:53 |
@@ -40,7 +40,7 @@
40
40
  | cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2024-03-20 01:09:28 |
41
41
  | cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2024-03-21 01:09:20 |
42
42
  | ccc | [云联络中心](https://cloud.tencent.com/document/product/679) | 2024-03-20 01:09:36 |
43
- | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2024-03-20 01:09:44 |
43
+ | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2024-03-27 01:10:04 |
44
44
  | cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2024-03-20 01:10:04 |
45
45
  | cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2024-03-21 01:09:58 |
46
46
  | cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2024-03-20 01:10:22 |
@@ -55,51 +55,51 @@
55
55
  | cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2023-05-18 01:12:07 |
56
56
  | cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
57
57
  | cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
58
- | ckafka | [消息队列 CKafka 版](https://cloud.tencent.com/document/product/597) | 2024-03-20 01:11:02 |
58
+ | ckafka | [消息队列 CKafka 版](https://cloud.tencent.com/document/product/597) | 2024-03-27 01:11:34 |
59
59
  | clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2024-03-25 01:11:07 |
60
60
  | cloudaudit | [操作审计](https://cloud.tencent.com/document/product/629) | 2024-01-15 01:09:37 |
61
61
  | cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2024-03-20 01:11:31 |
62
62
  | cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2024-03-20 01:11:33 |
63
- | cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2024-03-20 01:11:35 |
63
+ | cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2024-03-27 01:12:06 |
64
64
  | cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2024-03-20 01:12:05 |
65
65
  | cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2024-03-20 01:12:14 |
66
66
  | cms | [内容安全](https://cloud.tencent.com/document/product/669) | 2024-03-20 01:12:16 |
67
67
  | config | [配置审计](https://cloud.tencent.com/document/product/1579) | 2024-03-20 01:12:18 |
68
68
  | cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2023-09-21 02:09:54 |
69
69
  | cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
70
- | csip | [云安全一体化平台](https://cloud.tencent.com/document/product/664) | 2024-03-20 01:12:19 |
70
+ | csip | [云安全一体化平台](https://cloud.tencent.com/document/product/664) | 2024-03-27 01:12:37 |
71
71
  | csxg | [5G入云服务](https://cloud.tencent.com/document/product/1687) | 2024-03-20 01:12:25 |
72
72
  | cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2024-03-20 01:12:26 |
73
73
  | cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2024-03-25 01:12:24 |
74
74
  | cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
75
75
  | cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2024-03-20 01:13:46 |
76
- | dasb | [T-Sec-堡垒机(BH)](https://cloud.tencent.com/document/product/1025) | 2024-03-20 01:14:04 |
76
+ | dasb | [T-Sec-堡垒机(BH)](https://cloud.tencent.com/document/product/1025) | 2024-03-27 01:14:18 |
77
77
  | dataintegration | [数据接入平台](https://cloud.tencent.com/document/product/1591) | 2022-07-26 15:32:15 |
78
78
  | dayu | [DDoS 高防包](https://cloud.tencent.com/document/product/1021) | 2023-05-18 01:20:11 |
79
79
  | dbbrain | [数据库智能管家 DBbrain](https://cloud.tencent.com/document/product/1130) | 2024-03-20 01:14:16 |
80
80
  | dbdc | [云数据库独享集群](https://cloud.tencent.com/document/product/1322) | 2024-03-20 01:14:24 |
81
81
  | dc | [专线接入](https://cloud.tencent.com/document/product/216) | 2024-03-20 01:14:27 |
82
82
  | dcdb | [TDSQL MySQL 版](https://cloud.tencent.com/document/product/557) | 2024-03-20 01:14:30 |
83
- | dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2024-03-21 01:14:28 |
83
+ | dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2024-03-27 01:14:55 |
84
84
  | dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2024-03-20 01:14:57 |
85
85
  | domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2024-03-20 01:15:06 |
86
86
  | drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2024-03-20 01:15:11 |
87
87
  | ds | [文档服务](https://cloud.tencent.com/document/product/869) | 2024-03-20 01:15:13 |
88
88
  | dsgc | [数据安全治理中心](https://cloud.tencent.com/document/product/1087) | 2024-03-20 01:15:15 |
89
89
  | dtf | [分布式事务](https://cloud.tencent.com/document/product/1224) | 2022-04-04 06:38:57 |
90
- | dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2024-03-20 01:15:37 |
90
+ | dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2024-03-27 01:15:59 |
91
91
  | eb | [事件总线](https://cloud.tencent.com/document/product/1359) | 2024-03-20 01:15:46 |
92
92
  | ecc | [英文作文批改](https://cloud.tencent.com/document/product/1076) | 2024-03-20 01:15:51 |
93
93
  | ecdn | [全站加速网络](https://cloud.tencent.com/document/product/570) | 2024-03-20 01:15:52 |
94
94
  | ecm | [边缘计算机器](https://cloud.tencent.com/document/product/1108) | 2024-03-20 01:15:56 |
95
95
  | eiam | [数字身份管控平台(员工版)](https://cloud.tencent.com/document/product/1442) | 2024-03-20 01:16:13 |
96
96
  | eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-08-10 01:17:44 |
97
- | emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2024-03-20 01:16:19 |
97
+ | emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2024-03-27 01:16:55 |
98
98
  | es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2024-03-20 01:16:27 |
99
- | ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-03-25 01:16:14 |
100
- | essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-03-20 01:16:49 |
99
+ | ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-03-27 01:17:05 |
100
+ | essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-03-27 01:17:22 |
101
101
  | facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2024-03-20 01:17:05 |
102
- | faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2024-03-25 01:16:50 |
102
+ | faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2024-03-27 01:17:36 |
103
103
  | fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2024-03-20 01:17:11 |
104
104
  | ft | [人像变换](https://cloud.tencent.com/document/product/1202) | 2024-03-20 01:17:13 |
105
105
  | gaap | [全球应用加速](https://cloud.tencent.com/document/product/608) | 2024-03-25 01:16:59 |
@@ -134,7 +134,7 @@
134
134
  | kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2024-03-20 01:19:25 |
135
135
  | lcic | [实时互动-教育版](https://cloud.tencent.com/document/product/1639) | 2024-03-21 01:19:23 |
136
136
  | lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2024-03-20 01:19:40 |
137
- | live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2024-03-21 01:19:47 |
137
+ | live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2024-03-26 01:19:46 |
138
138
  | lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 |
139
139
  | lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2022-04-04 06:56:52 |
140
140
  | mall | [商场客留大数据](https://cloud.tencent.com/document/product/1707) | 2024-03-20 01:20:11 |
@@ -153,7 +153,7 @@
153
153
  | mvj | [营销价值判断](https://cloud.tencent.com/document/product) | 2020-03-19 08:11:44 |
154
154
  | nlp | [NLP 服务](https://cloud.tencent.com/document/product/271) | 2024-03-20 01:21:33 |
155
155
  | npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 |
156
- | oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2024-03-20 01:21:36 |
156
+ | oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2024-03-26 01:21:37 |
157
157
  | ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2024-03-25 01:21:34 |
158
158
  | omics | [腾讯健康组学平台](https://cloud.tencent.com/document/product/1643) | 2024-03-20 01:22:11 |
159
159
  | organization | [集团账号管理](https://cloud.tencent.com/document/product/850) | 2024-03-20 01:22:17 |
@@ -161,7 +161,7 @@
161
161
  | pds | [私域安全](https://cloud.tencent.com/document/product/1473) | 2023-05-18 01:44:14 |
162
162
  | postgres | [云数据库 PostgreSQL](https://cloud.tencent.com/document/product/409) | 2024-03-20 01:22:26 |
163
163
  | privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2024-03-20 01:22:42 |
164
- | pts | [云压测](https://cloud.tencent.com/document/product/1484) | 2024-03-20 01:22:46 |
164
+ | pts | [云压测](https://cloud.tencent.com/document/product/1484) | 2024-03-27 01:23:10 |
165
165
  | rce | [全栈式风控引擎](https://cloud.tencent.com/document/product/1343) | 2024-03-20 01:22:53 |
166
166
  | redis | [云数据库Redis](https://cloud.tencent.com/document/product/239) | 2024-03-20 01:22:54 |
167
167
  | region | [地域管理系统](https://cloud.tencent.com/document/product/1596) | 2024-03-20 01:23:06 |
@@ -222,7 +222,7 @@
222
222
  | tourism | [文旅客情大数据](https://cloud.tencent.com/document/product/1684) | 2024-03-20 01:28:59 |
223
223
  | trdp | [流量风险决策平台](https://cloud.tencent.com/document/product/1604) | 2023-05-18 02:01:19 |
224
224
  | trocket | [消息队列 RocketMQ 版](https://cloud.tencent.com/document/product/1493) | 2024-03-20 01:29:00 |
225
- | trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2024-03-20 01:29:06 |
225
+ | trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2024-03-26 01:27:42 |
226
226
  | trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2024-03-20 01:29:13 |
227
227
  | trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2024-03-22 01:25:05 |
228
228
  | tse | [微服务引擎](https://cloud.tencent.com/document/product/1364) | 2024-03-21 01:28:04 |
@@ -237,7 +237,7 @@
237
237
  | vrs | [声音复刻](https://cloud.tencent.com/document/product/1283) | 2024-03-20 01:31:26 |
238
238
  | waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2024-03-20 01:31:28 |
239
239
  | wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2024-03-20 01:32:09 |
240
- | wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2024-03-20 01:32:15 |
240
+ | wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2024-03-27 01:31:32 |
241
241
  | weilingwith | [微瓴同业开放平台](https://cloud.tencent.com/document/product/1693) | 2024-03-20 01:33:01 |
242
242
  | wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
243
243
  | yinsuda | [音速达直播音乐版权引擎](https://cloud.tencent.com/document/product/1592) | 2024-03-20 01:33:11 |
@@ -19,6 +19,7 @@ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
19
19
  import {
20
20
  AttackRiskDetail,
21
21
  ExtraInfo,
22
+ GetFaceidRiskInfoTokenResponse,
22
23
  CheckIdNameDateResponse,
23
24
  IdCardVerificationRequest,
24
25
  ImageRecognitionV2Response,
@@ -26,13 +27,13 @@ import {
26
27
  IntentionQuestionResult,
27
28
  RuleIdConfig,
28
29
  MobileStatusRequest,
29
- GetActionSequenceResponse,
30
+ ParseNfcDataResponse,
30
31
  LivenessRecognitionRequest,
31
32
  CheckEidTokenStatusResponse,
32
33
  EidInfo,
33
34
  DetectAuthRequest,
34
35
  CheckEidTokenStatusRequest,
35
- ParseNfcDataResponse,
36
+ GetFaceIdRiskInfoResponse,
36
37
  LivenessCompareResponse,
37
38
  BankCard2EVerificationResponse,
38
39
  MobileStatusResponse,
@@ -82,6 +83,7 @@ import {
82
83
  GetDetectInfoResponse,
83
84
  IdCardOCRVerificationResponse,
84
85
  IdCardVerificationResponse,
86
+ GetActionSequenceRequest,
85
87
  GetDetectInfoEnhancedRequest,
86
88
  LivenessRecognitionResponse,
87
89
  GetLiveCodeRequest,
@@ -92,6 +94,7 @@ import {
92
94
  CheckPhoneAndNameResponse,
93
95
  GetFaceIdTokenRequest,
94
96
  IntentionActionResult,
97
+ GetFaceidRiskInfoTokenRequest,
95
98
  BankCard2EVerificationRequest,
96
99
  ImageRecognitionV2Request,
97
100
  PhoneVerificationCTCCResponse,
@@ -100,7 +103,8 @@ import {
100
103
  PhoneVerificationCTCCRequest,
101
104
  ImageRecognitionRequest,
102
105
  BankCard4EVerificationRequest,
103
- GetActionSequenceRequest,
106
+ GetActionSequenceResponse,
107
+ GetFaceIdRiskInfoRequest,
104
108
  GetLiveCodeResponse,
105
109
  GetDetectInfoRequest,
106
110
  DetectInfoIdCardData,
@@ -129,13 +133,13 @@ export class Client extends TencentCloudCommon.AbstractClient {
129
133
  }
130
134
 
131
135
  /**
132
- * 使用动作活体检测模式前,需调用本接口获取动作顺序。
136
+ * 完成验证后,用FaceIdToken调用本接口获取设备风险相关信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
133
137
  */
134
- async GetActionSequence(
135
- req: GetActionSequenceRequest,
136
- cb?: (error: string, rep: GetActionSequenceResponse) => void
137
- ): Promise<GetActionSequenceResponse> {
138
- return this.request("GetActionSequence", req, cb)
138
+ async GetFaceIdRiskInfo(
139
+ req: GetFaceIdRiskInfoRequest,
140
+ cb?: (error: string, rep: GetFaceIdRiskInfoResponse) => void
141
+ ): Promise<GetFaceIdRiskInfoResponse> {
142
+ return this.request("GetFaceIdRiskInfo", req, cb)
139
143
  }
140
144
 
141
145
  /**
@@ -188,6 +192,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
188
192
  return this.request("EncryptedPhoneVerification", req, cb)
189
193
  }
190
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
+
191
205
  /**
192
206
  * 完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
193
207
  */
@@ -319,6 +333,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
319
333
  return this.request("MobileStatus", req, cb)
320
334
  }
321
335
 
336
+ /**
337
+ * 本接口用于校验姓名、身份证号、身份证有效期的真实性和一致性。
338
+ */
339
+ async CheckIdNameDate(
340
+ req: CheckIdNameDateRequest,
341
+ cb?: (error: string, rep: CheckIdNameDateResponse) => void
342
+ ): Promise<CheckIdNameDateResponse> {
343
+ return this.request("CheckIdNameDate", req, cb)
344
+ }
345
+
322
346
  /**
323
347
  * 本接口用于校验中国移动手机号、姓名和身份证号的真实性和一致性。中国移动支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
324
348
  */
@@ -340,13 +364,13 @@ export class Client extends TencentCloudCommon.AbstractClient {
340
364
  }
341
365
 
342
366
  /**
343
- * 本接口用于校验姓名、身份证号、身份证有效期的真实性和一致性。
367
+ * 每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取风险结果信息,该Token仅能核身一次。
344
368
  */
345
- async CheckIdNameDate(
346
- req: CheckIdNameDateRequest,
347
- cb?: (error: string, rep: CheckIdNameDateResponse) => void
348
- ): Promise<CheckIdNameDateResponse> {
349
- return this.request("CheckIdNameDate", req, cb)
369
+ async GetFaceidRiskInfoToken(
370
+ req: GetFaceidRiskInfoTokenRequest,
371
+ cb?: (error: string, rep: GetFaceidRiskInfoTokenResponse) => void
372
+ ): Promise<GetFaceidRiskInfoTokenResponse> {
373
+ return this.request("GetFaceidRiskInfoToken", req, cb)
350
374
  }
351
375
 
352
376
  /**
@@ -44,6 +44,20 @@ export interface ExtraInfo {
44
44
  RetrievalLivenessExtraInfo?: Array<RetrievalLivenessExtraInfo>
45
45
  }
46
46
 
47
+ /**
48
+ * GetFaceidRiskInfoToken返回参数结构体
49
+ */
50
+ export interface GetFaceidRiskInfoTokenResponse {
51
+ /**
52
+ * 有效期 10分钟。只能完成1次核身。
53
+ */
54
+ FaceIdToken?: string
55
+ /**
56
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
57
+ */
58
+ RequestId?: string
59
+ }
60
+
47
61
  /**
48
62
  * CheckIdNameDate返回参数结构体
49
63
  */
@@ -267,13 +281,111 @@ export interface MobileStatusRequest {
267
281
  }
268
282
 
269
283
  /**
270
- * GetActionSequence返回参数结构体
284
+ * ParseNfcData返回参数结构体
271
285
  */
272
- export interface GetActionSequenceResponse {
286
+ export interface ParseNfcDataResponse {
273
287
  /**
274
- * 动作顺序(2,1 or 1,2) 。1代表张嘴,2代表闭眼。
288
+ * 0为首次查询成功,-1为查询失败。
289
+ 注意:此字段可能返回 null,表示取不到有效值。
275
290
  */
276
- ActionSequence?: string
291
+ ResultCode: string
292
+ /**
293
+ * 身份证号
294
+ 注意:此字段可能返回 null,表示取不到有效值。
295
+ */
296
+ IdNum: string
297
+ /**
298
+ * 姓名
299
+ 注意:此字段可能返回 null,表示取不到有效值。
300
+ */
301
+ Name: string
302
+ /**
303
+ * 照片
304
+ 注意:此字段可能返回 null,表示取不到有效值。
305
+ */
306
+ Picture: string
307
+ /**
308
+ * 出生日期
309
+ 注意:此字段可能返回 null,表示取不到有效值。
310
+ */
311
+ BirthDate: string
312
+ /**
313
+ * 有效期起始时间
314
+ 注意:此字段可能返回 null,表示取不到有效值。
315
+ */
316
+ BeginTime: string
317
+ /**
318
+ * 有效期结束时间
319
+ 注意:此字段可能返回 null,表示取不到有效值。
320
+ */
321
+ EndTime: string
322
+ /**
323
+ * 住址
324
+ 注意:此字段可能返回 null,表示取不到有效值。
325
+ */
326
+ Address: string
327
+ /**
328
+ * 民族
329
+ 注意:此字段可能返回 null,表示取不到有效值。
330
+ */
331
+ Nation: string
332
+ /**
333
+ * 性别
334
+ 注意:此字段可能返回 null,表示取不到有效值。
335
+ */
336
+ Sex: string
337
+ /**
338
+ * 身份证 01 中国护照 03 军官证 04 武警证 05 港澳通行证 06 台胞证 07 外国护照 08 士兵证 09 临时身份证 10 户口本 11 警官证 12 外国人永久居留证 13 港澳台居民居住证 14 回乡证 15 大陆居民来往台湾通行证 16 其他证件 99
339
+ 注意:此字段可能返回 null,表示取不到有效值。
340
+ */
341
+ IdType: string
342
+ /**
343
+ * 英文姓名
344
+ 注意:此字段可能返回 null,表示取不到有效值。
345
+ */
346
+ EnName: string
347
+ /**
348
+ * 签发机关
349
+ 注意:此字段可能返回 null,表示取不到有效值。
350
+ */
351
+ SigningOrganization: string
352
+ /**
353
+ * 港澳台居民居住证,通行证号码
354
+ 注意:此字段可能返回 null,表示取不到有效值。
355
+ */
356
+ OtherIdNum: string
357
+ /**
358
+ * 旅行证件国籍
359
+ 注意:此字段可能返回 null,表示取不到有效值。
360
+ */
361
+ Nationality: string
362
+ /**
363
+ * 旅行证件机读区第二行 29~42 位
364
+ 注意:此字段可能返回 null,表示取不到有效值。
365
+ */
366
+ PersonalNumber: string
367
+ /**
368
+ * 旅行证件类的核验结果。JSON格式如下:
369
+ {"result_issuer ":"签发者证书合法性验证结果 ","result_pape r":"证件安全对象合法性验证 结果 ","result_data" :"防数据篡改验证结果 ","result_chip" :"防证书件芯片被复制验证结果"}
370
+ 0:验证通过,1: 验证不通过,2: 未验证,3:部分通过,当4项核验结果都为0时,表示证件为真
371
+ 注意:此字段可能返回 null,表示取不到有效值。
372
+ */
373
+ CheckMRTD: string
374
+ /**
375
+ * 身份证照片面合成图片
376
+ 注意:此字段可能返回 null,表示取不到有效值。
377
+ */
378
+ ImageA: string
379
+ /**
380
+ * 身份证国徽面合成图片
381
+ 注意:此字段可能返回 null,表示取不到有效值。
382
+ */
383
+ ImageB: string
384
+ /**
385
+ * 对result code的结果描述
386
+ 注意:此字段可能返回 null,表示取不到有效值。
387
+ */
388
+ ResultDescription: string
277
389
  /**
278
390
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
279
391
  */
@@ -437,111 +549,39 @@ export interface CheckEidTokenStatusRequest {
437
549
  }
438
550
 
439
551
  /**
440
- * ParseNfcData返回参数结构体
552
+ * GetFaceIdRiskInfo返回参数结构体
441
553
  */
442
- export interface ParseNfcDataResponse {
443
- /**
444
- * 0为首次查询成功,-1为查询失败。
445
- 注意:此字段可能返回 null,表示取不到有效值。
446
- */
447
- ResultCode: string
448
- /**
449
- * 身份证号
450
- 注意:此字段可能返回 null,表示取不到有效值。
451
- */
452
- IdNum: string
453
- /**
454
- * 姓名
455
- 注意:此字段可能返回 null,表示取不到有效值。
456
- */
457
- Name: string
458
- /**
459
- * 照片
460
- 注意:此字段可能返回 null,表示取不到有效值。
461
- */
462
- Picture: string
463
- /**
464
- * 出生日期
465
- 注意:此字段可能返回 null,表示取不到有效值。
466
- */
467
- BirthDate: string
468
- /**
469
- * 有效期起始时间
470
- 注意:此字段可能返回 null,表示取不到有效值。
471
- */
472
- BeginTime: string
473
- /**
474
- * 有效期结束时间
475
- 注意:此字段可能返回 null,表示取不到有效值。
476
- */
477
- EndTime: string
478
- /**
479
- * 住址
480
- 注意:此字段可能返回 null,表示取不到有效值。
481
- */
482
- Address: string
483
- /**
484
- * 民族
485
- 注意:此字段可能返回 null,表示取不到有效值。
486
- */
487
- Nation: string
554
+ export interface GetFaceIdRiskInfoResponse {
488
555
  /**
489
- * 性别
556
+ * 描述当前请求所在设备的风险标签,详情如下: 01-设备疑似被Root/设备疑似越狱 02-设备疑似被注入 03-设备疑似为模拟器 04-设备疑似存在风险操作 05-摄像头疑似被劫持 06-疑似黑产设备
490
557
  注意:此字段可能返回 null,表示取不到有效值。
491
558
  */
492
- Sex: string
559
+ DeviceInfoTag?: string
493
560
  /**
494
- * 身份证 01 中国护照 03 军官证 04 武警证 05 港澳通行证 06 台胞证 07 外国护照 08 士兵证 09 临时身份证 10 户口本 11 警官证 12 外国人永久居留证 13 港澳台居民居住证 14 回乡证 15 大陆居民来往台湾通行证 16 其他证件 99
561
+ * 描述当前请求所在设备的风险等级,共4级,详情如下: 1 - 安全 2 - 低风险 3 - 中风险 4 - 高危 ,-1表示未获取到风险等级
495
562
  注意:此字段可能返回 null,表示取不到有效值。
496
563
  */
497
- IdType: string
564
+ DeviceInfoLevel?: number
498
565
  /**
499
- * 英文姓名
566
+ * 设备id标识
500
567
  注意:此字段可能返回 null,表示取不到有效值。
501
568
  */
502
- EnName: string
569
+ OpenId?: string
503
570
  /**
504
- * 签发机关
571
+ * 描述当前请求所在设备的相机指纹风险等级,共4级,详情如下: 1 - 安全 2 - 低风险 3 - 中风险 4 - 高危 ,-1表示未获取到风险等级
505
572
  注意:此字段可能返回 null,表示取不到有效值。
506
573
  */
507
- SigningOrganization: string
574
+ CameraInfoLevel?: number
508
575
  /**
509
- * 港澳台居民居住证,通行证号码
510
- 注意:此字段可能返回 null,表示取不到有效值。
511
- */
512
- OtherIdNum: string
513
- /**
514
- * 旅行证件国籍
576
+ * 描述当前请求所在设备的相机指纹风险标签,详情如下: 01-设备疑似被Root/设备疑似越狱 02-设备疑似被注入 03-设备疑似为模拟器 04-设备疑似存在风险操作 05-摄像头疑似被劫持 06-疑似黑产设备,空表示没有相机指纹风险
515
577
  注意:此字段可能返回 null,表示取不到有效值。
516
578
  */
517
- Nationality: string
579
+ CameraInfoTag?: string
518
580
  /**
519
- * 旅行证件机读区第二行 29~42 位
581
+ * 获取token时透传的信息
520
582
  注意:此字段可能返回 null,表示取不到有效值。
521
583
  */
522
- PersonalNumber: string
523
- /**
524
- * 旅行证件类的核验结果。JSON格式如下:
525
- {"result_issuer ":"签发者证书合法性验证结果 ","result_pape r":"证件安全对象合法性验证 结果 ","result_data" :"防数据篡改验证结果 ","result_chip" :"防证书件芯片被复制验证结果"}
526
- 0:验证通过,1: 验证不通过,2: 未验证,3:部分通过,当4项核验结果都为0时,表示证件为真
527
- 注意:此字段可能返回 null,表示取不到有效值。
528
- */
529
- CheckMRTD: string
530
- /**
531
- * 身份证照片面合成图片
532
- 注意:此字段可能返回 null,表示取不到有效值。
533
- */
534
- ImageA: string
535
- /**
536
- * 身份证国徽面合成图片
537
- 注意:此字段可能返回 null,表示取不到有效值。
538
- */
539
- ImageB: string
540
- /**
541
- * 对result code的结果描述
542
- 注意:此字段可能返回 null,表示取不到有效值。
543
- */
544
- ResultDescription: string
584
+ Extra?: string
545
585
  /**
546
586
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
547
587
  */
@@ -964,38 +1004,38 @@ export interface GetFaceIdResultResponse {
964
1004
  /**
965
1005
  * 身份证
966
1006
  */
967
- IdCard: string
1007
+ IdCard?: string
968
1008
  /**
969
1009
  * 姓名
970
1010
  */
971
- Name: string
1011
+ Name?: string
972
1012
  /**
973
1013
  * 业务核验结果,参考https://cloud.tencent.com/document/product/1007/47912
974
1014
  */
975
- Result: string
1015
+ Result?: string
976
1016
  /**
977
1017
  * 业务核验描述
978
1018
  */
979
- Description: string
1019
+ Description?: string
980
1020
  /**
981
1021
  * 相似度,0-100,数值越大相似度越高
982
1022
  */
983
- Similarity: number
1023
+ Similarity?: number
984
1024
  /**
985
1025
  * 用户核验的视频base64,如果选择了使用cos,返回完整cos地址如https://bucket.cos.ap-guangzhou.myqcloud.com/objectKey
986
1026
  注意:此字段可能返回 null,表示取不到有效值。
987
1027
  */
988
- VideoBase64: string
1028
+ VideoBase64?: string
989
1029
  /**
990
1030
  * 用户核验视频的截帧base64,如果选择了使用cos,返回完整cos地址如https://bucket.cos.ap-guangzhou.myqcloud.com/objectKey
991
1031
  注意:此字段可能返回 null,表示取不到有效值。
992
1032
  */
993
- BestFrameBase64: string
1033
+ BestFrameBase64?: string
994
1034
  /**
995
1035
  * 获取token时透传的信息
996
1036
  注意:此字段可能返回 null,表示取不到有效值。
997
1037
  */
998
- Extra: string
1038
+ Extra?: string
999
1039
  /**
1000
1040
  * 设备风险标签,仅错误码返回1007(设备疑似被劫持)时返回风险标签。标签说明:
1001
1041
  202、5001:设备疑似被Root
@@ -1006,13 +1046,13 @@ export interface GetFaceIdResultResponse {
1006
1046
  8000:设备疑似存在异常篡改行为
1007
1047
  注意:此字段可能返回 null,表示取不到有效值。
1008
1048
  */
1009
- DeviceInfoTag: string
1049
+ DeviceInfoTag?: string
1010
1050
  /**
1011
1051
  * 行为风险标签,仅错误码返回1007(设备疑似被劫持)时返回风险标签。标签说明:
1012
1052
  02:攻击风险
1013
1053
  注意:此字段可能返回 null,表示取不到有效值。
1014
1054
  */
1015
- RiskInfoTag: string
1055
+ RiskInfoTag?: string
1016
1056
  /**
1017
1057
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1018
1058
  */
@@ -2258,6 +2298,16 @@ export interface IdCardVerificationResponse {
2258
2298
  RequestId?: string
2259
2299
  }
2260
2300
 
2301
+ /**
2302
+ * GetActionSequence请求参数结构体
2303
+ */
2304
+ export interface GetActionSequenceRequest {
2305
+ /**
2306
+ * 默认不需要使用
2307
+ */
2308
+ ActionType?: string
2309
+ }
2310
+
2261
2311
  /**
2262
2312
  * GetDetectInfoEnhanced请求参数结构体
2263
2313
  */
@@ -2517,6 +2567,11 @@ export interface GetFaceIdTokenRequest {
2517
2567
  * 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
2518
2568
  */
2519
2569
  Encryption?: Encryption
2570
+ /**
2571
+ * 用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请添加腾讯云人脸核身小助手进行咨询。
2572
+ 示例值:1
2573
+ */
2574
+ RuleId?: string
2520
2575
  }
2521
2576
 
2522
2577
  /**
@@ -2560,6 +2615,20 @@ export interface IntentionActionResult {
2560
2615
  Details?: Array<IntentionActionResultDetail>
2561
2616
  }
2562
2617
 
2618
+ /**
2619
+ * GetFaceidRiskInfoToken请求参数结构体
2620
+ */
2621
+ export interface GetFaceidRiskInfoTokenRequest {
2622
+ /**
2623
+ * SDK中生成的Meta字符串
2624
+ */
2625
+ Meta?: string
2626
+ /**
2627
+ * 透传参数 1000长度字符串
2628
+ */
2629
+ Extra?: string
2630
+ }
2631
+
2563
2632
  /**
2564
2633
  * BankCard2EVerification请求参数结构体
2565
2634
  */
@@ -2777,13 +2846,27 @@ export interface BankCard4EVerificationRequest {
2777
2846
  }
2778
2847
 
2779
2848
  /**
2780
- * GetActionSequence请求参数结构体
2849
+ * GetActionSequence返回参数结构体
2781
2850
  */
2782
- export interface GetActionSequenceRequest {
2851
+ export interface GetActionSequenceResponse {
2783
2852
  /**
2784
- * 默认不需要使用
2853
+ * 动作顺序(2,1 or 1,2) 。1代表张嘴,2代表闭眼。
2785
2854
  */
2786
- ActionType?: string
2855
+ ActionSequence?: string
2856
+ /**
2857
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2858
+ */
2859
+ RequestId?: string
2860
+ }
2861
+
2862
+ /**
2863
+ * GetFaceIdRiskInfo请求参数结构体
2864
+ */
2865
+ export interface GetFaceIdRiskInfoRequest {
2866
+ /**
2867
+ * SDK人脸核身流程的标识,调用GetFaceidRiskInfoToken接口时生成。
2868
+ */
2869
+ FaceIdToken: string
2787
2870
  }
2788
2871
 
2789
2872
  /**
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { CheckIdNameDateResponse, IdCardVerificationRequest, ImageRecognitionV2Response, GetDetectInfoEnhancedResponse, MobileStatusRequest, GetActionSequenceResponse, LivenessRecognitionRequest, CheckEidTokenStatusResponse, DetectAuthRequest, CheckEidTokenStatusRequest, ParseNfcDataResponse, LivenessCompareResponse, BankCard2EVerificationResponse, MobileStatusResponse, LivenessResponse, EncryptedPhoneVerificationRequest, EncryptedPhoneVerificationResponse, LivenessRequest, DetectAIFakeFacesRequest, CheckBankCardInformationResponse, GetEidTokenRequest, CheckIdNameDateRequest, GetFaceIdTokenResponse, MinorsVerificationRequest, GetFaceIdResultResponse, DetectAIFakeFacesResponse, LivenessCompareRequest, CheckBankCardInformationRequest, BankCardVerificationRequest, GetWeChatBillDetailsResponse, CheckIdCardInformationResponse, GetEidResultRequest, DetectAuthResponse, PhoneVerificationResponse, IdCardOCRVerificationRequest, BankCard4EVerificationResponse, MobileNetworkTimeVerificationRequest, PhoneVerificationCMCCResponse, MobileNetworkTimeVerificationResponse, PhoneVerificationCUCCResponse, CheckIdCardInformationRequest, MinorsVerificationResponse, GetWeChatBillDetailsRequest, BankCardVerificationResponse, PhoneVerificationCUCCRequest, PhoneVerificationCMCCRequest, ImageRecognitionResponse, GetDetectInfoResponse, IdCardOCRVerificationResponse, IdCardVerificationResponse, GetDetectInfoEnhancedRequest, LivenessRecognitionResponse, GetLiveCodeRequest, GetEidResultResponse, PhoneVerificationRequest, GetFaceIdResultRequest, CheckPhoneAndNameResponse, GetFaceIdTokenRequest, BankCard2EVerificationRequest, ImageRecognitionV2Request, PhoneVerificationCTCCResponse, ParseNfcDataRequest, PhoneVerificationCTCCRequest, ImageRecognitionRequest, BankCard4EVerificationRequest, GetActionSequenceRequest, GetLiveCodeResponse, GetDetectInfoRequest, CheckPhoneAndNameRequest, GetEidTokenResponse } from "./faceid_models";
2
+ import { GetFaceidRiskInfoTokenResponse, CheckIdNameDateResponse, IdCardVerificationRequest, ImageRecognitionV2Response, GetDetectInfoEnhancedResponse, MobileStatusRequest, ParseNfcDataResponse, LivenessRecognitionRequest, CheckEidTokenStatusResponse, DetectAuthRequest, CheckEidTokenStatusRequest, GetFaceIdRiskInfoResponse, LivenessCompareResponse, BankCard2EVerificationResponse, MobileStatusResponse, LivenessResponse, EncryptedPhoneVerificationRequest, EncryptedPhoneVerificationResponse, LivenessRequest, DetectAIFakeFacesRequest, CheckBankCardInformationResponse, GetEidTokenRequest, CheckIdNameDateRequest, GetFaceIdTokenResponse, MinorsVerificationRequest, GetFaceIdResultResponse, DetectAIFakeFacesResponse, LivenessCompareRequest, CheckBankCardInformationRequest, BankCardVerificationRequest, GetWeChatBillDetailsResponse, CheckIdCardInformationResponse, GetEidResultRequest, DetectAuthResponse, PhoneVerificationResponse, IdCardOCRVerificationRequest, BankCard4EVerificationResponse, MobileNetworkTimeVerificationRequest, PhoneVerificationCMCCResponse, MobileNetworkTimeVerificationResponse, PhoneVerificationCUCCResponse, CheckIdCardInformationRequest, MinorsVerificationResponse, GetWeChatBillDetailsRequest, BankCardVerificationResponse, PhoneVerificationCUCCRequest, PhoneVerificationCMCCRequest, ImageRecognitionResponse, GetDetectInfoResponse, IdCardOCRVerificationResponse, IdCardVerificationResponse, GetActionSequenceRequest, GetDetectInfoEnhancedRequest, LivenessRecognitionResponse, GetLiveCodeRequest, GetEidResultResponse, PhoneVerificationRequest, GetFaceIdResultRequest, CheckPhoneAndNameResponse, GetFaceIdTokenRequest, GetFaceidRiskInfoTokenRequest, BankCard2EVerificationRequest, ImageRecognitionV2Request, PhoneVerificationCTCCResponse, ParseNfcDataRequest, PhoneVerificationCTCCRequest, ImageRecognitionRequest, BankCard4EVerificationRequest, GetActionSequenceResponse, GetFaceIdRiskInfoRequest, GetLiveCodeResponse, GetDetectInfoRequest, CheckPhoneAndNameRequest, GetEidTokenResponse } from "./faceid_models";
3
3
  /**
4
4
  * faceid client
5
5
  * @class
@@ -11,9 +11,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
11
11
  */
12
12
  GetLiveCode(req?: GetLiveCodeRequest, cb?: (error: string, rep: GetLiveCodeResponse) => void): Promise<GetLiveCodeResponse>;
13
13
  /**
14
- * 使用动作活体检测模式前,需调用本接口获取动作顺序。
14
+ * 完成验证后,用FaceIdToken调用本接口获取设备风险相关信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
15
15
  */
16
- GetActionSequence(req: GetActionSequenceRequest, cb?: (error: string, rep: GetActionSequenceResponse) => void): Promise<GetActionSequenceResponse>;
16
+ GetFaceIdRiskInfo(req: GetFaceIdRiskInfoRequest, cb?: (error: string, rep: GetFaceIdRiskInfoResponse) => void): Promise<GetFaceIdRiskInfoResponse>;
17
17
  /**
18
18
  * 查询微信渠道服务(微信小程序、微信原生H5、微信普通H5)的账单明细及计费状态。
19
19
  */
@@ -34,6 +34,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
34
34
  * 本接口用于校验手机号、姓名和身份证号的真实性和一致性,入参支持明文、MD5和SHA256加密传输。
35
35
  */
36
36
  EncryptedPhoneVerification(req: EncryptedPhoneVerificationRequest, cb?: (error: string, rep: EncryptedPhoneVerificationResponse) => void): Promise<EncryptedPhoneVerificationResponse>;
37
+ /**
38
+ * 使用动作活体检测模式前,需调用本接口获取动作顺序。
39
+ */
40
+ GetActionSequence(req: GetActionSequenceRequest, cb?: (error: string, rep: GetActionSequenceResponse) => void): Promise<GetActionSequenceResponse>;
37
41
  /**
38
42
  * 完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
39
43
  */
@@ -87,6 +91,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
87
91
  * 本接口用于验证手机号的状态,您可以输入手机号进行查询。
88
92
  */
89
93
  MobileStatus(req: MobileStatusRequest, cb?: (error: string, rep: MobileStatusResponse) => void): Promise<MobileStatusResponse>;
94
+ /**
95
+ * 本接口用于校验姓名、身份证号、身份证有效期的真实性和一致性。
96
+ */
97
+ CheckIdNameDate(req: CheckIdNameDateRequest, cb?: (error: string, rep: CheckIdNameDateResponse) => void): Promise<CheckIdNameDateResponse>;
90
98
  /**
91
99
  * 本接口用于校验中国移动手机号、姓名和身份证号的真实性和一致性。中国移动支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
92
100
  */
@@ -96,9 +104,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
96
104
  */
97
105
  MinorsVerification(req: MinorsVerificationRequest, cb?: (error: string, rep: MinorsVerificationResponse) => void): Promise<MinorsVerificationResponse>;
98
106
  /**
99
- * 本接口用于校验姓名、身份证号、身份证有效期的真实性和一致性。
107
+ * 每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取风险结果信息,该Token仅能核身一次。
100
108
  */
101
- CheckIdNameDate(req: CheckIdNameDateRequest, cb?: (error: string, rep: CheckIdNameDateResponse) => void): Promise<CheckIdNameDateResponse>;
109
+ GetFaceidRiskInfoToken(req: GetFaceidRiskInfoTokenRequest, cb?: (error: string, rep: GetFaceidRiskInfoTokenResponse) => void): Promise<GetFaceidRiskInfoTokenResponse>;
102
110
  /**
103
111
  * 活体检测
104
112
  */
@@ -34,10 +34,10 @@ class Client extends TencentCloudCommon.AbstractClient {
34
34
  return this.request("GetLiveCode", req, cb);
35
35
  }
36
36
  /**
37
- * 使用动作活体检测模式前,需调用本接口获取动作顺序。
37
+ * 完成验证后,用FaceIdToken调用本接口获取设备风险相关信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
38
38
  */
39
- async GetActionSequence(req, cb) {
40
- return this.request("GetActionSequence", req, cb);
39
+ async GetFaceIdRiskInfo(req, cb) {
40
+ return this.request("GetFaceIdRiskInfo", req, cb);
41
41
  }
42
42
  /**
43
43
  * 查询微信渠道服务(微信小程序、微信原生H5、微信普通H5)的账单明细及计费状态。
@@ -69,6 +69,12 @@ class Client extends TencentCloudCommon.AbstractClient {
69
69
  async EncryptedPhoneVerification(req, cb) {
70
70
  return this.request("EncryptedPhoneVerification", req, cb);
71
71
  }
72
+ /**
73
+ * 使用动作活体检测模式前,需调用本接口获取动作顺序。
74
+ */
75
+ async GetActionSequence(req, cb) {
76
+ return this.request("GetActionSequence", req, cb);
77
+ }
72
78
  /**
73
79
  * 完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
74
80
  */
@@ -148,6 +154,12 @@ class Client extends TencentCloudCommon.AbstractClient {
148
154
  async MobileStatus(req, cb) {
149
155
  return this.request("MobileStatus", req, cb);
150
156
  }
157
+ /**
158
+ * 本接口用于校验姓名、身份证号、身份证有效期的真实性和一致性。
159
+ */
160
+ async CheckIdNameDate(req, cb) {
161
+ return this.request("CheckIdNameDate", req, cb);
162
+ }
151
163
  /**
152
164
  * 本接口用于校验中国移动手机号、姓名和身份证号的真实性和一致性。中国移动支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
153
165
  */
@@ -161,10 +173,10 @@ class Client extends TencentCloudCommon.AbstractClient {
161
173
  return this.request("MinorsVerification", req, cb);
162
174
  }
163
175
  /**
164
- * 本接口用于校验姓名、身份证号、身份证有效期的真实性和一致性。
176
+ * 每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取风险结果信息,该Token仅能核身一次。
165
177
  */
166
- async CheckIdNameDate(req, cb) {
167
- return this.request("CheckIdNameDate", req, cb);
178
+ async GetFaceidRiskInfoToken(req, cb) {
179
+ return this.request("GetFaceidRiskInfoToken", req, cb);
168
180
  }
169
181
  /**
170
182
  * 活体检测
@@ -25,6 +25,19 @@ export interface ExtraInfo {
25
25
  */
26
26
  RetrievalLivenessExtraInfo?: Array<RetrievalLivenessExtraInfo>;
27
27
  }
28
+ /**
29
+ * GetFaceidRiskInfoToken返回参数结构体
30
+ */
31
+ export interface GetFaceidRiskInfoTokenResponse {
32
+ /**
33
+ * 有效期 10分钟。只能完成1次核身。
34
+ */
35
+ FaceIdToken?: string;
36
+ /**
37
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
38
+ */
39
+ RequestId?: string;
40
+ }
28
41
  /**
29
42
  * CheckIdNameDate返回参数结构体
30
43
  */
@@ -241,13 +254,111 @@ export interface MobileStatusRequest {
241
254
  Encryption?: Encryption;
242
255
  }
243
256
  /**
244
- * GetActionSequence返回参数结构体
257
+ * ParseNfcData返回参数结构体
245
258
  */
246
- export interface GetActionSequenceResponse {
259
+ export interface ParseNfcDataResponse {
247
260
  /**
248
- * 动作顺序(2,1 or 1,2) 。1代表张嘴,2代表闭眼。
261
+ * 0为首次查询成功,-1为查询失败。
262
+ 注意:此字段可能返回 null,表示取不到有效值。
249
263
  */
250
- ActionSequence?: string;
264
+ ResultCode: string;
265
+ /**
266
+ * 身份证号
267
+ 注意:此字段可能返回 null,表示取不到有效值。
268
+ */
269
+ IdNum: string;
270
+ /**
271
+ * 姓名
272
+ 注意:此字段可能返回 null,表示取不到有效值。
273
+ */
274
+ Name: string;
275
+ /**
276
+ * 照片
277
+ 注意:此字段可能返回 null,表示取不到有效值。
278
+ */
279
+ Picture: string;
280
+ /**
281
+ * 出生日期
282
+ 注意:此字段可能返回 null,表示取不到有效值。
283
+ */
284
+ BirthDate: string;
285
+ /**
286
+ * 有效期起始时间
287
+ 注意:此字段可能返回 null,表示取不到有效值。
288
+ */
289
+ BeginTime: string;
290
+ /**
291
+ * 有效期结束时间
292
+ 注意:此字段可能返回 null,表示取不到有效值。
293
+ */
294
+ EndTime: string;
295
+ /**
296
+ * 住址
297
+ 注意:此字段可能返回 null,表示取不到有效值。
298
+ */
299
+ Address: string;
300
+ /**
301
+ * 民族
302
+ 注意:此字段可能返回 null,表示取不到有效值。
303
+ */
304
+ Nation: string;
305
+ /**
306
+ * 性别
307
+ 注意:此字段可能返回 null,表示取不到有效值。
308
+ */
309
+ Sex: string;
310
+ /**
311
+ * 身份证 01 中国护照 03 军官证 04 武警证 05 港澳通行证 06 台胞证 07 外国护照 08 士兵证 09 临时身份证 10 户口本 11 警官证 12 外国人永久居留证 13 港澳台居民居住证 14 回乡证 15 大陆居民来往台湾通行证 16 其他证件 99
312
+ 注意:此字段可能返回 null,表示取不到有效值。
313
+ */
314
+ IdType: string;
315
+ /**
316
+ * 英文姓名
317
+ 注意:此字段可能返回 null,表示取不到有效值。
318
+ */
319
+ EnName: string;
320
+ /**
321
+ * 签发机关
322
+ 注意:此字段可能返回 null,表示取不到有效值。
323
+ */
324
+ SigningOrganization: string;
325
+ /**
326
+ * 港澳台居民居住证,通行证号码
327
+ 注意:此字段可能返回 null,表示取不到有效值。
328
+ */
329
+ OtherIdNum: string;
330
+ /**
331
+ * 旅行证件国籍
332
+ 注意:此字段可能返回 null,表示取不到有效值。
333
+ */
334
+ Nationality: string;
335
+ /**
336
+ * 旅行证件机读区第二行 29~42 位
337
+ 注意:此字段可能返回 null,表示取不到有效值。
338
+ */
339
+ PersonalNumber: string;
340
+ /**
341
+ * 旅行证件类的核验结果。JSON格式如下:
342
+ {"result_issuer ":"签发者证书合法性验证结果 ","result_pape r":"证件安全对象合法性验证 结果 ","result_data" :"防数据篡改验证结果 ","result_chip" :"防证书件芯片被复制验证结果"}
343
+ 0:验证通过,1: 验证不通过,2: 未验证,3:部分通过,当4项核验结果都为0时,表示证件为真
344
+ 注意:此字段可能返回 null,表示取不到有效值。
345
+ */
346
+ CheckMRTD: string;
347
+ /**
348
+ * 身份证照片面合成图片
349
+ 注意:此字段可能返回 null,表示取不到有效值。
350
+ */
351
+ ImageA: string;
352
+ /**
353
+ * 身份证国徽面合成图片
354
+ 注意:此字段可能返回 null,表示取不到有效值。
355
+ */
356
+ ImageB: string;
357
+ /**
358
+ * 对result code的结果描述
359
+ 注意:此字段可能返回 null,表示取不到有效值。
360
+ */
361
+ ResultDescription: string;
251
362
  /**
252
363
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
253
364
  */
@@ -405,111 +516,39 @@ export interface CheckEidTokenStatusRequest {
405
516
  EidToken: string;
406
517
  }
407
518
  /**
408
- * ParseNfcData返回参数结构体
519
+ * GetFaceIdRiskInfo返回参数结构体
409
520
  */
410
- export interface ParseNfcDataResponse {
521
+ export interface GetFaceIdRiskInfoResponse {
411
522
  /**
412
- * 0为首次查询成功,-1为查询失败。
523
+ * 描述当前请求所在设备的风险标签,详情如下: 01-设备疑似被Root/设备疑似越狱 02-设备疑似被注入 03-设备疑似为模拟器 04-设备疑似存在风险操作 05-摄像头疑似被劫持 06-疑似黑产设备
413
524
  注意:此字段可能返回 null,表示取不到有效值。
414
525
  */
415
- ResultCode: string;
526
+ DeviceInfoTag?: string;
416
527
  /**
417
- * 身份证号
528
+ * 描述当前请求所在设备的风险等级,共4级,详情如下: 1 - 安全 2 - 低风险 3 - 中风险 4 - 高危 ,-1表示未获取到风险等级
418
529
  注意:此字段可能返回 null,表示取不到有效值。
419
530
  */
420
- IdNum: string;
531
+ DeviceInfoLevel?: number;
421
532
  /**
422
- * 姓名
533
+ * 设备id标识
423
534
  注意:此字段可能返回 null,表示取不到有效值。
424
535
  */
425
- Name: string;
536
+ OpenId?: string;
426
537
  /**
427
- * 照片
538
+ * 描述当前请求所在设备的相机指纹风险等级,共4级,详情如下: 1 - 安全 2 - 低风险 3 - 中风险 4 - 高危 ,-1表示未获取到风险等级
428
539
  注意:此字段可能返回 null,表示取不到有效值。
429
540
  */
430
- Picture: string;
541
+ CameraInfoLevel?: number;
431
542
  /**
432
- * 出生日期
543
+ * 描述当前请求所在设备的相机指纹风险标签,详情如下: 01-设备疑似被Root/设备疑似越狱 02-设备疑似被注入 03-设备疑似为模拟器 04-设备疑似存在风险操作 05-摄像头疑似被劫持 06-疑似黑产设备,空表示没有相机指纹风险
433
544
  注意:此字段可能返回 null,表示取不到有效值。
434
545
  */
435
- BirthDate: string;
546
+ CameraInfoTag?: string;
436
547
  /**
437
- * 有效期起始时间
438
- 注意:此字段可能返回 null,表示取不到有效值。
439
- */
440
- BeginTime: string;
441
- /**
442
- * 有效期结束时间
443
- 注意:此字段可能返回 null,表示取不到有效值。
444
- */
445
- EndTime: string;
446
- /**
447
- * 住址
448
- 注意:此字段可能返回 null,表示取不到有效值。
449
- */
450
- Address: string;
451
- /**
452
- * 民族
453
- 注意:此字段可能返回 null,表示取不到有效值。
454
- */
455
- Nation: string;
456
- /**
457
- * 性别
458
- 注意:此字段可能返回 null,表示取不到有效值。
459
- */
460
- Sex: string;
461
- /**
462
- * 身份证 01 中国护照 03 军官证 04 武警证 05 港澳通行证 06 台胞证 07 外国护照 08 士兵证 09 临时身份证 10 户口本 11 警官证 12 外国人永久居留证 13 港澳台居民居住证 14 回乡证 15 大陆居民来往台湾通行证 16 其他证件 99
463
- 注意:此字段可能返回 null,表示取不到有效值。
464
- */
465
- IdType: string;
466
- /**
467
- * 英文姓名
468
- 注意:此字段可能返回 null,表示取不到有效值。
469
- */
470
- EnName: string;
471
- /**
472
- * 签发机关
473
- 注意:此字段可能返回 null,表示取不到有效值。
474
- */
475
- SigningOrganization: string;
476
- /**
477
- * 港澳台居民居住证,通行证号码
478
- 注意:此字段可能返回 null,表示取不到有效值。
479
- */
480
- OtherIdNum: string;
481
- /**
482
- * 旅行证件国籍
483
- 注意:此字段可能返回 null,表示取不到有效值。
484
- */
485
- Nationality: string;
486
- /**
487
- * 旅行证件机读区第二行 29~42 位
488
- 注意:此字段可能返回 null,表示取不到有效值。
489
- */
490
- PersonalNumber: string;
491
- /**
492
- * 旅行证件类的核验结果。JSON格式如下:
493
- {"result_issuer ":"签发者证书合法性验证结果 ","result_pape r":"证件安全对象合法性验证 结果 ","result_data" :"防数据篡改验证结果 ","result_chip" :"防证书件芯片被复制验证结果"}
494
- 0:验证通过,1: 验证不通过,2: 未验证,3:部分通过,当4项核验结果都为0时,表示证件为真
495
- 注意:此字段可能返回 null,表示取不到有效值。
496
- */
497
- CheckMRTD: string;
498
- /**
499
- * 身份证照片面合成图片
500
- 注意:此字段可能返回 null,表示取不到有效值。
501
- */
502
- ImageA: string;
503
- /**
504
- * 身份证国徽面合成图片
505
- 注意:此字段可能返回 null,表示取不到有效值。
506
- */
507
- ImageB: string;
508
- /**
509
- * 对result code的结果描述
548
+ * 获取token时透传的信息
510
549
  注意:此字段可能返回 null,表示取不到有效值。
511
550
  */
512
- ResultDescription: string;
551
+ Extra?: string;
513
552
  /**
514
553
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
515
554
  */
@@ -916,38 +955,38 @@ export interface GetFaceIdResultResponse {
916
955
  /**
917
956
  * 身份证
918
957
  */
919
- IdCard: string;
958
+ IdCard?: string;
920
959
  /**
921
960
  * 姓名
922
961
  */
923
- Name: string;
962
+ Name?: string;
924
963
  /**
925
964
  * 业务核验结果,参考https://cloud.tencent.com/document/product/1007/47912
926
965
  */
927
- Result: string;
966
+ Result?: string;
928
967
  /**
929
968
  * 业务核验描述
930
969
  */
931
- Description: string;
970
+ Description?: string;
932
971
  /**
933
972
  * 相似度,0-100,数值越大相似度越高
934
973
  */
935
- Similarity: number;
974
+ Similarity?: number;
936
975
  /**
937
976
  * 用户核验的视频base64,如果选择了使用cos,返回完整cos地址如https://bucket.cos.ap-guangzhou.myqcloud.com/objectKey
938
977
  注意:此字段可能返回 null,表示取不到有效值。
939
978
  */
940
- VideoBase64: string;
979
+ VideoBase64?: string;
941
980
  /**
942
981
  * 用户核验视频的截帧base64,如果选择了使用cos,返回完整cos地址如https://bucket.cos.ap-guangzhou.myqcloud.com/objectKey
943
982
  注意:此字段可能返回 null,表示取不到有效值。
944
983
  */
945
- BestFrameBase64: string;
984
+ BestFrameBase64?: string;
946
985
  /**
947
986
  * 获取token时透传的信息
948
987
  注意:此字段可能返回 null,表示取不到有效值。
949
988
  */
950
- Extra: string;
989
+ Extra?: string;
951
990
  /**
952
991
  * 设备风险标签,仅错误码返回1007(设备疑似被劫持)时返回风险标签。标签说明:
953
992
  202、5001:设备疑似被Root
@@ -958,13 +997,13 @@ export interface GetFaceIdResultResponse {
958
997
  8000:设备疑似存在异常篡改行为
959
998
  注意:此字段可能返回 null,表示取不到有效值。
960
999
  */
961
- DeviceInfoTag: string;
1000
+ DeviceInfoTag?: string;
962
1001
  /**
963
1002
  * 行为风险标签,仅错误码返回1007(设备疑似被劫持)时返回风险标签。标签说明:
964
1003
  02:攻击风险
965
1004
  注意:此字段可能返回 null,表示取不到有效值。
966
1005
  */
967
- RiskInfoTag: string;
1006
+ RiskInfoTag?: string;
968
1007
  /**
969
1008
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
970
1009
  */
@@ -2176,6 +2215,15 @@ export interface IdCardVerificationResponse {
2176
2215
  */
2177
2216
  RequestId?: string;
2178
2217
  }
2218
+ /**
2219
+ * GetActionSequence请求参数结构体
2220
+ */
2221
+ export interface GetActionSequenceRequest {
2222
+ /**
2223
+ * 默认不需要使用
2224
+ */
2225
+ ActionType?: string;
2226
+ }
2179
2227
  /**
2180
2228
  * GetDetectInfoEnhanced请求参数结构体
2181
2229
  */
@@ -2427,6 +2475,11 @@ export interface GetFaceIdTokenRequest {
2427
2475
  * 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
2428
2476
  */
2429
2477
  Encryption?: Encryption;
2478
+ /**
2479
+ * 用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请添加腾讯云人脸核身小助手进行咨询。
2480
+ 示例值:1
2481
+ */
2482
+ RuleId?: string;
2430
2483
  }
2431
2484
  /**
2432
2485
  * 意愿核身点头确认模式结果
@@ -2468,6 +2521,19 @@ export interface IntentionActionResult {
2468
2521
  */
2469
2522
  Details?: Array<IntentionActionResultDetail>;
2470
2523
  }
2524
+ /**
2525
+ * GetFaceidRiskInfoToken请求参数结构体
2526
+ */
2527
+ export interface GetFaceidRiskInfoTokenRequest {
2528
+ /**
2529
+ * SDK中生成的Meta字符串
2530
+ */
2531
+ Meta?: string;
2532
+ /**
2533
+ * 透传参数 1000长度字符串
2534
+ */
2535
+ Extra?: string;
2536
+ }
2471
2537
  /**
2472
2538
  * BankCard2EVerification请求参数结构体
2473
2539
  */
@@ -2677,13 +2743,26 @@ export interface BankCard4EVerificationRequest {
2677
2743
  Encryption?: Encryption;
2678
2744
  }
2679
2745
  /**
2680
- * GetActionSequence请求参数结构体
2746
+ * GetActionSequence返回参数结构体
2681
2747
  */
2682
- export interface GetActionSequenceRequest {
2748
+ export interface GetActionSequenceResponse {
2683
2749
  /**
2684
- * 默认不需要使用
2750
+ * 动作顺序(2,1 or 1,2) 。1代表张嘴,2代表闭眼。
2685
2751
  */
2686
- ActionType?: string;
2752
+ ActionSequence?: string;
2753
+ /**
2754
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2755
+ */
2756
+ RequestId?: string;
2757
+ }
2758
+ /**
2759
+ * GetFaceIdRiskInfo请求参数结构体
2760
+ */
2761
+ export interface GetFaceIdRiskInfoRequest {
2762
+ /**
2763
+ * SDK人脸核身流程的标识,调用GetFaceidRiskInfoToken接口时生成。
2764
+ */
2765
+ FaceIdToken: string;
2687
2766
  }
2688
2767
  /**
2689
2768
  * GetLiveCode返回参数结构体