@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.
- package/dist/client.d.ts +30 -0
- package/dist/client.js +84 -0
- package/dist/client.js.map +1 -1
- package/dist/models/MultiModalGuardAsyncRequest.d.ts +23 -0
- package/dist/models/MultiModalGuardAsyncRequest.js +60 -0
- package/dist/models/MultiModalGuardAsyncRequest.js.map +1 -0
- package/dist/models/MultiModalGuardAsyncResponse.d.ts +19 -0
- package/dist/models/MultiModalGuardAsyncResponse.js +69 -0
- package/dist/models/MultiModalGuardAsyncResponse.js.map +1 -0
- package/dist/models/MultiModalGuardAsyncResponseBody.d.ts +54 -0
- package/dist/models/MultiModalGuardAsyncResponseBody.js +88 -0
- package/dist/models/MultiModalGuardAsyncResponseBody.js.map +1 -0
- package/dist/models/MultiModalGuardAsyncResultRequest.d.ts +25 -0
- package/dist/models/MultiModalGuardAsyncResultRequest.js +60 -0
- package/dist/models/MultiModalGuardAsyncResultRequest.js.map +1 -0
- package/dist/models/MultiModalGuardAsyncResultResponse.d.ts +19 -0
- package/dist/models/MultiModalGuardAsyncResultResponse.js +69 -0
- package/dist/models/MultiModalGuardAsyncResultResponse.js.map +1 -0
- package/dist/models/MultiModalGuardAsyncResultResponseBody.d.ts +301 -0
- package/dist/models/MultiModalGuardAsyncResultResponseBody.js +326 -0
- package/dist/models/MultiModalGuardAsyncResultResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +16 -0
- package/dist/models/model.js +36 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +92 -0
- package/src/models/MultiModalGuardAsyncRequest.ts +38 -0
- package/src/models/MultiModalGuardAsyncResponse.ts +40 -0
- package/src/models/MultiModalGuardAsyncResponseBody.ts +88 -0
- package/src/models/MultiModalGuardAsyncResultRequest.ts +40 -0
- package/src/models/MultiModalGuardAsyncResultResponse.ts +40 -0
- package/src/models/MultiModalGuardAsyncResultResponseBody.ts +501 -0
- package/src/models/model.ts +16 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class MultiModalGuardAsyncRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* baselineCheck
|
|
9
|
+
*/
|
|
10
|
+
service?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* {"url": "https://talesofai.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}
|
|
14
|
+
*/
|
|
15
|
+
serviceParameters?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
service: 'Service',
|
|
19
|
+
serviceParameters: 'ServiceParameters',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
service: 'string',
|
|
26
|
+
serviceParameters: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { MultiModalGuardAsyncResponseBody } from "./MultiModalGuardAsyncResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class MultiModalGuardAsyncResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: MultiModalGuardAsyncResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: MultiModalGuardAsyncResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class MultiModalGuardAsyncResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* dataIdxxx
|
|
9
|
+
*/
|
|
10
|
+
dataId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* au_f_xxxxx
|
|
14
|
+
*/
|
|
15
|
+
taskId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
dataId: 'DataId',
|
|
19
|
+
taskId: 'TaskId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
dataId: 'string',
|
|
26
|
+
taskId: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class MultiModalGuardAsyncResponseBody extends $dara.Model {
|
|
40
|
+
/**
|
|
41
|
+
* @example
|
|
42
|
+
* 200
|
|
43
|
+
*/
|
|
44
|
+
code?: number;
|
|
45
|
+
data?: MultiModalGuardAsyncResponseBodyData;
|
|
46
|
+
/**
|
|
47
|
+
* @example
|
|
48
|
+
* OK
|
|
49
|
+
*/
|
|
50
|
+
message?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @remarks
|
|
53
|
+
* Id of the request
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****
|
|
57
|
+
*/
|
|
58
|
+
requestId?: string;
|
|
59
|
+
static names(): { [key: string]: string } {
|
|
60
|
+
return {
|
|
61
|
+
code: 'Code',
|
|
62
|
+
data: 'Data',
|
|
63
|
+
message: 'Message',
|
|
64
|
+
requestId: 'RequestId',
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
static types(): { [key: string]: any } {
|
|
69
|
+
return {
|
|
70
|
+
code: 'number',
|
|
71
|
+
data: MultiModalGuardAsyncResponseBodyData,
|
|
72
|
+
message: 'string',
|
|
73
|
+
requestId: 'string',
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
validate() {
|
|
78
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
79
|
+
(this.data as any).validate();
|
|
80
|
+
}
|
|
81
|
+
super.validate();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
constructor(map?: { [key: string]: any }) {
|
|
85
|
+
super(map);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class MultiModalGuardAsyncResultRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* audio_security_check
|
|
9
|
+
*/
|
|
10
|
+
service?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* {
|
|
14
|
+
* "url": "https://xxx.mp4"
|
|
15
|
+
* }
|
|
16
|
+
*/
|
|
17
|
+
serviceParameters?: string;
|
|
18
|
+
static names(): { [key: string]: string } {
|
|
19
|
+
return {
|
|
20
|
+
service: 'Service',
|
|
21
|
+
serviceParameters: 'ServiceParameters',
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static types(): { [key: string]: any } {
|
|
26
|
+
return {
|
|
27
|
+
service: 'string',
|
|
28
|
+
serviceParameters: 'string',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
validate() {
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { MultiModalGuardAsyncResultResponseBody } from "./MultiModalGuardAsyncResultResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class MultiModalGuardAsyncResultResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: MultiModalGuardAsyncResultResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: MultiModalGuardAsyncResultResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|