@alicloud/green20220302 1.2.1 → 1.3.1

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 CHANGED
@@ -4,6 +4,50 @@
4
4
  import * as $Util from '@alicloud/tea-util';
5
5
  import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
6
  import * as $tea from '@alicloud/tea-typescript';
7
+ export declare class DescribeFileModerationResultRequest extends $tea.Model {
8
+ service?: string;
9
+ serviceParameters?: string;
10
+ static names(): {
11
+ [key: string]: string;
12
+ };
13
+ static types(): {
14
+ [key: string]: any;
15
+ };
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
20
+ export declare class DescribeFileModerationResultResponseBody extends $tea.Model {
21
+ code?: number;
22
+ data?: DescribeFileModerationResultResponseBodyData;
23
+ message?: string;
24
+ requestId?: string;
25
+ static names(): {
26
+ [key: string]: string;
27
+ };
28
+ static types(): {
29
+ [key: string]: any;
30
+ };
31
+ constructor(map?: {
32
+ [key: string]: any;
33
+ });
34
+ }
35
+ export declare class DescribeFileModerationResultResponse extends $tea.Model {
36
+ headers: {
37
+ [key: string]: string;
38
+ };
39
+ statusCode: number;
40
+ body: DescribeFileModerationResultResponseBody;
41
+ static names(): {
42
+ [key: string]: string;
43
+ };
44
+ static types(): {
45
+ [key: string]: any;
46
+ };
47
+ constructor(map?: {
48
+ [key: string]: any;
49
+ });
50
+ }
7
51
  export declare class DescribeImageModerationResultRequest extends $tea.Model {
8
52
  reqId?: string;
9
53
  static names(): {
@@ -122,6 +166,50 @@ export declare class DescribeUploadTokenResponse extends $tea.Model {
122
166
  [key: string]: any;
123
167
  });
124
168
  }
169
+ export declare class FileModerationRequest extends $tea.Model {
170
+ service?: string;
171
+ serviceParameters?: string;
172
+ static names(): {
173
+ [key: string]: string;
174
+ };
175
+ static types(): {
176
+ [key: string]: any;
177
+ };
178
+ constructor(map?: {
179
+ [key: string]: any;
180
+ });
181
+ }
182
+ export declare class FileModerationResponseBody extends $tea.Model {
183
+ code?: number;
184
+ data?: FileModerationResponseBodyData;
185
+ message?: string;
186
+ requestId?: string;
187
+ static names(): {
188
+ [key: string]: string;
189
+ };
190
+ static types(): {
191
+ [key: string]: any;
192
+ };
193
+ constructor(map?: {
194
+ [key: string]: any;
195
+ });
196
+ }
197
+ export declare class FileModerationResponse extends $tea.Model {
198
+ headers: {
199
+ [key: string]: string;
200
+ };
201
+ statusCode: number;
202
+ body: FileModerationResponseBody;
203
+ static names(): {
204
+ [key: string]: string;
205
+ };
206
+ static types(): {
207
+ [key: string]: any;
208
+ };
209
+ constructor(map?: {
210
+ [key: string]: any;
211
+ });
212
+ }
125
213
  export declare class ImageAsyncModerationRequest extends $tea.Model {
126
214
  service?: string;
127
215
  serviceParameters?: string;
@@ -516,6 +604,98 @@ export declare class VoiceModerationResultResponse extends $tea.Model {
516
604
  [key: string]: any;
517
605
  });
518
606
  }
607
+ export declare class DescribeFileModerationResultResponseBodyDataPageResultImageResultLabelResult extends $tea.Model {
608
+ confidence?: number;
609
+ label?: string;
610
+ static names(): {
611
+ [key: string]: string;
612
+ };
613
+ static types(): {
614
+ [key: string]: any;
615
+ };
616
+ constructor(map?: {
617
+ [key: string]: any;
618
+ });
619
+ }
620
+ export declare class DescribeFileModerationResultResponseBodyDataPageResultImageResultLocation extends $tea.Model {
621
+ h?: number;
622
+ w?: number;
623
+ x?: number;
624
+ y?: number;
625
+ static names(): {
626
+ [key: string]: string;
627
+ };
628
+ static types(): {
629
+ [key: string]: any;
630
+ };
631
+ constructor(map?: {
632
+ [key: string]: any;
633
+ });
634
+ }
635
+ export declare class DescribeFileModerationResultResponseBodyDataPageResultImageResult extends $tea.Model {
636
+ description?: string;
637
+ labelResult?: DescribeFileModerationResultResponseBodyDataPageResultImageResultLabelResult[];
638
+ location?: DescribeFileModerationResultResponseBodyDataPageResultImageResultLocation;
639
+ service?: string;
640
+ static names(): {
641
+ [key: string]: string;
642
+ };
643
+ static types(): {
644
+ [key: string]: any;
645
+ };
646
+ constructor(map?: {
647
+ [key: string]: any;
648
+ });
649
+ }
650
+ export declare class DescribeFileModerationResultResponseBodyDataPageResultTextResult extends $tea.Model {
651
+ description?: string;
652
+ labels?: string;
653
+ riskTips?: string;
654
+ riskWords?: string;
655
+ service?: string;
656
+ text?: string;
657
+ textSegment?: string;
658
+ static names(): {
659
+ [key: string]: string;
660
+ };
661
+ static types(): {
662
+ [key: string]: any;
663
+ };
664
+ constructor(map?: {
665
+ [key: string]: any;
666
+ });
667
+ }
668
+ export declare class DescribeFileModerationResultResponseBodyDataPageResult extends $tea.Model {
669
+ imageResult?: DescribeFileModerationResultResponseBodyDataPageResultImageResult[];
670
+ imageUrl?: string;
671
+ pageNum?: number;
672
+ textResult?: DescribeFileModerationResultResponseBodyDataPageResultTextResult[];
673
+ textUrl?: string;
674
+ static names(): {
675
+ [key: string]: string;
676
+ };
677
+ static types(): {
678
+ [key: string]: any;
679
+ };
680
+ constructor(map?: {
681
+ [key: string]: any;
682
+ });
683
+ }
684
+ export declare class DescribeFileModerationResultResponseBodyData extends $tea.Model {
685
+ dataId?: string;
686
+ docType?: string;
687
+ pageResult?: DescribeFileModerationResultResponseBodyDataPageResult[];
688
+ url?: string;
689
+ static names(): {
690
+ [key: string]: string;
691
+ };
692
+ static types(): {
693
+ [key: string]: any;
694
+ };
695
+ constructor(map?: {
696
+ [key: string]: any;
697
+ });
698
+ }
519
699
  export declare class DescribeImageModerationResultResponseBodyDataResult extends $tea.Model {
520
700
  confidence?: number;
521
701
  label?: string;
@@ -617,6 +797,18 @@ export declare class DescribeUploadTokenResponseBodyData extends $tea.Model {
617
797
  [key: string]: any;
618
798
  });
619
799
  }
800
+ export declare class FileModerationResponseBodyData extends $tea.Model {
801
+ taskId?: string;
802
+ static names(): {
803
+ [key: string]: string;
804
+ };
805
+ static types(): {
806
+ [key: string]: any;
807
+ };
808
+ constructor(map?: {
809
+ [key: string]: any;
810
+ });
811
+ }
620
812
  export declare class ImageAsyncModerationResponseBodyData extends $tea.Model {
621
813
  dataId?: string;
622
814
  reqId?: string;
@@ -683,6 +875,19 @@ export declare class VideoModerationResponseBodyData extends $tea.Model {
683
875
  [key: string]: any;
684
876
  });
685
877
  }
878
+ export declare class VideoModerationResultResponseBodyDataAudioResultAudioSummarys extends $tea.Model {
879
+ label?: string;
880
+ labelSum?: number;
881
+ static names(): {
882
+ [key: string]: string;
883
+ };
884
+ static types(): {
885
+ [key: string]: any;
886
+ };
887
+ constructor(map?: {
888
+ [key: string]: any;
889
+ });
890
+ }
686
891
  export declare class VideoModerationResultResponseBodyDataAudioResultSliceDetails extends $tea.Model {
687
892
  endTime?: number;
688
893
  endTimestamp?: number;
@@ -706,6 +911,7 @@ export declare class VideoModerationResultResponseBodyDataAudioResultSliceDetail
706
911
  });
707
912
  }
708
913
  export declare class VideoModerationResultResponseBodyDataAudioResult extends $tea.Model {
914
+ audioSummarys?: VideoModerationResultResponseBodyDataAudioResultAudioSummarys[];
709
915
  sliceDetails?: VideoModerationResultResponseBodyDataAudioResultSliceDetails[];
710
916
  static names(): {
711
917
  [key: string]: string;
@@ -717,6 +923,19 @@ export declare class VideoModerationResultResponseBodyDataAudioResult extends $t
717
923
  [key: string]: any;
718
924
  });
719
925
  }
926
+ export declare class VideoModerationResultResponseBodyDataFrameResultFrameSummarys extends $tea.Model {
927
+ label?: string;
928
+ labelSum?: number;
929
+ static names(): {
930
+ [key: string]: string;
931
+ };
932
+ static types(): {
933
+ [key: string]: any;
934
+ };
935
+ constructor(map?: {
936
+ [key: string]: any;
937
+ });
938
+ }
720
939
  export declare class VideoModerationResultResponseBodyDataFrameResultFramesResultsResult extends $tea.Model {
721
940
  confidence?: number;
722
941
  label?: string;
@@ -747,6 +966,7 @@ export declare class VideoModerationResultResponseBodyDataFrameResultFrames exte
747
966
  offset?: number;
748
967
  results?: VideoModerationResultResponseBodyDataFrameResultFramesResults[];
749
968
  tempUrl?: string;
969
+ timestamp?: number;
750
970
  static names(): {
751
971
  [key: string]: string;
752
972
  };
@@ -759,6 +979,7 @@ export declare class VideoModerationResultResponseBodyDataFrameResultFrames exte
759
979
  }
760
980
  export declare class VideoModerationResultResponseBodyDataFrameResult extends $tea.Model {
761
981
  frameNum?: number;
982
+ frameSummarys?: VideoModerationResultResponseBodyDataFrameResultFrameSummarys[];
762
983
  frames?: VideoModerationResultResponseBodyDataFrameResultFrames[];
763
984
  static names(): {
764
985
  [key: string]: string;
@@ -842,12 +1063,16 @@ export default class Client extends OpenApi {
842
1063
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
843
1064
  [key: string]: string;
844
1065
  }, endpoint: string): string;
1066
+ describeFileModerationResultWithOptions(request: DescribeFileModerationResultRequest, runtime: $Util.RuntimeOptions): Promise<DescribeFileModerationResultResponse>;
1067
+ describeFileModerationResult(request: DescribeFileModerationResultRequest): Promise<DescribeFileModerationResultResponse>;
845
1068
  describeImageModerationResultWithOptions(request: DescribeImageModerationResultRequest, runtime: $Util.RuntimeOptions): Promise<DescribeImageModerationResultResponse>;
846
1069
  describeImageModerationResult(request: DescribeImageModerationResultRequest): Promise<DescribeImageModerationResultResponse>;
847
1070
  describeImageResultExtWithOptions(request: DescribeImageResultExtRequest, runtime: $Util.RuntimeOptions): Promise<DescribeImageResultExtResponse>;
848
1071
  describeImageResultExt(request: DescribeImageResultExtRequest): Promise<DescribeImageResultExtResponse>;
849
1072
  describeUploadTokenWithOptions(runtime: $Util.RuntimeOptions): Promise<DescribeUploadTokenResponse>;
850
1073
  describeUploadToken(): Promise<DescribeUploadTokenResponse>;
1074
+ fileModerationWithOptions(request: FileModerationRequest, runtime: $Util.RuntimeOptions): Promise<FileModerationResponse>;
1075
+ fileModeration(request: FileModerationRequest): Promise<FileModerationResponse>;
851
1076
  imageAsyncModerationWithOptions(request: ImageAsyncModerationRequest, runtime: $Util.RuntimeOptions): Promise<ImageAsyncModerationResponse>;
852
1077
  imageAsyncModeration(request: ImageAsyncModerationRequest): Promise<ImageAsyncModerationResponse>;
853
1078
  imageModerationWithOptions(request: ImageModerationRequest, runtime: $Util.RuntimeOptions): Promise<ImageModerationResponse>;