@alicloud/aidge20260428 3.0.1 → 3.1.1
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 +99 -32
- package/dist/client.js +140 -32
- package/dist/client.js.map +1 -1
- package/dist/models/ImageTranslationStandardRequest.d.ts +17 -6
- package/dist/models/ImageTranslationStandardRequest.js +2 -0
- package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +365 -4
- package/dist/models/ImageTranslationStandardResponseBody.js +224 -1
- package/dist/models/ImageTranslationStandardResponseBody.js.map +1 -1
- package/dist/models/TextTranslateRequest.d.ts +11 -5
- package/dist/models/TextTranslateRequest.js.map +1 -1
- package/dist/models/TextTranslateResponseBody.d.ts +4 -4
- package/dist/models/TextTranslateShrinkRequest.d.ts +11 -5
- package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
- package/dist/models/VideoTranslationRequest.d.ts +39 -0
- package/dist/models/VideoTranslationRequest.js +67 -0
- package/dist/models/VideoTranslationRequest.js.map +1 -0
- package/dist/models/VideoTranslationResponse.d.ts +19 -0
- package/dist/models/VideoTranslationResponse.js +69 -0
- package/dist/models/VideoTranslationResponse.js.map +1 -0
- package/dist/models/VideoTranslationResponseBody.d.ts +51 -0
- package/dist/models/VideoTranslationResponseBody.js +88 -0
- package/dist/models/VideoTranslationResponseBody.js.map +1 -0
- package/dist/models/VideoTranslationShrinkRequest.d.ts +39 -0
- package/dist/models/VideoTranslationShrinkRequest.js +64 -0
- package/dist/models/VideoTranslationShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +11 -0
- package/dist/models/model.js +28 -6
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +148 -32
- package/src/models/ImageTranslationStandardRequest.ts +19 -6
- package/src/models/ImageTranslationStandardResponseBody.ts +534 -4
- package/src/models/TextTranslateRequest.ts +11 -5
- package/src/models/TextTranslateResponseBody.ts +4 -4
- package/src/models/TextTranslateShrinkRequest.ts +11 -5
- package/src/models/VideoTranslationRequest.ts +61 -0
- package/src/models/VideoTranslationResponse.ts +40 -0
- package/src/models/VideoTranslationResponseBody.ts +85 -0
- package/src/models/VideoTranslationShrinkRequest.ts +58 -0
- package/src/models/model.ts +11 -0
|
@@ -33,23 +33,246 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.ImageTranslationStandardResponseBody = exports.ImageTranslationStandardResponseBodyData = void 0;
|
|
36
|
+
exports.ImageTranslationStandardResponseBody = exports.ImageTranslationStandardResponseBodyData = exports.ImageTranslationStandardResponseBodyDataEditInfo = exports.ImageTranslationStandardResponseBodyDataEditInfoTextAreas = exports.ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts = exports.ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsTextRect = exports.ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsImageRect = exports.ImageTranslationStandardResponseBodyDataEditInfoGoodsRects = void 0;
|
|
37
37
|
// This file is auto-generated, don't edit it
|
|
38
38
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class ImageTranslationStandardResponseBodyDataEditInfoGoodsRects extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
degree: 'Degree',
|
|
43
|
+
height: 'Height',
|
|
44
|
+
left: 'Left',
|
|
45
|
+
top: 'Top',
|
|
46
|
+
width: 'Width',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
static types() {
|
|
50
|
+
return {
|
|
51
|
+
degree: 'number',
|
|
52
|
+
height: 'number',
|
|
53
|
+
left: 'number',
|
|
54
|
+
top: 'number',
|
|
55
|
+
width: 'number',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
validate() {
|
|
59
|
+
super.validate();
|
|
60
|
+
}
|
|
61
|
+
constructor(map) {
|
|
62
|
+
super(map);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.ImageTranslationStandardResponseBodyDataEditInfoGoodsRects = ImageTranslationStandardResponseBodyDataEditInfoGoodsRects;
|
|
66
|
+
class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsImageRect extends $dara.Model {
|
|
67
|
+
static names() {
|
|
68
|
+
return {
|
|
69
|
+
degree: 'Degree',
|
|
70
|
+
height: 'Height',
|
|
71
|
+
left: 'Left',
|
|
72
|
+
top: 'Top',
|
|
73
|
+
width: 'Width',
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
static types() {
|
|
77
|
+
return {
|
|
78
|
+
degree: 'number',
|
|
79
|
+
height: 'number',
|
|
80
|
+
left: 'number',
|
|
81
|
+
top: 'number',
|
|
82
|
+
width: 'number',
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
validate() {
|
|
86
|
+
super.validate();
|
|
87
|
+
}
|
|
88
|
+
constructor(map) {
|
|
89
|
+
super(map);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsImageRect = ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsImageRect;
|
|
93
|
+
class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsTextRect extends $dara.Model {
|
|
94
|
+
static names() {
|
|
95
|
+
return {
|
|
96
|
+
degree: 'Degree',
|
|
97
|
+
height: 'Height',
|
|
98
|
+
left: 'Left',
|
|
99
|
+
top: 'Top',
|
|
100
|
+
width: 'Width',
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
static types() {
|
|
104
|
+
return {
|
|
105
|
+
degree: 'number',
|
|
106
|
+
height: 'number',
|
|
107
|
+
left: 'number',
|
|
108
|
+
top: 'number',
|
|
109
|
+
width: 'number',
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
validate() {
|
|
113
|
+
super.validate();
|
|
114
|
+
}
|
|
115
|
+
constructor(map) {
|
|
116
|
+
super(map);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
exports.ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsTextRect = ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsTextRect;
|
|
120
|
+
class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts extends $dara.Model {
|
|
121
|
+
static names() {
|
|
122
|
+
return {
|
|
123
|
+
color: 'Color',
|
|
124
|
+
fontsize: 'Fontsize',
|
|
125
|
+
horizontalLayout: 'HorizontalLayout',
|
|
126
|
+
imageRect: 'ImageRect',
|
|
127
|
+
language: 'Language',
|
|
128
|
+
lineCount: 'LineCount',
|
|
129
|
+
ovisErrMsg: 'OvisErrMsg',
|
|
130
|
+
textRect: 'TextRect',
|
|
131
|
+
valid: 'Valid',
|
|
132
|
+
value: 'Value',
|
|
133
|
+
verticalLayout: 'VerticalLayout',
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
static types() {
|
|
137
|
+
return {
|
|
138
|
+
color: 'string',
|
|
139
|
+
fontsize: 'number',
|
|
140
|
+
horizontalLayout: 'string',
|
|
141
|
+
imageRect: ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsImageRect,
|
|
142
|
+
language: 'string',
|
|
143
|
+
lineCount: 'number',
|
|
144
|
+
ovisErrMsg: 'string',
|
|
145
|
+
textRect: ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsTextRect,
|
|
146
|
+
valid: 'boolean',
|
|
147
|
+
value: 'string',
|
|
148
|
+
verticalLayout: 'string',
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
validate() {
|
|
152
|
+
if (this.imageRect && typeof this.imageRect.validate === 'function') {
|
|
153
|
+
this.imageRect.validate();
|
|
154
|
+
}
|
|
155
|
+
if (this.textRect && typeof this.textRect.validate === 'function') {
|
|
156
|
+
this.textRect.validate();
|
|
157
|
+
}
|
|
158
|
+
super.validate();
|
|
159
|
+
}
|
|
160
|
+
constructor(map) {
|
|
161
|
+
super(map);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
exports.ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts = ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts;
|
|
165
|
+
class ImageTranslationStandardResponseBodyDataEditInfoTextAreas extends $dara.Model {
|
|
166
|
+
static names() {
|
|
167
|
+
return {
|
|
168
|
+
color: 'Color',
|
|
169
|
+
content: 'Content',
|
|
170
|
+
fontsize: 'Fontsize',
|
|
171
|
+
horizontalLayout: 'HorizontalLayout',
|
|
172
|
+
lineCount: 'LineCount',
|
|
173
|
+
texts: 'Texts',
|
|
174
|
+
verticalLayout: 'VerticalLayout',
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
static types() {
|
|
178
|
+
return {
|
|
179
|
+
color: 'string',
|
|
180
|
+
content: 'string',
|
|
181
|
+
fontsize: 'number',
|
|
182
|
+
horizontalLayout: 'string',
|
|
183
|
+
lineCount: 'number',
|
|
184
|
+
texts: { 'type': 'array', 'itemType': ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts },
|
|
185
|
+
verticalLayout: 'string',
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
validate() {
|
|
189
|
+
if (Array.isArray(this.texts)) {
|
|
190
|
+
$dara.Model.validateArray(this.texts);
|
|
191
|
+
}
|
|
192
|
+
super.validate();
|
|
193
|
+
}
|
|
194
|
+
constructor(map) {
|
|
195
|
+
super(map);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
exports.ImageTranslationStandardResponseBodyDataEditInfoTextAreas = ImageTranslationStandardResponseBodyDataEditInfoTextAreas;
|
|
199
|
+
class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Model {
|
|
200
|
+
static names() {
|
|
201
|
+
return {
|
|
202
|
+
font: 'Font',
|
|
203
|
+
goodsRects: 'GoodsRects',
|
|
204
|
+
goodsUrl: 'GoodsUrl',
|
|
205
|
+
languages: 'Languages',
|
|
206
|
+
pictUrl: 'PictUrl',
|
|
207
|
+
repairedUrl: 'RepairedUrl',
|
|
208
|
+
repairedUrls: 'RepairedUrls',
|
|
209
|
+
resultImageIds: 'ResultImageIds',
|
|
210
|
+
resultUrls: 'ResultUrls',
|
|
211
|
+
textAreas: 'TextAreas',
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
static types() {
|
|
215
|
+
return {
|
|
216
|
+
font: { 'type': 'array', 'itemType': 'string' },
|
|
217
|
+
goodsRects: ImageTranslationStandardResponseBodyDataEditInfoGoodsRects,
|
|
218
|
+
goodsUrl: 'string',
|
|
219
|
+
languages: { 'type': 'array', 'itemType': 'string' },
|
|
220
|
+
pictUrl: 'string',
|
|
221
|
+
repairedUrl: 'string',
|
|
222
|
+
repairedUrls: { 'type': 'array', 'itemType': 'string' },
|
|
223
|
+
resultImageIds: { 'type': 'array', 'itemType': 'string' },
|
|
224
|
+
resultUrls: { 'type': 'array', 'itemType': 'string' },
|
|
225
|
+
textAreas: { 'type': 'array', 'itemType': ImageTranslationStandardResponseBodyDataEditInfoTextAreas },
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
validate() {
|
|
229
|
+
if (Array.isArray(this.font)) {
|
|
230
|
+
$dara.Model.validateArray(this.font);
|
|
231
|
+
}
|
|
232
|
+
if (this.goodsRects && typeof this.goodsRects.validate === 'function') {
|
|
233
|
+
this.goodsRects.validate();
|
|
234
|
+
}
|
|
235
|
+
if (Array.isArray(this.languages)) {
|
|
236
|
+
$dara.Model.validateArray(this.languages);
|
|
237
|
+
}
|
|
238
|
+
if (Array.isArray(this.repairedUrls)) {
|
|
239
|
+
$dara.Model.validateArray(this.repairedUrls);
|
|
240
|
+
}
|
|
241
|
+
if (Array.isArray(this.resultImageIds)) {
|
|
242
|
+
$dara.Model.validateArray(this.resultImageIds);
|
|
243
|
+
}
|
|
244
|
+
if (Array.isArray(this.resultUrls)) {
|
|
245
|
+
$dara.Model.validateArray(this.resultUrls);
|
|
246
|
+
}
|
|
247
|
+
if (Array.isArray(this.textAreas)) {
|
|
248
|
+
$dara.Model.validateArray(this.textAreas);
|
|
249
|
+
}
|
|
250
|
+
super.validate();
|
|
251
|
+
}
|
|
252
|
+
constructor(map) {
|
|
253
|
+
super(map);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
exports.ImageTranslationStandardResponseBodyDataEditInfo = ImageTranslationStandardResponseBodyDataEditInfo;
|
|
39
257
|
class ImageTranslationStandardResponseBodyData extends $dara.Model {
|
|
40
258
|
static names() {
|
|
41
259
|
return {
|
|
260
|
+
editInfo: 'EditInfo',
|
|
42
261
|
imageUrl: 'ImageUrl',
|
|
43
262
|
usageMap: 'UsageMap',
|
|
44
263
|
};
|
|
45
264
|
}
|
|
46
265
|
static types() {
|
|
47
266
|
return {
|
|
267
|
+
editInfo: ImageTranslationStandardResponseBodyDataEditInfo,
|
|
48
268
|
imageUrl: 'string',
|
|
49
269
|
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
50
270
|
};
|
|
51
271
|
}
|
|
52
272
|
validate() {
|
|
273
|
+
if (this.editInfo && typeof this.editInfo.validate === 'function') {
|
|
274
|
+
this.editInfo.validate();
|
|
275
|
+
}
|
|
53
276
|
if (this.usageMap) {
|
|
54
277
|
$dara.Model.validateMap(this.usageMap);
|
|
55
278
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageTranslationStandardResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageTranslationStandardResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageTranslationStandardResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageTranslationStandardResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,oFAoEC"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class TextTranslateRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The business scenario identifier. Optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or invalid, the general translation strategy is used by default.
|
|
6
|
+
*
|
|
4
7
|
* @example
|
|
5
8
|
* MyCompany-Chat
|
|
6
9
|
*/
|
|
7
10
|
bizName?: string;
|
|
8
11
|
/**
|
|
9
12
|
* @remarks
|
|
10
|
-
* The format type of the source text.
|
|
13
|
+
* The format type of the source text. Optional. Supports text (plain text format) and html (web page format, preserving HTML tags).
|
|
11
14
|
*
|
|
12
15
|
* @example
|
|
13
16
|
* text
|
|
@@ -15,7 +18,7 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
15
18
|
formatType?: string;
|
|
16
19
|
/**
|
|
17
20
|
* @remarks
|
|
18
|
-
* The intervention glossary ID.
|
|
21
|
+
* The intervention glossary ID. Optional. The glossary must be created separately in the console and its ID provided. If the glossary ID is empty, the translation result is not modified.
|
|
19
22
|
*
|
|
20
23
|
* @example
|
|
21
24
|
* glossary_1
|
|
@@ -23,7 +26,7 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
23
26
|
glossary?: string;
|
|
24
27
|
/**
|
|
25
28
|
* @remarks
|
|
26
|
-
* The source language code.
|
|
29
|
+
* The source language code. Optional. If not specified, the language is automatically detected. You can pass auto for language detection.
|
|
27
30
|
*
|
|
28
31
|
* @example
|
|
29
32
|
* auto
|
|
@@ -31,7 +34,7 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
31
34
|
sourceLanguage?: string;
|
|
32
35
|
/**
|
|
33
36
|
* @remarks
|
|
34
|
-
* The list of texts to translate.
|
|
37
|
+
* The list of texts to translate. Required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
|
|
35
38
|
*
|
|
36
39
|
* This parameter is required.
|
|
37
40
|
*
|
|
@@ -41,7 +44,7 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
41
44
|
sourceTextList?: string[];
|
|
42
45
|
/**
|
|
43
46
|
* @remarks
|
|
44
|
-
* The target language code.
|
|
47
|
+
* The target language code. Required. Supports more than 100 language directions. For details, refer to the supported language directions list.
|
|
45
48
|
*
|
|
46
49
|
* This parameter is required.
|
|
47
50
|
*
|
|
@@ -50,6 +53,9 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
50
53
|
*/
|
|
51
54
|
targetLanguage?: string;
|
|
52
55
|
/**
|
|
56
|
+
* @remarks
|
|
57
|
+
* The format of the translation text. **html** (web page format. This setting processes both the source text and translated text in HTML format). **text** (text format. This setting processes both the source text and translated result as plain text without format processing).
|
|
58
|
+
*
|
|
53
59
|
* @example
|
|
54
60
|
* e-commerce-title
|
|
55
61
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextTranslateRequest.js","sourceRoot":"","sources":["../../src/models/TextTranslateRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oBAAqB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"TextTranslateRequest.js","sourceRoot":"","sources":["../../src/models/TextTranslateRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oBAAqB,SAAQ,KAAK,CAAC,KAAK;IA6DnD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACzD,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;YACtC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACjD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/FD,oDA+FC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class TextTranslateResponseBodyDataTranslations extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The
|
|
5
|
+
* The source text character count.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* 11
|
|
@@ -21,7 +21,7 @@ export declare class TextTranslateResponseBodyDataTranslations extends $dara.Mod
|
|
|
21
21
|
* The translated text.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
*
|
|
24
|
+
* Hello World.
|
|
25
25
|
*/
|
|
26
26
|
translatedText?: string;
|
|
27
27
|
static names(): {
|
|
@@ -65,7 +65,7 @@ export declare class TextTranslateResponseBodyData extends $dara.Model {
|
|
|
65
65
|
export declare class TextTranslateResponseBody extends $dara.Model {
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* The response code. Returns "success" for
|
|
68
|
+
* The response code. Returns "success" for normal calls.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* success
|
|
@@ -78,7 +78,7 @@ export declare class TextTranslateResponseBody extends $dara.Model {
|
|
|
78
78
|
data?: TextTranslateResponseBodyData;
|
|
79
79
|
/**
|
|
80
80
|
* @remarks
|
|
81
|
-
* The error message. Returns "Success" for
|
|
81
|
+
* The error message. Returns "Success" for normal calls. Returns specific error information for exceptions, such as "The parameters contain sensitive information. Try other input."
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
84
|
* Success
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class TextTranslateShrinkRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The business scenario identifier. Optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or invalid, the general translation strategy is used by default.
|
|
6
|
+
*
|
|
4
7
|
* @example
|
|
5
8
|
* MyCompany-Chat
|
|
6
9
|
*/
|
|
7
10
|
bizName?: string;
|
|
8
11
|
/**
|
|
9
12
|
* @remarks
|
|
10
|
-
* The format type of the source text.
|
|
13
|
+
* The format type of the source text. Optional. Supports text (plain text format) and html (web page format, preserving HTML tags).
|
|
11
14
|
*
|
|
12
15
|
* @example
|
|
13
16
|
* text
|
|
@@ -15,7 +18,7 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
15
18
|
formatType?: string;
|
|
16
19
|
/**
|
|
17
20
|
* @remarks
|
|
18
|
-
* The intervention glossary ID.
|
|
21
|
+
* The intervention glossary ID. Optional. The glossary must be created separately in the console and its ID provided. If the glossary ID is empty, the translation result is not modified.
|
|
19
22
|
*
|
|
20
23
|
* @example
|
|
21
24
|
* glossary_1
|
|
@@ -23,7 +26,7 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
23
26
|
glossary?: string;
|
|
24
27
|
/**
|
|
25
28
|
* @remarks
|
|
26
|
-
* The source language code.
|
|
29
|
+
* The source language code. Optional. If not specified, the language is automatically detected. You can pass auto for language detection.
|
|
27
30
|
*
|
|
28
31
|
* @example
|
|
29
32
|
* auto
|
|
@@ -31,7 +34,7 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
31
34
|
sourceLanguage?: string;
|
|
32
35
|
/**
|
|
33
36
|
* @remarks
|
|
34
|
-
* The list of texts to translate.
|
|
37
|
+
* The list of texts to translate. Required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
|
|
35
38
|
*
|
|
36
39
|
* This parameter is required.
|
|
37
40
|
*
|
|
@@ -41,7 +44,7 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
41
44
|
sourceTextListShrink?: string;
|
|
42
45
|
/**
|
|
43
46
|
* @remarks
|
|
44
|
-
* The target language code.
|
|
47
|
+
* The target language code. Required. Supports more than 100 language directions. For details, refer to the supported language directions list.
|
|
45
48
|
*
|
|
46
49
|
* This parameter is required.
|
|
47
50
|
*
|
|
@@ -50,6 +53,9 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
50
53
|
*/
|
|
51
54
|
targetLanguage?: string;
|
|
52
55
|
/**
|
|
56
|
+
* @remarks
|
|
57
|
+
* The format of the translation text. **html** (web page format. This setting processes both the source text and translated text in HTML format). **text** (text format. This setting processes both the source text and translated result as plain text without format processing).
|
|
58
|
+
*
|
|
53
59
|
* @example
|
|
54
60
|
* e-commerce-title
|
|
55
61
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextTranslateShrinkRequest.js","sourceRoot":"","sources":["../../src/models/TextTranslateShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"TextTranslateShrinkRequest.js","sourceRoot":"","sources":["../../src/models/TextTranslateShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IA6DzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,oBAAoB,EAAE,gBAAgB;YACtC,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;YACxB,oBAAoB,EAAE,QAAQ;YAC9B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5FD,gEA4FC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class VideoTranslationRequest extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* This parameter is required.
|
|
6
|
+
*/
|
|
7
|
+
capabilities?: string[];
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* zh
|
|
11
|
+
*/
|
|
12
|
+
sourceLanguage?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* This parameter is required.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ru
|
|
19
|
+
*/
|
|
20
|
+
targetLanguage?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* This parameter is required.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* https://example.com/video.mp4
|
|
27
|
+
*/
|
|
28
|
+
videoUrl?: string;
|
|
29
|
+
static names(): {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
32
|
+
static types(): {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
};
|
|
35
|
+
validate(): void;
|
|
36
|
+
constructor(map?: {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.VideoTranslationRequest = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class VideoTranslationRequest extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
capabilities: 'Capabilities',
|
|
43
|
+
sourceLanguage: 'SourceLanguage',
|
|
44
|
+
targetLanguage: 'TargetLanguage',
|
|
45
|
+
videoUrl: 'VideoUrl',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static types() {
|
|
49
|
+
return {
|
|
50
|
+
capabilities: { 'type': 'array', 'itemType': 'string' },
|
|
51
|
+
sourceLanguage: 'string',
|
|
52
|
+
targetLanguage: 'string',
|
|
53
|
+
videoUrl: 'string',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
validate() {
|
|
57
|
+
if (Array.isArray(this.capabilities)) {
|
|
58
|
+
$dara.Model.validateArray(this.capabilities);
|
|
59
|
+
}
|
|
60
|
+
super.validate();
|
|
61
|
+
}
|
|
62
|
+
constructor(map) {
|
|
63
|
+
super(map);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.VideoTranslationRequest = VideoTranslationRequest;
|
|
67
|
+
//# sourceMappingURL=VideoTranslationRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoTranslationRequest.js","sourceRoot":"","sources":["../../src/models/VideoTranslationRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IA2BtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACvD,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAvDD,0DAuDC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
import { VideoTranslationResponseBody } from "./VideoTranslationResponseBody";
|
|
3
|
+
export declare class VideoTranslationResponse extends $dara.Model {
|
|
4
|
+
headers?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
statusCode?: number;
|
|
8
|
+
body?: VideoTranslationResponseBody;
|
|
9
|
+
static names(): {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
static types(): {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
validate(): void;
|
|
16
|
+
constructor(map?: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.VideoTranslationResponse = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
const VideoTranslationResponseBody_1 = require("./VideoTranslationResponseBody");
|
|
40
|
+
class VideoTranslationResponse extends $dara.Model {
|
|
41
|
+
static names() {
|
|
42
|
+
return {
|
|
43
|
+
headers: 'headers',
|
|
44
|
+
statusCode: 'statusCode',
|
|
45
|
+
body: 'body',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static types() {
|
|
49
|
+
return {
|
|
50
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
51
|
+
statusCode: 'number',
|
|
52
|
+
body: VideoTranslationResponseBody_1.VideoTranslationResponseBody,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
validate() {
|
|
56
|
+
if (this.headers) {
|
|
57
|
+
$dara.Model.validateMap(this.headers);
|
|
58
|
+
}
|
|
59
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
60
|
+
this.body.validate();
|
|
61
|
+
}
|
|
62
|
+
super.validate();
|
|
63
|
+
}
|
|
64
|
+
constructor(map) {
|
|
65
|
+
super(map);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.VideoTranslationResponse = VideoTranslationResponse;
|
|
69
|
+
//# sourceMappingURL=VideoTranslationResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoTranslationResponse.js","sourceRoot":"","sources":["../../src/models/VideoTranslationResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iFAA8E;AAG9E,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAIvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2DAA4B;SACnC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4DAiCC"}
|