@antchain/riskplus 1.16.59 → 1.17.1
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 +85 -10
- package/dist/client.js +124 -11
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +183 -21
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1447,6 +1447,31 @@ export class SecurityDataQueryStruct extends $tea.Model {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
1449
|
|
|
1450
|
+
// 场景决策列表
|
|
1451
|
+
export class SceneInfos extends $tea.Model {
|
|
1452
|
+
// 决策结果
|
|
1453
|
+
decision: string;
|
|
1454
|
+
// 场景code
|
|
1455
|
+
sceneCode: string;
|
|
1456
|
+
static names(): { [key: string]: string } {
|
|
1457
|
+
return {
|
|
1458
|
+
decision: 'decision',
|
|
1459
|
+
sceneCode: 'scene_code',
|
|
1460
|
+
};
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
static types(): { [key: string]: any } {
|
|
1464
|
+
return {
|
|
1465
|
+
decision: 'string',
|
|
1466
|
+
sceneCode: 'string',
|
|
1467
|
+
};
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
constructor(map?: { [key: string]: any }) {
|
|
1471
|
+
super(map);
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1450
1475
|
// 触达策略信息
|
|
1451
1476
|
export class ActionPlanDetailInfo extends $tea.Model {
|
|
1452
1477
|
// 场景策略id
|
|
@@ -3967,6 +3992,35 @@ export class CpaasSmsTemplate extends $tea.Model {
|
|
|
3967
3992
|
}
|
|
3968
3993
|
}
|
|
3969
3994
|
|
|
3995
|
+
// 输出变量列表
|
|
3996
|
+
export class VariableDetails extends $tea.Model {
|
|
3997
|
+
// 输出变量名称
|
|
3998
|
+
variableName: string;
|
|
3999
|
+
// 输出变量值
|
|
4000
|
+
variableValue: string;
|
|
4001
|
+
// 输出变量值类型
|
|
4002
|
+
variableType: string;
|
|
4003
|
+
static names(): { [key: string]: string } {
|
|
4004
|
+
return {
|
|
4005
|
+
variableName: 'variable_name',
|
|
4006
|
+
variableValue: 'variable_value',
|
|
4007
|
+
variableType: 'variable_type',
|
|
4008
|
+
};
|
|
4009
|
+
}
|
|
4010
|
+
|
|
4011
|
+
static types(): { [key: string]: any } {
|
|
4012
|
+
return {
|
|
4013
|
+
variableName: 'string',
|
|
4014
|
+
variableValue: 'string',
|
|
4015
|
+
variableType: 'string',
|
|
4016
|
+
};
|
|
4017
|
+
}
|
|
4018
|
+
|
|
4019
|
+
constructor(map?: { [key: string]: any }) {
|
|
4020
|
+
super(map);
|
|
4021
|
+
}
|
|
4022
|
+
}
|
|
4023
|
+
|
|
3970
4024
|
// 舆情的详情
|
|
3971
4025
|
export class RtopCompanyOpinionDetail extends $tea.Model {
|
|
3972
4026
|
// 具体的舆情内容
|
|
@@ -4255,9 +4309,13 @@ export class QuerySecurityPolicyRequest extends $tea.Model {
|
|
|
4255
4309
|
authToken?: string;
|
|
4256
4310
|
productInstanceId?: string;
|
|
4257
4311
|
// 风险类型:表示风险处理或风险咨询——process/advice
|
|
4258
|
-
riskType
|
|
4259
|
-
|
|
4260
|
-
|
|
4312
|
+
riskType?: string;
|
|
4313
|
+
// 风险场景信息
|
|
4314
|
+
securityScene?: SecurityScene;
|
|
4315
|
+
// 服务上下文
|
|
4316
|
+
serviceContext?: ServiceContext;
|
|
4317
|
+
// 事件业务属性
|
|
4318
|
+
eventInfo: string;
|
|
4261
4319
|
static names(): { [key: string]: string } {
|
|
4262
4320
|
return {
|
|
4263
4321
|
authToken: 'auth_token',
|
|
@@ -4265,6 +4323,7 @@ export class QuerySecurityPolicyRequest extends $tea.Model {
|
|
|
4265
4323
|
riskType: 'risk_type',
|
|
4266
4324
|
securityScene: 'security_scene',
|
|
4267
4325
|
serviceContext: 'service_context',
|
|
4326
|
+
eventInfo: 'event_info',
|
|
4268
4327
|
};
|
|
4269
4328
|
}
|
|
4270
4329
|
|
|
@@ -4275,6 +4334,7 @@ export class QuerySecurityPolicyRequest extends $tea.Model {
|
|
|
4275
4334
|
riskType: 'string',
|
|
4276
4335
|
securityScene: SecurityScene,
|
|
4277
4336
|
serviceContext: ServiceContext,
|
|
4337
|
+
eventInfo: 'string',
|
|
4278
4338
|
};
|
|
4279
4339
|
}
|
|
4280
4340
|
|
|
@@ -4290,35 +4350,38 @@ export class QuerySecurityPolicyResponse extends $tea.Model {
|
|
|
4290
4350
|
resultCode?: string;
|
|
4291
4351
|
// 异常信息的文本描述
|
|
4292
4352
|
resultMsg?: string;
|
|
4293
|
-
// 风险咨询情况下返回的风险等级,风险处理不会返回该值
|
|
4294
|
-
level?: number;
|
|
4295
4353
|
// 反馈成功之后的id
|
|
4296
4354
|
securityId?: string;
|
|
4297
4355
|
// 安全处理结果,枚举值为:reject[拒绝],validate[校验],accept[放过]
|
|
4298
4356
|
securityResult?: string;
|
|
4299
4357
|
// 是否成功
|
|
4300
4358
|
success: string;
|
|
4301
|
-
// 有风险需要失败业务情况下的返回码
|
|
4302
|
-
templateCode?: string;
|
|
4303
|
-
// 有风险需要失败业务情况下的返回码描述
|
|
4304
|
-
templateDesc?: string;
|
|
4305
4359
|
// native场景下的核身id
|
|
4306
4360
|
verifyId?: string;
|
|
4307
4361
|
// h5场景下的核身地址
|
|
4308
4362
|
verifyUrl?: string;
|
|
4363
|
+
// 场景分
|
|
4364
|
+
modelDetails?: ModelDetails;
|
|
4365
|
+
// 输出变量
|
|
4366
|
+
variableDetails?: VariableDetails;
|
|
4367
|
+
// 策略详情
|
|
4368
|
+
strategyDetails?: StrategyDetails;
|
|
4369
|
+
// 场景决策
|
|
4370
|
+
sceneInfos?: SceneInfos;
|
|
4309
4371
|
static names(): { [key: string]: string } {
|
|
4310
4372
|
return {
|
|
4311
4373
|
reqMsgId: 'req_msg_id',
|
|
4312
4374
|
resultCode: 'result_code',
|
|
4313
4375
|
resultMsg: 'result_msg',
|
|
4314
|
-
level: 'level',
|
|
4315
4376
|
securityId: 'security_id',
|
|
4316
4377
|
securityResult: 'security_result',
|
|
4317
4378
|
success: 'success',
|
|
4318
|
-
templateCode: 'template_code',
|
|
4319
|
-
templateDesc: 'template_desc',
|
|
4320
4379
|
verifyId: 'verify_id',
|
|
4321
4380
|
verifyUrl: 'verify_url',
|
|
4381
|
+
modelDetails: 'model_details',
|
|
4382
|
+
variableDetails: 'variable_details',
|
|
4383
|
+
strategyDetails: 'strategy_details',
|
|
4384
|
+
sceneInfos: 'scene_infos',
|
|
4322
4385
|
};
|
|
4323
4386
|
}
|
|
4324
4387
|
|
|
@@ -4327,14 +4390,15 @@ export class QuerySecurityPolicyResponse extends $tea.Model {
|
|
|
4327
4390
|
reqMsgId: 'string',
|
|
4328
4391
|
resultCode: 'string',
|
|
4329
4392
|
resultMsg: 'string',
|
|
4330
|
-
level: 'number',
|
|
4331
4393
|
securityId: 'string',
|
|
4332
4394
|
securityResult: 'string',
|
|
4333
4395
|
success: 'string',
|
|
4334
|
-
templateCode: 'string',
|
|
4335
|
-
templateDesc: 'string',
|
|
4336
4396
|
verifyId: 'string',
|
|
4337
4397
|
verifyUrl: 'string',
|
|
4398
|
+
modelDetails: ModelDetails,
|
|
4399
|
+
variableDetails: VariableDetails,
|
|
4400
|
+
strategyDetails: StrategyDetails,
|
|
4401
|
+
sceneInfos: SceneInfos,
|
|
4338
4402
|
};
|
|
4339
4403
|
}
|
|
4340
4404
|
|
|
@@ -13731,6 +13795,85 @@ export class QuerySnapshotEventResponse extends $tea.Model {
|
|
|
13731
13795
|
}
|
|
13732
13796
|
}
|
|
13733
13797
|
|
|
13798
|
+
export class QueryTdisaasSecurityPolicyRequest extends $tea.Model {
|
|
13799
|
+
// OAuth模式下的授权token
|
|
13800
|
+
authToken?: string;
|
|
13801
|
+
productInstanceId?: string;
|
|
13802
|
+
// 风控事件咨询查询入参
|
|
13803
|
+
eventInfo: EventInfo;
|
|
13804
|
+
// 请求处理方式
|
|
13805
|
+
riskType: string;
|
|
13806
|
+
static names(): { [key: string]: string } {
|
|
13807
|
+
return {
|
|
13808
|
+
authToken: 'auth_token',
|
|
13809
|
+
productInstanceId: 'product_instance_id',
|
|
13810
|
+
eventInfo: 'event_info',
|
|
13811
|
+
riskType: 'risk_type',
|
|
13812
|
+
};
|
|
13813
|
+
}
|
|
13814
|
+
|
|
13815
|
+
static types(): { [key: string]: any } {
|
|
13816
|
+
return {
|
|
13817
|
+
authToken: 'string',
|
|
13818
|
+
productInstanceId: 'string',
|
|
13819
|
+
eventInfo: EventInfo,
|
|
13820
|
+
riskType: 'string',
|
|
13821
|
+
};
|
|
13822
|
+
}
|
|
13823
|
+
|
|
13824
|
+
constructor(map?: { [key: string]: any }) {
|
|
13825
|
+
super(map);
|
|
13826
|
+
}
|
|
13827
|
+
}
|
|
13828
|
+
|
|
13829
|
+
export class QueryTdisaasSecurityPolicyResponse extends $tea.Model {
|
|
13830
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
13831
|
+
reqMsgId?: string;
|
|
13832
|
+
// 结果码,一般OK表示调用成功
|
|
13833
|
+
resultCode?: string;
|
|
13834
|
+
// 异常信息的文本描述
|
|
13835
|
+
resultMsg?: string;
|
|
13836
|
+
// 场景分
|
|
13837
|
+
modelDetails?: ModelDetails[];
|
|
13838
|
+
// 安全请求id
|
|
13839
|
+
securityId?: string;
|
|
13840
|
+
// 策略结果
|
|
13841
|
+
securityResult?: string;
|
|
13842
|
+
// 策略结果详情
|
|
13843
|
+
strategyDetails?: StrategyDetails[];
|
|
13844
|
+
// 决策流信息
|
|
13845
|
+
dfSceneInfos?: DfSceneInfos[];
|
|
13846
|
+
static names(): { [key: string]: string } {
|
|
13847
|
+
return {
|
|
13848
|
+
reqMsgId: 'req_msg_id',
|
|
13849
|
+
resultCode: 'result_code',
|
|
13850
|
+
resultMsg: 'result_msg',
|
|
13851
|
+
modelDetails: 'model_details',
|
|
13852
|
+
securityId: 'security_id',
|
|
13853
|
+
securityResult: 'security_result',
|
|
13854
|
+
strategyDetails: 'strategy_details',
|
|
13855
|
+
dfSceneInfos: 'df_scene_infos',
|
|
13856
|
+
};
|
|
13857
|
+
}
|
|
13858
|
+
|
|
13859
|
+
static types(): { [key: string]: any } {
|
|
13860
|
+
return {
|
|
13861
|
+
reqMsgId: 'string',
|
|
13862
|
+
resultCode: 'string',
|
|
13863
|
+
resultMsg: 'string',
|
|
13864
|
+
modelDetails: { 'type': 'array', 'itemType': ModelDetails },
|
|
13865
|
+
securityId: 'string',
|
|
13866
|
+
securityResult: 'string',
|
|
13867
|
+
strategyDetails: { 'type': 'array', 'itemType': StrategyDetails },
|
|
13868
|
+
dfSceneInfos: { 'type': 'array', 'itemType': DfSceneInfos },
|
|
13869
|
+
};
|
|
13870
|
+
}
|
|
13871
|
+
|
|
13872
|
+
constructor(map?: { [key: string]: any }) {
|
|
13873
|
+
super(map);
|
|
13874
|
+
}
|
|
13875
|
+
}
|
|
13876
|
+
|
|
13734
13877
|
export class UploadUmktParamsFileRequest extends $tea.Model {
|
|
13735
13878
|
// OAuth模式下的授权token
|
|
13736
13879
|
authToken?: string;
|
|
@@ -15588,7 +15731,7 @@ export class CallbackUmktRobotcallRequest extends $tea.Model {
|
|
|
15588
15731
|
callId: string;
|
|
15589
15732
|
// 外呼任务编号
|
|
15590
15733
|
taskId: number;
|
|
15591
|
-
//
|
|
15734
|
+
// 外呼任务名称
|
|
15592
15735
|
taskName: string;
|
|
15593
15736
|
// 外呼的话术模板ID,可以为空
|
|
15594
15737
|
templateId?: number;
|
|
@@ -16667,7 +16810,7 @@ export default class Client {
|
|
|
16667
16810
|
req_msg_id: AntchainUtil.getNonce(),
|
|
16668
16811
|
access_key: this._accessKeyId,
|
|
16669
16812
|
base_sdk_version: "TeaSDK-2.0",
|
|
16670
|
-
sdk_version: "1.
|
|
16813
|
+
sdk_version: "1.17.1",
|
|
16671
16814
|
_prod_code: "RISKPLUS",
|
|
16672
16815
|
_prod_channel: "undefined",
|
|
16673
16816
|
};
|
|
@@ -16716,8 +16859,8 @@ export default class Client {
|
|
|
16716
16859
|
}
|
|
16717
16860
|
|
|
16718
16861
|
/**
|
|
16719
|
-
* Description:
|
|
16720
|
-
* Summary:
|
|
16862
|
+
* Description: 风控云风险咨询接口
|
|
16863
|
+
* Summary: 风控云风险咨询接口
|
|
16721
16864
|
*/
|
|
16722
16865
|
async querySecurityPolicy(request: QuerySecurityPolicyRequest): Promise<QuerySecurityPolicyResponse> {
|
|
16723
16866
|
let runtime = new $Util.RuntimeOptions({ });
|
|
@@ -16726,8 +16869,8 @@ export default class Client {
|
|
|
16726
16869
|
}
|
|
16727
16870
|
|
|
16728
16871
|
/**
|
|
16729
|
-
* Description:
|
|
16730
|
-
* Summary:
|
|
16872
|
+
* Description: 风控云风险咨询接口
|
|
16873
|
+
* Summary: 风控云风险咨询接口
|
|
16731
16874
|
*/
|
|
16732
16875
|
async querySecurityPolicyEx(request: QuerySecurityPolicyRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QuerySecurityPolicyResponse> {
|
|
16733
16876
|
Util.validateModel(request);
|
|
@@ -19062,6 +19205,25 @@ export default class Client {
|
|
|
19062
19205
|
return $tea.cast<QuerySnapshotEventResponse>(await this.doRequest("1.0", "riskplus.snapshot.event.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QuerySnapshotEventResponse({}));
|
|
19063
19206
|
}
|
|
19064
19207
|
|
|
19208
|
+
/**
|
|
19209
|
+
* Description: saas风险咨询,决策流模式
|
|
19210
|
+
* Summary: saas风险咨询
|
|
19211
|
+
*/
|
|
19212
|
+
async queryTdisaasSecurityPolicy(request: QueryTdisaasSecurityPolicyRequest): Promise<QueryTdisaasSecurityPolicyResponse> {
|
|
19213
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
19214
|
+
let headers : {[key: string ]: string} = { };
|
|
19215
|
+
return await this.queryTdisaasSecurityPolicyEx(request, headers, runtime);
|
|
19216
|
+
}
|
|
19217
|
+
|
|
19218
|
+
/**
|
|
19219
|
+
* Description: saas风险咨询,决策流模式
|
|
19220
|
+
* Summary: saas风险咨询
|
|
19221
|
+
*/
|
|
19222
|
+
async queryTdisaasSecurityPolicyEx(request: QueryTdisaasSecurityPolicyRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryTdisaasSecurityPolicyResponse> {
|
|
19223
|
+
Util.validateModel(request);
|
|
19224
|
+
return $tea.cast<QueryTdisaasSecurityPolicyResponse>(await this.doRequest("1.0", "riskplus.tdisaas.security.policy.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryTdisaasSecurityPolicyResponse({}));
|
|
19225
|
+
}
|
|
19226
|
+
|
|
19065
19227
|
/**
|
|
19066
19228
|
* Description: 营销盾批量参数文件上传接口
|
|
19067
19229
|
* Summary: 营销盾参数文件上传
|