tencentcloud-sdk-nodejs-faceid 4.0.751 → 4.0.752
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 +1 -1
- package/products.md +8 -8
- package/src/services/faceid/v20180301/faceid_client.ts +15 -3
- package/src/services/faceid/v20180301/faceid_models.ts +123 -73
- package/tencentcloud/services/faceid/v20180301/faceid_client.d.ts +5 -1
- package/tencentcloud/services/faceid/v20180301/faceid_client.js +6 -0
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +121 -73
package/package.json
CHANGED
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-
|
|
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 |
|
|
@@ -71,7 +71,7 @@
|
|
|
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-
|
|
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 |
|
|
@@ -95,14 +95,14 @@
|
|
|
95
95
|
| eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-08-10 01:17:44 |
|
|
96
96
|
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2023-10-16 01:15:50 |
|
|
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-
|
|
99
|
-
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2023-12-
|
|
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-06 01:48:32 |
|
|
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-
|
|
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-
|
|
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,7 +143,7 @@
|
|
|
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-
|
|
146
|
+
| monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2023-12-06 02:06:58 |
|
|
147
147
|
| mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2023-10-25 01:21:31 |
|
|
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 |
|
|
@@ -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-
|
|
205
|
+
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2023-12-06 02:32:56 |
|
|
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 |
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
1592
|
+
* MobileNetworkTimeVerification返回参数结构体
|
|
1571
1593
|
*/
|
|
1572
|
-
export interface
|
|
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
|
-
*
|
|
1596
|
+
* 认证结果码,收费情况如下。
|
|
1597
|
+
收费结果码:
|
|
1598
|
+
0: 成功
|
|
1599
|
+
-2: 手机号不存在
|
|
1600
|
+
-3: 手机号存在,但无法查询到在网时长
|
|
1601
|
+
不收费结果码:
|
|
1602
|
+
-1: 手机号格式不正确
|
|
1603
|
+
-4: 验证中心服务繁忙
|
|
1584
1604
|
*/
|
|
1585
|
-
Result
|
|
1605
|
+
Result: string
|
|
1586
1606
|
/**
|
|
1587
1607
|
* 业务结果描述。
|
|
1588
1608
|
*/
|
|
1589
|
-
Description
|
|
1609
|
+
Description: string
|
|
1590
1610
|
/**
|
|
1591
|
-
*
|
|
1592
|
-
|
|
1611
|
+
* 在网时长区间。
|
|
1612
|
+
格式为(a,b],表示在网时长在a个月以上,b个月以下。若b为+时表示没有上限。
|
|
1593
1613
|
*/
|
|
1594
|
-
|
|
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
|
-
*
|
|
2255
|
+
* LivenessRecognition返回参数结构体
|
|
2180
2256
|
*/
|
|
2181
|
-
export interface
|
|
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
|
-
|
|
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
|
|
2274
|
+
Description?: string
|
|
2197
2275
|
/**
|
|
2198
|
-
*
|
|
2199
|
-
|
|
2276
|
+
* 最佳截图列表,仅在配置了返回多张最佳截图时返回。
|
|
2277
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2200
2278
|
*/
|
|
2201
|
-
|
|
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
|
-
*
|
|
2530
|
+
* ImageRecognitionV2请求参数结构体
|
|
2453
2531
|
*/
|
|
2454
|
-
export interface
|
|
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
|
-
*
|
|
2483
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2484
|
-
*/
|
|
2485
|
-
Sex: string
|
|
2486
|
-
/**
|
|
2487
|
-
* OCR得到的民族
|
|
2488
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2538
|
+
* 姓名。中文请使用UTF-8编码。
|
|
2489
2539
|
*/
|
|
2490
|
-
|
|
2540
|
+
Name: string
|
|
2491
2541
|
/**
|
|
2492
|
-
*
|
|
2493
|
-
|
|
2542
|
+
* 用于人脸比对的照片,图片的Base64值;
|
|
2543
|
+
Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
|
|
2544
|
+
请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
|
|
2494
2545
|
*/
|
|
2495
|
-
|
|
2546
|
+
ImageBase64: string
|
|
2496
2547
|
/**
|
|
2497
|
-
*
|
|
2498
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2548
|
+
* 本接口不需要传递此参数。
|
|
2499
2549
|
*/
|
|
2500
|
-
|
|
2550
|
+
Optional?: string
|
|
2501
2551
|
/**
|
|
2502
|
-
*
|
|
2552
|
+
* 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
|
|
2503
2553
|
*/
|
|
2504
|
-
|
|
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,
|
|
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
|
-
*
|
|
1526
|
+
* MobileNetworkTimeVerification返回参数结构体
|
|
1506
1527
|
*/
|
|
1507
|
-
export interface
|
|
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
|
-
*
|
|
1530
|
+
* 认证结果码,收费情况如下。
|
|
1531
|
+
收费结果码:
|
|
1532
|
+
0: 成功
|
|
1533
|
+
-2: 手机号不存在
|
|
1534
|
+
-3: 手机号存在,但无法查询到在网时长
|
|
1535
|
+
不收费结果码:
|
|
1536
|
+
-1: 手机号格式不正确
|
|
1537
|
+
-4: 验证中心服务繁忙
|
|
1519
1538
|
*/
|
|
1520
|
-
Result
|
|
1539
|
+
Result: string;
|
|
1521
1540
|
/**
|
|
1522
1541
|
* 业务结果描述。
|
|
1523
1542
|
*/
|
|
1524
|
-
Description
|
|
1543
|
+
Description: string;
|
|
1525
1544
|
/**
|
|
1526
|
-
*
|
|
1527
|
-
|
|
1545
|
+
* 在网时长区间。
|
|
1546
|
+
格式为(a,b],表示在网时长在a个月以上,b个月以下。若b为+时表示没有上限。
|
|
1528
1547
|
*/
|
|
1529
|
-
|
|
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
|
-
*
|
|
2174
|
+
* LivenessRecognition返回参数结构体
|
|
2101
2175
|
*/
|
|
2102
|
-
export interface
|
|
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
|
-
|
|
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
|
|
2193
|
+
Description?: string;
|
|
2118
2194
|
/**
|
|
2119
|
-
*
|
|
2120
|
-
|
|
2195
|
+
* 最佳截图列表,仅在配置了返回多张最佳截图时返回。
|
|
2196
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2121
2197
|
*/
|
|
2122
|
-
|
|
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
|
-
*
|
|
2439
|
+
* ImageRecognitionV2请求参数结构体
|
|
2364
2440
|
*/
|
|
2365
|
-
export interface
|
|
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
|
-
*
|
|
2394
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2395
|
-
*/
|
|
2396
|
-
Sex: string;
|
|
2397
|
-
/**
|
|
2398
|
-
* OCR得到的民族
|
|
2399
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2447
|
+
* 姓名。中文请使用UTF-8编码。
|
|
2400
2448
|
*/
|
|
2401
|
-
|
|
2449
|
+
Name: string;
|
|
2402
2450
|
/**
|
|
2403
|
-
*
|
|
2404
|
-
|
|
2451
|
+
* 用于人脸比对的照片,图片的Base64值;
|
|
2452
|
+
Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
|
|
2453
|
+
请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
|
|
2405
2454
|
*/
|
|
2406
|
-
|
|
2455
|
+
ImageBase64: string;
|
|
2407
2456
|
/**
|
|
2408
|
-
*
|
|
2409
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2457
|
+
* 本接口不需要传递此参数。
|
|
2410
2458
|
*/
|
|
2411
|
-
|
|
2459
|
+
Optional?: string;
|
|
2412
2460
|
/**
|
|
2413
|
-
*
|
|
2461
|
+
* 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
|
|
2414
2462
|
*/
|
|
2415
|
-
|
|
2463
|
+
Encryption?: Encryption;
|
|
2416
2464
|
}
|
|
2417
2465
|
/**
|
|
2418
2466
|
* PhoneVerificationCTCC返回参数结构体
|