tencentcloud-sdk-nodejs-mps 4.0.828 → 4.0.843

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.
@@ -466,51 +466,56 @@ export interface AdaptiveDynamicStreamingTemplate {
466
466
  /**
467
467
  * 转自适应码流模板唯一标识。
468
468
  */
469
- Definition: number
469
+ Definition?: number
470
470
  /**
471
471
  * 模板类型,取值范围:
472
472
  <li>Preset:系统预置模板;</li>
473
473
  <li>Custom:用户自定义模板。</li>
474
474
  */
475
- Type: string
475
+ Type?: string
476
476
  /**
477
477
  * 转自适应码流模板名称。
478
478
  */
479
- Name: string
479
+ Name?: string
480
480
  /**
481
481
  * 转自适应码流模板描述信息。
482
482
  */
483
- Comment: string
483
+ Comment?: string
484
484
  /**
485
485
  * 转自适应码流格式,取值范围:
486
486
  <li>HLS,</li>
487
487
  <li>MPEG-DASH。</li>
488
488
  */
489
- Format: string
489
+ Format?: string
490
490
  /**
491
491
  * 转自适应码流输入流参数信息,最多输入10路流。
492
492
  */
493
- StreamInfos: Array<AdaptiveStreamTemplate>
493
+ StreamInfos?: Array<AdaptiveStreamTemplate>
494
494
  /**
495
495
  * 是否禁止视频低码率转高码率,取值范围:
496
496
  <li>0:否,</li>
497
497
  <li>1:是。</li>
498
498
  */
499
- DisableHigherVideoBitrate: number
499
+ DisableHigherVideoBitrate?: number
500
500
  /**
501
501
  * 是否禁止视频分辨率转高分辨率,取值范围:
502
502
  <li>0:否,</li>
503
503
  <li>1:是。</li>
504
504
  */
505
- DisableHigherVideoResolution: number
505
+ DisableHigherVideoResolution?: number
506
506
  /**
507
507
  * 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
508
508
  */
509
- CreateTime: string
509
+ CreateTime?: string
510
510
  /**
511
511
  * 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
512
512
  */
513
- UpdateTime: string
513
+ UpdateTime?: string
514
+ /**
515
+ * 是否为纯音频,0表示视频,1表示纯音频
516
+ 注意:此字段可能返回 null,表示取不到有效值。
517
+ */
518
+ PureAudio?: number
514
519
  }
515
520
 
516
521
  /**
@@ -1561,6 +1566,56 @@ export interface ModifyScheduleRequest {
1561
1566
  ResourceId?: string
1562
1567
  }
1563
1568
 
1569
+ /**
1570
+ * 点播媒体文件元信息
1571
+ */
1572
+ export interface MediaMetaData {
1573
+ /**
1574
+ * 上传的媒体文件大小(视频为 HLS 时,大小是 m3u8 和 ts 文件大小的总和),单位:字节。
1575
+ */
1576
+ Size?: number
1577
+ /**
1578
+ * 容器类型,例如 m4a,mp4 等。
1579
+ */
1580
+ Container?: string
1581
+ /**
1582
+ * 视频流码率平均值与音频流码率平均值之和,单位:bps。
1583
+ */
1584
+ Bitrate?: number
1585
+ /**
1586
+ * 视频流高度的最大值,单位:px。
1587
+ */
1588
+ Height?: number
1589
+ /**
1590
+ * 视频流宽度的最大值,单位:px。
1591
+ */
1592
+ Width?: number
1593
+ /**
1594
+ * 视频时长,单位:秒。
1595
+ */
1596
+ Duration?: number
1597
+ /**
1598
+ * 视频拍摄时的选择角度,单位:度。
1599
+ */
1600
+ Rotate?: number
1601
+ /**
1602
+ * 视频流信息。
1603
+ */
1604
+ VideoStreamSet?: Array<MediaVideoStreamItem>
1605
+ /**
1606
+ * 音频流信息。
1607
+ */
1608
+ AudioStreamSet?: Array<MediaAudioStreamItem>
1609
+ /**
1610
+ * 视频时长,单位:秒。
1611
+ */
1612
+ VideoDuration?: number
1613
+ /**
1614
+ * 音频时长,单位:秒。
1615
+ */
1616
+ AudioDuration?: number
1617
+ }
1618
+
1564
1619
  /**
1565
1620
  * 创建媒体传输流的输出的RTP的目标地址。
1566
1621
  */
@@ -1909,6 +1964,7 @@ export interface ParseLiveStreamProcessNotificationResponse {
1909
1964
  * 直播流处理结果类型,包含:
1910
1965
  <li>AiReviewResult:内容审核结果;</li>
1911
1966
  <li>AiRecognitionResult:内容识别结果;</li>
1967
+ <li>LiveRecordResult:直播录制结果;</li>
1912
1968
  <li>ProcessEof:直播流处理结束。</li>
1913
1969
  */
1914
1970
  NotificationType?: string
@@ -1941,6 +1997,11 @@ export interface ParseLiveStreamProcessNotificationResponse {
1941
1997
  注意:此字段可能返回 null,表示取不到有效值。
1942
1998
  */
1943
1999
  AiQualityControlResultInfo?: LiveStreamAiQualityControlResultInfo
2000
+ /**
2001
+ * 直播录制结果,当 NotificationType 为 LiveRecordResult 时有效。
2002
+ 注意:此字段可能返回 null,表示取不到有效值。
2003
+ */
2004
+ LiveRecordResultInfo?: LiveStreamRecordResultInfo
1944
2005
  /**
1945
2006
  * 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长50个字符,不带或者带空字符串表示不做去重。
1946
2007
  */
@@ -2176,6 +2237,19 @@ export interface CreateAdaptiveDynamicStreamingTemplateRequest {
2176
2237
  * 模板描述信息,长度限制:256 个字符。
2177
2238
  */
2178
2239
  Comment?: string
2240
+ /**
2241
+ * 是否为纯音频,0表示视频模版,1表示纯音频模版
2242
+ 当值为1:
2243
+ 1. StreamInfos.N.RemoveVideo=1
2244
+ 2. StreamInfos.N.RemoveAudio=0
2245
+ 3. StreamInfos.N.Video.Codec=copy
2246
+
2247
+ 当值为0:
2248
+
2249
+ 1. StreamInfos.N.Video.Codec不能为copy
2250
+ 2. StreamInfos.N.Video.Fps不能为null
2251
+ */
2252
+ PureAudio?: number
2179
2253
  }
2180
2254
 
2181
2255
  /**
@@ -2366,7 +2440,7 @@ export interface TextWatermarkTemplateInputForUpdate {
2366
2440
  */
2367
2441
  FontType?: string
2368
2442
  /**
2369
- * 字体大小,格式:Npx,N 为数值。
2443
+ * 字体大小,格式:Npx,N 为数值。N的取值范围:[0,1] 和 [8, 4096]
2370
2444
  */
2371
2445
  FontSize?: string
2372
2446
  /**
@@ -2379,6 +2453,10 @@ export interface TextWatermarkTemplateInputForUpdate {
2379
2453
  <li>1:完全不透明</li>
2380
2454
  */
2381
2455
  FontAlpha?: number
2456
+ /**
2457
+ * 文字内容,长度不超过100个字符。
2458
+ */
2459
+ TextContent?: string
2382
2460
  }
2383
2461
 
2384
2462
  /**
@@ -3281,7 +3359,7 @@ export interface TextWatermarkTemplateInput {
3281
3359
  */
3282
3360
  FontType: string
3283
3361
  /**
3284
- * 字体大小,格式:Npx,N 为数值。
3362
+ * 字体大小,格式:Npx,N 为数值。N的取值范围:[0,1] 和 [8, 4096]
3285
3363
  */
3286
3364
  FontSize: string
3287
3365
  /**
@@ -3295,6 +3373,11 @@ export interface TextWatermarkTemplateInput {
3295
3373
  默认值:1。
3296
3374
  */
3297
3375
  FontAlpha: number
3376
+ /**
3377
+ * 文字内容,长度不超过100个字符。
3378
+ 注意:此字段可能返回 null,表示取不到有效值。
3379
+ */
3380
+ TextContent?: string
3298
3381
  }
3299
3382
 
3300
3383
  /**
@@ -4476,11 +4559,11 @@ export interface DescribeAdaptiveDynamicStreamingTemplatesResponse {
4476
4559
  /**
4477
4560
  * 符合过滤条件的记录总数。
4478
4561
  */
4479
- TotalCount: number
4562
+ TotalCount?: number
4480
4563
  /**
4481
4564
  * 转自适应码流模板详情列表。
4482
4565
  */
4483
- AdaptiveDynamicStreamingTemplateSet: Array<AdaptiveDynamicStreamingTemplate>
4566
+ AdaptiveDynamicStreamingTemplateSet?: Array<AdaptiveDynamicStreamingTemplate>
4484
4567
  /**
4485
4568
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4486
4569
  */
@@ -4561,6 +4644,10 @@ export interface DescribeAdaptiveDynamicStreamingTemplatesRequest {
4561
4644
  <li>Custom:用户自定义模板。</li>
4562
4645
  */
4563
4646
  Type?: string
4647
+ /**
4648
+ * 是否为纯音频,0表示视频,1表示纯音频
4649
+ */
4650
+ PureAudio?: number
4564
4651
  }
4565
4652
 
4566
4653
  /**
@@ -4881,6 +4968,7 @@ export interface LiveStreamTaskNotifyConfig {
4881
4968
  export interface VideoTemplateInfo {
4882
4969
  /**
4883
4970
  * 视频流的编码格式,可选值:
4971
+ <li>copy:纯音频模版</li>
4884
4972
  <li>h264:H.264 编码</li>
4885
4973
  <li>h265:H.265 编码</li>
4886
4974
  <li>av1:AOMedia Video 1 编码</li>
@@ -5445,6 +5533,19 @@ export interface ModifyAdaptiveDynamicStreamingTemplateRequest {
5445
5533
  * 模板描述信息,长度限制:256 个字符。
5446
5534
  */
5447
5535
  Comment?: string
5536
+ /**
5537
+ * 是否为纯音频,0表示视频模版,1表示纯音频模版
5538
+ 当值为1:
5539
+ 1. StreamInfos.N.RemoveVideo=1
5540
+ 2. StreamInfos.N.RemoveAudio=0
5541
+ 3. StreamInfos.N.Video.Codec=copy
5542
+
5543
+ 当值为0:
5544
+
5545
+ 1. StreamInfos.N.Video.Codec不能为copy
5546
+ 2. StreamInfos.N.Video.Fps不能为null
5547
+ */
5548
+ PureAudio?: number
5448
5549
  }
5449
5550
 
5450
5551
  /**
@@ -8300,7 +8401,7 @@ export interface CreateAdaptiveDynamicStreamingTemplateResponse {
8300
8401
  /**
8301
8402
  * 自适应转码模板唯一标识。
8302
8403
  */
8303
- Definition: number
8404
+ Definition?: number
8304
8405
  /**
8305
8406
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8306
8407
  */
@@ -9237,14 +9338,14 @@ export interface UserDefineOcrTextReviewTemplateInfo {
9237
9338
  * 自适应转码流参数模板
9238
9339
  */
9239
9340
  export interface AdaptiveStreamTemplate {
9240
- /**
9241
- * 视频参数信息。
9242
- */
9243
- Video: VideoTemplateInfo
9244
9341
  /**
9245
9342
  * 音频参数信息。
9246
9343
  */
9247
9344
  Audio: AudioTemplateInfo
9345
+ /**
9346
+ * 视频参数信息。
9347
+ */
9348
+ Video?: VideoTemplateInfo
9248
9349
  /**
9249
9350
  * 是否移除音频流,取值范围:
9250
9351
  <li>0:否,</li>
@@ -10214,6 +10315,7 @@ SVG 水印不支持截图打水印。
10214
10315
  <li>不填或填0,表示水印从画面开始就出现;</li>
10215
10316
  <li>当数值大于0时(假设为 n),表示水印从画面开始的第 n 秒出现;</li>
10216
10317
  <li>当数值小于0时(假设为 -n),表示水印从离画面结束 n 秒前开始出现。</li>
10318
+ 注:只用于视频场景,截图不支持。
10217
10319
  */
10218
10320
  StartTimeOffset?: number
10219
10321
  /**
@@ -10221,6 +10323,7 @@ SVG 水印不支持截图打水印。
10221
10323
  <li>不填或填0,表示水印持续到画面结束;</li>
10222
10324
  <li>当数值大于0时(假设为 n),表示水印持续到第 n 秒时消失;</li>
10223
10325
  <li>当数值小于0时(假设为 -n),表示水印持续到离画面结束 n 秒前消失。</li>
10326
+ 注:只用于视频场景,截图不支持。
10224
10327
  */
10225
10328
  EndTimeOffset?: number
10226
10329
  }
@@ -10451,53 +10554,21 @@ export interface ModifyTranscodeTemplateResponse {
10451
10554
  }
10452
10555
 
10453
10556
  /**
10454
- * 点播媒体文件元信息
10557
+ * 直播流录制结果
10455
10558
  */
10456
- export interface MediaMetaData {
10457
- /**
10458
- * 上传的媒体文件大小(视频为 HLS 时,大小是 m3u8 和 ts 文件大小的总和),单位:字节。
10459
- */
10460
- Size?: number
10461
- /**
10462
- * 容器类型,例如 m4a,mp4 等。
10463
- */
10464
- Container?: string
10465
- /**
10466
- * 视频流码率平均值与音频流码率平均值之和,单位:bps。
10467
- */
10468
- Bitrate?: number
10469
- /**
10470
- * 视频流高度的最大值,单位:px。
10471
- */
10472
- Height?: number
10473
- /**
10474
- * 视频流宽度的最大值,单位:px。
10475
- */
10476
- Width?: number
10477
- /**
10478
- * 视频时长,单位:秒。
10479
- */
10480
- Duration?: number
10481
- /**
10482
- * 视频拍摄时的选择角度,单位:度。
10483
- */
10484
- Rotate?: number
10485
- /**
10486
- * 视频流信息。
10487
- */
10488
- VideoStreamSet?: Array<MediaVideoStreamItem>
10559
+ export interface LiveStreamRecordResultInfo {
10489
10560
  /**
10490
- * 音频流信息。
10491
- */
10492
- AudioStreamSet?: Array<MediaAudioStreamItem>
10493
- /**
10494
- * 视频时长,单位:秒。
10561
+ * 录制是否结束。
10562
+ 0:录制未结束,返回单个文件结果
10563
+ 1:录制结束,返回所有录制文件结果
10564
+ 注意:此字段可能返回 null,表示取不到有效值。
10495
10565
  */
10496
- VideoDuration?: number
10566
+ RecordOver?: number
10497
10567
  /**
10498
- * 音频时长,单位:秒。
10568
+ * 文件列表
10569
+ 注意:此字段可能返回 null,表示取不到有效值。
10499
10570
  */
10500
- AudioDuration?: number
10571
+ FileResults?: Array<LiveRecordFile>
10501
10572
  }
10502
10573
 
10503
10574
  /**
@@ -10717,6 +10788,13 @@ export interface AdaptiveDynamicStreamingTaskInput {
10717
10788
  注意:此字段可能返回 null,表示取不到有效值。
10718
10789
  */
10719
10790
  DrmInfo?: DrmInfo
10791
+ /**
10792
+ * 自适应转码模板类型:
10793
+ Common:音视频类型
10794
+ PureAudio:纯音频类型
10795
+ 注意:此字段可能返回 null,表示取不到有效值。
10796
+ */
10797
+ DefinitionType?: string
10720
10798
  }
10721
10799
 
10722
10800
  /**
@@ -13017,51 +13095,51 @@ export interface MediaTranscodeItem {
13017
13095
  /**
13018
13096
  * 转码后文件的目标存储。
13019
13097
  */
13020
- OutputStorage: TaskOutputStorage
13098
+ OutputStorage?: TaskOutputStorage
13021
13099
  /**
13022
13100
  * 转码后的视频文件路径。
13023
13101
  */
13024
- Path: string
13102
+ Path?: string
13025
13103
  /**
13026
13104
  * 转码规格 ID,参见[转码参数模板](https://cloud.tencent.com/document/product/862/37042)。
13027
13105
  */
13028
- Definition: number
13106
+ Definition?: number
13029
13107
  /**
13030
13108
  * 视频流码率平均值与音频流码率平均值之和, 单位:bps。
13031
13109
  */
13032
- Bitrate: number
13110
+ Bitrate?: number
13033
13111
  /**
13034
13112
  * 视频流高度的最大值,单位:px。
13035
13113
  */
13036
- Height: number
13114
+ Height?: number
13037
13115
  /**
13038
13116
  * 视频流宽度的最大值,单位:px。
13039
13117
  */
13040
- Width: number
13118
+ Width?: number
13041
13119
  /**
13042
13120
  * 媒体文件总大小(视频为 HLS 时,大小是 m3u8 和 ts 文件大小的总和),单位:字节。
13043
13121
  */
13044
- Size: number
13122
+ Size?: number
13045
13123
  /**
13046
13124
  * 视频时长,单位:秒。
13047
13125
  */
13048
- Duration: number
13126
+ Duration?: number
13049
13127
  /**
13050
13128
  * 容器类型,例如 m4a,mp4 等。
13051
13129
  */
13052
- Container: string
13130
+ Container?: string
13053
13131
  /**
13054
13132
  * 视频的 md5 值。
13055
13133
  */
13056
- Md5: string
13134
+ Md5?: string
13057
13135
  /**
13058
13136
  * 音频流信息。
13059
13137
  */
13060
- AudioStreamSet: Array<MediaAudioStreamItem>
13138
+ AudioStreamSet?: Array<MediaAudioStreamItem>
13061
13139
  /**
13062
13140
  * 视频流信息。
13063
13141
  */
13064
- VideoStreamSet: Array<MediaVideoStreamItem>
13142
+ VideoStreamSet?: Array<MediaVideoStreamItem>
13065
13143
  }
13066
13144
 
13067
13145
  /**
@@ -13494,52 +13572,52 @@ export interface WorkflowTask {
13494
13572
  /**
13495
13573
  * 媒体处理任务 ID。
13496
13574
  */
13497
- TaskId: string
13575
+ TaskId?: string
13498
13576
  /**
13499
13577
  * 任务流状态,取值:
13500
13578
  <li>PROCESSING:处理中;</li>
13501
13579
  <li>FINISH:已完成。</li>
13502
13580
  */
13503
- Status: string
13581
+ Status?: string
13504
13582
  /**
13505
13583
  * 源异常时返回非0错误码,返回0 时请使用各个具体任务的 ErrCode。
13506
13584
  */
13507
- ErrCode: number
13585
+ ErrCode?: number
13508
13586
  /**
13509
13587
  * 源异常时返回对应异常Message,否则请使用各个具体任务的 Message。
13510
13588
  */
13511
- Message: string
13589
+ Message?: string
13512
13590
  /**
13513
13591
  * 媒体处理的目标文件信息。
13514
13592
  注意:此字段可能返回 null,表示取不到有效值。
13515
13593
  */
13516
- InputInfo: MediaInputInfo
13594
+ InputInfo?: MediaInputInfo
13517
13595
  /**
13518
13596
  * 原始视频的元信息。
13519
13597
  注意:此字段可能返回 null,表示取不到有效值。
13520
13598
  */
13521
- MetaData: MediaMetaData
13599
+ MetaData?: MediaMetaData
13522
13600
  /**
13523
13601
  * 媒体处理任务的执行状态与结果。
13524
13602
  */
13525
- MediaProcessResultSet: Array<MediaProcessTaskResult>
13603
+ MediaProcessResultSet?: Array<MediaProcessTaskResult>
13526
13604
  /**
13527
13605
  * 视频内容审核任务的执行状态与结果。
13528
13606
  */
13529
- AiContentReviewResultSet: Array<AiContentReviewResult>
13607
+ AiContentReviewResultSet?: Array<AiContentReviewResult>
13530
13608
  /**
13531
13609
  * 视频内容分析任务的执行状态与结果。
13532
13610
  */
13533
- AiAnalysisResultSet: Array<AiAnalysisResult>
13611
+ AiAnalysisResultSet?: Array<AiAnalysisResult>
13534
13612
  /**
13535
13613
  * 视频内容识别任务的执行状态与结果。
13536
13614
  */
13537
- AiRecognitionResultSet: Array<AiRecognitionResult>
13615
+ AiRecognitionResultSet?: Array<AiRecognitionResult>
13538
13616
  /**
13539
13617
  * 视频质检任务的执行状态与结果。
13540
13618
  注意:此字段可能返回 null,表示取不到有效值。
13541
13619
  */
13542
- AiQualityControlTaskResult: ScheduleQualityControlTaskResult
13620
+ AiQualityControlTaskResult?: ScheduleQualityControlTaskResult
13543
13621
  }
13544
13622
 
13545
13623
  /**