tencentcloud-sdk-ccc 3.0.797 → 3.0.798

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: 80329f7b707009528581080acabcd55434b42af2
4
- data.tar.gz: faadaa6249d403402a32abfa03afd8582d188229
3
+ metadata.gz: eee163f5fe114db05f0fdd74d6b39a4b6ac2e1f2
4
+ data.tar.gz: 0ead1698890df404f5eb3c9e14bb935fdb4c2460
5
5
  SHA512:
6
- metadata.gz: 231b1ffc29724cbda7fbab42e0661b01e24a9d093148b215fc22062de98fd05987dfaabafd2d1b61378030e464ec0e2b76e3dfdfd1cc3fe00b1d06ec8b4f968f
7
- data.tar.gz: dd2248790a205972e3918c7df03f32e29788ebcca8f310e3c9a71f6ba9ca5121559d158c70e617ed33c119b34ba289b2d70362561af98594936a2ed1c4eb6a11
6
+ metadata.gz: de46ca05d2f67d80be81f4f5aa8bfd51ff7e4c8a3077b44f1e65f5143a4252dee079e52b99619fdd81f72248669c7409873eb24e4155e552d75b7f79e4978d28
7
+ data.tar.gz: 9e9f0d325dfd377b8b9b27d613477f096a07f98f4625026629227364a619654e97e46e07b1506d46e8c14ef11853e6b08be47751992fb608f69f3e1716773544
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.797
1
+ 3.0.798
@@ -727,6 +727,30 @@ module TencentCloud
727
727
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
728
728
  end
729
729
 
730
+ # 查询IVR音频文件列表信息
731
+
732
+ # @param request: Request instance for DescribeIvrAudioList.
733
+ # @type request: :class:`Tencentcloud::ccc::V20200210::DescribeIvrAudioListRequest`
734
+ # @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeIvrAudioListResponse`
735
+ def DescribeIvrAudioList(request)
736
+ body = send_request('DescribeIvrAudioList', request.serialize)
737
+ response = JSON.parse(body)
738
+ if response['Response'].key?('Error') == false
739
+ model = DescribeIvrAudioListResponse.new
740
+ model.deserialize(response['Response'])
741
+ model
742
+ else
743
+ code = response['Response']['Error']['Code']
744
+ message = response['Response']['Error']['Message']
745
+ reqid = response['Response']['RequestId']
746
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
747
+ end
748
+ rescue TencentCloud::Common::TencentCloudSDKException => e
749
+ raise e
750
+ rescue StandardError => e
751
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
752
+ end
753
+
730
754
  # 查询号码列表
731
755
 
732
756
  # @param request: Request instance for DescribeNumbers.
@@ -1327,6 +1351,30 @@ module TencentCloud
1327
1351
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1328
1352
  end
1329
1353
 
1354
+ # 上传IVR中使用的音频文件,每日上传文件限制50个。(参数中音频文件Url建议使用腾讯云Cos存储的临时链接)
1355
+
1356
+ # @param request: Request instance for UploadIvrAudio.
1357
+ # @type request: :class:`Tencentcloud::ccc::V20200210::UploadIvrAudioRequest`
1358
+ # @rtype: :class:`Tencentcloud::ccc::V20200210::UploadIvrAudioResponse`
1359
+ def UploadIvrAudio(request)
1360
+ body = send_request('UploadIvrAudio', request.serialize)
1361
+ response = JSON.parse(body)
1362
+ if response['Response'].key?('Error') == false
1363
+ model = UploadIvrAudioResponse.new
1364
+ model.deserialize(response['Response'])
1365
+ model
1366
+ else
1367
+ code = response['Response']['Error']['Code']
1368
+ message = response['Response']['Error']['Message']
1369
+ reqid = response['Response']['RequestId']
1370
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1371
+ end
1372
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1373
+ raise e
1374
+ rescue StandardError => e
1375
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1376
+ end
1377
+
1330
1378
 
1331
1379
  end
1332
1380
  end
@@ -81,6 +81,38 @@ module TencentCloud
81
81
  end
82
82
  end
83
83
 
84
+ # 音频文件审核信息
85
+ class AudioFileInfo < TencentCloud::Common::AbstractModel
86
+ # @param FileId: 文件ID
87
+ # 注意:此字段可能返回 null,表示取不到有效值。
88
+ # @type FileId: Integer
89
+ # @param CustomFileName: 文件别名
90
+ # 注意:此字段可能返回 null,表示取不到有效值。
91
+ # @type CustomFileName: String
92
+ # @param AudioFileName: 文件名
93
+ # 注意:此字段可能返回 null,表示取不到有效值。
94
+ # @type AudioFileName: String
95
+ # @param Status: 审核状态,0-未审核,1-审核通过,2-审核拒绝
96
+ # 注意:此字段可能返回 null,表示取不到有效值。
97
+ # @type Status: Integer
98
+
99
+ attr_accessor :FileId, :CustomFileName, :AudioFileName, :Status
100
+
101
+ def initialize(fileid=nil, customfilename=nil, audiofilename=nil, status=nil)
102
+ @FileId = fileid
103
+ @CustomFileName = customfilename
104
+ @AudioFileName = audiofilename
105
+ @Status = status
106
+ end
107
+
108
+ def deserialize(params)
109
+ @FileId = params['FileId']
110
+ @CustomFileName = params['CustomFileName']
111
+ @AudioFileName = params['AudioFileName']
112
+ @Status = params['Status']
113
+ end
114
+ end
115
+
84
116
  # 外呼任务被叫信息
85
117
  class AutoCalloutTaskCalleeInfo < TencentCloud::Common::AbstractModel
86
118
  # @param Callee: 被叫号码
@@ -203,8 +235,8 @@ module TencentCloud
203
235
 
204
236
  attr_accessor :SdkAppId, :StaffEmail, :SkillGroupList, :StaffSkillGroupList
205
237
  extend Gem::Deprecate
206
- deprecate :SkillGroupList, :none, 2024, 3
207
- deprecate :SkillGroupList=, :none, 2024, 3
238
+ deprecate :SkillGroupList, :none, 2024, 4
239
+ deprecate :SkillGroupList=, :none, 2024, 4
208
240
 
209
241
  def initialize(sdkappid=nil, staffemail=nil, skillgrouplist=nil, staffskillgrouplist=nil)
210
242
  @SdkAppId = sdkappid
@@ -779,8 +811,8 @@ module TencentCloud
779
811
 
780
812
  attr_accessor :SdkAppId, :UserId, :Callee, :Caller, :Callers, :IsForceUseMobile, :Uui, :UUI
781
813
  extend Gem::Deprecate
782
- deprecate :Uui, :none, 2024, 3
783
- deprecate :Uui=, :none, 2024, 3
814
+ deprecate :Uui, :none, 2024, 4
815
+ deprecate :Uui=, :none, 2024, 4
784
816
 
785
817
  def initialize(sdkappid=nil, userid=nil, callee=nil, caller=nil, callers=nil, isforceusemobile=nil, uui=nil)
786
818
  @SdkAppId = sdkappid
@@ -1737,8 +1769,8 @@ module TencentCloud
1737
1769
 
1738
1770
  attr_accessor :InstanceId, :SdkAppId, :CdrId, :Limit, :Offset, :Order, :SessionId
1739
1771
  extend Gem::Deprecate
1740
- deprecate :InstanceId, :none, 2024, 3
1741
- deprecate :InstanceId=, :none, 2024, 3
1772
+ deprecate :InstanceId, :none, 2024, 4
1773
+ deprecate :InstanceId=, :none, 2024, 4
1742
1774
 
1743
1775
  def initialize(instanceid=nil, sdkappid=nil, cdrid=nil, limit=nil, offset=nil, order=nil, sessionid=nil)
1744
1776
  @InstanceId = instanceid
@@ -2067,8 +2099,8 @@ module TencentCloud
2067
2099
 
2068
2100
  attr_accessor :StartTimestamp, :EndTimestamp, :InstanceId, :SdkAppId, :Limit, :Offset, :Type
2069
2101
  extend Gem::Deprecate
2070
- deprecate :InstanceId, :none, 2024, 3
2071
- deprecate :InstanceId=, :none, 2024, 3
2102
+ deprecate :InstanceId, :none, 2024, 4
2103
+ deprecate :InstanceId=, :none, 2024, 4
2072
2104
 
2073
2105
  def initialize(starttimestamp=nil, endtimestamp=nil, instanceid=nil, sdkappid=nil, limit=nil, offset=nil, type=nil)
2074
2106
  @StartTimestamp = starttimestamp
@@ -2105,8 +2137,8 @@ module TencentCloud
2105
2137
 
2106
2138
  attr_accessor :TotalCount, :IMCdrs, :IMCdrList, :RequestId
2107
2139
  extend Gem::Deprecate
2108
- deprecate :IMCdrs, :none, 2024, 3
2109
- deprecate :IMCdrs=, :none, 2024, 3
2140
+ deprecate :IMCdrs, :none, 2024, 4
2141
+ deprecate :IMCdrs=, :none, 2024, 4
2110
2142
 
2111
2143
  def initialize(totalcount=nil, imcdrs=nil, imcdrlist=nil, requestid=nil)
2112
2144
  @TotalCount = totalcount
@@ -2137,6 +2169,73 @@ module TencentCloud
2137
2169
  end
2138
2170
  end
2139
2171
 
2172
+ # DescribeIvrAudioList请求参数结构体
2173
+ class DescribeIvrAudioListRequest < TencentCloud::Common::AbstractModel
2174
+ # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
2175
+ # @type SdkAppId: Integer
2176
+ # @param PageSize: 分页尺寸,上限 50
2177
+ # @type PageSize: Integer
2178
+ # @param PageNumber: 分页页码,从 0 开始
2179
+ # @type PageNumber: Integer
2180
+ # @param CustomFileName: 文件别名
2181
+ # @type CustomFileName: Array
2182
+ # @param AudioFileName: 文件名
2183
+ # @type AudioFileName: Array
2184
+ # @param FileId: 文件ID
2185
+ # @type FileId: Array
2186
+
2187
+ attr_accessor :SdkAppId, :PageSize, :PageNumber, :CustomFileName, :AudioFileName, :FileId
2188
+
2189
+ def initialize(sdkappid=nil, pagesize=nil, pagenumber=nil, customfilename=nil, audiofilename=nil, fileid=nil)
2190
+ @SdkAppId = sdkappid
2191
+ @PageSize = pagesize
2192
+ @PageNumber = pagenumber
2193
+ @CustomFileName = customfilename
2194
+ @AudioFileName = audiofilename
2195
+ @FileId = fileid
2196
+ end
2197
+
2198
+ def deserialize(params)
2199
+ @SdkAppId = params['SdkAppId']
2200
+ @PageSize = params['PageSize']
2201
+ @PageNumber = params['PageNumber']
2202
+ @CustomFileName = params['CustomFileName']
2203
+ @AudioFileName = params['AudioFileName']
2204
+ @FileId = params['FileId']
2205
+ end
2206
+ end
2207
+
2208
+ # DescribeIvrAudioList返回参数结构体
2209
+ class DescribeIvrAudioListResponse < TencentCloud::Common::AbstractModel
2210
+ # @param TotalCount: 总数
2211
+ # @type TotalCount: Integer
2212
+ # @param FileInfo: 文件信息
2213
+ # @type FileInfo: Array
2214
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2215
+ # @type RequestId: String
2216
+
2217
+ attr_accessor :TotalCount, :FileInfo, :RequestId
2218
+
2219
+ def initialize(totalcount=nil, fileinfo=nil, requestid=nil)
2220
+ @TotalCount = totalcount
2221
+ @FileInfo = fileinfo
2222
+ @RequestId = requestid
2223
+ end
2224
+
2225
+ def deserialize(params)
2226
+ @TotalCount = params['TotalCount']
2227
+ unless params['FileInfo'].nil?
2228
+ @FileInfo = []
2229
+ params['FileInfo'].each do |i|
2230
+ audiofileinfo_tmp = AudioFileInfo.new
2231
+ audiofileinfo_tmp.deserialize(i)
2232
+ @FileInfo << audiofileinfo_tmp
2233
+ end
2234
+ end
2235
+ @RequestId = params['RequestId']
2236
+ end
2237
+ end
2238
+
2140
2239
  # DescribeNumbers请求参数结构体
2141
2240
  class DescribeNumbersRequest < TencentCloud::Common::AbstractModel
2142
2241
  # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
@@ -2541,8 +2640,8 @@ module TencentCloud
2541
2640
 
2542
2641
  attr_accessor :TotalCount, :TelCdrs, :TelCdrList, :RequestId
2543
2642
  extend Gem::Deprecate
2544
- deprecate :TelCdrs, :none, 2024, 3
2545
- deprecate :TelCdrs=, :none, 2024, 3
2643
+ deprecate :TelCdrs, :none, 2024, 4
2644
+ deprecate :TelCdrs=, :none, 2024, 4
2546
2645
 
2547
2646
  def initialize(totalcount=nil, telcdrs=nil, telcdrlist=nil, requestid=nil)
2548
2647
  @TotalCount = totalcount
@@ -2807,8 +2906,8 @@ module TencentCloud
2807
2906
 
2808
2907
  attr_accessor :TelCallOutCount, :TelCallInCount, :SeatUsedCount, :VoipCallInCount, :VOIPCallInCount, :AsrOfflineCount, :AsrRealtimeCount, :RequestId
2809
2908
  extend Gem::Deprecate
2810
- deprecate :VoipCallInCount, :none, 2024, 3
2811
- deprecate :VoipCallInCount=, :none, 2024, 3
2909
+ deprecate :VoipCallInCount, :none, 2024, 4
2910
+ deprecate :VoipCallInCount=, :none, 2024, 4
2812
2911
 
2813
2912
  def initialize(telcalloutcount=nil, telcallincount=nil, seatusedcount=nil, voipcallincount=nil, asrofflinecount=nil, asrrealtimecount=nil, requestid=nil)
2814
2913
  @TelCallOutCount = telcalloutcount
@@ -2856,8 +2955,8 @@ module TencentCloud
2856
2955
 
2857
2956
  attr_accessor :StartTimeStamp, :EndTimeStamp, :InstanceId, :Limit, :Offset, :SdkAppId, :PageSize, :PageNumber, :Phones, :SessionIds
2858
2957
  extend Gem::Deprecate
2859
- deprecate :InstanceId, :none, 2024, 3
2860
- deprecate :InstanceId=, :none, 2024, 3
2958
+ deprecate :InstanceId, :none, 2024, 4
2959
+ deprecate :InstanceId=, :none, 2024, 4
2861
2960
 
2862
2961
  def initialize(starttimestamp=nil, endtimestamp=nil, instanceid=nil, limit=nil, offset=nil, sdkappid=nil, pagesize=nil, pagenumber=nil, phones=nil, sessionids=nil)
2863
2962
  @StartTimeStamp = starttimestamp
@@ -2899,8 +2998,8 @@ module TencentCloud
2899
2998
 
2900
2999
  attr_accessor :TotalCount, :TelCdrs, :TelCdrList, :RequestId
2901
3000
  extend Gem::Deprecate
2902
- deprecate :TelCdrs, :none, 2024, 3
2903
- deprecate :TelCdrs=, :none, 2024, 3
3001
+ deprecate :TelCdrs, :none, 2024, 4
3002
+ deprecate :TelCdrs=, :none, 2024, 4
2904
3003
 
2905
3004
  def initialize(totalcount=nil, telcdrs=nil, telcdrlist=nil, requestid=nil)
2906
3005
  @TotalCount = totalcount
@@ -4526,8 +4625,8 @@ module TencentCloud
4526
4625
 
4527
4626
  attr_accessor :Caller, :Callee, :Time, :Direction, :Duration, :RecordURL, :RecordId, :SeatUser, :EndStatus, :SkillGroup, :CallerLocation, :IVRDuration, :RingTimestamp, :AcceptTimestamp, :EndedTimestamp, :IVRKeyPressed, :HungUpSide, :ServeParticipants, :SkillGroupId, :EndStatusString, :StartTimestamp, :QueuedTimestamp, :PostIVRKeyPressed, :QueuedSkillGroupId, :SessionId, :ProtectedCaller, :ProtectedCallee, :Uui, :UUI, :IVRKeyPressedEx, :AsrUrl, :CustomRecordURL, :Remark, :QueuedSkillGroupName, :VoicemailRecordURL, :VoicemailAsrURL
4528
4627
  extend Gem::Deprecate
4529
- deprecate :Uui, :none, 2024, 3
4530
- deprecate :Uui=, :none, 2024, 3
4628
+ deprecate :Uui, :none, 2024, 4
4629
+ deprecate :Uui=, :none, 2024, 4
4531
4630
 
4532
4631
  def initialize(caller=nil, callee=nil, time=nil, direction=nil, duration=nil, recordurl=nil, recordid=nil, seatuser=nil, endstatus=nil, skillgroup=nil, callerlocation=nil, ivrduration=nil, ringtimestamp=nil, accepttimestamp=nil, endedtimestamp=nil, ivrkeypressed=nil, hungupside=nil, serveparticipants=nil, skillgroupid=nil, endstatusstring=nil, starttimestamp=nil, queuedtimestamp=nil, postivrkeypressed=nil, queuedskillgroupid=nil, sessionid=nil, protectedcaller=nil, protectedcallee=nil, uui=nil, ivrkeypressedex=nil, asrurl=nil, customrecordurl=nil, remark=nil, queuedskillgroupname=nil, voicemailrecordurl=nil, voicemailasrurl=nil)
4533
4632
  @Caller = caller
@@ -4842,6 +4941,103 @@ module TencentCloud
4842
4941
  end
4843
4942
  end
4844
4943
 
4944
+ # 上传音频文件信息
4945
+ class UploadAudioInfo < TencentCloud::Common::AbstractModel
4946
+ # @param CustomFileName: 文件别名(可重复)
4947
+ # @type CustomFileName: String
4948
+ # @param AudioUrl: 音频文件链接。(支持mp3和wav格式,文件不超过5MB)
4949
+ # @type AudioUrl: String
4950
+
4951
+ attr_accessor :CustomFileName, :AudioUrl
4952
+
4953
+ def initialize(customfilename=nil, audiourl=nil)
4954
+ @CustomFileName = customfilename
4955
+ @AudioUrl = audiourl
4956
+ end
4957
+
4958
+ def deserialize(params)
4959
+ @CustomFileName = params['CustomFileName']
4960
+ @AudioUrl = params['AudioUrl']
4961
+ end
4962
+ end
4963
+
4964
+ # 上传音频文件失败信息
4965
+ class UploadIvrAudioFailedInfo < TencentCloud::Common::AbstractModel
4966
+ # @param FileName: 文件名
4967
+ # 注意:此字段可能返回 null,表示取不到有效值。
4968
+ # @type FileName: String
4969
+ # @param FailedMsg: 失败原因
4970
+ # 注意:此字段可能返回 null,表示取不到有效值。
4971
+ # @type FailedMsg: String
4972
+
4973
+ attr_accessor :FileName, :FailedMsg
4974
+
4975
+ def initialize(filename=nil, failedmsg=nil)
4976
+ @FileName = filename
4977
+ @FailedMsg = failedmsg
4978
+ end
4979
+
4980
+ def deserialize(params)
4981
+ @FileName = params['FileName']
4982
+ @FailedMsg = params['FailedMsg']
4983
+ end
4984
+ end
4985
+
4986
+ # UploadIvrAudio请求参数结构体
4987
+ class UploadIvrAudioRequest < TencentCloud::Common::AbstractModel
4988
+ # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
4989
+ # @type SdkAppId: Integer
4990
+ # @param AudioList: 音频文件列表
4991
+ # @type AudioList: Array
4992
+
4993
+ attr_accessor :SdkAppId, :AudioList
4994
+
4995
+ def initialize(sdkappid=nil, audiolist=nil)
4996
+ @SdkAppId = sdkappid
4997
+ @AudioList = audiolist
4998
+ end
4999
+
5000
+ def deserialize(params)
5001
+ @SdkAppId = params['SdkAppId']
5002
+ unless params['AudioList'].nil?
5003
+ @AudioList = []
5004
+ params['AudioList'].each do |i|
5005
+ uploadaudioinfo_tmp = UploadAudioInfo.new
5006
+ uploadaudioinfo_tmp.deserialize(i)
5007
+ @AudioList << uploadaudioinfo_tmp
5008
+ end
5009
+ end
5010
+ end
5011
+ end
5012
+
5013
+ # UploadIvrAudio返回参数结构体
5014
+ class UploadIvrAudioResponse < TencentCloud::Common::AbstractModel
5015
+ # @param FailedFileList: 上传失败的文件列表
5016
+ # 注意:此字段可能返回 null,表示取不到有效值。
5017
+ # @type FailedFileList: Array
5018
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5019
+ # @type RequestId: String
5020
+
5021
+ attr_accessor :FailedFileList, :RequestId
5022
+
5023
+ def initialize(failedfilelist=nil, requestid=nil)
5024
+ @FailedFileList = failedfilelist
5025
+ @RequestId = requestid
5026
+ end
5027
+
5028
+ def deserialize(params)
5029
+ unless params['FailedFileList'].nil?
5030
+ @FailedFileList = []
5031
+ params['FailedFileList'].each do |i|
5032
+ uploadivraudiofailedinfo_tmp = UploadIvrAudioFailedInfo.new
5033
+ uploadivraudiofailedinfo_tmp.deserialize(i)
5034
+ @FailedFileList << uploadivraudiofailedinfo_tmp
5035
+ end
5036
+ end
5037
+ @RequestId = params['RequestId']
5038
+ end
5039
+ end
5040
+
4845
5041
  # 变量
4846
5042
  class Variable < TencentCloud::Common::AbstractModel
4847
5043
  # @param Key: 变量名
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: 3.0.797
4
+ version: 3.0.798
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-03 00:00:00.000000000 Z
11
+ date: 2024-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common