@antchain/riskplus 1.17.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antchain/riskplus",
3
- "version": "1.17.0",
3
+ "version": "1.17.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
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
@@ -4284,9 +4309,13 @@ export class QuerySecurityPolicyRequest extends $tea.Model {
4284
4309
  authToken?: string;
4285
4310
  productInstanceId?: string;
4286
4311
  // 风险类型:表示风险处理或风险咨询——process/advice
4287
- riskType: string;
4288
- securityScene: SecurityScene;
4289
- serviceContext: ServiceContext;
4312
+ riskType?: string;
4313
+ // 风险场景信息
4314
+ securityScene?: SecurityScene;
4315
+ // 服务上下文
4316
+ serviceContext?: ServiceContext;
4317
+ // 事件业务属性
4318
+ eventInfo: string;
4290
4319
  static names(): { [key: string]: string } {
4291
4320
  return {
4292
4321
  authToken: 'auth_token',
@@ -4294,6 +4323,7 @@ export class QuerySecurityPolicyRequest extends $tea.Model {
4294
4323
  riskType: 'risk_type',
4295
4324
  securityScene: 'security_scene',
4296
4325
  serviceContext: 'service_context',
4326
+ eventInfo: 'event_info',
4297
4327
  };
4298
4328
  }
4299
4329
 
@@ -4304,6 +4334,7 @@ export class QuerySecurityPolicyRequest extends $tea.Model {
4304
4334
  riskType: 'string',
4305
4335
  securityScene: SecurityScene,
4306
4336
  serviceContext: ServiceContext,
4337
+ eventInfo: 'string',
4307
4338
  };
4308
4339
  }
4309
4340
 
@@ -4319,8 +4350,6 @@ export class QuerySecurityPolicyResponse extends $tea.Model {
4319
4350
  resultCode?: string;
4320
4351
  // 异常信息的文本描述
4321
4352
  resultMsg?: string;
4322
- // 风险咨询情况下返回的风险等级,风险处理不会返回该值
4323
- level?: number;
4324
4353
  // 反馈成功之后的id
4325
4354
  securityId?: string;
4326
4355
  // 安全处理结果,枚举值为:reject[拒绝],validate[校验],accept[放过]
@@ -4337,12 +4366,13 @@ export class QuerySecurityPolicyResponse extends $tea.Model {
4337
4366
  variableDetails?: VariableDetails;
4338
4367
  // 策略详情
4339
4368
  strategyDetails?: StrategyDetails;
4369
+ // 场景决策
4370
+ sceneInfos?: SceneInfos;
4340
4371
  static names(): { [key: string]: string } {
4341
4372
  return {
4342
4373
  reqMsgId: 'req_msg_id',
4343
4374
  resultCode: 'result_code',
4344
4375
  resultMsg: 'result_msg',
4345
- level: 'level',
4346
4376
  securityId: 'security_id',
4347
4377
  securityResult: 'security_result',
4348
4378
  success: 'success',
@@ -4351,6 +4381,7 @@ export class QuerySecurityPolicyResponse extends $tea.Model {
4351
4381
  modelDetails: 'model_details',
4352
4382
  variableDetails: 'variable_details',
4353
4383
  strategyDetails: 'strategy_details',
4384
+ sceneInfos: 'scene_infos',
4354
4385
  };
4355
4386
  }
4356
4387
 
@@ -4359,7 +4390,6 @@ export class QuerySecurityPolicyResponse extends $tea.Model {
4359
4390
  reqMsgId: 'string',
4360
4391
  resultCode: 'string',
4361
4392
  resultMsg: 'string',
4362
- level: 'number',
4363
4393
  securityId: 'string',
4364
4394
  securityResult: 'string',
4365
4395
  success: 'string',
@@ -4368,6 +4398,7 @@ export class QuerySecurityPolicyResponse extends $tea.Model {
4368
4398
  modelDetails: ModelDetails,
4369
4399
  variableDetails: VariableDetails,
4370
4400
  strategyDetails: StrategyDetails,
4401
+ sceneInfos: SceneInfos,
4371
4402
  };
4372
4403
  }
4373
4404
 
@@ -16779,7 +16810,7 @@ export default class Client {
16779
16810
  req_msg_id: AntchainUtil.getNonce(),
16780
16811
  access_key: this._accessKeyId,
16781
16812
  base_sdk_version: "TeaSDK-2.0",
16782
- sdk_version: "1.17.0",
16813
+ sdk_version: "1.17.1",
16783
16814
  _prod_code: "RISKPLUS",
16784
16815
  _prod_channel: "undefined",
16785
16816
  };
@@ -16828,8 +16859,8 @@ export default class Client {
16828
16859
  }
16829
16860
 
16830
16861
  /**
16831
- * Description: 外部客户业务接入风控+,进行风险识别和风险决策。
16832
- * Summary: 策略咨询服务输出
16862
+ * Description: 风控云风险咨询接口
16863
+ * Summary: 风控云风险咨询接口
16833
16864
  */
16834
16865
  async querySecurityPolicy(request: QuerySecurityPolicyRequest): Promise<QuerySecurityPolicyResponse> {
16835
16866
  let runtime = new $Util.RuntimeOptions({ });
@@ -16838,8 +16869,8 @@ export default class Client {
16838
16869
  }
16839
16870
 
16840
16871
  /**
16841
- * Description: 外部客户业务接入风控+,进行风险识别和风险决策。
16842
- * Summary: 策略咨询服务输出
16872
+ * Description: 风控云风险咨询接口
16873
+ * Summary: 风控云风险咨询接口
16843
16874
  */
16844
16875
  async querySecurityPolicyEx(request: QuerySecurityPolicyRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QuerySecurityPolicyResponse> {
16845
16876
  Util.validateModel(request);