@antchain/riskplus 1.16.29 → 1.16.36
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/dist/client.d.ts +107 -0
- package/dist/client.js +162 -1
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +232 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antchain/riskplus",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.36",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "latest",
|
|
23
23
|
"@antchain/alipay-util": "^1.0.4",
|
|
24
|
-
"@alicloud/tea-util": "^1.4.
|
|
24
|
+
"@alicloud/tea-util": "^1.4.7",
|
|
25
25
|
"@alicloud/rpc-util": "^0.1.0"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
package/src/client.ts
CHANGED
|
@@ -1186,6 +1186,35 @@ export class RtopCompanyRiskFactor extends $tea.Model {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
|
+
// 用户凭证信息
|
|
1190
|
+
export class CustomerDetail extends $tea.Model {
|
|
1191
|
+
// 用户标识
|
|
1192
|
+
customerKey: string;
|
|
1193
|
+
// 渠道参数
|
|
1194
|
+
channelParams: string;
|
|
1195
|
+
// 用户透传字段
|
|
1196
|
+
extInfo: string;
|
|
1197
|
+
static names(): { [key: string]: string } {
|
|
1198
|
+
return {
|
|
1199
|
+
customerKey: 'customer_key',
|
|
1200
|
+
channelParams: 'channel_params',
|
|
1201
|
+
extInfo: 'ext_info',
|
|
1202
|
+
};
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
static types(): { [key: string]: any } {
|
|
1206
|
+
return {
|
|
1207
|
+
customerKey: 'string',
|
|
1208
|
+
channelParams: 'string',
|
|
1209
|
+
extInfo: 'string',
|
|
1210
|
+
};
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
constructor(map?: { [key: string]: any }) {
|
|
1214
|
+
super(map);
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1189
1218
|
// 用户绑定银行卡列表
|
|
1190
1219
|
export class CustomerBankCardInfo extends $tea.Model {
|
|
1191
1220
|
// 银行名称
|
|
@@ -9574,6 +9603,8 @@ export class QueryRbbGeneralRequest extends $tea.Model {
|
|
|
9574
9603
|
queryname: string;
|
|
9575
9604
|
// 查询参数JSON字符串
|
|
9576
9605
|
queryparas?: string;
|
|
9606
|
+
// 虚拟云租户code
|
|
9607
|
+
virtualCloudTenantCode?: string;
|
|
9577
9608
|
static names(): { [key: string]: string } {
|
|
9578
9609
|
return {
|
|
9579
9610
|
authToken: 'auth_token',
|
|
@@ -9581,6 +9612,7 @@ export class QueryRbbGeneralRequest extends $tea.Model {
|
|
|
9581
9612
|
extension: 'extension',
|
|
9582
9613
|
queryname: 'queryname',
|
|
9583
9614
|
queryparas: 'queryparas',
|
|
9615
|
+
virtualCloudTenantCode: 'virtual_cloud_tenant_code',
|
|
9584
9616
|
};
|
|
9585
9617
|
}
|
|
9586
9618
|
|
|
@@ -9591,6 +9623,7 @@ export class QueryRbbGeneralRequest extends $tea.Model {
|
|
|
9591
9623
|
extension: 'string',
|
|
9592
9624
|
queryname: 'string',
|
|
9593
9625
|
queryparas: 'string',
|
|
9626
|
+
virtualCloudTenantCode: 'string',
|
|
9594
9627
|
};
|
|
9595
9628
|
}
|
|
9596
9629
|
|
|
@@ -15007,6 +15040,166 @@ export class QueryUmktRobotcallDetailResponse extends $tea.Model {
|
|
|
15007
15040
|
}
|
|
15008
15041
|
}
|
|
15009
15042
|
|
|
15043
|
+
export class ApplyUmktRealtimemarketingRequest extends $tea.Model {
|
|
15044
|
+
// OAuth模式下的授权token
|
|
15045
|
+
authToken?: string;
|
|
15046
|
+
productInstanceId?: string;
|
|
15047
|
+
// 营销盾内部租户下的子租户
|
|
15048
|
+
subTenantId?: string;
|
|
15049
|
+
//
|
|
15050
|
+
// 场景策略id
|
|
15051
|
+
sceneStrategyId: number;
|
|
15052
|
+
// 外部流水号
|
|
15053
|
+
outSerialNo: string;
|
|
15054
|
+
//
|
|
15055
|
+
// 用户参数类型
|
|
15056
|
+
paramType: string;
|
|
15057
|
+
// 触达渠道配置
|
|
15058
|
+
channelParams?: string;
|
|
15059
|
+
// 扩展字段
|
|
15060
|
+
extInfo?: string;
|
|
15061
|
+
// 手机号/手机号md5
|
|
15062
|
+
customerKey: string;
|
|
15063
|
+
static names(): { [key: string]: string } {
|
|
15064
|
+
return {
|
|
15065
|
+
authToken: 'auth_token',
|
|
15066
|
+
productInstanceId: 'product_instance_id',
|
|
15067
|
+
subTenantId: 'sub_tenant_id',
|
|
15068
|
+
sceneStrategyId: 'scene_strategy_id',
|
|
15069
|
+
outSerialNo: 'out_serial_no',
|
|
15070
|
+
paramType: 'param_type',
|
|
15071
|
+
channelParams: 'channel_params',
|
|
15072
|
+
extInfo: 'ext_info',
|
|
15073
|
+
customerKey: 'customer_key',
|
|
15074
|
+
};
|
|
15075
|
+
}
|
|
15076
|
+
|
|
15077
|
+
static types(): { [key: string]: any } {
|
|
15078
|
+
return {
|
|
15079
|
+
authToken: 'string',
|
|
15080
|
+
productInstanceId: 'string',
|
|
15081
|
+
subTenantId: 'string',
|
|
15082
|
+
sceneStrategyId: 'number',
|
|
15083
|
+
outSerialNo: 'string',
|
|
15084
|
+
paramType: 'string',
|
|
15085
|
+
channelParams: 'string',
|
|
15086
|
+
extInfo: 'string',
|
|
15087
|
+
customerKey: 'string',
|
|
15088
|
+
};
|
|
15089
|
+
}
|
|
15090
|
+
|
|
15091
|
+
constructor(map?: { [key: string]: any }) {
|
|
15092
|
+
super(map);
|
|
15093
|
+
}
|
|
15094
|
+
}
|
|
15095
|
+
|
|
15096
|
+
export class ApplyUmktRealtimemarketingResponse extends $tea.Model {
|
|
15097
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
15098
|
+
reqMsgId?: string;
|
|
15099
|
+
// 结果码,一般OK表示调用成功
|
|
15100
|
+
resultCode?: string;
|
|
15101
|
+
// 异常信息的文本描述
|
|
15102
|
+
resultMsg?: string;
|
|
15103
|
+
// 返回流水id
|
|
15104
|
+
bizId?: string;
|
|
15105
|
+
static names(): { [key: string]: string } {
|
|
15106
|
+
return {
|
|
15107
|
+
reqMsgId: 'req_msg_id',
|
|
15108
|
+
resultCode: 'result_code',
|
|
15109
|
+
resultMsg: 'result_msg',
|
|
15110
|
+
bizId: 'biz_id',
|
|
15111
|
+
};
|
|
15112
|
+
}
|
|
15113
|
+
|
|
15114
|
+
static types(): { [key: string]: any } {
|
|
15115
|
+
return {
|
|
15116
|
+
reqMsgId: 'string',
|
|
15117
|
+
resultCode: 'string',
|
|
15118
|
+
resultMsg: 'string',
|
|
15119
|
+
bizId: 'string',
|
|
15120
|
+
};
|
|
15121
|
+
}
|
|
15122
|
+
|
|
15123
|
+
constructor(map?: { [key: string]: any }) {
|
|
15124
|
+
super(map);
|
|
15125
|
+
}
|
|
15126
|
+
}
|
|
15127
|
+
|
|
15128
|
+
export class ApplyUmktRtBatchmarketingRequest extends $tea.Model {
|
|
15129
|
+
// OAuth模式下的授权token
|
|
15130
|
+
authToken?: string;
|
|
15131
|
+
productInstanceId?: string;
|
|
15132
|
+
// 场景策略id
|
|
15133
|
+
sceneStrategyId: number;
|
|
15134
|
+
// 外部流水号
|
|
15135
|
+
outSerialNo: string;
|
|
15136
|
+
// 用户标识类型
|
|
15137
|
+
paramType: string;
|
|
15138
|
+
// 批量透传字段
|
|
15139
|
+
outInfo: string;
|
|
15140
|
+
// 用户凭证列表
|
|
15141
|
+
customerDetails: CustomerDetail[];
|
|
15142
|
+
static names(): { [key: string]: string } {
|
|
15143
|
+
return {
|
|
15144
|
+
authToken: 'auth_token',
|
|
15145
|
+
productInstanceId: 'product_instance_id',
|
|
15146
|
+
sceneStrategyId: 'scene_strategy_id',
|
|
15147
|
+
outSerialNo: 'out_serial_no',
|
|
15148
|
+
paramType: 'param_type',
|
|
15149
|
+
outInfo: 'out_info',
|
|
15150
|
+
customerDetails: 'customer_details',
|
|
15151
|
+
};
|
|
15152
|
+
}
|
|
15153
|
+
|
|
15154
|
+
static types(): { [key: string]: any } {
|
|
15155
|
+
return {
|
|
15156
|
+
authToken: 'string',
|
|
15157
|
+
productInstanceId: 'string',
|
|
15158
|
+
sceneStrategyId: 'number',
|
|
15159
|
+
outSerialNo: 'string',
|
|
15160
|
+
paramType: 'string',
|
|
15161
|
+
outInfo: 'string',
|
|
15162
|
+
customerDetails: { 'type': 'array', 'itemType': CustomerDetail },
|
|
15163
|
+
};
|
|
15164
|
+
}
|
|
15165
|
+
|
|
15166
|
+
constructor(map?: { [key: string]: any }) {
|
|
15167
|
+
super(map);
|
|
15168
|
+
}
|
|
15169
|
+
}
|
|
15170
|
+
|
|
15171
|
+
export class ApplyUmktRtBatchmarketingResponse extends $tea.Model {
|
|
15172
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
15173
|
+
reqMsgId?: string;
|
|
15174
|
+
// 结果码,一般OK表示调用成功
|
|
15175
|
+
resultCode?: string;
|
|
15176
|
+
// 异常信息的文本描述
|
|
15177
|
+
resultMsg?: string;
|
|
15178
|
+
// 批次流水号
|
|
15179
|
+
bizId?: string;
|
|
15180
|
+
static names(): { [key: string]: string } {
|
|
15181
|
+
return {
|
|
15182
|
+
reqMsgId: 'req_msg_id',
|
|
15183
|
+
resultCode: 'result_code',
|
|
15184
|
+
resultMsg: 'result_msg',
|
|
15185
|
+
bizId: 'biz_id',
|
|
15186
|
+
};
|
|
15187
|
+
}
|
|
15188
|
+
|
|
15189
|
+
static types(): { [key: string]: any } {
|
|
15190
|
+
return {
|
|
15191
|
+
reqMsgId: 'string',
|
|
15192
|
+
resultCode: 'string',
|
|
15193
|
+
resultMsg: 'string',
|
|
15194
|
+
bizId: 'string',
|
|
15195
|
+
};
|
|
15196
|
+
}
|
|
15197
|
+
|
|
15198
|
+
constructor(map?: { [key: string]: any }) {
|
|
15199
|
+
super(map);
|
|
15200
|
+
}
|
|
15201
|
+
}
|
|
15202
|
+
|
|
15010
15203
|
export class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
|
|
15011
15204
|
// OAuth模式下的授权token
|
|
15012
15205
|
authToken?: string;
|
|
@@ -15208,7 +15401,7 @@ export default class Client {
|
|
|
15208
15401
|
req_msg_id: AntchainUtil.getNonce(),
|
|
15209
15402
|
access_key: this._accessKeyId,
|
|
15210
15403
|
base_sdk_version: "TeaSDK-2.0",
|
|
15211
|
-
sdk_version: "1.16.
|
|
15404
|
+
sdk_version: "1.16.36",
|
|
15212
15405
|
_prod_code: "RISKPLUS",
|
|
15213
15406
|
_prod_channel: "undefined",
|
|
15214
15407
|
};
|
|
@@ -18023,6 +18216,44 @@ export default class Client {
|
|
|
18023
18216
|
return $tea.cast<QueryUmktRobotcallDetailResponse>(await this.doRequest("1.0", "riskplus.umkt.robotcall.detail.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryUmktRobotcallDetailResponse({}));
|
|
18024
18217
|
}
|
|
18025
18218
|
|
|
18219
|
+
/**
|
|
18220
|
+
* Description: 发起触达营销任务 ---目前仅支持文本短信
|
|
18221
|
+
* Summary: 发起触达营销任务
|
|
18222
|
+
*/
|
|
18223
|
+
async applyUmktRealtimemarketing(request: ApplyUmktRealtimemarketingRequest): Promise<ApplyUmktRealtimemarketingResponse> {
|
|
18224
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
18225
|
+
let headers : {[key: string ]: string} = { };
|
|
18226
|
+
return await this.applyUmktRealtimemarketingEx(request, headers, runtime);
|
|
18227
|
+
}
|
|
18228
|
+
|
|
18229
|
+
/**
|
|
18230
|
+
* Description: 发起触达营销任务 ---目前仅支持文本短信
|
|
18231
|
+
* Summary: 发起触达营销任务
|
|
18232
|
+
*/
|
|
18233
|
+
async applyUmktRealtimemarketingEx(request: ApplyUmktRealtimemarketingRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ApplyUmktRealtimemarketingResponse> {
|
|
18234
|
+
Util.validateModel(request);
|
|
18235
|
+
return $tea.cast<ApplyUmktRealtimemarketingResponse>(await this.doRequest("1.0", "riskplus.umkt.realtimemarketing.apply", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ApplyUmktRealtimemarketingResponse({}));
|
|
18236
|
+
}
|
|
18237
|
+
|
|
18238
|
+
/**
|
|
18239
|
+
* Description: 批量实时策略触达
|
|
18240
|
+
* Summary: 批量实时策略触达
|
|
18241
|
+
*/
|
|
18242
|
+
async applyUmktRtBatchmarketing(request: ApplyUmktRtBatchmarketingRequest): Promise<ApplyUmktRtBatchmarketingResponse> {
|
|
18243
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
18244
|
+
let headers : {[key: string ]: string} = { };
|
|
18245
|
+
return await this.applyUmktRtBatchmarketingEx(request, headers, runtime);
|
|
18246
|
+
}
|
|
18247
|
+
|
|
18248
|
+
/**
|
|
18249
|
+
* Description: 批量实时策略触达
|
|
18250
|
+
* Summary: 批量实时策略触达
|
|
18251
|
+
*/
|
|
18252
|
+
async applyUmktRtBatchmarketingEx(request: ApplyUmktRtBatchmarketingRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ApplyUmktRtBatchmarketingResponse> {
|
|
18253
|
+
Util.validateModel(request);
|
|
18254
|
+
return $tea.cast<ApplyUmktRtBatchmarketingResponse>(await this.doRequest("1.0", "riskplus.umkt.rt.batchmarketing.apply", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ApplyUmktRtBatchmarketingResponse({}));
|
|
18255
|
+
}
|
|
18256
|
+
|
|
18026
18257
|
/**
|
|
18027
18258
|
* Description: 创建HTTP PUT提交的文件上传
|
|
18028
18259
|
* Summary: 文件上传创建
|