@antchain/riskplus 1.16.59 → 1.17.0

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.16.59",
3
+ "version": "1.17.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -3967,6 +3967,35 @@ export class CpaasSmsTemplate extends $tea.Model {
3967
3967
  }
3968
3968
  }
3969
3969
 
3970
+ // 输出变量列表
3971
+ export class VariableDetails extends $tea.Model {
3972
+ // 输出变量名称
3973
+ variableName: string;
3974
+ // 输出变量值
3975
+ variableValue: string;
3976
+ // 输出变量值类型
3977
+ variableType: string;
3978
+ static names(): { [key: string]: string } {
3979
+ return {
3980
+ variableName: 'variable_name',
3981
+ variableValue: 'variable_value',
3982
+ variableType: 'variable_type',
3983
+ };
3984
+ }
3985
+
3986
+ static types(): { [key: string]: any } {
3987
+ return {
3988
+ variableName: 'string',
3989
+ variableValue: 'string',
3990
+ variableType: 'string',
3991
+ };
3992
+ }
3993
+
3994
+ constructor(map?: { [key: string]: any }) {
3995
+ super(map);
3996
+ }
3997
+ }
3998
+
3970
3999
  // 舆情的详情
3971
4000
  export class RtopCompanyOpinionDetail extends $tea.Model {
3972
4001
  // 具体的舆情内容
@@ -4298,14 +4327,16 @@ export class QuerySecurityPolicyResponse extends $tea.Model {
4298
4327
  securityResult?: string;
4299
4328
  // 是否成功
4300
4329
  success: string;
4301
- // 有风险需要失败业务情况下的返回码
4302
- templateCode?: string;
4303
- // 有风险需要失败业务情况下的返回码描述
4304
- templateDesc?: string;
4305
4330
  // native场景下的核身id
4306
4331
  verifyId?: string;
4307
4332
  // h5场景下的核身地址
4308
4333
  verifyUrl?: string;
4334
+ // 场景分
4335
+ modelDetails?: ModelDetails;
4336
+ // 输出变量
4337
+ variableDetails?: VariableDetails;
4338
+ // 策略详情
4339
+ strategyDetails?: StrategyDetails;
4309
4340
  static names(): { [key: string]: string } {
4310
4341
  return {
4311
4342
  reqMsgId: 'req_msg_id',
@@ -4315,10 +4346,11 @@ export class QuerySecurityPolicyResponse extends $tea.Model {
4315
4346
  securityId: 'security_id',
4316
4347
  securityResult: 'security_result',
4317
4348
  success: 'success',
4318
- templateCode: 'template_code',
4319
- templateDesc: 'template_desc',
4320
4349
  verifyId: 'verify_id',
4321
4350
  verifyUrl: 'verify_url',
4351
+ modelDetails: 'model_details',
4352
+ variableDetails: 'variable_details',
4353
+ strategyDetails: 'strategy_details',
4322
4354
  };
4323
4355
  }
4324
4356
 
@@ -4331,10 +4363,11 @@ export class QuerySecurityPolicyResponse extends $tea.Model {
4331
4363
  securityId: 'string',
4332
4364
  securityResult: 'string',
4333
4365
  success: 'string',
4334
- templateCode: 'string',
4335
- templateDesc: 'string',
4336
4366
  verifyId: 'string',
4337
4367
  verifyUrl: 'string',
4368
+ modelDetails: ModelDetails,
4369
+ variableDetails: VariableDetails,
4370
+ strategyDetails: StrategyDetails,
4338
4371
  };
4339
4372
  }
4340
4373
 
@@ -13731,6 +13764,85 @@ export class QuerySnapshotEventResponse extends $tea.Model {
13731
13764
  }
13732
13765
  }
13733
13766
 
13767
+ export class QueryTdisaasSecurityPolicyRequest extends $tea.Model {
13768
+ // OAuth模式下的授权token
13769
+ authToken?: string;
13770
+ productInstanceId?: string;
13771
+ // 风控事件咨询查询入参
13772
+ eventInfo: EventInfo;
13773
+ // 请求处理方式
13774
+ riskType: string;
13775
+ static names(): { [key: string]: string } {
13776
+ return {
13777
+ authToken: 'auth_token',
13778
+ productInstanceId: 'product_instance_id',
13779
+ eventInfo: 'event_info',
13780
+ riskType: 'risk_type',
13781
+ };
13782
+ }
13783
+
13784
+ static types(): { [key: string]: any } {
13785
+ return {
13786
+ authToken: 'string',
13787
+ productInstanceId: 'string',
13788
+ eventInfo: EventInfo,
13789
+ riskType: 'string',
13790
+ };
13791
+ }
13792
+
13793
+ constructor(map?: { [key: string]: any }) {
13794
+ super(map);
13795
+ }
13796
+ }
13797
+
13798
+ export class QueryTdisaasSecurityPolicyResponse extends $tea.Model {
13799
+ // 请求唯一ID,用于链路跟踪和问题排查
13800
+ reqMsgId?: string;
13801
+ // 结果码,一般OK表示调用成功
13802
+ resultCode?: string;
13803
+ // 异常信息的文本描述
13804
+ resultMsg?: string;
13805
+ // 场景分
13806
+ modelDetails?: ModelDetails[];
13807
+ // 安全请求id
13808
+ securityId?: string;
13809
+ // 策略结果
13810
+ securityResult?: string;
13811
+ // 策略结果详情
13812
+ strategyDetails?: StrategyDetails[];
13813
+ // 决策流信息
13814
+ dfSceneInfos?: DfSceneInfos[];
13815
+ static names(): { [key: string]: string } {
13816
+ return {
13817
+ reqMsgId: 'req_msg_id',
13818
+ resultCode: 'result_code',
13819
+ resultMsg: 'result_msg',
13820
+ modelDetails: 'model_details',
13821
+ securityId: 'security_id',
13822
+ securityResult: 'security_result',
13823
+ strategyDetails: 'strategy_details',
13824
+ dfSceneInfos: 'df_scene_infos',
13825
+ };
13826
+ }
13827
+
13828
+ static types(): { [key: string]: any } {
13829
+ return {
13830
+ reqMsgId: 'string',
13831
+ resultCode: 'string',
13832
+ resultMsg: 'string',
13833
+ modelDetails: { 'type': 'array', 'itemType': ModelDetails },
13834
+ securityId: 'string',
13835
+ securityResult: 'string',
13836
+ strategyDetails: { 'type': 'array', 'itemType': StrategyDetails },
13837
+ dfSceneInfos: { 'type': 'array', 'itemType': DfSceneInfos },
13838
+ };
13839
+ }
13840
+
13841
+ constructor(map?: { [key: string]: any }) {
13842
+ super(map);
13843
+ }
13844
+ }
13845
+
13734
13846
  export class UploadUmktParamsFileRequest extends $tea.Model {
13735
13847
  // OAuth模式下的授权token
13736
13848
  authToken?: string;
@@ -15588,7 +15700,7 @@ export class CallbackUmktRobotcallRequest extends $tea.Model {
15588
15700
  callId: string;
15589
15701
  // 外呼任务编号
15590
15702
  taskId: number;
15591
- // 渠道侧任务名称
15703
+ // 外呼任务名称
15592
15704
  taskName: string;
15593
15705
  // 外呼的话术模板ID,可以为空
15594
15706
  templateId?: number;
@@ -16667,7 +16779,7 @@ export default class Client {
16667
16779
  req_msg_id: AntchainUtil.getNonce(),
16668
16780
  access_key: this._accessKeyId,
16669
16781
  base_sdk_version: "TeaSDK-2.0",
16670
- sdk_version: "1.16.59",
16782
+ sdk_version: "1.17.0",
16671
16783
  _prod_code: "RISKPLUS",
16672
16784
  _prod_channel: "undefined",
16673
16785
  };
@@ -19062,6 +19174,25 @@ export default class Client {
19062
19174
  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
19175
  }
19064
19176
 
19177
+ /**
19178
+ * Description: saas风险咨询,决策流模式
19179
+ * Summary: saas风险咨询
19180
+ */
19181
+ async queryTdisaasSecurityPolicy(request: QueryTdisaasSecurityPolicyRequest): Promise<QueryTdisaasSecurityPolicyResponse> {
19182
+ let runtime = new $Util.RuntimeOptions({ });
19183
+ let headers : {[key: string ]: string} = { };
19184
+ return await this.queryTdisaasSecurityPolicyEx(request, headers, runtime);
19185
+ }
19186
+
19187
+ /**
19188
+ * Description: saas风险咨询,决策流模式
19189
+ * Summary: saas风险咨询
19190
+ */
19191
+ async queryTdisaasSecurityPolicyEx(request: QueryTdisaasSecurityPolicyRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryTdisaasSecurityPolicyResponse> {
19192
+ Util.validateModel(request);
19193
+ 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({}));
19194
+ }
19195
+
19065
19196
  /**
19066
19197
  * Description: 营销盾批量参数文件上传接口
19067
19198
  * Summary: 营销盾参数文件上传