@alicloud/green20220302 1.0.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/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ English | [简体中文](README-CN.md)
2
+ ![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)
3
+
4
+ # Alibaba Cloud Green SDK for NodeJS
5
+
6
+ ## Installation
7
+ If you use `npm` to manage your dependence, you can use the following command:
8
+
9
+ ```sh
10
+ npm install @alicloud/green20220302 -S
11
+ ```
12
+
13
+ ## Issues
14
+ [Opening an Issue](https://github.com/aliyun/alibabacloud-typescript-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
15
+
16
+ ## Usage
17
+ [Usage Document](https://github.com/aliyun/alibabacloud-typescript-sdk/blob/master/docs/Usage-EN.md#quick-examples)
18
+
19
+ ## References
20
+ * [Latest Release](https://github.com/aliyun/alibabacloud-typescript-sdk/)
21
+
22
+ ## License
23
+ [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
24
+
25
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
@@ -0,0 +1,432 @@
1
+ /**
2
+ *
3
+ */
4
+ import * as $Util from '@alicloud/tea-util';
5
+ import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
+ import * as $tea from '@alicloud/tea-typescript';
7
+ export declare class DescribeImageResultExtRequest extends $tea.Model {
8
+ infoType?: string;
9
+ reqId?: 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 DescribeImageResultExtResponseBody extends $tea.Model {
21
+ code?: number;
22
+ data?: DescribeImageResultExtResponseBodyData;
23
+ msg?: 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 DescribeImageResultExtResponse extends $tea.Model {
36
+ headers: {
37
+ [key: string]: string;
38
+ };
39
+ statusCode: number;
40
+ body: DescribeImageResultExtResponseBody;
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
+ }
51
+ export declare class ImageModerationRequest extends $tea.Model {
52
+ service?: string;
53
+ serviceParameters?: string;
54
+ static names(): {
55
+ [key: string]: string;
56
+ };
57
+ static types(): {
58
+ [key: string]: any;
59
+ };
60
+ constructor(map?: {
61
+ [key: string]: any;
62
+ });
63
+ }
64
+ export declare class ImageModerationResponseBody extends $tea.Model {
65
+ code?: number;
66
+ data?: ImageModerationResponseBodyData;
67
+ msg?: string;
68
+ requestId?: string;
69
+ static names(): {
70
+ [key: string]: string;
71
+ };
72
+ static types(): {
73
+ [key: string]: any;
74
+ };
75
+ constructor(map?: {
76
+ [key: string]: any;
77
+ });
78
+ }
79
+ export declare class ImageModerationResponse extends $tea.Model {
80
+ headers: {
81
+ [key: string]: string;
82
+ };
83
+ statusCode: number;
84
+ body: ImageModerationResponseBody;
85
+ static names(): {
86
+ [key: string]: string;
87
+ };
88
+ static types(): {
89
+ [key: string]: any;
90
+ };
91
+ constructor(map?: {
92
+ [key: string]: any;
93
+ });
94
+ }
95
+ export declare class TextModerationRequest extends $tea.Model {
96
+ service?: string;
97
+ serviceParameters?: string;
98
+ static names(): {
99
+ [key: string]: string;
100
+ };
101
+ static types(): {
102
+ [key: string]: any;
103
+ };
104
+ constructor(map?: {
105
+ [key: string]: any;
106
+ });
107
+ }
108
+ export declare class TextModerationResponseBody extends $tea.Model {
109
+ code?: number;
110
+ data?: TextModerationResponseBodyData;
111
+ message?: string;
112
+ requestId?: string;
113
+ static names(): {
114
+ [key: string]: string;
115
+ };
116
+ static types(): {
117
+ [key: string]: any;
118
+ };
119
+ constructor(map?: {
120
+ [key: string]: any;
121
+ });
122
+ }
123
+ export declare class TextModerationResponse extends $tea.Model {
124
+ headers: {
125
+ [key: string]: string;
126
+ };
127
+ statusCode: number;
128
+ body: TextModerationResponseBody;
129
+ static names(): {
130
+ [key: string]: string;
131
+ };
132
+ static types(): {
133
+ [key: string]: any;
134
+ };
135
+ constructor(map?: {
136
+ [key: string]: any;
137
+ });
138
+ }
139
+ export declare class VoiceModerationRequest extends $tea.Model {
140
+ service?: string;
141
+ serviceParameters?: string;
142
+ static names(): {
143
+ [key: string]: string;
144
+ };
145
+ static types(): {
146
+ [key: string]: any;
147
+ };
148
+ constructor(map?: {
149
+ [key: string]: any;
150
+ });
151
+ }
152
+ export declare class VoiceModerationResponseBody extends $tea.Model {
153
+ code?: number;
154
+ data?: VoiceModerationResponseBodyData;
155
+ message?: string;
156
+ requestId?: string;
157
+ static names(): {
158
+ [key: string]: string;
159
+ };
160
+ static types(): {
161
+ [key: string]: any;
162
+ };
163
+ constructor(map?: {
164
+ [key: string]: any;
165
+ });
166
+ }
167
+ export declare class VoiceModerationResponse extends $tea.Model {
168
+ headers: {
169
+ [key: string]: string;
170
+ };
171
+ statusCode: number;
172
+ body: VoiceModerationResponseBody;
173
+ static names(): {
174
+ [key: string]: string;
175
+ };
176
+ static types(): {
177
+ [key: string]: any;
178
+ };
179
+ constructor(map?: {
180
+ [key: string]: any;
181
+ });
182
+ }
183
+ export declare class VoiceModerationCancelRequest extends $tea.Model {
184
+ service?: string;
185
+ serviceParameters?: 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 VoiceModerationCancelResponseBody extends $tea.Model {
197
+ code?: number;
198
+ message?: string;
199
+ requestId?: string;
200
+ static names(): {
201
+ [key: string]: string;
202
+ };
203
+ static types(): {
204
+ [key: string]: any;
205
+ };
206
+ constructor(map?: {
207
+ [key: string]: any;
208
+ });
209
+ }
210
+ export declare class VoiceModerationCancelResponse extends $tea.Model {
211
+ headers: {
212
+ [key: string]: string;
213
+ };
214
+ statusCode: number;
215
+ body: VoiceModerationCancelResponseBody;
216
+ static names(): {
217
+ [key: string]: string;
218
+ };
219
+ static types(): {
220
+ [key: string]: any;
221
+ };
222
+ constructor(map?: {
223
+ [key: string]: any;
224
+ });
225
+ }
226
+ export declare class VoiceModerationResultRequest extends $tea.Model {
227
+ service?: string;
228
+ serviceParameters?: string;
229
+ static names(): {
230
+ [key: string]: string;
231
+ };
232
+ static types(): {
233
+ [key: string]: any;
234
+ };
235
+ constructor(map?: {
236
+ [key: string]: any;
237
+ });
238
+ }
239
+ export declare class VoiceModerationResultResponseBody extends $tea.Model {
240
+ code?: number;
241
+ data?: VoiceModerationResultResponseBodyData;
242
+ message?: string;
243
+ requestId?: string;
244
+ static names(): {
245
+ [key: string]: string;
246
+ };
247
+ static types(): {
248
+ [key: string]: any;
249
+ };
250
+ constructor(map?: {
251
+ [key: string]: any;
252
+ });
253
+ }
254
+ export declare class VoiceModerationResultResponse extends $tea.Model {
255
+ headers: {
256
+ [key: string]: string;
257
+ };
258
+ statusCode: number;
259
+ body: VoiceModerationResultResponseBody;
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 DescribeImageResultExtResponseBodyDataCustomImage extends $tea.Model {
271
+ imageId?: string;
272
+ libId?: string;
273
+ libName?: string;
274
+ static names(): {
275
+ [key: string]: string;
276
+ };
277
+ static types(): {
278
+ [key: string]: any;
279
+ };
280
+ constructor(map?: {
281
+ [key: string]: any;
282
+ });
283
+ }
284
+ export declare class DescribeImageResultExtResponseBodyDataPublicFigure extends $tea.Model {
285
+ figureId?: string;
286
+ static names(): {
287
+ [key: string]: string;
288
+ };
289
+ static types(): {
290
+ [key: string]: any;
291
+ };
292
+ constructor(map?: {
293
+ [key: string]: any;
294
+ });
295
+ }
296
+ export declare class DescribeImageResultExtResponseBodyDataTextInImage extends $tea.Model {
297
+ ocrDatas?: string[];
298
+ static names(): {
299
+ [key: string]: string;
300
+ };
301
+ static types(): {
302
+ [key: string]: any;
303
+ };
304
+ constructor(map?: {
305
+ [key: string]: any;
306
+ });
307
+ }
308
+ export declare class DescribeImageResultExtResponseBodyData extends $tea.Model {
309
+ customImage?: DescribeImageResultExtResponseBodyDataCustomImage[];
310
+ publicFigure?: DescribeImageResultExtResponseBodyDataPublicFigure[];
311
+ textInImage?: DescribeImageResultExtResponseBodyDataTextInImage;
312
+ static names(): {
313
+ [key: string]: string;
314
+ };
315
+ static types(): {
316
+ [key: string]: any;
317
+ };
318
+ constructor(map?: {
319
+ [key: string]: any;
320
+ });
321
+ }
322
+ export declare class ImageModerationResponseBodyDataResult extends $tea.Model {
323
+ confidence?: number;
324
+ label?: string;
325
+ static names(): {
326
+ [key: string]: string;
327
+ };
328
+ static types(): {
329
+ [key: string]: any;
330
+ };
331
+ constructor(map?: {
332
+ [key: string]: any;
333
+ });
334
+ }
335
+ export declare class ImageModerationResponseBodyData extends $tea.Model {
336
+ dataId?: string;
337
+ result?: ImageModerationResponseBodyDataResult[];
338
+ static names(): {
339
+ [key: string]: string;
340
+ };
341
+ static types(): {
342
+ [key: string]: any;
343
+ };
344
+ constructor(map?: {
345
+ [key: string]: any;
346
+ });
347
+ }
348
+ export declare class TextModerationResponseBodyData extends $tea.Model {
349
+ accountId?: string;
350
+ deviceId?: string;
351
+ labels?: string;
352
+ reason?: string;
353
+ static names(): {
354
+ [key: string]: string;
355
+ };
356
+ static types(): {
357
+ [key: string]: any;
358
+ };
359
+ constructor(map?: {
360
+ [key: string]: any;
361
+ });
362
+ }
363
+ export declare class VoiceModerationResponseBodyData extends $tea.Model {
364
+ taskId?: string;
365
+ static names(): {
366
+ [key: string]: string;
367
+ };
368
+ static types(): {
369
+ [key: string]: any;
370
+ };
371
+ constructor(map?: {
372
+ [key: string]: any;
373
+ });
374
+ }
375
+ export declare class VoiceModerationResultResponseBodyDataSliceDetails extends $tea.Model {
376
+ endTime?: number;
377
+ endTimestamp?: number;
378
+ extend?: string;
379
+ labels?: string;
380
+ originAlgoResult?: {
381
+ [key: string]: any;
382
+ };
383
+ riskTips?: string;
384
+ riskWords?: string;
385
+ score?: number;
386
+ startTime?: number;
387
+ startTimestamp?: number;
388
+ text?: string;
389
+ url?: string;
390
+ static names(): {
391
+ [key: string]: string;
392
+ };
393
+ static types(): {
394
+ [key: string]: any;
395
+ };
396
+ constructor(map?: {
397
+ [key: string]: any;
398
+ });
399
+ }
400
+ export declare class VoiceModerationResultResponseBodyData extends $tea.Model {
401
+ liveId?: string;
402
+ sliceDetails?: VoiceModerationResultResponseBodyDataSliceDetails[];
403
+ taskId?: string;
404
+ url?: string;
405
+ static names(): {
406
+ [key: string]: string;
407
+ };
408
+ static types(): {
409
+ [key: string]: any;
410
+ };
411
+ constructor(map?: {
412
+ [key: string]: any;
413
+ });
414
+ }
415
+ export default class Client extends OpenApi {
416
+ constructor(config: $OpenApi.Config);
417
+ getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
418
+ [key: string]: string;
419
+ }, endpoint: string): string;
420
+ describeImageResultExtWithOptions(request: DescribeImageResultExtRequest, runtime: $Util.RuntimeOptions): Promise<DescribeImageResultExtResponse>;
421
+ describeImageResultExt(request: DescribeImageResultExtRequest): Promise<DescribeImageResultExtResponse>;
422
+ imageModerationWithOptions(request: ImageModerationRequest, runtime: $Util.RuntimeOptions): Promise<ImageModerationResponse>;
423
+ imageModeration(request: ImageModerationRequest): Promise<ImageModerationResponse>;
424
+ textModerationWithOptions(request: TextModerationRequest, runtime: $Util.RuntimeOptions): Promise<TextModerationResponse>;
425
+ textModeration(request: TextModerationRequest): Promise<TextModerationResponse>;
426
+ voiceModerationWithOptions(request: VoiceModerationRequest, runtime: $Util.RuntimeOptions): Promise<VoiceModerationResponse>;
427
+ voiceModeration(request: VoiceModerationRequest): Promise<VoiceModerationResponse>;
428
+ voiceModerationCancelWithOptions(request: VoiceModerationCancelRequest, runtime: $Util.RuntimeOptions): Promise<VoiceModerationCancelResponse>;
429
+ voiceModerationCancel(request: VoiceModerationCancelRequest): Promise<VoiceModerationCancelResponse>;
430
+ voiceModerationResultWithOptions(request: VoiceModerationResultRequest, runtime: $Util.RuntimeOptions): Promise<VoiceModerationResultResponse>;
431
+ voiceModerationResult(request: VoiceModerationResultRequest): Promise<VoiceModerationResultResponse>;
432
+ }