@antchain/riskplus 1.16.57 → 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.57",
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,6 +15700,8 @@ export class CallbackUmktRobotcallRequest extends $tea.Model {
15588
15700
  callId: string;
15589
15701
  // 外呼任务编号
15590
15702
  taskId: number;
15703
+ // 外呼任务名称
15704
+ taskName: string;
15591
15705
  // 外呼的话术模板ID,可以为空
15592
15706
  templateId?: number;
15593
15707
  // 外呼状态编码
@@ -15666,6 +15780,7 @@ export class CallbackUmktRobotcallRequest extends $tea.Model {
15666
15780
  tag: 'tag',
15667
15781
  callId: 'call_id',
15668
15782
  taskId: 'task_id',
15783
+ taskName: 'task_name',
15669
15784
  templateId: 'template_id',
15670
15785
  statusCode: 'status_code',
15671
15786
  statusDescription: 'status_description',
@@ -15714,6 +15829,7 @@ export class CallbackUmktRobotcallRequest extends $tea.Model {
15714
15829
  tag: 'string',
15715
15830
  callId: 'string',
15716
15831
  taskId: 'number',
15832
+ taskName: 'string',
15717
15833
  templateId: 'number',
15718
15834
  statusCode: 'number',
15719
15835
  statusDescription: 'string',
@@ -15892,6 +16008,10 @@ export class CallbackUmktSmsReportRequest extends $tea.Model {
15892
16008
  bizProperties: string;
15893
16009
  // 发送卡片短信时,文本短信状态报告中才会有该字段,且取值为CARD_SMS,发送纯文本短信时,状态报告中没有该字段
15894
16010
  smsType?: string;
16011
+ // 运营商
16012
+ serviceProvider: string;
16013
+ // 手机号码所属城市
16014
+ city?: string;
15895
16015
  static names(): { [key: string]: string } {
15896
16016
  return {
15897
16017
  authToken: 'auth_token',
@@ -15907,6 +16027,8 @@ export class CallbackUmktSmsReportRequest extends $tea.Model {
15907
16027
  bizId: 'biz_id',
15908
16028
  bizProperties: 'biz_properties',
15909
16029
  smsType: 'sms_type',
16030
+ serviceProvider: 'service_provider',
16031
+ city: 'city',
15910
16032
  };
15911
16033
  }
15912
16034
 
@@ -15925,6 +16047,8 @@ export class CallbackUmktSmsReportRequest extends $tea.Model {
15925
16047
  bizId: 'string',
15926
16048
  bizProperties: 'string',
15927
16049
  smsType: 'string',
16050
+ serviceProvider: 'string',
16051
+ city: 'string',
15928
16052
  };
15929
16053
  }
15930
16054
 
@@ -16655,7 +16779,7 @@ export default class Client {
16655
16779
  req_msg_id: AntchainUtil.getNonce(),
16656
16780
  access_key: this._accessKeyId,
16657
16781
  base_sdk_version: "TeaSDK-2.0",
16658
- sdk_version: "1.16.57",
16782
+ sdk_version: "1.17.0",
16659
16783
  _prod_code: "RISKPLUS",
16660
16784
  _prod_channel: "undefined",
16661
16785
  };
@@ -19050,6 +19174,25 @@ export default class Client {
19050
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({}));
19051
19175
  }
19052
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
+
19053
19196
  /**
19054
19197
  * Description: 营销盾批量参数文件上传接口
19055
19198
  * Summary: 营销盾参数文件上传