tencentcloud-sdk-nodejs 4.0.238 → 4.0.239
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/CHANGELOG.md +251 -183
- package/package.json +1 -1
- package/products.md +11 -11
- package/src/common/sdk_version.ts +1 -1
- package/src/services/af/v20200226/af_client.ts +20 -3
- package/src/services/af/v20200226/af_models.ts +375 -36
- package/src/services/afc/v20200226/afc_client.ts +22 -1
- package/src/services/afc/v20200226/afc_models.ts +359 -23
- package/src/services/cfw/v20190904/cfw_client.ts +43 -6
- package/src/services/cfw/v20190904/cfw_models.ts +406 -153
- package/src/services/cwp/v20180228/cwp_client.ts +1 -1
- package/src/services/cwp/v20180228/cwp_models.ts +141 -21
- package/src/services/soe/v20180724/soe_models.ts +8 -5
- package/src/services/ssl/v20191205/ssl_models.ts +1 -1
- package/src/services/tcm/v20210413/tcm_client.ts +2 -1
- package/src/services/tcm/v20210413/tcm_models.ts +37 -8
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/af/v20200226/af_client.d.ts +5 -1
- package/tencentcloud/services/af/v20200226/af_client.js +6 -0
- package/tencentcloud/services/af/v20200226/af_models.d.ts +323 -32
- package/tencentcloud/services/afc/v20200226/afc_client.d.ts +5 -1
- package/tencentcloud/services/afc/v20200226/afc_client.js +6 -0
- package/tencentcloud/services/afc/v20200226/afc_models.d.ts +306 -18
- package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +13 -1
- package/tencentcloud/services/cfw/v20190904/cfw_client.js +18 -0
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +346 -128
- package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +1 -1
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +120 -20
- package/tencentcloud/services/soe/v20180724/soe_models.d.ts +6 -3
- package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +1 -1
- package/tencentcloud/services/tcm/v20210413/tcm_models.d.ts +31 -6
- package/test/af.v20200226.test.js +10 -0
- package/test/afc.v20200226.test.js +10 -0
- package/test/cfw.v20190904.test.js +30 -0
package/products.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
| aa | [活动防刷](https://cloud.tencent.com/document/product/1189) | 2021-11-10 08:01:48 |
|
|
4
4
|
| aai | [](https://cloud.tencent.com/document/product) | 2019-08-08 23:15:13 |
|
|
5
5
|
| advisor | [云顾问](https://cloud.tencent.com/document/product/1264) | 2021-11-10 08:01:49 |
|
|
6
|
-
| af | [借贷反欺诈](https://cloud.tencent.com/document/product/668) | 2021-11-
|
|
7
|
-
| afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2021-11-
|
|
6
|
+
| af | [借贷反欺诈](https://cloud.tencent.com/document/product/668) | 2021-11-18 08:02:15 |
|
|
7
|
+
| afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2021-11-18 08:02:17 |
|
|
8
8
|
| ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2021-11-10 08:01:52 |
|
|
9
9
|
| ams | [音频内容检测](https://cloud.tencent.com/document/product/1219) | 2021-11-10 08:01:55 |
|
|
10
10
|
| antiddos | [DDoS 防护](https://cloud.tencent.com/document/product/1021) | 2021-11-10 08:01:56 |
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
| cdn | [内容分发网络](https://cloud.tencent.com/document/product/228) | 2021-11-16 08:07:04 |
|
|
36
36
|
| cds | [数据安全审计](https://cloud.tencent.com/document/product/856) | 2021-11-10 08:03:57 |
|
|
37
37
|
| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2021-11-17 08:07:53 |
|
|
38
|
-
| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2021-11-
|
|
38
|
+
| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2021-11-18 08:04:19 |
|
|
39
39
|
| chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2021-11-10 08:04:08 |
|
|
40
40
|
| cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2021-11-10 08:04:09 |
|
|
41
41
|
| cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2021-11-17 08:08:58 |
|
|
52
52
|
| cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
|
|
53
53
|
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2021-11-17 08:09:38 |
|
|
54
|
-
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2021-11-
|
|
54
|
+
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2021-11-18 08:05:46 |
|
|
55
55
|
| cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
|
|
56
56
|
| cynosdb | [云原生数据库 TDSQL-C](https://cloud.tencent.com/document/product/1003) | 2021-11-17 08:10:15 |
|
|
57
57
|
| dayu | [DDoS 高防包](https://cloud.tencent.com/document/product/1021) | 2021-11-10 08:05:47 |
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2021-11-10 08:06:57 |
|
|
74
74
|
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2021-11-10 08:07:00 |
|
|
75
75
|
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2021-11-10 08:07:03 |
|
|
76
|
-
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2021-11-
|
|
76
|
+
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2021-11-18 08:08:10 |
|
|
77
77
|
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2021-11-10 08:07:06 |
|
|
78
78
|
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2021-11-10 08:07:11 |
|
|
79
79
|
| ft | [人像变换](https://cloud.tencent.com/document/product/1202) | 2021-11-10 08:07:13 |
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
| mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2021-11-10 08:08:55 |
|
|
106
106
|
| mna | [移动网络加速](https://cloud.tencent.com/document/product/1385) | 2021-11-10 08:08:55 |
|
|
107
107
|
| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2021-11-10 08:08:57 |
|
|
108
|
-
| monitor | [云监控](https://cloud.tencent.com/document/product/248) | 2021-11-
|
|
108
|
+
| monitor | [云监控](https://cloud.tencent.com/document/product/248) | 2021-11-18 08:10:15 |
|
|
109
109
|
| mps | [视频处理](https://cloud.tencent.com/document/product/862) | 2021-11-10 08:09:09 |
|
|
110
110
|
| mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2021-11-16 08:13:00 |
|
|
111
111
|
| ms | [移动应用安全](https://cloud.tencent.com/document/product) | 2020-06-05 08:13:52 |
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
| oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2021-11-15 08:11:30 |
|
|
117
117
|
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2021-11-12 08:07:55 |
|
|
118
118
|
| organization | [企业组织](https://cloud.tencent.com/document/product/850) | 2021-11-10 08:09:46 |
|
|
119
|
-
| partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2021-11-
|
|
119
|
+
| partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2021-11-18 08:11:02 |
|
|
120
120
|
| pds | [私域安全](https://cloud.tencent.com/document/product/1473) | 2021-11-10 08:09:50 |
|
|
121
121
|
| postgres | [云数据库 PostgreSQL](https://cloud.tencent.com/document/product/409) | 2021-11-11 11:06:26 |
|
|
122
122
|
| privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2021-11-10 08:09:59 |
|
|
@@ -129,11 +129,11 @@
|
|
|
129
129
|
| ses | [邮件推送](https://cloud.tencent.com/document/product/1288) | 2021-11-10 08:10:13 |
|
|
130
130
|
| smpn | [营销号码安全](https://cloud.tencent.com/document/product/1127) | 2021-11-10 08:10:15 |
|
|
131
131
|
| sms | [短信](https://cloud.tencent.com/document/product/382) | 2021-11-16 08:13:49 |
|
|
132
|
-
| soe | [智聆口语评测](https://cloud.tencent.com/document/product/884) | 2021-11-
|
|
132
|
+
| soe | [智聆口语评测](https://cloud.tencent.com/document/product/884) | 2021-11-18 08:11:34 |
|
|
133
133
|
| solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 |
|
|
134
134
|
| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2021-11-10 08:10:19 |
|
|
135
135
|
| ssa | [态势感知](https://cloud.tencent.com/document/product/664) | 2021-11-10 08:10:31 |
|
|
136
|
-
| ssl | [证书](https://cloud.tencent.com/document/product/400) | 2021-11-
|
|
136
|
+
| ssl | [证书](https://cloud.tencent.com/document/product/400) | 2021-11-18 08:11:52 |
|
|
137
137
|
| sslpod | [SSL 证书监控](https://cloud.tencent.com/document/product/1084) | 2021-11-10 08:10:37 |
|
|
138
138
|
| ssm | [凭据管理系统](https://cloud.tencent.com/document/product/1140) | 2021-11-10 08:10:38 |
|
|
139
139
|
| sts | [安全凭证服务](https://cloud.tencent.com/document/product/1312) | 2021-11-10 08:10:42 |
|
|
@@ -148,10 +148,10 @@
|
|
|
148
148
|
| tcb | [云开发 CloudBase](https://cloud.tencent.com/document/product/876) | 2021-11-15 08:13:00 |
|
|
149
149
|
| tcex | [腾讯云释义](https://cloud.tencent.com/document/product/1266) | 2021-11-10 08:11:12 |
|
|
150
150
|
| tci | [腾讯智学课堂分析](https://cloud.tencent.com/document/product) | 2020-08-24 08:06:03 |
|
|
151
|
-
| tcm | [服务网格](https://cloud.tencent.com/document/product/1261) | 2021-11-
|
|
151
|
+
| tcm | [服务网格](https://cloud.tencent.com/document/product/1261) | 2021-11-18 08:12:32 |
|
|
152
152
|
| tcr | [容器镜像服务](https://cloud.tencent.com/document/product/1141) | 2021-11-11 11:08:37 |
|
|
153
153
|
| tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2021-11-10 08:11:24 |
|
|
154
|
-
| tdmq | [分布式消息队列](https://cloud.tencent.com/document/product/1179) | 2021-11-
|
|
154
|
+
| tdmq | [分布式消息队列](https://cloud.tencent.com/document/product/1179) | 2021-11-18 08:12:46 |
|
|
155
155
|
| tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2021-11-10 08:11:34 |
|
|
156
156
|
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
|
|
157
157
|
| tic | [腾讯云IaC平台](https://cloud.tencent.com/document/product/1213) | 2021-11-10 08:11:35 |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const sdkVersion = "4.0.
|
|
1
|
+
export const sdkVersion = "4.0.239"
|
|
@@ -18,16 +18,23 @@
|
|
|
18
18
|
import { AbstractClient } from "../../../common/abstract_client"
|
|
19
19
|
import { ClientConfig } from "../../../common/interface"
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
RiskDetailInfo,
|
|
22
|
+
AntiFraudRecord,
|
|
23
|
+
AntiFraudFilter,
|
|
24
|
+
AntiFraudCryptoFilter,
|
|
22
25
|
FinanceAntiFraudRecord,
|
|
23
26
|
DescribeAntiFraudResponse,
|
|
24
27
|
RiskDetail,
|
|
25
28
|
FinanceOtherModelScores,
|
|
26
|
-
|
|
29
|
+
SimpleKindRiskDetail,
|
|
30
|
+
OtherModelScoresDetail,
|
|
31
|
+
GetAntiFraudRequest,
|
|
27
32
|
DescribeAntiFraudRequest,
|
|
28
33
|
FinanceAntiFraudFilter,
|
|
29
|
-
QueryAntiFraudRequest,
|
|
30
34
|
QueryAntiFraudResponse,
|
|
35
|
+
GetAntiFraudResponse,
|
|
36
|
+
QueryAntiFraudRequest,
|
|
37
|
+
FinanceAntiFraudCryptoFilter,
|
|
31
38
|
} from "./af_models"
|
|
32
39
|
|
|
33
40
|
/**
|
|
@@ -51,6 +58,16 @@ export class Client extends AbstractClient {
|
|
|
51
58
|
return this.request("QueryAntiFraud", req, cb)
|
|
52
59
|
}
|
|
53
60
|
|
|
61
|
+
/**
|
|
62
|
+
* 反欺诈评分接口
|
|
63
|
+
*/
|
|
64
|
+
async GetAntiFraud(
|
|
65
|
+
req: GetAntiFraudRequest,
|
|
66
|
+
cb?: (error: string, rep: GetAntiFraudResponse) => void
|
|
67
|
+
): Promise<GetAntiFraudResponse> {
|
|
68
|
+
return this.request("GetAntiFraud", req, cb)
|
|
69
|
+
}
|
|
70
|
+
|
|
54
71
|
/**
|
|
55
72
|
* 天御反欺诈服务,主要应用于银行、证券、保险、消费金融等金融行业客户,通过腾讯的大数据风控能力,
|
|
56
73
|
可以准确识别恶意用户信息,解决客户在支付、活动、理财,风控等业务环节遇到的欺诈威胁,降低企业
|
|
@@ -16,16 +16,287 @@
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* 金融借贷反欺诈 风险码输出类型
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface RiskDetailInfo {
|
|
22
22
|
/**
|
|
23
|
-
|
|
23
|
+
* 风险码
|
|
24
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
25
|
+
*/
|
|
26
|
+
RiskCode: string
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 风险码对应的风险值
|
|
30
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
31
|
+
*/
|
|
32
|
+
RiskValue: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 反欺诈查询结果
|
|
37
|
+
*/
|
|
38
|
+
export interface AntiFraudRecord {
|
|
39
|
+
/**
|
|
40
|
+
* 公共错误码
|
|
41
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
42
|
+
*/
|
|
43
|
+
Code: string
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 业务侧错误码。
|
|
47
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
48
|
+
*/
|
|
49
|
+
CodeDesc: string
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 业务侧错误信息。
|
|
53
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
54
|
+
*/
|
|
55
|
+
Message: string
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 表示该条记录能否查到:1 为能查到;-1 为查不到,此时 RiskScore 返回-1;
|
|
59
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
60
|
+
*/
|
|
61
|
+
Found: string
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* 表示该条记录中的身份 ID 能否查到
|
|
65
|
+
1 为能查到
|
|
66
|
+
-1 为查不到
|
|
67
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
68
|
+
*/
|
|
69
|
+
IdFound: string
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* 当可查到时,返回 0~100 区间,值越高 欺诈可
|
|
73
|
+
能性越大。
|
|
74
|
+
当查不到时(即 found=-1),返回-1
|
|
75
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76
|
+
*/
|
|
77
|
+
RiskScore: string
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* 扩展字段,对风险类型的说明。扩展字段并非必
|
|
81
|
+
然出现。
|
|
82
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
83
|
+
*/
|
|
84
|
+
RiskInfo: Array<SimpleKindRiskDetail>
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* 默认出现,提供模型版本号说明及多模型返回需
|
|
88
|
+
要时用到;
|
|
89
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
90
|
+
*/
|
|
91
|
+
OtherModelScores: Array<OtherModelScoresDetail>
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* 表示请求时间,标准 sunix 时间戳,非必然出现
|
|
95
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
96
|
+
*/
|
|
97
|
+
PostTime: string
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* 拓展字段,非必然出现,和 ExtensionIn 对应;
|
|
101
|
+
注:非必然出现,需要返回时天御侧将说明;
|
|
102
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
103
|
+
*/
|
|
104
|
+
ExtensionOut: string
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* AntiFraudFilter – 业务入参
|
|
109
|
+
*/
|
|
110
|
+
export interface AntiFraudFilter {
|
|
111
|
+
/**
|
|
112
|
+
* 业务方账号 ID
|
|
113
|
+
*/
|
|
114
|
+
CustomerUin: string
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* 业务方APPID
|
|
118
|
+
*/
|
|
119
|
+
CustomerAppid: string
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* 身份证号
|
|
123
|
+
注 1:下方 idCryptoType 为指定
|
|
124
|
+
加密方式
|
|
125
|
+
注 2:若 idNumber 加密则必传加
|
|
126
|
+
密方式
|
|
127
|
+
*/
|
|
128
|
+
IdNumber: string
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* 手机号码(注:不需要带国家代码
|
|
132
|
+
例如:13430421011)
|
|
133
|
+
注 1:下方 phoneCryptoType 为
|
|
134
|
+
指定加密方式:
|
|
135
|
+
注 2:若 phoneNumber 加密则必
|
|
136
|
+
传加密方式
|
|
137
|
+
*/
|
|
138
|
+
PhoneNumber: string
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* 业务场景 ID
|
|
142
|
+
*/
|
|
143
|
+
Scene?: string
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* 默认不使用,业务方子
|
|
147
|
+
账号,若接口使用密钥对应是子账
|
|
148
|
+
号则必填
|
|
149
|
+
*/
|
|
150
|
+
CustomerSubUin?: string
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* 已获取约定标识则传 1;
|
|
154
|
+
用于基于特定需求而传的标识字段
|
|
155
|
+
注:有约定则是必传,若未传则查
|
|
156
|
+
询接口失败
|
|
157
|
+
*/
|
|
158
|
+
Authorization?: string
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* 姓名
|
|
162
|
+
注 :不支持加密
|
|
163
|
+
*/
|
|
164
|
+
Name?: string
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* 银行卡号
|
|
168
|
+
*/
|
|
169
|
+
BankCardNumber?: string
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* 用户请求来源 IP
|
|
173
|
+
*/
|
|
174
|
+
UserIp?: string
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* 国际移动设备识别码
|
|
178
|
+
*/
|
|
179
|
+
Imei?: string
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* ios 系统广告标示符
|
|
183
|
+
*/
|
|
184
|
+
Idfa?: string
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* 用户邮箱地址
|
|
188
|
+
*/
|
|
189
|
+
EmailAddress?: string
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* 用户住址
|
|
193
|
+
*/
|
|
194
|
+
Address?: string
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* MAC 地址
|
|
198
|
+
*/
|
|
199
|
+
Mac?: string
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* 国际移动用户识别码
|
|
203
|
+
*/
|
|
204
|
+
Imsi?: string
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* 关联的腾讯帐号 QQ:1;
|
|
208
|
+
开放帐号微信: 2;
|
|
209
|
+
*/
|
|
210
|
+
AccountType?: string
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* 可选的 QQ 或微信 openid
|
|
214
|
+
*/
|
|
215
|
+
Uid?: string
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* qq 或微信分配给网站或应用的
|
|
219
|
+
appid,用来唯一标识网站或应用
|
|
220
|
+
*/
|
|
221
|
+
AppIdU?: string
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* WIFIMAC
|
|
225
|
+
*/
|
|
226
|
+
WifiMac?: string
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* WIFI 服务集标识
|
|
230
|
+
*/
|
|
231
|
+
WifiSSID?: string
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* WIFI-BSSID
|
|
235
|
+
*/
|
|
236
|
+
WifiBSSID?: string
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* 拓展字段类型 ID
|
|
240
|
+
注:默认不填写,需要时天御侧将
|
|
241
|
+
提供
|
|
242
|
+
*/
|
|
243
|
+
ExtensionId?: string
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* 拓展字段内容
|
|
247
|
+
注:默认不填,需要时天御侧将提
|
|
248
|
+
供
|
|
249
|
+
*/
|
|
250
|
+
ExtensionIn?: string
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* 业务 ID,默认不传
|
|
254
|
+
*/
|
|
255
|
+
BusinessId?: string
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* 身份证加密类型
|
|
259
|
+
0:不加密(默认值)
|
|
260
|
+
1:md5
|
|
261
|
+
2:sha256
|
|
262
|
+
3:SM3
|
|
263
|
+
注:若 idNumber 加密则必传加密
|
|
264
|
+
方式
|
|
265
|
+
*/
|
|
266
|
+
IdCryptoType?: string
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* 手机号加密类型
|
|
270
|
+
0:不加密(默认值)
|
|
271
|
+
1:md5,
|
|
272
|
+
2:sha256
|
|
273
|
+
3:SM3
|
|
274
|
+
注:若 phoneNumber 加密则必传
|
|
275
|
+
加密方式
|
|
276
|
+
*/
|
|
277
|
+
PhoneCryptoType?: string
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* 姓名加密类型:——注:已经不支持加
|
|
281
|
+
密,该字段存在是为了兼容可能历史客户
|
|
282
|
+
版本;
|
|
283
|
+
0:不加密(默认值)
|
|
284
|
+
1:md5
|
|
285
|
+
*/
|
|
286
|
+
NameCryptoType?: string
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* AntiFraudCryptoFilter – 业务入参
|
|
291
|
+
*/
|
|
292
|
+
export interface AntiFraudCryptoFilter {
|
|
293
|
+
/**
|
|
294
|
+
* 约定用入参,默认不涉及默认BusinessSecurityData 与BusinessCrptoData 不传
|
|
24
295
|
*/
|
|
25
296
|
CryptoType?: string
|
|
26
297
|
|
|
27
298
|
/**
|
|
28
|
-
*
|
|
299
|
+
* 约定用入参,默认不涉及
|
|
29
300
|
*/
|
|
30
301
|
CryptoContent?: string
|
|
31
302
|
}
|
|
@@ -122,20 +393,58 @@ export interface FinanceOtherModelScores {
|
|
|
122
393
|
}
|
|
123
394
|
|
|
124
395
|
/**
|
|
125
|
-
*
|
|
396
|
+
* 扩展字段,对风险类型的说明
|
|
126
397
|
*/
|
|
127
|
-
export interface
|
|
398
|
+
export interface SimpleKindRiskDetail {
|
|
128
399
|
/**
|
|
129
400
|
* 风险码
|
|
130
401
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
131
402
|
*/
|
|
132
|
-
RiskCode
|
|
403
|
+
RiskCode?: string
|
|
133
404
|
|
|
134
405
|
/**
|
|
135
|
-
*
|
|
406
|
+
* 风险码详情
|
|
136
407
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
137
408
|
*/
|
|
138
|
-
|
|
409
|
+
RiskCodeValue?: string
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* 扩展字段,对多模型返回结果的说明,被如下接口引用:GetAntiFraud。
|
|
414
|
+
*/
|
|
415
|
+
export interface OtherModelScoresDetail {
|
|
416
|
+
/**
|
|
417
|
+
* 模型版本号;默认顺序为 0、1、2、3、…其中:0=主模型,跟 RiskScore 保持一致;
|
|
418
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
419
|
+
*/
|
|
420
|
+
ModelId?: string
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* 模型版本对应的评分结果;Found=1 时:模型版本对应的评分结果,0~100 分
|
|
424
|
+
区间;Found=-1(未查到)时:全部模型结果返回-1
|
|
425
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
426
|
+
*/
|
|
427
|
+
ModelScore?: string
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* GetAntiFraud请求参数结构体
|
|
432
|
+
*/
|
|
433
|
+
export interface GetAntiFraudRequest {
|
|
434
|
+
/**
|
|
435
|
+
* 默认不传,约定用原始业务
|
|
436
|
+
入参(二选一BusinessSecurityData 或
|
|
437
|
+
BusinessCryptoData)。
|
|
438
|
+
*/
|
|
439
|
+
BusinessSecurityData?: AntiFraudFilter
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* 默认不传,约定用密文业务
|
|
443
|
+
入参(二选一
|
|
444
|
+
BusinessSecurityData 或
|
|
445
|
+
BusinessCryptoData)。
|
|
446
|
+
*/
|
|
447
|
+
BusinessCryptoData?: AntiFraudCryptoFilter
|
|
139
448
|
}
|
|
140
449
|
|
|
141
450
|
/**
|
|
@@ -268,6 +577,57 @@ export interface FinanceAntiFraudFilter {
|
|
|
268
577
|
NameCryptoType?: string
|
|
269
578
|
}
|
|
270
579
|
|
|
580
|
+
/**
|
|
581
|
+
* QueryAntiFraud返回参数结构体
|
|
582
|
+
*/
|
|
583
|
+
export interface QueryAntiFraudResponse {
|
|
584
|
+
/**
|
|
585
|
+
* 表示该条记录能否查到:1为能查到,-1为查不到
|
|
586
|
+
*/
|
|
587
|
+
Found?: number
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* 表示该条Id能否查到:1为能查到,-1为查不到
|
|
591
|
+
*/
|
|
592
|
+
IdFound?: number
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* 0~100;值越高 欺诈可能性越大
|
|
596
|
+
*/
|
|
597
|
+
RiskScore?: number
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* 扩展字段,对风险类型的说明
|
|
601
|
+
*/
|
|
602
|
+
RiskInfo?: Array<RiskDetail>
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* 业务侧错误码。成功时返回Success,错误时返回具体业务错误原因。
|
|
606
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
607
|
+
*/
|
|
608
|
+
CodeDesc?: string
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
612
|
+
*/
|
|
613
|
+
RequestId?: string
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* GetAntiFraud返回参数结构体
|
|
618
|
+
*/
|
|
619
|
+
export interface GetAntiFraudResponse {
|
|
620
|
+
/**
|
|
621
|
+
* 反欺诈评分接口结果
|
|
622
|
+
*/
|
|
623
|
+
Data: AntiFraudRecord
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
627
|
+
*/
|
|
628
|
+
RequestId?: string
|
|
629
|
+
}
|
|
630
|
+
|
|
271
631
|
/**
|
|
272
632
|
* QueryAntiFraud请求参数结构体
|
|
273
633
|
*/
|
|
@@ -398,37 +758,16 @@ ID 区分统计数据
|
|
|
398
758
|
}
|
|
399
759
|
|
|
400
760
|
/**
|
|
401
|
-
*
|
|
761
|
+
* 借贷反欺诈密文业务入参
|
|
402
762
|
*/
|
|
403
|
-
export interface
|
|
404
|
-
/**
|
|
405
|
-
* 表示该条记录能否查到:1为能查到,-1为查不到
|
|
406
|
-
*/
|
|
407
|
-
Found?: number
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* 表示该条Id能否查到:1为能查到,-1为查不到
|
|
411
|
-
*/
|
|
412
|
-
IdFound?: number
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* 0~100;值越高 欺诈可能性越大
|
|
416
|
-
*/
|
|
417
|
-
RiskScore?: number
|
|
418
|
-
|
|
763
|
+
export interface FinanceAntiFraudCryptoFilter {
|
|
419
764
|
/**
|
|
420
|
-
*
|
|
765
|
+
* 值1定义:AES加密方式[加密模式ECB;填充格式pkcs7padding;秘钥16字节即128位
|
|
421
766
|
*/
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* 业务侧错误码。成功时返回Success,错误时返回具体业务错误原因。
|
|
426
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
427
|
-
*/
|
|
428
|
-
CodeDesc?: string
|
|
767
|
+
CryptoType?: string
|
|
429
768
|
|
|
430
769
|
/**
|
|
431
|
-
*
|
|
770
|
+
* 业务字段BusinessSecurityData的json数据格式,采用CryptoType相应的加密方式计算后得到的bash64编码内容。比如对{"PhoneNumber":"13430420001","IdNumber":"420115199501010001","BankCardNumber":"6214000100010001"}包体做加密。
|
|
432
771
|
*/
|
|
433
|
-
|
|
772
|
+
CryptoContent?: string
|
|
434
773
|
}
|
|
@@ -17,7 +17,18 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import { AbstractClient } from "../../../common/abstract_client"
|
|
19
19
|
import { ClientConfig } from "../../../common/interface"
|
|
20
|
-
import {
|
|
20
|
+
import {
|
|
21
|
+
OtherModelScores,
|
|
22
|
+
QueryAntiFraudVipResponse,
|
|
23
|
+
RiskDetail,
|
|
24
|
+
SimpleKindRiskDetail,
|
|
25
|
+
GetAntiFraudVipResponse,
|
|
26
|
+
AntiFraudVipCryptoFilter,
|
|
27
|
+
AntiFraudVipFilter,
|
|
28
|
+
QueryAntiFraudVipRequest,
|
|
29
|
+
GetAntiFraudVipRequest,
|
|
30
|
+
AntiFraudVipRecord,
|
|
31
|
+
} from "./afc_models"
|
|
21
32
|
|
|
22
33
|
/**
|
|
23
34
|
* afc client
|
|
@@ -39,4 +50,14 @@ export class Client extends AbstractClient {
|
|
|
39
50
|
): Promise<QueryAntiFraudVipResponse> {
|
|
40
51
|
return this.request("QueryAntiFraudVip", req, cb)
|
|
41
52
|
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* 反欺诈VIP评分接口
|
|
56
|
+
*/
|
|
57
|
+
async GetAntiFraudVip(
|
|
58
|
+
req: GetAntiFraudVipRequest,
|
|
59
|
+
cb?: (error: string, rep: GetAntiFraudVipResponse) => void
|
|
60
|
+
): Promise<GetAntiFraudVipResponse> {
|
|
61
|
+
return this.request("GetAntiFraudVip", req, cb)
|
|
62
|
+
}
|
|
42
63
|
}
|