tccli 3.0.1197.1__py2.py3-none-any.whl → 3.0.1199.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apigateway/apigateway_client.py +57 -4
  3. tccli/services/apigateway/v20180808/api.json +24 -0
  4. tccli/services/apigateway/v20180808/examples.json +8 -0
  5. tccli/services/ccc/ccc_client.py +57 -4
  6. tccli/services/ccc/v20200210/api.json +188 -0
  7. tccli/services/ccc/v20200210/examples.json +8 -0
  8. tccli/services/clb/v20180317/api.json +19 -1
  9. tccli/services/cme/v20191029/api.json +18 -8
  10. tccli/services/cvm/v20170312/api.json +24 -24
  11. tccli/services/cynosdb/cynosdb_client.py +0 -53
  12. tccli/services/cynosdb/v20190107/api.json +0 -92
  13. tccli/services/cynosdb/v20190107/examples.json +0 -8
  14. tccli/services/emr/emr_client.py +114 -8
  15. tccli/services/emr/v20190103/api.json +300 -7
  16. tccli/services/emr/v20190103/examples.json +16 -0
  17. tccli/services/ess/v20201111/api.json +19 -1
  18. tccli/services/ess/v20201111/examples.json +1 -1
  19. tccli/services/essbasic/v20210526/api.json +18 -0
  20. tccli/services/essbasic/v20210526/examples.json +1 -1
  21. tccli/services/faceid/v20180301/api.json +18 -0
  22. tccli/services/iecp/iecp_client.py +298 -1358
  23. tccli/services/iecp/v20210914/api.json +216 -2256
  24. tccli/services/iecp/v20210914/examples.json +0 -166
  25. tccli/services/ims/v20201229/api.json +9 -9
  26. tccli/services/ims/v20201229/examples.json +2 -2
  27. tccli/services/monitor/monitor_client.py +8 -114
  28. tccli/services/monitor/v20180724/api.json +0 -85
  29. tccli/services/monitor/v20180724/examples.json +0 -16
  30. tccli/services/ocr/v20181119/api.json +3 -3
  31. tccli/services/postgres/postgres_client.py +159 -0
  32. tccli/services/postgres/v20170312/api.json +427 -9
  33. tccli/services/postgres/v20170312/examples.json +40 -4
  34. tccli/services/rce/v20201103/api.json +17 -8
  35. tccli/services/sms/v20190711/api.json +8 -8
  36. tccli/services/sms/v20210111/api.json +13 -13
  37. tccli/services/tcss/v20201101/api.json +199 -3
  38. tccli/services/tcss/v20201101/examples.json +5 -5
  39. tccli/services/teo/v20220901/api.json +56 -6
  40. tccli/services/tke/v20180525/api.json +9 -9
  41. tccli/services/tke/v20220501/api.json +5 -5
  42. tccli/services/tse/v20201207/api.json +22 -0
  43. tccli/services/tsf/tsf_client.py +4 -57
  44. tccli/services/tsf/v20180326/api.json +0 -34
  45. tccli/services/tsf/v20180326/examples.json +0 -8
  46. tccli/services/vod/v20180717/api.json +3 -3
  47. tccli/services/vpc/v20170312/examples.json +6 -0
  48. tccli/services/wedata/v20210820/api.json +11 -0
  49. {tccli-3.0.1197.1.dist-info → tccli-3.0.1199.1.dist-info}/METADATA +2 -2
  50. {tccli-3.0.1197.1.dist-info → tccli-3.0.1199.1.dist-info}/RECORD +53 -53
  51. {tccli-3.0.1197.1.dist-info → tccli-3.0.1199.1.dist-info}/WHEEL +0 -0
  52. {tccli-3.0.1197.1.dist-info → tccli-3.0.1199.1.dist-info}/entry_points.txt +0 -0
  53. {tccli-3.0.1197.1.dist-info → tccli-3.0.1199.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1197.1'
1
+ __version__ = '3.0.1199.1'
@@ -2721,6 +2721,58 @@ def doCreateApi(args, parsed_globals):
2721
2721
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2722
2722
 
2723
2723
 
2724
+ def doDescribeServiceSubDomainMappings(args, parsed_globals):
2725
+ g_param = parse_global_arg(parsed_globals)
2726
+
2727
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2728
+ cred = credential.CVMRoleCredential()
2729
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2730
+ cred = credential.STSAssumeRoleCredential(
2731
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2732
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2733
+ )
2734
+ 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):
2735
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2736
+ else:
2737
+ cred = credential.Credential(
2738
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2739
+ )
2740
+ http_profile = HttpProfile(
2741
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2742
+ reqMethod="POST",
2743
+ endpoint=g_param[OptionsDefine.Endpoint],
2744
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2745
+ )
2746
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2747
+ if g_param[OptionsDefine.Language]:
2748
+ profile.language = g_param[OptionsDefine.Language]
2749
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2750
+ client = mod.ApigatewayClient(cred, g_param[OptionsDefine.Region], profile)
2751
+ client._sdkVersion += ("_CLI_" + __version__)
2752
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2753
+ model = models.DescribeServiceSubDomainMappingsRequest()
2754
+ model.from_json_string(json.dumps(args))
2755
+ start_time = time.time()
2756
+ while True:
2757
+ rsp = client.DescribeServiceSubDomainMappings(model)
2758
+ result = rsp.to_json_string()
2759
+ try:
2760
+ json_obj = json.loads(result)
2761
+ except TypeError as e:
2762
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2763
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2764
+ break
2765
+ cur_time = time.time()
2766
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2767
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2768
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2769
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2770
+ else:
2771
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2772
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2773
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2774
+
2775
+
2724
2776
  def doDescribeExclusiveInstanceDetail(args, parsed_globals):
2725
2777
  g_param = parse_global_arg(parsed_globals)
2726
2778
 
@@ -4385,7 +4437,7 @@ def doDescribeServiceUsagePlan(args, parsed_globals):
4385
4437
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4386
4438
 
4387
4439
 
4388
- def doDescribeServiceSubDomainMappings(args, parsed_globals):
4440
+ def doDescribeExclusiveInstanceRegions(args, parsed_globals):
4389
4441
  g_param = parse_global_arg(parsed_globals)
4390
4442
 
4391
4443
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4414,11 +4466,11 @@ def doDescribeServiceSubDomainMappings(args, parsed_globals):
4414
4466
  client = mod.ApigatewayClient(cred, g_param[OptionsDefine.Region], profile)
4415
4467
  client._sdkVersion += ("_CLI_" + __version__)
4416
4468
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4417
- model = models.DescribeServiceSubDomainMappingsRequest()
4469
+ model = models.DescribeExclusiveInstanceRegionsRequest()
4418
4470
  model.from_json_string(json.dumps(args))
4419
4471
  start_time = time.time()
4420
4472
  while True:
4421
- rsp = client.DescribeServiceSubDomainMappings(model)
4473
+ rsp = client.DescribeExclusiveInstanceRegions(model)
4422
4474
  result = rsp.to_json_string()
4423
4475
  try:
4424
4476
  json_obj = json.loads(result)
@@ -5072,6 +5124,7 @@ ACTION_MAP = {
5072
5124
  "DescribePlugins": doDescribePlugins,
5073
5125
  "DeleteApiKey": doDeleteApiKey,
5074
5126
  "CreateApi": doCreateApi,
5127
+ "DescribeServiceSubDomainMappings": doDescribeServiceSubDomainMappings,
5075
5128
  "DescribeExclusiveInstanceDetail": doDescribeExclusiveInstanceDetail,
5076
5129
  "AttachPlugin": doAttachPlugin,
5077
5130
  "DescribePluginsByApi": doDescribePluginsByApi,
@@ -5104,7 +5157,7 @@ ACTION_MAP = {
5104
5157
  "DemoteServiceUsagePlan": doDemoteServiceUsagePlan,
5105
5158
  "DescribeServiceSubDomains": doDescribeServiceSubDomains,
5106
5159
  "DescribeServiceUsagePlan": doDescribeServiceUsagePlan,
5107
- "DescribeServiceSubDomainMappings": doDescribeServiceSubDomainMappings,
5160
+ "DescribeExclusiveInstanceRegions": doDescribeExclusiveInstanceRegions,
5108
5161
  "UpdateApiKey": doUpdateApiKey,
5109
5162
  "DeletePlugin": doDeletePlugin,
5110
5163
  "BindIPStrategy": doBindIPStrategy,
@@ -294,6 +294,13 @@
294
294
  "output": "DescribeExclusiveInstanceDetailResponse",
295
295
  "status": "online"
296
296
  },
297
+ "DescribeExclusiveInstanceRegions": {
298
+ "document": "Get the list of supported regions for dedicated instances",
299
+ "input": "DescribeExclusiveInstanceRegionsRequest",
300
+ "name": "获取专享实例支持地域列表",
301
+ "output": "DescribeExclusiveInstanceRegionsResponse",
302
+ "status": "online"
303
+ },
297
304
  "DescribeExclusiveInstances": {
298
305
  "document": "本接口(DescribeExclusiveInstances)用于查询独享实例列表信息。",
299
306
  "input": "DescribeExclusiveInstancesRequest",
@@ -6336,6 +6343,23 @@
6336
6343
  ],
6337
6344
  "type": "object"
6338
6345
  },
6346
+ "DescribeExclusiveInstanceRegionsRequest": {
6347
+ "document": "DescribeExclusiveInstanceRegions请求参数结构体",
6348
+ "members": [],
6349
+ "type": "object"
6350
+ },
6351
+ "DescribeExclusiveInstanceRegionsResponse": {
6352
+ "document": "DescribeExclusiveInstanceRegions返回参数结构体",
6353
+ "members": [
6354
+ {
6355
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
6356
+ "member": "string",
6357
+ "name": "RequestId",
6358
+ "type": "string"
6359
+ }
6360
+ ],
6361
+ "type": "object"
6362
+ },
6339
6363
  "DescribeExclusiveInstancesRequest": {
6340
6364
  "document": "DescribeExclusiveInstances请求参数结构体",
6341
6365
  "members": [
@@ -342,6 +342,14 @@
342
342
  "title": "DescribeExclusiveInstanceDetail"
343
343
  }
344
344
  ],
345
+ "DescribeExclusiveInstanceRegions": [
346
+ {
347
+ "document": "",
348
+ "input": "POST / HTTP/1.1\nHost: apigateway.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExclusiveInstanceRegions\n<公共请求参数>\n\n{}",
349
+ "output": "{\n \"Response\": {\n \"RequestId\": \"8e6e4a58-8059-4734-a2bf-c8fb3dfe0b19\"\n }\n}",
350
+ "title": "获取地域列表"
351
+ }
352
+ ],
345
353
  "DescribeExclusiveInstances": [
346
354
  {
347
355
  "document": "查询独享实例列表",
@@ -225,7 +225,7 @@ def doDescribeAutoCalloutTasks(args, parsed_globals):
225
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
226
 
227
227
 
228
- def doDescribeStaffInfoList(args, parsed_globals):
228
+ def doCreateAICall(args, parsed_globals):
229
229
  g_param = parse_global_arg(parsed_globals)
230
230
 
231
231
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -254,11 +254,11 @@ def doDescribeStaffInfoList(args, parsed_globals):
254
254
  client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
255
255
  client._sdkVersion += ("_CLI_" + __version__)
256
256
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
- model = models.DescribeStaffInfoListRequest()
257
+ model = models.CreateAICallRequest()
258
258
  model.from_json_string(json.dumps(args))
259
259
  start_time = time.time()
260
260
  while True:
261
- rsp = client.DescribeStaffInfoList(model)
261
+ rsp = client.CreateAICall(model)
262
262
  result = rsp.to_json_string()
263
263
  try:
264
264
  json_obj = json.loads(result)
@@ -1941,6 +1941,58 @@ def doModifyStaffPassword(args, parsed_globals):
1941
1941
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1942
1942
 
1943
1943
 
1944
+ def doDescribeStaffInfoList(args, parsed_globals):
1945
+ g_param = parse_global_arg(parsed_globals)
1946
+
1947
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1948
+ cred = credential.CVMRoleCredential()
1949
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1950
+ cred = credential.STSAssumeRoleCredential(
1951
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1952
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1953
+ )
1954
+ 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):
1955
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1956
+ else:
1957
+ cred = credential.Credential(
1958
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1959
+ )
1960
+ http_profile = HttpProfile(
1961
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1962
+ reqMethod="POST",
1963
+ endpoint=g_param[OptionsDefine.Endpoint],
1964
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1965
+ )
1966
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1967
+ if g_param[OptionsDefine.Language]:
1968
+ profile.language = g_param[OptionsDefine.Language]
1969
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1970
+ client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
1971
+ client._sdkVersion += ("_CLI_" + __version__)
1972
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1973
+ model = models.DescribeStaffInfoListRequest()
1974
+ model.from_json_string(json.dumps(args))
1975
+ start_time = time.time()
1976
+ while True:
1977
+ rsp = client.DescribeStaffInfoList(model)
1978
+ result = rsp.to_json_string()
1979
+ try:
1980
+ json_obj = json.loads(result)
1981
+ except TypeError as e:
1982
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1983
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1984
+ break
1985
+ cur_time = time.time()
1986
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1987
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1988
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1989
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1990
+ else:
1991
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1992
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1993
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1994
+
1995
+
1944
1996
  def doDisableCCCPhoneNumber(args, parsed_globals):
1945
1997
  g_param = parse_global_arg(parsed_globals)
1946
1998
 
@@ -3048,7 +3100,7 @@ ACTION_MAP = {
3048
3100
  "UnbindNumberCallOutSkillGroup": doUnbindNumberCallOutSkillGroup,
3049
3101
  "DescribeExtensions": doDescribeExtensions,
3050
3102
  "DescribeAutoCalloutTasks": doDescribeAutoCalloutTasks,
3051
- "DescribeStaffInfoList": doDescribeStaffInfoList,
3103
+ "CreateAICall": doCreateAICall,
3052
3104
  "DescribePredictiveDialingCampaign": doDescribePredictiveDialingCampaign,
3053
3105
  "DescribePSTNActiveSessionList": doDescribePSTNActiveSessionList,
3054
3106
  "DeleteExtension": doDeleteExtension,
@@ -3081,6 +3133,7 @@ ACTION_MAP = {
3081
3133
  "CreateCCCSkillGroup": doCreateCCCSkillGroup,
3082
3134
  "UnbindStaffSkillGroupList": doUnbindStaffSkillGroupList,
3083
3135
  "ModifyStaffPassword": doModifyStaffPassword,
3136
+ "DescribeStaffInfoList": doDescribeStaffInfoList,
3084
3137
  "DisableCCCPhoneNumber": doDisableCCCPhoneNumber,
3085
3138
  "DescribeStaffStatusMetrics": doDescribeStaffStatusMetrics,
3086
3139
  "DescribeTelCallInfo": doDescribeTelCallInfo,
@@ -21,6 +21,13 @@
21
21
  "output": "BindStaffSkillGroupListResponse",
22
22
  "status": "online"
23
23
  },
24
+ "CreateAICall": {
25
+ "document": "创建ai外呼会话(仅支持高级版座席)",
26
+ "input": "CreateAICallRequest",
27
+ "name": "创建ai会话",
28
+ "output": "CreateAICallResponse",
29
+ "status": "online"
30
+ },
24
31
  "CreateAdminURL": {
25
32
  "document": "创建管理端访问链接",
26
33
  "input": "CreateAdminURLRequest",
@@ -1423,6 +1430,187 @@
1423
1430
  ],
1424
1431
  "usage": "both"
1425
1432
  },
1433
+ "CreateAICallRequest": {
1434
+ "document": "CreateAICall请求参数结构体",
1435
+ "members": [
1436
+ {
1437
+ "disabled": false,
1438
+ "document": "应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc",
1439
+ "example": "1400000000",
1440
+ "member": "int64",
1441
+ "name": "SdkAppId",
1442
+ "required": true,
1443
+ "type": "int"
1444
+ },
1445
+ {
1446
+ "disabled": false,
1447
+ "document": "被叫",
1448
+ "example": "+8613012345678",
1449
+ "member": "string",
1450
+ "name": "Callee",
1451
+ "required": true,
1452
+ "type": "string"
1453
+ },
1454
+ {
1455
+ "disabled": false,
1456
+ "document": "用于设定AI座席人设、说话规则、任务等的全局提示词。",
1457
+ "example": "你是一只ai问答机器人",
1458
+ "member": "string",
1459
+ "name": "SystemPrompt",
1460
+ "required": true,
1461
+ "type": "string"
1462
+ },
1463
+ {
1464
+ "disabled": false,
1465
+ "document": "LLM类型",
1466
+ "example": "openai",
1467
+ "member": "string",
1468
+ "name": "LLMType",
1469
+ "required": true,
1470
+ "type": "string"
1471
+ },
1472
+ {
1473
+ "disabled": false,
1474
+ "document": "模型(当前仅支持openai协议的模型)",
1475
+ "example": "gpt3",
1476
+ "member": "string",
1477
+ "name": "Model",
1478
+ "required": true,
1479
+ "type": "string"
1480
+ },
1481
+ {
1482
+ "disabled": false,
1483
+ "document": "API密钥",
1484
+ "example": "114514",
1485
+ "member": "string",
1486
+ "name": "APIKey",
1487
+ "required": true,
1488
+ "type": "string"
1489
+ },
1490
+ {
1491
+ "disabled": false,
1492
+ "document": "API URL,仅支持兼容openai协议的模型,填写url时后缀不要带/chat/completions",
1493
+ "example": "http://xxx.com/openapi/v1",
1494
+ "member": "string",
1495
+ "name": "APIUrl",
1496
+ "required": true,
1497
+ "type": "string"
1498
+ },
1499
+ {
1500
+ "disabled": false,
1501
+ "document": "音色,目前仅支持以下音色:\n汉语:\nZhiMei:智美,客服女声\nZhiXi: 智希 通用女声\nZhiQi:智琪 客服女声\nZhiTian:智甜 女童声\nAiXiaoJing:爱小静 对话女声\n\n英语:\nWeRose:英文女声\nMonika:英文女声\n\n日语:\nNanami\n\n韩语:\nSunHi\n\n印度尼西亚语(印度尼西亚):\nGadis\n\n马来语(马来西亚):\nYasmin\n\n 泰米尔语(马来西亚):\nKani\n\n泰语(泰国):\nAchara\n\n越南语(越南):\nHoaiMy\n\n",
1502
+ "example": "ZhiMei",
1503
+ "member": "string",
1504
+ "name": "VoiceType",
1505
+ "required": true,
1506
+ "type": "string"
1507
+ },
1508
+ {
1509
+ "disabled": false,
1510
+ "document": "主叫号码列表",
1511
+ "example": "无",
1512
+ "member": "string",
1513
+ "name": "Callers",
1514
+ "required": false,
1515
+ "type": "list"
1516
+ },
1517
+ {
1518
+ "disabled": false,
1519
+ "document": "用于设定AI座席欢迎语。",
1520
+ "example": "你好",
1521
+ "member": "string",
1522
+ "name": "WelcomeMessage",
1523
+ "required": false,
1524
+ "type": "string"
1525
+ },
1526
+ {
1527
+ "disabled": false,
1528
+ "document": "0:使用welcomeMessage(为空时,被叫先说话;不为空时,机器人先说话)\n1: 使用ai根据prompt自动生成welcomeMessage并先说话",
1529
+ "example": "0,1",
1530
+ "member": "int64",
1531
+ "name": "WelcomeType",
1532
+ "required": false,
1533
+ "type": "int"
1534
+ },
1535
+ {
1536
+ "disabled": false,
1537
+ "document": "最大等待时长(毫秒),默认60秒,超过这个时间用户没说话,自动挂断",
1538
+ "example": "60000",
1539
+ "member": "int64",
1540
+ "name": "MaxDuration",
1541
+ "required": false,
1542
+ "type": "int"
1543
+ },
1544
+ {
1545
+ "disabled": false,
1546
+ "document": "语音识别支持的语言, 默认是\"zh\" 中文,\n填写数组,最长4个语言,第一个语言为主要识别语言,后面为可选语言,\n注意:主要语言为中国方言时,可选语言无效\n目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循ISO639:\n1. Chinese = \"zh\" # 中文\n2. Chinese_TW = \"zh-TW\" # 中国台湾\n3. Chinese_DIALECT = \"zh-dialect\" # 中国方言\n4. English = \"en\" # 英语\n5. Vietnamese = \"vi\" # 越南语\n6. Japanese = \"ja\" # 日语\n7. Korean = \"ko\" # 汉语\n8. Indonesia = \"id\" # 印度尼西亚语\n9. Thai = \"th\" # 泰语\n10. Portuguese = \"pt\" # 葡萄牙语\n11. Turkish = \"tr\" # 土耳其语\n12. Arabic = \"ar\" # 阿拉伯语\n13. Spanish = \"es\" # 西班牙语\n14. Hindi = \"hi\" # 印地语\n15. French = \"fr\" # 法语\n16. Malay = \"ms\" # 马来语\n17. Filipino = \"fil\" # 菲律宾语\n18. German = \"de\" # 德语\n19. Italian = \"it\" # 意大利语\n20. Russian = \"ru\" # 俄语",
1547
+ "example": "[\"zh\",\"en\"]",
1548
+ "member": "string",
1549
+ "name": "Languages",
1550
+ "required": false,
1551
+ "type": "list"
1552
+ },
1553
+ {
1554
+ "disabled": false,
1555
+ "document": "打断AI说话模式,默认为0,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断",
1556
+ "example": "1",
1557
+ "member": "int64",
1558
+ "name": "InterruptMode",
1559
+ "required": false,
1560
+ "type": "int"
1561
+ },
1562
+ {
1563
+ "disabled": false,
1564
+ "document": "InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断。",
1565
+ "example": "500",
1566
+ "member": "int64",
1567
+ "name": "InterruptSpeechDuration",
1568
+ "required": false,
1569
+ "type": "int"
1570
+ },
1571
+ {
1572
+ "disabled": false,
1573
+ "document": "模型是否支持(或者开启)call_end function calling",
1574
+ "example": "true",
1575
+ "member": "bool",
1576
+ "name": "EndFunctionEnable",
1577
+ "required": false,
1578
+ "type": "bool"
1579
+ },
1580
+ {
1581
+ "disabled": false,
1582
+ "document": "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.\"",
1583
+ "example": "无",
1584
+ "member": "string",
1585
+ "name": "EndFunctionDesc",
1586
+ "required": false,
1587
+ "type": "string"
1588
+ }
1589
+ ],
1590
+ "type": "object"
1591
+ },
1592
+ "CreateAICallResponse": {
1593
+ "document": "CreateAICall返回参数结构体",
1594
+ "members": [
1595
+ {
1596
+ "disabled": false,
1597
+ "document": "新创建的会话 ID",
1598
+ "example": "adcf61b8-dbb9-4c20-87bf-c0744c04bade",
1599
+ "member": "string",
1600
+ "name": "SessionId",
1601
+ "output_required": false,
1602
+ "type": "string",
1603
+ "value_allowed_null": false
1604
+ },
1605
+ {
1606
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1607
+ "member": "string",
1608
+ "name": "RequestId",
1609
+ "type": "string"
1610
+ }
1611
+ ],
1612
+ "type": "object"
1613
+ },
1426
1614
  "CreateAdminURLRequest": {
1427
1615
  "document": "CreateAdminURL请求参数结构体",
1428
1616
  "members": [
@@ -24,6 +24,14 @@
24
24
  "title": "绑定坐席所属技能组示例"
25
25
  }
26
26
  ],
27
+ "CreateAICall": [
28
+ {
29
+ "document": "",
30
+ "input": "POST / HTTP/1.1\nHost: ccc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAICall\n<公共请求参数>\n\n{\n \"Callee\": \"008612300000000\",\n \"SdkAppId\": 1400000000,\n \"SystemPrompt\": \"你是一只机器人\",\n \"LLMType\": \"openai\",\n \"Model\": \"gpt3\",\n \"APIKey\": \"114514\",\n \"APIUrl\": \"https://xxx/v1/chat/completions\",\n \"VoiceType\": \"ZhiMei\"\n}",
31
+ "output": "{\n \"Response\": {\n \"RequestId\": \"6bb56a09-2787-40bc-80c5-dc6dab783eff\",\n \"SessionId\": \"6bb56a09278740bc80c5dc6dab783eff\"\n }\n}",
32
+ "title": "创建ai 会话示例"
33
+ }
34
+ ],
27
35
  "CreateAdminURL": [
28
36
  {
29
37
  "document": "创建管理端登录链接示例",
@@ -2661,7 +2661,7 @@
2661
2661
  },
2662
2662
  {
2663
2663
  "disabled": false,
2664
- "document": "是否开启SNI特性,此参数仅适用于HTTPS监听器。0表示开启,1表示未开启。",
2664
+ "document": "是否开启SNI特性,此参数仅适用于HTTPS监听器。0表示未开启,1表示开启。",
2665
2665
  "example": "1",
2666
2666
  "member": "int64",
2667
2667
  "name": "SniSwitch",
@@ -2766,6 +2766,24 @@
2766
2766
  "name": "FullEndPorts",
2767
2767
  "required": false,
2768
2768
  "type": "list"
2769
+ },
2770
+ {
2771
+ "disabled": false,
2772
+ "document": "内网http监听器开启h2c开关",
2773
+ "example": "False",
2774
+ "member": "bool",
2775
+ "name": "H2cSwitch",
2776
+ "required": false,
2777
+ "type": "bool"
2778
+ },
2779
+ {
2780
+ "disabled": false,
2781
+ "document": "TCP_SSL监听器支持关闭SSL后仍然支持混绑,此参数为关闭开关",
2782
+ "example": "False",
2783
+ "member": "bool",
2784
+ "name": "SslCloseSwitch",
2785
+ "required": false,
2786
+ "type": "bool"
2769
2787
  }
2770
2788
  ],
2771
2789
  "type": "object"
@@ -7272,17 +7272,17 @@
7272
7272
  "example": "0",
7273
7273
  "member": "int64",
7274
7274
  "name": "Id",
7275
- "required": true,
7275
+ "output_required": true,
7276
7276
  "type": "int",
7277
7277
  "value_allowed_null": false
7278
7278
  },
7279
7279
  {
7280
7280
  "disabled": false,
7281
7281
  "document": "卡槽类型,可取值有:\n<li> AUDIO:音频卡槽,可替换素材类型为 AUDIO 的音频素材;</li>\n<li> VIDEO:视频卡槽,可替换素材类型为 VIDEO 的视频素材;</li>\n<li> IMAGE:图片卡槽,可替换素材类型为 IMAGE 的图片素材;</li>\n<li> TEXT:文本卡槽,可替换文本内容。</li>",
7282
- "example": "0",
7282
+ "example": "VIDEO",
7283
7283
  "member": "string",
7284
7284
  "name": "Type",
7285
- "required": true,
7285
+ "output_required": true,
7286
7286
  "type": "string",
7287
7287
  "value_allowed_null": false
7288
7288
  },
@@ -7292,7 +7292,7 @@
7292
7292
  "example": "60097a8a8ea83d00017b484b",
7293
7293
  "member": "string",
7294
7294
  "name": "DefaultMaterialId",
7295
- "required": true,
7295
+ "output_required": true,
7296
7296
  "type": "string",
7297
7297
  "value_allowed_null": false
7298
7298
  },
@@ -7302,7 +7302,7 @@
7302
7302
  "example": "无",
7303
7303
  "member": "TextSlotInfo",
7304
7304
  "name": "DefaultTextSlotInfo",
7305
- "required": true,
7305
+ "output_required": true,
7306
7306
  "type": "object",
7307
7307
  "value_allowed_null": true
7308
7308
  },
@@ -7312,7 +7312,17 @@
7312
7312
  "example": "100",
7313
7313
  "member": "float",
7314
7314
  "name": "Duration",
7315
- "required": true,
7315
+ "output_required": true,
7316
+ "type": "float",
7317
+ "value_allowed_null": false
7318
+ },
7319
+ {
7320
+ "disabled": false,
7321
+ "document": "卡槽起始时间,单位秒。",
7322
+ "example": "0",
7323
+ "member": "float",
7324
+ "name": "StartTime",
7325
+ "output_required": false,
7316
7326
  "type": "float",
7317
7327
  "value_allowed_null": false
7318
7328
  }
@@ -8040,10 +8050,10 @@
8040
8050
  {
8041
8051
  "disabled": false,
8042
8052
  "document": "文本内容。",
8043
- "example": "",
8053
+ "example": "智能创作",
8044
8054
  "member": "string",
8045
8055
  "name": "Text",
8046
- "required": true,
8056
+ "output_required": true,
8047
8057
  "type": "string",
8048
8058
  "value_allowed_null": false
8049
8059
  }