@alicloud/green20220302 1.0.7 → 1.1.0
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 +338 -0
- package/dist/client.js +573 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +821 -118
package/dist/client.d.ts
CHANGED
|
@@ -4,6 +4,49 @@
|
|
|
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 DescribeImageModerationResultRequest extends $tea.Model {
|
|
8
|
+
reqId?: string;
|
|
9
|
+
static names(): {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
static types(): {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
constructor(map?: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export declare class DescribeImageModerationResultResponseBody extends $tea.Model {
|
|
20
|
+
code?: string;
|
|
21
|
+
data?: DescribeImageModerationResultResponseBodyData;
|
|
22
|
+
msg?: string;
|
|
23
|
+
requestId?: string;
|
|
24
|
+
static names(): {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
27
|
+
static types(): {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
};
|
|
30
|
+
constructor(map?: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
export declare class DescribeImageModerationResultResponse extends $tea.Model {
|
|
35
|
+
headers: {
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
};
|
|
38
|
+
statusCode: number;
|
|
39
|
+
body: DescribeImageModerationResultResponseBody;
|
|
40
|
+
static names(): {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
static types(): {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
};
|
|
46
|
+
constructor(map?: {
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
7
50
|
export declare class DescribeImageResultExtRequest extends $tea.Model {
|
|
8
51
|
infoType?: string;
|
|
9
52
|
reqId?: string;
|
|
@@ -79,6 +122,50 @@ export declare class DescribeUploadTokenResponse extends $tea.Model {
|
|
|
79
122
|
[key: string]: any;
|
|
80
123
|
});
|
|
81
124
|
}
|
|
125
|
+
export declare class ImageAsyncModerationRequest extends $tea.Model {
|
|
126
|
+
service?: string;
|
|
127
|
+
serviceParameters?: string;
|
|
128
|
+
static names(): {
|
|
129
|
+
[key: string]: string;
|
|
130
|
+
};
|
|
131
|
+
static types(): {
|
|
132
|
+
[key: string]: any;
|
|
133
|
+
};
|
|
134
|
+
constructor(map?: {
|
|
135
|
+
[key: string]: any;
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
export declare class ImageAsyncModerationResponseBody extends $tea.Model {
|
|
139
|
+
code?: number;
|
|
140
|
+
data?: ImageAsyncModerationResponseBodyData;
|
|
141
|
+
msg?: string;
|
|
142
|
+
requestId?: string;
|
|
143
|
+
static names(): {
|
|
144
|
+
[key: string]: string;
|
|
145
|
+
};
|
|
146
|
+
static types(): {
|
|
147
|
+
[key: string]: any;
|
|
148
|
+
};
|
|
149
|
+
constructor(map?: {
|
|
150
|
+
[key: string]: any;
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
export declare class ImageAsyncModerationResponse extends $tea.Model {
|
|
154
|
+
headers: {
|
|
155
|
+
[key: string]: string;
|
|
156
|
+
};
|
|
157
|
+
statusCode: number;
|
|
158
|
+
body: ImageAsyncModerationResponseBody;
|
|
159
|
+
static names(): {
|
|
160
|
+
[key: string]: string;
|
|
161
|
+
};
|
|
162
|
+
static types(): {
|
|
163
|
+
[key: string]: any;
|
|
164
|
+
};
|
|
165
|
+
constructor(map?: {
|
|
166
|
+
[key: string]: any;
|
|
167
|
+
});
|
|
168
|
+
}
|
|
82
169
|
export declare class ImageModerationRequest extends $tea.Model {
|
|
83
170
|
service?: string;
|
|
84
171
|
serviceParameters?: string;
|
|
@@ -167,6 +254,94 @@ export declare class TextModerationResponse extends $tea.Model {
|
|
|
167
254
|
[key: string]: any;
|
|
168
255
|
});
|
|
169
256
|
}
|
|
257
|
+
export declare class VideoModerationRequest extends $tea.Model {
|
|
258
|
+
service?: string;
|
|
259
|
+
serviceParameters?: string;
|
|
260
|
+
static names(): {
|
|
261
|
+
[key: string]: string;
|
|
262
|
+
};
|
|
263
|
+
static types(): {
|
|
264
|
+
[key: string]: any;
|
|
265
|
+
};
|
|
266
|
+
constructor(map?: {
|
|
267
|
+
[key: string]: any;
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
export declare class VideoModerationResponseBody extends $tea.Model {
|
|
271
|
+
code?: number;
|
|
272
|
+
data?: VideoModerationResponseBodyData;
|
|
273
|
+
message?: string;
|
|
274
|
+
requestId?: string;
|
|
275
|
+
static names(): {
|
|
276
|
+
[key: string]: string;
|
|
277
|
+
};
|
|
278
|
+
static types(): {
|
|
279
|
+
[key: string]: any;
|
|
280
|
+
};
|
|
281
|
+
constructor(map?: {
|
|
282
|
+
[key: string]: any;
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
export declare class VideoModerationResponse extends $tea.Model {
|
|
286
|
+
headers: {
|
|
287
|
+
[key: string]: string;
|
|
288
|
+
};
|
|
289
|
+
statusCode: number;
|
|
290
|
+
body: VideoModerationResponseBody;
|
|
291
|
+
static names(): {
|
|
292
|
+
[key: string]: string;
|
|
293
|
+
};
|
|
294
|
+
static types(): {
|
|
295
|
+
[key: string]: any;
|
|
296
|
+
};
|
|
297
|
+
constructor(map?: {
|
|
298
|
+
[key: string]: any;
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
export declare class VideoModerationResultRequest extends $tea.Model {
|
|
302
|
+
service?: string;
|
|
303
|
+
serviceParameters?: string;
|
|
304
|
+
static names(): {
|
|
305
|
+
[key: string]: string;
|
|
306
|
+
};
|
|
307
|
+
static types(): {
|
|
308
|
+
[key: string]: any;
|
|
309
|
+
};
|
|
310
|
+
constructor(map?: {
|
|
311
|
+
[key: string]: any;
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
export declare class VideoModerationResultResponseBody extends $tea.Model {
|
|
315
|
+
code?: number;
|
|
316
|
+
data?: VideoModerationResultResponseBodyData;
|
|
317
|
+
message?: string;
|
|
318
|
+
requestId?: string;
|
|
319
|
+
static names(): {
|
|
320
|
+
[key: string]: string;
|
|
321
|
+
};
|
|
322
|
+
static types(): {
|
|
323
|
+
[key: string]: any;
|
|
324
|
+
};
|
|
325
|
+
constructor(map?: {
|
|
326
|
+
[key: string]: any;
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
export declare class VideoModerationResultResponse extends $tea.Model {
|
|
330
|
+
headers: {
|
|
331
|
+
[key: string]: string;
|
|
332
|
+
};
|
|
333
|
+
statusCode: number;
|
|
334
|
+
body: VideoModerationResultResponseBody;
|
|
335
|
+
static names(): {
|
|
336
|
+
[key: string]: string;
|
|
337
|
+
};
|
|
338
|
+
static types(): {
|
|
339
|
+
[key: string]: any;
|
|
340
|
+
};
|
|
341
|
+
constructor(map?: {
|
|
342
|
+
[key: string]: any;
|
|
343
|
+
});
|
|
344
|
+
}
|
|
170
345
|
export declare class VoiceModerationRequest extends $tea.Model {
|
|
171
346
|
service?: string;
|
|
172
347
|
serviceParameters?: string;
|
|
@@ -298,6 +473,34 @@ export declare class VoiceModerationResultResponse extends $tea.Model {
|
|
|
298
473
|
[key: string]: any;
|
|
299
474
|
});
|
|
300
475
|
}
|
|
476
|
+
export declare class DescribeImageModerationResultResponseBodyDataResult extends $tea.Model {
|
|
477
|
+
confidence?: number;
|
|
478
|
+
label?: string;
|
|
479
|
+
static names(): {
|
|
480
|
+
[key: string]: string;
|
|
481
|
+
};
|
|
482
|
+
static types(): {
|
|
483
|
+
[key: string]: any;
|
|
484
|
+
};
|
|
485
|
+
constructor(map?: {
|
|
486
|
+
[key: string]: any;
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
export declare class DescribeImageModerationResultResponseBodyData extends $tea.Model {
|
|
490
|
+
dataId?: string;
|
|
491
|
+
frame?: string;
|
|
492
|
+
frameNum?: number;
|
|
493
|
+
result?: DescribeImageModerationResultResponseBodyDataResult[];
|
|
494
|
+
static names(): {
|
|
495
|
+
[key: string]: string;
|
|
496
|
+
};
|
|
497
|
+
static types(): {
|
|
498
|
+
[key: string]: any;
|
|
499
|
+
};
|
|
500
|
+
constructor(map?: {
|
|
501
|
+
[key: string]: any;
|
|
502
|
+
});
|
|
503
|
+
}
|
|
301
504
|
export declare class DescribeImageResultExtResponseBodyDataCustomImage extends $tea.Model {
|
|
302
505
|
imageId?: string;
|
|
303
506
|
libId?: string;
|
|
@@ -370,6 +573,19 @@ export declare class DescribeUploadTokenResponseBodyData extends $tea.Model {
|
|
|
370
573
|
[key: string]: any;
|
|
371
574
|
});
|
|
372
575
|
}
|
|
576
|
+
export declare class ImageAsyncModerationResponseBodyData extends $tea.Model {
|
|
577
|
+
dataId?: string;
|
|
578
|
+
reqId?: string;
|
|
579
|
+
static names(): {
|
|
580
|
+
[key: string]: string;
|
|
581
|
+
};
|
|
582
|
+
static types(): {
|
|
583
|
+
[key: string]: any;
|
|
584
|
+
};
|
|
585
|
+
constructor(map?: {
|
|
586
|
+
[key: string]: any;
|
|
587
|
+
});
|
|
588
|
+
}
|
|
373
589
|
export declare class ImageModerationResponseBodyDataResult extends $tea.Model {
|
|
374
590
|
confidence?: number;
|
|
375
591
|
label?: string;
|
|
@@ -411,6 +627,120 @@ export declare class TextModerationResponseBodyData extends $tea.Model {
|
|
|
411
627
|
[key: string]: any;
|
|
412
628
|
});
|
|
413
629
|
}
|
|
630
|
+
export declare class VideoModerationResponseBodyData extends $tea.Model {
|
|
631
|
+
taskId?: string;
|
|
632
|
+
static names(): {
|
|
633
|
+
[key: string]: string;
|
|
634
|
+
};
|
|
635
|
+
static types(): {
|
|
636
|
+
[key: string]: any;
|
|
637
|
+
};
|
|
638
|
+
constructor(map?: {
|
|
639
|
+
[key: string]: any;
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
export declare class VideoModerationResultResponseBodyDataAudioResultSliceDetails extends $tea.Model {
|
|
643
|
+
endTime?: number;
|
|
644
|
+
endTimestamp?: number;
|
|
645
|
+
extend?: string;
|
|
646
|
+
labels?: string;
|
|
647
|
+
riskTips?: string;
|
|
648
|
+
riskWords?: string;
|
|
649
|
+
score?: number;
|
|
650
|
+
startTime?: number;
|
|
651
|
+
startTimestamp?: number;
|
|
652
|
+
text?: string;
|
|
653
|
+
url?: string;
|
|
654
|
+
static names(): {
|
|
655
|
+
[key: string]: string;
|
|
656
|
+
};
|
|
657
|
+
static types(): {
|
|
658
|
+
[key: string]: any;
|
|
659
|
+
};
|
|
660
|
+
constructor(map?: {
|
|
661
|
+
[key: string]: any;
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
export declare class VideoModerationResultResponseBodyDataAudioResult extends $tea.Model {
|
|
665
|
+
sliceDetails?: VideoModerationResultResponseBodyDataAudioResultSliceDetails[];
|
|
666
|
+
static names(): {
|
|
667
|
+
[key: string]: string;
|
|
668
|
+
};
|
|
669
|
+
static types(): {
|
|
670
|
+
[key: string]: any;
|
|
671
|
+
};
|
|
672
|
+
constructor(map?: {
|
|
673
|
+
[key: string]: any;
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
export declare class VideoModerationResultResponseBodyDataFrameResultFramesResultsResult extends $tea.Model {
|
|
677
|
+
confidence?: number;
|
|
678
|
+
label?: string;
|
|
679
|
+
static names(): {
|
|
680
|
+
[key: string]: string;
|
|
681
|
+
};
|
|
682
|
+
static types(): {
|
|
683
|
+
[key: string]: any;
|
|
684
|
+
};
|
|
685
|
+
constructor(map?: {
|
|
686
|
+
[key: string]: any;
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
export declare class VideoModerationResultResponseBodyDataFrameResultFramesResults extends $tea.Model {
|
|
690
|
+
result?: VideoModerationResultResponseBodyDataFrameResultFramesResultsResult[];
|
|
691
|
+
service?: string;
|
|
692
|
+
static names(): {
|
|
693
|
+
[key: string]: string;
|
|
694
|
+
};
|
|
695
|
+
static types(): {
|
|
696
|
+
[key: string]: any;
|
|
697
|
+
};
|
|
698
|
+
constructor(map?: {
|
|
699
|
+
[key: string]: any;
|
|
700
|
+
});
|
|
701
|
+
}
|
|
702
|
+
export declare class VideoModerationResultResponseBodyDataFrameResultFrames extends $tea.Model {
|
|
703
|
+
offset?: number;
|
|
704
|
+
results?: VideoModerationResultResponseBodyDataFrameResultFramesResults[];
|
|
705
|
+
tempUrl?: string;
|
|
706
|
+
static names(): {
|
|
707
|
+
[key: string]: string;
|
|
708
|
+
};
|
|
709
|
+
static types(): {
|
|
710
|
+
[key: string]: any;
|
|
711
|
+
};
|
|
712
|
+
constructor(map?: {
|
|
713
|
+
[key: string]: any;
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
export declare class VideoModerationResultResponseBodyDataFrameResult extends $tea.Model {
|
|
717
|
+
frameNum?: number;
|
|
718
|
+
frames?: VideoModerationResultResponseBodyDataFrameResultFrames[];
|
|
719
|
+
static names(): {
|
|
720
|
+
[key: string]: string;
|
|
721
|
+
};
|
|
722
|
+
static types(): {
|
|
723
|
+
[key: string]: any;
|
|
724
|
+
};
|
|
725
|
+
constructor(map?: {
|
|
726
|
+
[key: string]: any;
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
export declare class VideoModerationResultResponseBodyData extends $tea.Model {
|
|
730
|
+
audioResult?: VideoModerationResultResponseBodyDataAudioResult;
|
|
731
|
+
dataId?: string;
|
|
732
|
+
frameResult?: VideoModerationResultResponseBodyDataFrameResult;
|
|
733
|
+
liveId?: string;
|
|
734
|
+
static names(): {
|
|
735
|
+
[key: string]: string;
|
|
736
|
+
};
|
|
737
|
+
static types(): {
|
|
738
|
+
[key: string]: any;
|
|
739
|
+
};
|
|
740
|
+
constructor(map?: {
|
|
741
|
+
[key: string]: any;
|
|
742
|
+
});
|
|
743
|
+
}
|
|
414
744
|
export declare class VoiceModerationResponseBodyData extends $tea.Model {
|
|
415
745
|
taskId?: string;
|
|
416
746
|
static names(): {
|
|
@@ -468,14 +798,22 @@ export default class Client extends OpenApi {
|
|
|
468
798
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
469
799
|
[key: string]: string;
|
|
470
800
|
}, endpoint: string): string;
|
|
801
|
+
describeImageModerationResultWithOptions(request: DescribeImageModerationResultRequest, runtime: $Util.RuntimeOptions): Promise<DescribeImageModerationResultResponse>;
|
|
802
|
+
describeImageModerationResult(request: DescribeImageModerationResultRequest): Promise<DescribeImageModerationResultResponse>;
|
|
471
803
|
describeImageResultExtWithOptions(request: DescribeImageResultExtRequest, runtime: $Util.RuntimeOptions): Promise<DescribeImageResultExtResponse>;
|
|
472
804
|
describeImageResultExt(request: DescribeImageResultExtRequest): Promise<DescribeImageResultExtResponse>;
|
|
473
805
|
describeUploadTokenWithOptions(runtime: $Util.RuntimeOptions): Promise<DescribeUploadTokenResponse>;
|
|
474
806
|
describeUploadToken(): Promise<DescribeUploadTokenResponse>;
|
|
807
|
+
imageAsyncModerationWithOptions(request: ImageAsyncModerationRequest, runtime: $Util.RuntimeOptions): Promise<ImageAsyncModerationResponse>;
|
|
808
|
+
imageAsyncModeration(request: ImageAsyncModerationRequest): Promise<ImageAsyncModerationResponse>;
|
|
475
809
|
imageModerationWithOptions(request: ImageModerationRequest, runtime: $Util.RuntimeOptions): Promise<ImageModerationResponse>;
|
|
476
810
|
imageModeration(request: ImageModerationRequest): Promise<ImageModerationResponse>;
|
|
477
811
|
textModerationWithOptions(request: TextModerationRequest, runtime: $Util.RuntimeOptions): Promise<TextModerationResponse>;
|
|
478
812
|
textModeration(request: TextModerationRequest): Promise<TextModerationResponse>;
|
|
813
|
+
videoModerationWithOptions(request: VideoModerationRequest, runtime: $Util.RuntimeOptions): Promise<VideoModerationResponse>;
|
|
814
|
+
videoModeration(request: VideoModerationRequest): Promise<VideoModerationResponse>;
|
|
815
|
+
videoModerationResultWithOptions(request: VideoModerationResultRequest, runtime: $Util.RuntimeOptions): Promise<VideoModerationResultResponse>;
|
|
816
|
+
videoModerationResult(request: VideoModerationResultRequest): Promise<VideoModerationResultResponse>;
|
|
479
817
|
voiceModerationWithOptions(request: VoiceModerationRequest, runtime: $Util.RuntimeOptions): Promise<VoiceModerationResponse>;
|
|
480
818
|
voiceModeration(request: VoiceModerationRequest): Promise<VoiceModerationResponse>;
|
|
481
819
|
voiceModerationCancelWithOptions(request: VoiceModerationCancelRequest, runtime: $Util.RuntimeOptions): Promise<VoiceModerationCancelResponse>;
|