tencentcloud-sdk-nodejs-intl-en 3.0.521 → 3.0.524

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.
@@ -6663,6 +6663,118 @@ class PornAsrReviewTemplateInfoForUpdate extends AbstractModel {
6663
6663
  }
6664
6664
  }
6665
6665
 
6666
+ /**
6667
+ * The suspicious segment detected.
6668
+ * @class
6669
+ */
6670
+ class ReviewAudioVideoSegmentItem extends AbstractModel {
6671
+ constructor(){
6672
+ super();
6673
+
6674
+ /**
6675
+ * The start time offset (seconds) of the segment.
6676
+ * @type {number || null}
6677
+ */
6678
+ this.StartTimeOffset = null;
6679
+
6680
+ /**
6681
+ * The end time offset (seconds) of the segment.
6682
+ * @type {number || null}
6683
+ */
6684
+ this.EndTimeOffset = null;
6685
+
6686
+ /**
6687
+ * The confidence score of the segment.
6688
+ * @type {number || null}
6689
+ */
6690
+ this.Confidence = null;
6691
+
6692
+ /**
6693
+ * The processing suggestion for the segment. Valid values:
6694
+ <li>review: The content may be non-compliant. Please review it.</li>
6695
+ <li>block: The content is non-compliant. We recommend you block it.</li>
6696
+ * @type {string || null}
6697
+ */
6698
+ this.Suggestion = null;
6699
+
6700
+ /**
6701
+ * The most likely label for the segment. Valid values:
6702
+ <li>Porn</li>
6703
+ <li>Terrorism</li>
6704
+ * @type {string || null}
6705
+ */
6706
+ this.Label = null;
6707
+
6708
+ /**
6709
+ * The sublabel for the segment. This parameter is valid only if `Form` is `Image` or `Voice`.
6710
+ Valid values when `Form` is `Image` and `Label` is `Porn`:
6711
+ <li>porn</li>
6712
+ <li>vulgar</li>
6713
+
6714
+ Valid values when `Form` is `Image` and `Label` is `Terrorism`:
6715
+ <li>guns</li>
6716
+ <li>bloody</li>
6717
+ <li>banners</li>
6718
+ <li>scenario (terrorist scenes)</li>
6719
+ <li>explosion</li>
6720
+
6721
+ Valid values when `Form` is `Voice` and `Label` is `Porn`:
6722
+ <li>moan</li>
6723
+ * @type {string || null}
6724
+ */
6725
+ this.SubLabel = null;
6726
+
6727
+ /**
6728
+ * The format of the suspicious segment detected. Valid values:
6729
+ <li>Image</li>
6730
+ <li>OCR</li>
6731
+ <li>ASR</li>
6732
+ <li>Voice</li>
6733
+ * @type {string || null}
6734
+ */
6735
+ this.Form = null;
6736
+
6737
+ /**
6738
+ * The pixel coordinates ([x1, y1, x2, y2]) of the top-left corner and bottom-right corner of the suspicious text. This parameter is valid only if `Form` is `OCR`.
6739
+ * @type {Array.<number> || null}
6740
+ */
6741
+ this.AreaCoordSet = null;
6742
+
6743
+ /**
6744
+ * The content of the suspicious text detected. This parameter is valid only if `Form` is `OCR` or `ASR`.
6745
+ * @type {string || null}
6746
+ */
6747
+ this.Text = null;
6748
+
6749
+ /**
6750
+ * The keywords that match the suspicious text. This parameter is valid only if `Form` is `OCR` or `ASR`.
6751
+ * @type {Array.<string> || null}
6752
+ */
6753
+ this.KeywordSet = null;
6754
+
6755
+ }
6756
+
6757
+ /**
6758
+ * @private
6759
+ */
6760
+ deserialize(params) {
6761
+ if (!params) {
6762
+ return;
6763
+ }
6764
+ this.StartTimeOffset = 'StartTimeOffset' in params ? params.StartTimeOffset : null;
6765
+ this.EndTimeOffset = 'EndTimeOffset' in params ? params.EndTimeOffset : null;
6766
+ this.Confidence = 'Confidence' in params ? params.Confidence : null;
6767
+ this.Suggestion = 'Suggestion' in params ? params.Suggestion : null;
6768
+ this.Label = 'Label' in params ? params.Label : null;
6769
+ this.SubLabel = 'SubLabel' in params ? params.SubLabel : null;
6770
+ this.Form = 'Form' in params ? params.Form : null;
6771
+ this.AreaCoordSet = 'AreaCoordSet' in params ? params.AreaCoordSet : null;
6772
+ this.Text = 'Text' in params ? params.Text : null;
6773
+ this.KeywordSet = 'KeywordSet' in params ? params.KeywordSet : null;
6774
+
6775
+ }
6776
+ }
6777
+
6666
6778
  /**
6667
6779
  * Result information of animated image generating in VOD file
6668
6780
  * @class
@@ -11516,6 +11628,87 @@ class SearchMediaResponse extends AbstractModel {
11516
11628
  }
11517
11629
  }
11518
11630
 
11631
+ /**
11632
+ * The output of a moderation task.
11633
+ * @class
11634
+ */
11635
+ class ReviewAudioVideoTaskOutput extends AbstractModel {
11636
+ constructor(){
11637
+ super();
11638
+
11639
+ /**
11640
+ * The handling suggestion. Valid values:
11641
+ <li>pass</li>
11642
+ <li>review</li>
11643
+ <li>block</li>
11644
+ * @type {string || null}
11645
+ */
11646
+ this.Suggestion = null;
11647
+
11648
+ /**
11649
+ * The most likely label for the suspicious content. This parameter is valid only if `Suggestion` is `review` or `block`.
11650
+ <li>Porn</li>
11651
+ <li>Terrorism</li>
11652
+ * @type {string || null}
11653
+ */
11654
+ this.Label = null;
11655
+
11656
+ /**
11657
+ * The most likely format of the suspicious content. This parameter is valid only if `Suggestion` is `review` or `block`.
11658
+ <li>Image</li>
11659
+ <li>OCR</li>
11660
+ <li>ASR</li>
11661
+ <li>Voice</li>
11662
+ * @type {string || null}
11663
+ */
11664
+ this.Form = null;
11665
+
11666
+ /**
11667
+ * A list of the suspicious segments detected.
11668
+ <font color=red>Note</font>: Only the first 10 results will be returned at most. You can get all the results from the file specified by `SegmentSetFileUrl`.
11669
+ * @type {Array.<ReviewAudioVideoSegmentItem> || null}
11670
+ */
11671
+ this.SegmentSet = null;
11672
+
11673
+ /**
11674
+ * The URL of the file that contains suspicious segments. The file is in JSON format and has the same data structure as `SegmentSet`. Instead of being saved permanently, the file is deleted upon the expiration time (`SegmentSetFileUrlExpireTime`).
11675
+ * @type {string || null}
11676
+ */
11677
+ this.SegmentSetFileUrl = null;
11678
+
11679
+ /**
11680
+ * The expiration time of the file that contains suspicious segments, in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732#iso-date-format).
11681
+ * @type {string || null}
11682
+ */
11683
+ this.SegmentSetFileUrlExpireTime = null;
11684
+
11685
+ }
11686
+
11687
+ /**
11688
+ * @private
11689
+ */
11690
+ deserialize(params) {
11691
+ if (!params) {
11692
+ return;
11693
+ }
11694
+ this.Suggestion = 'Suggestion' in params ? params.Suggestion : null;
11695
+ this.Label = 'Label' in params ? params.Label : null;
11696
+ this.Form = 'Form' in params ? params.Form : null;
11697
+
11698
+ if (params.SegmentSet) {
11699
+ this.SegmentSet = new Array();
11700
+ for (let z in params.SegmentSet) {
11701
+ let obj = new ReviewAudioVideoSegmentItem();
11702
+ obj.deserialize(params.SegmentSet[z]);
11703
+ this.SegmentSet.push(obj);
11704
+ }
11705
+ }
11706
+ this.SegmentSetFileUrl = 'SegmentSetFileUrl' in params ? params.SegmentSetFileUrl : null;
11707
+ this.SegmentSetFileUrlExpireTime = 'SegmentSetFileUrlExpireTime' in params ? params.SegmentSetFileUrlExpireTime : null;
11708
+
11709
+ }
11710
+ }
11711
+
11519
11712
  /**
11520
11713
  * The output of a watermark removal task.
11521
11714
  * @class
@@ -20752,8 +20945,9 @@ class EventContent extends AbstractModel {
20752
20945
  <li>EditMediaComplete: Finished video editing.</li>
20753
20946
  <li>SplitMediaComplete: Finished video splitting.</li>
20754
20947
  <li>WechatPublishComplete: Published to WeChat.</li>
20755
- <li>ComposeMediaComplete: Finished composition.</li>
20948
+ <li>ComposeMediaComplete: Finished producing the media file.</li>
20756
20949
  <li>FastClipMediaComplete: Finished quick clipping.</li>
20950
+ <li>ReviewAudioVideoComplete: Finished moderation</li>
20757
20951
  <b>v2017 task types:</b>
20758
20952
  <li>TranscodeComplete: Finished video transcoding.</li>
20759
20953
  <li>ConcatComplete: Finished video splicing.</li>
@@ -20876,6 +21070,13 @@ Note: this field may return `null`, indicating that no valid values can be obtai
20876
21070
  */
20877
21071
  this.RestoreMediaCompleteEvent = null;
20878
21072
 
21073
+ /**
21074
+ * The callback for the completion of the moderation task. This parameter is valid only if `EventType` is `ReviewAudioVideoComplete`.
21075
+ Note: This field may return null, indicating that no valid values can be obtained.
21076
+ * @type {ReviewAudioVideoTask || null}
21077
+ */
21078
+ this.ReviewAudioVideoCompleteEvent = null;
21079
+
20879
21080
  }
20880
21081
 
20881
21082
  /**
@@ -20984,6 +21185,12 @@ Note: this field may return `null`, indicating that no valid values can be obtai
20984
21185
  this.RestoreMediaCompleteEvent = obj;
20985
21186
  }
20986
21187
 
21188
+ if (params.ReviewAudioVideoCompleteEvent) {
21189
+ let obj = new ReviewAudioVideoTask();
21190
+ obj.deserialize(params.ReviewAudioVideoCompleteEvent)
21191
+ this.ReviewAudioVideoCompleteEvent = obj;
21192
+ }
21193
+
20987
21194
  }
20988
21195
  }
20989
21196
 
@@ -23846,11 +24053,12 @@ class DescribeTaskDetailResponse extends AbstractModel {
23846
24053
  <li>Procedure: Video processing</li>
23847
24054
  <li>EditMedia: Video editing</li>
23848
24055
  <li>SplitMedia: Video splitting</li>
23849
- <li>ComposeMedia: Media file producing</li>
24056
+ <li>ComposeMedia: Media file production</li>
23850
24057
  <li>WechatPublish: WeChat publishing</li>
23851
24058
  <li>PullUpload: Pulling media files for upload</li>
23852
24059
  <li>FastClipMedia: Quick clipping</li>
23853
24060
  <li>RemoveWatermarkTask: Watermark removal</li>
24061
+ <li> ReviewAudioVideo: Moderation</li>
23854
24062
  * @type {string || null}
23855
24063
  */
23856
24064
  this.TaskType = null;
@@ -23973,6 +24181,13 @@ Note: This field may return null, indicating that no valid values can be obtaine
23973
24181
  */
23974
24182
  this.RemoveWatermarkTask = null;
23975
24183
 
24184
+ /**
24185
+ * The information of a moderation task. This parameter is valid only if `TaskType` is `ReviewAudioVideo`.
24186
+ Note: This field may return null, indicating that no valid values can be obtained.
24187
+ * @type {ReviewAudioVideoTask || null}
24188
+ */
24189
+ this.ReviewAudioVideoTask = null;
24190
+
23976
24191
  /**
23977
24192
  * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
23978
24193
  * @type {string || null}
@@ -24071,6 +24286,12 @@ Note: This field may return null, indicating that no valid values can be obtaine
24071
24286
  obj.deserialize(params.RemoveWatermarkTask)
24072
24287
  this.RemoveWatermarkTask = obj;
24073
24288
  }
24289
+
24290
+ if (params.ReviewAudioVideoTask) {
24291
+ let obj = new ReviewAudioVideoTask();
24292
+ obj.deserialize(params.ReviewAudioVideoTask)
24293
+ this.ReviewAudioVideoTask = obj;
24294
+ }
24074
24295
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
24075
24296
 
24076
24297
  }
@@ -25451,6 +25672,84 @@ Task types compatible with v2017:
25451
25672
  }
25452
25673
  }
25453
25674
 
25675
+ /**
25676
+ * The information of a moderation task.
25677
+ * @class
25678
+ */
25679
+ class ReviewAudioVideoTask extends AbstractModel {
25680
+ constructor(){
25681
+ super();
25682
+
25683
+ /**
25684
+ * The task ID.
25685
+ * @type {string || null}
25686
+ */
25687
+ this.TaskId = null;
25688
+
25689
+ /**
25690
+ * The task status. Valid values:
25691
+ <li>PROCESSING</li>
25692
+ <li>FINISH</li>
25693
+ * @type {string || null}
25694
+ */
25695
+ this.Status = null;
25696
+
25697
+ /**
25698
+ * The error code. An empty string indicates the task is successful; other values indicate that the task failed. For details, see [Video processing error codes](https://intl.cloud.tencent.com/document/product/266/39145?lang=en&pg=#video-processing).
25699
+ * @type {string || null}
25700
+ */
25701
+ this.ErrCodeExt = null;
25702
+
25703
+ /**
25704
+ * The error message.
25705
+ * @type {string || null}
25706
+ */
25707
+ this.Message = null;
25708
+
25709
+ /**
25710
+ * The output of a moderation task.
25711
+ Note: This field may return null, indicating that no valid values can be obtained.
25712
+ * @type {ReviewAudioVideoTaskOutput || null}
25713
+ */
25714
+ this.Output = null;
25715
+
25716
+ /**
25717
+ * The session ID, which is used for de-duplication. If there was a request with the same session ID in the last seven days, an error will be returned for the current request. The session ID can contain up to 50 characters. If you do not pass this parameter or pass in an empty string, duplicate sessions will not be identified.
25718
+ * @type {string || null}
25719
+ */
25720
+ this.SessionId = null;
25721
+
25722
+ /**
25723
+ * The source context, which is used to pass through user request information. The `ProcedureStateChanged` callback will return the value of this parameter. It can contain up to 1,000 characters.
25724
+ * @type {string || null}
25725
+ */
25726
+ this.SessionContext = null;
25727
+
25728
+ }
25729
+
25730
+ /**
25731
+ * @private
25732
+ */
25733
+ deserialize(params) {
25734
+ if (!params) {
25735
+ return;
25736
+ }
25737
+ this.TaskId = 'TaskId' in params ? params.TaskId : null;
25738
+ this.Status = 'Status' in params ? params.Status : null;
25739
+ this.ErrCodeExt = 'ErrCodeExt' in params ? params.ErrCodeExt : null;
25740
+ this.Message = 'Message' in params ? params.Message : null;
25741
+
25742
+ if (params.Output) {
25743
+ let obj = new ReviewAudioVideoTaskOutput();
25744
+ obj.deserialize(params.Output)
25745
+ this.Output = obj;
25746
+ }
25747
+ this.SessionId = 'SessionId' in params ? params.SessionId : null;
25748
+ this.SessionContext = 'SessionContext' in params ? params.SessionContext : null;
25749
+
25750
+ }
25751
+ }
25752
+
25454
25753
  /**
25455
25754
  * DescribeSnapshotByTimeOffsetTemplates response structure.
25456
25755
  * @class
@@ -32164,6 +32463,7 @@ module.exports = {
32164
32463
  DeleteTranscodeTemplateRequest: DeleteTranscodeTemplateRequest,
32165
32464
  TraceWatermarkInput: TraceWatermarkInput,
32166
32465
  PornAsrReviewTemplateInfoForUpdate: PornAsrReviewTemplateInfoForUpdate,
32466
+ ReviewAudioVideoSegmentItem: ReviewAudioVideoSegmentItem,
32167
32467
  MediaAnimatedGraphicsInfo: MediaAnimatedGraphicsInfo,
32168
32468
  DescribeSnapshotByTimeOffsetTemplatesRequest: DescribeSnapshotByTimeOffsetTemplatesRequest,
32169
32469
  CdnLogInfo: CdnLogInfo,
@@ -32253,6 +32553,7 @@ module.exports = {
32253
32553
  AiRecognitionTaskObjectResult: AiRecognitionTaskObjectResult,
32254
32554
  AiAnalysisTaskTagResult: AiAnalysisTaskTagResult,
32255
32555
  SearchMediaResponse: SearchMediaResponse,
32556
+ ReviewAudioVideoTaskOutput: ReviewAudioVideoTaskOutput,
32256
32557
  RemoveWaterMarkTaskOutput: RemoveWaterMarkTaskOutput,
32257
32558
  ModifyMediaStorageClassRequest: ModifyMediaStorageClassRequest,
32258
32559
  AiAnalysisTaskTagOutput: AiAnalysisTaskTagOutput,
@@ -32489,6 +32790,7 @@ module.exports = {
32489
32790
  ProcedureTask: ProcedureTask,
32490
32791
  ModifySuperPlayerConfigRequest: ModifySuperPlayerConfigRequest,
32491
32792
  TaskSimpleInfo: TaskSimpleInfo,
32793
+ ReviewAudioVideoTask: ReviewAudioVideoTask,
32492
32794
  DescribeSnapshotByTimeOffsetTemplatesResponse: DescribeSnapshotByTimeOffsetTemplatesResponse,
32493
32795
  MediaVideoStreamItem: MediaVideoStreamItem,
32494
32796
  SetDrmKeyProviderInfoRequest: SetDrmKeyProviderInfoRequest,
@@ -134,6 +134,7 @@ const ModifyMediaInfoRequest = models.ModifyMediaInfoRequest;
134
134
  const DeleteTranscodeTemplateRequest = models.DeleteTranscodeTemplateRequest;
135
135
  const TraceWatermarkInput = models.TraceWatermarkInput;
136
136
  const PornAsrReviewTemplateInfoForUpdate = models.PornAsrReviewTemplateInfoForUpdate;
137
+ const ReviewAudioVideoSegmentItem = models.ReviewAudioVideoSegmentItem;
137
138
  const MediaAnimatedGraphicsInfo = models.MediaAnimatedGraphicsInfo;
138
139
  const DescribeSnapshotByTimeOffsetTemplatesRequest = models.DescribeSnapshotByTimeOffsetTemplatesRequest;
139
140
  const CdnLogInfo = models.CdnLogInfo;
@@ -223,6 +224,7 @@ const ModifySnapshotByTimeOffsetTemplateResponse = models.ModifySnapshotByTimeOf
223
224
  const AiRecognitionTaskObjectResult = models.AiRecognitionTaskObjectResult;
224
225
  const AiAnalysisTaskTagResult = models.AiAnalysisTaskTagResult;
225
226
  const SearchMediaResponse = models.SearchMediaResponse;
227
+ const ReviewAudioVideoTaskOutput = models.ReviewAudioVideoTaskOutput;
226
228
  const RemoveWaterMarkTaskOutput = models.RemoveWaterMarkTaskOutput;
227
229
  const ModifyMediaStorageClassRequest = models.ModifyMediaStorageClassRequest;
228
230
  const AiAnalysisTaskTagOutput = models.AiAnalysisTaskTagOutput;
@@ -459,6 +461,7 @@ const ModifySnapshotByTimeOffsetTemplateRequest = models.ModifySnapshotByTimeOff
459
461
  const ProcedureTask = models.ProcedureTask;
460
462
  const ModifySuperPlayerConfigRequest = models.ModifySuperPlayerConfigRequest;
461
463
  const TaskSimpleInfo = models.TaskSimpleInfo;
464
+ const ReviewAudioVideoTask = models.ReviewAudioVideoTask;
462
465
  const DescribeSnapshotByTimeOffsetTemplatesResponse = models.DescribeSnapshotByTimeOffsetTemplatesResponse;
463
466
  const MediaVideoStreamItem = models.MediaVideoStreamItem;
464
467
  const SetDrmKeyProviderInfoRequest = models.SetDrmKeyProviderInfoRequest;
@@ -7651,6 +7651,40 @@ class VpnConnection extends AbstractModel {
7651
7651
  */
7652
7652
  this.HealthCheckStatus = null;
7653
7653
 
7654
+ /**
7655
+ * Whether to enable DPD. Values: `0` (Disable) and `1` (Enable)
7656
+ Note: This field may return null, indicating that no valid values can be obtained.
7657
+ * @type {number || null}
7658
+ */
7659
+ this.DpdEnable = null;
7660
+
7661
+ /**
7662
+ * DPD timeout period.
7663
+ Note: This field may return null, indicating that no valid values can be obtained.
7664
+ * @type {string || null}
7665
+ */
7666
+ this.DpdTimeout = null;
7667
+
7668
+ /**
7669
+ * The action to take in case of DPD timeout. Values: `clear` (Disconnect) and `restart` (retry). This parameter only takes effect when `DpdEnable` is set to `1`.
7670
+ Note: This field may return null, indicating that no valid values can be obtained.
7671
+ * @type {string || null}
7672
+ */
7673
+ this.DpdAction = null;
7674
+
7675
+ /**
7676
+ * Array of tag key-value pairs
7677
+ * @type {Array.<Tag> || null}
7678
+ */
7679
+ this.TagSet = null;
7680
+
7681
+ /**
7682
+ * Negotiation type
7683
+ Note: This field may return null, indicating that no valid values can be obtained.
7684
+ * @type {string || null}
7685
+ */
7686
+ this.NegotiationType = null;
7687
+
7654
7688
  }
7655
7689
 
7656
7690
  /**
@@ -7697,6 +7731,19 @@ class VpnConnection extends AbstractModel {
7697
7731
  this.HealthCheckLocalIp = 'HealthCheckLocalIp' in params ? params.HealthCheckLocalIp : null;
7698
7732
  this.HealthCheckRemoteIp = 'HealthCheckRemoteIp' in params ? params.HealthCheckRemoteIp : null;
7699
7733
  this.HealthCheckStatus = 'HealthCheckStatus' in params ? params.HealthCheckStatus : null;
7734
+ this.DpdEnable = 'DpdEnable' in params ? params.DpdEnable : null;
7735
+ this.DpdTimeout = 'DpdTimeout' in params ? params.DpdTimeout : null;
7736
+ this.DpdAction = 'DpdAction' in params ? params.DpdAction : null;
7737
+
7738
+ if (params.TagSet) {
7739
+ this.TagSet = new Array();
7740
+ for (let z in params.TagSet) {
7741
+ let obj = new Tag();
7742
+ obj.deserialize(params.TagSet[z]);
7743
+ this.TagSet.push(obj);
7744
+ }
7745
+ }
7746
+ this.NegotiationType = 'NegotiationType' in params ? params.NegotiationType : null;
7700
7747
 
7701
7748
  }
7702
7749
  }