@alicloud/aidge20260428 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 +13 -0
- package/README.md +25 -0
- package/dist/client.d.ts +1426 -0
- package/dist/client.js +2254 -0
- package/dist/client.js.map +1 -0
- package/dist/models/AssetOptimizeLiteRequest.d.ts +93 -0
- package/dist/models/AssetOptimizeLiteRequest.js +74 -0
- package/dist/models/AssetOptimizeLiteRequest.js.map +1 -0
- package/dist/models/AssetOptimizeLiteResponse.d.ts +19 -0
- package/dist/models/AssetOptimizeLiteResponse.js +69 -0
- package/dist/models/AssetOptimizeLiteResponse.js.map +1 -0
- package/dist/models/AssetOptimizeLiteResponseBody.d.ts +72 -0
- package/dist/models/AssetOptimizeLiteResponseBody.js +90 -0
- package/dist/models/AssetOptimizeLiteResponseBody.js.map +1 -0
- package/dist/models/AssetOptimizeProRequest.d.ts +117 -0
- package/dist/models/AssetOptimizeProRequest.js +83 -0
- package/dist/models/AssetOptimizeProRequest.js.map +1 -0
- package/dist/models/AssetOptimizeProResponse.d.ts +19 -0
- package/dist/models/AssetOptimizeProResponse.js +69 -0
- package/dist/models/AssetOptimizeProResponse.js.map +1 -0
- package/dist/models/AssetOptimizeProResponseBody.d.ts +70 -0
- package/dist/models/AssetOptimizeProResponseBody.js +88 -0
- package/dist/models/AssetOptimizeProResponseBody.js.map +1 -0
- package/dist/models/AssetOptimizeProShrinkRequest.d.ts +117 -0
- package/dist/models/AssetOptimizeProShrinkRequest.js +80 -0
- package/dist/models/AssetOptimizeProShrinkRequest.js.map +1 -0
- package/dist/models/CategoryAttributeMatchRequest.d.ts +89 -0
- package/dist/models/CategoryAttributeMatchRequest.js +75 -0
- package/dist/models/CategoryAttributeMatchRequest.js.map +1 -0
- package/dist/models/CategoryAttributeMatchResponse.d.ts +19 -0
- package/dist/models/CategoryAttributeMatchResponse.js +69 -0
- package/dist/models/CategoryAttributeMatchResponse.js.map +1 -0
- package/dist/models/CategoryAttributeMatchResponseBody.d.ts +218 -0
- package/dist/models/CategoryAttributeMatchResponseBody.js +168 -0
- package/dist/models/CategoryAttributeMatchResponseBody.js.map +1 -0
- package/dist/models/CategoryAttributeMatchShrinkRequest.d.ts +89 -0
- package/dist/models/CategoryAttributeMatchShrinkRequest.js +72 -0
- package/dist/models/CategoryAttributeMatchShrinkRequest.js.map +1 -0
- package/dist/models/CategoryMatchRequest.d.ts +79 -0
- package/dist/models/CategoryMatchRequest.js +70 -0
- package/dist/models/CategoryMatchRequest.js.map +1 -0
- package/dist/models/CategoryMatchResponse.d.ts +19 -0
- package/dist/models/CategoryMatchResponse.js +69 -0
- package/dist/models/CategoryMatchResponse.js.map +1 -0
- package/dist/models/CategoryMatchResponseBody.d.ts +117 -0
- package/dist/models/CategoryMatchResponseBody.js +103 -0
- package/dist/models/CategoryMatchResponseBody.js.map +1 -0
- package/dist/models/DocumentTranslateRequest.d.ts +51 -0
- package/dist/models/DocumentTranslateRequest.js +64 -0
- package/dist/models/DocumentTranslateRequest.js.map +1 -0
- package/dist/models/DocumentTranslateResponse.d.ts +19 -0
- package/dist/models/DocumentTranslateResponse.js +69 -0
- package/dist/models/DocumentTranslateResponse.js.map +1 -0
- package/dist/models/DocumentTranslateResponseBody.d.ts +72 -0
- package/dist/models/DocumentTranslateResponseBody.js +88 -0
- package/dist/models/DocumentTranslateResponseBody.js.map +1 -0
- package/dist/models/ImageCroppingRequest.d.ts +43 -0
- package/dist/models/ImageCroppingRequest.js +62 -0
- package/dist/models/ImageCroppingRequest.js.map +1 -0
- package/dist/models/ImageCroppingResponse.d.ts +19 -0
- package/dist/models/ImageCroppingResponse.js +69 -0
- package/dist/models/ImageCroppingResponse.js.map +1 -0
- package/dist/models/ImageCroppingResponseBody.d.ts +96 -0
- package/dist/models/ImageCroppingResponseBody.js +97 -0
- package/dist/models/ImageCroppingResponseBody.js.map +1 -0
- package/dist/models/ImageMattingRequest.d.ts +59 -0
- package/dist/models/ImageMattingRequest.js +66 -0
- package/dist/models/ImageMattingRequest.js.map +1 -0
- package/dist/models/ImageMattingResponse.d.ts +19 -0
- package/dist/models/ImageMattingResponse.js +69 -0
- package/dist/models/ImageMattingResponse.js.map +1 -0
- package/dist/models/ImageMattingResponseBody.d.ts +106 -0
- package/dist/models/ImageMattingResponseBody.js +99 -0
- package/dist/models/ImageMattingResponseBody.js.map +1 -0
- package/dist/models/ImageRecognitionRequest.d.ts +79 -0
- package/dist/models/ImageRecognitionRequest.js +78 -0
- package/dist/models/ImageRecognitionRequest.js.map +1 -0
- package/dist/models/ImageRecognitionResponse.d.ts +19 -0
- package/dist/models/ImageRecognitionResponse.js +69 -0
- package/dist/models/ImageRecognitionResponse.js.map +1 -0
- package/dist/models/ImageRecognitionResponseBody.d.ts +173 -0
- package/dist/models/ImageRecognitionResponseBody.js +120 -0
- package/dist/models/ImageRecognitionResponseBody.js.map +1 -0
- package/dist/models/ImageRecognitionShrinkRequest.d.ts +79 -0
- package/dist/models/ImageRecognitionShrinkRequest.js +72 -0
- package/dist/models/ImageRecognitionShrinkRequest.js.map +1 -0
- package/dist/models/ImageRemoveRequest.d.ts +49 -0
- package/dist/models/ImageRemoveRequest.js +70 -0
- package/dist/models/ImageRemoveRequest.js.map +1 -0
- package/dist/models/ImageRemoveResponse.d.ts +19 -0
- package/dist/models/ImageRemoveResponse.js +69 -0
- package/dist/models/ImageRemoveResponse.js.map +1 -0
- package/dist/models/ImageRemoveResponseBody.d.ts +96 -0
- package/dist/models/ImageRemoveResponseBody.js +97 -0
- package/dist/models/ImageRemoveResponseBody.js.map +1 -0
- package/dist/models/ImageRemoveShrinkRequest.d.ts +49 -0
- package/dist/models/ImageRemoveShrinkRequest.js +64 -0
- package/dist/models/ImageRemoveShrinkRequest.js.map +1 -0
- package/dist/models/ImageTranslationProRequest.d.ts +83 -0
- package/dist/models/ImageTranslationProRequest.js +72 -0
- package/dist/models/ImageTranslationProRequest.js.map +1 -0
- package/dist/models/ImageTranslationProResponse.d.ts +19 -0
- package/dist/models/ImageTranslationProResponse.js +69 -0
- package/dist/models/ImageTranslationProResponse.js.map +1 -0
- package/dist/models/ImageTranslationProResponseBody.d.ts +533 -0
- package/dist/models/ImageTranslationProResponseBody.js +378 -0
- package/dist/models/ImageTranslationProResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationStandardRequest.d.ts +67 -0
- package/dist/models/ImageTranslationStandardRequest.js +68 -0
- package/dist/models/ImageTranslationStandardRequest.js.map +1 -0
- package/dist/models/ImageTranslationStandardResponse.d.ts +19 -0
- package/dist/models/ImageTranslationStandardResponse.js +69 -0
- package/dist/models/ImageTranslationStandardResponse.js.map +1 -0
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +80 -0
- package/dist/models/ImageTranslationStandardResponseBody.js +93 -0
- package/dist/models/ImageTranslationStandardResponseBody.js.map +1 -0
- package/dist/models/LanguageDetectRequest.d.ts +23 -0
- package/dist/models/LanguageDetectRequest.js +58 -0
- package/dist/models/LanguageDetectRequest.js.map +1 -0
- package/dist/models/LanguageDetectResponse.d.ts +19 -0
- package/dist/models/LanguageDetectResponse.js +69 -0
- package/dist/models/LanguageDetectResponse.js.map +1 -0
- package/dist/models/LanguageDetectResponseBody.d.ts +82 -0
- package/dist/models/LanguageDetectResponseBody.js +93 -0
- package/dist/models/LanguageDetectResponseBody.js.map +1 -0
- package/dist/models/PackageWeightSizeCheckRequest.d.ts +33 -0
- package/dist/models/PackageWeightSizeCheckRequest.js +60 -0
- package/dist/models/PackageWeightSizeCheckRequest.js.map +1 -0
- package/dist/models/PackageWeightSizeCheckResponse.d.ts +19 -0
- package/dist/models/PackageWeightSizeCheckResponse.js +69 -0
- package/dist/models/PackageWeightSizeCheckResponse.js.map +1 -0
- package/dist/models/PackageWeightSizeCheckResponseBody.d.ts +70 -0
- package/dist/models/PackageWeightSizeCheckResponseBody.js +88 -0
- package/dist/models/PackageWeightSizeCheckResponseBody.js.map +1 -0
- package/dist/models/QueryAsyncTaskResultRequest.d.ts +21 -0
- package/dist/models/QueryAsyncTaskResultRequest.js +58 -0
- package/dist/models/QueryAsyncTaskResultRequest.js.map +1 -0
- package/dist/models/QueryAsyncTaskResultResponse.d.ts +19 -0
- package/dist/models/QueryAsyncTaskResultResponse.js +69 -0
- package/dist/models/QueryAsyncTaskResultResponse.js.map +1 -0
- package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +95 -0
- package/dist/models/QueryAsyncTaskResultResponseBody.js +97 -0
- package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -0
- package/dist/models/SizeChartDetectRequest.d.ts +31 -0
- package/dist/models/SizeChartDetectRequest.js +60 -0
- package/dist/models/SizeChartDetectRequest.js.map +1 -0
- package/dist/models/SizeChartDetectResponse.d.ts +19 -0
- package/dist/models/SizeChartDetectResponse.js +69 -0
- package/dist/models/SizeChartDetectResponse.js.map +1 -0
- package/dist/models/SizeChartDetectResponseBody.d.ts +82 -0
- package/dist/models/SizeChartDetectResponseBody.js +93 -0
- package/dist/models/SizeChartDetectResponseBody.js.map +1 -0
- package/dist/models/SizeChartExtractRequest.d.ts +39 -0
- package/dist/models/SizeChartExtractRequest.js +65 -0
- package/dist/models/SizeChartExtractRequest.js.map +1 -0
- package/dist/models/SizeChartExtractResponse.d.ts +19 -0
- package/dist/models/SizeChartExtractResponse.js +69 -0
- package/dist/models/SizeChartExtractResponse.js.map +1 -0
- package/dist/models/SizeChartExtractResponseBody.d.ts +70 -0
- package/dist/models/SizeChartExtractResponseBody.js +88 -0
- package/dist/models/SizeChartExtractResponseBody.js.map +1 -0
- package/dist/models/SizeChartExtractShrinkRequest.d.ts +39 -0
- package/dist/models/SizeChartExtractShrinkRequest.js +62 -0
- package/dist/models/SizeChartExtractShrinkRequest.js.map +1 -0
- package/dist/models/TextCorrectRequest.d.ts +33 -0
- package/dist/models/TextCorrectRequest.js +60 -0
- package/dist/models/TextCorrectRequest.js.map +1 -0
- package/dist/models/TextCorrectResponse.d.ts +19 -0
- package/dist/models/TextCorrectResponse.js +69 -0
- package/dist/models/TextCorrectResponse.js.map +1 -0
- package/dist/models/TextCorrectResponseBody.d.ts +80 -0
- package/dist/models/TextCorrectResponseBody.js +93 -0
- package/dist/models/TextCorrectResponseBody.js.map +1 -0
- package/dist/models/TextTranslateRequest.d.ts +57 -0
- package/dist/models/TextTranslateRequest.js +69 -0
- package/dist/models/TextTranslateRequest.js.map +1 -0
- package/dist/models/TextTranslateResponse.d.ts +19 -0
- package/dist/models/TextTranslateResponse.js +69 -0
- package/dist/models/TextTranslateResponse.js.map +1 -0
- package/dist/models/TextTranslateResponseBody.d.ts +113 -0
- package/dist/models/TextTranslateResponseBody.js +119 -0
- package/dist/models/TextTranslateResponseBody.js.map +1 -0
- package/dist/models/TextTranslateShrinkRequest.d.ts +57 -0
- package/dist/models/TextTranslateShrinkRequest.js +66 -0
- package/dist/models/TextTranslateShrinkRequest.js.map +1 -0
- package/dist/models/VisionFlowRequest.d.ts +153 -0
- package/dist/models/VisionFlowRequest.js +105 -0
- package/dist/models/VisionFlowRequest.js.map +1 -0
- package/dist/models/VisionFlowResponse.d.ts +19 -0
- package/dist/models/VisionFlowResponse.js +69 -0
- package/dist/models/VisionFlowResponse.js.map +1 -0
- package/dist/models/VisionFlowResponseBody.d.ts +70 -0
- package/dist/models/VisionFlowResponseBody.js +88 -0
- package/dist/models/VisionFlowResponseBody.js.map +1 -0
- package/dist/models/VisionFlowShrinkRequest.d.ts +153 -0
- package/dist/models/VisionFlowShrinkRequest.js +90 -0
- package/dist/models/VisionFlowShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +95 -0
- package/dist/models/model.js +195 -0
- package/dist/models/model.js.map +1 -0
- package/package.json +29 -0
- package/src/client.ts +2378 -0
- package/src/models/AssetOptimizeLiteRequest.ts +122 -0
- package/src/models/AssetOptimizeLiteResponse.ts +40 -0
- package/src/models/AssetOptimizeLiteResponseBody.ts +106 -0
- package/src/models/AssetOptimizeProRequest.ts +155 -0
- package/src/models/AssetOptimizeProResponse.ts +40 -0
- package/src/models/AssetOptimizeProResponseBody.ts +104 -0
- package/src/models/AssetOptimizeProShrinkRequest.ts +152 -0
- package/src/models/CategoryAttributeMatchRequest.ts +119 -0
- package/src/models/CategoryAttributeMatchResponse.ts +40 -0
- package/src/models/CategoryAttributeMatchResponseBody.ts +314 -0
- package/src/models/CategoryAttributeMatchShrinkRequest.ts +116 -0
- package/src/models/CategoryMatchRequest.ts +104 -0
- package/src/models/CategoryMatchResponse.ts +40 -0
- package/src/models/CategoryMatchResponseBody.ts +164 -0
- package/src/models/DocumentTranslateRequest.ts +70 -0
- package/src/models/DocumentTranslateResponse.ts +40 -0
- package/src/models/DocumentTranslateResponseBody.ts +106 -0
- package/src/models/ImageCroppingRequest.ts +60 -0
- package/src/models/ImageCroppingResponse.ts +40 -0
- package/src/models/ImageCroppingResponseBody.ts +137 -0
- package/src/models/ImageMattingRequest.ts +80 -0
- package/src/models/ImageMattingResponse.ts +40 -0
- package/src/models/ImageMattingResponseBody.ts +149 -0
- package/src/models/ImageRecognitionRequest.ts +112 -0
- package/src/models/ImageRecognitionResponse.ts +40 -0
- package/src/models/ImageRecognitionResponseBody.ts +237 -0
- package/src/models/ImageRecognitionShrinkRequest.ts +106 -0
- package/src/models/ImageRemoveRequest.ts +74 -0
- package/src/models/ImageRemoveResponse.ts +40 -0
- package/src/models/ImageRemoveResponseBody.ts +137 -0
- package/src/models/ImageRemoveShrinkRequest.ts +68 -0
- package/src/models/ImageTranslationProRequest.ts +110 -0
- package/src/models/ImageTranslationProResponse.ts +40 -0
- package/src/models/ImageTranslationProResponseBody.ts +774 -0
- package/src/models/ImageTranslationStandardRequest.ts +90 -0
- package/src/models/ImageTranslationStandardResponse.ts +40 -0
- package/src/models/ImageTranslationStandardResponseBody.ts +117 -0
- package/src/models/LanguageDetectRequest.ts +36 -0
- package/src/models/LanguageDetectResponse.ts +40 -0
- package/src/models/LanguageDetectResponseBody.ts +119 -0
- package/src/models/PackageWeightSizeCheckRequest.ts +48 -0
- package/src/models/PackageWeightSizeCheckResponse.ts +40 -0
- package/src/models/PackageWeightSizeCheckResponseBody.ts +104 -0
- package/src/models/QueryAsyncTaskResultRequest.ts +34 -0
- package/src/models/QueryAsyncTaskResultResponse.ts +40 -0
- package/src/models/QueryAsyncTaskResultResponseBody.ts +136 -0
- package/src/models/SizeChartDetectRequest.ts +46 -0
- package/src/models/SizeChartDetectResponse.ts +40 -0
- package/src/models/SizeChartDetectResponseBody.ts +119 -0
- package/src/models/SizeChartExtractRequest.ts +59 -0
- package/src/models/SizeChartExtractResponse.ts +40 -0
- package/src/models/SizeChartExtractResponseBody.ts +104 -0
- package/src/models/SizeChartExtractShrinkRequest.ts +56 -0
- package/src/models/TextCorrectRequest.ts +48 -0
- package/src/models/TextCorrectResponse.ts +40 -0
- package/src/models/TextCorrectResponseBody.ts +117 -0
- package/src/models/TextTranslateRequest.ts +81 -0
- package/src/models/TextTranslateResponse.ts +40 -0
- package/src/models/TextTranslateResponseBody.ts +167 -0
- package/src/models/TextTranslateShrinkRequest.ts +78 -0
- package/src/models/VisionFlowRequest.ts +213 -0
- package/src/models/VisionFlowResponse.ts +40 -0
- package/src/models/VisionFlowResponseBody.ts +104 -0
- package/src/models/VisionFlowShrinkRequest.ts +198 -0
- package/src/models/model.ts +95 -0
|
@@ -0,0 +1,774 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 0
|
|
12
|
+
*/
|
|
13
|
+
degree?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The height.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 0
|
|
20
|
+
*/
|
|
21
|
+
height?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The left coordinate.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 0
|
|
28
|
+
*/
|
|
29
|
+
left?: number;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The top coordinate.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 0
|
|
36
|
+
*/
|
|
37
|
+
top?: number;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The width.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* 0
|
|
44
|
+
*/
|
|
45
|
+
width?: number;
|
|
46
|
+
static names(): { [key: string]: string } {
|
|
47
|
+
return {
|
|
48
|
+
degree: 'Degree',
|
|
49
|
+
height: 'Height',
|
|
50
|
+
left: 'Left',
|
|
51
|
+
top: 'Top',
|
|
52
|
+
width: 'Width',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
static types(): { [key: string]: any } {
|
|
57
|
+
return {
|
|
58
|
+
degree: 'number',
|
|
59
|
+
height: 'number',
|
|
60
|
+
left: 'number',
|
|
61
|
+
top: 'number',
|
|
62
|
+
width: 'number',
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
validate() {
|
|
67
|
+
super.validate();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
constructor(map?: { [key: string]: any }) {
|
|
71
|
+
super(map);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect extends $dara.Model {
|
|
76
|
+
/**
|
|
77
|
+
* @remarks
|
|
78
|
+
* The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* 0
|
|
82
|
+
*/
|
|
83
|
+
degree?: number;
|
|
84
|
+
/**
|
|
85
|
+
* @remarks
|
|
86
|
+
* The height.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* 54
|
|
90
|
+
*/
|
|
91
|
+
height?: number;
|
|
92
|
+
/**
|
|
93
|
+
* @remarks
|
|
94
|
+
* The left coordinate.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* 43
|
|
98
|
+
*/
|
|
99
|
+
left?: number;
|
|
100
|
+
/**
|
|
101
|
+
* @remarks
|
|
102
|
+
* The top coordinate.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* 83
|
|
106
|
+
*/
|
|
107
|
+
top?: number;
|
|
108
|
+
/**
|
|
109
|
+
* @remarks
|
|
110
|
+
* The width.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* 418
|
|
114
|
+
*/
|
|
115
|
+
width?: number;
|
|
116
|
+
static names(): { [key: string]: string } {
|
|
117
|
+
return {
|
|
118
|
+
degree: 'Degree',
|
|
119
|
+
height: 'Height',
|
|
120
|
+
left: 'Left',
|
|
121
|
+
top: 'Top',
|
|
122
|
+
width: 'Width',
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
static types(): { [key: string]: any } {
|
|
127
|
+
return {
|
|
128
|
+
degree: 'number',
|
|
129
|
+
height: 'number',
|
|
130
|
+
left: 'number',
|
|
131
|
+
top: 'number',
|
|
132
|
+
width: 'number',
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
validate() {
|
|
137
|
+
super.validate();
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
constructor(map?: { [key: string]: any }) {
|
|
141
|
+
super(map);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect extends $dara.Model {
|
|
146
|
+
/**
|
|
147
|
+
* @remarks
|
|
148
|
+
* The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* 0
|
|
152
|
+
*/
|
|
153
|
+
degree?: number;
|
|
154
|
+
/**
|
|
155
|
+
* @remarks
|
|
156
|
+
* The height.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* 30
|
|
160
|
+
*/
|
|
161
|
+
height?: number;
|
|
162
|
+
/**
|
|
163
|
+
* @remarks
|
|
164
|
+
* The left coordinate.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* 8
|
|
168
|
+
*/
|
|
169
|
+
left?: number;
|
|
170
|
+
/**
|
|
171
|
+
* @remarks
|
|
172
|
+
* The top coordinate.
|
|
173
|
+
*
|
|
174
|
+
* @example
|
|
175
|
+
* 95
|
|
176
|
+
*/
|
|
177
|
+
top?: number;
|
|
178
|
+
/**
|
|
179
|
+
* @remarks
|
|
180
|
+
* The width.
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* 488
|
|
184
|
+
*/
|
|
185
|
+
width?: number;
|
|
186
|
+
static names(): { [key: string]: string } {
|
|
187
|
+
return {
|
|
188
|
+
degree: 'Degree',
|
|
189
|
+
height: 'Height',
|
|
190
|
+
left: 'Left',
|
|
191
|
+
top: 'Top',
|
|
192
|
+
width: 'Width',
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
static types(): { [key: string]: any } {
|
|
197
|
+
return {
|
|
198
|
+
degree: 'number',
|
|
199
|
+
height: 'number',
|
|
200
|
+
left: 'number',
|
|
201
|
+
top: 'number',
|
|
202
|
+
width: 'number',
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
validate() {
|
|
207
|
+
super.validate();
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
constructor(map?: { [key: string]: any }) {
|
|
211
|
+
super(map);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts extends $dara.Model {
|
|
216
|
+
/**
|
|
217
|
+
* @remarks
|
|
218
|
+
* The color of the translated text.
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* #515151
|
|
222
|
+
*/
|
|
223
|
+
color?: string;
|
|
224
|
+
/**
|
|
225
|
+
* @remarks
|
|
226
|
+
* The font size of the translated text.
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* 29
|
|
230
|
+
*/
|
|
231
|
+
fontsize?: number;
|
|
232
|
+
/**
|
|
233
|
+
* @remarks
|
|
234
|
+
* The horizontal layout. Valid values: center, left, right.
|
|
235
|
+
*
|
|
236
|
+
* @example
|
|
237
|
+
* center
|
|
238
|
+
*/
|
|
239
|
+
horizontalLayout?: string;
|
|
240
|
+
/**
|
|
241
|
+
* @remarks
|
|
242
|
+
* The coordinates of the image repair area.
|
|
243
|
+
*/
|
|
244
|
+
imageRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect;
|
|
245
|
+
/**
|
|
246
|
+
* @remarks
|
|
247
|
+
* The target language code for translation.
|
|
248
|
+
*
|
|
249
|
+
* @example
|
|
250
|
+
* en
|
|
251
|
+
*/
|
|
252
|
+
language?: string;
|
|
253
|
+
/**
|
|
254
|
+
* @remarks
|
|
255
|
+
* The number of lines in the text box.
|
|
256
|
+
*
|
|
257
|
+
* @example
|
|
258
|
+
* 1
|
|
259
|
+
*/
|
|
260
|
+
lineCount?: number;
|
|
261
|
+
/**
|
|
262
|
+
* @remarks
|
|
263
|
+
* The Ovis model error message and execution time.
|
|
264
|
+
*
|
|
265
|
+
* @example
|
|
266
|
+
* | ovis time: 0.748
|
|
267
|
+
*/
|
|
268
|
+
ovisErrMsg?: string;
|
|
269
|
+
/**
|
|
270
|
+
* @remarks
|
|
271
|
+
* The coordinates of the text box area.
|
|
272
|
+
*/
|
|
273
|
+
textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect;
|
|
274
|
+
/**
|
|
275
|
+
* @remarks
|
|
276
|
+
* Indicates whether the TextItem is valid. The item is invalid if this value does not exist or is false.
|
|
277
|
+
*
|
|
278
|
+
* @example
|
|
279
|
+
* true
|
|
280
|
+
*/
|
|
281
|
+
valid?: boolean;
|
|
282
|
+
/**
|
|
283
|
+
* @remarks
|
|
284
|
+
* The translated text content.
|
|
285
|
+
*
|
|
286
|
+
* @example
|
|
287
|
+
* Adorable Design · Crisp Bell Sound
|
|
288
|
+
*/
|
|
289
|
+
value?: string;
|
|
290
|
+
/**
|
|
291
|
+
* @remarks
|
|
292
|
+
* The vertical layout. Valid values: center, top, down.
|
|
293
|
+
*
|
|
294
|
+
* @example
|
|
295
|
+
* center
|
|
296
|
+
*/
|
|
297
|
+
verticalLayout?: string;
|
|
298
|
+
static names(): { [key: string]: string } {
|
|
299
|
+
return {
|
|
300
|
+
color: 'Color',
|
|
301
|
+
fontsize: 'Fontsize',
|
|
302
|
+
horizontalLayout: 'HorizontalLayout',
|
|
303
|
+
imageRect: 'ImageRect',
|
|
304
|
+
language: 'Language',
|
|
305
|
+
lineCount: 'LineCount',
|
|
306
|
+
ovisErrMsg: 'OvisErrMsg',
|
|
307
|
+
textRect: 'TextRect',
|
|
308
|
+
valid: 'Valid',
|
|
309
|
+
value: 'Value',
|
|
310
|
+
verticalLayout: 'VerticalLayout',
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
static types(): { [key: string]: any } {
|
|
315
|
+
return {
|
|
316
|
+
color: 'string',
|
|
317
|
+
fontsize: 'number',
|
|
318
|
+
horizontalLayout: 'string',
|
|
319
|
+
imageRect: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect,
|
|
320
|
+
language: 'string',
|
|
321
|
+
lineCount: 'number',
|
|
322
|
+
ovisErrMsg: 'string',
|
|
323
|
+
textRect: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect,
|
|
324
|
+
valid: 'boolean',
|
|
325
|
+
value: 'string',
|
|
326
|
+
verticalLayout: 'string',
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
validate() {
|
|
331
|
+
if(this.imageRect && typeof (this.imageRect as any).validate === 'function') {
|
|
332
|
+
(this.imageRect as any).validate();
|
|
333
|
+
}
|
|
334
|
+
if(this.textRect && typeof (this.textRect as any).validate === 'function') {
|
|
335
|
+
(this.textRect as any).validate();
|
|
336
|
+
}
|
|
337
|
+
super.validate();
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
constructor(map?: { [key: string]: any }) {
|
|
341
|
+
super(map);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extends $dara.Model {
|
|
346
|
+
/**
|
|
347
|
+
* @remarks
|
|
348
|
+
* The text color, such as #ffffff.
|
|
349
|
+
*
|
|
350
|
+
* @example
|
|
351
|
+
* #515151
|
|
352
|
+
*/
|
|
353
|
+
color?: string;
|
|
354
|
+
/**
|
|
355
|
+
* @remarks
|
|
356
|
+
* The original text before translation.
|
|
357
|
+
*
|
|
358
|
+
* @example
|
|
359
|
+
* 萌趣造型·清脆响铃
|
|
360
|
+
*/
|
|
361
|
+
content?: string;
|
|
362
|
+
/**
|
|
363
|
+
* @remarks
|
|
364
|
+
* The font size.
|
|
365
|
+
*
|
|
366
|
+
* @example
|
|
367
|
+
* 32
|
|
368
|
+
*/
|
|
369
|
+
fontsize?: number;
|
|
370
|
+
/**
|
|
371
|
+
* @remarks
|
|
372
|
+
* The horizontal layout. Valid values: center, left, right.
|
|
373
|
+
*
|
|
374
|
+
* @example
|
|
375
|
+
* left
|
|
376
|
+
*/
|
|
377
|
+
horizontalLayout?: string;
|
|
378
|
+
/**
|
|
379
|
+
* @remarks
|
|
380
|
+
* The number of lines in the text box.
|
|
381
|
+
*
|
|
382
|
+
* @example
|
|
383
|
+
* 1
|
|
384
|
+
*/
|
|
385
|
+
lineCount?: number;
|
|
386
|
+
/**
|
|
387
|
+
* @remarks
|
|
388
|
+
* The list of translated texts. Each element corresponds to the translation result for a target language.
|
|
389
|
+
*/
|
|
390
|
+
texts?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts[];
|
|
391
|
+
/**
|
|
392
|
+
* @remarks
|
|
393
|
+
* The vertical layout. Valid values: center, top, down.
|
|
394
|
+
*
|
|
395
|
+
* @example
|
|
396
|
+
* center
|
|
397
|
+
*/
|
|
398
|
+
verticalLayout?: string;
|
|
399
|
+
static names(): { [key: string]: string } {
|
|
400
|
+
return {
|
|
401
|
+
color: 'Color',
|
|
402
|
+
content: 'Content',
|
|
403
|
+
fontsize: 'Fontsize',
|
|
404
|
+
horizontalLayout: 'HorizontalLayout',
|
|
405
|
+
lineCount: 'LineCount',
|
|
406
|
+
texts: 'Texts',
|
|
407
|
+
verticalLayout: 'VerticalLayout',
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
static types(): { [key: string]: any } {
|
|
412
|
+
return {
|
|
413
|
+
color: 'string',
|
|
414
|
+
content: 'string',
|
|
415
|
+
fontsize: 'number',
|
|
416
|
+
horizontalLayout: 'string',
|
|
417
|
+
lineCount: 'number',
|
|
418
|
+
texts: { 'type': 'array', 'itemType': ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts },
|
|
419
|
+
verticalLayout: 'string',
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
validate() {
|
|
424
|
+
if(Array.isArray(this.texts)) {
|
|
425
|
+
$dara.Model.validateArray(this.texts);
|
|
426
|
+
}
|
|
427
|
+
super.validate();
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
constructor(map?: { [key: string]: any }) {
|
|
431
|
+
super(map);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.Model {
|
|
436
|
+
/**
|
|
437
|
+
* @remarks
|
|
438
|
+
* The list of font types.
|
|
439
|
+
*/
|
|
440
|
+
font?: string[];
|
|
441
|
+
/**
|
|
442
|
+
* @remarks
|
|
443
|
+
* The coordinate information of the product bounding box area.
|
|
444
|
+
*/
|
|
445
|
+
goodsRects?: ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects;
|
|
446
|
+
/**
|
|
447
|
+
* @remarks
|
|
448
|
+
* The list of target languages for translation.
|
|
449
|
+
*/
|
|
450
|
+
languages?: string[];
|
|
451
|
+
/**
|
|
452
|
+
* @remarks
|
|
453
|
+
* The URL of the image with all text removed.
|
|
454
|
+
*
|
|
455
|
+
* @example
|
|
456
|
+
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/repaired.png
|
|
457
|
+
*/
|
|
458
|
+
repairedUrl?: string;
|
|
459
|
+
/**
|
|
460
|
+
* @remarks
|
|
461
|
+
* The collection of global IDs of translated images.
|
|
462
|
+
*/
|
|
463
|
+
resultImageIds?: string[];
|
|
464
|
+
/**
|
|
465
|
+
* @remarks
|
|
466
|
+
* The list of text boxes, which contains information about all recognized text areas.
|
|
467
|
+
*/
|
|
468
|
+
textAreas?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas[];
|
|
469
|
+
static names(): { [key: string]: string } {
|
|
470
|
+
return {
|
|
471
|
+
font: 'Font',
|
|
472
|
+
goodsRects: 'GoodsRects',
|
|
473
|
+
languages: 'Languages',
|
|
474
|
+
repairedUrl: 'RepairedUrl',
|
|
475
|
+
resultImageIds: 'ResultImageIds',
|
|
476
|
+
textAreas: 'TextAreas',
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
static types(): { [key: string]: any } {
|
|
481
|
+
return {
|
|
482
|
+
font: { 'type': 'array', 'itemType': 'string' },
|
|
483
|
+
goodsRects: ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects,
|
|
484
|
+
languages: { 'type': 'array', 'itemType': 'string' },
|
|
485
|
+
repairedUrl: 'string',
|
|
486
|
+
resultImageIds: { 'type': 'array', 'itemType': 'string' },
|
|
487
|
+
textAreas: { 'type': 'array', 'itemType': ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas },
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
validate() {
|
|
492
|
+
if(Array.isArray(this.font)) {
|
|
493
|
+
$dara.Model.validateArray(this.font);
|
|
494
|
+
}
|
|
495
|
+
if(this.goodsRects && typeof (this.goodsRects as any).validate === 'function') {
|
|
496
|
+
(this.goodsRects as any).validate();
|
|
497
|
+
}
|
|
498
|
+
if(Array.isArray(this.languages)) {
|
|
499
|
+
$dara.Model.validateArray(this.languages);
|
|
500
|
+
}
|
|
501
|
+
if(Array.isArray(this.resultImageIds)) {
|
|
502
|
+
$dara.Model.validateArray(this.resultImageIds);
|
|
503
|
+
}
|
|
504
|
+
if(Array.isArray(this.textAreas)) {
|
|
505
|
+
$dara.Model.validateArray(this.textAreas);
|
|
506
|
+
}
|
|
507
|
+
super.validate();
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
constructor(map?: { [key: string]: any }) {
|
|
511
|
+
super(map);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
export class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara.Model {
|
|
516
|
+
/**
|
|
517
|
+
* @remarks
|
|
518
|
+
* The URL of the translated image file.
|
|
519
|
+
*
|
|
520
|
+
* @example
|
|
521
|
+
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
|
|
522
|
+
*/
|
|
523
|
+
fileUrl?: string;
|
|
524
|
+
/**
|
|
525
|
+
* @remarks
|
|
526
|
+
* The target language for translation.
|
|
527
|
+
*
|
|
528
|
+
* @example
|
|
529
|
+
* en
|
|
530
|
+
*/
|
|
531
|
+
language?: string;
|
|
532
|
+
static names(): { [key: string]: string } {
|
|
533
|
+
return {
|
|
534
|
+
fileUrl: 'FileUrl',
|
|
535
|
+
language: 'Language',
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
static types(): { [key: string]: any } {
|
|
540
|
+
return {
|
|
541
|
+
fileUrl: 'string',
|
|
542
|
+
language: 'string',
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
validate() {
|
|
547
|
+
super.validate();
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
constructor(map?: { [key: string]: any }) {
|
|
551
|
+
super(map);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
|
|
556
|
+
/**
|
|
557
|
+
* @remarks
|
|
558
|
+
* The editor information, which contains recognized information such as text areas, product areas, and fonts.
|
|
559
|
+
*/
|
|
560
|
+
editInfo?: ImageTranslationProResponseBodyDataGenFilesEditInfo;
|
|
561
|
+
/**
|
|
562
|
+
* @remarks
|
|
563
|
+
* The collection of translation results.
|
|
564
|
+
*/
|
|
565
|
+
resultList?: ImageTranslationProResponseBodyDataGenFilesResultList[];
|
|
566
|
+
/**
|
|
567
|
+
* @remarks
|
|
568
|
+
* The URL of the original image.
|
|
569
|
+
*
|
|
570
|
+
* @example
|
|
571
|
+
* https://img.alicdn.com/imgextra/i3/O1CN01HTDhDi28Fd85ZYs7H_!!6000000007903-0-tps-800-800.jpg
|
|
572
|
+
*/
|
|
573
|
+
srcImage?: string;
|
|
574
|
+
static names(): { [key: string]: string } {
|
|
575
|
+
return {
|
|
576
|
+
editInfo: 'EditInfo',
|
|
577
|
+
resultList: 'ResultList',
|
|
578
|
+
srcImage: 'SrcImage',
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
static types(): { [key: string]: any } {
|
|
583
|
+
return {
|
|
584
|
+
editInfo: ImageTranslationProResponseBodyDataGenFilesEditInfo,
|
|
585
|
+
resultList: { 'type': 'array', 'itemType': ImageTranslationProResponseBodyDataGenFilesResultList },
|
|
586
|
+
srcImage: 'string',
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
validate() {
|
|
591
|
+
if(this.editInfo && typeof (this.editInfo as any).validate === 'function') {
|
|
592
|
+
(this.editInfo as any).validate();
|
|
593
|
+
}
|
|
594
|
+
if(Array.isArray(this.resultList)) {
|
|
595
|
+
$dara.Model.validateArray(this.resultList);
|
|
596
|
+
}
|
|
597
|
+
super.validate();
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
constructor(map?: { [key: string]: any }) {
|
|
601
|
+
super(map);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
|
|
606
|
+
/**
|
|
607
|
+
* @remarks
|
|
608
|
+
* The URL of the image translation result image.
|
|
609
|
+
*
|
|
610
|
+
* @example
|
|
611
|
+
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
|
|
612
|
+
*/
|
|
613
|
+
fileUrl?: string;
|
|
614
|
+
/**
|
|
615
|
+
* @remarks
|
|
616
|
+
* The target language for image translation.
|
|
617
|
+
*
|
|
618
|
+
* @example
|
|
619
|
+
* en
|
|
620
|
+
*/
|
|
621
|
+
language?: string;
|
|
622
|
+
static names(): { [key: string]: string } {
|
|
623
|
+
return {
|
|
624
|
+
fileUrl: 'FileUrl',
|
|
625
|
+
language: 'Language',
|
|
626
|
+
};
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
static types(): { [key: string]: any } {
|
|
630
|
+
return {
|
|
631
|
+
fileUrl: 'string',
|
|
632
|
+
language: 'string',
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
validate() {
|
|
637
|
+
super.validate();
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
constructor(map?: { [key: string]: any }) {
|
|
641
|
+
super(map);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
export class ImageTranslationProResponseBodyData extends $dara.Model {
|
|
646
|
+
/**
|
|
647
|
+
* @remarks
|
|
648
|
+
* The editor protocol, which contains the translation result files and editing information.
|
|
649
|
+
*/
|
|
650
|
+
genFiles?: ImageTranslationProResponseBodyDataGenFiles[];
|
|
651
|
+
/**
|
|
652
|
+
* @remarks
|
|
653
|
+
* The list of image translation results.
|
|
654
|
+
*/
|
|
655
|
+
resultList?: ImageTranslationProResponseBodyDataResultList[];
|
|
656
|
+
/**
|
|
657
|
+
* @remarks
|
|
658
|
+
* The asynchronous task ID. This is not returned for synchronous calls.
|
|
659
|
+
*
|
|
660
|
+
* @example
|
|
661
|
+
* abc123-task-id
|
|
662
|
+
*/
|
|
663
|
+
taskId?: string;
|
|
664
|
+
/**
|
|
665
|
+
* @remarks
|
|
666
|
+
* The usage information, including the number of processed images.
|
|
667
|
+
*/
|
|
668
|
+
usageMap?: { [key: string]: number };
|
|
669
|
+
static names(): { [key: string]: string } {
|
|
670
|
+
return {
|
|
671
|
+
genFiles: 'GenFiles',
|
|
672
|
+
resultList: 'ResultList',
|
|
673
|
+
taskId: 'TaskId',
|
|
674
|
+
usageMap: 'UsageMap',
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
static types(): { [key: string]: any } {
|
|
679
|
+
return {
|
|
680
|
+
genFiles: { 'type': 'array', 'itemType': ImageTranslationProResponseBodyDataGenFiles },
|
|
681
|
+
resultList: { 'type': 'array', 'itemType': ImageTranslationProResponseBodyDataResultList },
|
|
682
|
+
taskId: 'string',
|
|
683
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
684
|
+
};
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
validate() {
|
|
688
|
+
if(Array.isArray(this.genFiles)) {
|
|
689
|
+
$dara.Model.validateArray(this.genFiles);
|
|
690
|
+
}
|
|
691
|
+
if(Array.isArray(this.resultList)) {
|
|
692
|
+
$dara.Model.validateArray(this.resultList);
|
|
693
|
+
}
|
|
694
|
+
if(this.usageMap) {
|
|
695
|
+
$dara.Model.validateMap(this.usageMap);
|
|
696
|
+
}
|
|
697
|
+
super.validate();
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
constructor(map?: { [key: string]: any }) {
|
|
701
|
+
super(map);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
export class ImageTranslationProResponseBody extends $dara.Model {
|
|
706
|
+
/**
|
|
707
|
+
* @remarks
|
|
708
|
+
* The response code. A value of 200 indicates success. For other response codes, see the error codes.
|
|
709
|
+
*
|
|
710
|
+
* @example
|
|
711
|
+
* 200
|
|
712
|
+
*/
|
|
713
|
+
code?: string;
|
|
714
|
+
/**
|
|
715
|
+
* @remarks
|
|
716
|
+
* The translation result data. ResultList contains the URL of the translation result. GenFiles contains EditInfo with the recognized text information.
|
|
717
|
+
*/
|
|
718
|
+
data?: ImageTranslationProResponseBodyData;
|
|
719
|
+
/**
|
|
720
|
+
* @remarks
|
|
721
|
+
* The error message. "Success" is returned for successful calls. A specific error message is returned for failed calls, such as "The content contains sensitive data. Try other input.".
|
|
722
|
+
*
|
|
723
|
+
* @example
|
|
724
|
+
* Success
|
|
725
|
+
*/
|
|
726
|
+
message?: string;
|
|
727
|
+
/**
|
|
728
|
+
* @remarks
|
|
729
|
+
* The request ID, which uniquely identifies the request.
|
|
730
|
+
*
|
|
731
|
+
* @example
|
|
732
|
+
* 61785C32-80C2-19A3-9E55-2C3702C84B40
|
|
733
|
+
*/
|
|
734
|
+
requestId?: string;
|
|
735
|
+
/**
|
|
736
|
+
* @remarks
|
|
737
|
+
* Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
|
|
738
|
+
*
|
|
739
|
+
* @example
|
|
740
|
+
* true
|
|
741
|
+
*/
|
|
742
|
+
success?: boolean;
|
|
743
|
+
static names(): { [key: string]: string } {
|
|
744
|
+
return {
|
|
745
|
+
code: 'Code',
|
|
746
|
+
data: 'Data',
|
|
747
|
+
message: 'Message',
|
|
748
|
+
requestId: 'RequestId',
|
|
749
|
+
success: 'Success',
|
|
750
|
+
};
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
static types(): { [key: string]: any } {
|
|
754
|
+
return {
|
|
755
|
+
code: 'string',
|
|
756
|
+
data: ImageTranslationProResponseBodyData,
|
|
757
|
+
message: 'string',
|
|
758
|
+
requestId: 'string',
|
|
759
|
+
success: 'boolean',
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
validate() {
|
|
764
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
765
|
+
(this.data as any).validate();
|
|
766
|
+
}
|
|
767
|
+
super.validate();
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
constructor(map?: { [key: string]: any }) {
|
|
771
|
+
super(map);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
|