@alicloud/green20220302 3.2.4 → 3.3.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.
Files changed (33) hide show
  1. package/dist/client.d.ts +30 -0
  2. package/dist/client.js +84 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/MultiModalGuardAsyncRequest.d.ts +23 -0
  5. package/dist/models/MultiModalGuardAsyncRequest.js +60 -0
  6. package/dist/models/MultiModalGuardAsyncRequest.js.map +1 -0
  7. package/dist/models/MultiModalGuardAsyncResponse.d.ts +19 -0
  8. package/dist/models/MultiModalGuardAsyncResponse.js +69 -0
  9. package/dist/models/MultiModalGuardAsyncResponse.js.map +1 -0
  10. package/dist/models/MultiModalGuardAsyncResponseBody.d.ts +54 -0
  11. package/dist/models/MultiModalGuardAsyncResponseBody.js +88 -0
  12. package/dist/models/MultiModalGuardAsyncResponseBody.js.map +1 -0
  13. package/dist/models/MultiModalGuardAsyncResultRequest.d.ts +25 -0
  14. package/dist/models/MultiModalGuardAsyncResultRequest.js +60 -0
  15. package/dist/models/MultiModalGuardAsyncResultRequest.js.map +1 -0
  16. package/dist/models/MultiModalGuardAsyncResultResponse.d.ts +19 -0
  17. package/dist/models/MultiModalGuardAsyncResultResponse.js +69 -0
  18. package/dist/models/MultiModalGuardAsyncResultResponse.js.map +1 -0
  19. package/dist/models/MultiModalGuardAsyncResultResponseBody.d.ts +301 -0
  20. package/dist/models/MultiModalGuardAsyncResultResponseBody.js +326 -0
  21. package/dist/models/MultiModalGuardAsyncResultResponseBody.js.map +1 -0
  22. package/dist/models/model.d.ts +16 -0
  23. package/dist/models/model.js +36 -4
  24. package/dist/models/model.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/client.ts +92 -0
  27. package/src/models/MultiModalGuardAsyncRequest.ts +38 -0
  28. package/src/models/MultiModalGuardAsyncResponse.ts +40 -0
  29. package/src/models/MultiModalGuardAsyncResponseBody.ts +88 -0
  30. package/src/models/MultiModalGuardAsyncResultRequest.ts +40 -0
  31. package/src/models/MultiModalGuardAsyncResultResponse.ts +40 -0
  32. package/src/models/MultiModalGuardAsyncResultResponseBody.ts +501 -0
  33. package/src/models/model.ts +16 -0
@@ -0,0 +1,501 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class MultiModalGuardAsyncResultResponseBodyDataAudioResultSliceDetailsDetailResult extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 90
9
+ */
10
+ confidence?: number;
11
+ description?: string;
12
+ /**
13
+ * @example
14
+ * {}
15
+ */
16
+ ext?: any;
17
+ /**
18
+ * @example
19
+ * drug
20
+ */
21
+ label?: string;
22
+ /**
23
+ * @example
24
+ * high
25
+ */
26
+ level?: string;
27
+ static names(): { [key: string]: string } {
28
+ return {
29
+ confidence: 'Confidence',
30
+ description: 'Description',
31
+ ext: 'Ext',
32
+ label: 'Label',
33
+ level: 'Level',
34
+ };
35
+ }
36
+
37
+ static types(): { [key: string]: any } {
38
+ return {
39
+ confidence: 'number',
40
+ description: 'string',
41
+ ext: 'any',
42
+ label: 'string',
43
+ level: 'string',
44
+ };
45
+ }
46
+
47
+ validate() {
48
+ super.validate();
49
+ }
50
+
51
+ constructor(map?: { [key: string]: any }) {
52
+ super(map);
53
+ }
54
+ }
55
+
56
+ export class MultiModalGuardAsyncResultResponseBodyDataAudioResultSliceDetailsDetail extends $dara.Model {
57
+ /**
58
+ * @example
59
+ * high
60
+ */
61
+ level?: string;
62
+ result?: MultiModalGuardAsyncResultResponseBodyDataAudioResultSliceDetailsDetailResult[];
63
+ /**
64
+ * @example
65
+ * block
66
+ */
67
+ suggestion?: string;
68
+ /**
69
+ * @example
70
+ * contentModeration
71
+ */
72
+ type?: string;
73
+ static names(): { [key: string]: string } {
74
+ return {
75
+ level: 'Level',
76
+ result: 'Result',
77
+ suggestion: 'Suggestion',
78
+ type: 'Type',
79
+ };
80
+ }
81
+
82
+ static types(): { [key: string]: any } {
83
+ return {
84
+ level: 'string',
85
+ result: { 'type': 'array', 'itemType': MultiModalGuardAsyncResultResponseBodyDataAudioResultSliceDetailsDetailResult },
86
+ suggestion: 'string',
87
+ type: 'string',
88
+ };
89
+ }
90
+
91
+ validate() {
92
+ if(Array.isArray(this.result)) {
93
+ $dara.Model.validateArray(this.result);
94
+ }
95
+ super.validate();
96
+ }
97
+
98
+ constructor(map?: { [key: string]: any }) {
99
+ super(map);
100
+ }
101
+ }
102
+
103
+ export class MultiModalGuardAsyncResultResponseBodyDataAudioResultSliceDetails extends $dara.Model {
104
+ detail?: MultiModalGuardAsyncResultResponseBodyDataAudioResultSliceDetailsDetail[];
105
+ /**
106
+ * @example
107
+ * 30
108
+ */
109
+ endTime?: number;
110
+ /**
111
+ * @example
112
+ * 0
113
+ */
114
+ startTime?: number;
115
+ /**
116
+ * @example
117
+ * block
118
+ */
119
+ suggestion?: string;
120
+ text?: string;
121
+ /**
122
+ * @example
123
+ * http://xxxx.abc.wav
124
+ */
125
+ url?: string;
126
+ static names(): { [key: string]: string } {
127
+ return {
128
+ detail: 'Detail',
129
+ endTime: 'EndTime',
130
+ startTime: 'StartTime',
131
+ suggestion: 'Suggestion',
132
+ text: 'Text',
133
+ url: 'Url',
134
+ };
135
+ }
136
+
137
+ static types(): { [key: string]: any } {
138
+ return {
139
+ detail: { 'type': 'array', 'itemType': MultiModalGuardAsyncResultResponseBodyDataAudioResultSliceDetailsDetail },
140
+ endTime: 'number',
141
+ startTime: 'number',
142
+ suggestion: 'string',
143
+ text: 'string',
144
+ url: 'string',
145
+ };
146
+ }
147
+
148
+ validate() {
149
+ if(Array.isArray(this.detail)) {
150
+ $dara.Model.validateArray(this.detail);
151
+ }
152
+ super.validate();
153
+ }
154
+
155
+ constructor(map?: { [key: string]: any }) {
156
+ super(map);
157
+ }
158
+ }
159
+
160
+ export class MultiModalGuardAsyncResultResponseBodyDataAudioResult extends $dara.Model {
161
+ sliceDetails?: MultiModalGuardAsyncResultResponseBodyDataAudioResultSliceDetails[];
162
+ /**
163
+ * @example
164
+ * 2
165
+ */
166
+ sliceNum?: number;
167
+ /**
168
+ * @example
169
+ * pass
170
+ */
171
+ suggestion?: string;
172
+ static names(): { [key: string]: string } {
173
+ return {
174
+ sliceDetails: 'SliceDetails',
175
+ sliceNum: 'SliceNum',
176
+ suggestion: 'Suggestion',
177
+ };
178
+ }
179
+
180
+ static types(): { [key: string]: any } {
181
+ return {
182
+ sliceDetails: { 'type': 'array', 'itemType': MultiModalGuardAsyncResultResponseBodyDataAudioResultSliceDetails },
183
+ sliceNum: 'number',
184
+ suggestion: 'string',
185
+ };
186
+ }
187
+
188
+ validate() {
189
+ if(Array.isArray(this.sliceDetails)) {
190
+ $dara.Model.validateArray(this.sliceDetails);
191
+ }
192
+ super.validate();
193
+ }
194
+
195
+ constructor(map?: { [key: string]: any }) {
196
+ super(map);
197
+ }
198
+ }
199
+
200
+ export class MultiModalGuardAsyncResultResponseBodyDataFrameResultFramesDetailResult extends $dara.Model {
201
+ /**
202
+ * @example
203
+ * 80
204
+ */
205
+ confidence?: number;
206
+ description?: string;
207
+ /**
208
+ * @example
209
+ * {}
210
+ */
211
+ ext?: any;
212
+ /**
213
+ * @example
214
+ * ad
215
+ */
216
+ label?: string;
217
+ /**
218
+ * @example
219
+ * loose
220
+ */
221
+ level?: string;
222
+ static names(): { [key: string]: string } {
223
+ return {
224
+ confidence: 'Confidence',
225
+ description: 'Description',
226
+ ext: 'Ext',
227
+ label: 'Label',
228
+ level: 'Level',
229
+ };
230
+ }
231
+
232
+ static types(): { [key: string]: any } {
233
+ return {
234
+ confidence: 'number',
235
+ description: 'string',
236
+ ext: 'any',
237
+ label: 'string',
238
+ level: 'string',
239
+ };
240
+ }
241
+
242
+ validate() {
243
+ super.validate();
244
+ }
245
+
246
+ constructor(map?: { [key: string]: any }) {
247
+ super(map);
248
+ }
249
+ }
250
+
251
+ export class MultiModalGuardAsyncResultResponseBodyDataFrameResultFramesDetail extends $dara.Model {
252
+ /**
253
+ * @example
254
+ * low
255
+ */
256
+ level?: string;
257
+ result?: MultiModalGuardAsyncResultResponseBodyDataFrameResultFramesDetailResult[];
258
+ /**
259
+ * @example
260
+ * watch
261
+ */
262
+ suggestion?: string;
263
+ /**
264
+ * @example
265
+ * contentModeration
266
+ */
267
+ type?: string;
268
+ static names(): { [key: string]: string } {
269
+ return {
270
+ level: 'Level',
271
+ result: 'Result',
272
+ suggestion: 'Suggestion',
273
+ type: 'Type',
274
+ };
275
+ }
276
+
277
+ static types(): { [key: string]: any } {
278
+ return {
279
+ level: 'string',
280
+ result: { 'type': 'array', 'itemType': MultiModalGuardAsyncResultResponseBodyDataFrameResultFramesDetailResult },
281
+ suggestion: 'string',
282
+ type: 'string',
283
+ };
284
+ }
285
+
286
+ validate() {
287
+ if(Array.isArray(this.result)) {
288
+ $dara.Model.validateArray(this.result);
289
+ }
290
+ super.validate();
291
+ }
292
+
293
+ constructor(map?: { [key: string]: any }) {
294
+ super(map);
295
+ }
296
+ }
297
+
298
+ export class MultiModalGuardAsyncResultResponseBodyDataFrameResultFrames extends $dara.Model {
299
+ detail?: MultiModalGuardAsyncResultResponseBodyDataFrameResultFramesDetail[];
300
+ /**
301
+ * @example
302
+ * 1.5
303
+ */
304
+ offset?: number;
305
+ /**
306
+ * @example
307
+ * block
308
+ */
309
+ suggestion?: string;
310
+ /**
311
+ * @example
312
+ * 1684559739000
313
+ */
314
+ timestamp?: number;
315
+ /**
316
+ * @example
317
+ * https://xxx.jpeg
318
+ */
319
+ url?: string;
320
+ static names(): { [key: string]: string } {
321
+ return {
322
+ detail: 'Detail',
323
+ offset: 'Offset',
324
+ suggestion: 'Suggestion',
325
+ timestamp: 'Timestamp',
326
+ url: 'Url',
327
+ };
328
+ }
329
+
330
+ static types(): { [key: string]: any } {
331
+ return {
332
+ detail: { 'type': 'array', 'itemType': MultiModalGuardAsyncResultResponseBodyDataFrameResultFramesDetail },
333
+ offset: 'number',
334
+ suggestion: 'string',
335
+ timestamp: 'number',
336
+ url: 'string',
337
+ };
338
+ }
339
+
340
+ validate() {
341
+ if(Array.isArray(this.detail)) {
342
+ $dara.Model.validateArray(this.detail);
343
+ }
344
+ super.validate();
345
+ }
346
+
347
+ constructor(map?: { [key: string]: any }) {
348
+ super(map);
349
+ }
350
+ }
351
+
352
+ export class MultiModalGuardAsyncResultResponseBodyDataFrameResult extends $dara.Model {
353
+ frames?: MultiModalGuardAsyncResultResponseBodyDataFrameResultFrames[];
354
+ /**
355
+ * @example
356
+ * 2
357
+ */
358
+ sliceNum?: number;
359
+ /**
360
+ * @example
361
+ * pass
362
+ */
363
+ suggestion?: string;
364
+ static names(): { [key: string]: string } {
365
+ return {
366
+ frames: 'Frames',
367
+ sliceNum: 'SliceNum',
368
+ suggestion: 'Suggestion',
369
+ };
370
+ }
371
+
372
+ static types(): { [key: string]: any } {
373
+ return {
374
+ frames: { 'type': 'array', 'itemType': MultiModalGuardAsyncResultResponseBodyDataFrameResultFrames },
375
+ sliceNum: 'number',
376
+ suggestion: 'string',
377
+ };
378
+ }
379
+
380
+ validate() {
381
+ if(Array.isArray(this.frames)) {
382
+ $dara.Model.validateArray(this.frames);
383
+ }
384
+ super.validate();
385
+ }
386
+
387
+ constructor(map?: { [key: string]: any }) {
388
+ super(map);
389
+ }
390
+ }
391
+
392
+ export class MultiModalGuardAsyncResultResponseBodyData extends $dara.Model {
393
+ audioResult?: MultiModalGuardAsyncResultResponseBodyDataAudioResult;
394
+ /**
395
+ * @example
396
+ * data1234
397
+ */
398
+ dataId?: string;
399
+ frameResult?: MultiModalGuardAsyncResultResponseBodyDataFrameResult;
400
+ /**
401
+ * @example
402
+ * liveId
403
+ */
404
+ liveId?: string;
405
+ /**
406
+ * @example
407
+ * pass
408
+ */
409
+ suggestion?: string;
410
+ /**
411
+ * @example
412
+ * vi_f_xxx
413
+ */
414
+ taskId?: string;
415
+ static names(): { [key: string]: string } {
416
+ return {
417
+ audioResult: 'AudioResult',
418
+ dataId: 'DataId',
419
+ frameResult: 'FrameResult',
420
+ liveId: 'LiveId',
421
+ suggestion: 'Suggestion',
422
+ taskId: 'TaskId',
423
+ };
424
+ }
425
+
426
+ static types(): { [key: string]: any } {
427
+ return {
428
+ audioResult: MultiModalGuardAsyncResultResponseBodyDataAudioResult,
429
+ dataId: 'string',
430
+ frameResult: MultiModalGuardAsyncResultResponseBodyDataFrameResult,
431
+ liveId: 'string',
432
+ suggestion: 'string',
433
+ taskId: 'string',
434
+ };
435
+ }
436
+
437
+ validate() {
438
+ if(this.audioResult && typeof (this.audioResult as any).validate === 'function') {
439
+ (this.audioResult as any).validate();
440
+ }
441
+ if(this.frameResult && typeof (this.frameResult as any).validate === 'function') {
442
+ (this.frameResult as any).validate();
443
+ }
444
+ super.validate();
445
+ }
446
+
447
+ constructor(map?: { [key: string]: any }) {
448
+ super(map);
449
+ }
450
+ }
451
+
452
+ export class MultiModalGuardAsyncResultResponseBody extends $dara.Model {
453
+ /**
454
+ * @example
455
+ * 200
456
+ */
457
+ code?: number;
458
+ data?: MultiModalGuardAsyncResultResponseBodyData;
459
+ /**
460
+ * @example
461
+ * SUCCESS
462
+ */
463
+ message?: string;
464
+ /**
465
+ * @remarks
466
+ * Id of the request
467
+ *
468
+ * @example
469
+ * AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****
470
+ */
471
+ requestId?: string;
472
+ static names(): { [key: string]: string } {
473
+ return {
474
+ code: 'Code',
475
+ data: 'Data',
476
+ message: 'Message',
477
+ requestId: 'RequestId',
478
+ };
479
+ }
480
+
481
+ static types(): { [key: string]: any } {
482
+ return {
483
+ code: 'number',
484
+ data: MultiModalGuardAsyncResultResponseBodyData,
485
+ message: 'string',
486
+ requestId: 'string',
487
+ };
488
+ }
489
+
490
+ validate() {
491
+ if(this.data && typeof (this.data as any).validate === 'function') {
492
+ (this.data as any).validate();
493
+ }
494
+ super.validate();
495
+ }
496
+
497
+ constructor(map?: { [key: string]: any }) {
498
+ super(map);
499
+ }
500
+ }
501
+
@@ -83,6 +83,16 @@ export { MultiModalAgentResponseBodyData } from './MultiModalAgentResponseBody';
83
83
  export { MultiModalGuardResponseBodyDataDetailResult } from './MultiModalGuardResponseBody';
84
84
  export { MultiModalGuardResponseBodyDataDetail } from './MultiModalGuardResponseBody';
85
85
  export { MultiModalGuardResponseBodyData } from './MultiModalGuardResponseBody';
86
+ export { MultiModalGuardAsyncResponseBodyData } from './MultiModalGuardAsyncResponseBody';
87
+ export { MultiModalGuardAsyncResultResponseBodyDataAudioResultSliceDetailsDetailResult } from './MultiModalGuardAsyncResultResponseBody';
88
+ export { MultiModalGuardAsyncResultResponseBodyDataAudioResultSliceDetailsDetail } from './MultiModalGuardAsyncResultResponseBody';
89
+ export { MultiModalGuardAsyncResultResponseBodyDataAudioResultSliceDetails } from './MultiModalGuardAsyncResultResponseBody';
90
+ export { MultiModalGuardAsyncResultResponseBodyDataAudioResult } from './MultiModalGuardAsyncResultResponseBody';
91
+ export { MultiModalGuardAsyncResultResponseBodyDataFrameResultFramesDetailResult } from './MultiModalGuardAsyncResultResponseBody';
92
+ export { MultiModalGuardAsyncResultResponseBodyDataFrameResultFramesDetail } from './MultiModalGuardAsyncResultResponseBody';
93
+ export { MultiModalGuardAsyncResultResponseBodyDataFrameResultFrames } from './MultiModalGuardAsyncResultResponseBody';
94
+ export { MultiModalGuardAsyncResultResponseBodyDataFrameResult } from './MultiModalGuardAsyncResultResponseBody';
95
+ export { MultiModalGuardAsyncResultResponseBodyData } from './MultiModalGuardAsyncResultResponseBody';
86
96
  export { MultiModalGuardForBase64ResponseBodyDataDetailResult } from './MultiModalGuardForBase64responseBody';
87
97
  export { MultiModalGuardForBase64ResponseBodyDataDetail } from './MultiModalGuardForBase64responseBody';
88
98
  export { MultiModalGuardForBase64ResponseBodyData } from './MultiModalGuardForBase64responseBody';
@@ -173,6 +183,12 @@ export { MultiModalAgentResponse } from './MultiModalAgentResponse';
173
183
  export { MultiModalGuardRequest } from './MultiModalGuardRequest';
174
184
  export { MultiModalGuardResponseBody } from './MultiModalGuardResponseBody';
175
185
  export { MultiModalGuardResponse } from './MultiModalGuardResponse';
186
+ export { MultiModalGuardAsyncRequest } from './MultiModalGuardAsyncRequest';
187
+ export { MultiModalGuardAsyncResponseBody } from './MultiModalGuardAsyncResponseBody';
188
+ export { MultiModalGuardAsyncResponse } from './MultiModalGuardAsyncResponse';
189
+ export { MultiModalGuardAsyncResultRequest } from './MultiModalGuardAsyncResultRequest';
190
+ export { MultiModalGuardAsyncResultResponseBody } from './MultiModalGuardAsyncResultResponseBody';
191
+ export { MultiModalGuardAsyncResultResponse } from './MultiModalGuardAsyncResultResponse';
176
192
  export { MultiModalGuardForBase64Request } from './MultiModalGuardForBase64request';
177
193
  export { MultiModalGuardForBase64ResponseBody } from './MultiModalGuardForBase64responseBody';
178
194
  export { MultiModalGuardForBase64Response } from './MultiModalGuardForBase64response';