@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/dist/client.d.ts
CHANGED
|
@@ -1075,13 +1075,20 @@ export declare class VideoModerationResultRequest extends $tea.Model {
|
|
|
1075
1075
|
* @remarks
|
|
1076
1076
|
* The type of the moderation service.
|
|
1077
1077
|
*
|
|
1078
|
+
* Valid values:
|
|
1079
|
+
*
|
|
1080
|
+
* * liveStreamDetection: live stream moderation
|
|
1081
|
+
* * videoDetection: video file moderation
|
|
1082
|
+
* * liveStreamDetection_cb: live stream moderation_For regions outside the Chinese mainland
|
|
1083
|
+
* * videoDetection_cb: video file moderation_For regions outside the Chinese mainland.
|
|
1084
|
+
*
|
|
1078
1085
|
* @example
|
|
1079
1086
|
* videoDetection
|
|
1080
1087
|
*/
|
|
1081
1088
|
service?: string;
|
|
1082
1089
|
/**
|
|
1083
1090
|
* @remarks
|
|
1084
|
-
* The parameters required by the moderation service. The
|
|
1091
|
+
* 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.
|
|
1085
1092
|
*
|
|
1086
1093
|
* @example
|
|
1087
1094
|
* {\\"taskId\\":\\"au_f_8PoWiZKoLbczp5HRn69VdT-1y8@U5\\"}
|
|
@@ -1100,7 +1107,7 @@ export declare class VideoModerationResultRequest extends $tea.Model {
|
|
|
1100
1107
|
export declare class VideoModerationResultResponseBody extends $tea.Model {
|
|
1101
1108
|
/**
|
|
1102
1109
|
* @remarks
|
|
1103
|
-
* The returned HTTP status code.
|
|
1110
|
+
* The returned HTTP status code. The status code 200 indicates that the request was successful.
|
|
1104
1111
|
*
|
|
1105
1112
|
* @example
|
|
1106
1113
|
* 200
|
|
@@ -1108,7 +1115,7 @@ export declare class VideoModerationResultResponseBody extends $tea.Model {
|
|
|
1108
1115
|
code?: number;
|
|
1109
1116
|
/**
|
|
1110
1117
|
* @remarks
|
|
1111
|
-
* The
|
|
1118
|
+
* The moderation results.
|
|
1112
1119
|
*/
|
|
1113
1120
|
data?: VideoModerationResultResponseBodyData;
|
|
1114
1121
|
/**
|
|
@@ -1121,7 +1128,7 @@ export declare class VideoModerationResultResponseBody extends $tea.Model {
|
|
|
1121
1128
|
message?: string;
|
|
1122
1129
|
/**
|
|
1123
1130
|
* @remarks
|
|
1124
|
-
*
|
|
1131
|
+
* Id of the request
|
|
1125
1132
|
*
|
|
1126
1133
|
* @example
|
|
1127
1134
|
* 6CF2815C-C8C7-4A01-B52E-FF6E24F53492
|
|
@@ -1317,7 +1324,7 @@ export declare class VoiceModerationCancelResponse extends $tea.Model {
|
|
|
1317
1324
|
export declare class VoiceModerationResultRequest extends $tea.Model {
|
|
1318
1325
|
/**
|
|
1319
1326
|
* @remarks
|
|
1320
|
-
* The type of the moderation service.
|
|
1327
|
+
* The type of the moderation service. Valid values: nickname_detection: user nickname
|
|
1321
1328
|
*
|
|
1322
1329
|
* @example
|
|
1323
1330
|
* nickname_detection
|
|
@@ -1325,7 +1332,9 @@ export declare class VoiceModerationResultRequest extends $tea.Model {
|
|
|
1325
1332
|
service?: string;
|
|
1326
1333
|
/**
|
|
1327
1334
|
* @remarks
|
|
1328
|
-
* The parameters
|
|
1335
|
+
* The parameters of API requests that are sent from API Gateway to the backend service.
|
|
1336
|
+
*
|
|
1337
|
+
* For more information, see [ServiceParameter](https://help.aliyun.com/document_detail/43988.html).
|
|
1329
1338
|
*
|
|
1330
1339
|
* @example
|
|
1331
1340
|
* {"taskId":"xxxxx-xxxx"}
|
|
@@ -1365,7 +1374,7 @@ export declare class VoiceModerationResultResponseBody extends $tea.Model {
|
|
|
1365
1374
|
message?: string;
|
|
1366
1375
|
/**
|
|
1367
1376
|
* @remarks
|
|
1368
|
-
*
|
|
1377
|
+
* Id of the request
|
|
1369
1378
|
*
|
|
1370
1379
|
* @example
|
|
1371
1380
|
* 2881AD4F-638B-52A3-BA20-F74C5B1CEAE3
|
|
@@ -3078,6 +3087,18 @@ export declare class ImageModerationResponseBodyDataExtTextInImage extends $tea.
|
|
|
3078
3087
|
[key: string]: any;
|
|
3079
3088
|
});
|
|
3080
3089
|
}
|
|
3090
|
+
export declare class ImageModerationResponseBodyDataExtVlContent extends $tea.Model {
|
|
3091
|
+
outputText?: string;
|
|
3092
|
+
static names(): {
|
|
3093
|
+
[key: string]: string;
|
|
3094
|
+
};
|
|
3095
|
+
static types(): {
|
|
3096
|
+
[key: string]: any;
|
|
3097
|
+
};
|
|
3098
|
+
constructor(map?: {
|
|
3099
|
+
[key: string]: any;
|
|
3100
|
+
});
|
|
3101
|
+
}
|
|
3081
3102
|
export declare class ImageModerationResponseBodyDataExt extends $tea.Model {
|
|
3082
3103
|
/**
|
|
3083
3104
|
* @remarks
|
|
@@ -3114,6 +3135,7 @@ export declare class ImageModerationResponseBodyDataExt extends $tea.Model {
|
|
|
3114
3135
|
* Returns the text information in the hit image.
|
|
3115
3136
|
*/
|
|
3116
3137
|
textInImage?: ImageModerationResponseBodyDataExtTextInImage;
|
|
3138
|
+
vlContent?: ImageModerationResponseBodyDataExtVlContent;
|
|
3117
3139
|
static names(): {
|
|
3118
3140
|
[key: string]: string;
|
|
3119
3141
|
};
|
|
@@ -3445,7 +3467,7 @@ export declare class VideoModerationResponseBodyData extends $tea.Model {
|
|
|
3445
3467
|
export declare class VideoModerationResultResponseBodyDataAudioResultAudioSummarys extends $tea.Model {
|
|
3446
3468
|
/**
|
|
3447
3469
|
* @remarks
|
|
3448
|
-
*
|
|
3470
|
+
* The voice label.
|
|
3449
3471
|
*
|
|
3450
3472
|
* @example
|
|
3451
3473
|
* profanity
|
|
@@ -3502,6 +3524,13 @@ export declare class VideoModerationResultResponseBodyDataAudioResultSliceDetail
|
|
|
3502
3524
|
* porn
|
|
3503
3525
|
*/
|
|
3504
3526
|
labels?: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* @remarks
|
|
3529
|
+
* Risk Level.
|
|
3530
|
+
*
|
|
3531
|
+
* @example
|
|
3532
|
+
* high
|
|
3533
|
+
*/
|
|
3505
3534
|
riskLevel?: string;
|
|
3506
3535
|
/**
|
|
3507
3536
|
* @remarks
|
|
@@ -3521,7 +3550,7 @@ export declare class VideoModerationResultResponseBodyDataAudioResultSliceDetail
|
|
|
3521
3550
|
riskWords?: string;
|
|
3522
3551
|
/**
|
|
3523
3552
|
* @remarks
|
|
3524
|
-
*
|
|
3553
|
+
* The risk score. Default range: 0 to 99.
|
|
3525
3554
|
*
|
|
3526
3555
|
* @example
|
|
3527
3556
|
* 5
|
|
@@ -3553,7 +3582,7 @@ export declare class VideoModerationResultResponseBodyDataAudioResultSliceDetail
|
|
|
3553
3582
|
text?: string;
|
|
3554
3583
|
/**
|
|
3555
3584
|
* @remarks
|
|
3556
|
-
* 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
|
|
3585
|
+
* 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.
|
|
3557
3586
|
*
|
|
3558
3587
|
* @example
|
|
3559
3588
|
* http://xxxx.abc.img
|
|
@@ -3575,6 +3604,13 @@ export declare class VideoModerationResultResponseBodyDataAudioResult extends $t
|
|
|
3575
3604
|
* Summary of voice labels.
|
|
3576
3605
|
*/
|
|
3577
3606
|
audioSummarys?: VideoModerationResultResponseBodyDataAudioResultAudioSummarys[];
|
|
3607
|
+
/**
|
|
3608
|
+
* @remarks
|
|
3609
|
+
* Risk Level.
|
|
3610
|
+
*
|
|
3611
|
+
* @example
|
|
3612
|
+
* high
|
|
3613
|
+
*/
|
|
3578
3614
|
riskLevel?: string;
|
|
3579
3615
|
/**
|
|
3580
3616
|
* @remarks
|
|
@@ -3592,6 +3628,13 @@ export declare class VideoModerationResultResponseBodyDataAudioResult extends $t
|
|
|
3592
3628
|
});
|
|
3593
3629
|
}
|
|
3594
3630
|
export declare class VideoModerationResultResponseBodyDataFrameResultFrameSummarys extends $tea.Model {
|
|
3631
|
+
/**
|
|
3632
|
+
* @remarks
|
|
3633
|
+
* The description of the result.
|
|
3634
|
+
*
|
|
3635
|
+
* @example
|
|
3636
|
+
* no risk
|
|
3637
|
+
*/
|
|
3595
3638
|
description?: string;
|
|
3596
3639
|
/**
|
|
3597
3640
|
* @remarks
|
|
@@ -3622,7 +3665,7 @@ export declare class VideoModerationResultResponseBodyDataFrameResultFrameSummar
|
|
|
3622
3665
|
export declare class VideoModerationResultResponseBodyDataFrameResultFramesResultsCustomImage extends $tea.Model {
|
|
3623
3666
|
/**
|
|
3624
3667
|
* @remarks
|
|
3625
|
-
* The ID of the
|
|
3668
|
+
* The ID of the custom image that is hit.
|
|
3626
3669
|
*
|
|
3627
3670
|
* @example
|
|
3628
3671
|
* 1234
|
|
@@ -3630,7 +3673,7 @@ export declare class VideoModerationResultResponseBodyDataFrameResultFramesResul
|
|
|
3630
3673
|
imageId?: string;
|
|
3631
3674
|
/**
|
|
3632
3675
|
* @remarks
|
|
3633
|
-
* The custom image library
|
|
3676
|
+
* The ID of the custom image library that is hit.
|
|
3634
3677
|
*
|
|
3635
3678
|
* @example
|
|
3636
3679
|
* 12345678
|
|
@@ -3649,7 +3692,7 @@ export declare class VideoModerationResultResponseBodyDataFrameResultFramesResul
|
|
|
3649
3692
|
export declare class VideoModerationResultResponseBodyDataFrameResultFramesResultsPublicFigure extends $tea.Model {
|
|
3650
3693
|
/**
|
|
3651
3694
|
* @remarks
|
|
3652
|
-
*
|
|
3695
|
+
* The information about the code of the identified figure.
|
|
3653
3696
|
*
|
|
3654
3697
|
* @example
|
|
3655
3698
|
* xxx001
|
|
@@ -3674,6 +3717,13 @@ export declare class VideoModerationResultResponseBodyDataFrameResultFramesResul
|
|
|
3674
3717
|
* 50
|
|
3675
3718
|
*/
|
|
3676
3719
|
confidence?: number;
|
|
3720
|
+
/**
|
|
3721
|
+
* @remarks
|
|
3722
|
+
* The description of the result.
|
|
3723
|
+
*
|
|
3724
|
+
* @example
|
|
3725
|
+
* no risk
|
|
3726
|
+
*/
|
|
3677
3727
|
description?: string;
|
|
3678
3728
|
/**
|
|
3679
3729
|
* @remarks
|
|
@@ -3696,12 +3746,12 @@ export declare class VideoModerationResultResponseBodyDataFrameResultFramesResul
|
|
|
3696
3746
|
export declare class VideoModerationResultResponseBodyDataFrameResultFramesResults extends $tea.Model {
|
|
3697
3747
|
/**
|
|
3698
3748
|
* @remarks
|
|
3699
|
-
* If a custom image library is hit, information about the
|
|
3749
|
+
* If a custom image library is hit, information about the custom image library is returned.
|
|
3700
3750
|
*/
|
|
3701
3751
|
customImage?: VideoModerationResultResponseBodyDataFrameResultFramesResultsCustomImage[];
|
|
3702
3752
|
/**
|
|
3703
3753
|
* @remarks
|
|
3704
|
-
* If the video contains a specific
|
|
3754
|
+
* If the video contains a specific figure, the code of the identified figure is returned.
|
|
3705
3755
|
*/
|
|
3706
3756
|
publicFigure?: VideoModerationResultResponseBodyDataFrameResultFramesResultsPublicFigure[];
|
|
3707
3757
|
/**
|
|
@@ -3719,7 +3769,7 @@ export declare class VideoModerationResultResponseBodyDataFrameResultFramesResul
|
|
|
3719
3769
|
service?: string;
|
|
3720
3770
|
/**
|
|
3721
3771
|
* @remarks
|
|
3722
|
-
*
|
|
3772
|
+
* The information about the text hit in the image is returned.
|
|
3723
3773
|
*/
|
|
3724
3774
|
textInImage?: {
|
|
3725
3775
|
[key: string]: any;
|
|
@@ -3748,10 +3798,17 @@ export declare class VideoModerationResultResponseBodyDataFrameResultFrames exte
|
|
|
3748
3798
|
* The results of frame moderation parameters such as the label parameter and the confidence parameter.
|
|
3749
3799
|
*/
|
|
3750
3800
|
results?: VideoModerationResultResponseBodyDataFrameResultFramesResults[];
|
|
3801
|
+
/**
|
|
3802
|
+
* @remarks
|
|
3803
|
+
* Risk Level.
|
|
3804
|
+
*
|
|
3805
|
+
* @example
|
|
3806
|
+
* high
|
|
3807
|
+
*/
|
|
3751
3808
|
riskLevel?: string;
|
|
3752
3809
|
/**
|
|
3753
3810
|
* @remarks
|
|
3754
|
-
* The temporary URL of a captured frame.
|
|
3811
|
+
* The temporary URL of a captured frame.
|
|
3755
3812
|
*
|
|
3756
3813
|
* @example
|
|
3757
3814
|
* http://xxxx.abc.jpg
|
|
@@ -3794,6 +3851,13 @@ export declare class VideoModerationResultResponseBodyDataFrameResult extends $t
|
|
|
3794
3851
|
* The information about the frames that match the labels.
|
|
3795
3852
|
*/
|
|
3796
3853
|
frames?: VideoModerationResultResponseBodyDataFrameResultFrames[];
|
|
3854
|
+
/**
|
|
3855
|
+
* @remarks
|
|
3856
|
+
* Risk Level.
|
|
3857
|
+
*
|
|
3858
|
+
* @example
|
|
3859
|
+
* high
|
|
3860
|
+
*/
|
|
3797
3861
|
riskLevel?: string;
|
|
3798
3862
|
static names(): {
|
|
3799
3863
|
[key: string]: string;
|
|
@@ -3813,7 +3877,7 @@ export declare class VideoModerationResultResponseBodyData extends $tea.Model {
|
|
|
3813
3877
|
audioResult?: VideoModerationResultResponseBodyDataAudioResult;
|
|
3814
3878
|
/**
|
|
3815
3879
|
* @remarks
|
|
3816
|
-
* The
|
|
3880
|
+
* 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.
|
|
3817
3881
|
*
|
|
3818
3882
|
* @example
|
|
3819
3883
|
* product_content-2055763
|
|
@@ -3832,6 +3896,13 @@ export declare class VideoModerationResultResponseBodyData extends $tea.Model {
|
|
|
3832
3896
|
* liveId
|
|
3833
3897
|
*/
|
|
3834
3898
|
liveId?: string;
|
|
3899
|
+
/**
|
|
3900
|
+
* @remarks
|
|
3901
|
+
* Risk Level.
|
|
3902
|
+
*
|
|
3903
|
+
* @example
|
|
3904
|
+
* high
|
|
3905
|
+
*/
|
|
3835
3906
|
riskLevel?: string;
|
|
3836
3907
|
/**
|
|
3837
3908
|
* @remarks
|
|
@@ -3881,7 +3952,7 @@ export declare class VoiceModerationResponseBodyData extends $tea.Model {
|
|
|
3881
3952
|
export declare class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Model {
|
|
3882
3953
|
/**
|
|
3883
3954
|
* @remarks
|
|
3884
|
-
* The end time of the
|
|
3955
|
+
* The end time of the audio segment in seconds.
|
|
3885
3956
|
*
|
|
3886
3957
|
* @example
|
|
3887
3958
|
* 10
|
|
@@ -3897,7 +3968,7 @@ export declare class VoiceModerationResultResponseBodyDataSliceDetails extends $
|
|
|
3897
3968
|
endTimestamp?: number;
|
|
3898
3969
|
/**
|
|
3899
3970
|
* @remarks
|
|
3900
|
-
*
|
|
3971
|
+
* Extended fields.
|
|
3901
3972
|
*
|
|
3902
3973
|
* @example
|
|
3903
3974
|
* {\\"riskTips\\":\\"sexuality_Suggestive\\",\\"riskWords\\":\\"pxxxxy\\"}
|
|
@@ -3913,7 +3984,7 @@ export declare class VoiceModerationResultResponseBodyDataSliceDetails extends $
|
|
|
3913
3984
|
labels?: string;
|
|
3914
3985
|
/**
|
|
3915
3986
|
* @remarks
|
|
3916
|
-
* Reserved
|
|
3987
|
+
* Reserved parameter.
|
|
3917
3988
|
*
|
|
3918
3989
|
* @example
|
|
3919
3990
|
* {}
|
|
@@ -3923,7 +3994,15 @@ export declare class VoiceModerationResultResponseBodyDataSliceDetails extends $
|
|
|
3923
3994
|
};
|
|
3924
3995
|
/**
|
|
3925
3996
|
* @remarks
|
|
3926
|
-
*
|
|
3997
|
+
* Risk Level.
|
|
3998
|
+
*
|
|
3999
|
+
* @example
|
|
4000
|
+
* high
|
|
4001
|
+
*/
|
|
4002
|
+
riskLevel?: string;
|
|
4003
|
+
/**
|
|
4004
|
+
* @remarks
|
|
4005
|
+
* The details of the risky content.
|
|
3927
4006
|
*
|
|
3928
4007
|
* @example
|
|
3929
4008
|
* sexuality_Suggestive
|
|
@@ -3931,7 +4010,7 @@ export declare class VoiceModerationResultResponseBodyDataSliceDetails extends $
|
|
|
3931
4010
|
riskTips?: string;
|
|
3932
4011
|
/**
|
|
3933
4012
|
* @remarks
|
|
3934
|
-
* The
|
|
4013
|
+
* The term hit by the risky content.
|
|
3935
4014
|
*
|
|
3936
4015
|
* @example
|
|
3937
4016
|
* AAA,BBB,CCC
|
|
@@ -3939,7 +4018,7 @@ export declare class VoiceModerationResultResponseBodyDataSliceDetails extends $
|
|
|
3939
4018
|
riskWords?: string;
|
|
3940
4019
|
/**
|
|
3941
4020
|
* @remarks
|
|
3942
|
-
*
|
|
4021
|
+
* The risk score. Default range: 0 to 99.
|
|
3943
4022
|
*
|
|
3944
4023
|
* @example
|
|
3945
4024
|
* 87.01
|
|
@@ -3947,7 +4026,7 @@ export declare class VoiceModerationResultResponseBodyDataSliceDetails extends $
|
|
|
3947
4026
|
score?: number;
|
|
3948
4027
|
/**
|
|
3949
4028
|
* @remarks
|
|
3950
|
-
* The start time of the
|
|
4029
|
+
* The start time of the audio segment in seconds.
|
|
3951
4030
|
*
|
|
3952
4031
|
* @example
|
|
3953
4032
|
* 0
|
|
@@ -3963,7 +4042,7 @@ export declare class VoiceModerationResultResponseBodyDataSliceDetails extends $
|
|
|
3963
4042
|
startTimestamp?: number;
|
|
3964
4043
|
/**
|
|
3965
4044
|
* @remarks
|
|
3966
|
-
* The text converted from
|
|
4045
|
+
* The text converted from the audio segment.
|
|
3967
4046
|
*
|
|
3968
4047
|
* @example
|
|
3969
4048
|
* Disgusting
|
|
@@ -3971,7 +4050,7 @@ export declare class VoiceModerationResultResponseBodyDataSliceDetails extends $
|
|
|
3971
4050
|
text?: string;
|
|
3972
4051
|
/**
|
|
3973
4052
|
* @remarks
|
|
3974
|
-
* The temporary
|
|
4053
|
+
* The temporary URL of the audio segment.
|
|
3975
4054
|
*
|
|
3976
4055
|
* @example
|
|
3977
4056
|
* https://aliyundoc.com
|
|
@@ -4006,7 +4085,15 @@ export declare class VoiceModerationResultResponseBodyData extends $tea.Model {
|
|
|
4006
4085
|
liveId?: string;
|
|
4007
4086
|
/**
|
|
4008
4087
|
* @remarks
|
|
4009
|
-
*
|
|
4088
|
+
* Risk Level.
|
|
4089
|
+
*
|
|
4090
|
+
* @example
|
|
4091
|
+
* high
|
|
4092
|
+
*/
|
|
4093
|
+
riskLevel?: string;
|
|
4094
|
+
/**
|
|
4095
|
+
* @remarks
|
|
4096
|
+
* The moderation results of audio segments.
|
|
4010
4097
|
*/
|
|
4011
4098
|
sliceDetails?: VoiceModerationResultResponseBodyDataSliceDetails[];
|
|
4012
4099
|
/**
|
|
@@ -4019,7 +4106,7 @@ export declare class VoiceModerationResultResponseBodyData extends $tea.Model {
|
|
|
4019
4106
|
taskId?: string;
|
|
4020
4107
|
/**
|
|
4021
4108
|
* @remarks
|
|
4022
|
-
* The URL of the
|
|
4109
|
+
* The URL of the moderated content.
|
|
4023
4110
|
*
|
|
4024
4111
|
* @example
|
|
4025
4112
|
* https://aliyundoc.com
|
|
@@ -4264,7 +4351,10 @@ export default class Client extends OpenApi {
|
|
|
4264
4351
|
*/
|
|
4265
4352
|
videoModerationCancel(request: VideoModerationCancelRequest): Promise<VideoModerationCancelResponse>;
|
|
4266
4353
|
/**
|
|
4267
|
-
*
|
|
4354
|
+
* Obtains the moderation results of a Video Moderation 2.0 task
|
|
4355
|
+
*
|
|
4356
|
+
* @remarks
|
|
4357
|
+
* 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.
|
|
4268
4358
|
*
|
|
4269
4359
|
* @param request - VideoModerationResultRequest
|
|
4270
4360
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4272,7 +4362,10 @@ export default class Client extends OpenApi {
|
|
|
4272
4362
|
*/
|
|
4273
4363
|
videoModerationResultWithOptions(request: VideoModerationResultRequest, runtime: $Util.RuntimeOptions): Promise<VideoModerationResultResponse>;
|
|
4274
4364
|
/**
|
|
4275
|
-
*
|
|
4365
|
+
* Obtains the moderation results of a Video Moderation 2.0 task
|
|
4366
|
+
*
|
|
4367
|
+
* @remarks
|
|
4368
|
+
* 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.
|
|
4276
4369
|
*
|
|
4277
4370
|
* @param request - VideoModerationResultRequest
|
|
4278
4371
|
* @returns VideoModerationResultResponse
|
|
@@ -4309,7 +4402,7 @@ export default class Client extends OpenApi {
|
|
|
4309
4402
|
*/
|
|
4310
4403
|
voiceModerationCancel(request: VoiceModerationCancelRequest): Promise<VoiceModerationCancelResponse>;
|
|
4311
4404
|
/**
|
|
4312
|
-
*
|
|
4405
|
+
* Obtains the moderation results of a Voice Moderation 2.0 task.
|
|
4313
4406
|
*
|
|
4314
4407
|
* @param request - VoiceModerationResultRequest
|
|
4315
4408
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4317,7 +4410,7 @@ export default class Client extends OpenApi {
|
|
|
4317
4410
|
*/
|
|
4318
4411
|
voiceModerationResultWithOptions(request: VoiceModerationResultRequest, runtime: $Util.RuntimeOptions): Promise<VoiceModerationResultResponse>;
|
|
4319
4412
|
/**
|
|
4320
|
-
*
|
|
4413
|
+
* Obtains the moderation results of a Voice Moderation 2.0 task.
|
|
4321
4414
|
*
|
|
4322
4415
|
* @param request - VoiceModerationResultRequest
|
|
4323
4416
|
* @returns VoiceModerationResultResponse
|
package/dist/client.js
CHANGED
|
@@ -27,8 +27,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.VoiceModerationResultResponse = exports.VoiceModerationResultResponseBody = exports.VoiceModerationResultRequest = exports.VoiceModerationCancelResponse = exports.VoiceModerationCancelResponseBody = exports.VoiceModerationCancelRequest = exports.VoiceModerationResponse = exports.VoiceModerationResponseBody = exports.VoiceModerationRequest = exports.VideoModerationResultResponse = exports.VideoModerationResultResponseBody = exports.VideoModerationResultRequest = exports.VideoModerationCancelResponse = exports.VideoModerationCancelResponseBody = exports.VideoModerationCancelRequest = exports.VideoModerationResponse = exports.VideoModerationResponseBody = exports.VideoModerationRequest = exports.UrlAsyncModerationResponse = exports.UrlAsyncModerationResponseBody = exports.UrlAsyncModerationRequest = exports.TextModerationPlusResponse = exports.TextModerationPlusResponseBody = exports.TextModerationPlusRequest = exports.TextModerationResponse = exports.TextModerationResponseBody = exports.TextModerationRequest = exports.ImageModerationResponse = exports.ImageModerationResponseBody = exports.ImageModerationRequest = exports.ImageAsyncModerationResponse = exports.ImageAsyncModerationResponseBody = exports.ImageAsyncModerationRequest = exports.FileModerationResponse = exports.FileModerationResponseBody = exports.FileModerationRequest = exports.DescribeUrlModerationResultResponse = exports.DescribeUrlModerationResultResponseBody = exports.DescribeUrlModerationResultRequest = exports.DescribeUploadTokenResponse = exports.DescribeUploadTokenResponseBody = exports.DescribeImageResultExtResponse = exports.DescribeImageResultExtResponseBody = exports.DescribeImageResultExtRequest = exports.DescribeImageModerationResultResponse = exports.DescribeImageModerationResultResponseBody = exports.DescribeImageModerationResultRequest = exports.DescribeFileModerationResultResponse = exports.DescribeFileModerationResultResponseBody = exports.DescribeFileModerationResultRequest = void 0;
|
|
30
|
-
exports.
|
|
31
|
-
exports.VoiceModerationResultResponseBodyData = exports.VoiceModerationResultResponseBodyDataSliceDetails = exports.VoiceModerationResponseBodyData = exports.VideoModerationResultResponseBodyData = exports.VideoModerationResultResponseBodyDataFrameResult = exports.VideoModerationResultResponseBodyDataFrameResultFrames = exports.VideoModerationResultResponseBodyDataFrameResultFramesResults = exports.VideoModerationResultResponseBodyDataFrameResultFramesResultsResult = exports.VideoModerationResultResponseBodyDataFrameResultFramesResultsPublicFigure = exports.VideoModerationResultResponseBodyDataFrameResultFramesResultsCustomImage = exports.VideoModerationResultResponseBodyDataFrameResultFrameSummarys = exports.VideoModerationResultResponseBodyDataAudioResult = exports.VideoModerationResultResponseBodyDataAudioResultSliceDetails = exports.VideoModerationResultResponseBodyDataAudioResultAudioSummarys = exports.VideoModerationResponseBodyData = exports.UrlAsyncModerationResponseBodyData = exports.TextModerationPlusResponseBodyData = exports.TextModerationPlusResponseBodyDataResult = exports.TextModerationPlusResponseBodyDataResultCustomizedHit = exports.TextModerationPlusResponseBodyDataAdvice = void 0;
|
|
30
|
+
exports.ImageModerationResponseBodyData = exports.ImageModerationResponseBodyDataResult = exports.ImageModerationResponseBodyDataExt = exports.ImageModerationResponseBodyDataExtVlContent = exports.ImageModerationResponseBodyDataExtTextInImage = exports.ImageModerationResponseBodyDataExtTextInImageOcrResult = exports.ImageModerationResponseBodyDataExtTextInImageOcrResultLocation = exports.ImageModerationResponseBodyDataExtTextInImageCustomText = exports.ImageModerationResponseBodyDataExtRecognition = exports.ImageModerationResponseBodyDataExtPublicFigure = exports.ImageModerationResponseBodyDataExtPublicFigureLocation = exports.ImageModerationResponseBodyDataExtOcrResult = exports.ImageModerationResponseBodyDataExtOcrResultLocation = exports.ImageModerationResponseBodyDataExtLogoData = exports.ImageModerationResponseBodyDataExtLogoDataLogo = exports.ImageModerationResponseBodyDataExtLogoDataLocation = exports.ImageModerationResponseBodyDataExtFaceData = exports.ImageModerationResponseBodyDataExtFaceDataQuality = exports.ImageModerationResponseBodyDataExtFaceDataMustache = exports.ImageModerationResponseBodyDataExtFaceDataMask = exports.ImageModerationResponseBodyDataExtFaceDataLocation = exports.ImageModerationResponseBodyDataExtFaceDataHat = exports.ImageModerationResponseBodyDataExtFaceDataHairstyle = exports.ImageModerationResponseBodyDataExtFaceDataGender = exports.ImageModerationResponseBodyDataExtFaceDataBang = exports.ImageModerationResponseBodyDataExtCustomImage = exports.ImageAsyncModerationResponseBodyData = exports.FileModerationResponseBodyData = exports.DescribeUrlModerationResultResponseBodyData = exports.DescribeUrlModerationResultResponseBodyDataResult = exports.DescribeUrlModerationResultResponseBodyDataExtraInfo = exports.DescribeUploadTokenResponseBodyData = exports.DescribeImageResultExtResponseBodyData = exports.DescribeImageResultExtResponseBodyDataTextInImage = exports.DescribeImageResultExtResponseBodyDataTextInImageCustomTexts = exports.DescribeImageResultExtResponseBodyDataPublicFigure = exports.DescribeImageResultExtResponseBodyDataCustomImage = exports.DescribeImageModerationResultResponseBodyData = exports.DescribeImageModerationResultResponseBodyDataResult = exports.DescribeFileModerationResultResponseBodyData = exports.DescribeFileModerationResultResponseBodyDataPageSummary = exports.DescribeFileModerationResultResponseBodyDataPageSummaryTextSummary = exports.DescribeFileModerationResultResponseBodyDataPageSummaryTextSummaryTextLabels = exports.DescribeFileModerationResultResponseBodyDataPageSummaryImageSummary = exports.DescribeFileModerationResultResponseBodyDataPageSummaryImageSummaryImageLabels = exports.DescribeFileModerationResultResponseBodyDataPageResult = exports.DescribeFileModerationResultResponseBodyDataPageResultTextResult = exports.DescribeFileModerationResultResponseBodyDataPageResultImageResult = exports.DescribeFileModerationResultResponseBodyDataPageResultImageResultLocation = exports.DescribeFileModerationResultResponseBodyDataPageResultImageResultLabelResult = void 0;
|
|
31
|
+
exports.VoiceModerationResultResponseBodyData = exports.VoiceModerationResultResponseBodyDataSliceDetails = exports.VoiceModerationResponseBodyData = exports.VideoModerationResultResponseBodyData = exports.VideoModerationResultResponseBodyDataFrameResult = exports.VideoModerationResultResponseBodyDataFrameResultFrames = exports.VideoModerationResultResponseBodyDataFrameResultFramesResults = exports.VideoModerationResultResponseBodyDataFrameResultFramesResultsResult = exports.VideoModerationResultResponseBodyDataFrameResultFramesResultsPublicFigure = exports.VideoModerationResultResponseBodyDataFrameResultFramesResultsCustomImage = exports.VideoModerationResultResponseBodyDataFrameResultFrameSummarys = exports.VideoModerationResultResponseBodyDataAudioResult = exports.VideoModerationResultResponseBodyDataAudioResultSliceDetails = exports.VideoModerationResultResponseBodyDataAudioResultAudioSummarys = exports.VideoModerationResponseBodyData = exports.UrlAsyncModerationResponseBodyData = exports.TextModerationPlusResponseBodyData = exports.TextModerationPlusResponseBodyDataResult = exports.TextModerationPlusResponseBodyDataResultCustomizedHit = exports.TextModerationPlusResponseBodyDataAdvice = exports.TextModerationResponseBodyData = void 0;
|
|
32
32
|
// This file is auto-generated, don't edit it
|
|
33
33
|
/**
|
|
34
34
|
*/
|
|
@@ -1987,6 +1987,22 @@ class ImageModerationResponseBodyDataExtTextInImage extends $tea.Model {
|
|
|
1987
1987
|
}
|
|
1988
1988
|
}
|
|
1989
1989
|
exports.ImageModerationResponseBodyDataExtTextInImage = ImageModerationResponseBodyDataExtTextInImage;
|
|
1990
|
+
class ImageModerationResponseBodyDataExtVlContent extends $tea.Model {
|
|
1991
|
+
static names() {
|
|
1992
|
+
return {
|
|
1993
|
+
outputText: 'OutputText',
|
|
1994
|
+
};
|
|
1995
|
+
}
|
|
1996
|
+
static types() {
|
|
1997
|
+
return {
|
|
1998
|
+
outputText: 'string',
|
|
1999
|
+
};
|
|
2000
|
+
}
|
|
2001
|
+
constructor(map) {
|
|
2002
|
+
super(map);
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
exports.ImageModerationResponseBodyDataExtVlContent = ImageModerationResponseBodyDataExtVlContent;
|
|
1990
2006
|
class ImageModerationResponseBodyDataExt extends $tea.Model {
|
|
1991
2007
|
static names() {
|
|
1992
2008
|
return {
|
|
@@ -1997,6 +2013,7 @@ class ImageModerationResponseBodyDataExt extends $tea.Model {
|
|
|
1997
2013
|
publicFigure: 'PublicFigure',
|
|
1998
2014
|
recognition: 'Recognition',
|
|
1999
2015
|
textInImage: 'TextInImage',
|
|
2016
|
+
vlContent: 'VlContent',
|
|
2000
2017
|
};
|
|
2001
2018
|
}
|
|
2002
2019
|
static types() {
|
|
@@ -2008,6 +2025,7 @@ class ImageModerationResponseBodyDataExt extends $tea.Model {
|
|
|
2008
2025
|
publicFigure: { 'type': 'array', 'itemType': ImageModerationResponseBodyDataExtPublicFigure },
|
|
2009
2026
|
recognition: { 'type': 'array', 'itemType': ImageModerationResponseBodyDataExtRecognition },
|
|
2010
2027
|
textInImage: ImageModerationResponseBodyDataExtTextInImage,
|
|
2028
|
+
vlContent: ImageModerationResponseBodyDataExtVlContent,
|
|
2011
2029
|
};
|
|
2012
2030
|
}
|
|
2013
2031
|
constructor(map) {
|
|
@@ -2471,6 +2489,7 @@ class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Model {
|
|
|
2471
2489
|
extend: 'Extend',
|
|
2472
2490
|
labels: 'Labels',
|
|
2473
2491
|
originAlgoResult: 'OriginAlgoResult',
|
|
2492
|
+
riskLevel: 'RiskLevel',
|
|
2474
2493
|
riskTips: 'RiskTips',
|
|
2475
2494
|
riskWords: 'RiskWords',
|
|
2476
2495
|
score: 'Score',
|
|
@@ -2487,6 +2506,7 @@ class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Model {
|
|
|
2487
2506
|
extend: 'string',
|
|
2488
2507
|
labels: 'string',
|
|
2489
2508
|
originAlgoResult: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
2509
|
+
riskLevel: 'string',
|
|
2490
2510
|
riskTips: 'string',
|
|
2491
2511
|
riskWords: 'string',
|
|
2492
2512
|
score: 'number',
|
|
@@ -2506,6 +2526,7 @@ class VoiceModerationResultResponseBodyData extends $tea.Model {
|
|
|
2506
2526
|
return {
|
|
2507
2527
|
dataId: 'DataId',
|
|
2508
2528
|
liveId: 'LiveId',
|
|
2529
|
+
riskLevel: 'RiskLevel',
|
|
2509
2530
|
sliceDetails: 'SliceDetails',
|
|
2510
2531
|
taskId: 'TaskId',
|
|
2511
2532
|
url: 'Url',
|
|
@@ -2515,6 +2536,7 @@ class VoiceModerationResultResponseBodyData extends $tea.Model {
|
|
|
2515
2536
|
return {
|
|
2516
2537
|
dataId: 'string',
|
|
2517
2538
|
liveId: 'string',
|
|
2539
|
+
riskLevel: 'string',
|
|
2518
2540
|
sliceDetails: { 'type': 'array', 'itemType': VoiceModerationResultResponseBodyDataSliceDetails },
|
|
2519
2541
|
taskId: 'string',
|
|
2520
2542
|
url: 'string',
|
|
@@ -3120,7 +3142,10 @@ class Client extends openapi_client_1.default {
|
|
|
3120
3142
|
return await this.videoModerationCancelWithOptions(request, runtime);
|
|
3121
3143
|
}
|
|
3122
3144
|
/**
|
|
3123
|
-
*
|
|
3145
|
+
* Obtains the moderation results of a Video Moderation 2.0 task
|
|
3146
|
+
*
|
|
3147
|
+
* @remarks
|
|
3148
|
+
* 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.
|
|
3124
3149
|
*
|
|
3125
3150
|
* @param request - VideoModerationResultRequest
|
|
3126
3151
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3152,7 +3177,10 @@ class Client extends openapi_client_1.default {
|
|
|
3152
3177
|
return $tea.cast(await this.callApi(params, req, runtime), new VideoModerationResultResponse({}));
|
|
3153
3178
|
}
|
|
3154
3179
|
/**
|
|
3155
|
-
*
|
|
3180
|
+
* Obtains the moderation results of a Video Moderation 2.0 task
|
|
3181
|
+
*
|
|
3182
|
+
* @remarks
|
|
3183
|
+
* 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.
|
|
3156
3184
|
*
|
|
3157
3185
|
* @param request - VideoModerationResultRequest
|
|
3158
3186
|
* @returns VideoModerationResultResponse
|
|
@@ -3246,7 +3274,7 @@ class Client extends openapi_client_1.default {
|
|
|
3246
3274
|
return await this.voiceModerationCancelWithOptions(request, runtime);
|
|
3247
3275
|
}
|
|
3248
3276
|
/**
|
|
3249
|
-
*
|
|
3277
|
+
* Obtains the moderation results of a Voice Moderation 2.0 task.
|
|
3250
3278
|
*
|
|
3251
3279
|
* @param request - VoiceModerationResultRequest
|
|
3252
3280
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3278,7 +3306,7 @@ class Client extends openapi_client_1.default {
|
|
|
3278
3306
|
return $tea.cast(await this.callApi(params, req, runtime), new VoiceModerationResultResponse({}));
|
|
3279
3307
|
}
|
|
3280
3308
|
/**
|
|
3281
|
-
*
|
|
3309
|
+
* Obtains the moderation results of a Voice Moderation 2.0 task.
|
|
3282
3310
|
*
|
|
3283
3311
|
* @param request - VoiceModerationResultRequest
|
|
3284
3312
|
* @returns VoiceModerationResultResponse
|