@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 CHANGED
@@ -610,6 +610,19 @@ export declare class SecurityDataQueryStruct extends $tea.Model {
610
610
  [key: string]: any;
611
611
  });
612
612
  }
613
+ export declare class SceneInfos extends $tea.Model {
614
+ decision: string;
615
+ sceneCode: string;
616
+ static names(): {
617
+ [key: string]: string;
618
+ };
619
+ static types(): {
620
+ [key: string]: any;
621
+ };
622
+ constructor(map?: {
623
+ [key: string]: any;
624
+ });
625
+ }
613
626
  export declare class ActionPlanDetailInfo extends $tea.Model {
614
627
  sceneStrategyId: number;
615
628
  sceneStrategyName: string;
@@ -1573,6 +1586,20 @@ export declare class CpaasSmsTemplate extends $tea.Model {
1573
1586
  [key: string]: any;
1574
1587
  });
1575
1588
  }
1589
+ export declare class VariableDetails extends $tea.Model {
1590
+ variableName: string;
1591
+ variableValue: string;
1592
+ variableType: string;
1593
+ static names(): {
1594
+ [key: string]: string;
1595
+ };
1596
+ static types(): {
1597
+ [key: string]: any;
1598
+ };
1599
+ constructor(map?: {
1600
+ [key: string]: any;
1601
+ });
1602
+ }
1576
1603
  export declare class RtopCompanyOpinionDetail extends $tea.Model {
1577
1604
  docContent: string;
1578
1605
  docId: string;
@@ -1694,9 +1721,10 @@ export declare class XNameValuePair extends $tea.Model {
1694
1721
  export declare class QuerySecurityPolicyRequest extends $tea.Model {
1695
1722
  authToken?: string;
1696
1723
  productInstanceId?: string;
1697
- riskType: string;
1698
- securityScene: SecurityScene;
1699
- serviceContext: ServiceContext;
1724
+ riskType?: string;
1725
+ securityScene?: SecurityScene;
1726
+ serviceContext?: ServiceContext;
1727
+ eventInfo: string;
1700
1728
  static names(): {
1701
1729
  [key: string]: string;
1702
1730
  };
@@ -1711,14 +1739,15 @@ export declare class QuerySecurityPolicyResponse extends $tea.Model {
1711
1739
  reqMsgId?: string;
1712
1740
  resultCode?: string;
1713
1741
  resultMsg?: string;
1714
- level?: number;
1715
1742
  securityId?: string;
1716
1743
  securityResult?: string;
1717
1744
  success: string;
1718
- templateCode?: string;
1719
- templateDesc?: string;
1720
1745
  verifyId?: string;
1721
1746
  verifyUrl?: string;
1747
+ modelDetails?: ModelDetails;
1748
+ variableDetails?: VariableDetails;
1749
+ strategyDetails?: StrategyDetails;
1750
+ sceneInfos?: SceneInfos;
1722
1751
  static names(): {
1723
1752
  [key: string]: string;
1724
1753
  };
@@ -5754,6 +5783,40 @@ export declare class QuerySnapshotEventResponse extends $tea.Model {
5754
5783
  [key: string]: any;
5755
5784
  });
5756
5785
  }
5786
+ export declare class QueryTdisaasSecurityPolicyRequest extends $tea.Model {
5787
+ authToken?: string;
5788
+ productInstanceId?: string;
5789
+ eventInfo: EventInfo;
5790
+ riskType: string;
5791
+ static names(): {
5792
+ [key: string]: string;
5793
+ };
5794
+ static types(): {
5795
+ [key: string]: any;
5796
+ };
5797
+ constructor(map?: {
5798
+ [key: string]: any;
5799
+ });
5800
+ }
5801
+ export declare class QueryTdisaasSecurityPolicyResponse extends $tea.Model {
5802
+ reqMsgId?: string;
5803
+ resultCode?: string;
5804
+ resultMsg?: string;
5805
+ modelDetails?: ModelDetails[];
5806
+ securityId?: string;
5807
+ securityResult?: string;
5808
+ strategyDetails?: StrategyDetails[];
5809
+ dfSceneInfos?: DfSceneInfos[];
5810
+ static names(): {
5811
+ [key: string]: string;
5812
+ };
5813
+ static types(): {
5814
+ [key: string]: any;
5815
+ };
5816
+ constructor(map?: {
5817
+ [key: string]: any;
5818
+ });
5819
+ }
5757
5820
  export declare class UploadUmktParamsFileRequest extends $tea.Model {
5758
5821
  authToken?: string;
5759
5822
  productInstanceId?: string;
@@ -6998,13 +7061,13 @@ export default class Client {
6998
7061
  [key: string]: any;
6999
7062
  }>;
7000
7063
  /**
7001
- * Description: 外部客户业务接入风控+,进行风险识别和风险决策。
7002
- * Summary: 策略咨询服务输出
7064
+ * Description: 风控云风险咨询接口
7065
+ * Summary: 风控云风险咨询接口
7003
7066
  */
7004
7067
  querySecurityPolicy(request: QuerySecurityPolicyRequest): Promise<QuerySecurityPolicyResponse>;
7005
7068
  /**
7006
- * Description: 外部客户业务接入风控+,进行风险识别和风险决策。
7007
- * Summary: 策略咨询服务输出
7069
+ * Description: 风控云风险咨询接口
7070
+ * Summary: 风控云风险咨询接口
7008
7071
  */
7009
7072
  querySecurityPolicyEx(request: QuerySecurityPolicyRequest, headers: {
7010
7073
  [key: string]: string;
@@ -8427,6 +8490,18 @@ export default class Client {
8427
8490
  querySnapshotEventEx(request: QuerySnapshotEventRequest, headers: {
8428
8491
  [key: string]: string;
8429
8492
  }, runtime: $Util.RuntimeOptions): Promise<QuerySnapshotEventResponse>;
8493
+ /**
8494
+ * Description: saas风险咨询,决策流模式
8495
+ * Summary: saas风险咨询
8496
+ */
8497
+ queryTdisaasSecurityPolicy(request: QueryTdisaasSecurityPolicyRequest): Promise<QueryTdisaasSecurityPolicyResponse>;
8498
+ /**
8499
+ * Description: saas风险咨询,决策流模式
8500
+ * Summary: saas风险咨询
8501
+ */
8502
+ queryTdisaasSecurityPolicyEx(request: QueryTdisaasSecurityPolicyRequest, headers: {
8503
+ [key: string]: string;
8504
+ }, runtime: $Util.RuntimeOptions): Promise<QueryTdisaasSecurityPolicyResponse>;
8430
8505
  /**
8431
8506
  * Description: 营销盾批量参数文件上传接口
8432
8507
  * Summary: 营销盾参数文件上传
package/dist/client.js CHANGED
@@ -975,6 +975,25 @@ class SecurityDataQueryStruct extends $tea.Model {
975
975
  }
976
976
  }
977
977
  exports.SecurityDataQueryStruct = SecurityDataQueryStruct;
978
+ // 场景决策列表
979
+ class SceneInfos extends $tea.Model {
980
+ constructor(map) {
981
+ super(map);
982
+ }
983
+ static names() {
984
+ return {
985
+ decision: 'decision',
986
+ sceneCode: 'scene_code',
987
+ };
988
+ }
989
+ static types() {
990
+ return {
991
+ decision: 'string',
992
+ sceneCode: 'string',
993
+ };
994
+ }
995
+ }
996
+ exports.SceneInfos = SceneInfos;
978
997
  // 触达策略信息
979
998
  class ActionPlanDetailInfo extends $tea.Model {
980
999
  constructor(map) {
@@ -2554,6 +2573,27 @@ class CpaasSmsTemplate extends $tea.Model {
2554
2573
  }
2555
2574
  }
2556
2575
  exports.CpaasSmsTemplate = CpaasSmsTemplate;
2576
+ // 输出变量列表
2577
+ class VariableDetails extends $tea.Model {
2578
+ constructor(map) {
2579
+ super(map);
2580
+ }
2581
+ static names() {
2582
+ return {
2583
+ variableName: 'variable_name',
2584
+ variableValue: 'variable_value',
2585
+ variableType: 'variable_type',
2586
+ };
2587
+ }
2588
+ static types() {
2589
+ return {
2590
+ variableName: 'string',
2591
+ variableValue: 'string',
2592
+ variableType: 'string',
2593
+ };
2594
+ }
2595
+ }
2596
+ exports.VariableDetails = VariableDetails;
2557
2597
  // 舆情的详情
2558
2598
  class RtopCompanyOpinionDetail extends $tea.Model {
2559
2599
  constructor(map) {
@@ -2752,6 +2792,7 @@ class QuerySecurityPolicyRequest extends $tea.Model {
2752
2792
  riskType: 'risk_type',
2753
2793
  securityScene: 'security_scene',
2754
2794
  serviceContext: 'service_context',
2795
+ eventInfo: 'event_info',
2755
2796
  };
2756
2797
  }
2757
2798
  static types() {
@@ -2761,6 +2802,7 @@ class QuerySecurityPolicyRequest extends $tea.Model {
2761
2802
  riskType: 'string',
2762
2803
  securityScene: SecurityScene,
2763
2804
  serviceContext: ServiceContext,
2805
+ eventInfo: 'string',
2764
2806
  };
2765
2807
  }
2766
2808
  }
@@ -2774,14 +2816,15 @@ class QuerySecurityPolicyResponse extends $tea.Model {
2774
2816
  reqMsgId: 'req_msg_id',
2775
2817
  resultCode: 'result_code',
2776
2818
  resultMsg: 'result_msg',
2777
- level: 'level',
2778
2819
  securityId: 'security_id',
2779
2820
  securityResult: 'security_result',
2780
2821
  success: 'success',
2781
- templateCode: 'template_code',
2782
- templateDesc: 'template_desc',
2783
2822
  verifyId: 'verify_id',
2784
2823
  verifyUrl: 'verify_url',
2824
+ modelDetails: 'model_details',
2825
+ variableDetails: 'variable_details',
2826
+ strategyDetails: 'strategy_details',
2827
+ sceneInfos: 'scene_infos',
2785
2828
  };
2786
2829
  }
2787
2830
  static types() {
@@ -2789,14 +2832,15 @@ class QuerySecurityPolicyResponse extends $tea.Model {
2789
2832
  reqMsgId: 'string',
2790
2833
  resultCode: 'string',
2791
2834
  resultMsg: 'string',
2792
- level: 'number',
2793
2835
  securityId: 'string',
2794
2836
  securityResult: 'string',
2795
2837
  success: 'string',
2796
- templateCode: 'string',
2797
- templateDesc: 'string',
2798
2838
  verifyId: 'string',
2799
2839
  verifyUrl: 'string',
2840
+ modelDetails: ModelDetails,
2841
+ variableDetails: VariableDetails,
2842
+ strategyDetails: StrategyDetails,
2843
+ sceneInfos: SceneInfos,
2800
2844
  };
2801
2845
  }
2802
2846
  }
@@ -8963,6 +9007,58 @@ class QuerySnapshotEventResponse extends $tea.Model {
8963
9007
  }
8964
9008
  }
8965
9009
  exports.QuerySnapshotEventResponse = QuerySnapshotEventResponse;
9010
+ class QueryTdisaasSecurityPolicyRequest extends $tea.Model {
9011
+ constructor(map) {
9012
+ super(map);
9013
+ }
9014
+ static names() {
9015
+ return {
9016
+ authToken: 'auth_token',
9017
+ productInstanceId: 'product_instance_id',
9018
+ eventInfo: 'event_info',
9019
+ riskType: 'risk_type',
9020
+ };
9021
+ }
9022
+ static types() {
9023
+ return {
9024
+ authToken: 'string',
9025
+ productInstanceId: 'string',
9026
+ eventInfo: EventInfo,
9027
+ riskType: 'string',
9028
+ };
9029
+ }
9030
+ }
9031
+ exports.QueryTdisaasSecurityPolicyRequest = QueryTdisaasSecurityPolicyRequest;
9032
+ class QueryTdisaasSecurityPolicyResponse extends $tea.Model {
9033
+ constructor(map) {
9034
+ super(map);
9035
+ }
9036
+ static names() {
9037
+ return {
9038
+ reqMsgId: 'req_msg_id',
9039
+ resultCode: 'result_code',
9040
+ resultMsg: 'result_msg',
9041
+ modelDetails: 'model_details',
9042
+ securityId: 'security_id',
9043
+ securityResult: 'security_result',
9044
+ strategyDetails: 'strategy_details',
9045
+ dfSceneInfos: 'df_scene_infos',
9046
+ };
9047
+ }
9048
+ static types() {
9049
+ return {
9050
+ reqMsgId: 'string',
9051
+ resultCode: 'string',
9052
+ resultMsg: 'string',
9053
+ modelDetails: { 'type': 'array', 'itemType': ModelDetails },
9054
+ securityId: 'string',
9055
+ securityResult: 'string',
9056
+ strategyDetails: { 'type': 'array', 'itemType': StrategyDetails },
9057
+ dfSceneInfos: { 'type': 'array', 'itemType': DfSceneInfos },
9058
+ };
9059
+ }
9060
+ }
9061
+ exports.QueryTdisaasSecurityPolicyResponse = QueryTdisaasSecurityPolicyResponse;
8966
9062
  class UploadUmktParamsFileRequest extends $tea.Model {
8967
9063
  constructor(map) {
8968
9064
  super(map);
@@ -10893,7 +10989,7 @@ class Client {
10893
10989
  req_msg_id: alipay_util_1.default.getNonce(),
10894
10990
  access_key: this._accessKeyId,
10895
10991
  base_sdk_version: "TeaSDK-2.0",
10896
- sdk_version: "1.16.59",
10992
+ sdk_version: "1.17.1",
10897
10993
  _prod_code: "RISKPLUS",
10898
10994
  _prod_channel: "undefined",
10899
10995
  };
@@ -10931,8 +11027,8 @@ class Client {
10931
11027
  throw $tea.newUnretryableError(_lastRequest);
10932
11028
  }
10933
11029
  /**
10934
- * Description: 外部客户业务接入风控+,进行风险识别和风险决策。
10935
- * Summary: 策略咨询服务输出
11030
+ * Description: 风控云风险咨询接口
11031
+ * Summary: 风控云风险咨询接口
10936
11032
  */
10937
11033
  async querySecurityPolicy(request) {
10938
11034
  let runtime = new $Util.RuntimeOptions({});
@@ -10940,8 +11036,8 @@ class Client {
10940
11036
  return await this.querySecurityPolicyEx(request, headers, runtime);
10941
11037
  }
10942
11038
  /**
10943
- * Description: 外部客户业务接入风控+,进行风险识别和风险决策。
10944
- * Summary: 策略咨询服务输出
11039
+ * Description: 风控云风险咨询接口
11040
+ * Summary: 风控云风险咨询接口
10945
11041
  */
10946
11042
  async querySecurityPolicyEx(request, headers, runtime) {
10947
11043
  tea_util_1.default.validateModel(request);
@@ -13031,6 +13127,23 @@ class Client {
13031
13127
  tea_util_1.default.validateModel(request);
13032
13128
  return $tea.cast(await this.doRequest("1.0", "riskplus.snapshot.event.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QuerySnapshotEventResponse({}));
13033
13129
  }
13130
+ /**
13131
+ * Description: saas风险咨询,决策流模式
13132
+ * Summary: saas风险咨询
13133
+ */
13134
+ async queryTdisaasSecurityPolicy(request) {
13135
+ let runtime = new $Util.RuntimeOptions({});
13136
+ let headers = {};
13137
+ return await this.queryTdisaasSecurityPolicyEx(request, headers, runtime);
13138
+ }
13139
+ /**
13140
+ * Description: saas风险咨询,决策流模式
13141
+ * Summary: saas风险咨询
13142
+ */
13143
+ async queryTdisaasSecurityPolicyEx(request, headers, runtime) {
13144
+ tea_util_1.default.validateModel(request);
13145
+ return $tea.cast(await this.doRequest("1.0", "riskplus.tdisaas.security.policy.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryTdisaasSecurityPolicyResponse({}));
13146
+ }
13034
13147
  /**
13035
13148
  * Description: 营销盾批量参数文件上传接口
13036
13149
  * Summary: 营销盾参数文件上传