@antchain/riskplus 1.16.36 → 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.36",
3
+ "version": "1.16.38",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -15200,6 +15200,231 @@ export class ApplyUmktRtBatchmarketingResponse extends $tea.Model {
15200
15200
  }
15201
15201
  }
15202
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
+
15203
15428
  export class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
15204
15429
  // OAuth模式下的授权token
15205
15430
  authToken?: string;
@@ -15401,7 +15626,7 @@ export default class Client {
15401
15626
  req_msg_id: AntchainUtil.getNonce(),
15402
15627
  access_key: this._accessKeyId,
15403
15628
  base_sdk_version: "TeaSDK-2.0",
15404
- sdk_version: "1.16.36",
15629
+ sdk_version: "1.16.38",
15405
15630
  _prod_code: "RISKPLUS",
15406
15631
  _prod_channel: "undefined",
15407
15632
  };
@@ -18254,6 +18479,25 @@ export default class Client {
18254
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({}));
18255
18480
  }
18256
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
+
18257
18501
  /**
18258
18502
  * Description: 创建HTTP PUT提交的文件上传
18259
18503
  * Summary: 文件上传创建