tencentcloud-sdk-nodejs-lcic 4.0.449
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/CHANGELOG.md +97239 -0
- package/LICENSE +201 -0
- package/README.md +149 -0
- package/SERVICE_CHANGELOG.md +92988 -0
- package/index.d.ts +2 -0
- package/index.js +6 -0
- package/package.json +47 -0
- package/prettier.config.js +38 -0
- package/products.md +220 -0
- package/src/index.ts +1 -0
- package/src/services/index.ts +1 -0
- package/src/services/lcic/index.ts +5 -0
- package/src/services/lcic/v20220817/index.ts +6 -0
- package/src/services/lcic/v20220817/lcic_client.ts +114 -0
- package/src/services/lcic/v20220817/lcic_models.ts +371 -0
- package/tencentcloud/index.d.ts +1 -0
- package/tencentcloud/index.js +4 -0
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +4 -0
- package/tencentcloud/services/lcic/index.d.ts +6 -0
- package/tencentcloud/services/lcic/index.js +7 -0
- package/tencentcloud/services/lcic/v20220817/index.d.ts +6 -0
- package/tencentcloud/services/lcic/v20220817/index.js +9 -0
- package/tencentcloud/services/lcic/v20220817/lcic_client.d.ts +37 -0
- package/tencentcloud/services/lcic/v20220817/lcic_client.js +73 -0
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +302 -0
- package/tencentcloud/services/lcic/v20220817/lcic_models.js +18 -0
- package/tsconfig.json +33 -0
- package/typings/index.d.ts +2 -0
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* CreateRoom请求参数结构体
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateRoomRequest {
|
|
22
|
+
/**
|
|
23
|
+
* 房间名称。
|
|
24
|
+
*/
|
|
25
|
+
Name: string
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 预定的房间开始时间,unix时间戳。
|
|
29
|
+
*/
|
|
30
|
+
StartTime: number
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 预定的房间结束时间,unix时间戳。
|
|
34
|
+
*/
|
|
35
|
+
EndTime: number
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 低代码互动课堂的SdkAppId。
|
|
39
|
+
*/
|
|
40
|
+
SdkAppId: number
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 分辨率。可以有如下取值:
|
|
44
|
+
1 标清
|
|
45
|
+
2 高清
|
|
46
|
+
3 全高清
|
|
47
|
+
*/
|
|
48
|
+
Resolution: number
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* 最大连麦人数(不包括老师)。取值范围[0, 17)
|
|
52
|
+
*/
|
|
53
|
+
MaxMicNumber: number
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* 房间子类型,可以有以下取值:
|
|
57
|
+
videodoc 文档+视频
|
|
58
|
+
video 纯视频
|
|
59
|
+
coteaching 双师
|
|
60
|
+
*/
|
|
61
|
+
SubType: string
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* 老师ID。
|
|
65
|
+
*/
|
|
66
|
+
TeacherId?: string
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* 进入房间时是否自动连麦。可以有以下取值:
|
|
70
|
+
0 不自动连麦(默认值)
|
|
71
|
+
1 自动连麦
|
|
72
|
+
*/
|
|
73
|
+
AutoMic?: number
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* 高音质模式。可以有以下取值:
|
|
77
|
+
0 不开启高音质(默认值)
|
|
78
|
+
1 开启高音质
|
|
79
|
+
*/
|
|
80
|
+
AudioQuality?: number
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* 禁止录制。可以有以下取值:
|
|
84
|
+
0 不禁止录制(默认值)
|
|
85
|
+
1 禁止录制
|
|
86
|
+
*/
|
|
87
|
+
DisableRecord?: number
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* 助教Id列表。
|
|
91
|
+
*/
|
|
92
|
+
Assistants?: Array<string>
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* 录制布局。
|
|
96
|
+
*/
|
|
97
|
+
RecordLayout?: number
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* CreateSupervisor请求参数结构体
|
|
102
|
+
*/
|
|
103
|
+
export type CreateSupervisorRequest = null
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* DescribeRoom返回参数结构体
|
|
107
|
+
*/
|
|
108
|
+
export interface DescribeRoomResponse {
|
|
109
|
+
/**
|
|
110
|
+
* 房间名称。
|
|
111
|
+
*/
|
|
112
|
+
Name: string
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* 预定的房间开始时间,unix时间戳。
|
|
116
|
+
*/
|
|
117
|
+
StartTime: number
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* 预定的房间结束时间,unix时间戳。
|
|
121
|
+
*/
|
|
122
|
+
EndTime: number
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* 老师ID。
|
|
126
|
+
*/
|
|
127
|
+
TeacherId: string
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* 低代码互动课堂的SdkAppId。
|
|
131
|
+
*/
|
|
132
|
+
SdkAppId: number
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* 分辨率。可以有如下取值:
|
|
136
|
+
1 标清
|
|
137
|
+
2 高清
|
|
138
|
+
3 全高清
|
|
139
|
+
*/
|
|
140
|
+
Resolution: number
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* 最大连麦人数(不包括老师)。取值范围[0, 17)
|
|
144
|
+
*/
|
|
145
|
+
MaxMicNumber: number
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* 进入房间时是否自动连麦。可以有以下取值:
|
|
149
|
+
0 不自动连麦(默认值)
|
|
150
|
+
1 自动连麦
|
|
151
|
+
*/
|
|
152
|
+
AutoMic: number
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* 高音质模式。可以有以下取值:
|
|
156
|
+
0 不开启高音质(默认值)
|
|
157
|
+
1 开启高音质
|
|
158
|
+
*/
|
|
159
|
+
AudioQuality: number
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* 房间子类型,可以有以下取值:
|
|
163
|
+
videodoc 文档+视频
|
|
164
|
+
video 纯视频
|
|
165
|
+
coteaching 双师
|
|
166
|
+
*/
|
|
167
|
+
SubType: string
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* 禁止录制。可以有以下取值:
|
|
171
|
+
0 不禁止录制(默认值)
|
|
172
|
+
1 禁止录制
|
|
173
|
+
*/
|
|
174
|
+
DisableRecord: number
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* 助教Id列表。
|
|
178
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
179
|
+
*/
|
|
180
|
+
Assistants: Array<string>
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
184
|
+
*/
|
|
185
|
+
RequestId?: string
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* RegisterUser请求参数结构体
|
|
190
|
+
*/
|
|
191
|
+
export interface RegisterUserRequest {
|
|
192
|
+
/**
|
|
193
|
+
* 低代码互动课堂的SdkAppId。
|
|
194
|
+
*/
|
|
195
|
+
SdkAppId: number
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* 用户名称。
|
|
199
|
+
*/
|
|
200
|
+
Name?: string
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* 用户在客户系统的Id,需要在同一应用下唯一。
|
|
204
|
+
*/
|
|
205
|
+
OriginId?: string
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* 用户头像。
|
|
209
|
+
*/
|
|
210
|
+
Avatar?: string
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* LoginOriginId请求参数结构体
|
|
215
|
+
*/
|
|
216
|
+
export interface LoginOriginIdRequest {
|
|
217
|
+
/**
|
|
218
|
+
* 低代码互动课堂的SdkAppId。
|
|
219
|
+
*/
|
|
220
|
+
SdkAppId: number
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* 用户在客户系统的Id,需要在同一应用下唯一。
|
|
224
|
+
*/
|
|
225
|
+
OriginId: string
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* DescribeUser请求参数结构体
|
|
230
|
+
*/
|
|
231
|
+
export interface DescribeUserRequest {
|
|
232
|
+
/**
|
|
233
|
+
* 用户Id。
|
|
234
|
+
*/
|
|
235
|
+
UserId: string
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* RegisterUser返回参数结构体
|
|
240
|
+
*/
|
|
241
|
+
export interface RegisterUserResponse {
|
|
242
|
+
/**
|
|
243
|
+
* 用户Id。
|
|
244
|
+
*/
|
|
245
|
+
UserId: string
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* 登录/注册成功后返回登录态token。有效期7天。
|
|
249
|
+
*/
|
|
250
|
+
Token: string
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
254
|
+
*/
|
|
255
|
+
RequestId?: string
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* LoginUser请求参数结构体
|
|
260
|
+
*/
|
|
261
|
+
export interface LoginUserRequest {
|
|
262
|
+
/**
|
|
263
|
+
* 注册获取的用户id。
|
|
264
|
+
*/
|
|
265
|
+
UserId: string
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* CreateSupervisor返回参数结构体
|
|
270
|
+
*/
|
|
271
|
+
export interface CreateSupervisorResponse {
|
|
272
|
+
/**
|
|
273
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
274
|
+
*/
|
|
275
|
+
RequestId?: string
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* CreateRoom返回参数结构体
|
|
280
|
+
*/
|
|
281
|
+
export interface CreateRoomResponse {
|
|
282
|
+
/**
|
|
283
|
+
* 房间ID。
|
|
284
|
+
*/
|
|
285
|
+
RoomId: number
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
289
|
+
*/
|
|
290
|
+
RequestId?: string
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* DescribeUser返回参数结构体
|
|
295
|
+
*/
|
|
296
|
+
export interface DescribeUserResponse {
|
|
297
|
+
/**
|
|
298
|
+
* 应用Id。
|
|
299
|
+
*/
|
|
300
|
+
SdkAppId: number
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* 用户Id。
|
|
304
|
+
*/
|
|
305
|
+
UserId: string
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* 用户昵称。
|
|
309
|
+
*/
|
|
310
|
+
Name: string
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* 用户头像Url。
|
|
314
|
+
*/
|
|
315
|
+
Avatar: string
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
319
|
+
*/
|
|
320
|
+
RequestId?: string
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* DescribeRoom请求参数结构体
|
|
325
|
+
*/
|
|
326
|
+
export interface DescribeRoomRequest {
|
|
327
|
+
/**
|
|
328
|
+
* 房间Id。
|
|
329
|
+
*/
|
|
330
|
+
RoomId: number
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* LoginOriginId返回参数结构体
|
|
335
|
+
*/
|
|
336
|
+
export interface LoginOriginIdResponse {
|
|
337
|
+
/**
|
|
338
|
+
* 用户Id。
|
|
339
|
+
*/
|
|
340
|
+
UserId: string
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* 登录/注册成功后返回登录态token。有效期7天。
|
|
344
|
+
*/
|
|
345
|
+
Token: string
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
349
|
+
*/
|
|
350
|
+
RequestId?: string
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* LoginUser返回参数结构体
|
|
355
|
+
*/
|
|
356
|
+
export interface LoginUserResponse {
|
|
357
|
+
/**
|
|
358
|
+
* 用户Id。
|
|
359
|
+
*/
|
|
360
|
+
UserId: string
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* 登录/注册成功后返回登录态token。有效期7天。
|
|
364
|
+
*/
|
|
365
|
+
Token: string
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
369
|
+
*/
|
|
370
|
+
RequestId?: string
|
|
371
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./services";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { lcic } from "./lcic";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v20220817 = void 0;
|
|
4
|
+
const Models = require("./lcic_models");
|
|
5
|
+
const lcic_client_1 = require("./lcic_client");
|
|
6
|
+
exports.v20220817 = {
|
|
7
|
+
Client: lcic_client_1.Client,
|
|
8
|
+
Models: Models,
|
|
9
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
import { CreateRoomRequest, CreateSupervisorRequest, DescribeRoomResponse, RegisterUserRequest, LoginOriginIdRequest, DescribeUserRequest, RegisterUserResponse, LoginUserRequest, CreateSupervisorResponse, CreateRoomResponse, DescribeUserResponse, DescribeRoomRequest, LoginOriginIdResponse, LoginUserResponse } from "./lcic_models";
|
|
3
|
+
/**
|
|
4
|
+
* lcic client
|
|
5
|
+
* @class
|
|
6
|
+
*/
|
|
7
|
+
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
|
+
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
|
+
/**
|
|
10
|
+
* 获取用户信息
|
|
11
|
+
*/
|
|
12
|
+
DescribeUser(req: DescribeUserRequest, cb?: (error: string, rep: DescribeUserResponse) => void): Promise<DescribeUserResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* 使用源账号登录,源账号为注册时填入的originId
|
|
15
|
+
*/
|
|
16
|
+
LoginOriginId(req: LoginOriginIdRequest, cb?: (error: string, rep: LoginOriginIdResponse) => void): Promise<LoginOriginIdResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* 注册用户
|
|
19
|
+
*/
|
|
20
|
+
RegisterUser(req: RegisterUserRequest, cb?: (error: string, rep: RegisterUserResponse) => void): Promise<RegisterUserResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* 登录
|
|
23
|
+
*/
|
|
24
|
+
LoginUser(req: LoginUserRequest, cb?: (error: string, rep: LoginUserResponse) => void): Promise<LoginUserResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* 创建巡课
|
|
27
|
+
*/
|
|
28
|
+
CreateSupervisor(req?: CreateSupervisorRequest, cb?: (error: string, rep: CreateSupervisorResponse) => void): Promise<CreateSupervisorResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* 获取房间信息
|
|
31
|
+
*/
|
|
32
|
+
DescribeRoom(req: DescribeRoomRequest, cb?: (error: string, rep: DescribeRoomResponse) => void): Promise<DescribeRoomResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* 创建房间
|
|
35
|
+
*/
|
|
36
|
+
CreateRoom(req: CreateRoomRequest, cb?: (error: string, rep: CreateRoomResponse) => void): Promise<CreateRoomResponse>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing,
|
|
15
|
+
* software distributed under the License is distributed on an
|
|
16
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
+
* KIND, either express or implied. See the License for the
|
|
18
|
+
* specific language governing permissions and limitations
|
|
19
|
+
* under the License.
|
|
20
|
+
*/
|
|
21
|
+
const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
|
|
22
|
+
/**
|
|
23
|
+
* lcic client
|
|
24
|
+
* @class
|
|
25
|
+
*/
|
|
26
|
+
class Client extends TencentCloudCommon.AbstractClient {
|
|
27
|
+
constructor(clientConfig) {
|
|
28
|
+
super("lcic.tencentcloudapi.com", "2022-08-17", clientConfig);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 获取用户信息
|
|
32
|
+
*/
|
|
33
|
+
async DescribeUser(req, cb) {
|
|
34
|
+
return this.request("DescribeUser", req, cb);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 使用源账号登录,源账号为注册时填入的originId
|
|
38
|
+
*/
|
|
39
|
+
async LoginOriginId(req, cb) {
|
|
40
|
+
return this.request("LoginOriginId", req, cb);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 注册用户
|
|
44
|
+
*/
|
|
45
|
+
async RegisterUser(req, cb) {
|
|
46
|
+
return this.request("RegisterUser", req, cb);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* 登录
|
|
50
|
+
*/
|
|
51
|
+
async LoginUser(req, cb) {
|
|
52
|
+
return this.request("LoginUser", req, cb);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 创建巡课
|
|
56
|
+
*/
|
|
57
|
+
async CreateSupervisor(req, cb) {
|
|
58
|
+
return this.request("CreateSupervisor", req, cb);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 获取房间信息
|
|
62
|
+
*/
|
|
63
|
+
async DescribeRoom(req, cb) {
|
|
64
|
+
return this.request("DescribeRoom", req, cb);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* 创建房间
|
|
68
|
+
*/
|
|
69
|
+
async CreateRoom(req, cb) {
|
|
70
|
+
return this.request("CreateRoom", req, cb);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.Client = Client;
|