@alicloud/green20220302 2.2.13 → 2.2.15
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/dist/client.d.ts +126 -33
- package/dist/client.js +34 -6
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +139 -33
package/src/client.ts
CHANGED
|
@@ -1467,13 +1467,20 @@ export class VideoModerationResultRequest extends $tea.Model {
|
|
|
1467
1467
|
* @remarks
|
|
1468
1468
|
* The type of the moderation service.
|
|
1469
1469
|
*
|
|
1470
|
+
* Valid values:
|
|
1471
|
+
*
|
|
1472
|
+
* * liveStreamDetection: live stream moderation
|
|
1473
|
+
* * videoDetection: video file moderation
|
|
1474
|
+
* * liveStreamDetection_cb: live stream moderation_For regions outside the Chinese mainland
|
|
1475
|
+
* * videoDetection_cb: video file moderation_For regions outside the Chinese mainland.
|
|
1476
|
+
*
|
|
1470
1477
|
* @example
|
|
1471
1478
|
* videoDetection
|
|
1472
1479
|
*/
|
|
1473
1480
|
service?: string;
|
|
1474
1481
|
/**
|
|
1475
1482
|
* @remarks
|
|
1476
|
-
* The parameters required by the moderation service. The
|
|
1483
|
+
* The parameters required by the moderation service. The ID of the task that you want to query. You can specify one task ID at a time.
|
|
1477
1484
|
*
|
|
1478
1485
|
* @example
|
|
1479
1486
|
* {\\"taskId\\":\\"au_f_8PoWiZKoLbczp5HRn69VdT-1y8@U5\\"}
|
|
@@ -1501,7 +1508,7 @@ export class VideoModerationResultRequest extends $tea.Model {
|
|
|
1501
1508
|
export class VideoModerationResultResponseBody extends $tea.Model {
|
|
1502
1509
|
/**
|
|
1503
1510
|
* @remarks
|
|
1504
|
-
* The returned HTTP status code.
|
|
1511
|
+
* The returned HTTP status code. The status code 200 indicates that the request was successful.
|
|
1505
1512
|
*
|
|
1506
1513
|
* @example
|
|
1507
1514
|
* 200
|
|
@@ -1509,7 +1516,7 @@ export class VideoModerationResultResponseBody extends $tea.Model {
|
|
|
1509
1516
|
code?: number;
|
|
1510
1517
|
/**
|
|
1511
1518
|
* @remarks
|
|
1512
|
-
* The
|
|
1519
|
+
* The moderation results.
|
|
1513
1520
|
*/
|
|
1514
1521
|
data?: VideoModerationResultResponseBodyData;
|
|
1515
1522
|
/**
|
|
@@ -1522,7 +1529,7 @@ export class VideoModerationResultResponseBody extends $tea.Model {
|
|
|
1522
1529
|
message?: string;
|
|
1523
1530
|
/**
|
|
1524
1531
|
* @remarks
|
|
1525
|
-
*
|
|
1532
|
+
* Id of the request
|
|
1526
1533
|
*
|
|
1527
1534
|
* @example
|
|
1528
1535
|
* 6CF2815C-C8C7-4A01-B52E-FF6E24F53492
|
|
@@ -1800,7 +1807,7 @@ export class VoiceModerationCancelResponse extends $tea.Model {
|
|
|
1800
1807
|
export class VoiceModerationResultRequest extends $tea.Model {
|
|
1801
1808
|
/**
|
|
1802
1809
|
* @remarks
|
|
1803
|
-
* The type of the moderation service.
|
|
1810
|
+
* The type of the moderation service. Valid values: nickname_detection: user nickname
|
|
1804
1811
|
*
|
|
1805
1812
|
* @example
|
|
1806
1813
|
* nickname_detection
|
|
@@ -1808,7 +1815,9 @@ export class VoiceModerationResultRequest extends $tea.Model {
|
|
|
1808
1815
|
service?: string;
|
|
1809
1816
|
/**
|
|
1810
1817
|
* @remarks
|
|
1811
|
-
* The parameters
|
|
1818
|
+
* The parameters of API requests that are sent from API Gateway to the backend service.
|
|
1819
|
+
*
|
|
1820
|
+
* For more information, see [ServiceParameter](https://help.aliyun.com/document_detail/43988.html).
|
|
1812
1821
|
*
|
|
1813
1822
|
* @example
|
|
1814
1823
|
* {"taskId":"xxxxx-xxxx"}
|
|
@@ -1857,7 +1866,7 @@ export class VoiceModerationResultResponseBody extends $tea.Model {
|
|
|
1857
1866
|
message?: string;
|
|
1858
1867
|
/**
|
|
1859
1868
|
* @remarks
|
|
1860
|
-
*
|
|
1869
|
+
* Id of the request
|
|
1861
1870
|
*
|
|
1862
1871
|
* @example
|
|
1863
1872
|
* 2881AD4F-638B-52A3-BA20-F74C5B1CEAE3
|
|
@@ -4134,6 +4143,25 @@ export class ImageModerationResponseBodyDataExtTextInImage extends $tea.Model {
|
|
|
4134
4143
|
}
|
|
4135
4144
|
}
|
|
4136
4145
|
|
|
4146
|
+
export class ImageModerationResponseBodyDataExtVlContent extends $tea.Model {
|
|
4147
|
+
outputText?: string;
|
|
4148
|
+
static names(): { [key: string]: string } {
|
|
4149
|
+
return {
|
|
4150
|
+
outputText: 'OutputText',
|
|
4151
|
+
};
|
|
4152
|
+
}
|
|
4153
|
+
|
|
4154
|
+
static types(): { [key: string]: any } {
|
|
4155
|
+
return {
|
|
4156
|
+
outputText: 'string',
|
|
4157
|
+
};
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
constructor(map?: { [key: string]: any }) {
|
|
4161
|
+
super(map);
|
|
4162
|
+
}
|
|
4163
|
+
}
|
|
4164
|
+
|
|
4137
4165
|
export class ImageModerationResponseBodyDataExt extends $tea.Model {
|
|
4138
4166
|
/**
|
|
4139
4167
|
* @remarks
|
|
@@ -4170,6 +4198,7 @@ export class ImageModerationResponseBodyDataExt extends $tea.Model {
|
|
|
4170
4198
|
* Returns the text information in the hit image.
|
|
4171
4199
|
*/
|
|
4172
4200
|
textInImage?: ImageModerationResponseBodyDataExtTextInImage;
|
|
4201
|
+
vlContent?: ImageModerationResponseBodyDataExtVlContent;
|
|
4173
4202
|
static names(): { [key: string]: string } {
|
|
4174
4203
|
return {
|
|
4175
4204
|
customImage: 'CustomImage',
|
|
@@ -4179,6 +4208,7 @@ export class ImageModerationResponseBodyDataExt extends $tea.Model {
|
|
|
4179
4208
|
publicFigure: 'PublicFigure',
|
|
4180
4209
|
recognition: 'Recognition',
|
|
4181
4210
|
textInImage: 'TextInImage',
|
|
4211
|
+
vlContent: 'VlContent',
|
|
4182
4212
|
};
|
|
4183
4213
|
}
|
|
4184
4214
|
|
|
@@ -4191,6 +4221,7 @@ export class ImageModerationResponseBodyDataExt extends $tea.Model {
|
|
|
4191
4221
|
publicFigure: { 'type': 'array', 'itemType': ImageModerationResponseBodyDataExtPublicFigure },
|
|
4192
4222
|
recognition: { 'type': 'array', 'itemType': ImageModerationResponseBodyDataExtRecognition },
|
|
4193
4223
|
textInImage: ImageModerationResponseBodyDataExtTextInImage,
|
|
4224
|
+
vlContent: ImageModerationResponseBodyDataExtVlContent,
|
|
4194
4225
|
};
|
|
4195
4226
|
}
|
|
4196
4227
|
|
|
@@ -4623,7 +4654,7 @@ export class VideoModerationResponseBodyData extends $tea.Model {
|
|
|
4623
4654
|
export class VideoModerationResultResponseBodyDataAudioResultAudioSummarys extends $tea.Model {
|
|
4624
4655
|
/**
|
|
4625
4656
|
* @remarks
|
|
4626
|
-
*
|
|
4657
|
+
* The voice label.
|
|
4627
4658
|
*
|
|
4628
4659
|
* @example
|
|
4629
4660
|
* profanity
|
|
@@ -4689,6 +4720,13 @@ export class VideoModerationResultResponseBodyDataAudioResultSliceDetails extend
|
|
|
4689
4720
|
* porn
|
|
4690
4721
|
*/
|
|
4691
4722
|
labels?: string;
|
|
4723
|
+
/**
|
|
4724
|
+
* @remarks
|
|
4725
|
+
* Risk Level.
|
|
4726
|
+
*
|
|
4727
|
+
* @example
|
|
4728
|
+
* high
|
|
4729
|
+
*/
|
|
4692
4730
|
riskLevel?: string;
|
|
4693
4731
|
/**
|
|
4694
4732
|
* @remarks
|
|
@@ -4708,7 +4746,7 @@ export class VideoModerationResultResponseBodyDataAudioResultSliceDetails extend
|
|
|
4708
4746
|
riskWords?: string;
|
|
4709
4747
|
/**
|
|
4710
4748
|
* @remarks
|
|
4711
|
-
*
|
|
4749
|
+
* The risk score. Default range: 0 to 99.
|
|
4712
4750
|
*
|
|
4713
4751
|
* @example
|
|
4714
4752
|
* 5
|
|
@@ -4740,7 +4778,7 @@ export class VideoModerationResultResponseBodyDataAudioResultSliceDetails extend
|
|
|
4740
4778
|
text?: string;
|
|
4741
4779
|
/**
|
|
4742
4780
|
* @remarks
|
|
4743
|
-
* If the moderation object is a voice stream, this parameter indicates the temporary access URL of the voice stream to which the text entry corresponds. The validity period of the URL is 30 minutes. You must prepare another URL to store the
|
|
4781
|
+
* If the moderation object is a voice stream, this parameter indicates the temporary access URL of the voice stream to which the text entry corresponds. The validity period of the URL is 30 minutes. You must prepare another URL to store the voice stream at the earliest opportunity.
|
|
4744
4782
|
*
|
|
4745
4783
|
* @example
|
|
4746
4784
|
* http://xxxx.abc.img
|
|
@@ -4791,6 +4829,13 @@ export class VideoModerationResultResponseBodyDataAudioResult extends $tea.Model
|
|
|
4791
4829
|
* Summary of voice labels.
|
|
4792
4830
|
*/
|
|
4793
4831
|
audioSummarys?: VideoModerationResultResponseBodyDataAudioResultAudioSummarys[];
|
|
4832
|
+
/**
|
|
4833
|
+
* @remarks
|
|
4834
|
+
* Risk Level.
|
|
4835
|
+
*
|
|
4836
|
+
* @example
|
|
4837
|
+
* high
|
|
4838
|
+
*/
|
|
4794
4839
|
riskLevel?: string;
|
|
4795
4840
|
/**
|
|
4796
4841
|
* @remarks
|
|
@@ -4819,6 +4864,13 @@ export class VideoModerationResultResponseBodyDataAudioResult extends $tea.Model
|
|
|
4819
4864
|
}
|
|
4820
4865
|
|
|
4821
4866
|
export class VideoModerationResultResponseBodyDataFrameResultFrameSummarys extends $tea.Model {
|
|
4867
|
+
/**
|
|
4868
|
+
* @remarks
|
|
4869
|
+
* The description of the result.
|
|
4870
|
+
*
|
|
4871
|
+
* @example
|
|
4872
|
+
* no risk
|
|
4873
|
+
*/
|
|
4822
4874
|
description?: string;
|
|
4823
4875
|
/**
|
|
4824
4876
|
* @remarks
|
|
@@ -4860,7 +4912,7 @@ export class VideoModerationResultResponseBodyDataFrameResultFrameSummarys exten
|
|
|
4860
4912
|
export class VideoModerationResultResponseBodyDataFrameResultFramesResultsCustomImage extends $tea.Model {
|
|
4861
4913
|
/**
|
|
4862
4914
|
* @remarks
|
|
4863
|
-
* The ID of the
|
|
4915
|
+
* The ID of the custom image that is hit.
|
|
4864
4916
|
*
|
|
4865
4917
|
* @example
|
|
4866
4918
|
* 1234
|
|
@@ -4868,7 +4920,7 @@ export class VideoModerationResultResponseBodyDataFrameResultFramesResultsCustom
|
|
|
4868
4920
|
imageId?: string;
|
|
4869
4921
|
/**
|
|
4870
4922
|
* @remarks
|
|
4871
|
-
* The custom image library
|
|
4923
|
+
* The ID of the custom image library that is hit.
|
|
4872
4924
|
*
|
|
4873
4925
|
* @example
|
|
4874
4926
|
* 12345678
|
|
@@ -4896,7 +4948,7 @@ export class VideoModerationResultResponseBodyDataFrameResultFramesResultsCustom
|
|
|
4896
4948
|
export class VideoModerationResultResponseBodyDataFrameResultFramesResultsPublicFigure extends $tea.Model {
|
|
4897
4949
|
/**
|
|
4898
4950
|
* @remarks
|
|
4899
|
-
*
|
|
4951
|
+
* The information about the code of the identified figure.
|
|
4900
4952
|
*
|
|
4901
4953
|
* @example
|
|
4902
4954
|
* xxx001
|
|
@@ -4928,6 +4980,13 @@ export class VideoModerationResultResponseBodyDataFrameResultFramesResultsResult
|
|
|
4928
4980
|
* 50
|
|
4929
4981
|
*/
|
|
4930
4982
|
confidence?: number;
|
|
4983
|
+
/**
|
|
4984
|
+
* @remarks
|
|
4985
|
+
* The description of the result.
|
|
4986
|
+
*
|
|
4987
|
+
* @example
|
|
4988
|
+
* no risk
|
|
4989
|
+
*/
|
|
4931
4990
|
description?: string;
|
|
4932
4991
|
/**
|
|
4933
4992
|
* @remarks
|
|
@@ -4961,12 +5020,12 @@ export class VideoModerationResultResponseBodyDataFrameResultFramesResultsResult
|
|
|
4961
5020
|
export class VideoModerationResultResponseBodyDataFrameResultFramesResults extends $tea.Model {
|
|
4962
5021
|
/**
|
|
4963
5022
|
* @remarks
|
|
4964
|
-
* If a custom image library is hit, information about the
|
|
5023
|
+
* If a custom image library is hit, information about the custom image library is returned.
|
|
4965
5024
|
*/
|
|
4966
5025
|
customImage?: VideoModerationResultResponseBodyDataFrameResultFramesResultsCustomImage[];
|
|
4967
5026
|
/**
|
|
4968
5027
|
* @remarks
|
|
4969
|
-
* If the video contains a specific
|
|
5028
|
+
* If the video contains a specific figure, the code of the identified figure is returned.
|
|
4970
5029
|
*/
|
|
4971
5030
|
publicFigure?: VideoModerationResultResponseBodyDataFrameResultFramesResultsPublicFigure[];
|
|
4972
5031
|
/**
|
|
@@ -4984,7 +5043,7 @@ export class VideoModerationResultResponseBodyDataFrameResultFramesResults exten
|
|
|
4984
5043
|
service?: string;
|
|
4985
5044
|
/**
|
|
4986
5045
|
* @remarks
|
|
4987
|
-
*
|
|
5046
|
+
* The information about the text hit in the image is returned.
|
|
4988
5047
|
*/
|
|
4989
5048
|
textInImage?: { [key: string]: any };
|
|
4990
5049
|
static names(): { [key: string]: string } {
|
|
@@ -5026,10 +5085,17 @@ export class VideoModerationResultResponseBodyDataFrameResultFrames extends $tea
|
|
|
5026
5085
|
* The results of frame moderation parameters such as the label parameter and the confidence parameter.
|
|
5027
5086
|
*/
|
|
5028
5087
|
results?: VideoModerationResultResponseBodyDataFrameResultFramesResults[];
|
|
5088
|
+
/**
|
|
5089
|
+
* @remarks
|
|
5090
|
+
* Risk Level.
|
|
5091
|
+
*
|
|
5092
|
+
* @example
|
|
5093
|
+
* high
|
|
5094
|
+
*/
|
|
5029
5095
|
riskLevel?: string;
|
|
5030
5096
|
/**
|
|
5031
5097
|
* @remarks
|
|
5032
|
-
* The temporary URL of a captured frame.
|
|
5098
|
+
* The temporary URL of a captured frame.
|
|
5033
5099
|
*
|
|
5034
5100
|
* @example
|
|
5035
5101
|
* http://xxxx.abc.jpg
|
|
@@ -5087,6 +5153,13 @@ export class VideoModerationResultResponseBodyDataFrameResult extends $tea.Model
|
|
|
5087
5153
|
* The information about the frames that match the labels.
|
|
5088
5154
|
*/
|
|
5089
5155
|
frames?: VideoModerationResultResponseBodyDataFrameResultFrames[];
|
|
5156
|
+
/**
|
|
5157
|
+
* @remarks
|
|
5158
|
+
* Risk Level.
|
|
5159
|
+
*
|
|
5160
|
+
* @example
|
|
5161
|
+
* high
|
|
5162
|
+
*/
|
|
5090
5163
|
riskLevel?: string;
|
|
5091
5164
|
static names(): { [key: string]: string } {
|
|
5092
5165
|
return {
|
|
@@ -5119,7 +5192,7 @@ export class VideoModerationResultResponseBodyData extends $tea.Model {
|
|
|
5119
5192
|
audioResult?: VideoModerationResultResponseBodyDataAudioResult;
|
|
5120
5193
|
/**
|
|
5121
5194
|
* @remarks
|
|
5122
|
-
* The
|
|
5195
|
+
* The value of dataId that is specified in the API request. If this parameter is not specified in the API request, the dataId field is not available in the response.
|
|
5123
5196
|
*
|
|
5124
5197
|
* @example
|
|
5125
5198
|
* product_content-2055763
|
|
@@ -5138,6 +5211,13 @@ export class VideoModerationResultResponseBodyData extends $tea.Model {
|
|
|
5138
5211
|
* liveId
|
|
5139
5212
|
*/
|
|
5140
5213
|
liveId?: string;
|
|
5214
|
+
/**
|
|
5215
|
+
* @remarks
|
|
5216
|
+
* Risk Level.
|
|
5217
|
+
*
|
|
5218
|
+
* @example
|
|
5219
|
+
* high
|
|
5220
|
+
*/
|
|
5141
5221
|
riskLevel?: string;
|
|
5142
5222
|
/**
|
|
5143
5223
|
* @remarks
|
|
@@ -5213,7 +5293,7 @@ export class VoiceModerationResponseBodyData extends $tea.Model {
|
|
|
5213
5293
|
export class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Model {
|
|
5214
5294
|
/**
|
|
5215
5295
|
* @remarks
|
|
5216
|
-
* The end time of the
|
|
5296
|
+
* The end time of the audio segment in seconds.
|
|
5217
5297
|
*
|
|
5218
5298
|
* @example
|
|
5219
5299
|
* 10
|
|
@@ -5229,7 +5309,7 @@ export class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Mode
|
|
|
5229
5309
|
endTimestamp?: number;
|
|
5230
5310
|
/**
|
|
5231
5311
|
* @remarks
|
|
5232
|
-
*
|
|
5312
|
+
* Extended fields.
|
|
5233
5313
|
*
|
|
5234
5314
|
* @example
|
|
5235
5315
|
* {\\"riskTips\\":\\"sexuality_Suggestive\\",\\"riskWords\\":\\"pxxxxy\\"}
|
|
@@ -5245,7 +5325,7 @@ export class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Mode
|
|
|
5245
5325
|
labels?: string;
|
|
5246
5326
|
/**
|
|
5247
5327
|
* @remarks
|
|
5248
|
-
* Reserved
|
|
5328
|
+
* Reserved parameter.
|
|
5249
5329
|
*
|
|
5250
5330
|
* @example
|
|
5251
5331
|
* {}
|
|
@@ -5253,7 +5333,15 @@ export class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Mode
|
|
|
5253
5333
|
originAlgoResult?: { [key: string]: any };
|
|
5254
5334
|
/**
|
|
5255
5335
|
* @remarks
|
|
5256
|
-
*
|
|
5336
|
+
* Risk Level.
|
|
5337
|
+
*
|
|
5338
|
+
* @example
|
|
5339
|
+
* high
|
|
5340
|
+
*/
|
|
5341
|
+
riskLevel?: string;
|
|
5342
|
+
/**
|
|
5343
|
+
* @remarks
|
|
5344
|
+
* The details of the risky content.
|
|
5257
5345
|
*
|
|
5258
5346
|
* @example
|
|
5259
5347
|
* sexuality_Suggestive
|
|
@@ -5261,7 +5349,7 @@ export class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Mode
|
|
|
5261
5349
|
riskTips?: string;
|
|
5262
5350
|
/**
|
|
5263
5351
|
* @remarks
|
|
5264
|
-
* The
|
|
5352
|
+
* The term hit by the risky content.
|
|
5265
5353
|
*
|
|
5266
5354
|
* @example
|
|
5267
5355
|
* AAA,BBB,CCC
|
|
@@ -5269,7 +5357,7 @@ export class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Mode
|
|
|
5269
5357
|
riskWords?: string;
|
|
5270
5358
|
/**
|
|
5271
5359
|
* @remarks
|
|
5272
|
-
*
|
|
5360
|
+
* The risk score. Default range: 0 to 99.
|
|
5273
5361
|
*
|
|
5274
5362
|
* @example
|
|
5275
5363
|
* 87.01
|
|
@@ -5277,7 +5365,7 @@ export class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Mode
|
|
|
5277
5365
|
score?: number;
|
|
5278
5366
|
/**
|
|
5279
5367
|
* @remarks
|
|
5280
|
-
* The start time of the
|
|
5368
|
+
* The start time of the audio segment in seconds.
|
|
5281
5369
|
*
|
|
5282
5370
|
* @example
|
|
5283
5371
|
* 0
|
|
@@ -5293,7 +5381,7 @@ export class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Mode
|
|
|
5293
5381
|
startTimestamp?: number;
|
|
5294
5382
|
/**
|
|
5295
5383
|
* @remarks
|
|
5296
|
-
* The text converted from
|
|
5384
|
+
* The text converted from the audio segment.
|
|
5297
5385
|
*
|
|
5298
5386
|
* @example
|
|
5299
5387
|
* Disgusting
|
|
@@ -5301,7 +5389,7 @@ export class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Mode
|
|
|
5301
5389
|
text?: string;
|
|
5302
5390
|
/**
|
|
5303
5391
|
* @remarks
|
|
5304
|
-
* The temporary
|
|
5392
|
+
* The temporary URL of the audio segment.
|
|
5305
5393
|
*
|
|
5306
5394
|
* @example
|
|
5307
5395
|
* https://aliyundoc.com
|
|
@@ -5314,6 +5402,7 @@ export class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Mode
|
|
|
5314
5402
|
extend: 'Extend',
|
|
5315
5403
|
labels: 'Labels',
|
|
5316
5404
|
originAlgoResult: 'OriginAlgoResult',
|
|
5405
|
+
riskLevel: 'RiskLevel',
|
|
5317
5406
|
riskTips: 'RiskTips',
|
|
5318
5407
|
riskWords: 'RiskWords',
|
|
5319
5408
|
score: 'Score',
|
|
@@ -5331,6 +5420,7 @@ export class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Mode
|
|
|
5331
5420
|
extend: 'string',
|
|
5332
5421
|
labels: 'string',
|
|
5333
5422
|
originAlgoResult: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
5423
|
+
riskLevel: 'string',
|
|
5334
5424
|
riskTips: 'string',
|
|
5335
5425
|
riskWords: 'string',
|
|
5336
5426
|
score: 'number',
|
|
@@ -5365,7 +5455,15 @@ export class VoiceModerationResultResponseBodyData extends $tea.Model {
|
|
|
5365
5455
|
liveId?: string;
|
|
5366
5456
|
/**
|
|
5367
5457
|
* @remarks
|
|
5368
|
-
*
|
|
5458
|
+
* Risk Level.
|
|
5459
|
+
*
|
|
5460
|
+
* @example
|
|
5461
|
+
* high
|
|
5462
|
+
*/
|
|
5463
|
+
riskLevel?: string;
|
|
5464
|
+
/**
|
|
5465
|
+
* @remarks
|
|
5466
|
+
* The moderation results of audio segments.
|
|
5369
5467
|
*/
|
|
5370
5468
|
sliceDetails?: VoiceModerationResultResponseBodyDataSliceDetails[];
|
|
5371
5469
|
/**
|
|
@@ -5378,7 +5476,7 @@ export class VoiceModerationResultResponseBodyData extends $tea.Model {
|
|
|
5378
5476
|
taskId?: string;
|
|
5379
5477
|
/**
|
|
5380
5478
|
* @remarks
|
|
5381
|
-
* The URL of the
|
|
5479
|
+
* The URL of the moderated content.
|
|
5382
5480
|
*
|
|
5383
5481
|
* @example
|
|
5384
5482
|
* https://aliyundoc.com
|
|
@@ -5388,6 +5486,7 @@ export class VoiceModerationResultResponseBodyData extends $tea.Model {
|
|
|
5388
5486
|
return {
|
|
5389
5487
|
dataId: 'DataId',
|
|
5390
5488
|
liveId: 'LiveId',
|
|
5489
|
+
riskLevel: 'RiskLevel',
|
|
5391
5490
|
sliceDetails: 'SliceDetails',
|
|
5392
5491
|
taskId: 'TaskId',
|
|
5393
5492
|
url: 'Url',
|
|
@@ -5398,6 +5497,7 @@ export class VoiceModerationResultResponseBodyData extends $tea.Model {
|
|
|
5398
5497
|
return {
|
|
5399
5498
|
dataId: 'string',
|
|
5400
5499
|
liveId: 'string',
|
|
5500
|
+
riskLevel: 'string',
|
|
5401
5501
|
sliceDetails: { 'type': 'array', 'itemType': VoiceModerationResultResponseBodyDataSliceDetails },
|
|
5402
5502
|
taskId: 'string',
|
|
5403
5503
|
url: 'string',
|
|
@@ -6059,7 +6159,10 @@ export default class Client extends OpenApi {
|
|
|
6059
6159
|
}
|
|
6060
6160
|
|
|
6061
6161
|
/**
|
|
6062
|
-
*
|
|
6162
|
+
* Obtains the moderation results of a Video Moderation 2.0 task
|
|
6163
|
+
*
|
|
6164
|
+
* @remarks
|
|
6165
|
+
* This operation is free of charge. We recommend that you query moderation results at least 30 seconds after you send an asynchronous moderation request. Content Moderation retains moderation results for at most 24 hours. After 24 hours, the results are deleted.
|
|
6063
6166
|
*
|
|
6064
6167
|
* @param request - VideoModerationResultRequest
|
|
6065
6168
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6094,7 +6197,10 @@ export default class Client extends OpenApi {
|
|
|
6094
6197
|
}
|
|
6095
6198
|
|
|
6096
6199
|
/**
|
|
6097
|
-
*
|
|
6200
|
+
* Obtains the moderation results of a Video Moderation 2.0 task
|
|
6201
|
+
*
|
|
6202
|
+
* @remarks
|
|
6203
|
+
* This operation is free of charge. We recommend that you query moderation results at least 30 seconds after you send an asynchronous moderation request. Content Moderation retains moderation results for at most 24 hours. After 24 hours, the results are deleted.
|
|
6098
6204
|
*
|
|
6099
6205
|
* @param request - VideoModerationResultRequest
|
|
6100
6206
|
* @returns VideoModerationResultResponse
|
|
@@ -6197,7 +6303,7 @@ export default class Client extends OpenApi {
|
|
|
6197
6303
|
}
|
|
6198
6304
|
|
|
6199
6305
|
/**
|
|
6200
|
-
*
|
|
6306
|
+
* Obtains the moderation results of a Voice Moderation 2.0 task.
|
|
6201
6307
|
*
|
|
6202
6308
|
* @param request - VoiceModerationResultRequest
|
|
6203
6309
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6232,7 +6338,7 @@ export default class Client extends OpenApi {
|
|
|
6232
6338
|
}
|
|
6233
6339
|
|
|
6234
6340
|
/**
|
|
6235
|
-
*
|
|
6341
|
+
* Obtains the moderation results of a Voice Moderation 2.0 task.
|
|
6236
6342
|
*
|
|
6237
6343
|
* @param request - VoiceModerationResultRequest
|
|
6238
6344
|
* @returns VoiceModerationResultResponse
|