@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/dist/client.d.ts
CHANGED
|
@@ -33,11 +33,11 @@ export declare class DescribeFileModerationResultResponseBody extends $tea.Model
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
export declare class DescribeFileModerationResultResponse extends $tea.Model {
|
|
36
|
-
headers
|
|
36
|
+
headers?: {
|
|
37
37
|
[key: string]: string;
|
|
38
38
|
};
|
|
39
|
-
statusCode
|
|
40
|
-
body
|
|
39
|
+
statusCode?: number;
|
|
40
|
+
body?: DescribeFileModerationResultResponseBody;
|
|
41
41
|
static names(): {
|
|
42
42
|
[key: string]: string;
|
|
43
43
|
};
|
|
@@ -76,11 +76,11 @@ export declare class DescribeImageModerationResultResponseBody extends $tea.Mode
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
export declare class DescribeImageModerationResultResponse extends $tea.Model {
|
|
79
|
-
headers
|
|
79
|
+
headers?: {
|
|
80
80
|
[key: string]: string;
|
|
81
81
|
};
|
|
82
|
-
statusCode
|
|
83
|
-
body
|
|
82
|
+
statusCode?: number;
|
|
83
|
+
body?: DescribeImageModerationResultResponseBody;
|
|
84
84
|
static names(): {
|
|
85
85
|
[key: string]: string;
|
|
86
86
|
};
|
|
@@ -120,11 +120,11 @@ export declare class DescribeImageResultExtResponseBody extends $tea.Model {
|
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
export declare class DescribeImageResultExtResponse extends $tea.Model {
|
|
123
|
-
headers
|
|
123
|
+
headers?: {
|
|
124
124
|
[key: string]: string;
|
|
125
125
|
};
|
|
126
|
-
statusCode
|
|
127
|
-
body
|
|
126
|
+
statusCode?: number;
|
|
127
|
+
body?: DescribeImageResultExtResponseBody;
|
|
128
128
|
static names(): {
|
|
129
129
|
[key: string]: string;
|
|
130
130
|
};
|
|
@@ -151,11 +151,54 @@ export declare class DescribeUploadTokenResponseBody extends $tea.Model {
|
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
export declare class DescribeUploadTokenResponse extends $tea.Model {
|
|
154
|
-
headers
|
|
154
|
+
headers?: {
|
|
155
155
|
[key: string]: string;
|
|
156
156
|
};
|
|
157
|
-
statusCode
|
|
158
|
-
body
|
|
157
|
+
statusCode?: number;
|
|
158
|
+
body?: DescribeUploadTokenResponseBody;
|
|
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
|
+
}
|
|
169
|
+
export declare class DescribeUrlModerationResultRequest extends $tea.Model {
|
|
170
|
+
reqId?: string;
|
|
171
|
+
static names(): {
|
|
172
|
+
[key: string]: string;
|
|
173
|
+
};
|
|
174
|
+
static types(): {
|
|
175
|
+
[key: string]: any;
|
|
176
|
+
};
|
|
177
|
+
constructor(map?: {
|
|
178
|
+
[key: string]: any;
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
export declare class DescribeUrlModerationResultResponseBody extends $tea.Model {
|
|
182
|
+
code?: number;
|
|
183
|
+
data?: DescribeUrlModerationResultResponseBodyData;
|
|
184
|
+
msg?: string;
|
|
185
|
+
requestId?: string;
|
|
186
|
+
static names(): {
|
|
187
|
+
[key: string]: string;
|
|
188
|
+
};
|
|
189
|
+
static types(): {
|
|
190
|
+
[key: string]: any;
|
|
191
|
+
};
|
|
192
|
+
constructor(map?: {
|
|
193
|
+
[key: string]: any;
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
export declare class DescribeUrlModerationResultResponse extends $tea.Model {
|
|
197
|
+
headers?: {
|
|
198
|
+
[key: string]: string;
|
|
199
|
+
};
|
|
200
|
+
statusCode?: number;
|
|
201
|
+
body?: DescribeUrlModerationResultResponseBody;
|
|
159
202
|
static names(): {
|
|
160
203
|
[key: string]: string;
|
|
161
204
|
};
|
|
@@ -195,11 +238,11 @@ export declare class FileModerationResponseBody extends $tea.Model {
|
|
|
195
238
|
});
|
|
196
239
|
}
|
|
197
240
|
export declare class FileModerationResponse extends $tea.Model {
|
|
198
|
-
headers
|
|
241
|
+
headers?: {
|
|
199
242
|
[key: string]: string;
|
|
200
243
|
};
|
|
201
|
-
statusCode
|
|
202
|
-
body
|
|
244
|
+
statusCode?: number;
|
|
245
|
+
body?: FileModerationResponseBody;
|
|
203
246
|
static names(): {
|
|
204
247
|
[key: string]: string;
|
|
205
248
|
};
|
|
@@ -239,11 +282,11 @@ export declare class ImageAsyncModerationResponseBody extends $tea.Model {
|
|
|
239
282
|
});
|
|
240
283
|
}
|
|
241
284
|
export declare class ImageAsyncModerationResponse extends $tea.Model {
|
|
242
|
-
headers
|
|
285
|
+
headers?: {
|
|
243
286
|
[key: string]: string;
|
|
244
287
|
};
|
|
245
|
-
statusCode
|
|
246
|
-
body
|
|
288
|
+
statusCode?: number;
|
|
289
|
+
body?: ImageAsyncModerationResponseBody;
|
|
247
290
|
static names(): {
|
|
248
291
|
[key: string]: string;
|
|
249
292
|
};
|
|
@@ -283,11 +326,11 @@ export declare class ImageModerationResponseBody extends $tea.Model {
|
|
|
283
326
|
});
|
|
284
327
|
}
|
|
285
328
|
export declare class ImageModerationResponse extends $tea.Model {
|
|
286
|
-
headers
|
|
329
|
+
headers?: {
|
|
287
330
|
[key: string]: string;
|
|
288
331
|
};
|
|
289
|
-
statusCode
|
|
290
|
-
body
|
|
332
|
+
statusCode?: number;
|
|
333
|
+
body?: ImageModerationResponseBody;
|
|
291
334
|
static names(): {
|
|
292
335
|
[key: string]: string;
|
|
293
336
|
};
|
|
@@ -327,11 +370,11 @@ export declare class TextModerationResponseBody extends $tea.Model {
|
|
|
327
370
|
});
|
|
328
371
|
}
|
|
329
372
|
export declare class TextModerationResponse extends $tea.Model {
|
|
330
|
-
headers
|
|
373
|
+
headers?: {
|
|
331
374
|
[key: string]: string;
|
|
332
375
|
};
|
|
333
|
-
statusCode
|
|
334
|
-
body
|
|
376
|
+
statusCode?: number;
|
|
377
|
+
body?: TextModerationResponseBody;
|
|
335
378
|
static names(): {
|
|
336
379
|
[key: string]: string;
|
|
337
380
|
};
|
|
@@ -371,11 +414,55 @@ export declare class TextModerationPlusResponseBody extends $tea.Model {
|
|
|
371
414
|
});
|
|
372
415
|
}
|
|
373
416
|
export declare class TextModerationPlusResponse extends $tea.Model {
|
|
374
|
-
headers
|
|
417
|
+
headers?: {
|
|
375
418
|
[key: string]: string;
|
|
376
419
|
};
|
|
377
|
-
statusCode
|
|
378
|
-
body
|
|
420
|
+
statusCode?: number;
|
|
421
|
+
body?: TextModerationPlusResponseBody;
|
|
422
|
+
static names(): {
|
|
423
|
+
[key: string]: string;
|
|
424
|
+
};
|
|
425
|
+
static types(): {
|
|
426
|
+
[key: string]: any;
|
|
427
|
+
};
|
|
428
|
+
constructor(map?: {
|
|
429
|
+
[key: string]: any;
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
export declare class UrlAsyncModerationRequest extends $tea.Model {
|
|
433
|
+
service?: string;
|
|
434
|
+
serviceParameters?: string;
|
|
435
|
+
static names(): {
|
|
436
|
+
[key: string]: string;
|
|
437
|
+
};
|
|
438
|
+
static types(): {
|
|
439
|
+
[key: string]: any;
|
|
440
|
+
};
|
|
441
|
+
constructor(map?: {
|
|
442
|
+
[key: string]: any;
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
export declare class UrlAsyncModerationResponseBody extends $tea.Model {
|
|
446
|
+
code?: number;
|
|
447
|
+
data?: UrlAsyncModerationResponseBodyData;
|
|
448
|
+
msg?: string;
|
|
449
|
+
requestId?: string;
|
|
450
|
+
static names(): {
|
|
451
|
+
[key: string]: string;
|
|
452
|
+
};
|
|
453
|
+
static types(): {
|
|
454
|
+
[key: string]: any;
|
|
455
|
+
};
|
|
456
|
+
constructor(map?: {
|
|
457
|
+
[key: string]: any;
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
export declare class UrlAsyncModerationResponse extends $tea.Model {
|
|
461
|
+
headers?: {
|
|
462
|
+
[key: string]: string;
|
|
463
|
+
};
|
|
464
|
+
statusCode?: number;
|
|
465
|
+
body?: UrlAsyncModerationResponseBody;
|
|
379
466
|
static names(): {
|
|
380
467
|
[key: string]: string;
|
|
381
468
|
};
|
|
@@ -415,11 +502,11 @@ export declare class VideoModerationResponseBody extends $tea.Model {
|
|
|
415
502
|
});
|
|
416
503
|
}
|
|
417
504
|
export declare class VideoModerationResponse extends $tea.Model {
|
|
418
|
-
headers
|
|
505
|
+
headers?: {
|
|
419
506
|
[key: string]: string;
|
|
420
507
|
};
|
|
421
|
-
statusCode
|
|
422
|
-
body
|
|
508
|
+
statusCode?: number;
|
|
509
|
+
body?: VideoModerationResponseBody;
|
|
423
510
|
static names(): {
|
|
424
511
|
[key: string]: string;
|
|
425
512
|
};
|
|
@@ -458,11 +545,11 @@ export declare class VideoModerationCancelResponseBody extends $tea.Model {
|
|
|
458
545
|
});
|
|
459
546
|
}
|
|
460
547
|
export declare class VideoModerationCancelResponse extends $tea.Model {
|
|
461
|
-
headers
|
|
548
|
+
headers?: {
|
|
462
549
|
[key: string]: string;
|
|
463
550
|
};
|
|
464
|
-
statusCode
|
|
465
|
-
body
|
|
551
|
+
statusCode?: number;
|
|
552
|
+
body?: VideoModerationCancelResponseBody;
|
|
466
553
|
static names(): {
|
|
467
554
|
[key: string]: string;
|
|
468
555
|
};
|
|
@@ -502,11 +589,11 @@ export declare class VideoModerationResultResponseBody extends $tea.Model {
|
|
|
502
589
|
});
|
|
503
590
|
}
|
|
504
591
|
export declare class VideoModerationResultResponse extends $tea.Model {
|
|
505
|
-
headers
|
|
592
|
+
headers?: {
|
|
506
593
|
[key: string]: string;
|
|
507
594
|
};
|
|
508
|
-
statusCode
|
|
509
|
-
body
|
|
595
|
+
statusCode?: number;
|
|
596
|
+
body?: VideoModerationResultResponseBody;
|
|
510
597
|
static names(): {
|
|
511
598
|
[key: string]: string;
|
|
512
599
|
};
|
|
@@ -546,11 +633,11 @@ export declare class VoiceModerationResponseBody extends $tea.Model {
|
|
|
546
633
|
});
|
|
547
634
|
}
|
|
548
635
|
export declare class VoiceModerationResponse extends $tea.Model {
|
|
549
|
-
headers
|
|
636
|
+
headers?: {
|
|
550
637
|
[key: string]: string;
|
|
551
638
|
};
|
|
552
|
-
statusCode
|
|
553
|
-
body
|
|
639
|
+
statusCode?: number;
|
|
640
|
+
body?: VoiceModerationResponseBody;
|
|
554
641
|
static names(): {
|
|
555
642
|
[key: string]: string;
|
|
556
643
|
};
|
|
@@ -589,11 +676,11 @@ export declare class VoiceModerationCancelResponseBody extends $tea.Model {
|
|
|
589
676
|
});
|
|
590
677
|
}
|
|
591
678
|
export declare class VoiceModerationCancelResponse extends $tea.Model {
|
|
592
|
-
headers
|
|
679
|
+
headers?: {
|
|
593
680
|
[key: string]: string;
|
|
594
681
|
};
|
|
595
|
-
statusCode
|
|
596
|
-
body
|
|
682
|
+
statusCode?: number;
|
|
683
|
+
body?: VoiceModerationCancelResponseBody;
|
|
597
684
|
static names(): {
|
|
598
685
|
[key: string]: string;
|
|
599
686
|
};
|
|
@@ -633,11 +720,11 @@ export declare class VoiceModerationResultResponseBody extends $tea.Model {
|
|
|
633
720
|
});
|
|
634
721
|
}
|
|
635
722
|
export declare class VoiceModerationResultResponse extends $tea.Model {
|
|
636
|
-
headers
|
|
723
|
+
headers?: {
|
|
637
724
|
[key: string]: string;
|
|
638
725
|
};
|
|
639
|
-
statusCode
|
|
640
|
-
body
|
|
726
|
+
statusCode?: number;
|
|
727
|
+
body?: VoiceModerationResultResponseBody;
|
|
641
728
|
static names(): {
|
|
642
729
|
[key: string]: string;
|
|
643
730
|
};
|
|
@@ -841,6 +928,47 @@ export declare class DescribeUploadTokenResponseBodyData extends $tea.Model {
|
|
|
841
928
|
[key: string]: any;
|
|
842
929
|
});
|
|
843
930
|
}
|
|
931
|
+
export declare class DescribeUrlModerationResultResponseBodyDataExtraInfo extends $tea.Model {
|
|
932
|
+
icpNo?: string;
|
|
933
|
+
icpType?: string;
|
|
934
|
+
static names(): {
|
|
935
|
+
[key: string]: string;
|
|
936
|
+
};
|
|
937
|
+
static types(): {
|
|
938
|
+
[key: string]: any;
|
|
939
|
+
};
|
|
940
|
+
constructor(map?: {
|
|
941
|
+
[key: string]: any;
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
export declare class DescribeUrlModerationResultResponseBodyDataResult extends $tea.Model {
|
|
945
|
+
confidence?: number;
|
|
946
|
+
label?: string;
|
|
947
|
+
static names(): {
|
|
948
|
+
[key: string]: string;
|
|
949
|
+
};
|
|
950
|
+
static types(): {
|
|
951
|
+
[key: string]: any;
|
|
952
|
+
};
|
|
953
|
+
constructor(map?: {
|
|
954
|
+
[key: string]: any;
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
export declare class DescribeUrlModerationResultResponseBodyData extends $tea.Model {
|
|
958
|
+
dataId?: string;
|
|
959
|
+
extraInfo?: DescribeUrlModerationResultResponseBodyDataExtraInfo;
|
|
960
|
+
reqId?: string;
|
|
961
|
+
result?: DescribeUrlModerationResultResponseBodyDataResult[];
|
|
962
|
+
static names(): {
|
|
963
|
+
[key: string]: string;
|
|
964
|
+
};
|
|
965
|
+
static types(): {
|
|
966
|
+
[key: string]: any;
|
|
967
|
+
};
|
|
968
|
+
constructor(map?: {
|
|
969
|
+
[key: string]: any;
|
|
970
|
+
});
|
|
971
|
+
}
|
|
844
972
|
export declare class FileModerationResponseBodyData extends $tea.Model {
|
|
845
973
|
taskId?: string;
|
|
846
974
|
static names(): {
|
|
@@ -961,6 +1089,19 @@ export declare class TextModerationPlusResponseBodyData extends $tea.Model {
|
|
|
961
1089
|
[key: string]: any;
|
|
962
1090
|
});
|
|
963
1091
|
}
|
|
1092
|
+
export declare class UrlAsyncModerationResponseBodyData extends $tea.Model {
|
|
1093
|
+
dataId?: string;
|
|
1094
|
+
reqId?: string;
|
|
1095
|
+
static names(): {
|
|
1096
|
+
[key: string]: string;
|
|
1097
|
+
};
|
|
1098
|
+
static types(): {
|
|
1099
|
+
[key: string]: any;
|
|
1100
|
+
};
|
|
1101
|
+
constructor(map?: {
|
|
1102
|
+
[key: string]: any;
|
|
1103
|
+
});
|
|
1104
|
+
}
|
|
964
1105
|
export declare class VideoModerationResponseBodyData extends $tea.Model {
|
|
965
1106
|
taskId?: string;
|
|
966
1107
|
static names(): {
|
|
@@ -1169,6 +1310,8 @@ export default class Client extends OpenApi {
|
|
|
1169
1310
|
describeImageResultExt(request: DescribeImageResultExtRequest): Promise<DescribeImageResultExtResponse>;
|
|
1170
1311
|
describeUploadTokenWithOptions(runtime: $Util.RuntimeOptions): Promise<DescribeUploadTokenResponse>;
|
|
1171
1312
|
describeUploadToken(): Promise<DescribeUploadTokenResponse>;
|
|
1313
|
+
describeUrlModerationResultWithOptions(request: DescribeUrlModerationResultRequest, runtime: $Util.RuntimeOptions): Promise<DescribeUrlModerationResultResponse>;
|
|
1314
|
+
describeUrlModerationResult(request: DescribeUrlModerationResultRequest): Promise<DescribeUrlModerationResultResponse>;
|
|
1172
1315
|
fileModerationWithOptions(request: FileModerationRequest, runtime: $Util.RuntimeOptions): Promise<FileModerationResponse>;
|
|
1173
1316
|
fileModeration(request: FileModerationRequest): Promise<FileModerationResponse>;
|
|
1174
1317
|
imageAsyncModerationWithOptions(request: ImageAsyncModerationRequest, runtime: $Util.RuntimeOptions): Promise<ImageAsyncModerationResponse>;
|
|
@@ -1179,6 +1322,8 @@ export default class Client extends OpenApi {
|
|
|
1179
1322
|
textModeration(request: TextModerationRequest): Promise<TextModerationResponse>;
|
|
1180
1323
|
textModerationPlusWithOptions(request: TextModerationPlusRequest, runtime: $Util.RuntimeOptions): Promise<TextModerationPlusResponse>;
|
|
1181
1324
|
textModerationPlus(request: TextModerationPlusRequest): Promise<TextModerationPlusResponse>;
|
|
1325
|
+
urlAsyncModerationWithOptions(request: UrlAsyncModerationRequest, runtime: $Util.RuntimeOptions): Promise<UrlAsyncModerationResponse>;
|
|
1326
|
+
urlAsyncModeration(request: UrlAsyncModerationRequest): Promise<UrlAsyncModerationResponse>;
|
|
1182
1327
|
videoModerationWithOptions(request: VideoModerationRequest, runtime: $Util.RuntimeOptions): Promise<VideoModerationResponse>;
|
|
1183
1328
|
videoModeration(request: VideoModerationRequest): Promise<VideoModerationResponse>;
|
|
1184
1329
|
videoModerationCancelWithOptions(request: VideoModerationCancelRequest, runtime: $Util.RuntimeOptions): Promise<VideoModerationCancelResponse>;
|
package/dist/client.js
CHANGED
|
@@ -239,6 +239,64 @@ class DescribeUploadTokenResponse extends $tea.Model {
|
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
exports.DescribeUploadTokenResponse = DescribeUploadTokenResponse;
|
|
242
|
+
class DescribeUrlModerationResultRequest extends $tea.Model {
|
|
243
|
+
constructor(map) {
|
|
244
|
+
super(map);
|
|
245
|
+
}
|
|
246
|
+
static names() {
|
|
247
|
+
return {
|
|
248
|
+
reqId: 'ReqId',
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
static types() {
|
|
252
|
+
return {
|
|
253
|
+
reqId: 'string',
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
exports.DescribeUrlModerationResultRequest = DescribeUrlModerationResultRequest;
|
|
258
|
+
class DescribeUrlModerationResultResponseBody extends $tea.Model {
|
|
259
|
+
constructor(map) {
|
|
260
|
+
super(map);
|
|
261
|
+
}
|
|
262
|
+
static names() {
|
|
263
|
+
return {
|
|
264
|
+
code: 'Code',
|
|
265
|
+
data: 'Data',
|
|
266
|
+
msg: 'Msg',
|
|
267
|
+
requestId: 'RequestId',
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
static types() {
|
|
271
|
+
return {
|
|
272
|
+
code: 'number',
|
|
273
|
+
data: DescribeUrlModerationResultResponseBodyData,
|
|
274
|
+
msg: 'string',
|
|
275
|
+
requestId: 'string',
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
exports.DescribeUrlModerationResultResponseBody = DescribeUrlModerationResultResponseBody;
|
|
280
|
+
class DescribeUrlModerationResultResponse extends $tea.Model {
|
|
281
|
+
constructor(map) {
|
|
282
|
+
super(map);
|
|
283
|
+
}
|
|
284
|
+
static names() {
|
|
285
|
+
return {
|
|
286
|
+
headers: 'headers',
|
|
287
|
+
statusCode: 'statusCode',
|
|
288
|
+
body: 'body',
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
static types() {
|
|
292
|
+
return {
|
|
293
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
294
|
+
statusCode: 'number',
|
|
295
|
+
body: DescribeUrlModerationResultResponseBody,
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
exports.DescribeUrlModerationResultResponse = DescribeUrlModerationResultResponse;
|
|
242
300
|
class FileModerationRequest extends $tea.Model {
|
|
243
301
|
constructor(map) {
|
|
244
302
|
super(map);
|
|
@@ -539,6 +597,66 @@ class TextModerationPlusResponse extends $tea.Model {
|
|
|
539
597
|
}
|
|
540
598
|
}
|
|
541
599
|
exports.TextModerationPlusResponse = TextModerationPlusResponse;
|
|
600
|
+
class UrlAsyncModerationRequest extends $tea.Model {
|
|
601
|
+
constructor(map) {
|
|
602
|
+
super(map);
|
|
603
|
+
}
|
|
604
|
+
static names() {
|
|
605
|
+
return {
|
|
606
|
+
service: 'Service',
|
|
607
|
+
serviceParameters: 'ServiceParameters',
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
static types() {
|
|
611
|
+
return {
|
|
612
|
+
service: 'string',
|
|
613
|
+
serviceParameters: 'string',
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
exports.UrlAsyncModerationRequest = UrlAsyncModerationRequest;
|
|
618
|
+
class UrlAsyncModerationResponseBody extends $tea.Model {
|
|
619
|
+
constructor(map) {
|
|
620
|
+
super(map);
|
|
621
|
+
}
|
|
622
|
+
static names() {
|
|
623
|
+
return {
|
|
624
|
+
code: 'Code',
|
|
625
|
+
data: 'Data',
|
|
626
|
+
msg: 'Msg',
|
|
627
|
+
requestId: 'RequestId',
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
static types() {
|
|
631
|
+
return {
|
|
632
|
+
code: 'number',
|
|
633
|
+
data: UrlAsyncModerationResponseBodyData,
|
|
634
|
+
msg: 'string',
|
|
635
|
+
requestId: 'string',
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
exports.UrlAsyncModerationResponseBody = UrlAsyncModerationResponseBody;
|
|
640
|
+
class UrlAsyncModerationResponse extends $tea.Model {
|
|
641
|
+
constructor(map) {
|
|
642
|
+
super(map);
|
|
643
|
+
}
|
|
644
|
+
static names() {
|
|
645
|
+
return {
|
|
646
|
+
headers: 'headers',
|
|
647
|
+
statusCode: 'statusCode',
|
|
648
|
+
body: 'body',
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
static types() {
|
|
652
|
+
return {
|
|
653
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
654
|
+
statusCode: 'number',
|
|
655
|
+
body: UrlAsyncModerationResponseBody,
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
exports.UrlAsyncModerationResponse = UrlAsyncModerationResponse;
|
|
542
660
|
class VideoModerationRequest extends $tea.Model {
|
|
543
661
|
constructor(map) {
|
|
544
662
|
super(map);
|
|
@@ -1177,6 +1295,64 @@ class DescribeUploadTokenResponseBodyData extends $tea.Model {
|
|
|
1177
1295
|
}
|
|
1178
1296
|
}
|
|
1179
1297
|
exports.DescribeUploadTokenResponseBodyData = DescribeUploadTokenResponseBodyData;
|
|
1298
|
+
class DescribeUrlModerationResultResponseBodyDataExtraInfo extends $tea.Model {
|
|
1299
|
+
constructor(map) {
|
|
1300
|
+
super(map);
|
|
1301
|
+
}
|
|
1302
|
+
static names() {
|
|
1303
|
+
return {
|
|
1304
|
+
icpNo: 'IcpNo',
|
|
1305
|
+
icpType: 'IcpType',
|
|
1306
|
+
};
|
|
1307
|
+
}
|
|
1308
|
+
static types() {
|
|
1309
|
+
return {
|
|
1310
|
+
icpNo: 'string',
|
|
1311
|
+
icpType: 'string',
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
exports.DescribeUrlModerationResultResponseBodyDataExtraInfo = DescribeUrlModerationResultResponseBodyDataExtraInfo;
|
|
1316
|
+
class DescribeUrlModerationResultResponseBodyDataResult extends $tea.Model {
|
|
1317
|
+
constructor(map) {
|
|
1318
|
+
super(map);
|
|
1319
|
+
}
|
|
1320
|
+
static names() {
|
|
1321
|
+
return {
|
|
1322
|
+
confidence: 'Confidence',
|
|
1323
|
+
label: 'Label',
|
|
1324
|
+
};
|
|
1325
|
+
}
|
|
1326
|
+
static types() {
|
|
1327
|
+
return {
|
|
1328
|
+
confidence: 'number',
|
|
1329
|
+
label: 'string',
|
|
1330
|
+
};
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
exports.DescribeUrlModerationResultResponseBodyDataResult = DescribeUrlModerationResultResponseBodyDataResult;
|
|
1334
|
+
class DescribeUrlModerationResultResponseBodyData extends $tea.Model {
|
|
1335
|
+
constructor(map) {
|
|
1336
|
+
super(map);
|
|
1337
|
+
}
|
|
1338
|
+
static names() {
|
|
1339
|
+
return {
|
|
1340
|
+
dataId: 'DataId',
|
|
1341
|
+
extraInfo: 'ExtraInfo',
|
|
1342
|
+
reqId: 'ReqId',
|
|
1343
|
+
result: 'Result',
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
static types() {
|
|
1347
|
+
return {
|
|
1348
|
+
dataId: 'string',
|
|
1349
|
+
extraInfo: DescribeUrlModerationResultResponseBodyDataExtraInfo,
|
|
1350
|
+
reqId: 'string',
|
|
1351
|
+
result: { 'type': 'array', 'itemType': DescribeUrlModerationResultResponseBodyDataResult },
|
|
1352
|
+
};
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
exports.DescribeUrlModerationResultResponseBodyData = DescribeUrlModerationResultResponseBodyData;
|
|
1180
1356
|
class FileModerationResponseBodyData extends $tea.Model {
|
|
1181
1357
|
constructor(map) {
|
|
1182
1358
|
super(map);
|
|
@@ -1345,6 +1521,24 @@ class TextModerationPlusResponseBodyData extends $tea.Model {
|
|
|
1345
1521
|
}
|
|
1346
1522
|
}
|
|
1347
1523
|
exports.TextModerationPlusResponseBodyData = TextModerationPlusResponseBodyData;
|
|
1524
|
+
class UrlAsyncModerationResponseBodyData extends $tea.Model {
|
|
1525
|
+
constructor(map) {
|
|
1526
|
+
super(map);
|
|
1527
|
+
}
|
|
1528
|
+
static names() {
|
|
1529
|
+
return {
|
|
1530
|
+
dataId: 'DataId',
|
|
1531
|
+
reqId: 'ReqId',
|
|
1532
|
+
};
|
|
1533
|
+
}
|
|
1534
|
+
static types() {
|
|
1535
|
+
return {
|
|
1536
|
+
dataId: 'string',
|
|
1537
|
+
reqId: 'string',
|
|
1538
|
+
};
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
exports.UrlAsyncModerationResponseBodyData = UrlAsyncModerationResponseBodyData;
|
|
1348
1542
|
class VideoModerationResponseBodyData extends $tea.Model {
|
|
1349
1543
|
constructor(map) {
|
|
1350
1544
|
super(map);
|
|
@@ -1766,6 +1960,32 @@ class Client extends openapi_client_1.default {
|
|
|
1766
1960
|
let runtime = new $Util.RuntimeOptions({});
|
|
1767
1961
|
return await this.describeUploadTokenWithOptions(runtime);
|
|
1768
1962
|
}
|
|
1963
|
+
async describeUrlModerationResultWithOptions(request, runtime) {
|
|
1964
|
+
tea_util_1.default.validateModel(request);
|
|
1965
|
+
let body = {};
|
|
1966
|
+
if (!tea_util_1.default.isUnset(request.reqId)) {
|
|
1967
|
+
body["ReqId"] = request.reqId;
|
|
1968
|
+
}
|
|
1969
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1970
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1971
|
+
});
|
|
1972
|
+
let params = new $OpenApi.Params({
|
|
1973
|
+
action: "DescribeUrlModerationResult",
|
|
1974
|
+
version: "2022-03-02",
|
|
1975
|
+
protocol: "HTTPS",
|
|
1976
|
+
pathname: "/",
|
|
1977
|
+
method: "POST",
|
|
1978
|
+
authType: "AK",
|
|
1979
|
+
style: "RPC",
|
|
1980
|
+
reqBodyType: "formData",
|
|
1981
|
+
bodyType: "json",
|
|
1982
|
+
});
|
|
1983
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeUrlModerationResultResponse({}));
|
|
1984
|
+
}
|
|
1985
|
+
async describeUrlModerationResult(request) {
|
|
1986
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1987
|
+
return await this.describeUrlModerationResultWithOptions(request, runtime);
|
|
1988
|
+
}
|
|
1769
1989
|
async fileModerationWithOptions(request, runtime) {
|
|
1770
1990
|
tea_util_1.default.validateModel(request);
|
|
1771
1991
|
let body = {};
|
|
@@ -1911,6 +2131,35 @@ class Client extends openapi_client_1.default {
|
|
|
1911
2131
|
let runtime = new $Util.RuntimeOptions({});
|
|
1912
2132
|
return await this.textModerationPlusWithOptions(request, runtime);
|
|
1913
2133
|
}
|
|
2134
|
+
async urlAsyncModerationWithOptions(request, runtime) {
|
|
2135
|
+
tea_util_1.default.validateModel(request);
|
|
2136
|
+
let query = {};
|
|
2137
|
+
if (!tea_util_1.default.isUnset(request.service)) {
|
|
2138
|
+
query["Service"] = request.service;
|
|
2139
|
+
}
|
|
2140
|
+
if (!tea_util_1.default.isUnset(request.serviceParameters)) {
|
|
2141
|
+
query["ServiceParameters"] = request.serviceParameters;
|
|
2142
|
+
}
|
|
2143
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2144
|
+
query: openapi_util_1.default.query(query),
|
|
2145
|
+
});
|
|
2146
|
+
let params = new $OpenApi.Params({
|
|
2147
|
+
action: "UrlAsyncModeration",
|
|
2148
|
+
version: "2022-03-02",
|
|
2149
|
+
protocol: "HTTPS",
|
|
2150
|
+
pathname: "/",
|
|
2151
|
+
method: "POST",
|
|
2152
|
+
authType: "AK",
|
|
2153
|
+
style: "RPC",
|
|
2154
|
+
reqBodyType: "formData",
|
|
2155
|
+
bodyType: "json",
|
|
2156
|
+
});
|
|
2157
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UrlAsyncModerationResponse({}));
|
|
2158
|
+
}
|
|
2159
|
+
async urlAsyncModeration(request) {
|
|
2160
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
2161
|
+
return await this.urlAsyncModerationWithOptions(request, runtime);
|
|
2162
|
+
}
|
|
1914
2163
|
async videoModerationWithOptions(request, runtime) {
|
|
1915
2164
|
tea_util_1.default.validateModel(request);
|
|
1916
2165
|
let body = {};
|