@alicloud/green20220302 2.1.0 → 2.2.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 +190 -45
- package/dist/client.js +249 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +348 -45
package/src/client.ts
CHANGED
|
@@ -59,9 +59,9 @@ export class DescribeFileModerationResultResponseBody extends $tea.Model {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export class DescribeFileModerationResultResponse extends $tea.Model {
|
|
62
|
-
headers
|
|
63
|
-
statusCode
|
|
64
|
-
body
|
|
62
|
+
headers?: { [key: string]: string };
|
|
63
|
+
statusCode?: number;
|
|
64
|
+
body?: DescribeFileModerationResultResponseBody;
|
|
65
65
|
static names(): { [key: string]: string } {
|
|
66
66
|
return {
|
|
67
67
|
headers: 'headers',
|
|
@@ -131,9 +131,9 @@ export class DescribeImageModerationResultResponseBody extends $tea.Model {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
export class DescribeImageModerationResultResponse extends $tea.Model {
|
|
134
|
-
headers
|
|
135
|
-
statusCode
|
|
136
|
-
body
|
|
134
|
+
headers?: { [key: string]: string };
|
|
135
|
+
statusCode?: number;
|
|
136
|
+
body?: DescribeImageModerationResultResponseBody;
|
|
137
137
|
static names(): { [key: string]: string } {
|
|
138
138
|
return {
|
|
139
139
|
headers: 'headers',
|
|
@@ -206,9 +206,9 @@ export class DescribeImageResultExtResponseBody extends $tea.Model {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
export class DescribeImageResultExtResponse extends $tea.Model {
|
|
209
|
-
headers
|
|
210
|
-
statusCode
|
|
211
|
-
body
|
|
209
|
+
headers?: { [key: string]: string };
|
|
210
|
+
statusCode?: number;
|
|
211
|
+
body?: DescribeImageResultExtResponseBody;
|
|
212
212
|
static names(): { [key: string]: string } {
|
|
213
213
|
return {
|
|
214
214
|
headers: 'headers',
|
|
@@ -259,9 +259,9 @@ export class DescribeUploadTokenResponseBody extends $tea.Model {
|
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
export class DescribeUploadTokenResponse extends $tea.Model {
|
|
262
|
-
headers
|
|
263
|
-
statusCode
|
|
264
|
-
body
|
|
262
|
+
headers?: { [key: string]: string };
|
|
263
|
+
statusCode?: number;
|
|
264
|
+
body?: DescribeUploadTokenResponseBody;
|
|
265
265
|
static names(): { [key: string]: string } {
|
|
266
266
|
return {
|
|
267
267
|
headers: 'headers',
|
|
@@ -283,6 +283,78 @@ export class DescribeUploadTokenResponse extends $tea.Model {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
+
export class DescribeUrlModerationResultRequest extends $tea.Model {
|
|
287
|
+
reqId?: string;
|
|
288
|
+
static names(): { [key: string]: string } {
|
|
289
|
+
return {
|
|
290
|
+
reqId: 'ReqId',
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
static types(): { [key: string]: any } {
|
|
295
|
+
return {
|
|
296
|
+
reqId: 'string',
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
constructor(map?: { [key: string]: any }) {
|
|
301
|
+
super(map);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export class DescribeUrlModerationResultResponseBody extends $tea.Model {
|
|
306
|
+
code?: number;
|
|
307
|
+
data?: DescribeUrlModerationResultResponseBodyData;
|
|
308
|
+
msg?: string;
|
|
309
|
+
requestId?: string;
|
|
310
|
+
static names(): { [key: string]: string } {
|
|
311
|
+
return {
|
|
312
|
+
code: 'Code',
|
|
313
|
+
data: 'Data',
|
|
314
|
+
msg: 'Msg',
|
|
315
|
+
requestId: 'RequestId',
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
static types(): { [key: string]: any } {
|
|
320
|
+
return {
|
|
321
|
+
code: 'number',
|
|
322
|
+
data: DescribeUrlModerationResultResponseBodyData,
|
|
323
|
+
msg: 'string',
|
|
324
|
+
requestId: 'string',
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
constructor(map?: { [key: string]: any }) {
|
|
329
|
+
super(map);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export class DescribeUrlModerationResultResponse extends $tea.Model {
|
|
334
|
+
headers?: { [key: string]: string };
|
|
335
|
+
statusCode?: number;
|
|
336
|
+
body?: DescribeUrlModerationResultResponseBody;
|
|
337
|
+
static names(): { [key: string]: string } {
|
|
338
|
+
return {
|
|
339
|
+
headers: 'headers',
|
|
340
|
+
statusCode: 'statusCode',
|
|
341
|
+
body: 'body',
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
static types(): { [key: string]: any } {
|
|
346
|
+
return {
|
|
347
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
348
|
+
statusCode: 'number',
|
|
349
|
+
body: DescribeUrlModerationResultResponseBody,
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
constructor(map?: { [key: string]: any }) {
|
|
354
|
+
super(map);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
286
358
|
export class FileModerationRequest extends $tea.Model {
|
|
287
359
|
service?: string;
|
|
288
360
|
serviceParameters?: string;
|
|
@@ -334,9 +406,9 @@ export class FileModerationResponseBody extends $tea.Model {
|
|
|
334
406
|
}
|
|
335
407
|
|
|
336
408
|
export class FileModerationResponse extends $tea.Model {
|
|
337
|
-
headers
|
|
338
|
-
statusCode
|
|
339
|
-
body
|
|
409
|
+
headers?: { [key: string]: string };
|
|
410
|
+
statusCode?: number;
|
|
411
|
+
body?: FileModerationResponseBody;
|
|
340
412
|
static names(): { [key: string]: string } {
|
|
341
413
|
return {
|
|
342
414
|
headers: 'headers',
|
|
@@ -409,9 +481,9 @@ export class ImageAsyncModerationResponseBody extends $tea.Model {
|
|
|
409
481
|
}
|
|
410
482
|
|
|
411
483
|
export class ImageAsyncModerationResponse extends $tea.Model {
|
|
412
|
-
headers
|
|
413
|
-
statusCode
|
|
414
|
-
body
|
|
484
|
+
headers?: { [key: string]: string };
|
|
485
|
+
statusCode?: number;
|
|
486
|
+
body?: ImageAsyncModerationResponseBody;
|
|
415
487
|
static names(): { [key: string]: string } {
|
|
416
488
|
return {
|
|
417
489
|
headers: 'headers',
|
|
@@ -484,9 +556,9 @@ export class ImageModerationResponseBody extends $tea.Model {
|
|
|
484
556
|
}
|
|
485
557
|
|
|
486
558
|
export class ImageModerationResponse extends $tea.Model {
|
|
487
|
-
headers
|
|
488
|
-
statusCode
|
|
489
|
-
body
|
|
559
|
+
headers?: { [key: string]: string };
|
|
560
|
+
statusCode?: number;
|
|
561
|
+
body?: ImageModerationResponseBody;
|
|
490
562
|
static names(): { [key: string]: string } {
|
|
491
563
|
return {
|
|
492
564
|
headers: 'headers',
|
|
@@ -559,9 +631,9 @@ export class TextModerationResponseBody extends $tea.Model {
|
|
|
559
631
|
}
|
|
560
632
|
|
|
561
633
|
export class TextModerationResponse extends $tea.Model {
|
|
562
|
-
headers
|
|
563
|
-
statusCode
|
|
564
|
-
body
|
|
634
|
+
headers?: { [key: string]: string };
|
|
635
|
+
statusCode?: number;
|
|
636
|
+
body?: TextModerationResponseBody;
|
|
565
637
|
static names(): { [key: string]: string } {
|
|
566
638
|
return {
|
|
567
639
|
headers: 'headers',
|
|
@@ -634,9 +706,9 @@ export class TextModerationPlusResponseBody extends $tea.Model {
|
|
|
634
706
|
}
|
|
635
707
|
|
|
636
708
|
export class TextModerationPlusResponse extends $tea.Model {
|
|
637
|
-
headers
|
|
638
|
-
statusCode
|
|
639
|
-
body
|
|
709
|
+
headers?: { [key: string]: string };
|
|
710
|
+
statusCode?: number;
|
|
711
|
+
body?: TextModerationPlusResponseBody;
|
|
640
712
|
static names(): { [key: string]: string } {
|
|
641
713
|
return {
|
|
642
714
|
headers: 'headers',
|
|
@@ -658,6 +730,81 @@ export class TextModerationPlusResponse extends $tea.Model {
|
|
|
658
730
|
}
|
|
659
731
|
}
|
|
660
732
|
|
|
733
|
+
export class UrlAsyncModerationRequest extends $tea.Model {
|
|
734
|
+
service?: string;
|
|
735
|
+
serviceParameters?: string;
|
|
736
|
+
static names(): { [key: string]: string } {
|
|
737
|
+
return {
|
|
738
|
+
service: 'Service',
|
|
739
|
+
serviceParameters: 'ServiceParameters',
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
static types(): { [key: string]: any } {
|
|
744
|
+
return {
|
|
745
|
+
service: 'string',
|
|
746
|
+
serviceParameters: 'string',
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
constructor(map?: { [key: string]: any }) {
|
|
751
|
+
super(map);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
export class UrlAsyncModerationResponseBody extends $tea.Model {
|
|
756
|
+
code?: number;
|
|
757
|
+
data?: UrlAsyncModerationResponseBodyData;
|
|
758
|
+
msg?: string;
|
|
759
|
+
requestId?: string;
|
|
760
|
+
static names(): { [key: string]: string } {
|
|
761
|
+
return {
|
|
762
|
+
code: 'Code',
|
|
763
|
+
data: 'Data',
|
|
764
|
+
msg: 'Msg',
|
|
765
|
+
requestId: 'RequestId',
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
static types(): { [key: string]: any } {
|
|
770
|
+
return {
|
|
771
|
+
code: 'number',
|
|
772
|
+
data: UrlAsyncModerationResponseBodyData,
|
|
773
|
+
msg: 'string',
|
|
774
|
+
requestId: 'string',
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
constructor(map?: { [key: string]: any }) {
|
|
779
|
+
super(map);
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
export class UrlAsyncModerationResponse extends $tea.Model {
|
|
784
|
+
headers?: { [key: string]: string };
|
|
785
|
+
statusCode?: number;
|
|
786
|
+
body?: UrlAsyncModerationResponseBody;
|
|
787
|
+
static names(): { [key: string]: string } {
|
|
788
|
+
return {
|
|
789
|
+
headers: 'headers',
|
|
790
|
+
statusCode: 'statusCode',
|
|
791
|
+
body: 'body',
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
static types(): { [key: string]: any } {
|
|
796
|
+
return {
|
|
797
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
798
|
+
statusCode: 'number',
|
|
799
|
+
body: UrlAsyncModerationResponseBody,
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
constructor(map?: { [key: string]: any }) {
|
|
804
|
+
super(map);
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
|
|
661
808
|
export class VideoModerationRequest extends $tea.Model {
|
|
662
809
|
service?: string;
|
|
663
810
|
serviceParameters?: string;
|
|
@@ -709,9 +856,9 @@ export class VideoModerationResponseBody extends $tea.Model {
|
|
|
709
856
|
}
|
|
710
857
|
|
|
711
858
|
export class VideoModerationResponse extends $tea.Model {
|
|
712
|
-
headers
|
|
713
|
-
statusCode
|
|
714
|
-
body
|
|
859
|
+
headers?: { [key: string]: string };
|
|
860
|
+
statusCode?: number;
|
|
861
|
+
body?: VideoModerationResponseBody;
|
|
715
862
|
static names(): { [key: string]: string } {
|
|
716
863
|
return {
|
|
717
864
|
headers: 'headers',
|
|
@@ -781,9 +928,9 @@ export class VideoModerationCancelResponseBody extends $tea.Model {
|
|
|
781
928
|
}
|
|
782
929
|
|
|
783
930
|
export class VideoModerationCancelResponse extends $tea.Model {
|
|
784
|
-
headers
|
|
785
|
-
statusCode
|
|
786
|
-
body
|
|
931
|
+
headers?: { [key: string]: string };
|
|
932
|
+
statusCode?: number;
|
|
933
|
+
body?: VideoModerationCancelResponseBody;
|
|
787
934
|
static names(): { [key: string]: string } {
|
|
788
935
|
return {
|
|
789
936
|
headers: 'headers',
|
|
@@ -856,9 +1003,9 @@ export class VideoModerationResultResponseBody extends $tea.Model {
|
|
|
856
1003
|
}
|
|
857
1004
|
|
|
858
1005
|
export class VideoModerationResultResponse extends $tea.Model {
|
|
859
|
-
headers
|
|
860
|
-
statusCode
|
|
861
|
-
body
|
|
1006
|
+
headers?: { [key: string]: string };
|
|
1007
|
+
statusCode?: number;
|
|
1008
|
+
body?: VideoModerationResultResponseBody;
|
|
862
1009
|
static names(): { [key: string]: string } {
|
|
863
1010
|
return {
|
|
864
1011
|
headers: 'headers',
|
|
@@ -931,9 +1078,9 @@ export class VoiceModerationResponseBody extends $tea.Model {
|
|
|
931
1078
|
}
|
|
932
1079
|
|
|
933
1080
|
export class VoiceModerationResponse extends $tea.Model {
|
|
934
|
-
headers
|
|
935
|
-
statusCode
|
|
936
|
-
body
|
|
1081
|
+
headers?: { [key: string]: string };
|
|
1082
|
+
statusCode?: number;
|
|
1083
|
+
body?: VoiceModerationResponseBody;
|
|
937
1084
|
static names(): { [key: string]: string } {
|
|
938
1085
|
return {
|
|
939
1086
|
headers: 'headers',
|
|
@@ -1003,9 +1150,9 @@ export class VoiceModerationCancelResponseBody extends $tea.Model {
|
|
|
1003
1150
|
}
|
|
1004
1151
|
|
|
1005
1152
|
export class VoiceModerationCancelResponse extends $tea.Model {
|
|
1006
|
-
headers
|
|
1007
|
-
statusCode
|
|
1008
|
-
body
|
|
1153
|
+
headers?: { [key: string]: string };
|
|
1154
|
+
statusCode?: number;
|
|
1155
|
+
body?: VoiceModerationCancelResponseBody;
|
|
1009
1156
|
static names(): { [key: string]: string } {
|
|
1010
1157
|
return {
|
|
1011
1158
|
headers: 'headers',
|
|
@@ -1078,9 +1225,9 @@ export class VoiceModerationResultResponseBody extends $tea.Model {
|
|
|
1078
1225
|
}
|
|
1079
1226
|
|
|
1080
1227
|
export class VoiceModerationResultResponse extends $tea.Model {
|
|
1081
|
-
headers
|
|
1082
|
-
statusCode
|
|
1083
|
-
body
|
|
1228
|
+
headers?: { [key: string]: string };
|
|
1229
|
+
statusCode?: number;
|
|
1230
|
+
body?: VoiceModerationResultResponseBody;
|
|
1084
1231
|
static names(): { [key: string]: string } {
|
|
1085
1232
|
return {
|
|
1086
1233
|
headers: 'headers',
|
|
@@ -1460,6 +1607,78 @@ export class DescribeUploadTokenResponseBodyData extends $tea.Model {
|
|
|
1460
1607
|
}
|
|
1461
1608
|
}
|
|
1462
1609
|
|
|
1610
|
+
export class DescribeUrlModerationResultResponseBodyDataExtraInfo extends $tea.Model {
|
|
1611
|
+
icpNo?: string;
|
|
1612
|
+
icpType?: string;
|
|
1613
|
+
static names(): { [key: string]: string } {
|
|
1614
|
+
return {
|
|
1615
|
+
icpNo: 'IcpNo',
|
|
1616
|
+
icpType: 'IcpType',
|
|
1617
|
+
};
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
static types(): { [key: string]: any } {
|
|
1621
|
+
return {
|
|
1622
|
+
icpNo: 'string',
|
|
1623
|
+
icpType: 'string',
|
|
1624
|
+
};
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
constructor(map?: { [key: string]: any }) {
|
|
1628
|
+
super(map);
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
export class DescribeUrlModerationResultResponseBodyDataResult extends $tea.Model {
|
|
1633
|
+
confidence?: number;
|
|
1634
|
+
label?: string;
|
|
1635
|
+
static names(): { [key: string]: string } {
|
|
1636
|
+
return {
|
|
1637
|
+
confidence: 'Confidence',
|
|
1638
|
+
label: 'Label',
|
|
1639
|
+
};
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
static types(): { [key: string]: any } {
|
|
1643
|
+
return {
|
|
1644
|
+
confidence: 'number',
|
|
1645
|
+
label: 'string',
|
|
1646
|
+
};
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
constructor(map?: { [key: string]: any }) {
|
|
1650
|
+
super(map);
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
export class DescribeUrlModerationResultResponseBodyData extends $tea.Model {
|
|
1655
|
+
dataId?: string;
|
|
1656
|
+
extraInfo?: DescribeUrlModerationResultResponseBodyDataExtraInfo;
|
|
1657
|
+
reqId?: string;
|
|
1658
|
+
result?: DescribeUrlModerationResultResponseBodyDataResult[];
|
|
1659
|
+
static names(): { [key: string]: string } {
|
|
1660
|
+
return {
|
|
1661
|
+
dataId: 'DataId',
|
|
1662
|
+
extraInfo: 'ExtraInfo',
|
|
1663
|
+
reqId: 'ReqId',
|
|
1664
|
+
result: 'Result',
|
|
1665
|
+
};
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
static types(): { [key: string]: any } {
|
|
1669
|
+
return {
|
|
1670
|
+
dataId: 'string',
|
|
1671
|
+
extraInfo: DescribeUrlModerationResultResponseBodyDataExtraInfo,
|
|
1672
|
+
reqId: 'string',
|
|
1673
|
+
result: { 'type': 'array', 'itemType': DescribeUrlModerationResultResponseBodyDataResult },
|
|
1674
|
+
};
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
constructor(map?: { [key: string]: any }) {
|
|
1678
|
+
super(map);
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1463
1682
|
export class FileModerationResponseBodyData extends $tea.Model {
|
|
1464
1683
|
taskId?: string;
|
|
1465
1684
|
static names(): { [key: string]: string } {
|
|
@@ -1667,6 +1886,28 @@ export class TextModerationPlusResponseBodyData extends $tea.Model {
|
|
|
1667
1886
|
}
|
|
1668
1887
|
}
|
|
1669
1888
|
|
|
1889
|
+
export class UrlAsyncModerationResponseBodyData extends $tea.Model {
|
|
1890
|
+
dataId?: string;
|
|
1891
|
+
reqId?: string;
|
|
1892
|
+
static names(): { [key: string]: string } {
|
|
1893
|
+
return {
|
|
1894
|
+
dataId: 'DataId',
|
|
1895
|
+
reqId: 'ReqId',
|
|
1896
|
+
};
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
static types(): { [key: string]: any } {
|
|
1900
|
+
return {
|
|
1901
|
+
dataId: 'string',
|
|
1902
|
+
reqId: 'string',
|
|
1903
|
+
};
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
constructor(map?: { [key: string]: any }) {
|
|
1907
|
+
super(map);
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1670
1911
|
export class VideoModerationResponseBodyData extends $tea.Model {
|
|
1671
1912
|
taskId?: string;
|
|
1672
1913
|
static names(): { [key: string]: string } {
|
|
@@ -2184,6 +2425,35 @@ export default class Client extends OpenApi {
|
|
|
2184
2425
|
return await this.describeUploadTokenWithOptions(runtime);
|
|
2185
2426
|
}
|
|
2186
2427
|
|
|
2428
|
+
async describeUrlModerationResultWithOptions(request: DescribeUrlModerationResultRequest, runtime: $Util.RuntimeOptions): Promise<DescribeUrlModerationResultResponse> {
|
|
2429
|
+
Util.validateModel(request);
|
|
2430
|
+
let body : {[key: string ]: any} = { };
|
|
2431
|
+
if (!Util.isUnset(request.reqId)) {
|
|
2432
|
+
body["ReqId"] = request.reqId;
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2436
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2437
|
+
});
|
|
2438
|
+
let params = new $OpenApi.Params({
|
|
2439
|
+
action: "DescribeUrlModerationResult",
|
|
2440
|
+
version: "2022-03-02",
|
|
2441
|
+
protocol: "HTTPS",
|
|
2442
|
+
pathname: "/",
|
|
2443
|
+
method: "POST",
|
|
2444
|
+
authType: "AK",
|
|
2445
|
+
style: "RPC",
|
|
2446
|
+
reqBodyType: "formData",
|
|
2447
|
+
bodyType: "json",
|
|
2448
|
+
});
|
|
2449
|
+
return $tea.cast<DescribeUrlModerationResultResponse>(await this.callApi(params, req, runtime), new DescribeUrlModerationResultResponse({}));
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
async describeUrlModerationResult(request: DescribeUrlModerationResultRequest): Promise<DescribeUrlModerationResultResponse> {
|
|
2453
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2454
|
+
return await this.describeUrlModerationResultWithOptions(request, runtime);
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2187
2457
|
async fileModerationWithOptions(request: FileModerationRequest, runtime: $Util.RuntimeOptions): Promise<FileModerationResponse> {
|
|
2188
2458
|
Util.validateModel(request);
|
|
2189
2459
|
let body : {[key: string ]: any} = { };
|
|
@@ -2349,6 +2619,39 @@ export default class Client extends OpenApi {
|
|
|
2349
2619
|
return await this.textModerationPlusWithOptions(request, runtime);
|
|
2350
2620
|
}
|
|
2351
2621
|
|
|
2622
|
+
async urlAsyncModerationWithOptions(request: UrlAsyncModerationRequest, runtime: $Util.RuntimeOptions): Promise<UrlAsyncModerationResponse> {
|
|
2623
|
+
Util.validateModel(request);
|
|
2624
|
+
let query = { };
|
|
2625
|
+
if (!Util.isUnset(request.service)) {
|
|
2626
|
+
query["Service"] = request.service;
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
if (!Util.isUnset(request.serviceParameters)) {
|
|
2630
|
+
query["ServiceParameters"] = request.serviceParameters;
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2634
|
+
query: OpenApiUtil.query(query),
|
|
2635
|
+
});
|
|
2636
|
+
let params = new $OpenApi.Params({
|
|
2637
|
+
action: "UrlAsyncModeration",
|
|
2638
|
+
version: "2022-03-02",
|
|
2639
|
+
protocol: "HTTPS",
|
|
2640
|
+
pathname: "/",
|
|
2641
|
+
method: "POST",
|
|
2642
|
+
authType: "AK",
|
|
2643
|
+
style: "RPC",
|
|
2644
|
+
reqBodyType: "formData",
|
|
2645
|
+
bodyType: "json",
|
|
2646
|
+
});
|
|
2647
|
+
return $tea.cast<UrlAsyncModerationResponse>(await this.callApi(params, req, runtime), new UrlAsyncModerationResponse({}));
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
async urlAsyncModeration(request: UrlAsyncModerationRequest): Promise<UrlAsyncModerationResponse> {
|
|
2651
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2652
|
+
return await this.urlAsyncModerationWithOptions(request, runtime);
|
|
2653
|
+
}
|
|
2654
|
+
|
|
2352
2655
|
async videoModerationWithOptions(request: VideoModerationRequest, runtime: $Util.RuntimeOptions): Promise<VideoModerationResponse> {
|
|
2353
2656
|
Util.validateModel(request);
|
|
2354
2657
|
let body : {[key: string ]: any} = { };
|