tencentcloud-sdk-ccc 3.0.912 → 3.0.913

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: 922a41b8743d5af3063c8fefa615b8ca7ffeb0c6
4
- data.tar.gz: 8facf86b1fd1f7cd11ada9b04f939fc369835d2f
3
+ metadata.gz: 226a4e8ccd67888ae54b4bf2e2a870c9611ab567
4
+ data.tar.gz: b816f55f5b160432d16c1d0696ac1bd42187e7a7
5
5
  SHA512:
6
- metadata.gz: 081b58a88497890ae65c290098fce3e5895b6a409f77e3ad17774bcd353d335593f0424c25c48ae37316b32691a67a4fda98bf56ad3bd10ced9a09d8768e4835
7
- data.tar.gz: ee9107cf9f2ab190feeacc2ef05220c087dc35bda2566e80ca0c51c0043d02f798408b4029999ac0990437ffc7cf10e10d6ea19253b9c03def6376b269a8fe01
6
+ metadata.gz: af348c744865cfaae3542fd9bbbc895d6aa0e6ce62f3d8148184b7a74d0a43a1a6ef3ea1228c3db41201e62dd1718ed038c406ea1db58fbd0518db51d82f586c
7
+ data.tar.gz: 30d53f5509ca581a70c5b89894dc30773683519a97812a83a983f4bbd38b3e06897c1dc625a8831188e3478f1918974896cd899160aea85fb00d1683b12c755e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.912
1
+ 3.0.913
@@ -101,6 +101,30 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
+ # 创建ai外呼会话(仅支持高级版座席)
105
+
106
+ # @param request: Request instance for CreateAICall.
107
+ # @type request: :class:`Tencentcloud::ccc::V20200210::CreateAICallRequest`
108
+ # @rtype: :class:`Tencentcloud::ccc::V20200210::CreateAICallResponse`
109
+ def CreateAICall(request)
110
+ body = send_request('CreateAICall', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CreateAICallResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
104
128
  # 创建管理端访问链接
105
129
 
106
130
  # @param request: Request instance for CreateAdminURL.
@@ -240,8 +240,8 @@ module TencentCloud
240
240
 
241
241
  attr_accessor :SdkAppId, :StaffEmail, :SkillGroupList, :StaffSkillGroupList
242
242
  extend Gem::Deprecate
243
- deprecate :SkillGroupList, :none, 2024, 8
244
- deprecate :SkillGroupList=, :none, 2024, 8
243
+ deprecate :SkillGroupList, :none, 2024, 9
244
+ deprecate :SkillGroupList=, :none, 2024, 9
245
245
 
246
246
  def initialize(sdkappid=nil, staffemail=nil, skillgrouplist=nil, staffskillgrouplist=nil)
247
247
  @SdkAppId = sdkappid
@@ -652,6 +652,162 @@ module TencentCloud
652
652
  end
653
653
  end
654
654
 
655
+ # CreateAICall请求参数结构体
656
+ class CreateAICallRequest < TencentCloud::Common::AbstractModel
657
+ # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
658
+ # @type SdkAppId: Integer
659
+ # @param Callee: 被叫
660
+ # @type Callee: String
661
+ # @param SystemPrompt: 用于设定AI座席人设、说话规则、任务等的全局提示词。
662
+ # @type SystemPrompt: String
663
+ # @param LLMType: LLM类型
664
+ # @type LLMType: String
665
+ # @param Model: 模型(当前仅支持openai协议的模型)
666
+ # @type Model: String
667
+ # @param APIKey: API密钥
668
+ # @type APIKey: String
669
+ # @param APIUrl: API URL,仅支持兼容openai协议的模型,填写url时后缀不要带/chat/completions
670
+ # @type APIUrl: String
671
+ # @param VoiceType: 音色,目前仅支持以下音色:
672
+ # 汉语:
673
+ # ZhiMei:智美,客服女声
674
+ # ZhiXi: 智希 通用女声
675
+ # ZhiQi:智琪 客服女声
676
+ # ZhiTian:智甜 女童声
677
+ # AiXiaoJing:爱小静 对话女声
678
+
679
+ # 英语:
680
+ # WeRose:英文女声
681
+ # Monika:英文女声
682
+
683
+ # 日语:
684
+ # Nanami
685
+
686
+ # 韩语:
687
+ # SunHi
688
+
689
+ # 印度尼西亚语(印度尼西亚):
690
+ # Gadis
691
+
692
+ # 马来语(马来西亚):
693
+ # Yasmin
694
+
695
+ # 泰米尔语(马来西亚):
696
+ # Kani
697
+
698
+ # 泰语(泰国):
699
+ # Achara
700
+
701
+ # 越南语(越南):
702
+ # HoaiMy
703
+
704
+ # @type VoiceType: String
705
+ # @param Callers: 主叫号码列表
706
+ # @type Callers: Array
707
+ # @param WelcomeMessage: 用于设定AI座席欢迎语。
708
+ # @type WelcomeMessage: String
709
+ # @param WelcomeType: 0:使用welcomeMessage(为空时,被叫先说话;不为空时,机器人先说话)
710
+ # 1: 使用ai根据prompt自动生成welcomeMessage并先说话
711
+ # @type WelcomeType: Integer
712
+ # @param MaxDuration: 最大等待时长(毫秒),默认60秒,超过这个时间用户没说话,自动挂断
713
+ # @type MaxDuration: Integer
714
+ # @param Languages: 语音识别支持的语言, 默认是"zh" 中文,
715
+ # 填写数组,最长4个语言,第一个语言为主要识别语言,后面为可选语言,
716
+ # 注意:主要语言为中国方言时,可选语言无效
717
+ # 目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循ISO639:
718
+ # 1. Chinese = "zh" # 中文
719
+ # 2. Chinese_TW = "zh-TW" # 中国台湾
720
+ # 3. Chinese_DIALECT = "zh-dialect" # 中国方言
721
+ # 4. English = "en" # 英语
722
+ # 5. Vietnamese = "vi" # 越南语
723
+ # 6. Japanese = "ja" # 日语
724
+ # 7. Korean = "ko" # 汉语
725
+ # 8. Indonesia = "id" # 印度尼西亚语
726
+ # 9. Thai = "th" # 泰语
727
+ # 10. Portuguese = "pt" # 葡萄牙语
728
+ # 11. Turkish = "tr" # 土耳其语
729
+ # 12. Arabic = "ar" # 阿拉伯语
730
+ # 13. Spanish = "es" # 西班牙语
731
+ # 14. Hindi = "hi" # 印地语
732
+ # 15. French = "fr" # 法语
733
+ # 16. Malay = "ms" # 马来语
734
+ # 17. Filipino = "fil" # 菲律宾语
735
+ # 18. German = "de" # 德语
736
+ # 19. Italian = "it" # 意大利语
737
+ # 20. Russian = "ru" # 俄语
738
+ # @type Languages: Array
739
+ # @param InterruptMode: 打断AI说话模式,默认为0,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断
740
+ # @type InterruptMode: Integer
741
+ # @param InterruptSpeechDuration: InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断。
742
+ # @type InterruptSpeechDuration: Integer
743
+ # @param EndFunctionEnable: 模型是否支持(或者开启)call_end function calling
744
+ # @type EndFunctionEnable: Boolean
745
+ # @param EndFunctionDesc: EndFunctionEnable为true时生效;call_end function calling的desc,默认为 "End the call when user has to leave (like says bye) or you are instructed to do so."
746
+ # @type EndFunctionDesc: String
747
+
748
+ attr_accessor :SdkAppId, :Callee, :SystemPrompt, :LLMType, :Model, :APIKey, :APIUrl, :VoiceType, :Callers, :WelcomeMessage, :WelcomeType, :MaxDuration, :Languages, :InterruptMode, :InterruptSpeechDuration, :EndFunctionEnable, :EndFunctionDesc
749
+
750
+ def initialize(sdkappid=nil, callee=nil, systemprompt=nil, llmtype=nil, model=nil, apikey=nil, apiurl=nil, voicetype=nil, callers=nil, welcomemessage=nil, welcometype=nil, maxduration=nil, languages=nil, interruptmode=nil, interruptspeechduration=nil, endfunctionenable=nil, endfunctiondesc=nil)
751
+ @SdkAppId = sdkappid
752
+ @Callee = callee
753
+ @SystemPrompt = systemprompt
754
+ @LLMType = llmtype
755
+ @Model = model
756
+ @APIKey = apikey
757
+ @APIUrl = apiurl
758
+ @VoiceType = voicetype
759
+ @Callers = callers
760
+ @WelcomeMessage = welcomemessage
761
+ @WelcomeType = welcometype
762
+ @MaxDuration = maxduration
763
+ @Languages = languages
764
+ @InterruptMode = interruptmode
765
+ @InterruptSpeechDuration = interruptspeechduration
766
+ @EndFunctionEnable = endfunctionenable
767
+ @EndFunctionDesc = endfunctiondesc
768
+ end
769
+
770
+ def deserialize(params)
771
+ @SdkAppId = params['SdkAppId']
772
+ @Callee = params['Callee']
773
+ @SystemPrompt = params['SystemPrompt']
774
+ @LLMType = params['LLMType']
775
+ @Model = params['Model']
776
+ @APIKey = params['APIKey']
777
+ @APIUrl = params['APIUrl']
778
+ @VoiceType = params['VoiceType']
779
+ @Callers = params['Callers']
780
+ @WelcomeMessage = params['WelcomeMessage']
781
+ @WelcomeType = params['WelcomeType']
782
+ @MaxDuration = params['MaxDuration']
783
+ @Languages = params['Languages']
784
+ @InterruptMode = params['InterruptMode']
785
+ @InterruptSpeechDuration = params['InterruptSpeechDuration']
786
+ @EndFunctionEnable = params['EndFunctionEnable']
787
+ @EndFunctionDesc = params['EndFunctionDesc']
788
+ end
789
+ end
790
+
791
+ # CreateAICall返回参数结构体
792
+ class CreateAICallResponse < TencentCloud::Common::AbstractModel
793
+ # @param SessionId: 新创建的会话 ID
794
+ # @type SessionId: String
795
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
796
+ # @type RequestId: String
797
+
798
+ attr_accessor :SessionId, :RequestId
799
+
800
+ def initialize(sessionid=nil, requestid=nil)
801
+ @SessionId = sessionid
802
+ @RequestId = requestid
803
+ end
804
+
805
+ def deserialize(params)
806
+ @SessionId = params['SessionId']
807
+ @RequestId = params['RequestId']
808
+ end
809
+ end
810
+
655
811
  # CreateAdminURL请求参数结构体
656
812
  class CreateAdminURLRequest < TencentCloud::Common::AbstractModel
657
813
  # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
@@ -856,8 +1012,8 @@ module TencentCloud
856
1012
 
857
1013
  attr_accessor :SdkAppId, :UserId, :Callee, :Caller, :Callers, :IsForceUseMobile, :Uui, :UUI
858
1014
  extend Gem::Deprecate
859
- deprecate :Uui, :none, 2024, 8
860
- deprecate :Uui=, :none, 2024, 8
1015
+ deprecate :Uui, :none, 2024, 9
1016
+ deprecate :Uui=, :none, 2024, 9
861
1017
 
862
1018
  def initialize(sdkappid=nil, userid=nil, callee=nil, caller=nil, callers=nil, isforceusemobile=nil, uui=nil)
863
1019
  @SdkAppId = sdkappid
@@ -1877,10 +2033,10 @@ module TencentCloud
1877
2033
 
1878
2034
  attr_accessor :SdkAppId, :InstanceId, :CdrId, :Limit, :Offset, :Order, :SessionId
1879
2035
  extend Gem::Deprecate
1880
- deprecate :InstanceId, :none, 2024, 8
1881
- deprecate :InstanceId=, :none, 2024, 8
1882
- deprecate :CdrId, :none, 2024, 8
1883
- deprecate :CdrId=, :none, 2024, 8
2036
+ deprecate :InstanceId, :none, 2024, 9
2037
+ deprecate :InstanceId=, :none, 2024, 9
2038
+ deprecate :CdrId, :none, 2024, 9
2039
+ deprecate :CdrId=, :none, 2024, 9
1884
2040
 
1885
2041
  def initialize(sdkappid=nil, instanceid=nil, cdrid=nil, limit=nil, offset=nil, order=nil, sessionid=nil)
1886
2042
  @SdkAppId = sdkappid
@@ -2209,8 +2365,8 @@ module TencentCloud
2209
2365
 
2210
2366
  attr_accessor :StartTimestamp, :EndTimestamp, :InstanceId, :SdkAppId, :Limit, :Offset, :Type
2211
2367
  extend Gem::Deprecate
2212
- deprecate :InstanceId, :none, 2024, 8
2213
- deprecate :InstanceId=, :none, 2024, 8
2368
+ deprecate :InstanceId, :none, 2024, 9
2369
+ deprecate :InstanceId=, :none, 2024, 9
2214
2370
 
2215
2371
  def initialize(starttimestamp=nil, endtimestamp=nil, instanceid=nil, sdkappid=nil, limit=nil, offset=nil, type=nil)
2216
2372
  @StartTimestamp = starttimestamp
@@ -2247,8 +2403,8 @@ module TencentCloud
2247
2403
 
2248
2404
  attr_accessor :TotalCount, :IMCdrs, :IMCdrList, :RequestId
2249
2405
  extend Gem::Deprecate
2250
- deprecate :IMCdrs, :none, 2024, 8
2251
- deprecate :IMCdrs=, :none, 2024, 8
2406
+ deprecate :IMCdrs, :none, 2024, 9
2407
+ deprecate :IMCdrs=, :none, 2024, 9
2252
2408
 
2253
2409
  def initialize(totalcount=nil, imcdrs=nil, imcdrlist=nil, requestid=nil)
2254
2410
  @TotalCount = totalcount
@@ -2750,8 +2906,8 @@ module TencentCloud
2750
2906
 
2751
2907
  attr_accessor :TotalCount, :TelCdrs, :TelCdrList, :RequestId
2752
2908
  extend Gem::Deprecate
2753
- deprecate :TelCdrs, :none, 2024, 8
2754
- deprecate :TelCdrs=, :none, 2024, 8
2909
+ deprecate :TelCdrs, :none, 2024, 9
2910
+ deprecate :TelCdrs=, :none, 2024, 9
2755
2911
 
2756
2912
  def initialize(totalcount=nil, telcdrs=nil, telcdrlist=nil, requestid=nil)
2757
2913
  @TotalCount = totalcount
@@ -3016,8 +3172,8 @@ module TencentCloud
3016
3172
 
3017
3173
  attr_accessor :TelCallOutCount, :TelCallInCount, :SeatUsedCount, :VoipCallInCount, :VOIPCallInCount, :AsrOfflineCount, :AsrRealtimeCount, :RequestId
3018
3174
  extend Gem::Deprecate
3019
- deprecate :VoipCallInCount, :none, 2024, 8
3020
- deprecate :VoipCallInCount=, :none, 2024, 8
3175
+ deprecate :VoipCallInCount, :none, 2024, 9
3176
+ deprecate :VoipCallInCount=, :none, 2024, 9
3021
3177
 
3022
3178
  def initialize(telcalloutcount=nil, telcallincount=nil, seatusedcount=nil, voipcallincount=nil, asrofflinecount=nil, asrrealtimecount=nil, requestid=nil)
3023
3179
  @TelCallOutCount = telcalloutcount
@@ -3065,8 +3221,8 @@ module TencentCloud
3065
3221
 
3066
3222
  attr_accessor :StartTimeStamp, :EndTimeStamp, :InstanceId, :Limit, :Offset, :SdkAppId, :PageSize, :PageNumber, :Phones, :SessionIds
3067
3223
  extend Gem::Deprecate
3068
- deprecate :InstanceId, :none, 2024, 8
3069
- deprecate :InstanceId=, :none, 2024, 8
3224
+ deprecate :InstanceId, :none, 2024, 9
3225
+ deprecate :InstanceId=, :none, 2024, 9
3070
3226
 
3071
3227
  def initialize(starttimestamp=nil, endtimestamp=nil, instanceid=nil, limit=nil, offset=nil, sdkappid=nil, pagesize=nil, pagenumber=nil, phones=nil, sessionids=nil)
3072
3228
  @StartTimeStamp = starttimestamp
@@ -3108,8 +3264,8 @@ module TencentCloud
3108
3264
 
3109
3265
  attr_accessor :TotalCount, :TelCdrs, :TelCdrList, :RequestId
3110
3266
  extend Gem::Deprecate
3111
- deprecate :TelCdrs, :none, 2024, 8
3112
- deprecate :TelCdrs=, :none, 2024, 8
3267
+ deprecate :TelCdrs, :none, 2024, 9
3268
+ deprecate :TelCdrs=, :none, 2024, 9
3113
3269
 
3114
3270
  def initialize(totalcount=nil, telcdrs=nil, telcdrlist=nil, requestid=nil)
3115
3271
  @TotalCount = totalcount
@@ -4809,8 +4965,8 @@ module TencentCloud
4809
4965
 
4810
4966
  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, :AsrStatus, :CustomRecordURL, :Remark, :QueuedSkillGroupName, :VoicemailRecordURL, :VoicemailAsrURL
4811
4967
  extend Gem::Deprecate
4812
- deprecate :Uui, :none, 2024, 8
4813
- deprecate :Uui=, :none, 2024, 8
4968
+ deprecate :Uui, :none, 2024, 9
4969
+ deprecate :Uui=, :none, 2024, 9
4814
4970
 
4815
4971
  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, asrstatus=nil, customrecordurl=nil, remark=nil, queuedskillgroupname=nil, voicemailrecordurl=nil, voicemailasrurl=nil)
4816
4972
  @Caller = caller
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.912
4
+ version: 3.0.913
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-09-23 00:00:00.000000000 Z
11
+ date: 2024-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common