tencentcloud-sdk-ccc 1.0.247 → 1.0.248

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8c5275083ed59e93f72cbc9c2c8787aceabcc87
4
- data.tar.gz: d0941e0c772ecd71a259ea573a9444e38cc61808
3
+ metadata.gz: 523ec6c0a978d3ce5bee585e897c2f532b8261b6
4
+ data.tar.gz: 0a17051cf50c94fc7e17c6a9e37529aefad9c1d7
5
5
  SHA512:
6
- metadata.gz: a6f429e82cff4596a086daeefd9189f31abb732d660521969450221c35b4054d3f70fa7d1daa62064191b5cb5c6c3d1d07a91effff07df61b9ed943d418cd063
7
- data.tar.gz: 57b4135a05ec3abebe8148c82958b5eb3fa836505f2c94756a0bbc94c3808e5476af84a1bb400125b3f0cdb851b6037991915645502a43d91f6af2dcf9474f71
6
+ metadata.gz: d89473bcff7b4cfe21c1a32c5e7d7c3440da61a6645cbe0fe5b2990316883de2ec0c5d3de7d7babe0352de7d781de83ece50e0470753c259d6f1071bfb1c168b
7
+ data.tar.gz: 6958bcd437528b622cfa1107961043a8f90cba51b1aa78ce32564cbafca1c982dbb4e3d239333cc2f18ddc0692ff5744358ae7216e3abd4895d17a8b90225a58
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.247
1
+ 1.0.248
@@ -53,6 +53,30 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
+ # 创建外呼会话
57
+
58
+ # @param request: Request instance for CreateCallOutSession.
59
+ # @type request: :class:`Tencentcloud::ccc::V20200210::CreateCallOutSessionRequest`
60
+ # @rtype: :class:`Tencentcloud::ccc::V20200210::CreateCallOutSessionResponse`
61
+ def CreateCallOutSession(request)
62
+ body = send_request('CreateCallOutSession', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateCallOutSessionResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
56
80
  # 创建 SDK 登录 Token。
57
81
 
58
82
  # @param request: Request instance for CreateSDKLoginToken.
@@ -149,6 +173,30 @@ module TencentCloud
149
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
174
  end
151
175
 
176
+ # 批量查询自动任务外呼
177
+
178
+ # @param request: Request instance for DescribeAutoCalloutTasks.
179
+ # @type request: :class:`Tencentcloud::ccc::V20200210::DescribeAutoCalloutTasksRequest`
180
+ # @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeAutoCalloutTasksResponse`
181
+ def DescribeAutoCalloutTasks(request)
182
+ body = send_request('DescribeAutoCalloutTasks', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DescribeAutoCalloutTasksResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
152
200
  # 获取用户购买信息列表
153
201
 
154
202
  # @param request: Request instance for DescribeCCCBuyInfoList.
@@ -17,6 +17,47 @@
17
17
  module TencentCloud
18
18
  module Ccc
19
19
  module V20200210
20
+ # 自动外呼任务列表项
21
+ class AutoCalloutTaskInfo < TencentCloud::Common::AbstractModel
22
+ # @param Name: 任务名
23
+ # @type Name: String
24
+ # @param CalleeCount: 被叫数量
25
+ # @type CalleeCount: Integer
26
+ # @param Callers: 主叫号码列表
27
+ # @type Callers: Array
28
+ # @param NotBefore: 起始时间戳
29
+ # @type NotBefore: Integer
30
+ # @param NotAfter: 结束时间戳
31
+ # 注意:此字段可能返回 null,表示取不到有效值。
32
+ # @type NotAfter: Integer
33
+ # @param IvrId: 任务使用的IvrId
34
+ # @type IvrId: Integer
35
+ # @param State: 任务状态0初始 1运行中 2已完成 3结束中 4已结束
36
+ # @type State: Integer
37
+
38
+ attr_accessor :Name, :CalleeCount, :Callers, :NotBefore, :NotAfter, :IvrId, :State
39
+
40
+ def initialize(name=nil, calleecount=nil, callers=nil, notbefore=nil, notafter=nil, ivrid=nil, state=nil)
41
+ @Name = name
42
+ @CalleeCount = calleecount
43
+ @Callers = callers
44
+ @NotBefore = notbefore
45
+ @NotAfter = notafter
46
+ @IvrId = ivrid
47
+ @State = state
48
+ end
49
+
50
+ def deserialize(params)
51
+ @Name = params['Name']
52
+ @CalleeCount = params['CalleeCount']
53
+ @Callers = params['Callers']
54
+ @NotBefore = params['NotBefore']
55
+ @NotAfter = params['NotAfter']
56
+ @IvrId = params['IvrId']
57
+ @State = params['State']
58
+ end
59
+ end
60
+
20
61
  # BindStaffSkillGroupList请求参数结构体
21
62
  class BindStaffSkillGroupListRequest < TencentCloud::Common::AbstractModel
22
63
  # @param SdkAppId: 实例ID
@@ -174,6 +215,62 @@ module TencentCloud
174
215
  end
175
216
  end
176
217
 
218
+ # CreateCallOutSession请求参数结构体
219
+ class CreateCallOutSessionRequest < TencentCloud::Common::AbstractModel
220
+ # @param SdkAppId: 应用 ID
221
+ # @type SdkAppId: Integer
222
+ # @param UserId: 客服用户 ID,一般为客服邮箱
223
+ # @type UserId: String
224
+ # @param Callee: 被叫号码,须带 0086 前缀
225
+ # @type Callee: String
226
+ # @param Caller: 主叫号码,须带 0086 前缀
227
+ # @type Caller: String
228
+ # @param IsForceUseMobile: 是否强制使用手机外呼,当前只支持 true,若为 true 请确保已配置白名单
229
+ # @type IsForceUseMobile: Boolean
230
+ # @param Uui: 自定义数据,长度限制 1024 字节
231
+ # @type Uui: String
232
+
233
+ attr_accessor :SdkAppId, :UserId, :Callee, :Caller, :IsForceUseMobile, :Uui
234
+
235
+ def initialize(sdkappid=nil, userid=nil, callee=nil, caller=nil, isforceusemobile=nil, uui=nil)
236
+ @SdkAppId = sdkappid
237
+ @UserId = userid
238
+ @Callee = callee
239
+ @Caller = caller
240
+ @IsForceUseMobile = isforceusemobile
241
+ @Uui = uui
242
+ end
243
+
244
+ def deserialize(params)
245
+ @SdkAppId = params['SdkAppId']
246
+ @UserId = params['UserId']
247
+ @Callee = params['Callee']
248
+ @Caller = params['Caller']
249
+ @IsForceUseMobile = params['IsForceUseMobile']
250
+ @Uui = params['Uui']
251
+ end
252
+ end
253
+
254
+ # CreateCallOutSession返回参数结构体
255
+ class CreateCallOutSessionResponse < TencentCloud::Common::AbstractModel
256
+ # @param SessionId: 新创建的会话 ID
257
+ # @type SessionId: String
258
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
259
+ # @type RequestId: String
260
+
261
+ attr_accessor :SessionId, :RequestId
262
+
263
+ def initialize(sessionid=nil, requestid=nil)
264
+ @SessionId = sessionid
265
+ @RequestId = requestid
266
+ end
267
+
268
+ def deserialize(params)
269
+ @SessionId = params['SessionId']
270
+ @RequestId = params['RequestId']
271
+ end
272
+ end
273
+
177
274
  # CreateSDKLoginToken请求参数结构体
178
275
  class CreateSDKLoginTokenRequest < TencentCloud::Common::AbstractModel
179
276
  # @param SdkAppId: 应用ID。
@@ -366,6 +463,61 @@ module TencentCloud
366
463
  end
367
464
  end
368
465
 
466
+ # DescribeAutoCalloutTasks请求参数结构体
467
+ class DescribeAutoCalloutTasksRequest < TencentCloud::Common::AbstractModel
468
+ # @param SdkAppId: 呼叫中心实例Id
469
+ # @type SdkAppId: Integer
470
+ # @param PageSize: 分页大小
471
+ # @type PageSize: Integer
472
+ # @param PageNumber: 页数
473
+ # @type PageNumber: Integer
474
+
475
+ attr_accessor :SdkAppId, :PageSize, :PageNumber
476
+
477
+ def initialize(sdkappid=nil, pagesize=nil, pagenumber=nil)
478
+ @SdkAppId = sdkappid
479
+ @PageSize = pagesize
480
+ @PageNumber = pagenumber
481
+ end
482
+
483
+ def deserialize(params)
484
+ @SdkAppId = params['SdkAppId']
485
+ @PageSize = params['PageSize']
486
+ @PageNumber = params['PageNumber']
487
+ end
488
+ end
489
+
490
+ # DescribeAutoCalloutTasks返回参数结构体
491
+ class DescribeAutoCalloutTasksResponse < TencentCloud::Common::AbstractModel
492
+ # @param TotalCount: 总数
493
+ # @type TotalCount: Integer
494
+ # @param Tasks: 任务列表
495
+ # @type Tasks: Array
496
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
497
+ # @type RequestId: String
498
+
499
+ attr_accessor :TotalCount, :Tasks, :RequestId
500
+
501
+ def initialize(totalcount=nil, tasks=nil, requestid=nil)
502
+ @TotalCount = totalcount
503
+ @Tasks = tasks
504
+ @RequestId = requestid
505
+ end
506
+
507
+ def deserialize(params)
508
+ @TotalCount = params['TotalCount']
509
+ unless params['Tasks'].nil?
510
+ @Tasks = []
511
+ params['Tasks'].each do |i|
512
+ autocallouttaskinfo_tmp = AutoCalloutTaskInfo.new
513
+ autocallouttaskinfo_tmp.deserialize(i)
514
+ @Tasks << autocallouttaskinfo_tmp
515
+ end
516
+ end
517
+ @RequestId = params['RequestId']
518
+ end
519
+ end
520
+
369
521
  # DescribeCCCBuyInfoList请求参数结构体
370
522
  class DescribeCCCBuyInfoListRequest < TencentCloud::Common::AbstractModel
371
523
  # @param SdkAppIds: 应用ID列表,不传时查询所有应用
@@ -1126,13 +1278,21 @@ module TencentCloud
1126
1278
  end
1127
1279
  end
1128
1280
 
1129
- # 全媒体服务记录信息
1281
+ # 文本会话服务记录信息
1130
1282
  class IMCdrInfo < TencentCloud::Common::AbstractModel
1131
1283
  # @param Id: 服务记录ID
1132
1284
  # @type Id: String
1133
1285
  # @param Duration: 服务时长秒数
1134
1286
  # @type Duration: Integer
1135
1287
  # @param EndStatus: 结束状态
1288
+ # 0 异常结束
1289
+ # 1 正常结束
1290
+ # 3 无坐席在线
1291
+ # 17 坐席放弃接听
1292
+ # 100 黑名单
1293
+ # 101 坐席手动转接
1294
+ # 102 IVR阶段放弃
1295
+ # 108 用户超时自动结束
1136
1296
  # @type EndStatus: Integer
1137
1297
  # @param Nickname: 用户昵称
1138
1298
  # @type Nickname: String
@@ -1142,10 +1302,19 @@ module TencentCloud
1142
1302
  # @type StaffId: String
1143
1303
  # @param Timestamp: 服务时间戳
1144
1304
  # @type Timestamp: Integer
1305
+ # @param SessionId: 会话ID
1306
+ # 注意:此字段可能返回 null,表示取不到有效值。
1307
+ # @type SessionId: String
1308
+ # @param SkillGroupId: 技能组ID
1309
+ # 注意:此字段可能返回 null,表示取不到有效值。
1310
+ # @type SkillGroupId: String
1311
+ # @param SkillGroupName: 技能组名称
1312
+ # 注意:此字段可能返回 null,表示取不到有效值。
1313
+ # @type SkillGroupName: String
1145
1314
 
1146
- attr_accessor :Id, :Duration, :EndStatus, :Nickname, :Type, :StaffId, :Timestamp
1315
+ attr_accessor :Id, :Duration, :EndStatus, :Nickname, :Type, :StaffId, :Timestamp, :SessionId, :SkillGroupId, :SkillGroupName
1147
1316
 
1148
- def initialize(id=nil, duration=nil, endstatus=nil, nickname=nil, type=nil, staffid=nil, timestamp=nil)
1317
+ def initialize(id=nil, duration=nil, endstatus=nil, nickname=nil, type=nil, staffid=nil, timestamp=nil, sessionid=nil, skillgroupid=nil, skillgroupname=nil)
1149
1318
  @Id = id
1150
1319
  @Duration = duration
1151
1320
  @EndStatus = endstatus
@@ -1153,6 +1322,9 @@ module TencentCloud
1153
1322
  @Type = type
1154
1323
  @StaffId = staffid
1155
1324
  @Timestamp = timestamp
1325
+ @SessionId = sessionid
1326
+ @SkillGroupId = skillgroupid
1327
+ @SkillGroupName = skillgroupname
1156
1328
  end
1157
1329
 
1158
1330
  def deserialize(params)
@@ -1163,6 +1335,9 @@ module TencentCloud
1163
1335
  @Type = params['Type']
1164
1336
  @StaffId = params['StaffId']
1165
1337
  @Timestamp = params['Timestamp']
1338
+ @SessionId = params['SessionId']
1339
+ @SkillGroupId = params['SkillGroupId']
1340
+ @SkillGroupName = params['SkillGroupName']
1166
1341
  end
1167
1342
  end
1168
1343
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ccc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.247
4
+ version: 1.0.248
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-21 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common