tencentcloud-sdk-nodejs-faceid 4.0.751 → 4.0.753

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.751",
3
+ "version": "4.0.753",
4
4
  "description": "Tencent Cloud API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
package/products.md CHANGED
@@ -22,7 +22,7 @@
22
22
  | ba | [ICP备案](https://cloud.tencent.com/document/product/243) | 2023-10-13 01:07:08 |
23
23
  | batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2023-12-01 01:07:51 |
24
24
  | bda | [人体分析](https://cloud.tencent.com/document/product/1208) | 2023-10-11 01:10:01 |
25
- | bi | [商业智能分析 BI](https://cloud.tencent.com/document/product/590) | 2023-10-20 01:06:54 |
25
+ | bi | [商业智能分析 BI](https://cloud.tencent.com/document/product/590) | 2023-12-06 01:10:35 |
26
26
  | billing | [费用中心](https://cloud.tencent.com/document/product/555) | 2023-12-01 01:08:07 |
27
27
  | bizlive | [商业直播](https://cloud.tencent.com/document/product) | 2020-03-10 01:08:07 |
28
28
  | bm | [黑石物理服务器CPM](https://cloud.tencent.com/document/product/386) | 2023-10-18 01:14:30 |
@@ -55,11 +55,11 @@
55
55
  | cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
56
56
  | cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
57
57
  | ckafka | [消息队列 CKafka 版](https://cloud.tencent.com/document/product/597) | 2023-11-07 01:20:22 |
58
- | clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2023-12-05 01:24:22 |
58
+ | clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2023-12-07 01:24:06 |
59
59
  | cloudaudit | [云审计](https://cloud.tencent.com/document/product/629) | 2023-05-18 01:13:28 |
60
60
  | cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2023-08-17 01:57:08 |
61
61
  | cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2023-08-03 01:03:28 |
62
- | cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2023-12-05 01:26:11 |
62
+ | cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2023-12-07 01:25:42 |
63
63
  | cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2023-12-05 01:27:33 |
64
64
  | cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2023-08-17 02:03:39 |
65
65
  | cms | [内容安全](https://cloud.tencent.com/document/product/669) | 2023-08-24 01:10:10 |
@@ -71,15 +71,15 @@
71
71
  | cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2023-12-04 00:06:28 |
72
72
  | cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2023-11-29 01:11:08 |
73
73
  | cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
74
- | cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2023-11-30 03:21:01 |
74
+ | cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2023-12-06 01:34:06 |
75
75
  | dasb | [T-Sec-堡垒机(BH)](https://cloud.tencent.com/document/product/1025) | 2023-11-17 01:12:46 |
76
76
  | dataintegration | [数据接入平台](https://cloud.tencent.com/document/product/1591) | 2022-07-26 15:32:15 |
77
77
  | dayu | [DDoS 高防包](https://cloud.tencent.com/document/product/1021) | 2023-05-18 01:20:11 |
78
78
  | dbbrain | [数据库智能管家 DBbrain](https://cloud.tencent.com/document/product/1130) | 2023-10-09 01:12:39 |
79
79
  | dbdc | [云数据库独享集群](https://cloud.tencent.com/document/product/1322) | 2023-08-22 01:11:33 |
80
- | dc | [专线接入](https://cloud.tencent.com/document/product/216) | 2023-11-13 00:10:11 |
80
+ | dc | [专线接入](https://cloud.tencent.com/document/product/216) | 2023-12-07 01:37:41 |
81
81
  | dcdb | [TDSQL MySQL 版](https://cloud.tencent.com/document/product/557) | 2023-10-30 00:33:47 |
82
- | dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2023-11-30 03:35:40 |
82
+ | dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2023-12-07 01:38:53 |
83
83
  | dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2023-11-15 01:33:00 |
84
84
  | domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2023-11-29 01:52:55 |
85
85
  | drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2023-11-10 01:14:28 |
@@ -93,16 +93,16 @@
93
93
  | ecm | [边缘计算机器](https://cloud.tencent.com/document/product/1108) | 2023-11-29 01:54:46 |
94
94
  | eiam | [数字身份管控平台(员工版)](https://cloud.tencent.com/document/product/1442) | 2023-05-18 01:25:40 |
95
95
  | eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-08-10 01:17:44 |
96
- | emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2023-10-16 01:15:50 |
96
+ | emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2023-12-07 01:47:01 |
97
97
  | es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2023-12-05 01:46:13 |
98
- | ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2023-12-05 01:46:52 |
99
- | essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2023-12-05 01:47:51 |
98
+ | ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2023-12-06 01:47:30 |
99
+ | essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2023-12-07 01:49:40 |
100
100
  | facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2023-09-18 01:48:33 |
101
- | faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2023-11-14 01:16:39 |
101
+ | faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2023-12-06 01:49:35 |
102
102
  | fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2023-08-17 03:12:49 |
103
103
  | ft | [人像变换](https://cloud.tencent.com/document/product/1202) | 2023-08-17 03:12:58 |
104
104
  | gaap | [全球应用加速](https://cloud.tencent.com/document/product/608) | 2023-11-14 01:16:54 |
105
- | gme | [游戏多媒体引擎](https://cloud.tencent.com/document/product/607) | 2023-10-18 02:07:09 |
105
+ | gme | [游戏多媒体引擎](https://cloud.tencent.com/document/product/607) | 2023-12-06 01:51:28 |
106
106
  | goosefs | [数据加速器 GooseFS](https://cloud.tencent.com/document/product/1424) | 2023-11-06 00:10:39 |
107
107
  | gpm | [游戏玩家匹配](https://cloud.tencent.com/document/product/1294) | 2022-07-11 06:12:36 |
108
108
  | gs | [云游戏](https://cloud.tencent.com/document/product/1162) | 2023-05-18 01:29:42 |
@@ -143,8 +143,8 @@
143
143
  | mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2023-05-18 01:39:20 |
144
144
  | mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2023-12-01 01:19:47 |
145
145
  | mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2023-09-15 02:08:53 |
146
- | monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2023-12-05 02:04:16 |
147
- | mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2023-10-25 01:21:31 |
146
+ | monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2023-12-07 02:07:57 |
147
+ | mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2023-12-06 20:13:59 |
148
148
  | mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2023-11-30 05:22:15 |
149
149
  | ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2023-12-05 02:07:42 |
150
150
  | msp | [迁移服务平台](https://cloud.tencent.com/document/product/659) | 2023-08-17 04:18:22 |
@@ -158,7 +158,7 @@
158
158
  | partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2023-08-17 04:23:46 |
159
159
  | pds | [私域安全](https://cloud.tencent.com/document/product/1473) | 2023-05-18 01:44:14 |
160
160
  | postgres | [云数据库 PostgreSQL](https://cloud.tencent.com/document/product/409) | 2023-11-14 01:22:46 |
161
- | privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2023-10-13 01:22:04 |
161
+ | privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2023-12-07 02:16:03 |
162
162
  | pts | [云压测](https://cloud.tencent.com/document/product/1484) | 2023-08-24 01:24:59 |
163
163
  | rce | [全栈式风控引擎](https://cloud.tencent.com/document/product/1343) | 2023-11-24 01:21:07 |
164
164
  | redis | [云数据库Redis](https://cloud.tencent.com/document/product/239) | 2023-11-17 01:21:42 |
@@ -202,7 +202,7 @@
202
202
  | tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2023-11-28 01:25:42 |
203
203
  | tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2023-11-15 02:26:59 |
204
204
  | tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2023-08-30 01:25:15 |
205
- | teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2023-11-30 06:41:00 |
205
+ | teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2023-12-06 12:21:14 |
206
206
  | thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2023-11-27 00:20:12 |
207
207
  | tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
208
208
  | tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2023-08-17 05:26:08 |
@@ -215,7 +215,7 @@
215
215
  | tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2023-12-01 01:26:20 |
216
216
  | tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
217
217
  | tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2023-11-28 01:28:13 |
218
- | tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2023-09-27 01:26:36 |
218
+ | tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2023-12-07 02:40:15 |
219
219
  | tourism | [文旅客情大数据](https://cloud.tencent.com/document/product/1684) | 2023-08-10 01:43:37 |
220
220
  | trdp | [流量风险决策平台](https://cloud.tencent.com/document/product/1604) | 2023-05-18 02:01:19 |
221
221
  | trocket | [消息队列 RocketMQ 版](https://cloud.tencent.com/document/product/1493) | 2023-12-01 01:26:49 |
@@ -232,9 +232,9 @@
232
232
  | vod | [云点播](https://cloud.tencent.com/document/product/266) | 2023-12-04 00:22:12 |
233
233
  | vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2023-12-01 01:28:57 |
234
234
  | vrs | [声音复刻](https://cloud.tencent.com/document/product/1283) | 2023-11-27 00:23:42 |
235
- | waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2023-11-30 08:14:53 |
235
+ | waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2023-12-07 02:50:53 |
236
236
  | wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2023-11-15 02:42:49 |
237
- | wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2023-12-01 01:30:04 |
237
+ | wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2023-12-07 02:52:47 |
238
238
  | weilingwith | [微瓴同业开放平台](https://cloud.tencent.com/document/product/1693) | 2023-12-05 02:48:51 |
239
239
  | wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
240
240
  | yinsuda | [音速达直播音乐版权引擎](https://cloud.tencent.com/document/product/1592) | 2023-08-10 01:50:27 |
@@ -20,6 +20,7 @@ import {
20
20
  AttackRiskDetail,
21
21
  CheckIdNameDateResponse,
22
22
  IdCardVerificationRequest,
23
+ ImageRecognitionV2Response,
23
24
  GetDetectInfoEnhancedResponse,
24
25
  IntentionQuestionResult,
25
26
  RuleIdConfig,
@@ -65,7 +66,7 @@ import {
65
66
  Encryption,
66
67
  MobileNetworkTimeVerificationRequest,
67
68
  PhoneVerificationCMCCResponse,
68
- LivenessRecognitionResponse,
69
+ MobileNetworkTimeVerificationResponse,
69
70
  PhoneVerificationCUCCResponse,
70
71
  CheckIdCardInformationRequest,
71
72
  GetEidTokenConfig,
@@ -77,9 +78,10 @@ import {
77
78
  DetectInfoText,
78
79
  ImageRecognitionResponse,
79
80
  GetDetectInfoResponse,
81
+ IdCardOCRVerificationResponse,
80
82
  IdCardVerificationResponse,
81
83
  GetDetectInfoEnhancedRequest,
82
- MobileNetworkTimeVerificationResponse,
84
+ LivenessRecognitionResponse,
83
85
  GetLiveCodeRequest,
84
86
  GetEidResultResponse,
85
87
  WeChatBillDetail,
@@ -89,7 +91,7 @@ import {
89
91
  GetFaceIdTokenRequest,
90
92
  IntentionActionResult,
91
93
  BankCard2EVerificationRequest,
92
- IdCardOCRVerificationResponse,
94
+ ImageRecognitionV2Request,
93
95
  PhoneVerificationCTCCResponse,
94
96
  ChargeDetail,
95
97
  ParseNfcDataRequest,
@@ -225,6 +227,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
225
227
  return this.request("BankCardVerification", req, cb)
226
228
  }
227
229
 
230
+ /**
231
+ * 传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人。
232
+ */
233
+ async ImageRecognitionV2(
234
+ req: ImageRecognitionV2Request,
235
+ cb?: (error: string, rep: ImageRecognitionV2Response) => void
236
+ ): Promise<ImageRecognitionV2Response> {
237
+ return this.request("ImageRecognitionV2", req, cb)
238
+ }
239
+
228
240
  /**
229
241
  * 传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
230
242
  */
@@ -79,6 +79,28 @@ export interface IdCardVerificationRequest {
79
79
  Encryption?: Encryption
80
80
  }
81
81
 
82
+ /**
83
+ * ImageRecognitionV2返回参数结构体
84
+ */
85
+ export interface ImageRecognitionV2Response {
86
+ /**
87
+ * 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
88
+ */
89
+ Sim?: number
90
+ /**
91
+ * 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
92
+ */
93
+ Result?: string
94
+ /**
95
+ * 业务结果描述。
96
+ */
97
+ Description?: string
98
+ /**
99
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
100
+ */
101
+ RequestId?: string
102
+ }
103
+
82
104
  /**
83
105
  * GetDetectInfoEnhanced返回参数结构体
84
106
  */
@@ -1567,31 +1589,29 @@ export interface PhoneVerificationCMCCResponse {
1567
1589
  }
1568
1590
 
1569
1591
  /**
1570
- * LivenessRecognition返回参数结构体
1592
+ * MobileNetworkTimeVerification返回参数结构体
1571
1593
  */
1572
- export interface LivenessRecognitionResponse {
1573
- /**
1574
- * 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
1575
- 注意:此字段可能返回 null,表示取不到有效值。
1576
- */
1577
- BestFrameBase64?: string
1578
- /**
1579
- * 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
1580
- */
1581
- Sim?: number
1594
+ export interface MobileNetworkTimeVerificationResponse {
1582
1595
  /**
1583
- * 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
1596
+ * 认证结果码,收费情况如下。
1597
+ 收费结果码:
1598
+ 0: 成功
1599
+ -2: 手机号不存在
1600
+ -3: 手机号存在,但无法查询到在网时长
1601
+ 不收费结果码:
1602
+ -1: 手机号格式不正确
1603
+ -4: 验证中心服务繁忙
1584
1604
  */
1585
- Result?: string
1605
+ Result: string
1586
1606
  /**
1587
1607
  * 业务结果描述。
1588
1608
  */
1589
- Description?: string
1609
+ Description: string
1590
1610
  /**
1591
- * 最佳截图列表,仅在配置了返回多张最佳截图时返回。
1592
- 注意:此字段可能返回 null,表示取不到有效值。
1611
+ * 在网时长区间。
1612
+ 格式为(a,b],表示在网时长在a个月以上,b个月以下。若b为+时表示没有上限。
1593
1613
  */
1594
- BestFrameList?: Array<string>
1614
+ Range: string
1595
1615
  /**
1596
1616
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1597
1617
  */
@@ -2103,6 +2123,62 @@ export interface GetDetectInfoResponse {
2103
2123
  RequestId?: string
2104
2124
  }
2105
2125
 
2126
+ /**
2127
+ * IdCardOCRVerification返回参数结构体
2128
+ */
2129
+ export interface IdCardOCRVerificationResponse {
2130
+ /**
2131
+ * 认证结果码,收费情况如下。
2132
+ 收费结果码:
2133
+ 0: 姓名和身份证号一致
2134
+ -1: 姓名和身份证号不一致
2135
+ 不收费结果码:
2136
+ -2: 非法身份证号(长度、校验位等不正确)
2137
+ -3: 非法姓名(长度、格式等不正确)
2138
+ -4: 证件库服务异常
2139
+ -5: 证件库中无此身份证记录
2140
+ -6: 权威比对系统升级中,请稍后再试
2141
+ -7: 认证次数超过当日限制
2142
+ */
2143
+ Result: string
2144
+ /**
2145
+ * 业务结果描述。
2146
+ */
2147
+ Description: string
2148
+ /**
2149
+ * 用于验证的姓名
2150
+ */
2151
+ Name: string
2152
+ /**
2153
+ * 用于验证的身份证号
2154
+ */
2155
+ IdCard: string
2156
+ /**
2157
+ * OCR得到的性别
2158
+ 注意:此字段可能返回 null,表示取不到有效值。
2159
+ */
2160
+ Sex: string
2161
+ /**
2162
+ * OCR得到的民族
2163
+ 注意:此字段可能返回 null,表示取不到有效值。
2164
+ */
2165
+ Nation: string
2166
+ /**
2167
+ * OCR得到的生日
2168
+ 注意:此字段可能返回 null,表示取不到有效值。
2169
+ */
2170
+ Birth: string
2171
+ /**
2172
+ * OCR得到的地址
2173
+ 注意:此字段可能返回 null,表示取不到有效值。
2174
+ */
2175
+ Address: string
2176
+ /**
2177
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2178
+ */
2179
+ RequestId?: string
2180
+ }
2181
+
2106
2182
  /**
2107
2183
  * IdCardVerification返回参数结构体
2108
2184
  */
@@ -2176,29 +2252,31 @@ export interface GetDetectInfoEnhancedRequest {
2176
2252
  }
2177
2253
 
2178
2254
  /**
2179
- * MobileNetworkTimeVerification返回参数结构体
2255
+ * LivenessRecognition返回参数结构体
2180
2256
  */
2181
- export interface MobileNetworkTimeVerificationResponse {
2257
+ export interface LivenessRecognitionResponse {
2182
2258
  /**
2183
- * 认证结果码,收费情况如下。
2184
- 收费结果码:
2185
- 0: 成功
2186
- -2: 手机号不存在
2187
- -3: 手机号存在,但无法查询到在网时长
2188
- 不收费结果码:
2189
- -1: 手机号格式不正确
2190
- -4: 验证中心服务繁忙
2259
+ * 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
2260
+ 注意:此字段可能返回 null,表示取不到有效值。
2191
2261
  */
2192
- Result: string
2262
+ BestFrameBase64?: string
2263
+ /**
2264
+ * 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
2265
+ */
2266
+ Sim?: number
2267
+ /**
2268
+ * 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
2269
+ */
2270
+ Result?: string
2193
2271
  /**
2194
2272
  * 业务结果描述。
2195
2273
  */
2196
- Description: string
2274
+ Description?: string
2197
2275
  /**
2198
- * 在网时长区间。
2199
- 格式为(a,b],表示在网时长在a个月以上,b个月以下。若b为+时表示没有上限。
2276
+ * 最佳截图列表,仅在配置了返回多张最佳截图时返回。
2277
+ 注意:此字段可能返回 null,表示取不到有效值。
2200
2278
  */
2201
- Range: string
2279
+ BestFrameList?: Array<string>
2202
2280
  /**
2203
2281
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2204
2282
  */
@@ -2449,59 +2527,31 @@ export interface BankCard2EVerificationRequest {
2449
2527
  }
2450
2528
 
2451
2529
  /**
2452
- * IdCardOCRVerification返回参数结构体
2530
+ * ImageRecognitionV2请求参数结构体
2453
2531
  */
2454
- export interface IdCardOCRVerificationResponse {
2455
- /**
2456
- * 认证结果码,收费情况如下。
2457
- 收费结果码:
2458
- 0: 姓名和身份证号一致
2459
- -1: 姓名和身份证号不一致
2460
- 不收费结果码:
2461
- -2: 非法身份证号(长度、校验位等不正确)
2462
- -3: 非法姓名(长度、格式等不正确)
2463
- -4: 证件库服务异常
2464
- -5: 证件库中无此身份证记录
2465
- -6: 权威比对系统升级中,请稍后再试
2466
- -7: 认证次数超过当日限制
2467
- */
2468
- Result: string
2532
+ export interface ImageRecognitionV2Request {
2469
2533
  /**
2470
- * 业务结果描述。
2471
- */
2472
- Description: string
2473
- /**
2474
- * 用于验证的姓名
2475
- */
2476
- Name: string
2477
- /**
2478
- * 用于验证的身份证号
2534
+ * 身份证号
2479
2535
  */
2480
2536
  IdCard: string
2481
2537
  /**
2482
- * OCR得到的性别
2483
- 注意:此字段可能返回 null,表示取不到有效值。
2484
- */
2485
- Sex: string
2486
- /**
2487
- * OCR得到的民族
2488
- 注意:此字段可能返回 null,表示取不到有效值。
2538
+ * 姓名。中文请使用UTF-8编码。
2489
2539
  */
2490
- Nation: string
2540
+ Name: string
2491
2541
  /**
2492
- * OCR得到的生日
2493
- 注意:此字段可能返回 null,表示取不到有效值。
2542
+ * 用于人脸比对的照片,图片的Base64值;
2543
+ Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
2544
+ 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
2494
2545
  */
2495
- Birth: string
2546
+ ImageBase64: string
2496
2547
  /**
2497
- * OCR得到的地址
2498
- 注意:此字段可能返回 null,表示取不到有效值。
2548
+ * 本接口不需要传递此参数。
2499
2549
  */
2500
- Address: string
2550
+ Optional?: string
2501
2551
  /**
2502
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2552
+ * 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
2503
2553
  */
2504
- RequestId?: string
2554
+ Encryption?: Encryption
2505
2555
  }
2506
2556
 
2507
2557
  /**
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { CheckIdNameDateResponse, IdCardVerificationRequest, 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, LivenessRecognitionResponse, PhoneVerificationCUCCResponse, CheckIdCardInformationRequest, MinorsVerificationResponse, GetWeChatBillDetailsRequest, BankCardVerificationResponse, PhoneVerificationCUCCRequest, PhoneVerificationCMCCRequest, ImageRecognitionResponse, GetDetectInfoResponse, IdCardVerificationResponse, GetDetectInfoEnhancedRequest, MobileNetworkTimeVerificationResponse, GetLiveCodeRequest, GetEidResultResponse, PhoneVerificationRequest, GetFaceIdResultRequest, CheckPhoneAndNameResponse, GetFaceIdTokenRequest, BankCard2EVerificationRequest, IdCardOCRVerificationResponse, PhoneVerificationCTCCResponse, ParseNfcDataRequest, PhoneVerificationCTCCRequest, ImageRecognitionRequest, BankCard4EVerificationRequest, GetActionSequenceRequest, GetLiveCodeResponse, GetDetectInfoRequest, CheckPhoneAndNameRequest, GetEidTokenResponse } from "./faceid_models";
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";
3
3
  /**
4
4
  * faceid client
5
5
  * @class
@@ -51,6 +51,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
51
51
  * 本接口用于银行卡号、姓名、开户证件号信息的真实性和一致性。
52
52
  */
53
53
  BankCardVerification(req: BankCardVerificationRequest, cb?: (error: string, rep: BankCardVerificationResponse) => void): Promise<BankCardVerificationResponse>;
54
+ /**
55
+ * 传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人。
56
+ */
57
+ ImageRecognitionV2(req: ImageRecognitionV2Request, cb?: (error: string, rep: ImageRecognitionV2Response) => void): Promise<ImageRecognitionV2Response>;
54
58
  /**
55
59
  * 传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
56
60
  */
@@ -94,6 +94,12 @@ class Client extends TencentCloudCommon.AbstractClient {
94
94
  async BankCardVerification(req, cb) {
95
95
  return this.request("BankCardVerification", req, cb);
96
96
  }
97
+ /**
98
+ * 传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人。
99
+ */
100
+ async ImageRecognitionV2(req, cb) {
101
+ return this.request("ImageRecognitionV2", req, cb);
102
+ }
97
103
  /**
98
104
  * 传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
99
105
  */
@@ -59,6 +59,27 @@ export interface IdCardVerificationRequest {
59
59
  */
60
60
  Encryption?: Encryption;
61
61
  }
62
+ /**
63
+ * ImageRecognitionV2返回参数结构体
64
+ */
65
+ export interface ImageRecognitionV2Response {
66
+ /**
67
+ * 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
68
+ */
69
+ Sim?: number;
70
+ /**
71
+ * 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
72
+ */
73
+ Result?: string;
74
+ /**
75
+ * 业务结果描述。
76
+ */
77
+ Description?: string;
78
+ /**
79
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
80
+ */
81
+ RequestId?: string;
82
+ }
62
83
  /**
63
84
  * GetDetectInfoEnhanced返回参数结构体
64
85
  */
@@ -1502,31 +1523,29 @@ export interface PhoneVerificationCMCCResponse {
1502
1523
  RequestId?: string;
1503
1524
  }
1504
1525
  /**
1505
- * LivenessRecognition返回参数结构体
1526
+ * MobileNetworkTimeVerification返回参数结构体
1506
1527
  */
1507
- export interface LivenessRecognitionResponse {
1508
- /**
1509
- * 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
1510
- 注意:此字段可能返回 null,表示取不到有效值。
1511
- */
1512
- BestFrameBase64?: string;
1513
- /**
1514
- * 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
1515
- */
1516
- Sim?: number;
1528
+ export interface MobileNetworkTimeVerificationResponse {
1517
1529
  /**
1518
- * 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
1530
+ * 认证结果码,收费情况如下。
1531
+ 收费结果码:
1532
+ 0: 成功
1533
+ -2: 手机号不存在
1534
+ -3: 手机号存在,但无法查询到在网时长
1535
+ 不收费结果码:
1536
+ -1: 手机号格式不正确
1537
+ -4: 验证中心服务繁忙
1519
1538
  */
1520
- Result?: string;
1539
+ Result: string;
1521
1540
  /**
1522
1541
  * 业务结果描述。
1523
1542
  */
1524
- Description?: string;
1543
+ Description: string;
1525
1544
  /**
1526
- * 最佳截图列表,仅在配置了返回多张最佳截图时返回。
1527
- 注意:此字段可能返回 null,表示取不到有效值。
1545
+ * 在网时长区间。
1546
+ 格式为(a,b],表示在网时长在a个月以上,b个月以下。若b为+时表示没有上限。
1528
1547
  */
1529
- BestFrameList?: Array<string>;
1548
+ Range: string;
1530
1549
  /**
1531
1550
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1532
1551
  */
@@ -2026,6 +2045,61 @@ export interface GetDetectInfoResponse {
2026
2045
  */
2027
2046
  RequestId?: string;
2028
2047
  }
2048
+ /**
2049
+ * IdCardOCRVerification返回参数结构体
2050
+ */
2051
+ export interface IdCardOCRVerificationResponse {
2052
+ /**
2053
+ * 认证结果码,收费情况如下。
2054
+ 收费结果码:
2055
+ 0: 姓名和身份证号一致
2056
+ -1: 姓名和身份证号不一致
2057
+ 不收费结果码:
2058
+ -2: 非法身份证号(长度、校验位等不正确)
2059
+ -3: 非法姓名(长度、格式等不正确)
2060
+ -4: 证件库服务异常
2061
+ -5: 证件库中无此身份证记录
2062
+ -6: 权威比对系统升级中,请稍后再试
2063
+ -7: 认证次数超过当日限制
2064
+ */
2065
+ Result: string;
2066
+ /**
2067
+ * 业务结果描述。
2068
+ */
2069
+ Description: string;
2070
+ /**
2071
+ * 用于验证的姓名
2072
+ */
2073
+ Name: string;
2074
+ /**
2075
+ * 用于验证的身份证号
2076
+ */
2077
+ IdCard: string;
2078
+ /**
2079
+ * OCR得到的性别
2080
+ 注意:此字段可能返回 null,表示取不到有效值。
2081
+ */
2082
+ Sex: string;
2083
+ /**
2084
+ * OCR得到的民族
2085
+ 注意:此字段可能返回 null,表示取不到有效值。
2086
+ */
2087
+ Nation: string;
2088
+ /**
2089
+ * OCR得到的生日
2090
+ 注意:此字段可能返回 null,表示取不到有效值。
2091
+ */
2092
+ Birth: string;
2093
+ /**
2094
+ * OCR得到的地址
2095
+ 注意:此字段可能返回 null,表示取不到有效值。
2096
+ */
2097
+ Address: string;
2098
+ /**
2099
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2100
+ */
2101
+ RequestId?: string;
2102
+ }
2029
2103
  /**
2030
2104
  * IdCardVerification返回参数结构体
2031
2105
  */
@@ -2097,29 +2171,31 @@ export interface GetDetectInfoEnhancedRequest {
2097
2171
  IsEncryptResponse?: boolean;
2098
2172
  }
2099
2173
  /**
2100
- * MobileNetworkTimeVerification返回参数结构体
2174
+ * LivenessRecognition返回参数结构体
2101
2175
  */
2102
- export interface MobileNetworkTimeVerificationResponse {
2176
+ export interface LivenessRecognitionResponse {
2103
2177
  /**
2104
- * 认证结果码,收费情况如下。
2105
- 收费结果码:
2106
- 0: 成功
2107
- -2: 手机号不存在
2108
- -3: 手机号存在,但无法查询到在网时长
2109
- 不收费结果码:
2110
- -1: 手机号格式不正确
2111
- -4: 验证中心服务繁忙
2178
+ * 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
2179
+ 注意:此字段可能返回 null,表示取不到有效值。
2112
2180
  */
2113
- Result: string;
2181
+ BestFrameBase64?: string;
2182
+ /**
2183
+ * 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
2184
+ */
2185
+ Sim?: number;
2186
+ /**
2187
+ * 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
2188
+ */
2189
+ Result?: string;
2114
2190
  /**
2115
2191
  * 业务结果描述。
2116
2192
  */
2117
- Description: string;
2193
+ Description?: string;
2118
2194
  /**
2119
- * 在网时长区间。
2120
- 格式为(a,b],表示在网时长在a个月以上,b个月以下。若b为+时表示没有上限。
2195
+ * 最佳截图列表,仅在配置了返回多张最佳截图时返回。
2196
+ 注意:此字段可能返回 null,表示取不到有效值。
2121
2197
  */
2122
- Range: string;
2198
+ BestFrameList?: Array<string>;
2123
2199
  /**
2124
2200
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2125
2201
  */
@@ -2360,59 +2436,31 @@ export interface BankCard2EVerificationRequest {
2360
2436
  Encryption?: Encryption;
2361
2437
  }
2362
2438
  /**
2363
- * IdCardOCRVerification返回参数结构体
2439
+ * ImageRecognitionV2请求参数结构体
2364
2440
  */
2365
- export interface IdCardOCRVerificationResponse {
2441
+ export interface ImageRecognitionV2Request {
2366
2442
  /**
2367
- * 认证结果码,收费情况如下。
2368
- 收费结果码:
2369
- 0: 姓名和身份证号一致
2370
- -1: 姓名和身份证号不一致
2371
- 不收费结果码:
2372
- -2: 非法身份证号(长度、校验位等不正确)
2373
- -3: 非法姓名(长度、格式等不正确)
2374
- -4: 证件库服务异常
2375
- -5: 证件库中无此身份证记录
2376
- -6: 权威比对系统升级中,请稍后再试
2377
- -7: 认证次数超过当日限制
2378
- */
2379
- Result: string;
2380
- /**
2381
- * 业务结果描述。
2382
- */
2383
- Description: string;
2384
- /**
2385
- * 用于验证的姓名
2386
- */
2387
- Name: string;
2388
- /**
2389
- * 用于验证的身份证号
2443
+ * 身份证号
2390
2444
  */
2391
2445
  IdCard: string;
2392
2446
  /**
2393
- * OCR得到的性别
2394
- 注意:此字段可能返回 null,表示取不到有效值。
2395
- */
2396
- Sex: string;
2397
- /**
2398
- * OCR得到的民族
2399
- 注意:此字段可能返回 null,表示取不到有效值。
2447
+ * 姓名。中文请使用UTF-8编码。
2400
2448
  */
2401
- Nation: string;
2449
+ Name: string;
2402
2450
  /**
2403
- * OCR得到的生日
2404
- 注意:此字段可能返回 null,表示取不到有效值。
2451
+ * 用于人脸比对的照片,图片的Base64值;
2452
+ Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
2453
+ 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
2405
2454
  */
2406
- Birth: string;
2455
+ ImageBase64: string;
2407
2456
  /**
2408
- * OCR得到的地址
2409
- 注意:此字段可能返回 null,表示取不到有效值。
2457
+ * 本接口不需要传递此参数。
2410
2458
  */
2411
- Address: string;
2459
+ Optional?: string;
2412
2460
  /**
2413
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2461
+ * 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
2414
2462
  */
2415
- RequestId?: string;
2463
+ Encryption?: Encryption;
2416
2464
  }
2417
2465
  /**
2418
2466
  * PhoneVerificationCTCC返回参数结构体