@antchain/riskplus 1.16.33 → 1.16.38

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.33",
3
+ "version": "1.16.38",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "latest",
23
23
  "@antchain/alipay-util": "^1.0.4",
24
- "@alicloud/tea-util": "^1.4.5",
24
+ "@alicloud/tea-util": "^1.4.7",
25
25
  "@alicloud/rpc-util": "^0.1.0"
26
26
  },
27
27
  "files": [
package/src/client.ts CHANGED
@@ -1186,6 +1186,35 @@ export class RtopCompanyRiskFactor extends $tea.Model {
1186
1186
  }
1187
1187
  }
1188
1188
 
1189
+ // 用户凭证信息
1190
+ export class CustomerDetail extends $tea.Model {
1191
+ // 用户标识
1192
+ customerKey: string;
1193
+ // 渠道参数
1194
+ channelParams: string;
1195
+ // 用户透传字段
1196
+ extInfo: string;
1197
+ static names(): { [key: string]: string } {
1198
+ return {
1199
+ customerKey: 'customer_key',
1200
+ channelParams: 'channel_params',
1201
+ extInfo: 'ext_info',
1202
+ };
1203
+ }
1204
+
1205
+ static types(): { [key: string]: any } {
1206
+ return {
1207
+ customerKey: 'string',
1208
+ channelParams: 'string',
1209
+ extInfo: 'string',
1210
+ };
1211
+ }
1212
+
1213
+ constructor(map?: { [key: string]: any }) {
1214
+ super(map);
1215
+ }
1216
+ }
1217
+
1189
1218
  // 用户绑定银行卡列表
1190
1219
  export class CustomerBankCardInfo extends $tea.Model {
1191
1220
  // 银行名称
@@ -9574,6 +9603,8 @@ export class QueryRbbGeneralRequest extends $tea.Model {
9574
9603
  queryname: string;
9575
9604
  // 查询参数JSON字符串
9576
9605
  queryparas?: string;
9606
+ // 虚拟云租户code
9607
+ virtualCloudTenantCode?: string;
9577
9608
  static names(): { [key: string]: string } {
9578
9609
  return {
9579
9610
  authToken: 'auth_token',
@@ -9581,6 +9612,7 @@ export class QueryRbbGeneralRequest extends $tea.Model {
9581
9612
  extension: 'extension',
9582
9613
  queryname: 'queryname',
9583
9614
  queryparas: 'queryparas',
9615
+ virtualCloudTenantCode: 'virtual_cloud_tenant_code',
9584
9616
  };
9585
9617
  }
9586
9618
 
@@ -9591,6 +9623,7 @@ export class QueryRbbGeneralRequest extends $tea.Model {
9591
9623
  extension: 'string',
9592
9624
  queryname: 'string',
9593
9625
  queryparas: 'string',
9626
+ virtualCloudTenantCode: 'string',
9594
9627
  };
9595
9628
  }
9596
9629
 
@@ -15092,6 +15125,306 @@ export class ApplyUmktRealtimemarketingResponse extends $tea.Model {
15092
15125
  }
15093
15126
  }
15094
15127
 
15128
+ export class ApplyUmktRtBatchmarketingRequest extends $tea.Model {
15129
+ // OAuth模式下的授权token
15130
+ authToken?: string;
15131
+ productInstanceId?: string;
15132
+ // 场景策略id
15133
+ sceneStrategyId: number;
15134
+ // 外部流水号
15135
+ outSerialNo: string;
15136
+ // 用户标识类型
15137
+ paramType: string;
15138
+ // 批量透传字段
15139
+ outInfo: string;
15140
+ // 用户凭证列表
15141
+ customerDetails: CustomerDetail[];
15142
+ static names(): { [key: string]: string } {
15143
+ return {
15144
+ authToken: 'auth_token',
15145
+ productInstanceId: 'product_instance_id',
15146
+ sceneStrategyId: 'scene_strategy_id',
15147
+ outSerialNo: 'out_serial_no',
15148
+ paramType: 'param_type',
15149
+ outInfo: 'out_info',
15150
+ customerDetails: 'customer_details',
15151
+ };
15152
+ }
15153
+
15154
+ static types(): { [key: string]: any } {
15155
+ return {
15156
+ authToken: 'string',
15157
+ productInstanceId: 'string',
15158
+ sceneStrategyId: 'number',
15159
+ outSerialNo: 'string',
15160
+ paramType: 'string',
15161
+ outInfo: 'string',
15162
+ customerDetails: { 'type': 'array', 'itemType': CustomerDetail },
15163
+ };
15164
+ }
15165
+
15166
+ constructor(map?: { [key: string]: any }) {
15167
+ super(map);
15168
+ }
15169
+ }
15170
+
15171
+ export class ApplyUmktRtBatchmarketingResponse extends $tea.Model {
15172
+ // 请求唯一ID,用于链路跟踪和问题排查
15173
+ reqMsgId?: string;
15174
+ // 结果码,一般OK表示调用成功
15175
+ resultCode?: string;
15176
+ // 异常信息的文本描述
15177
+ resultMsg?: string;
15178
+ // 批次流水号
15179
+ bizId?: string;
15180
+ static names(): { [key: string]: string } {
15181
+ return {
15182
+ reqMsgId: 'req_msg_id',
15183
+ resultCode: 'result_code',
15184
+ resultMsg: 'result_msg',
15185
+ bizId: 'biz_id',
15186
+ };
15187
+ }
15188
+
15189
+ static types(): { [key: string]: any } {
15190
+ return {
15191
+ reqMsgId: 'string',
15192
+ resultCode: 'string',
15193
+ resultMsg: 'string',
15194
+ bizId: 'string',
15195
+ };
15196
+ }
15197
+
15198
+ constructor(map?: { [key: string]: any }) {
15199
+ super(map);
15200
+ }
15201
+ }
15202
+
15203
+ export class CallbackUmktRobotcallRequest extends $tea.Model {
15204
+ // OAuth模式下的授权token
15205
+ authToken?: string;
15206
+ productInstanceId?: string;
15207
+ // 外呼号码,支持密文
15208
+ customerKey: string;
15209
+ // 当前呼叫次数 Integer
15210
+ currentCallTimes: number;
15211
+ // 号码的模版类型
15212
+ keyTemplate: string;
15213
+ // 导入号码时返回的批次号
15214
+ batchId: string;
15215
+ // 外呼类型
15216
+ // 建议按照如下约定给到
15217
+ // 2001:批量-预测外呼
15218
+ // 2002:批量-AI外呼-不转人工
15219
+ // 2003:批量-AI外呼-接通转人工
15220
+ // 2004: 批量-AI外呼-智能转人工
15221
+ // 2005:批量-语音通知
15222
+ callType: number;
15223
+ // 用户自定义标签
15224
+ tag?: string;
15225
+ // 外呼呼叫实例id
15226
+ callId: string;
15227
+ // 外呼任务编号
15228
+ taskId: number;
15229
+ // 外呼的话术模板ID,可以为空
15230
+ templateId?: number;
15231
+ // 外呼状态编码
15232
+ statusCode: number;
15233
+ // 外呼状态编码对应描述
15234
+ statusDescription: string;
15235
+ // 转人工状态编码
15236
+ transferStatusCode: string;
15237
+ // 转人工状态编码对应描述
15238
+ transferStatus: string;
15239
+ // 分配坐席ID,可以为空
15240
+ agentId?: number;
15241
+ // 建议填写坐席在贵司业务系统唯一标识,用于查询对应agentId;可以为空。
15242
+ agentTag?: string;
15243
+ // 坐席分机号,可以为空
15244
+ agentExtension?: string;
15245
+ // 导入时间,格式:2019-01-09 14:14:19
15246
+ importTime: string;
15247
+ // 开始通话时间,格式:2019-01-09 14:14:19
15248
+ callBeginTime: string;
15249
+ // 振铃时长,单位毫秒
15250
+ ringTime: number;
15251
+ // 接通时间
15252
+ answerTime?: string;
15253
+ // 通话时长,单位:大于1分钟,显示分钟秒,小于1分钟,显示秒
15254
+ speakingTime: string;
15255
+ // 通话时长,单位:秒
15256
+ speakingDuration: number;
15257
+ // 通话挂断时间
15258
+ hangupTime: string;
15259
+ // 对话轮次
15260
+ speakingTurns: number;
15261
+ // 坐席通话时长,单位:大于1分钟,显示分钟秒,小于1分钟,显示秒
15262
+ agentSpeakingTime: string;
15263
+ // 坐席通话时长,单位:秒
15264
+ agentSpeakingDuration: number;
15265
+ // 意向标签
15266
+ intentTag: string;
15267
+ // 意向说明
15268
+ intentDescription: string;
15269
+ // 个性标签
15270
+ individualTag?: string;
15271
+ // 回复关键词
15272
+ keywords?: string;
15273
+ // 挂机方式
15274
+ hungupType: number;
15275
+ // 挂机短信,1:发送,2:不发送
15276
+ sms: number;
15277
+ // 对话录音,url
15278
+ chatRecord?: string;
15279
+ // 对话记录
15280
+ chats?: string;
15281
+ // 0:不添加,1:添加
15282
+ addWx?: number;
15283
+ // 加微进度可选值:已申请、加微成功
15284
+ addWxStatus?: string;
15285
+ // 是否接通重呼 0正常外呼,1接通重呼
15286
+ answerRecall: number;
15287
+ // 导入号码时的参数值
15288
+ properties?: string;
15289
+ // 导入号码时的业务参数值
15290
+ bizProperties?: string;
15291
+ // 拦截原因 可选值:黑名单拦截,灰名单拦截,异常号码拦截
15292
+ interceptReason?: string;
15293
+ // 回调冗余字段
15294
+ extInfo?: string;
15295
+ static names(): { [key: string]: string } {
15296
+ return {
15297
+ authToken: 'auth_token',
15298
+ productInstanceId: 'product_instance_id',
15299
+ customerKey: 'customer_key',
15300
+ currentCallTimes: 'current_call_times',
15301
+ keyTemplate: 'key_template',
15302
+ batchId: 'batch_id',
15303
+ callType: 'call_type',
15304
+ tag: 'tag',
15305
+ callId: 'call_id',
15306
+ taskId: 'task_id',
15307
+ templateId: 'template_id',
15308
+ statusCode: 'status_code',
15309
+ statusDescription: 'status_description',
15310
+ transferStatusCode: 'transfer_status_code',
15311
+ transferStatus: 'transfer_status',
15312
+ agentId: 'agent_id',
15313
+ agentTag: 'agent_tag',
15314
+ agentExtension: 'agent_extension',
15315
+ importTime: 'import_time',
15316
+ callBeginTime: 'call_begin_time',
15317
+ ringTime: 'ring_time',
15318
+ answerTime: 'answer_time',
15319
+ speakingTime: 'speaking_time',
15320
+ speakingDuration: 'speaking_duration',
15321
+ hangupTime: 'hangup_time',
15322
+ speakingTurns: 'speaking_turns',
15323
+ agentSpeakingTime: 'agent_speaking_time',
15324
+ agentSpeakingDuration: 'agent_speaking_duration',
15325
+ intentTag: 'intent_tag',
15326
+ intentDescription: 'intent_description',
15327
+ individualTag: 'individual_tag',
15328
+ keywords: 'keywords',
15329
+ hungupType: 'hungup_type',
15330
+ sms: 'sms',
15331
+ chatRecord: 'chat_record',
15332
+ chats: 'chats',
15333
+ addWx: 'add_wx',
15334
+ addWxStatus: 'add_wx_status',
15335
+ answerRecall: 'answer_recall',
15336
+ properties: 'properties',
15337
+ bizProperties: 'biz_properties',
15338
+ interceptReason: 'intercept_reason',
15339
+ extInfo: 'ext_info',
15340
+ };
15341
+ }
15342
+
15343
+ static types(): { [key: string]: any } {
15344
+ return {
15345
+ authToken: 'string',
15346
+ productInstanceId: 'string',
15347
+ customerKey: 'string',
15348
+ currentCallTimes: 'number',
15349
+ keyTemplate: 'string',
15350
+ batchId: 'string',
15351
+ callType: 'number',
15352
+ tag: 'string',
15353
+ callId: 'string',
15354
+ taskId: 'number',
15355
+ templateId: 'number',
15356
+ statusCode: 'number',
15357
+ statusDescription: 'string',
15358
+ transferStatusCode: 'string',
15359
+ transferStatus: 'string',
15360
+ agentId: 'number',
15361
+ agentTag: 'string',
15362
+ agentExtension: 'string',
15363
+ importTime: 'string',
15364
+ callBeginTime: 'string',
15365
+ ringTime: 'number',
15366
+ answerTime: 'string',
15367
+ speakingTime: 'string',
15368
+ speakingDuration: 'number',
15369
+ hangupTime: 'string',
15370
+ speakingTurns: 'number',
15371
+ agentSpeakingTime: 'string',
15372
+ agentSpeakingDuration: 'number',
15373
+ intentTag: 'string',
15374
+ intentDescription: 'string',
15375
+ individualTag: 'string',
15376
+ keywords: 'string',
15377
+ hungupType: 'number',
15378
+ sms: 'number',
15379
+ chatRecord: 'string',
15380
+ chats: 'string',
15381
+ addWx: 'number',
15382
+ addWxStatus: 'string',
15383
+ answerRecall: 'number',
15384
+ properties: 'string',
15385
+ bizProperties: 'string',
15386
+ interceptReason: 'string',
15387
+ extInfo: 'string',
15388
+ };
15389
+ }
15390
+
15391
+ constructor(map?: { [key: string]: any }) {
15392
+ super(map);
15393
+ }
15394
+ }
15395
+
15396
+ export class CallbackUmktRobotcallResponse extends $tea.Model {
15397
+ // 请求唯一ID,用于链路跟踪和问题排查
15398
+ reqMsgId?: string;
15399
+ // 结果码,一般OK表示调用成功
15400
+ resultCode?: string;
15401
+ // 异常信息的文本描述
15402
+ resultMsg?: string;
15403
+ // 是否成功
15404
+ success?: boolean;
15405
+ static names(): { [key: string]: string } {
15406
+ return {
15407
+ reqMsgId: 'req_msg_id',
15408
+ resultCode: 'result_code',
15409
+ resultMsg: 'result_msg',
15410
+ success: 'success',
15411
+ };
15412
+ }
15413
+
15414
+ static types(): { [key: string]: any } {
15415
+ return {
15416
+ reqMsgId: 'string',
15417
+ resultCode: 'string',
15418
+ resultMsg: 'string',
15419
+ success: 'boolean',
15420
+ };
15421
+ }
15422
+
15423
+ constructor(map?: { [key: string]: any }) {
15424
+ super(map);
15425
+ }
15426
+ }
15427
+
15095
15428
  export class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
15096
15429
  // OAuth模式下的授权token
15097
15430
  authToken?: string;
@@ -15293,7 +15626,7 @@ export default class Client {
15293
15626
  req_msg_id: AntchainUtil.getNonce(),
15294
15627
  access_key: this._accessKeyId,
15295
15628
  base_sdk_version: "TeaSDK-2.0",
15296
- sdk_version: "1.16.33",
15629
+ sdk_version: "1.16.38",
15297
15630
  _prod_code: "RISKPLUS",
15298
15631
  _prod_channel: "undefined",
15299
15632
  };
@@ -18127,6 +18460,44 @@ export default class Client {
18127
18460
  return $tea.cast<ApplyUmktRealtimemarketingResponse>(await this.doRequest("1.0", "riskplus.umkt.realtimemarketing.apply", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ApplyUmktRealtimemarketingResponse({}));
18128
18461
  }
18129
18462
 
18463
+ /**
18464
+ * Description: 批量实时策略触达
18465
+ * Summary: 批量实时策略触达
18466
+ */
18467
+ async applyUmktRtBatchmarketing(request: ApplyUmktRtBatchmarketingRequest): Promise<ApplyUmktRtBatchmarketingResponse> {
18468
+ let runtime = new $Util.RuntimeOptions({ });
18469
+ let headers : {[key: string ]: string} = { };
18470
+ return await this.applyUmktRtBatchmarketingEx(request, headers, runtime);
18471
+ }
18472
+
18473
+ /**
18474
+ * Description: 批量实时策略触达
18475
+ * Summary: 批量实时策略触达
18476
+ */
18477
+ async applyUmktRtBatchmarketingEx(request: ApplyUmktRtBatchmarketingRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ApplyUmktRtBatchmarketingResponse> {
18478
+ Util.validateModel(request);
18479
+ return $tea.cast<ApplyUmktRtBatchmarketingResponse>(await this.doRequest("1.0", "riskplus.umkt.rt.batchmarketing.apply", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ApplyUmktRtBatchmarketingResponse({}));
18480
+ }
18481
+
18482
+ /**
18483
+ * Description: 新接入ai外呼服务商的回调接口
18484
+ * Summary: ai外呼回调接口
18485
+ */
18486
+ async callbackUmktRobotcall(request: CallbackUmktRobotcallRequest): Promise<CallbackUmktRobotcallResponse> {
18487
+ let runtime = new $Util.RuntimeOptions({ });
18488
+ let headers : {[key: string ]: string} = { };
18489
+ return await this.callbackUmktRobotcallEx(request, headers, runtime);
18490
+ }
18491
+
18492
+ /**
18493
+ * Description: 新接入ai外呼服务商的回调接口
18494
+ * Summary: ai外呼回调接口
18495
+ */
18496
+ async callbackUmktRobotcallEx(request: CallbackUmktRobotcallRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CallbackUmktRobotcallResponse> {
18497
+ Util.validateModel(request);
18498
+ return $tea.cast<CallbackUmktRobotcallResponse>(await this.doRequest("1.0", "riskplus.umkt.robotcall.callback", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CallbackUmktRobotcallResponse({}));
18499
+ }
18500
+
18130
18501
  /**
18131
18502
  * Description: 创建HTTP PUT提交的文件上传
18132
18503
  * Summary: 文件上传创建