tencentcloud-sdk-nodejs-intl-en 3.0.762 → 3.0.764

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.762",
3
+ "version": "3.0.764",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.762";
1
+ const sdkVersion = "3.0.764";
2
2
  module.exports = sdkVersion
@@ -1089,6 +1089,12 @@ Note: this field may return null, indicating that no valid values can be obtaine
1089
1089
  */
1090
1090
  this.MetaData = null;
1091
1091
 
1092
+ /**
1093
+ * Cliped media segment info.
1094
+ * @type {Array.<LiveRealTimeClipMediaSegmentInfo> || null}
1095
+ */
1096
+ this.SegmentSet = null;
1097
+
1092
1098
  /**
1093
1099
  * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1094
1100
  * @type {string || null}
@@ -1113,6 +1119,15 @@ Note: this field may return null, indicating that no valid values can be obtaine
1113
1119
  obj.deserialize(params.MetaData)
1114
1120
  this.MetaData = obj;
1115
1121
  }
1122
+
1123
+ if (params.SegmentSet) {
1124
+ this.SegmentSet = new Array();
1125
+ for (let z in params.SegmentSet) {
1126
+ let obj = new LiveRealTimeClipMediaSegmentInfo();
1127
+ obj.deserialize(params.SegmentSet[z]);
1128
+ this.SegmentSet.push(obj);
1129
+ }
1130
+ }
1116
1131
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
1117
1132
 
1118
1133
  }
@@ -8303,6 +8318,41 @@ class AwsPrivateAccess extends AbstractModel {
8303
8318
  }
8304
8319
  }
8305
8320
 
8321
+ /**
8322
+ * EditMedia response structure.
8323
+ * @class
8324
+ */
8325
+ class EditMediaResponse extends AbstractModel {
8326
+ constructor(){
8327
+ super();
8328
+
8329
+ /**
8330
+ * Video editing task ID, which can be used to query the status of editing task (with task type being `EditMedia`).
8331
+ * @type {string || null}
8332
+ */
8333
+ this.TaskId = null;
8334
+
8335
+ /**
8336
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
8337
+ * @type {string || null}
8338
+ */
8339
+ this.RequestId = null;
8340
+
8341
+ }
8342
+
8343
+ /**
8344
+ * @private
8345
+ */
8346
+ deserialize(params) {
8347
+ if (!params) {
8348
+ return;
8349
+ }
8350
+ this.TaskId = 'TaskId' in params ? params.TaskId : null;
8351
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
8352
+
8353
+ }
8354
+ }
8355
+
8306
8356
  /**
8307
8357
  * Parameters for OCR-based recognition of politically sensitive content
8308
8358
  * @class
@@ -10852,6 +10902,56 @@ Default value: `weak`.
10852
10902
  }
10853
10903
  }
10854
10904
 
10905
+ /**
10906
+ * Result file output of video editing.
10907
+ * @class
10908
+ */
10909
+ class EditMediaOutputConfig extends AbstractModel {
10910
+ constructor(){
10911
+ super();
10912
+
10913
+ /**
10914
+ * Output filename of up to 64 characters, which is generated by the system by default.
10915
+ * @type {string || null}
10916
+ */
10917
+ this.MediaName = null;
10918
+
10919
+ /**
10920
+ * Output file format. Valid values: mp4, hls. Default value: mp4.
10921
+ * @type {string || null}
10922
+ */
10923
+ this.Type = null;
10924
+
10925
+ /**
10926
+ * Category ID, which is used to categorize the media for management. A category can be created and its ID can be obtained by using the [category creating](https://intl.cloud.tencent.com/document/product/266/7812?from_cn_redirect=1) API.
10927
+ <li>Default value: 0, which means "Other".</li>
10928
+ * @type {number || null}
10929
+ */
10930
+ this.ClassId = null;
10931
+
10932
+ /**
10933
+ * Expiration time of output media file in ISO 8601 format, after which the file will be deleted. Files will never expire by default. For more information, please see [Notes on ISO Date Format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I).
10934
+ * @type {string || null}
10935
+ */
10936
+ this.ExpireTime = null;
10937
+
10938
+ }
10939
+
10940
+ /**
10941
+ * @private
10942
+ */
10943
+ deserialize(params) {
10944
+ if (!params) {
10945
+ return;
10946
+ }
10947
+ this.MediaName = 'MediaName' in params ? params.MediaName : null;
10948
+ this.Type = 'Type' in params ? params.Type : null;
10949
+ this.ClassId = 'ClassId' in params ? params.ClassId : null;
10950
+ this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null;
10951
+
10952
+ }
10953
+ }
10954
+
10855
10955
  /**
10856
10956
  * Information of a video splitting task.
10857
10957
  * @class
@@ -11150,6 +11250,127 @@ class VideoFrameInterpolationInfo extends AbstractModel {
11150
11250
  }
11151
11251
  }
11152
11252
 
11253
+ /**
11254
+ * EditMedia request structure.
11255
+ * @class
11256
+ */
11257
+ class EditMediaRequest extends AbstractModel {
11258
+ constructor(){
11259
+ super();
11260
+
11261
+ /**
11262
+ * Input video type. Valid values: File, Stream.
11263
+ * @type {string || null}
11264
+ */
11265
+ this.InputType = null;
11266
+
11267
+ /**
11268
+ * Information of input video file, which is required if `InputType` is `File`.
11269
+ * @type {Array.<EditMediaFileInfo> || null}
11270
+ */
11271
+ this.FileInfos = null;
11272
+
11273
+ /**
11274
+ * Input stream information, which is required if `InputType` is `Stream`.
11275
+ * @type {Array.<EditMediaStreamInfo> || null}
11276
+ */
11277
+ this.StreamInfos = null;
11278
+
11279
+ /**
11280
+ * Editing template ID. Valid values: 10, 20. If this parameter is left empty, template 10 will be used.
11281
+ <li>10: the input with the highest resolution will be used as the benchmark;</li>
11282
+ <li>20: the input with the highest bitrate will be used as the benchmark;</li>
11283
+ * @type {number || null}
11284
+ */
11285
+ this.Definition = null;
11286
+
11287
+ /**
11288
+ * [Task flow template](https://intl.cloud.tencent.com/document/product/266/11700?from_cn_redirect=1#.E4.BB.BB.E5.8A.A1.E6.B5.81.E6.A8.A1.E6.9D.BF) name, which should be entered if you want to perform a task flow on the generated new video.
11289
+ * @type {string || null}
11290
+ */
11291
+ this.ProcedureName = null;
11292
+
11293
+ /**
11294
+ * Configuration of file generated after editing.
11295
+ * @type {EditMediaOutputConfig || null}
11296
+ */
11297
+ this.OutputConfig = null;
11298
+
11299
+ /**
11300
+ * Identifies the source context which is used to pass through the user request information. The `EditMediaComplete` callback and task flow status change callback will return the value of this field. It can contain up to 1,000 characters.
11301
+ * @type {string || null}
11302
+ */
11303
+ this.SessionContext = null;
11304
+
11305
+ /**
11306
+ * Task priority. The higher the value, the higher the priority. Value range: -10-10. If this parameter is left empty, 0 will be used.
11307
+ * @type {number || null}
11308
+ */
11309
+ this.TasksPriority = null;
11310
+
11311
+ /**
11312
+ * Used to identify duplicate requests. After you send a request, if any request with the same `SessionId` has already been sent in the last three days (72 hours), an error message will be returned. `SessionId` contains up to 50 characters. If this parameter is not carried or is an empty string, no deduplication will be performed.
11313
+ * @type {string || null}
11314
+ */
11315
+ this.SessionId = null;
11316
+
11317
+ /**
11318
+ * Reserved field for special purposes.
11319
+ * @type {string || null}
11320
+ */
11321
+ this.ExtInfo = null;
11322
+
11323
+ /**
11324
+ * [Subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
11325
+ * @type {number || null}
11326
+ */
11327
+ this.SubAppId = null;
11328
+
11329
+ }
11330
+
11331
+ /**
11332
+ * @private
11333
+ */
11334
+ deserialize(params) {
11335
+ if (!params) {
11336
+ return;
11337
+ }
11338
+ this.InputType = 'InputType' in params ? params.InputType : null;
11339
+
11340
+ if (params.FileInfos) {
11341
+ this.FileInfos = new Array();
11342
+ for (let z in params.FileInfos) {
11343
+ let obj = new EditMediaFileInfo();
11344
+ obj.deserialize(params.FileInfos[z]);
11345
+ this.FileInfos.push(obj);
11346
+ }
11347
+ }
11348
+
11349
+ if (params.StreamInfos) {
11350
+ this.StreamInfos = new Array();
11351
+ for (let z in params.StreamInfos) {
11352
+ let obj = new EditMediaStreamInfo();
11353
+ obj.deserialize(params.StreamInfos[z]);
11354
+ this.StreamInfos.push(obj);
11355
+ }
11356
+ }
11357
+ this.Definition = 'Definition' in params ? params.Definition : null;
11358
+ this.ProcedureName = 'ProcedureName' in params ? params.ProcedureName : null;
11359
+
11360
+ if (params.OutputConfig) {
11361
+ let obj = new EditMediaOutputConfig();
11362
+ obj.deserialize(params.OutputConfig)
11363
+ this.OutputConfig = obj;
11364
+ }
11365
+ this.SessionContext = 'SessionContext' in params ? params.SessionContext : null;
11366
+ this.TasksPriority = 'TasksPriority' in params ? params.TasksPriority : null;
11367
+ this.SessionId = 'SessionId' in params ? params.SessionId : null;
11368
+ this.ExtInfo = 'ExtInfo' in params ? params.ExtInfo : null;
11369
+ this.SubAppId = 'SubAppId' in params ? params.SubAppId : null;
11370
+
11371
+ }
11372
+ }
11373
+
11153
11374
  /**
11154
11375
  * DescribeFileAttributes response structure.
11155
11376
  * @class
@@ -17714,6 +17935,41 @@ class DescribeStorageDataRequest extends AbstractModel {
17714
17935
  }
17715
17936
  }
17716
17937
 
17938
+ /**
17939
+ * The information of the segment clipped.
17940
+ * @class
17941
+ */
17942
+ class LiveRealTimeClipMediaSegmentInfo extends AbstractModel {
17943
+ constructor(){
17944
+ super();
17945
+
17946
+ /**
17947
+ * Start time of the cliped segment, in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732)
17948
+ * @type {string || null}
17949
+ */
17950
+ this.StartTime = null;
17951
+
17952
+ /**
17953
+ * End time of the cliped segment, in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732)
17954
+ * @type {string || null}
17955
+ */
17956
+ this.EndTime = null;
17957
+
17958
+ }
17959
+
17960
+ /**
17961
+ * @private
17962
+ */
17963
+ deserialize(params) {
17964
+ if (!params) {
17965
+ return;
17966
+ }
17967
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
17968
+ this.EndTime = 'EndTime' in params ? params.EndTime : null;
17969
+
17970
+ }
17971
+ }
17972
+
17717
17973
  /**
17718
17974
  * DeleteImageSpriteTemplate response structure.
17719
17975
  * @class
@@ -41548,6 +41804,7 @@ module.exports = {
41548
41804
  ForbidMediaDistributionRequest: ForbidMediaDistributionRequest,
41549
41805
  DescribeAIRecognitionTemplatesResponse: DescribeAIRecognitionTemplatesResponse,
41550
41806
  AwsPrivateAccess: AwsPrivateAccess,
41807
+ EditMediaResponse: EditMediaResponse,
41551
41808
  PoliticalOcrReviewTemplateInfoForUpdate: PoliticalOcrReviewTemplateInfoForUpdate,
41552
41809
  TaskOutputMediaInfo: TaskOutputMediaInfo,
41553
41810
  ProcessMediaByUrlRequest: ProcessMediaByUrlRequest,
@@ -41593,12 +41850,14 @@ module.exports = {
41593
41850
  DeleteAdaptiveDynamicStreamingTemplateRequest: DeleteAdaptiveDynamicStreamingTemplateRequest,
41594
41851
  AiRecognitionTaskOcrFullTextSegmentItem: AiRecognitionTaskOcrFullTextSegmentItem,
41595
41852
  ColorEnhanceInfo: ColorEnhanceInfo,
41853
+ EditMediaOutputConfig: EditMediaOutputConfig,
41596
41854
  SplitMediaTaskSegmentInfo: SplitMediaTaskSegmentInfo,
41597
41855
  AiReviewPornAsrTaskOutput: AiReviewPornAsrTaskOutput,
41598
41856
  AiRecognitionTaskAsrFullTextResultOutputSubtitleItem: AiRecognitionTaskAsrFullTextResultOutputSubtitleItem,
41599
41857
  SimpleHlsClipResponse: SimpleHlsClipResponse,
41600
41858
  DeleteAIAnalysisTemplateRequest: DeleteAIAnalysisTemplateRequest,
41601
41859
  VideoFrameInterpolationInfo: VideoFrameInterpolationInfo,
41860
+ EditMediaRequest: EditMediaRequest,
41602
41861
  DescribeFileAttributesResponse: DescribeFileAttributesResponse,
41603
41862
  LicenseUsageDataItem: LicenseUsageDataItem,
41604
41863
  RebuildMediaTargetAudioStream: RebuildMediaTargetAudioStream,
@@ -41712,6 +41971,7 @@ module.exports = {
41712
41971
  DescribeSuperPlayerConfigsResponse: DescribeSuperPlayerConfigsResponse,
41713
41972
  AsrWordsConfigureInfoForUpdate: AsrWordsConfigureInfoForUpdate,
41714
41973
  DescribeStorageDataRequest: DescribeStorageDataRequest,
41974
+ LiveRealTimeClipMediaSegmentInfo: LiveRealTimeClipMediaSegmentInfo,
41715
41975
  DeleteImageSpriteTemplateResponse: DeleteImageSpriteTemplateResponse,
41716
41976
  LowLightEnhanceInfo: LowLightEnhanceInfo,
41717
41977
  DescribeContentReviewTemplatesResponse: DescribeContentReviewTemplatesResponse,
@@ -160,6 +160,7 @@ const TextWatermarkTemplateInput = models.TextWatermarkTemplateInput;
160
160
  const ForbidMediaDistributionRequest = models.ForbidMediaDistributionRequest;
161
161
  const DescribeAIRecognitionTemplatesResponse = models.DescribeAIRecognitionTemplatesResponse;
162
162
  const AwsPrivateAccess = models.AwsPrivateAccess;
163
+ const EditMediaResponse = models.EditMediaResponse;
163
164
  const PoliticalOcrReviewTemplateInfoForUpdate = models.PoliticalOcrReviewTemplateInfoForUpdate;
164
165
  const TaskOutputMediaInfo = models.TaskOutputMediaInfo;
165
166
  const ProcessMediaByUrlRequest = models.ProcessMediaByUrlRequest;
@@ -205,12 +206,14 @@ const LiveRealTimeClipRequest = models.LiveRealTimeClipRequest;
205
206
  const DeleteAdaptiveDynamicStreamingTemplateRequest = models.DeleteAdaptiveDynamicStreamingTemplateRequest;
206
207
  const AiRecognitionTaskOcrFullTextSegmentItem = models.AiRecognitionTaskOcrFullTextSegmentItem;
207
208
  const ColorEnhanceInfo = models.ColorEnhanceInfo;
209
+ const EditMediaOutputConfig = models.EditMediaOutputConfig;
208
210
  const SplitMediaTaskSegmentInfo = models.SplitMediaTaskSegmentInfo;
209
211
  const AiReviewPornAsrTaskOutput = models.AiReviewPornAsrTaskOutput;
210
212
  const AiRecognitionTaskAsrFullTextResultOutputSubtitleItem = models.AiRecognitionTaskAsrFullTextResultOutputSubtitleItem;
211
213
  const SimpleHlsClipResponse = models.SimpleHlsClipResponse;
212
214
  const DeleteAIAnalysisTemplateRequest = models.DeleteAIAnalysisTemplateRequest;
213
215
  const VideoFrameInterpolationInfo = models.VideoFrameInterpolationInfo;
216
+ const EditMediaRequest = models.EditMediaRequest;
214
217
  const DescribeFileAttributesResponse = models.DescribeFileAttributesResponse;
215
218
  const LicenseUsageDataItem = models.LicenseUsageDataItem;
216
219
  const RebuildMediaTargetAudioStream = models.RebuildMediaTargetAudioStream;
@@ -324,6 +327,7 @@ const DescribeDailyPlayStatFileListRequest = models.DescribeDailyPlayStatFileLis
324
327
  const DescribeSuperPlayerConfigsResponse = models.DescribeSuperPlayerConfigsResponse;
325
328
  const AsrWordsConfigureInfoForUpdate = models.AsrWordsConfigureInfoForUpdate;
326
329
  const DescribeStorageDataRequest = models.DescribeStorageDataRequest;
330
+ const LiveRealTimeClipMediaSegmentInfo = models.LiveRealTimeClipMediaSegmentInfo;
327
331
  const DeleteImageSpriteTemplateResponse = models.DeleteImageSpriteTemplateResponse;
328
332
  const LowLightEnhanceInfo = models.LowLightEnhanceInfo;
329
333
  const DescribeContentReviewTemplatesResponse = models.DescribeContentReviewTemplatesResponse;
@@ -785,6 +789,27 @@ The files must be in HLS format. Preferably, they should have the same bitrate a
785
789
  this.request("DescribeFileAttributes", req, resp, cb);
786
790
  }
787
791
 
792
+ /**
793
+ * This API is used to edit a video (by clipping, splicing, etc.) to generate a new VOD video. Editing features include:
794
+
795
+ 1. Clipping a file in VOD to generate a new video;
796
+ 2. Splicing multiple files in VOD to generate a new video;
797
+ 3. Clipping multiple files in VOD and then splicing the clips to generate a new video;
798
+ 4. Directly generating a new video from a stream in VOD;
799
+ 5. Clipping a stream in VOD to generate a new video;
800
+ 6. Splicing multiple streams in VOD to generate a new video;
801
+ 7. Clipping multiple streams in VOD and then splicing the clips to generate a new video.
802
+
803
+ You can also specify whether to perform a task flow for the generated new video.
804
+ * @param {EditMediaRequest} req
805
+ * @param {function(string, EditMediaResponse):void} cb
806
+ * @public
807
+ */
808
+ EditMedia(req, cb) {
809
+ let resp = new EditMediaResponse();
810
+ this.request("EditMedia", req, resp, cb);
811
+ }
812
+
788
813
  /**
789
814
  * This API is used to query the list of VOD domain names.
790
815
  * @param {DescribeVodDomainsRequest} req