tccli 3.0.1159.1__py2.py3-none-any.whl → 3.0.1161.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/aiart/v20221229/api.json +12 -15
- tccli/services/apm/v20210622/api.json +9 -0
- tccli/services/cdb/v20170320/api.json +3 -1
- tccli/services/cdwdoris/cdwdoris_client.py +1056 -49
- tccli/services/cdwdoris/v20211228/api.json +3192 -1014
- tccli/services/cdwdoris/v20211228/examples.json +152 -0
- tccli/services/cfg/cfg_client.py +224 -12
- tccli/services/cfg/v20210820/api.json +897 -32
- tccli/services/cfg/v20210820/examples.json +32 -0
- tccli/services/cfw/v20190904/api.json +12 -2
- tccli/services/cls/v20201016/api.json +11 -1
- tccli/services/cme/v20191029/api.json +9 -9
- tccli/services/cme/v20191029/examples.json +1 -1
- tccli/services/csip/csip_client.py +53 -0
- tccli/services/csip/v20221121/api.json +136 -2
- tccli/services/csip/v20221121/examples.json +8 -0
- tccli/services/cwp/v20180228/api.json +66 -46
- tccli/services/cwp/v20180228/examples.json +1 -1
- tccli/services/dlc/v20210125/api.json +31 -2
- tccli/services/dnspod/v20210323/api.json +1 -1
- tccli/services/domain/v20180808/api.json +1 -1
- tccli/services/ess/v20201111/api.json +4 -4
- tccli/services/ess/v20201111/examples.json +6 -6
- tccli/services/essbasic/v20210526/api.json +21 -12
- tccli/services/essbasic/v20210526/examples.json +7 -1
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/iotexplorer/v20190423/api.json +25 -25
- tccli/services/iotexplorer/v20190423/examples.json +10 -4
- tccli/services/lcic/lcic_client.py +57 -4
- tccli/services/lcic/v20220817/api.json +52 -0
- tccli/services/lcic/v20220817/examples.json +8 -0
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +563 -9
- tccli/services/ocr/v20181119/api.json +10 -0
- tccli/services/trro/v20220325/api.json +181 -6
- tccli/services/trro/v20220325/examples.json +3 -3
- tccli/services/trtc/trtc_client.py +53 -0
- tccli/services/trtc/v20190722/api.json +83 -10
- tccli/services/trtc/v20190722/examples.json +27 -13
- tccli/services/tsf/v20180326/api.json +8 -7
- tccli/services/tsf/v20180326/examples.json +1 -1
- tccli/services/vclm/v20240523/api.json +137 -1
- tccli/services/vclm/v20240523/examples.json +46 -0
- tccli/services/vclm/vclm_client.py +106 -0
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/vtc/v20240223/api.json +1 -1
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1161.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1161.1.dist-info}/RECORD +52 -52
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1161.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1161.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1161.1.dist-info}/license_files/LICENSE +0 -0
@@ -21084,6 +21084,16 @@
|
|
21084
21084
|
"type": "object",
|
21085
21085
|
"value_allowed_null": false
|
21086
21086
|
},
|
21087
|
+
{
|
21088
|
+
"disabled": false,
|
21089
|
+
"document": "发票标题",
|
21090
|
+
"example": "无",
|
21091
|
+
"member": "string",
|
21092
|
+
"name": "InvoiceTitle",
|
21093
|
+
"output_required": false,
|
21094
|
+
"type": "string",
|
21095
|
+
"value_allowed_null": false
|
21096
|
+
},
|
21087
21097
|
{
|
21088
21098
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
21089
21099
|
"member": "string",
|
@@ -593,6 +593,15 @@
|
|
593
593
|
"name": "PageNumber",
|
594
594
|
"required": false,
|
595
595
|
"type": "int"
|
596
|
+
},
|
597
|
+
{
|
598
|
+
"disabled": false,
|
599
|
+
"document": "设备状态筛选,不填默认为不过滤。取值:[\"ready\",\"connected\",\"online\"],online代表ready或connected",
|
600
|
+
"example": "ready",
|
601
|
+
"member": "string",
|
602
|
+
"name": "DeviceStatus",
|
603
|
+
"required": false,
|
604
|
+
"type": "string"
|
596
605
|
}
|
597
606
|
],
|
598
607
|
"type": "object"
|
@@ -606,7 +615,7 @@
|
|
606
615
|
"example": "无",
|
607
616
|
"member": "DeviceInfo",
|
608
617
|
"name": "Devices",
|
609
|
-
"
|
618
|
+
"output_required": true,
|
610
619
|
"type": "list",
|
611
620
|
"value_allowed_null": false
|
612
621
|
},
|
@@ -616,7 +625,7 @@
|
|
616
625
|
"example": "16",
|
617
626
|
"member": "int64",
|
618
627
|
"name": "Total",
|
619
|
-
"
|
628
|
+
"output_required": true,
|
620
629
|
"type": "int",
|
621
630
|
"value_allowed_null": false
|
622
631
|
},
|
@@ -626,7 +635,7 @@
|
|
626
635
|
"example": "10",
|
627
636
|
"member": "int64",
|
628
637
|
"name": "Num",
|
629
|
-
"
|
638
|
+
"output_required": true,
|
630
639
|
"type": "int",
|
631
640
|
"value_allowed_null": false
|
632
641
|
},
|
@@ -663,7 +672,7 @@
|
|
663
672
|
"example": "无",
|
664
673
|
"member": "SessionDeviceDetail",
|
665
674
|
"name": "Details",
|
666
|
-
"
|
675
|
+
"output_required": true,
|
667
676
|
"type": "list",
|
668
677
|
"value_allowed_null": false
|
669
678
|
},
|
@@ -2000,6 +2009,72 @@
|
|
2000
2009
|
],
|
2001
2010
|
"type": "object"
|
2002
2011
|
},
|
2012
|
+
"MultiNet": {
|
2013
|
+
"document": "多网的网卡状态信息",
|
2014
|
+
"members": [
|
2015
|
+
{
|
2016
|
+
"disabled": false,
|
2017
|
+
"document": "网卡序号\n注意:此字段可能返回 null,表示取不到有效值。",
|
2018
|
+
"example": "0",
|
2019
|
+
"member": "int64",
|
2020
|
+
"name": "NetId",
|
2021
|
+
"output_required": false,
|
2022
|
+
"type": "int",
|
2023
|
+
"value_allowed_null": true
|
2024
|
+
},
|
2025
|
+
{
|
2026
|
+
"disabled": false,
|
2027
|
+
"document": "网卡IP\n注意:此字段可能返回 null,表示取不到有效值。",
|
2028
|
+
"example": "\"10.211.65.6\"",
|
2029
|
+
"member": "string",
|
2030
|
+
"name": "NetIp",
|
2031
|
+
"output_required": false,
|
2032
|
+
"type": "string",
|
2033
|
+
"value_allowed_null": true
|
2034
|
+
},
|
2035
|
+
{
|
2036
|
+
"disabled": false,
|
2037
|
+
"document": "时延,单位ms\n注意:此字段可能返回 null,表示取不到有效值。",
|
2038
|
+
"example": "[10,20,30,20,10]",
|
2039
|
+
"member": "int64",
|
2040
|
+
"name": "Rtt",
|
2041
|
+
"output_required": false,
|
2042
|
+
"type": "list",
|
2043
|
+
"value_allowed_null": true
|
2044
|
+
},
|
2045
|
+
{
|
2046
|
+
"disabled": false,
|
2047
|
+
"document": "丢包率,单位%\n注意:此字段可能返回 null,表示取不到有效值。",
|
2048
|
+
"example": "[10,20,30,20,10]",
|
2049
|
+
"member": "int64",
|
2050
|
+
"name": "Lost",
|
2051
|
+
"output_required": false,
|
2052
|
+
"type": "list",
|
2053
|
+
"value_allowed_null": true
|
2054
|
+
},
|
2055
|
+
{
|
2056
|
+
"disabled": false,
|
2057
|
+
"document": "发送bps,单位kbps\n注意:此字段可能返回 null,表示取不到有效值。",
|
2058
|
+
"example": "[10,20,30,20,10]",
|
2059
|
+
"member": "int64",
|
2060
|
+
"name": "SendBps",
|
2061
|
+
"output_required": false,
|
2062
|
+
"type": "list",
|
2063
|
+
"value_allowed_null": true
|
2064
|
+
},
|
2065
|
+
{
|
2066
|
+
"disabled": false,
|
2067
|
+
"document": "接收bps,单位kbps\n注意:此字段可能返回 null,表示取不到有效值。",
|
2068
|
+
"example": "[10,20,30,20,10]",
|
2069
|
+
"member": "int64",
|
2070
|
+
"name": "RecvBps",
|
2071
|
+
"output_required": false,
|
2072
|
+
"type": "list",
|
2073
|
+
"value_allowed_null": true
|
2074
|
+
}
|
2075
|
+
],
|
2076
|
+
"usage": "out"
|
2077
|
+
},
|
2003
2078
|
"PolicyInfo": {
|
2004
2079
|
"document": "权限信息",
|
2005
2080
|
"members": [
|
@@ -2332,8 +2407,8 @@
|
|
2332
2407
|
"value_allowed_null": true
|
2333
2408
|
},
|
2334
2409
|
{
|
2335
|
-
"disabled":
|
2336
|
-
"document": "
|
2410
|
+
"disabled": true,
|
2411
|
+
"document": "【已废弃,使用RenderCost】\n注意:此字段可能返回 null,表示取不到有效值。",
|
2337
2412
|
"example": "[20,20,30]",
|
2338
2413
|
"member": "int64",
|
2339
2414
|
"name": "RenderConst",
|
@@ -2420,6 +2495,106 @@
|
|
2420
2495
|
"output_required": false,
|
2421
2496
|
"type": "list",
|
2422
2497
|
"value_allowed_null": true
|
2498
|
+
},
|
2499
|
+
{
|
2500
|
+
"disabled": false,
|
2501
|
+
"document": "渲染耗时,单位:ms\n注意:此字段可能返回 null,表示取不到有效值。",
|
2502
|
+
"example": "[20,20,30]",
|
2503
|
+
"member": "int64",
|
2504
|
+
"name": "RenderCost",
|
2505
|
+
"output_required": false,
|
2506
|
+
"type": "list",
|
2507
|
+
"value_allowed_null": true
|
2508
|
+
},
|
2509
|
+
{
|
2510
|
+
"disabled": false,
|
2511
|
+
"document": "配置宽度\n注意:此字段可能返回 null,表示取不到有效值。",
|
2512
|
+
"example": "1280",
|
2513
|
+
"member": "int64",
|
2514
|
+
"name": "ConfigWidth",
|
2515
|
+
"output_required": false,
|
2516
|
+
"type": "int",
|
2517
|
+
"value_allowed_null": true
|
2518
|
+
},
|
2519
|
+
{
|
2520
|
+
"disabled": false,
|
2521
|
+
"document": "配置高度\n注意:此字段可能返回 null,表示取不到有效值。",
|
2522
|
+
"example": "720",
|
2523
|
+
"member": "int64",
|
2524
|
+
"name": "ConfigHeight",
|
2525
|
+
"output_required": false,
|
2526
|
+
"type": "int",
|
2527
|
+
"value_allowed_null": true
|
2528
|
+
},
|
2529
|
+
{
|
2530
|
+
"disabled": false,
|
2531
|
+
"document": "平均帧间隔\n注意:此字段可能返回 null,表示取不到有效值。",
|
2532
|
+
"example": "[20.12,20.25,30.16]",
|
2533
|
+
"member": "int64",
|
2534
|
+
"name": "FrameDelta",
|
2535
|
+
"output_required": false,
|
2536
|
+
"type": "list",
|
2537
|
+
"value_allowed_null": true
|
2538
|
+
},
|
2539
|
+
{
|
2540
|
+
"disabled": false,
|
2541
|
+
"document": "最大帧间隔\n注意:此字段可能返回 null,表示取不到有效值。",
|
2542
|
+
"example": "[20.12,20.25,30.16]",
|
2543
|
+
"member": "int64",
|
2544
|
+
"name": "MaxFrameDelta",
|
2545
|
+
"output_required": false,
|
2546
|
+
"type": "list",
|
2547
|
+
"value_allowed_null": true
|
2548
|
+
},
|
2549
|
+
{
|
2550
|
+
"disabled": false,
|
2551
|
+
"document": "总码率评估,单位:kbps\n注意:此字段可能返回 null,表示取不到有效值。",
|
2552
|
+
"example": "[20.12,20.25,30.16]",
|
2553
|
+
"member": "int64",
|
2554
|
+
"name": "TotalBitrateEstimate",
|
2555
|
+
"output_required": false,
|
2556
|
+
"type": "list",
|
2557
|
+
"value_allowed_null": true
|
2558
|
+
},
|
2559
|
+
{
|
2560
|
+
"disabled": false,
|
2561
|
+
"document": "帧间隔大于100ms的卡顿时长\n注意:此字段可能返回 null,表示取不到有效值。",
|
2562
|
+
"example": "[20.12,20.25,30.16]",
|
2563
|
+
"member": "int64",
|
2564
|
+
"name": "Lag100Duration",
|
2565
|
+
"output_required": false,
|
2566
|
+
"type": "list",
|
2567
|
+
"value_allowed_null": true
|
2568
|
+
},
|
2569
|
+
{
|
2570
|
+
"disabled": false,
|
2571
|
+
"document": "帧间隔大于150ms的卡顿时长\n注意:此字段可能返回 null,表示取不到有效值。",
|
2572
|
+
"example": "[20.12,20.25,30.16]",
|
2573
|
+
"member": "int64",
|
2574
|
+
"name": "Lag150Duration",
|
2575
|
+
"output_required": false,
|
2576
|
+
"type": "list",
|
2577
|
+
"value_allowed_null": true
|
2578
|
+
},
|
2579
|
+
{
|
2580
|
+
"disabled": false,
|
2581
|
+
"document": "是否开启多网:0 单网,1 多网\n注意:此字段可能返回 null,表示取不到有效值。",
|
2582
|
+
"example": "0",
|
2583
|
+
"member": "int64",
|
2584
|
+
"name": "MultiMode",
|
2585
|
+
"output_required": false,
|
2586
|
+
"type": "int",
|
2587
|
+
"value_allowed_null": true
|
2588
|
+
},
|
2589
|
+
{
|
2590
|
+
"disabled": false,
|
2591
|
+
"document": "多网卡信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
2592
|
+
"example": "无",
|
2593
|
+
"member": "MultiNet",
|
2594
|
+
"name": "MultiNet",
|
2595
|
+
"output_required": false,
|
2596
|
+
"type": "list",
|
2597
|
+
"value_allowed_null": true
|
2423
2598
|
}
|
2424
2599
|
],
|
2425
2600
|
"usage": "out"
|
@@ -59,8 +59,8 @@
|
|
59
59
|
"DescribeDeviceList": [
|
60
60
|
{
|
61
61
|
"document": "",
|
62
|
-
"input": "POST / HTTP/1.1\nHost: trro.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDeviceList\n<公共请求参数>\n\n{\n \"ProjectId\": \"
|
63
|
-
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Num\": 1,\n \"RequestId\": \"8979fc1e-9564-4fc9-bf7d-2958ce679b72\",\n \"Devices\": [\n {\n \"DeviceName\": \"test1\",\n \"ProjectId\": \"
|
62
|
+
"input": "POST / HTTP/1.1\nHost: trro.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDeviceList\n<公共请求参数>\n\n{\n \"ProjectId\": \"abc\",\n \"DeviceType\": \"field\",\n \"SearchWords\": \"abc\",\n \"PageSize\": 10,\n \"PageNumber\": 1,\n \"DeviceStatus\": \"\"\n}",
|
63
|
+
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Num\": 1,\n \"RequestId\": \"8979fc1e-9564-4fc9-bf7d-2958ce679b72\",\n \"Devices\": [\n {\n \"DeviceName\": \"test1\",\n \"ProjectId\": \"abc\",\n \"LastReportTime\": \"2022-03-22T08:00:00+08:00\",\n \"DeviceStatus\": \"offline\",\n \"DeviceType\": \"field\",\n \"DeviceId\": \"dev1\",\n \"ModifyTime\": \"2022-03-21T08:00:00+08:00\"\n }\n ]\n }\n}",
|
64
64
|
"title": "设备列表获取示例"
|
65
65
|
}
|
66
66
|
],
|
@@ -68,7 +68,7 @@
|
|
68
68
|
{
|
69
69
|
"document": "",
|
70
70
|
"input": "POST / HTTP/1.1\nHost: trro.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDeviceSessionDetails\n<公共请求参数>\n\n{\n \"SessionId\": \"abcde-50f7-4c60-9c89-e7076c8529a9-0\"\n}",
|
71
|
-
"output": "{\n \"Response\": {\n \"Details\": [\n {\n \"
|
71
|
+
"output": "{\n \"Response\": {\n \"Details\": [\n {\n \"DeviceType\": \"abc\",\n \"StartTime\": 1,\n \"EndTime\": 1,\n \"SessionId\": \"abc\",\n \"Rate\": [\n 0\n ],\n \"Fps\": [\n 0\n ],\n \"Lost\": [\n 0\n ],\n \"NetworkLatency\": [\n 0\n ],\n \"VideoLatency\": [\n 0\n ],\n \"CpuUsed\": [\n 0\n ],\n \"MemUsed\": [\n 0\n ],\n \"TimeOffset\": [\n 1\n ],\n \"ProjectId\": \"abc\",\n \"DeviceId\": \"abc\",\n \"Ver\": \"abc\",\n \"SdkMode\": \"abc\",\n \"DecodeCost\": [\n 0\n ],\n \"RenderConst\": [\n 0\n ],\n \"K100\": [\n 0\n ],\n \"K150\": [\n 0\n ],\n \"NACK\": [\n 0\n ],\n \"BitRateEstimate\": [\n 0\n ],\n \"Width\": 0,\n \"Height\": 0,\n \"EncodeCost\": [\n 0\n ],\n \"CaptureCost\": [\n 0\n ],\n \"RenderCost\": [\n 0\n ],\n \"ConfigWidth\": 0,\n \"ConfigHeight\": 0,\n \"FrameDelta\": [\n 0\n ],\n \"MaxFrameDelta\": [\n 0\n ],\n \"TotalBitrateEstimate\": [\n 0\n ],\n \"Lag100Duration\": [\n 0\n ],\n \"Lag150Duration\": [\n 0\n ],\n \"MultiMode\": 0,\n \"MultiNet\": [\n {\n \"NetId\": 0,\n \"NetIp\": \"abc\",\n \"Rtt\": [\n 0\n ],\n \"Lost\": [\n 0\n ],\n \"SendBps\": [\n 0\n ],\n \"RecvBps\": [\n 0\n ]\n }\n ]\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
72
72
|
"title": "示例1"
|
73
73
|
}
|
74
74
|
],
|
@@ -1421,6 +1421,58 @@ def doStopWebRecord(args, parsed_globals):
|
|
1421
1421
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
1422
|
|
1423
1423
|
|
1424
|
+
def doControlAIConversation(args, parsed_globals):
|
1425
|
+
g_param = parse_global_arg(parsed_globals)
|
1426
|
+
|
1427
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1428
|
+
cred = credential.CVMRoleCredential()
|
1429
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1430
|
+
cred = credential.STSAssumeRoleCredential(
|
1431
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1432
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1433
|
+
)
|
1434
|
+
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):
|
1435
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1436
|
+
else:
|
1437
|
+
cred = credential.Credential(
|
1438
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1439
|
+
)
|
1440
|
+
http_profile = HttpProfile(
|
1441
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1442
|
+
reqMethod="POST",
|
1443
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1444
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1445
|
+
)
|
1446
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1447
|
+
if g_param[OptionsDefine.Language]:
|
1448
|
+
profile.language = g_param[OptionsDefine.Language]
|
1449
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1450
|
+
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
1451
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1452
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1453
|
+
model = models.ControlAIConversationRequest()
|
1454
|
+
model.from_json_string(json.dumps(args))
|
1455
|
+
start_time = time.time()
|
1456
|
+
while True:
|
1457
|
+
rsp = client.ControlAIConversation(model)
|
1458
|
+
result = rsp.to_json_string()
|
1459
|
+
try:
|
1460
|
+
json_obj = json.loads(result)
|
1461
|
+
except TypeError as e:
|
1462
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1463
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1464
|
+
break
|
1465
|
+
cur_time = time.time()
|
1466
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1467
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1468
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1469
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1470
|
+
else:
|
1471
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1472
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1473
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
|
+
|
1475
|
+
|
1424
1476
|
def doCreateCloudRecording(args, parsed_globals):
|
1425
1477
|
g_param = parse_global_arg(parsed_globals)
|
1426
1478
|
|
@@ -2811,6 +2863,7 @@ ACTION_MAP = {
|
|
2811
2863
|
"StartAITranscription": doStartAITranscription,
|
2812
2864
|
"DescribeTRTCMarketScaleData": doDescribeTRTCMarketScaleData,
|
2813
2865
|
"StopWebRecord": doStopWebRecord,
|
2866
|
+
"ControlAIConversation": doControlAIConversation,
|
2814
2867
|
"CreateCloudRecording": doCreateCloudRecording,
|
2815
2868
|
"DescribeScaleInfo": doDescribeScaleInfo,
|
2816
2869
|
"DescribeRelayUsage": doDescribeRelayUsage,
|
@@ -1,5 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"ControlAIConversation": {
|
4
|
+
"document": "提供服务端控制机器人的功能",
|
5
|
+
"input": "ControlAIConversationRequest",
|
6
|
+
"name": "控制AI对话",
|
7
|
+
"output": "ControlAIConversationResponse",
|
8
|
+
"status": "online"
|
9
|
+
},
|
3
10
|
"CreateCloudRecording": {
|
4
11
|
"document": "接口说明:\n启动云端录制功能,完成房间内的音视频录制,并上传到指定的云存储。您可以通过此 API 接口把TRTC 房间中的每一路音视频流做单独的录制又或者多路视频画面合流混成一路。\n\n您可以通过此接口实现如下目标:\n* 指定订阅流参数(RecordParams)来指定需要录制的主播的黑名单或者白名单。\n* 指定录制存储参数(StorageParams)来指定上传到您希望的云存储,目前支持腾讯云(云点播VOD、对象存储COS)和第三方AWS\n* 指定合流模式下的音视频转码详细参数(MixTranscodeParams),包括视频分辨率、视频码率、视频帧率、以及声音质量等\n* 指定合流模式各路画面的位置和布局或者也可以指定自动模板的方式来配置。\n\n关键名词:\n* 单流录制:分别录制房间的订阅UserId的音频和视频,录制服务会实时将录制文件上传至您指定的云存储。\n* 合流录制:将房间内订阅UserId的音视频混录成一个视频文件,并将录制文件上传至您指定的云存储。(录制结束后可前往云点播控制台https://console.cloud.tencent.com/vod/media 或 对象存储COS控制台https://console.cloud.tencent.com/cos/bucket查看文件)。",
|
5
12
|
"input": "CreateCloudRecordingRequest",
|
@@ -288,7 +295,7 @@
|
|
288
295
|
"status": "online"
|
289
296
|
},
|
290
297
|
"StartPublishCdnStream": {
|
291
|
-
"document": "
|
298
|
+
"document": "接口说明: \n启动一个混流转推任务,将 TRTC 房间的多路音视频流混成一路音视频流,编码后推到直播 CDN 或者回推到 TRTC 房间。也支持不转码直接转推 TRTC 房间的单路流。启动成功后,会返回一个 SdkAppid 维度唯一的任务 Id(TaskId)。您需要保存该 TaskId,后续需要依赖此 TaskId 更新和结束任务。可以参考文档: [功能说明](https://cloud.tencent.com/document/product/647/84721#b9a855f4-e38c-4616-9b07-fc44e0e8282a) 和 [常见问题](https://cloud.tencent.com/document/product/647/62620)\n\n注意:\n您可以在控制台开通旁路转推回调功能,对转推 CDN 状态的事件进行监控,回调请参考文档:[旁路转推回调说明](https://cloud.tencent.com/document/product/647/88552) \n您发起混流转推任务时,可能会产生如下费用: \nMCU 混流转码费用,请参考文档:[云端混流转码计费说明](https://cloud.tencent.com/document/product/647/49446) \n转推非腾讯云 CDN 费用,请参考文档:[云端转推计费说明](https://cloud.tencent.com/document/product/647/82155)",
|
292
299
|
"input": "StartPublishCdnStreamRequest",
|
293
300
|
"name": "启动转推任务",
|
294
301
|
"output": "StartPublishCdnStreamResponse",
|
@@ -337,7 +344,7 @@
|
|
337
344
|
"status": "online"
|
338
345
|
},
|
339
346
|
"StopPublishCdnStream": {
|
340
|
-
"document": "
|
347
|
+
"document": "接口说明:\n停止指定的混流转推任务。如果没有调用 Stop 接口停止任务,所有参与混流转推的主播离开 TRTC 房间超过 AgentParams.MaxIdleTime 设置的时间后,任务也会自动停止。",
|
341
348
|
"input": "StopPublishCdnStreamRequest",
|
342
349
|
"name": "停止转推任务",
|
343
350
|
"output": "StopPublishCdnStreamResponse",
|
@@ -365,7 +372,7 @@
|
|
365
372
|
"status": "deprecated"
|
366
373
|
},
|
367
374
|
"UpdatePublishCdnStream": {
|
368
|
-
"document": "
|
375
|
+
"document": "接口说明:\n成功发起混流转推后,可以使用此接口来更新任务。仅在任务进行时有效,任务退出后更新将会返回错误。更新操作为增量更新模式。\n注意:为了保障推流的稳定性,更新不支持任务在纯音频、音视频、纯视频之间进行切换。",
|
369
376
|
"input": "UpdatePublishCdnStreamRequest",
|
370
377
|
"name": "更新转推任务",
|
371
378
|
"output": "UpdatePublishCdnStreamResponse",
|
@@ -744,6 +751,51 @@
|
|
744
751
|
],
|
745
752
|
"usage": "in"
|
746
753
|
},
|
754
|
+
"ControlAIConversationRequest": {
|
755
|
+
"document": "ControlAIConversation请求参数结构体",
|
756
|
+
"members": [
|
757
|
+
{
|
758
|
+
"disabled": false,
|
759
|
+
"document": "任务唯一标识",
|
760
|
+
"example": "无",
|
761
|
+
"member": "string",
|
762
|
+
"name": "TaskId",
|
763
|
+
"required": true,
|
764
|
+
"type": "string"
|
765
|
+
},
|
766
|
+
{
|
767
|
+
"disabled": false,
|
768
|
+
"document": "控制命令,目前支持命令如下:\n\n- ServerPushText,服务端发送文本给AI机器人,AI机器人会播报该文本",
|
769
|
+
"example": "无",
|
770
|
+
"member": "string",
|
771
|
+
"name": "Command",
|
772
|
+
"required": true,
|
773
|
+
"type": "string"
|
774
|
+
},
|
775
|
+
{
|
776
|
+
"disabled": false,
|
777
|
+
"document": "服务端发送播报文本命令,当Command为ServerPushText时必填",
|
778
|
+
"example": "无",
|
779
|
+
"member": "ServerPushText",
|
780
|
+
"name": "ServerPushText",
|
781
|
+
"required": false,
|
782
|
+
"type": "object"
|
783
|
+
}
|
784
|
+
],
|
785
|
+
"type": "object"
|
786
|
+
},
|
787
|
+
"ControlAIConversationResponse": {
|
788
|
+
"document": "ControlAIConversation返回参数结构体",
|
789
|
+
"members": [
|
790
|
+
{
|
791
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
792
|
+
"member": "string",
|
793
|
+
"name": "RequestId",
|
794
|
+
"type": "string"
|
795
|
+
}
|
796
|
+
],
|
797
|
+
"type": "object"
|
798
|
+
},
|
747
799
|
"CreateCloudRecordingRequest": {
|
748
800
|
"document": "CreateCloudRecording请求参数结构体",
|
749
801
|
"members": [
|
@@ -4002,8 +4054,7 @@
|
|
4002
4054
|
"member": "uint64",
|
4003
4055
|
"name": "WaterMarkType",
|
4004
4056
|
"required": false,
|
4005
|
-
"type": "int"
|
4006
|
-
"value_allowed_null": false
|
4057
|
+
"type": "int"
|
4007
4058
|
},
|
4008
4059
|
{
|
4009
4060
|
"disabled": false,
|
@@ -4012,8 +4063,7 @@
|
|
4012
4063
|
"member": "McuWaterMarkImage",
|
4013
4064
|
"name": "WaterMarkImage",
|
4014
4065
|
"required": false,
|
4015
|
-
"type": "object"
|
4016
|
-
"value_allowed_null": false
|
4066
|
+
"type": "object"
|
4017
4067
|
},
|
4018
4068
|
{
|
4019
4069
|
"disabled": false,
|
@@ -4022,8 +4072,7 @@
|
|
4022
4072
|
"member": "McuWaterMarkText",
|
4023
4073
|
"name": "WaterMarkText",
|
4024
4074
|
"required": false,
|
4025
|
-
"type": "object"
|
4026
|
-
"value_allowed_null": true
|
4075
|
+
"type": "object"
|
4027
4076
|
}
|
4028
4077
|
],
|
4029
4078
|
"usage": "in"
|
@@ -5440,6 +5489,30 @@
|
|
5440
5489
|
],
|
5441
5490
|
"usage": "out"
|
5442
5491
|
},
|
5492
|
+
"ServerPushText": {
|
5493
|
+
"document": "服务端控制AI对话机器人播报指定文本",
|
5494
|
+
"members": [
|
5495
|
+
{
|
5496
|
+
"disabled": false,
|
5497
|
+
"document": "服务端推送播报文本",
|
5498
|
+
"example": "无",
|
5499
|
+
"member": "string",
|
5500
|
+
"name": "Text",
|
5501
|
+
"required": false,
|
5502
|
+
"type": "string"
|
5503
|
+
},
|
5504
|
+
{
|
5505
|
+
"disabled": false,
|
5506
|
+
"document": "是否允许该文本打断机器人说话",
|
5507
|
+
"example": "无",
|
5508
|
+
"member": "bool",
|
5509
|
+
"name": "Interrupt",
|
5510
|
+
"required": false,
|
5511
|
+
"type": "bool"
|
5512
|
+
}
|
5513
|
+
],
|
5514
|
+
"usage": "in"
|
5515
|
+
},
|
5443
5516
|
"SingleSubscribeParams": {
|
5444
5517
|
"document": "单流旁路转推的用户上行信息。",
|
5445
5518
|
"members": [
|
@@ -6892,7 +6965,7 @@
|
|
6892
6965
|
},
|
6893
6966
|
{
|
6894
6967
|
"disabled": false,
|
6895
|
-
"document": "
|
6968
|
+
"document": "更新相关参数,只支持更新参与混音的主播列表参数,不支持更新Codec、采样率、码率和声道数。不填表示不更新此参数。",
|
6896
6969
|
"example": "AudioParams",
|
6897
6970
|
"member": "McuAudioParams",
|
6898
6971
|
"name": "AudioParams",
|