tencentcloud-sdk-python-ccc 3.1.20__tar.gz → 3.1.22__tar.gz
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.
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/setup.py +1 -1
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/tencentcloud/ccc/v20200210/ccc_client.py +23 -0
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/tencentcloud/ccc/v20200210/ccc_client_async.py +18 -0
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/tencentcloud/ccc/v20200210/errorcodes.py +3 -0
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/tencentcloud/ccc/v20200210/models.py +139 -0
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/tencentcloud_sdk_python_ccc.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_ccc-3.1.22/tencentcloud_sdk_python_ccc.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ccc-3.1.20/tencentcloud_sdk_python_ccc.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/README.rst +0 -0
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/tencentcloud/ccc/__init__.py +0 -0
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/tencentcloud/ccc/v20200210/__init__.py +0 -0
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/tencentcloud_sdk_python_ccc.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/tencentcloud_sdk_python_ccc.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ccc-3.1.20 → tencentcloud_sdk_python_ccc-3.1.22}/tencentcloud_sdk_python_ccc.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ccc
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.22
|
|
4
4
|
Summary: Tencent Cloud Ccc SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.22
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-ccc',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.22,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Ccc SDK for Python',
|
|
@@ -1630,6 +1630,29 @@ class CccClient(AbstractClient):
|
|
|
1630
1630
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1631
1631
|
|
|
1632
1632
|
|
|
1633
|
+
def PlaySoundCall(self, request):
|
|
1634
|
+
r"""对与座席通话中的会话,进行放音
|
|
1635
|
+
|
|
1636
|
+
:param request: Request instance for PlaySoundCall.
|
|
1637
|
+
:type request: :class:`tencentcloud.ccc.v20200210.models.PlaySoundCallRequest`
|
|
1638
|
+
:rtype: :class:`tencentcloud.ccc.v20200210.models.PlaySoundCallResponse`
|
|
1639
|
+
|
|
1640
|
+
"""
|
|
1641
|
+
try:
|
|
1642
|
+
params = request._serialize()
|
|
1643
|
+
headers = request.headers
|
|
1644
|
+
body = self.call("PlaySoundCall", params, headers=headers)
|
|
1645
|
+
response = json.loads(body)
|
|
1646
|
+
model = models.PlaySoundCallResponse()
|
|
1647
|
+
model._deserialize(response["Response"])
|
|
1648
|
+
return model
|
|
1649
|
+
except Exception as e:
|
|
1650
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1651
|
+
raise
|
|
1652
|
+
else:
|
|
1653
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1654
|
+
|
|
1655
|
+
|
|
1633
1656
|
def ResetExtensionPassword(self, request):
|
|
1634
1657
|
r"""重置话机注册密码
|
|
1635
1658
|
|
|
@@ -1284,6 +1284,24 @@ class CccClient(AbstractClient):
|
|
|
1284
1284
|
|
|
1285
1285
|
return await self.call_and_deserialize(**kwargs)
|
|
1286
1286
|
|
|
1287
|
+
async def PlaySoundCall(
|
|
1288
|
+
self,
|
|
1289
|
+
request: models.PlaySoundCallRequest,
|
|
1290
|
+
opts: Dict = None,
|
|
1291
|
+
) -> models.PlaySoundCallResponse:
|
|
1292
|
+
"""
|
|
1293
|
+
对与座席通话中的会话,进行放音
|
|
1294
|
+
"""
|
|
1295
|
+
|
|
1296
|
+
kwargs = {}
|
|
1297
|
+
kwargs["action"] = "PlaySoundCall"
|
|
1298
|
+
kwargs["params"] = request._serialize()
|
|
1299
|
+
kwargs["resp_cls"] = models.PlaySoundCallResponse
|
|
1300
|
+
kwargs["headers"] = request.headers
|
|
1301
|
+
kwargs["opts"] = opts or {}
|
|
1302
|
+
|
|
1303
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1304
|
+
|
|
1287
1305
|
async def ResetExtensionPassword(
|
|
1288
1306
|
self,
|
|
1289
1307
|
request: models.ResetExtensionPasswordRequest,
|
|
@@ -146,6 +146,9 @@ INVALIDPARAMETERVALUE_ERRORAPPLYSTATUS = 'InvalidParameterValue.ErrorApplyStatus
|
|
|
146
146
|
# 使用体验账号的智能体不支持此类操作
|
|
147
147
|
INVALIDPARAMETERVALUE_EXPERIENCEACCOUNT = 'InvalidParameterValue.ExperienceAccount'
|
|
148
148
|
|
|
149
|
+
# 文件不存在
|
|
150
|
+
INVALIDPARAMETERVALUE_FILENOTEXIST = 'InvalidParameterValue.FileNotExist'
|
|
151
|
+
|
|
149
152
|
# 实例不存在。
|
|
150
153
|
INVALIDPARAMETERVALUE_INSTANCENOTEXIST = 'InvalidParameterValue.InstanceNotExist'
|
|
151
154
|
|
|
@@ -15673,6 +15673,115 @@ class PhoneNumBuyInfo(AbstractModel):
|
|
|
15673
15673
|
|
|
15674
15674
|
|
|
15675
15675
|
|
|
15676
|
+
class PlaySoundCallRequest(AbstractModel):
|
|
15677
|
+
r"""PlaySoundCall请求参数结构体
|
|
15678
|
+
|
|
15679
|
+
"""
|
|
15680
|
+
|
|
15681
|
+
def __init__(self):
|
|
15682
|
+
r"""
|
|
15683
|
+
:param _SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
|
15684
|
+
:type SdkAppId: int
|
|
15685
|
+
:param _SessionId: 会话ID
|
|
15686
|
+
:type SessionId: str
|
|
15687
|
+
:param _FileId: 音频文件 ID,参见管理端-电话客服-放音文件管理
|
|
15688
|
+
:type FileId: int
|
|
15689
|
+
:param _PlayTimes: 放音次数,默认 1 次
|
|
15690
|
+
:type PlayTimes: int
|
|
15691
|
+
"""
|
|
15692
|
+
self._SdkAppId = None
|
|
15693
|
+
self._SessionId = None
|
|
15694
|
+
self._FileId = None
|
|
15695
|
+
self._PlayTimes = None
|
|
15696
|
+
|
|
15697
|
+
@property
|
|
15698
|
+
def SdkAppId(self):
|
|
15699
|
+
r"""应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
|
15700
|
+
:rtype: int
|
|
15701
|
+
"""
|
|
15702
|
+
return self._SdkAppId
|
|
15703
|
+
|
|
15704
|
+
@SdkAppId.setter
|
|
15705
|
+
def SdkAppId(self, SdkAppId):
|
|
15706
|
+
self._SdkAppId = SdkAppId
|
|
15707
|
+
|
|
15708
|
+
@property
|
|
15709
|
+
def SessionId(self):
|
|
15710
|
+
r"""会话ID
|
|
15711
|
+
:rtype: str
|
|
15712
|
+
"""
|
|
15713
|
+
return self._SessionId
|
|
15714
|
+
|
|
15715
|
+
@SessionId.setter
|
|
15716
|
+
def SessionId(self, SessionId):
|
|
15717
|
+
self._SessionId = SessionId
|
|
15718
|
+
|
|
15719
|
+
@property
|
|
15720
|
+
def FileId(self):
|
|
15721
|
+
r"""音频文件 ID,参见管理端-电话客服-放音文件管理
|
|
15722
|
+
:rtype: int
|
|
15723
|
+
"""
|
|
15724
|
+
return self._FileId
|
|
15725
|
+
|
|
15726
|
+
@FileId.setter
|
|
15727
|
+
def FileId(self, FileId):
|
|
15728
|
+
self._FileId = FileId
|
|
15729
|
+
|
|
15730
|
+
@property
|
|
15731
|
+
def PlayTimes(self):
|
|
15732
|
+
r"""放音次数,默认 1 次
|
|
15733
|
+
:rtype: int
|
|
15734
|
+
"""
|
|
15735
|
+
return self._PlayTimes
|
|
15736
|
+
|
|
15737
|
+
@PlayTimes.setter
|
|
15738
|
+
def PlayTimes(self, PlayTimes):
|
|
15739
|
+
self._PlayTimes = PlayTimes
|
|
15740
|
+
|
|
15741
|
+
|
|
15742
|
+
def _deserialize(self, params):
|
|
15743
|
+
self._SdkAppId = params.get("SdkAppId")
|
|
15744
|
+
self._SessionId = params.get("SessionId")
|
|
15745
|
+
self._FileId = params.get("FileId")
|
|
15746
|
+
self._PlayTimes = params.get("PlayTimes")
|
|
15747
|
+
memeber_set = set(params.keys())
|
|
15748
|
+
for name, value in vars(self).items():
|
|
15749
|
+
property_name = name[1:]
|
|
15750
|
+
if property_name in memeber_set:
|
|
15751
|
+
memeber_set.remove(property_name)
|
|
15752
|
+
if len(memeber_set) > 0:
|
|
15753
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15754
|
+
|
|
15755
|
+
|
|
15756
|
+
|
|
15757
|
+
class PlaySoundCallResponse(AbstractModel):
|
|
15758
|
+
r"""PlaySoundCall返回参数结构体
|
|
15759
|
+
|
|
15760
|
+
"""
|
|
15761
|
+
|
|
15762
|
+
def __init__(self):
|
|
15763
|
+
r"""
|
|
15764
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15765
|
+
:type RequestId: str
|
|
15766
|
+
"""
|
|
15767
|
+
self._RequestId = None
|
|
15768
|
+
|
|
15769
|
+
@property
|
|
15770
|
+
def RequestId(self):
|
|
15771
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15772
|
+
:rtype: str
|
|
15773
|
+
"""
|
|
15774
|
+
return self._RequestId
|
|
15775
|
+
|
|
15776
|
+
@RequestId.setter
|
|
15777
|
+
def RequestId(self, RequestId):
|
|
15778
|
+
self._RequestId = RequestId
|
|
15779
|
+
|
|
15780
|
+
|
|
15781
|
+
def _deserialize(self, params):
|
|
15782
|
+
self._RequestId = params.get("RequestId")
|
|
15783
|
+
|
|
15784
|
+
|
|
15676
15785
|
class ResetExtensionPasswordRequest(AbstractModel):
|
|
15677
15786
|
r"""ResetExtensionPassword请求参数结构体
|
|
15678
15787
|
|
|
@@ -18398,6 +18507,10 @@ NotExists
|
|
|
18398
18507
|
:type VoicemailRecordURL: list of str
|
|
18399
18508
|
:param _VoicemailAsrURL: 通话中语音留言ASR文本信息地址
|
|
18400
18509
|
:type VoicemailAsrURL: list of str
|
|
18510
|
+
:param _AIAgentId: 如果是智能体相关通话,这里是智能体 ID
|
|
18511
|
+
:type AIAgentId: int
|
|
18512
|
+
:param _AIAgentName: 如果是智能体相关通话,这里是智能体名称
|
|
18513
|
+
:type AIAgentName: str
|
|
18401
18514
|
"""
|
|
18402
18515
|
self._Caller = None
|
|
18403
18516
|
self._Callee = None
|
|
@@ -18437,6 +18550,8 @@ NotExists
|
|
|
18437
18550
|
self._QueuedSkillGroupName = None
|
|
18438
18551
|
self._VoicemailRecordURL = None
|
|
18439
18552
|
self._VoicemailAsrURL = None
|
|
18553
|
+
self._AIAgentId = None
|
|
18554
|
+
self._AIAgentName = None
|
|
18440
18555
|
|
|
18441
18556
|
@property
|
|
18442
18557
|
def Caller(self):
|
|
@@ -18942,6 +19057,28 @@ NotExists
|
|
|
18942
19057
|
def VoicemailAsrURL(self, VoicemailAsrURL):
|
|
18943
19058
|
self._VoicemailAsrURL = VoicemailAsrURL
|
|
18944
19059
|
|
|
19060
|
+
@property
|
|
19061
|
+
def AIAgentId(self):
|
|
19062
|
+
r"""如果是智能体相关通话,这里是智能体 ID
|
|
19063
|
+
:rtype: int
|
|
19064
|
+
"""
|
|
19065
|
+
return self._AIAgentId
|
|
19066
|
+
|
|
19067
|
+
@AIAgentId.setter
|
|
19068
|
+
def AIAgentId(self, AIAgentId):
|
|
19069
|
+
self._AIAgentId = AIAgentId
|
|
19070
|
+
|
|
19071
|
+
@property
|
|
19072
|
+
def AIAgentName(self):
|
|
19073
|
+
r"""如果是智能体相关通话,这里是智能体名称
|
|
19074
|
+
:rtype: str
|
|
19075
|
+
"""
|
|
19076
|
+
return self._AIAgentName
|
|
19077
|
+
|
|
19078
|
+
@AIAgentName.setter
|
|
19079
|
+
def AIAgentName(self, AIAgentName):
|
|
19080
|
+
self._AIAgentName = AIAgentName
|
|
19081
|
+
|
|
18945
19082
|
|
|
18946
19083
|
def _deserialize(self, params):
|
|
18947
19084
|
self._Caller = params.get("Caller")
|
|
@@ -18999,6 +19136,8 @@ NotExists
|
|
|
18999
19136
|
self._QueuedSkillGroupName = params.get("QueuedSkillGroupName")
|
|
19000
19137
|
self._VoicemailRecordURL = params.get("VoicemailRecordURL")
|
|
19001
19138
|
self._VoicemailAsrURL = params.get("VoicemailAsrURL")
|
|
19139
|
+
self._AIAgentId = params.get("AIAgentId")
|
|
19140
|
+
self._AIAgentName = params.get("AIAgentName")
|
|
19002
19141
|
memeber_set = set(params.keys())
|
|
19003
19142
|
for name, value in vars(self).items():
|
|
19004
19143
|
property_name = name[1:]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ccc
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.22
|
|
4
4
|
Summary: Tencent Cloud Ccc SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.22
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.22
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.20
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|