tccli 3.0.1344.1__py2.py3-none-any.whl → 3.0.1345.1__py2.py3-none-any.whl

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.
Files changed (30) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/aiart_client.py +167 -61
  3. tccli/services/aiart/v20221229/api.json +253 -0
  4. tccli/services/aiart/v20221229/examples.json +16 -0
  5. tccli/services/apm/v20210622/api.json +228 -0
  6. tccli/services/apm/v20210622/examples.json +1 -1
  7. tccli/services/batch/v20170312/api.json +2 -2
  8. tccli/services/ccc/ccc_client.py +61 -8
  9. tccli/services/ccc/v20200210/api.json +121 -0
  10. tccli/services/ccc/v20200210/examples.json +8 -0
  11. tccli/services/cdb/v20170320/api.json +65 -65
  12. tccli/services/cdb/v20170320/examples.json +2 -2
  13. tccli/services/csip/csip_client.py +167 -8
  14. tccli/services/csip/v20221121/api.json +877 -0
  15. tccli/services/csip/v20221121/examples.json +36 -0
  16. tccli/services/emr/v20190103/api.json +22 -1
  17. tccli/services/ess/v20201111/api.json +42 -2
  18. tccli/services/essbasic/v20210526/api.json +21 -1
  19. tccli/services/gs/v20191118/api.json +1 -1
  20. tccli/services/mps/v20190612/api.json +2 -2
  21. tccli/services/oceanus/v20190422/api.json +168 -8
  22. tccli/services/redis/v20180412/api.json +9 -0
  23. tccli/services/trocket/v20230308/api.json +1 -1
  24. tccli/services/trtc/v20190722/api.json +29 -0
  25. tccli/services/waf/v20180125/api.json +52 -2
  26. {tccli-3.0.1344.1.dist-info → tccli-3.0.1345.1.dist-info}/METADATA +2 -2
  27. {tccli-3.0.1344.1.dist-info → tccli-3.0.1345.1.dist-info}/RECORD +30 -30
  28. {tccli-3.0.1344.1.dist-info → tccli-3.0.1345.1.dist-info}/WHEEL +0 -0
  29. {tccli-3.0.1344.1.dist-info → tccli-3.0.1345.1.dist-info}/entry_points.txt +0 -0
  30. {tccli-3.0.1344.1.dist-info → tccli-3.0.1345.1.dist-info}/license_files/LICENSE +0 -0
@@ -1629,7 +1629,7 @@ def doCreateCompanyApply(args, parsed_globals):
1629
1629
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
1630
 
1631
1631
 
1632
- def doResumePredictiveDialingCampaign(args, parsed_globals):
1632
+ def doDescribeTelCdr(args, parsed_globals):
1633
1633
  g_param = parse_global_arg(parsed_globals)
1634
1634
 
1635
1635
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1658,11 +1658,11 @@ def doResumePredictiveDialingCampaign(args, parsed_globals):
1658
1658
  client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
1659
1659
  client._sdkVersion += ("_CLI_" + __version__)
1660
1660
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1661
- model = models.ResumePredictiveDialingCampaignRequest()
1661
+ model = models.DescribeTelCdrRequest()
1662
1662
  model.from_json_string(json.dumps(args))
1663
1663
  start_time = time.time()
1664
1664
  while True:
1665
- rsp = client.ResumePredictiveDialingCampaign(model)
1665
+ rsp = client.DescribeTelCdr(model)
1666
1666
  result = rsp.to_json_string()
1667
1667
  try:
1668
1668
  json_obj = json.loads(result)
@@ -2253,6 +2253,58 @@ def doDescribeCCCBuyInfoList(args, parsed_globals):
2253
2253
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2254
2254
 
2255
2255
 
2256
+ def doResumePredictiveDialingCampaign(args, parsed_globals):
2257
+ g_param = parse_global_arg(parsed_globals)
2258
+
2259
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2260
+ cred = credential.CVMRoleCredential()
2261
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2262
+ cred = credential.STSAssumeRoleCredential(
2263
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2264
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2265
+ )
2266
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2267
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2268
+ else:
2269
+ cred = credential.Credential(
2270
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2271
+ )
2272
+ http_profile = HttpProfile(
2273
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2274
+ reqMethod="POST",
2275
+ endpoint=g_param[OptionsDefine.Endpoint],
2276
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2277
+ )
2278
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2279
+ if g_param[OptionsDefine.Language]:
2280
+ profile.language = g_param[OptionsDefine.Language]
2281
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2282
+ client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
2283
+ client._sdkVersion += ("_CLI_" + __version__)
2284
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2285
+ model = models.ResumePredictiveDialingCampaignRequest()
2286
+ model.from_json_string(json.dumps(args))
2287
+ start_time = time.time()
2288
+ while True:
2289
+ rsp = client.ResumePredictiveDialingCampaign(model)
2290
+ result = rsp.to_json_string()
2291
+ try:
2292
+ json_obj = json.loads(result)
2293
+ except TypeError as e:
2294
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2295
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2296
+ break
2297
+ cur_time = time.time()
2298
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2299
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2300
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2301
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2302
+ else:
2303
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2304
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2305
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2306
+
2307
+
2256
2308
  def doCreateCCCSkillGroup(args, parsed_globals):
2257
2309
  g_param = parse_global_arg(parsed_globals)
2258
2310
 
@@ -3345,7 +3397,7 @@ def doDescribeCallInMetrics(args, parsed_globals):
3345
3397
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
3398
 
3347
3399
 
3348
- def doDescribeTelCdr(args, parsed_globals):
3400
+ def doControlAIConversation(args, parsed_globals):
3349
3401
  g_param = parse_global_arg(parsed_globals)
3350
3402
 
3351
3403
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3374,11 +3426,11 @@ def doDescribeTelCdr(args, parsed_globals):
3374
3426
  client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
3375
3427
  client._sdkVersion += ("_CLI_" + __version__)
3376
3428
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3377
- model = models.DescribeTelCdrRequest()
3429
+ model = models.ControlAIConversationRequest()
3378
3430
  model.from_json_string(json.dumps(args))
3379
3431
  start_time = time.time()
3380
3432
  while True:
3381
- rsp = client.DescribeTelCdr(model)
3433
+ rsp = client.ControlAIConversation(model)
3382
3434
  result = rsp.to_json_string()
3383
3435
  try:
3384
3436
  json_obj = json.loads(result)
@@ -3855,7 +3907,7 @@ ACTION_MAP = {
3855
3907
  "DescribeAutoCalloutTask": doDescribeAutoCalloutTask,
3856
3908
  "DescribePredictiveDialingSessions": doDescribePredictiveDialingSessions,
3857
3909
  "CreateCompanyApply": doCreateCompanyApply,
3858
- "ResumePredictiveDialingCampaign": doResumePredictiveDialingCampaign,
3910
+ "DescribeTelCdr": doDescribeTelCdr,
3859
3911
  "TransferToManual": doTransferToManual,
3860
3912
  "DescribeSkillGroupInfoList": doDescribeSkillGroupInfoList,
3861
3913
  "StopAutoCalloutTask": doStopAutoCalloutTask,
@@ -3867,6 +3919,7 @@ ACTION_MAP = {
3867
3919
  "DescribeActiveCarrierPrivilegeNumber": doDescribeActiveCarrierPrivilegeNumber,
3868
3920
  "CreateOwnNumberApply": doCreateOwnNumberApply,
3869
3921
  "DescribeCCCBuyInfoList": doDescribeCCCBuyInfoList,
3922
+ "ResumePredictiveDialingCampaign": doResumePredictiveDialingCampaign,
3870
3923
  "CreateCCCSkillGroup": doCreateCCCSkillGroup,
3871
3924
  "UnbindStaffSkillGroupList": doUnbindStaffSkillGroupList,
3872
3925
  "ModifyStaffPassword": doModifyStaffPassword,
@@ -3888,7 +3941,7 @@ ACTION_MAP = {
3888
3941
  "DescribeIMCdrList": doDescribeIMCdrList,
3889
3942
  "ForceMemberOffline": doForceMemberOffline,
3890
3943
  "DescribeCallInMetrics": doDescribeCallInMetrics,
3891
- "DescribeTelCdr": doDescribeTelCdr,
3944
+ "ControlAIConversation": doControlAIConversation,
3892
3945
  "CreateSDKLoginToken": doCreateSDKLoginToken,
3893
3946
  "DescribeNumbers": doDescribeNumbers,
3894
3947
  "AbortPredictiveDialingCampaign": doAbortPredictiveDialingCampaign,
@@ -35,6 +35,13 @@
35
35
  "output": "BindStaffSkillGroupListResponse",
36
36
  "status": "online"
37
37
  },
38
+ "ControlAIConversation": {
39
+ "document": "提供服务端控制机器人的功能",
40
+ "input": "ControlAIConversationRequest",
41
+ "name": "控制AI对话",
42
+ "output": "ControlAIConversationResponse",
43
+ "status": "online"
44
+ },
38
45
  "CreateAIAgentCall": {
39
46
  "document": "用于调用AI模型发起外呼通话,仅限自有电话号码使用,目前开通高级版座席**限时**免费体验。\n\n发起通话前,请先确认您的AI模型是否兼容 OpenAI、Azure 或 Minimax 协议,并前往模型服务商网站获取相关鉴权信息。 具体功能说明请参考文档 [腾讯云联络中心AI通话平台](https://cloud.tencent.com/document/product/679/112100)。",
40
47
  "input": "CreateAIAgentCallRequest",
@@ -2026,6 +2033,60 @@
2026
2033
  ],
2027
2034
  "usage": "both"
2028
2035
  },
2036
+ "ControlAIConversationRequest": {
2037
+ "document": "ControlAIConversation请求参数结构体",
2038
+ "members": [
2039
+ {
2040
+ "disabled": false,
2041
+ "document": "会话 ID",
2042
+ "example": "无",
2043
+ "member": "string",
2044
+ "name": "SessionId",
2045
+ "required": true,
2046
+ "type": "string"
2047
+ },
2048
+ {
2049
+ "disabled": false,
2050
+ "document": "应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc",
2051
+ "example": "1400000000",
2052
+ "member": "int64",
2053
+ "name": "SdkAppId",
2054
+ "required": true,
2055
+ "type": "int"
2056
+ },
2057
+ {
2058
+ "disabled": false,
2059
+ "document": "控制命令,目前支持命令如下:\n\n- ServerPushText,服务端发送文本给AI机器人,AI机器人会播报该文本",
2060
+ "example": "无",
2061
+ "member": "string",
2062
+ "name": "Command",
2063
+ "required": false,
2064
+ "type": "string"
2065
+ },
2066
+ {
2067
+ "disabled": false,
2068
+ "document": "服务端发送播报文本命令,当Command为ServerPushText时必填",
2069
+ "example": "无",
2070
+ "member": "ServerPushText",
2071
+ "name": "ServerPushText",
2072
+ "required": false,
2073
+ "type": "object"
2074
+ }
2075
+ ],
2076
+ "type": "object"
2077
+ },
2078
+ "ControlAIConversationResponse": {
2079
+ "document": "ControlAIConversation返回参数结构体",
2080
+ "members": [
2081
+ {
2082
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
2083
+ "member": "string",
2084
+ "name": "RequestId",
2085
+ "type": "string"
2086
+ }
2087
+ ],
2088
+ "type": "object"
2089
+ },
2029
2090
  "CreateAIAgentCallRequest": {
2030
2091
  "document": "CreateAIAgentCall请求参数结构体",
2031
2092
  "members": [
@@ -8380,6 +8441,66 @@
8380
8441
  ],
8381
8442
  "usage": "out"
8382
8443
  },
8444
+ "ServerPushText": {
8445
+ "document": "服务端控制AI对话机器人播报指定文本",
8446
+ "members": [
8447
+ {
8448
+ "disabled": false,
8449
+ "document": "服务端推送播报文本",
8450
+ "example": "无",
8451
+ "member": "string",
8452
+ "name": "Text",
8453
+ "required": false,
8454
+ "type": "string"
8455
+ },
8456
+ {
8457
+ "disabled": false,
8458
+ "document": "是否允许该文本打断机器人说话",
8459
+ "example": "无",
8460
+ "member": "bool",
8461
+ "name": "Interrupt",
8462
+ "required": false,
8463
+ "type": "bool"
8464
+ },
8465
+ {
8466
+ "disabled": false,
8467
+ "document": "播报完文本后,是否自动关闭对话任务",
8468
+ "example": "无",
8469
+ "member": "bool",
8470
+ "name": "StopAfterPlay",
8471
+ "required": false,
8472
+ "type": "bool"
8473
+ },
8474
+ {
8475
+ "disabled": false,
8476
+ "document": "服务端推送播报音频\n 格式说明:音频必须为单声道,采样率必须跟对应TTS的采样率保持一致,编码为Base64字符串。\n 输入规则:当提供Audio字段时,将不接受Text字段的输入。系统将直接播放Audio字段中的音频内容。",
8477
+ "example": "无",
8478
+ "member": "string",
8479
+ "name": "Audio",
8480
+ "required": false,
8481
+ "type": "string"
8482
+ },
8483
+ {
8484
+ "disabled": false,
8485
+ "document": "默认为0,仅在Interrupt为false时有效\n- 0表示当前有交互发生时,会丢弃Interrupt为false的消息\n- 1表示当前有交互发生时,不会丢弃Interrupt为false的消息,而是缓存下来,等待当前交互结束后,再去处理\n\n注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空",
8486
+ "example": "0",
8487
+ "member": "uint64",
8488
+ "name": "DropMode",
8489
+ "required": false,
8490
+ "type": "int"
8491
+ },
8492
+ {
8493
+ "disabled": false,
8494
+ "document": "ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。**目前仅支持传入0,如果需要传入1,请提工单联系我们添加权限。**\n注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。\n例子:\n- Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断\n- Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断\n",
8495
+ "example": "0",
8496
+ "member": "uint64",
8497
+ "name": "Priority",
8498
+ "required": false,
8499
+ "type": "int"
8500
+ }
8501
+ ],
8502
+ "usage": "in"
8503
+ },
8383
8504
  "SkillGroupInfoItem": {
8384
8505
  "document": "技能组信息",
8385
8506
  "members": [
@@ -40,6 +40,14 @@
40
40
  "title": "绑定坐席所属技能组示例"
41
41
  }
42
42
  ],
43
+ "ControlAIConversation": [
44
+ {
45
+ "document": "当您想让机器人主动播报文本的时候,可以使用该接口",
46
+ "input": "POST / HTTP/1.1\nHost: ccc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ControlAIConversation\n<公共请求参数>\n\n{\n \"SdkAppId\": \"1400000000\",\n \"SessionId\": \"6bb56a09-2787-40bc-80c5-dc6dab783eff\",\n \"Command\": \"ServerPushText\",\n \"ServerPushText\": {\n \"Text\": \"你好很高兴为您服务\",\n \"Interrupt\": true\n }\n}",
47
+ "output": "{\n \"Response\": {\n \"RequestId\": \"xxx-xxx\"\n }\n}",
48
+ "title": "发送播报文本"
49
+ }
50
+ ],
43
51
  "CreateAIAgentCall": [
44
52
  {
45
53
  "document": "使用 AI Agent 发起外呼",