tencentcloud-sdk-nodejs 4.0.856 → 4.0.858
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 +146 -0
- package/SERVICE_CHANGELOG.md +157 -190
- package/package.json +1 -1
- package/products.md +17 -17
- package/src/common/sdk_version.ts +1 -1
- package/src/services/ccc/v20200210/ccc_models.ts +46 -6
- package/src/services/cdn/v20180606/cdn_models.ts +14 -0
- package/src/services/ckafka/v20190819/ckafka_models.ts +12 -12
- package/src/services/dsgc/v20190723/dsgc_models.ts +4 -9
- package/src/services/gme/v20180711/gme_models.ts +7 -7
- package/src/services/hunyuan/v20230901/hunyuan_models.ts +9 -0
- package/src/services/mps/v20190612/mps_models.ts +13 -13
- package/src/services/ocr/v20181119/ocr_models.ts +20 -0
- package/src/services/rce/v20201103/rce_models.ts +6 -22
- package/src/services/sms/v20210111/sms_models.ts +4 -2
- package/src/services/tmt/v20180321/tmt_client.ts +0 -1
- package/src/services/tmt/v20180321/tmt_models.ts +10 -8
- package/src/services/trtc/v20190722/trtc_client.ts +56 -6
- package/src/services/trtc/v20190722/trtc_models.ts +166 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +46 -6
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +14 -0
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +12 -12
- package/tencentcloud/services/dsgc/v20190723/dsgc_models.d.ts +4 -9
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +7 -7
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_models.d.ts +9 -0
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +13 -13
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +20 -0
- package/tencentcloud/services/rce/v20201103/rce_models.d.ts +6 -22
- package/tencentcloud/services/sms/v20210111/sms_models.d.ts +4 -2
- package/tencentcloud/services/tmt/v20180321/tmt_client.d.ts +0 -1
- package/tencentcloud/services/tmt/v20180321/tmt_client.js +0 -1
- package/tencentcloud/services/tmt/v20180321/tmt_models.d.ts +10 -8
- package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +19 -3
- package/tencentcloud/services/trtc/v20190722/trtc_client.js +27 -3
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +156 -0
- package/test/trtc.v20190722.test.js +42 -2
|
@@ -1343,6 +1343,15 @@ export interface DescribeTRTCRealTimeQualityMetricDataRequest {
|
|
|
1343
1343
|
*/
|
|
1344
1344
|
RoomId?: string;
|
|
1345
1345
|
}
|
|
1346
|
+
/**
|
|
1347
|
+
* DescribeAITranscription请求参数结构体
|
|
1348
|
+
*/
|
|
1349
|
+
export interface DescribeAITranscriptionRequest {
|
|
1350
|
+
/**
|
|
1351
|
+
* 唯一标识AI转录任务。
|
|
1352
|
+
*/
|
|
1353
|
+
TaskId: string;
|
|
1354
|
+
}
|
|
1346
1355
|
/**
|
|
1347
1356
|
* 查询旁路转码计费时长。
|
|
1348
1357
|
查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。
|
|
@@ -2327,6 +2336,33 @@ export interface StopMCUMixTranscodeByStrRoomIdRequest {
|
|
|
2327
2336
|
*/
|
|
2328
2337
|
StrRoomId: string;
|
|
2329
2338
|
}
|
|
2339
|
+
/**
|
|
2340
|
+
* 语音识别使用的配置
|
|
2341
|
+
*/
|
|
2342
|
+
export interface RecognizeConfig {
|
|
2343
|
+
/**
|
|
2344
|
+
* 支持的语言,目前支持语言如下:
|
|
2345
|
+
Chinese = "zh"
|
|
2346
|
+
Chinese_TW = "zh-TW"
|
|
2347
|
+
English = "en"
|
|
2348
|
+
Vietnamese = "vi"
|
|
2349
|
+
Japanese = "ja"
|
|
2350
|
+
Korean = "ko"
|
|
2351
|
+
Indonesia = "id"
|
|
2352
|
+
Thai = "th"
|
|
2353
|
+
Portuguese = "pt"
|
|
2354
|
+
Turkish = "tr"
|
|
2355
|
+
Arabic = "ar"
|
|
2356
|
+
Spanish = "es"
|
|
2357
|
+
Hindi = "hi"
|
|
2358
|
+
French = "fr"
|
|
2359
|
+
*/
|
|
2360
|
+
Language?: string;
|
|
2361
|
+
/**
|
|
2362
|
+
* 选填,如果填写,则会启用翻译,不填则忽略。支持语言同Language字段。
|
|
2363
|
+
*/
|
|
2364
|
+
TranslationLanguage?: string;
|
|
2365
|
+
}
|
|
2330
2366
|
/**
|
|
2331
2367
|
* Es返回的质量数据
|
|
2332
2368
|
*/
|
|
@@ -2797,6 +2833,31 @@ export interface DescribeCloudRecordingResponse {
|
|
|
2797
2833
|
*/
|
|
2798
2834
|
RequestId?: string;
|
|
2799
2835
|
}
|
|
2836
|
+
/**
|
|
2837
|
+
* StartAITranscription请求参数结构体
|
|
2838
|
+
*/
|
|
2839
|
+
export interface StartAITranscriptionRequest {
|
|
2840
|
+
/**
|
|
2841
|
+
* TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),使用该sdkappid开启任务。
|
|
2842
|
+
*/
|
|
2843
|
+
SdkAppId: number;
|
|
2844
|
+
/**
|
|
2845
|
+
* TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),使用该roomid开启任务。
|
|
2846
|
+
*/
|
|
2847
|
+
RoomId: string;
|
|
2848
|
+
/**
|
|
2849
|
+
* 启动转录机器人和鉴权的参数。
|
|
2850
|
+
*/
|
|
2851
|
+
TranscriptionParams: TranscriptionParams;
|
|
2852
|
+
/**
|
|
2853
|
+
* TRTC房间号的类型,0代表数字房间号,1代表字符串房间号。不填默认是数字房间号。
|
|
2854
|
+
*/
|
|
2855
|
+
RoomIdType?: number;
|
|
2856
|
+
/**
|
|
2857
|
+
* 语音识别配置
|
|
2858
|
+
*/
|
|
2859
|
+
RecognizeConfig?: RecognizeConfig;
|
|
2860
|
+
}
|
|
2800
2861
|
/**
|
|
2801
2862
|
* DismissRoom返回参数结构体
|
|
2802
2863
|
*/
|
|
@@ -2884,6 +2945,10 @@ export interface DescribeTRTCMarketQualityDataRequest {
|
|
|
2884
2945
|
*/
|
|
2885
2946
|
Period: string;
|
|
2886
2947
|
}
|
|
2948
|
+
/**
|
|
2949
|
+
* SummarizeTranscription请求参数结构体
|
|
2950
|
+
*/
|
|
2951
|
+
export declare type SummarizeTranscriptionRequest = null;
|
|
2887
2952
|
/**
|
|
2888
2953
|
* UpdatePublishCdnStream请求参数结构体
|
|
2889
2954
|
*/
|
|
@@ -3000,6 +3065,15 @@ export interface StopWebRecordResponse {
|
|
|
3000
3065
|
*/
|
|
3001
3066
|
RequestId?: string;
|
|
3002
3067
|
}
|
|
3068
|
+
/**
|
|
3069
|
+
* SummarizeTranscription返回参数结构体
|
|
3070
|
+
*/
|
|
3071
|
+
export interface SummarizeTranscriptionResponse {
|
|
3072
|
+
/**
|
|
3073
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3074
|
+
*/
|
|
3075
|
+
RequestId?: string;
|
|
3076
|
+
}
|
|
3003
3077
|
/**
|
|
3004
3078
|
* DeletePicture请求参数结构体
|
|
3005
3079
|
*/
|
|
@@ -3026,6 +3100,15 @@ export interface McuSeiParams {
|
|
|
3026
3100
|
*/
|
|
3027
3101
|
PassThrough?: McuPassThrough;
|
|
3028
3102
|
}
|
|
3103
|
+
/**
|
|
3104
|
+
* StopAITranscription请求参数结构体
|
|
3105
|
+
*/
|
|
3106
|
+
export interface StopAITranscriptionRequest {
|
|
3107
|
+
/**
|
|
3108
|
+
* 唯一标识转录任务。
|
|
3109
|
+
*/
|
|
3110
|
+
TaskId: string;
|
|
3111
|
+
}
|
|
3029
3112
|
/**
|
|
3030
3113
|
* UpdatePublishCdnStream返回参数结构体
|
|
3031
3114
|
*/
|
|
@@ -3088,6 +3171,40 @@ export interface McuWaterMarkText {
|
|
|
3088
3171
|
*/
|
|
3089
3172
|
Font?: string;
|
|
3090
3173
|
}
|
|
3174
|
+
/**
|
|
3175
|
+
* AI转录参数
|
|
3176
|
+
*/
|
|
3177
|
+
export interface TranscriptionParams {
|
|
3178
|
+
/**
|
|
3179
|
+
* 转录机器人的UserId,用于进房发起转录任务。【注意】这个UserId不能与当前房间内的主播观众[UserId](https://cloud.tencent.com/document/product/647/46351#userid)重复。如果一个房间发起多个转录任务时,机器人的userid也不能相互重复,否则会中断前一个任务。需要保证转录机器人UserId在房间内唯一。
|
|
3180
|
+
*/
|
|
3181
|
+
UserId: string;
|
|
3182
|
+
/**
|
|
3183
|
+
* 转录机器人UserId对应的校验签名,即UserId和UserSig相当于转录机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
|
|
3184
|
+
*/
|
|
3185
|
+
UserSig: string;
|
|
3186
|
+
/**
|
|
3187
|
+
* IM[管理员账户](
|
|
3188
|
+
https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.91.98),如果填写,后台下发消息会使用IM通道,而不是TRTC自定义消息。
|
|
3189
|
+
*/
|
|
3190
|
+
IMAdminUserId?: string;
|
|
3191
|
+
/**
|
|
3192
|
+
* IM管理员账户生成的签名,用于向特定群组发送消息。如果填写,后台下发消息会使用IM通道,而不是TRTC自定义消息。必须和IM管理员的UserId一起填写。
|
|
3193
|
+
*/
|
|
3194
|
+
IMAdminUserSig?: string;
|
|
3195
|
+
/**
|
|
3196
|
+
* 房间内推流用户全部退出后超过MaxIdleTime秒,后台自动关闭转录任务,默认值是60s。
|
|
3197
|
+
*/
|
|
3198
|
+
MaxIdleTime?: number;
|
|
3199
|
+
/**
|
|
3200
|
+
* 1表示机器人只订阅单个人的流,0表示机器人订阅整个房间的流,如果不填默认订阅整个房间的流。
|
|
3201
|
+
*/
|
|
3202
|
+
TranscriptionMode?: number;
|
|
3203
|
+
/**
|
|
3204
|
+
* TranscriptionMode为1时必填,机器人只会拉该userid的流,忽略房间里其他用户。
|
|
3205
|
+
*/
|
|
3206
|
+
TargetUserId?: string;
|
|
3207
|
+
}
|
|
3091
3208
|
/**
|
|
3092
3209
|
* SeriesInfos类型
|
|
3093
3210
|
*/
|
|
@@ -3296,6 +3413,15 @@ export interface AudioParams {
|
|
|
3296
3413
|
*/
|
|
3297
3414
|
BitRate: number;
|
|
3298
3415
|
}
|
|
3416
|
+
/**
|
|
3417
|
+
* StopAITranscription返回参数结构体
|
|
3418
|
+
*/
|
|
3419
|
+
export interface StopAITranscriptionResponse {
|
|
3420
|
+
/**
|
|
3421
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3422
|
+
*/
|
|
3423
|
+
RequestId?: string;
|
|
3424
|
+
}
|
|
3299
3425
|
/**
|
|
3300
3426
|
* SeriesInfo类型
|
|
3301
3427
|
*/
|
|
@@ -3352,6 +3478,23 @@ export interface PublishCdnParams {
|
|
|
3352
3478
|
*/
|
|
3353
3479
|
PublishCdnUrls: Array<string>;
|
|
3354
3480
|
}
|
|
3481
|
+
/**
|
|
3482
|
+
* DescribeAITranscription返回参数结构体
|
|
3483
|
+
*/
|
|
3484
|
+
export interface DescribeAITranscriptionResponse {
|
|
3485
|
+
/**
|
|
3486
|
+
* 起始时间。
|
|
3487
|
+
*/
|
|
3488
|
+
StartTime?: string;
|
|
3489
|
+
/**
|
|
3490
|
+
* 转录任务状态。
|
|
3491
|
+
*/
|
|
3492
|
+
Status?: string;
|
|
3493
|
+
/**
|
|
3494
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3495
|
+
*/
|
|
3496
|
+
RequestId?: string;
|
|
3497
|
+
}
|
|
3355
3498
|
/**
|
|
3356
3499
|
* 水印参数。
|
|
3357
3500
|
*/
|
|
@@ -3436,6 +3579,19 @@ export interface CreatePictureResponse {
|
|
|
3436
3579
|
*/
|
|
3437
3580
|
RequestId?: string;
|
|
3438
3581
|
}
|
|
3582
|
+
/**
|
|
3583
|
+
* StartAITranscription返回参数结构体
|
|
3584
|
+
*/
|
|
3585
|
+
export interface StartAITranscriptionResponse {
|
|
3586
|
+
/**
|
|
3587
|
+
* 用于唯一标识转录任务。
|
|
3588
|
+
*/
|
|
3589
|
+
TaskId?: string;
|
|
3590
|
+
/**
|
|
3591
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3592
|
+
*/
|
|
3593
|
+
RequestId?: string;
|
|
3594
|
+
}
|
|
3439
3595
|
/**
|
|
3440
3596
|
* RemoveUser返回参数结构体
|
|
3441
3597
|
*/
|
|
@@ -228,6 +228,16 @@ it("trtc.v20190722.StartMCUMixTranscode", async function () {
|
|
|
228
228
|
}
|
|
229
229
|
})
|
|
230
230
|
|
|
231
|
+
it("trtc.v20190722.StartAITranscription", async function () {
|
|
232
|
+
try {
|
|
233
|
+
const data = await client.StartAITranscription({})
|
|
234
|
+
expect(data).to.be.ok
|
|
235
|
+
} catch(error) {
|
|
236
|
+
expect(error.requestId).to.be.ok
|
|
237
|
+
expect(error.code).to.be.ok
|
|
238
|
+
}
|
|
239
|
+
})
|
|
240
|
+
|
|
231
241
|
it("trtc.v20190722.DescribeTRTCMarketScaleData", async function () {
|
|
232
242
|
try {
|
|
233
243
|
const data = await client.DescribeTRTCMarketScaleData({})
|
|
@@ -248,6 +258,16 @@ it("trtc.v20190722.StopWebRecord", async function () {
|
|
|
248
258
|
}
|
|
249
259
|
})
|
|
250
260
|
|
|
261
|
+
it("trtc.v20190722.StopPublishCdnStream", async function () {
|
|
262
|
+
try {
|
|
263
|
+
const data = await client.StopPublishCdnStream({})
|
|
264
|
+
expect(data).to.be.ok
|
|
265
|
+
} catch(error) {
|
|
266
|
+
expect(error.requestId).to.be.ok
|
|
267
|
+
expect(error.code).to.be.ok
|
|
268
|
+
}
|
|
269
|
+
})
|
|
270
|
+
|
|
251
271
|
it("trtc.v20190722.CreateCloudRecording", async function () {
|
|
252
272
|
try {
|
|
253
273
|
const data = await client.CreateCloudRecording({})
|
|
@@ -308,6 +328,16 @@ it("trtc.v20190722.StopMCUMixTranscodeByStrRoomId", async function () {
|
|
|
308
328
|
}
|
|
309
329
|
})
|
|
310
330
|
|
|
331
|
+
it("trtc.v20190722.SummarizeTranscription", async function () {
|
|
332
|
+
try {
|
|
333
|
+
const data = await client.SummarizeTranscription({})
|
|
334
|
+
expect(data).to.be.ok
|
|
335
|
+
} catch(error) {
|
|
336
|
+
expect(error.requestId).to.be.ok
|
|
337
|
+
expect(error.code).to.be.ok
|
|
338
|
+
}
|
|
339
|
+
})
|
|
340
|
+
|
|
311
341
|
it("trtc.v20190722.DescribeRecordingUsage", async function () {
|
|
312
342
|
try {
|
|
313
343
|
const data = await client.DescribeRecordingUsage({})
|
|
@@ -398,6 +428,16 @@ it("trtc.v20190722.ModifyPicture", async function () {
|
|
|
398
428
|
}
|
|
399
429
|
})
|
|
400
430
|
|
|
431
|
+
it("trtc.v20190722.DescribeAITranscription", async function () {
|
|
432
|
+
try {
|
|
433
|
+
const data = await client.DescribeAITranscription({})
|
|
434
|
+
expect(data).to.be.ok
|
|
435
|
+
} catch(error) {
|
|
436
|
+
expect(error.requestId).to.be.ok
|
|
437
|
+
expect(error.code).to.be.ok
|
|
438
|
+
}
|
|
439
|
+
})
|
|
440
|
+
|
|
401
441
|
it("trtc.v20190722.UpdatePublishCdnStream", async function () {
|
|
402
442
|
try {
|
|
403
443
|
const data = await client.UpdatePublishCdnStream({})
|
|
@@ -448,9 +488,9 @@ it("trtc.v20190722.DescribeTRTCMarketQualityData", async function () {
|
|
|
448
488
|
}
|
|
449
489
|
})
|
|
450
490
|
|
|
451
|
-
it("trtc.v20190722.
|
|
491
|
+
it("trtc.v20190722.StopAITranscription", async function () {
|
|
452
492
|
try {
|
|
453
|
-
const data = await client.
|
|
493
|
+
const data = await client.StopAITranscription({})
|
|
454
494
|
expect(data).to.be.ok
|
|
455
495
|
} catch(error) {
|
|
456
496
|
expect(error.requestId).to.be.ok
|