tencentcloud-sdk-nodejs-trtc 4.0.1050 → 4.1.7
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.
- package/README.md +27 -5
- package/es/index.js +1 -0
- package/es/services/index.js +1 -0
- package/es/services/trtc/index.js +4 -0
- package/es/services/trtc/v20190722/index.js +6 -0
- package/es/services/trtc/v20190722/trtc_client.js +177 -0
- package/es/services/trtc/v20190722/trtc_models.js +0 -0
- package/package.json +18 -5
- package/tencentcloud/services/trtc/v20190722/index.js +2 -1
- package/tencentcloud/services/trtc/v20190722/trtc_client.js +2 -1
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +8 -0
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/prettier.config.js +0 -38
- package/src/index.ts +0 -1
- package/src/services/index.ts +0 -1
- package/src/services/trtc/index.ts +0 -5
- package/src/services/trtc/v20190722/index.ts +0 -6
- package/src/services/trtc/v20190722/trtc_client.ts +0 -968
- package/src/services/trtc/v20190722/trtc_models.ts +0 -4589
- package/tsconfig.json +0 -33
- package/typings/index.d.ts +0 -2
package/README.md
CHANGED
|
@@ -44,18 +44,40 @@ npm install tencentcloud-sdk-nodejs-vpc --save
|
|
|
44
44
|
|
|
45
45
|
### 安装全产品 SDK
|
|
46
46
|
|
|
47
|
+
如果项目依赖的云产品较多,可以引入全产品 SDK。
|
|
48
|
+
|
|
47
49
|
```
|
|
48
50
|
npm install tencentcloud-sdk-nodejs --save
|
|
49
51
|
```
|
|
50
52
|
|
|
51
|
-
全产品 SDK
|
|
53
|
+
全产品 SDK 包含所有云产品调用代码和 TypeScript 类型文件,体积偏大。对于体积敏感的场景,推荐安装指定产品 SDK。
|
|
54
|
+
|
|
55
|
+
如果既希望全产品调用,又对包体积比较敏感,可以使用 Slim 版本 SDK。Slim SDK 移除类型文件,并进行了代码压缩,适合体积敏感场景使用:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
npm install tencentcloud-sdk-slim-nodejs --save
|
|
59
|
+
```
|
|
52
60
|
|
|
53
61
|
## 通过源码包安装
|
|
54
62
|
|
|
55
|
-
1.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
63
|
+
1. clone 代码到本地:
|
|
64
|
+
```
|
|
65
|
+
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
66
|
+
# 或者
|
|
67
|
+
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
68
|
+
```
|
|
69
|
+
2. 在项目根目录执行以下命令完成构建:
|
|
70
|
+
```
|
|
71
|
+
npm install && npm run build
|
|
72
|
+
```
|
|
73
|
+
3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
|
|
74
|
+
```
|
|
75
|
+
npm pack
|
|
76
|
+
```
|
|
77
|
+
4. 安装包到你的项目里:
|
|
78
|
+
```
|
|
79
|
+
npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
|
|
80
|
+
```
|
|
59
81
|
|
|
60
82
|
# 示例
|
|
61
83
|
|
package/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./services";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { trtc } from "./trtc";
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
3
|
+
constructor(clientConfig) {
|
|
4
|
+
super("trtc.tencentcloudapi.com", "2019-07-22", clientConfig);
|
|
5
|
+
}
|
|
6
|
+
async DescribeRoomInfo(req, cb) {
|
|
7
|
+
return this.request("DescribeRoomInfo", req, cb);
|
|
8
|
+
}
|
|
9
|
+
async UpdateAIConversation(req, cb) {
|
|
10
|
+
return this.request("UpdateAIConversation", req, cb);
|
|
11
|
+
}
|
|
12
|
+
async DescribeTrtcUsage(req, cb) {
|
|
13
|
+
return this.request("DescribeTrtcUsage", req, cb);
|
|
14
|
+
}
|
|
15
|
+
async CreateBasicModeration(req, cb) {
|
|
16
|
+
return this.request("CreateBasicModeration", req, cb);
|
|
17
|
+
}
|
|
18
|
+
async StopAIConversation(req, cb) {
|
|
19
|
+
return this.request("StopAIConversation", req, cb);
|
|
20
|
+
}
|
|
21
|
+
async DescribeTRTCMarketQualityMetricData(req, cb) {
|
|
22
|
+
return this.request("DescribeTRTCMarketQualityMetricData", req, cb);
|
|
23
|
+
}
|
|
24
|
+
async DescribeWebRecord(req, cb) {
|
|
25
|
+
return this.request("DescribeWebRecord", req, cb);
|
|
26
|
+
}
|
|
27
|
+
async StartPublishCdnStream(req, cb) {
|
|
28
|
+
return this.request("StartPublishCdnStream", req, cb);
|
|
29
|
+
}
|
|
30
|
+
async DescribeCallDetailInfo(req, cb) {
|
|
31
|
+
return this.request("DescribeCallDetailInfo", req, cb);
|
|
32
|
+
}
|
|
33
|
+
async DescribeStreamIngest(req, cb) {
|
|
34
|
+
return this.request("DescribeStreamIngest", req, cb);
|
|
35
|
+
}
|
|
36
|
+
async DescribeTRTCMarketScaleMetricData(req, cb) {
|
|
37
|
+
return this.request("DescribeTRTCMarketScaleMetricData", req, cb);
|
|
38
|
+
}
|
|
39
|
+
async StartAIConversation(req, cb) {
|
|
40
|
+
return this.request("StartAIConversation", req, cb);
|
|
41
|
+
}
|
|
42
|
+
async DescribeAIConversation(req, cb) {
|
|
43
|
+
return this.request("DescribeAIConversation", req, cb);
|
|
44
|
+
}
|
|
45
|
+
async StartMCUMixTranscodeByStrRoomId(req, cb) {
|
|
46
|
+
return this.request("StartMCUMixTranscodeByStrRoomId", req, cb);
|
|
47
|
+
}
|
|
48
|
+
async StartStreamIngest(req, cb) {
|
|
49
|
+
return this.request("StartStreamIngest", req, cb);
|
|
50
|
+
}
|
|
51
|
+
async UpdateStreamIngest(req, cb) {
|
|
52
|
+
return this.request("UpdateStreamIngest", req, cb);
|
|
53
|
+
}
|
|
54
|
+
async DeletePicture(req, cb) {
|
|
55
|
+
return this.request("DeletePicture", req, cb);
|
|
56
|
+
}
|
|
57
|
+
async DescribeTRTCRealTimeQualityMetricData(req, cb) {
|
|
58
|
+
return this.request("DescribeTRTCRealTimeQualityMetricData", req, cb);
|
|
59
|
+
}
|
|
60
|
+
async CreatePicture(req, cb) {
|
|
61
|
+
return this.request("CreatePicture", req, cb);
|
|
62
|
+
}
|
|
63
|
+
async DescribeTRTCRealTimeScaleData(req, cb) {
|
|
64
|
+
return this.request("DescribeTRTCRealTimeScaleData", req, cb);
|
|
65
|
+
}
|
|
66
|
+
async RemoveUser(req, cb) {
|
|
67
|
+
return this.request("RemoveUser", req, cb);
|
|
68
|
+
}
|
|
69
|
+
async DeleteBasicModeration(req, cb) {
|
|
70
|
+
return this.request("DeleteBasicModeration", req, cb);
|
|
71
|
+
}
|
|
72
|
+
async ModifyCloudRecording(req, cb) {
|
|
73
|
+
return this.request("ModifyCloudRecording", req, cb);
|
|
74
|
+
}
|
|
75
|
+
async DescribeUserEvent(req, cb) {
|
|
76
|
+
return this.request("DescribeUserEvent", req, cb);
|
|
77
|
+
}
|
|
78
|
+
async StartWebRecord(req, cb) {
|
|
79
|
+
return this.request("StartWebRecord", req, cb);
|
|
80
|
+
}
|
|
81
|
+
async StartMCUMixTranscode(req, cb) {
|
|
82
|
+
return this.request("StartMCUMixTranscode", req, cb);
|
|
83
|
+
}
|
|
84
|
+
async StartAITranscription(req, cb) {
|
|
85
|
+
return this.request("StartAITranscription", req, cb);
|
|
86
|
+
}
|
|
87
|
+
async DescribeTRTCMarketScaleData(req, cb) {
|
|
88
|
+
return this.request("DescribeTRTCMarketScaleData", req, cb);
|
|
89
|
+
}
|
|
90
|
+
async StopWebRecord(req, cb) {
|
|
91
|
+
return this.request("StopWebRecord", req, cb);
|
|
92
|
+
}
|
|
93
|
+
async StopPublishCdnStream(req, cb) {
|
|
94
|
+
return this.request("StopPublishCdnStream", req, cb);
|
|
95
|
+
}
|
|
96
|
+
async CreateCloudRecording(req, cb) {
|
|
97
|
+
return this.request("CreateCloudRecording", req, cb);
|
|
98
|
+
}
|
|
99
|
+
async DescribeScaleInfo(req, cb) {
|
|
100
|
+
return this.request("DescribeScaleInfo", req, cb);
|
|
101
|
+
}
|
|
102
|
+
async DescribeRelayUsage(req, cb) {
|
|
103
|
+
return this.request("DescribeRelayUsage", req, cb);
|
|
104
|
+
}
|
|
105
|
+
async DescribeUserInfo(req, cb) {
|
|
106
|
+
return this.request("DescribeUserInfo", req, cb);
|
|
107
|
+
}
|
|
108
|
+
async DismissRoomByStrRoomId(req, cb) {
|
|
109
|
+
return this.request("DismissRoomByStrRoomId", req, cb);
|
|
110
|
+
}
|
|
111
|
+
async StopMCUMixTranscodeByStrRoomId(req, cb) {
|
|
112
|
+
return this.request("StopMCUMixTranscodeByStrRoomId", req, cb);
|
|
113
|
+
}
|
|
114
|
+
async StopStreamIngest(req, cb) {
|
|
115
|
+
return this.request("StopStreamIngest", req, cb);
|
|
116
|
+
}
|
|
117
|
+
async DescribeRecordingUsage(req, cb) {
|
|
118
|
+
return this.request("DescribeRecordingUsage", req, cb);
|
|
119
|
+
}
|
|
120
|
+
async RemoveUserByStrRoomId(req, cb) {
|
|
121
|
+
return this.request("RemoveUserByStrRoomId", req, cb);
|
|
122
|
+
}
|
|
123
|
+
async DescribeMixTranscodingUsage(req, cb) {
|
|
124
|
+
return this.request("DescribeMixTranscodingUsage", req, cb);
|
|
125
|
+
}
|
|
126
|
+
async DismissRoom(req, cb) {
|
|
127
|
+
return this.request("DismissRoom", req, cb);
|
|
128
|
+
}
|
|
129
|
+
async DescribeTrtcRoomUsage(req, cb) {
|
|
130
|
+
return this.request("DescribeTrtcRoomUsage", req, cb);
|
|
131
|
+
}
|
|
132
|
+
async DescribeRecordStatistic(req, cb) {
|
|
133
|
+
return this.request("DescribeRecordStatistic", req, cb);
|
|
134
|
+
}
|
|
135
|
+
async DescribeTrtcMcuTranscodeTime(req, cb) {
|
|
136
|
+
return this.request("DescribeTrtcMcuTranscodeTime", req, cb);
|
|
137
|
+
}
|
|
138
|
+
async DescribeCloudRecording(req, cb) {
|
|
139
|
+
return this.request("DescribeCloudRecording", req, cb);
|
|
140
|
+
}
|
|
141
|
+
async ModifyPicture(req, cb) {
|
|
142
|
+
return this.request("ModifyPicture", req, cb);
|
|
143
|
+
}
|
|
144
|
+
async DescribeAITranscription(req, cb) {
|
|
145
|
+
return this.request("DescribeAITranscription", req, cb);
|
|
146
|
+
}
|
|
147
|
+
async UpdatePublishCdnStream(req, cb) {
|
|
148
|
+
return this.request("UpdatePublishCdnStream", req, cb);
|
|
149
|
+
}
|
|
150
|
+
async DescribeTRTCRealTimeQualityData(req, cb) {
|
|
151
|
+
return this.request("DescribeTRTCRealTimeQualityData", req, cb);
|
|
152
|
+
}
|
|
153
|
+
async DeleteCloudRecording(req, cb) {
|
|
154
|
+
return this.request("DeleteCloudRecording", req, cb);
|
|
155
|
+
}
|
|
156
|
+
async DescribePicture(req, cb) {
|
|
157
|
+
return this.request("DescribePicture", req, cb);
|
|
158
|
+
}
|
|
159
|
+
async DescribeTRTCMarketQualityData(req, cb) {
|
|
160
|
+
return this.request("DescribeTRTCMarketQualityData", req, cb);
|
|
161
|
+
}
|
|
162
|
+
async ControlAIConversation(req, cb) {
|
|
163
|
+
return this.request("ControlAIConversation", req, cb);
|
|
164
|
+
}
|
|
165
|
+
async StopAITranscription(req, cb) {
|
|
166
|
+
return this.request("StopAITranscription", req, cb);
|
|
167
|
+
}
|
|
168
|
+
async DescribeUnusualEvent(req, cb) {
|
|
169
|
+
return this.request("DescribeUnusualEvent", req, cb);
|
|
170
|
+
}
|
|
171
|
+
async DescribeTRTCRealTimeScaleMetricData(req, cb) {
|
|
172
|
+
return this.request("DescribeTRTCRealTimeScaleMetricData", req, cb);
|
|
173
|
+
}
|
|
174
|
+
async StopMCUMixTranscode(req, cb) {
|
|
175
|
+
return this.request("StopMCUMixTranscode", req, cb);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-trtc",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.7",
|
|
4
4
|
"description": "腾讯云 API NODEJS SDK",
|
|
5
|
-
"main": "tencentcloud/index.js",
|
|
5
|
+
"main": "./tencentcloud/index.js",
|
|
6
|
+
"module": "./es/index.js",
|
|
7
|
+
"types": "./tencentcloud/index.d.ts",
|
|
6
8
|
"scripts": {
|
|
7
9
|
"test": "mocha -t 10000",
|
|
8
|
-
"build": "
|
|
9
|
-
"
|
|
10
|
+
"build": "concurrently 'npm:build:cjs' 'npm:build:es'",
|
|
11
|
+
"build:cjs": "tsc -p tsconfig.json",
|
|
12
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
13
|
+
"build:slim": "node ./scripts/build_slim.js",
|
|
14
|
+
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
|
15
|
+
"clean": "rimraf tencentcloud es"
|
|
10
16
|
},
|
|
11
17
|
"engines": {
|
|
12
18
|
"node": ">=10"
|
|
13
19
|
},
|
|
20
|
+
"files": [
|
|
21
|
+
"tencentcloud",
|
|
22
|
+
"es"
|
|
23
|
+
],
|
|
14
24
|
"keywords": [
|
|
15
25
|
"tencentcloudapi",
|
|
16
26
|
"tencentcloud",
|
|
@@ -43,10 +53,13 @@
|
|
|
43
53
|
"@typescript-eslint/parser": "^2.34.0",
|
|
44
54
|
"babel-eslint": "^10.0.2",
|
|
45
55
|
"chai": "^4.2.0",
|
|
56
|
+
"concurrently": "^6.5.1",
|
|
57
|
+
"esbuild": "^0.25.0",
|
|
46
58
|
"eslint": "^6.8.0",
|
|
47
59
|
"eslint-plugin-react": "^7.17.0",
|
|
48
|
-
"mocha": "^8.
|
|
60
|
+
"mocha": "^8.4.0",
|
|
49
61
|
"prettier": "^2.3.0",
|
|
62
|
+
"rimraf": "^5.0.10",
|
|
50
63
|
"ts-node": "^8.10.2",
|
|
51
64
|
"typescript": "^3.9.7"
|
|
52
65
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.v20190722 = void 0;
|
|
4
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Models = tslib_1.__importStar(require("./trtc_models"));
|
|
5
6
|
const trtc_client_1 = require("./trtc_client");
|
|
6
7
|
exports.v20190722 = {
|
|
7
8
|
Client: trtc_client_1.Client,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Client = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
6
|
/*
|
|
6
7
|
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
@@ -18,7 +19,7 @@ exports.Client = void 0;
|
|
|
18
19
|
* specific language governing permissions and limitations
|
|
19
20
|
* under the License.
|
|
20
21
|
*/
|
|
21
|
-
const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
|
|
22
|
+
const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
|
|
22
23
|
/**
|
|
23
24
|
* trtc client
|
|
24
25
|
* @class
|
|
@@ -2503,6 +2503,10 @@ export interface DescribeCloudRecordingRequest {
|
|
|
2503
2503
|
* 录制任务的唯一Id,在启动录制成功后会返回。
|
|
2504
2504
|
*/
|
|
2505
2505
|
TaskId: string;
|
|
2506
|
+
/**
|
|
2507
|
+
* 转推录制任务发起时所填,标识一次录制
|
|
2508
|
+
*/
|
|
2509
|
+
RecorderKey?: string;
|
|
2506
2510
|
}
|
|
2507
2511
|
/**
|
|
2508
2512
|
* 腾讯云点播相关参数。
|
|
@@ -3517,6 +3521,10 @@ export interface DescribeCloudRecordingResponse {
|
|
|
3517
3521
|
* 录制文件信息。
|
|
3518
3522
|
*/
|
|
3519
3523
|
StorageFileList?: Array<StorageFile>;
|
|
3524
|
+
/**
|
|
3525
|
+
* 转推录制任务发起时所填,标识一次录制
|
|
3526
|
+
*/
|
|
3527
|
+
RecorderKey?: string;
|
|
3520
3528
|
/**
|
|
3521
3529
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3522
3530
|
*/
|
package/index.d.ts
DELETED
package/index.js
DELETED
package/prettier.config.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// prettier.config.js
|
|
2
|
-
module.exports = {
|
|
3
|
-
// 一行最多 100 字符
|
|
4
|
-
printWidth: 100,
|
|
5
|
-
// 使用 4 个空格缩进
|
|
6
|
-
tabWidth: 2,
|
|
7
|
-
// 不使用缩进符,而使用空格
|
|
8
|
-
useTabs: false,
|
|
9
|
-
// 行尾需要有分号
|
|
10
|
-
semi: false,
|
|
11
|
-
// 使用单引号
|
|
12
|
-
singleQuote: false,
|
|
13
|
-
// 对象的 key 仅在必要时用引号
|
|
14
|
-
quoteProps: "as-needed",
|
|
15
|
-
// jsx 不使用单引号,而使用双引号
|
|
16
|
-
jsxSingleQuote: false,
|
|
17
|
-
// 末尾不需要逗号
|
|
18
|
-
trailingComma: "es5",
|
|
19
|
-
// 大括号内的首尾需要空格
|
|
20
|
-
bracketSpacing: true,
|
|
21
|
-
// jsx 标签的反尖括号需要换行
|
|
22
|
-
jsxBracketSameLine: false,
|
|
23
|
-
// 箭头函数,只有一个参数的时候,也需要括号
|
|
24
|
-
arrowParens: "always",
|
|
25
|
-
// 每个文件格式化的范围是文件的全部内容
|
|
26
|
-
rangeStart: 0,
|
|
27
|
-
rangeEnd: Infinity,
|
|
28
|
-
// 不需要写文件开头的 @prettier
|
|
29
|
-
requirePragma: false,
|
|
30
|
-
// 不需要自动在文件开头插入 @prettier
|
|
31
|
-
insertPragma: false,
|
|
32
|
-
// 使用默认的折行标准
|
|
33
|
-
proseWrap: "preserve",
|
|
34
|
-
// 根据显示样式决定 html 要不要折行
|
|
35
|
-
htmlWhitespaceSensitivity: "css",
|
|
36
|
-
// 换行符使用 lf
|
|
37
|
-
endOfLine: "lf",
|
|
38
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./services"
|
package/src/services/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { trtc } from "./trtc"
|