@alicloud/aidge20260428 4.0.0 → 5.1.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 +165 -49
- package/dist/client.js +248 -49
- package/dist/client.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +2 -2
- package/dist/models/DocumentTranslateResponseBody.d.ts +1 -1
- package/dist/models/ImageTranslationPlusRequest.d.ts +75 -0
- package/dist/models/ImageTranslationPlusRequest.js +70 -0
- package/dist/models/ImageTranslationPlusRequest.js.map +1 -0
- package/dist/models/ImageTranslationPlusResponse.d.ts +19 -0
- package/dist/models/ImageTranslationPlusResponse.js +69 -0
- package/dist/models/ImageTranslationPlusResponse.js.map +1 -0
- package/dist/models/ImageTranslationPlusResponseBody.d.ts +72 -0
- package/dist/models/ImageTranslationPlusResponseBody.js +88 -0
- package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -0
- package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +1 -1
- package/dist/models/QueryAsyncTaskResultResponseBody.js +1 -1
- package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -1
- package/dist/models/VideoGenerationRequest.d.ts +107 -0
- package/dist/models/VideoGenerationRequest.js +144 -0
- package/dist/models/VideoGenerationRequest.js.map +1 -0
- package/dist/models/VideoGenerationResponse.d.ts +19 -0
- package/dist/models/VideoGenerationResponse.js +69 -0
- package/dist/models/VideoGenerationResponse.js.map +1 -0
- package/dist/models/VideoGenerationResponseBody.d.ts +54 -0
- package/dist/models/VideoGenerationResponseBody.js +93 -0
- package/dist/models/VideoGenerationResponseBody.js.map +1 -0
- package/dist/models/VideoGenerationShrinkRequest.d.ts +24 -0
- package/dist/models/VideoGenerationShrinkRequest.js +62 -0
- package/dist/models/VideoGenerationShrinkRequest.js.map +1 -0
- package/dist/models/VideoTranslationRequest.d.ts +9 -0
- package/dist/models/VideoTranslationRequest.js.map +1 -1
- package/dist/models/VideoTranslationResponseBody.d.ts +19 -0
- package/dist/models/VideoTranslationResponseBody.js.map +1 -1
- package/dist/models/VideoTranslationShrinkRequest.d.ts +9 -0
- package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +12 -0
- package/dist/models/model.js +27 -3
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +266 -50
- package/src/models/DocumentTranslateRequest.ts +2 -2
- package/src/models/DocumentTranslateResponseBody.ts +1 -1
- package/src/models/ImageTranslationPlusRequest.ts +100 -0
- package/src/models/ImageTranslationPlusResponse.ts +40 -0
- package/src/models/ImageTranslationPlusResponseBody.ts +106 -0
- package/src/models/QueryAsyncTaskResultResponseBody.ts +2 -2
- package/src/models/VideoGenerationRequest.ts +177 -0
- package/src/models/VideoGenerationResponse.ts +40 -0
- package/src/models/VideoGenerationResponseBody.ts +91 -0
- package/src/models/VideoGenerationShrinkRequest.ts +41 -0
- package/src/models/VideoTranslationRequest.ts +9 -0
- package/src/models/VideoTranslationResponseBody.ts +19 -0
- package/src/models/VideoTranslationShrinkRequest.ts +9 -0
- package/src/models/model.ts +12 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ImageTranslationPlusResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The asynchronous task ID. Use the queryTaskResult API to poll for results.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* task-abc123
|
|
12
|
+
*/
|
|
13
|
+
taskId?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
taskId: 'TaskId',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
taskId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export class ImageTranslationPlusResponseBody extends $dara.Model {
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The error code. This parameter is not returned if the call is successful.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* 200
|
|
42
|
+
*/
|
|
43
|
+
code?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The submit status of the asynchronous task.
|
|
47
|
+
*/
|
|
48
|
+
data?: ImageTranslationPlusResponseBodyData;
|
|
49
|
+
/**
|
|
50
|
+
* @remarks
|
|
51
|
+
* The error message. This parameter is not returned if the call is successful.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* OK
|
|
55
|
+
*/
|
|
56
|
+
message?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @remarks
|
|
59
|
+
* Id of the request
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
63
|
+
*/
|
|
64
|
+
requestId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* @remarks
|
|
67
|
+
* Indicates whether the call is successful. Valid values:
|
|
68
|
+
* - true: The call is successful.
|
|
69
|
+
* - false: The call failed.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* True
|
|
73
|
+
*/
|
|
74
|
+
success?: boolean;
|
|
75
|
+
static names(): { [key: string]: string } {
|
|
76
|
+
return {
|
|
77
|
+
code: 'Code',
|
|
78
|
+
data: 'Data',
|
|
79
|
+
message: 'Message',
|
|
80
|
+
requestId: 'RequestId',
|
|
81
|
+
success: 'Success',
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
static types(): { [key: string]: any } {
|
|
86
|
+
return {
|
|
87
|
+
code: 'string',
|
|
88
|
+
data: ImageTranslationPlusResponseBodyData,
|
|
89
|
+
message: 'string',
|
|
90
|
+
requestId: 'string',
|
|
91
|
+
success: 'boolean',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
validate() {
|
|
96
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
97
|
+
(this.data as any).validate();
|
|
98
|
+
}
|
|
99
|
+
super.validate();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
constructor(map?: { [key: string]: any }) {
|
|
103
|
+
super(map);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -31,7 +31,7 @@ export class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
|
|
|
31
31
|
* @remarks
|
|
32
32
|
* The usage information.
|
|
33
33
|
*/
|
|
34
|
-
usageMap?: { [key: string]:
|
|
34
|
+
usageMap?: { [key: string]: any };
|
|
35
35
|
static names(): { [key: string]: string } {
|
|
36
36
|
return {
|
|
37
37
|
result: 'Result',
|
|
@@ -46,7 +46,7 @@ export class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
|
|
|
46
46
|
result: 'string',
|
|
47
47
|
status: 'string',
|
|
48
48
|
taskId: 'string',
|
|
49
|
-
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': '
|
|
49
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class VideoGenerationRequestInput extends $dara.Model {
|
|
6
|
+
extra?: { [key: string]: any };
|
|
7
|
+
/**
|
|
8
|
+
* @remarks
|
|
9
|
+
* This parameter is required.
|
|
10
|
+
*/
|
|
11
|
+
images?: string[];
|
|
12
|
+
/**
|
|
13
|
+
* @remarks
|
|
14
|
+
* This parameter is required.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* 2026 New Slimming Women\\"s Summer Dress with Mid-Length Design, High-Quality Waist Definition for a Slender Look
|
|
18
|
+
*/
|
|
19
|
+
title?: string;
|
|
20
|
+
static names(): { [key: string]: string } {
|
|
21
|
+
return {
|
|
22
|
+
extra: 'Extra',
|
|
23
|
+
images: 'Images',
|
|
24
|
+
title: 'Title',
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
static types(): { [key: string]: any } {
|
|
29
|
+
return {
|
|
30
|
+
extra: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
31
|
+
images: { 'type': 'array', 'itemType': 'string' },
|
|
32
|
+
title: 'string',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
validate() {
|
|
37
|
+
if(this.extra) {
|
|
38
|
+
$dara.Model.validateMap(this.extra);
|
|
39
|
+
}
|
|
40
|
+
if(Array.isArray(this.images)) {
|
|
41
|
+
$dara.Model.validateArray(this.images);
|
|
42
|
+
}
|
|
43
|
+
super.validate();
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
constructor(map?: { [key: string]: any }) {
|
|
47
|
+
super(map);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export class VideoGenerationRequestIntent extends $dara.Model {
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* -
|
|
55
|
+
*/
|
|
56
|
+
channel?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @example
|
|
59
|
+
* -
|
|
60
|
+
*/
|
|
61
|
+
goal?: string;
|
|
62
|
+
static names(): { [key: string]: string } {
|
|
63
|
+
return {
|
|
64
|
+
channel: 'Channel',
|
|
65
|
+
goal: 'Goal',
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
static types(): { [key: string]: any } {
|
|
70
|
+
return {
|
|
71
|
+
channel: 'string',
|
|
72
|
+
goal: 'string',
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
validate() {
|
|
77
|
+
super.validate();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
constructor(map?: { [key: string]: any }) {
|
|
81
|
+
super(map);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export class VideoGenerationRequestOutput extends $dara.Model {
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* This parameter is required.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* 10
|
|
92
|
+
*/
|
|
93
|
+
duration?: number;
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* This parameter is required.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* 1080p
|
|
100
|
+
*/
|
|
101
|
+
quality?: string;
|
|
102
|
+
/**
|
|
103
|
+
* @example
|
|
104
|
+
* 9:16
|
|
105
|
+
*/
|
|
106
|
+
ratio?: string;
|
|
107
|
+
static names(): { [key: string]: string } {
|
|
108
|
+
return {
|
|
109
|
+
duration: 'Duration',
|
|
110
|
+
quality: 'Quality',
|
|
111
|
+
ratio: 'Ratio',
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
static types(): { [key: string]: any } {
|
|
116
|
+
return {
|
|
117
|
+
duration: 'number',
|
|
118
|
+
quality: 'string',
|
|
119
|
+
ratio: 'string',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
validate() {
|
|
124
|
+
super.validate();
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
constructor(map?: { [key: string]: any }) {
|
|
128
|
+
super(map);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export class VideoGenerationRequest extends $dara.Model {
|
|
133
|
+
/**
|
|
134
|
+
* @remarks
|
|
135
|
+
* This parameter is required.
|
|
136
|
+
*/
|
|
137
|
+
input?: VideoGenerationRequestInput;
|
|
138
|
+
intent?: VideoGenerationRequestIntent;
|
|
139
|
+
/**
|
|
140
|
+
* @remarks
|
|
141
|
+
* This parameter is required.
|
|
142
|
+
*/
|
|
143
|
+
output?: VideoGenerationRequestOutput;
|
|
144
|
+
static names(): { [key: string]: string } {
|
|
145
|
+
return {
|
|
146
|
+
input: 'Input',
|
|
147
|
+
intent: 'Intent',
|
|
148
|
+
output: 'Output',
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
static types(): { [key: string]: any } {
|
|
153
|
+
return {
|
|
154
|
+
input: VideoGenerationRequestInput,
|
|
155
|
+
intent: VideoGenerationRequestIntent,
|
|
156
|
+
output: VideoGenerationRequestOutput,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
validate() {
|
|
161
|
+
if(this.input && typeof (this.input as any).validate === 'function') {
|
|
162
|
+
(this.input as any).validate();
|
|
163
|
+
}
|
|
164
|
+
if(this.intent && typeof (this.intent as any).validate === 'function') {
|
|
165
|
+
(this.intent as any).validate();
|
|
166
|
+
}
|
|
167
|
+
if(this.output && typeof (this.output as any).validate === 'function') {
|
|
168
|
+
(this.output as any).validate();
|
|
169
|
+
}
|
|
170
|
+
super.validate();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
constructor(map?: { [key: string]: any }) {
|
|
174
|
+
super(map);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { VideoGenerationResponseBody } from "./VideoGenerationResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class VideoGenerationResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: VideoGenerationResponseBody;
|
|
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: VideoGenerationResponseBody,
|
|
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,91 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class VideoGenerationResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 778fa8bd21804828a5d147050e30edac
|
|
9
|
+
*/
|
|
10
|
+
taskId?: string;
|
|
11
|
+
usageMap?: { [key: string]: number };
|
|
12
|
+
static names(): { [key: string]: string } {
|
|
13
|
+
return {
|
|
14
|
+
taskId: 'TaskId',
|
|
15
|
+
usageMap: 'UsageMap',
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static types(): { [key: string]: any } {
|
|
20
|
+
return {
|
|
21
|
+
taskId: 'string',
|
|
22
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.usageMap) {
|
|
28
|
+
$dara.Model.validateMap(this.usageMap);
|
|
29
|
+
}
|
|
30
|
+
super.validate();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
constructor(map?: { [key: string]: any }) {
|
|
34
|
+
super(map);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class VideoGenerationResponseBody extends $dara.Model {
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* success
|
|
42
|
+
*/
|
|
43
|
+
code?: string;
|
|
44
|
+
data?: VideoGenerationResponseBodyData;
|
|
45
|
+
/**
|
|
46
|
+
* @example
|
|
47
|
+
* Success
|
|
48
|
+
*/
|
|
49
|
+
message?: string;
|
|
50
|
+
/**
|
|
51
|
+
* @example
|
|
52
|
+
* 70CBEFDF-BB17-1EB3-8A21-569F3124738F
|
|
53
|
+
*/
|
|
54
|
+
requestId?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @example
|
|
57
|
+
* true
|
|
58
|
+
*/
|
|
59
|
+
success?: boolean;
|
|
60
|
+
static names(): { [key: string]: string } {
|
|
61
|
+
return {
|
|
62
|
+
code: 'Code',
|
|
63
|
+
data: 'Data',
|
|
64
|
+
message: 'Message',
|
|
65
|
+
requestId: 'RequestId',
|
|
66
|
+
success: 'Success',
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
static types(): { [key: string]: any } {
|
|
71
|
+
return {
|
|
72
|
+
code: 'string',
|
|
73
|
+
data: VideoGenerationResponseBodyData,
|
|
74
|
+
message: 'string',
|
|
75
|
+
requestId: 'string',
|
|
76
|
+
success: 'boolean',
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
validate() {
|
|
81
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
82
|
+
(this.data as any).validate();
|
|
83
|
+
}
|
|
84
|
+
super.validate();
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
constructor(map?: { [key: string]: any }) {
|
|
88
|
+
super(map);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class VideoGenerationShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*/
|
|
10
|
+
inputShrink?: string;
|
|
11
|
+
intentShrink?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @remarks
|
|
14
|
+
* This parameter is required.
|
|
15
|
+
*/
|
|
16
|
+
outputShrink?: string;
|
|
17
|
+
static names(): { [key: string]: string } {
|
|
18
|
+
return {
|
|
19
|
+
inputShrink: 'Input',
|
|
20
|
+
intentShrink: 'Intent',
|
|
21
|
+
outputShrink: 'Output',
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static types(): { [key: string]: any } {
|
|
26
|
+
return {
|
|
27
|
+
inputShrink: 'string',
|
|
28
|
+
intentShrink: 'string',
|
|
29
|
+
outputShrink: 'string',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
validate() {
|
|
34
|
+
super.validate();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
constructor(map?: { [key: string]: any }) {
|
|
38
|
+
super(map);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -5,16 +5,23 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class VideoTranslationRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
+
* The array of translation capabilities. Valid values: ["visual"].
|
|
9
|
+
*
|
|
8
10
|
* This parameter is required.
|
|
9
11
|
*/
|
|
10
12
|
capabilities?: string[];
|
|
11
13
|
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* The source language. This parameter is optional. Default value: auto (automatic detection).
|
|
16
|
+
*
|
|
12
17
|
* @example
|
|
13
18
|
* zh
|
|
14
19
|
*/
|
|
15
20
|
sourceLanguage?: string;
|
|
16
21
|
/**
|
|
17
22
|
* @remarks
|
|
23
|
+
* The target language. This parameter is required.
|
|
24
|
+
*
|
|
18
25
|
* This parameter is required.
|
|
19
26
|
*
|
|
20
27
|
* @example
|
|
@@ -23,6 +30,8 @@ export class VideoTranslationRequest extends $dara.Model {
|
|
|
23
30
|
targetLanguage?: string;
|
|
24
31
|
/**
|
|
25
32
|
* @remarks
|
|
33
|
+
* The video URL (MP4/MOV, ≤ 200 MB).
|
|
34
|
+
*
|
|
26
35
|
* This parameter is required.
|
|
27
36
|
*
|
|
28
37
|
* @example
|
|
@@ -4,6 +4,9 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class VideoTranslationResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The asynchronous task ID, used for subsequent queries.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* 0ea3b66e88a543658520c994f08896a0
|
|
9
12
|
*/
|
|
@@ -31,22 +34,38 @@ export class VideoTranslationResponseBodyData extends $dara.Model {
|
|
|
31
34
|
|
|
32
35
|
export class VideoTranslationResponseBody extends $dara.Model {
|
|
33
36
|
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The status code.
|
|
39
|
+
*
|
|
34
40
|
* @example
|
|
35
41
|
* Processing
|
|
36
42
|
*/
|
|
37
43
|
code?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The asynchronous task submit status.
|
|
47
|
+
*/
|
|
38
48
|
data?: VideoTranslationResponseBodyData;
|
|
39
49
|
/**
|
|
50
|
+
* @remarks
|
|
51
|
+
* The description message.
|
|
52
|
+
*
|
|
40
53
|
* @example
|
|
41
54
|
* Translation processing
|
|
42
55
|
*/
|
|
43
56
|
message?: string;
|
|
44
57
|
/**
|
|
58
|
+
* @remarks
|
|
59
|
+
* The request trace ID.
|
|
60
|
+
*
|
|
45
61
|
* @example
|
|
46
62
|
* req_20260608_jkl012
|
|
47
63
|
*/
|
|
48
64
|
requestId?: string;
|
|
49
65
|
/**
|
|
66
|
+
* @remarks
|
|
67
|
+
* Indicates whether the call is successful. Valid values: true: The call is successful. false: The call failed.
|
|
68
|
+
*
|
|
50
69
|
* @example
|
|
51
70
|
* True
|
|
52
71
|
*/
|
|
@@ -5,16 +5,23 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class VideoTranslationShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
+
* The array of translation capabilities. Valid values: ["visual"].
|
|
9
|
+
*
|
|
8
10
|
* This parameter is required.
|
|
9
11
|
*/
|
|
10
12
|
capabilitiesShrink?: string;
|
|
11
13
|
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* The source language. This parameter is optional. Default value: auto (automatic detection).
|
|
16
|
+
*
|
|
12
17
|
* @example
|
|
13
18
|
* zh
|
|
14
19
|
*/
|
|
15
20
|
sourceLanguage?: string;
|
|
16
21
|
/**
|
|
17
22
|
* @remarks
|
|
23
|
+
* The target language. This parameter is required.
|
|
24
|
+
*
|
|
18
25
|
* This parameter is required.
|
|
19
26
|
*
|
|
20
27
|
* @example
|
|
@@ -23,6 +30,8 @@ export class VideoTranslationShrinkRequest extends $dara.Model {
|
|
|
23
30
|
targetLanguage?: string;
|
|
24
31
|
/**
|
|
25
32
|
* @remarks
|
|
33
|
+
* The video URL (MP4/MOV, ≤ 200 MB).
|
|
34
|
+
*
|
|
26
35
|
* This parameter is required.
|
|
27
36
|
*
|
|
28
37
|
* @example
|
package/src/models/model.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { ImageMattingResponseBodyData } from './ImageMattingResponseBody';
|
|
|
10
10
|
export { ImageRecognitionResponseBodyData } from './ImageRecognitionResponseBody';
|
|
11
11
|
export { ImageRemovalProResponseBodyData } from './ImageRemovalProResponseBody';
|
|
12
12
|
export { ImageRemoveResponseBodyData } from './ImageRemoveResponseBody';
|
|
13
|
+
export { ImageTranslationPlusResponseBodyData } from './ImageTranslationPlusResponseBody';
|
|
13
14
|
export { ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects } from './ImageTranslationProResponseBody';
|
|
14
15
|
export { ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect } from './ImageTranslationProResponseBody';
|
|
15
16
|
export { ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect } from './ImageTranslationProResponseBody';
|
|
@@ -42,6 +43,10 @@ export { SizeChartExtractResponseBodyData } from './SizeChartExtractResponseBody
|
|
|
42
43
|
export { TextCorrectResponseBodyData } from './TextCorrectResponseBody';
|
|
43
44
|
export { TextTranslateResponseBodyDataTranslations } from './TextTranslateResponseBody';
|
|
44
45
|
export { TextTranslateResponseBodyData } from './TextTranslateResponseBody';
|
|
46
|
+
export { VideoGenerationRequestInput } from './VideoGenerationRequest';
|
|
47
|
+
export { VideoGenerationRequestIntent } from './VideoGenerationRequest';
|
|
48
|
+
export { VideoGenerationRequestOutput } from './VideoGenerationRequest';
|
|
49
|
+
export { VideoGenerationResponseBodyData } from './VideoGenerationResponseBody';
|
|
45
50
|
export { VideoTranslationResponseBodyData } from './VideoTranslationResponseBody';
|
|
46
51
|
export { VisionFlowResponseBodyData } from './VisionFlowResponseBody';
|
|
47
52
|
export { AssetOptimizeLiteRequest } from './AssetOptimizeLiteRequest';
|
|
@@ -78,6 +83,9 @@ export { ImageRemoveRequest } from './ImageRemoveRequest';
|
|
|
78
83
|
export { ImageRemoveShrinkRequest } from './ImageRemoveShrinkRequest';
|
|
79
84
|
export { ImageRemoveResponseBody } from './ImageRemoveResponseBody';
|
|
80
85
|
export { ImageRemoveResponse } from './ImageRemoveResponse';
|
|
86
|
+
export { ImageTranslationPlusRequest } from './ImageTranslationPlusRequest';
|
|
87
|
+
export { ImageTranslationPlusResponseBody } from './ImageTranslationPlusResponseBody';
|
|
88
|
+
export { ImageTranslationPlusResponse } from './ImageTranslationPlusResponse';
|
|
81
89
|
export { ImageTranslationProRequest } from './ImageTranslationProRequest';
|
|
82
90
|
export { ImageTranslationProResponseBody } from './ImageTranslationProResponseBody';
|
|
83
91
|
export { ImageTranslationProResponse } from './ImageTranslationProResponse';
|
|
@@ -113,6 +121,10 @@ export { TextTranslateRequest } from './TextTranslateRequest';
|
|
|
113
121
|
export { TextTranslateShrinkRequest } from './TextTranslateShrinkRequest';
|
|
114
122
|
export { TextTranslateResponseBody } from './TextTranslateResponseBody';
|
|
115
123
|
export { TextTranslateResponse } from './TextTranslateResponse';
|
|
124
|
+
export { VideoGenerationRequest } from './VideoGenerationRequest';
|
|
125
|
+
export { VideoGenerationShrinkRequest } from './VideoGenerationShrinkRequest';
|
|
126
|
+
export { VideoGenerationResponseBody } from './VideoGenerationResponseBody';
|
|
127
|
+
export { VideoGenerationResponse } from './VideoGenerationResponse';
|
|
116
128
|
export { VideoTranslationRequest } from './VideoTranslationRequest';
|
|
117
129
|
export { VideoTranslationShrinkRequest } from './VideoTranslationShrinkRequest';
|
|
118
130
|
export { VideoTranslationResponseBody } from './VideoTranslationResponseBody';
|