@alicloud/aidge20260428 5.3.1 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/client.d.ts +651 -526
  2. package/dist/client.js +689 -529
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AssetOptimizeLiteRequest.d.ts +10 -10
  5. package/dist/models/AssetOptimizeLiteResponseBody.d.ts +5 -5
  6. package/dist/models/AssetOptimizeProRequest.d.ts +6 -6
  7. package/dist/models/AssetOptimizeProResponseBody.d.ts +4 -4
  8. package/dist/models/AssetOptimizeProShrinkRequest.d.ts +6 -6
  9. package/dist/models/CategoryAttributeMatchRequest.d.ts +7 -7
  10. package/dist/models/CategoryAttributeMatchResponseBody.d.ts +7 -7
  11. package/dist/models/CategoryAttributeMatchShrinkRequest.d.ts +7 -7
  12. package/dist/models/CategoryMatchRequest.d.ts +8 -8
  13. package/dist/models/CategoryMatchResponseBody.d.ts +10 -10
  14. package/dist/models/DiduiAreaDeductionRequest.d.ts +1 -1
  15. package/dist/models/DiduiAreaDeductionResponseBody.d.ts +1 -1
  16. package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +1 -1
  17. package/dist/models/DocumentTranslateRequest.d.ts +6 -2
  18. package/dist/models/DocumentTranslateRequest.js.map +1 -1
  19. package/dist/models/DocumentTranslateResponseBody.d.ts +4 -3
  20. package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
  21. package/dist/models/EcomVideoRecreationRequest.d.ts +156 -0
  22. package/dist/models/EcomVideoRecreationRequest.js +150 -0
  23. package/dist/models/EcomVideoRecreationRequest.js.map +1 -0
  24. package/dist/models/EcomVideoRecreationResponse.d.ts +19 -0
  25. package/dist/models/EcomVideoRecreationResponse.js +69 -0
  26. package/dist/models/EcomVideoRecreationResponse.js.map +1 -0
  27. package/dist/models/EcomVideoRecreationResponseBody.d.ts +70 -0
  28. package/dist/models/EcomVideoRecreationResponseBody.js +88 -0
  29. package/dist/models/EcomVideoRecreationResponseBody.js.map +1 -0
  30. package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +25 -0
  31. package/dist/models/EcomVideoRecreationShrinkRequest.js +60 -0
  32. package/dist/models/EcomVideoRecreationShrinkRequest.js.map +1 -0
  33. package/dist/models/ImageCroppingRequest.d.ts +3 -3
  34. package/dist/models/ImageCroppingResponseBody.d.ts +10 -8
  35. package/dist/models/ImageCroppingResponseBody.js.map +1 -1
  36. package/dist/models/ImageMattingRequest.d.ts +4 -3
  37. package/dist/models/ImageMattingRequest.js.map +1 -1
  38. package/dist/models/ImageMattingResponseBody.d.ts +1 -0
  39. package/dist/models/ImageMattingResponseBody.js.map +1 -1
  40. package/dist/models/ImageRecognitionRequest.d.ts +4 -4
  41. package/dist/models/ImageRecognitionResponseBody.d.ts +2 -2
  42. package/dist/models/ImageRecognitionShrinkRequest.d.ts +4 -4
  43. package/dist/models/ImageRemoveRequest.d.ts +24 -17
  44. package/dist/models/ImageRemoveRequest.js.map +1 -1
  45. package/dist/models/ImageRemoveResponseBody.d.ts +9 -8
  46. package/dist/models/ImageRemoveResponseBody.js.map +1 -1
  47. package/dist/models/ImageRemoveShrinkRequest.d.ts +24 -17
  48. package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
  49. package/dist/models/ImageTranslationPlusResponseBody.d.ts +3 -1
  50. package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -1
  51. package/dist/models/ImageTranslationProRequest.d.ts +14 -8
  52. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  53. package/dist/models/ImageTranslationProResponseBody.d.ts +19 -19
  54. package/dist/models/ImageTranslationStandardRequest.d.ts +9 -6
  55. package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
  56. package/dist/models/ImageTranslationStandardResponseBody.d.ts +8 -8
  57. package/dist/models/LanguageDetectRequest.d.ts +10 -2
  58. package/dist/models/LanguageDetectRequest.js +2 -0
  59. package/dist/models/LanguageDetectRequest.js.map +1 -1
  60. package/dist/models/LanguageDetectResponseBody.d.ts +5 -7
  61. package/dist/models/LanguageDetectResponseBody.js.map +1 -1
  62. package/dist/models/MaterialInspectionRequest.d.ts +5 -5
  63. package/dist/models/MaterialInspectionResponseBody.d.ts +14 -7
  64. package/dist/models/MaterialInspectionResponseBody.js.map +1 -1
  65. package/dist/models/MerchandisePlacementDetectionRequest.d.ts +4 -4
  66. package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +8 -8
  67. package/dist/models/PackageWeightSizeCheckRequest.d.ts +2 -2
  68. package/dist/models/PackageWeightSizeCheckResponseBody.d.ts +6 -6
  69. package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +5 -5
  70. package/dist/models/SizeChartDetectResponseBody.d.ts +1 -0
  71. package/dist/models/SizeChartDetectResponseBody.js.map +1 -1
  72. package/dist/models/SizeChartExtractRequest.d.ts +2 -2
  73. package/dist/models/SizeChartExtractResponseBody.d.ts +1 -1
  74. package/dist/models/SizeChartExtractShrinkRequest.d.ts +2 -2
  75. package/dist/models/TextCorrectRequest.d.ts +2 -2
  76. package/dist/models/TextCorrectResponseBody.d.ts +6 -6
  77. package/dist/models/TextTranslateRequest.d.ts +15 -6
  78. package/dist/models/TextTranslateRequest.js.map +1 -1
  79. package/dist/models/TextTranslateResponseBody.d.ts +4 -4
  80. package/dist/models/TextTranslateShrinkRequest.d.ts +15 -6
  81. package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
  82. package/dist/models/VideoGenerationRequest.d.ts +45 -8
  83. package/dist/models/VideoGenerationRequest.js.map +1 -1
  84. package/dist/models/VideoGenerationResponseBody.d.ts +5 -5
  85. package/dist/models/VideoTranslationResponseBody.d.ts +3 -3
  86. package/dist/models/VisionFlowRequest.d.ts +16 -16
  87. package/dist/models/VisionFlowResponseBody.d.ts +4 -4
  88. package/dist/models/VisionFlowShrinkRequest.d.ts +16 -16
  89. package/dist/models/model.d.ts +8 -0
  90. package/dist/models/model.js +20 -4
  91. package/dist/models/model.js.map +1 -1
  92. package/package.json +1 -1
  93. package/src/client.ts +698 -531
  94. package/src/models/AssetOptimizeLiteRequest.ts +10 -10
  95. package/src/models/AssetOptimizeLiteResponseBody.ts +5 -5
  96. package/src/models/AssetOptimizeProRequest.ts +6 -6
  97. package/src/models/AssetOptimizeProResponseBody.ts +4 -4
  98. package/src/models/AssetOptimizeProShrinkRequest.ts +6 -6
  99. package/src/models/CategoryAttributeMatchRequest.ts +7 -7
  100. package/src/models/CategoryAttributeMatchResponseBody.ts +7 -7
  101. package/src/models/CategoryAttributeMatchShrinkRequest.ts +7 -7
  102. package/src/models/CategoryMatchRequest.ts +8 -8
  103. package/src/models/CategoryMatchResponseBody.ts +10 -10
  104. package/src/models/DiduiAreaDeductionRequest.ts +1 -1
  105. package/src/models/DiduiAreaDeductionResponseBody.ts +1 -1
  106. package/src/models/DiduiAreaDeductionShrinkRequest.ts +1 -1
  107. package/src/models/DocumentTranslateRequest.ts +6 -2
  108. package/src/models/DocumentTranslateResponseBody.ts +4 -3
  109. package/src/models/EcomVideoRecreationRequest.ts +234 -0
  110. package/src/models/EcomVideoRecreationResponse.ts +40 -0
  111. package/src/models/EcomVideoRecreationResponseBody.ts +104 -0
  112. package/src/models/EcomVideoRecreationShrinkRequest.ts +40 -0
  113. package/src/models/ImageCroppingRequest.ts +3 -3
  114. package/src/models/ImageCroppingResponseBody.ts +10 -8
  115. package/src/models/ImageMattingRequest.ts +4 -3
  116. package/src/models/ImageMattingResponseBody.ts +1 -0
  117. package/src/models/ImageRecognitionRequest.ts +4 -4
  118. package/src/models/ImageRecognitionResponseBody.ts +2 -2
  119. package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
  120. package/src/models/ImageRemoveRequest.ts +24 -17
  121. package/src/models/ImageRemoveResponseBody.ts +9 -8
  122. package/src/models/ImageRemoveShrinkRequest.ts +24 -17
  123. package/src/models/ImageTranslationPlusResponseBody.ts +3 -1
  124. package/src/models/ImageTranslationProRequest.ts +14 -8
  125. package/src/models/ImageTranslationProResponseBody.ts +19 -19
  126. package/src/models/ImageTranslationStandardRequest.ts +9 -6
  127. package/src/models/ImageTranslationStandardResponseBody.ts +8 -8
  128. package/src/models/LanguageDetectRequest.ts +12 -2
  129. package/src/models/LanguageDetectResponseBody.ts +5 -7
  130. package/src/models/MaterialInspectionRequest.ts +5 -5
  131. package/src/models/MaterialInspectionResponseBody.ts +14 -7
  132. package/src/models/MerchandisePlacementDetectionRequest.ts +4 -4
  133. package/src/models/MerchandisePlacementDetectionResponseBody.ts +8 -8
  134. package/src/models/PackageWeightSizeCheckRequest.ts +2 -2
  135. package/src/models/PackageWeightSizeCheckResponseBody.ts +6 -6
  136. package/src/models/QueryAsyncTaskResultResponseBody.ts +5 -5
  137. package/src/models/SizeChartDetectResponseBody.ts +1 -0
  138. package/src/models/SizeChartExtractRequest.ts +2 -2
  139. package/src/models/SizeChartExtractResponseBody.ts +1 -1
  140. package/src/models/SizeChartExtractShrinkRequest.ts +2 -2
  141. package/src/models/TextCorrectRequest.ts +2 -2
  142. package/src/models/TextCorrectResponseBody.ts +6 -6
  143. package/src/models/TextTranslateRequest.ts +15 -6
  144. package/src/models/TextTranslateResponseBody.ts +4 -4
  145. package/src/models/TextTranslateShrinkRequest.ts +15 -6
  146. package/src/models/VideoGenerationRequest.ts +45 -8
  147. package/src/models/VideoGenerationResponseBody.ts +5 -5
  148. package/src/models/VideoTranslationResponseBody.ts +3 -3
  149. package/src/models/VisionFlowRequest.ts +16 -16
  150. package/src/models/VisionFlowResponseBody.ts +4 -4
  151. package/src/models/VisionFlowShrinkRequest.ts +16 -16
  152. package/src/models/model.ts +8 -0
@@ -0,0 +1,234 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class EcomVideoRecreationRequestInputProductInfo extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The product category.
9
+ * Example: Women\\"s Clothing/Sun Protection Jacket
10
+ *
11
+ * @example
12
+ * Women\\"s clothing/sun protection clothing
13
+ */
14
+ category?: string;
15
+ /**
16
+ * @remarks
17
+ * The actual product information (SKU, brand, color, material, size, specifications, logo, and usage), used to constrain voiceover facts.
18
+ * Example: Light moon yellow, cool-touch fabric, sun protection to the back of the hand, UPF50+
19
+ *
20
+ * @example
21
+ * Light moon yellow, cool-touch fabric, sun protection extending to the back of the hand, UPF50+
22
+ */
23
+ detail?: string;
24
+ /**
25
+ * @remarks
26
+ * Required for product replacement. The name of the target product. Maximum length: 200 characters.
27
+ * Example: Light Moon Yellow Cool-touch Sun Protection Jacket
28
+ *
29
+ * @example
30
+ * Light moon yellow cool-touch sun protection clothing
31
+ */
32
+ title?: string;
33
+ static names(): { [key: string]: string } {
34
+ return {
35
+ category: 'Category',
36
+ detail: 'Detail',
37
+ title: 'Title',
38
+ };
39
+ }
40
+
41
+ static types(): { [key: string]: any } {
42
+ return {
43
+ category: 'string',
44
+ detail: 'string',
45
+ title: 'string',
46
+ };
47
+ }
48
+
49
+ validate() {
50
+ super.validate();
51
+ }
52
+
53
+ constructor(map?: { [key: string]: any }) {
54
+ super(map);
55
+ }
56
+ }
57
+
58
+ export class EcomVideoRecreationRequestInput extends $dara.Model {
59
+ /**
60
+ * @remarks
61
+ * The description or supplementary constraints for the target person in person replacement mode. 1 to 500 characters. Required when PersonReferenceImageUrls is not provided.
62
+ * Example: The target person is an adult male. Retain the original clothing and actions.
63
+ *
64
+ * @example
65
+ * The target character is an adult male, with the original costume and movements preserved.
66
+ */
67
+ changeDescription?: string;
68
+ /**
69
+ * @remarks
70
+ * The replacement mode. Valid values: `product_replacement` (default) and `person_replacement`.
71
+ *
72
+ * @example
73
+ * product_replacement
74
+ */
75
+ mode?: string;
76
+ /**
77
+ * @remarks
78
+ * The URLs of target person reference images for person replacement. 1 to 5 images of the same person are supported. Arrange images in the following order: face close-up, front view, 45-degree angle, side view, and back view.
79
+ * Example: ["https://example.com/person.jpg"]
80
+ */
81
+ personReferenceImageUrls?: string[];
82
+ /**
83
+ * @remarks
84
+ * The URL of the target product image. Required for product replacement. Exactly one image must be provided. A clear subject with no occlusion and a clean background is recommended.
85
+ * Example: ["https://example.com/product.png"]
86
+ */
87
+ productImageUrls?: string[];
88
+ /**
89
+ * @remarks
90
+ * The target product information. Provide this parameter to improve voiceover accuracy.
91
+ */
92
+ productInfo?: EcomVideoRecreationRequestInputProductInfo;
93
+ /**
94
+ * @remarks
95
+ * The HTTP(S) URL of the reference video. The video duration must be in the range of 2 to 360 seconds. The URL must remain accessible during task execution. Set the URL validity period to at least 24 hours.
96
+ *
97
+ * This parameter is required.
98
+ *
99
+ * @example
100
+ * https://example.com/source.mp4
101
+ */
102
+ sourceVideoUrl?: string;
103
+ static names(): { [key: string]: string } {
104
+ return {
105
+ changeDescription: 'ChangeDescription',
106
+ mode: 'Mode',
107
+ personReferenceImageUrls: 'PersonReferenceImageUrls',
108
+ productImageUrls: 'ProductImageUrls',
109
+ productInfo: 'ProductInfo',
110
+ sourceVideoUrl: 'SourceVideoUrl',
111
+ };
112
+ }
113
+
114
+ static types(): { [key: string]: any } {
115
+ return {
116
+ changeDescription: 'string',
117
+ mode: 'string',
118
+ personReferenceImageUrls: { 'type': 'array', 'itemType': 'string' },
119
+ productImageUrls: { 'type': 'array', 'itemType': 'string' },
120
+ productInfo: EcomVideoRecreationRequestInputProductInfo,
121
+ sourceVideoUrl: 'string',
122
+ };
123
+ }
124
+
125
+ validate() {
126
+ if(Array.isArray(this.personReferenceImageUrls)) {
127
+ $dara.Model.validateArray(this.personReferenceImageUrls);
128
+ }
129
+ if(Array.isArray(this.productImageUrls)) {
130
+ $dara.Model.validateArray(this.productImageUrls);
131
+ }
132
+ if(this.productInfo && typeof (this.productInfo as any).validate === 'function') {
133
+ (this.productInfo as any).validate();
134
+ }
135
+ super.validate();
136
+ }
137
+
138
+ constructor(map?: { [key: string]: any }) {
139
+ super(map);
140
+ }
141
+ }
142
+
143
+ export class EcomVideoRecreationRequestOutput extends $dara.Model {
144
+ /**
145
+ * @remarks
146
+ * The target duration in seconds. `"auto"` (default): determined by the system. For product replacement, an integer from 5 to 60 can be specified. For person replacement, only `"auto"` is supported.
147
+ *
148
+ * @example
149
+ * auto
150
+ */
151
+ duration?: number;
152
+ /**
153
+ * @remarks
154
+ * The output resolution. Default value: `720p`.
155
+ *
156
+ * @example
157
+ * 720p、1080p
158
+ */
159
+ quality?: string;
160
+ /**
161
+ * @remarks
162
+ * The output aspect ratio. Default value: `auto` (automatically matches the original video).
163
+ *
164
+ * @example
165
+ * auto、9:16、3:4、1:1、4:3、16:9
166
+ */
167
+ ratio?: string;
168
+ static names(): { [key: string]: string } {
169
+ return {
170
+ duration: 'Duration',
171
+ quality: 'Quality',
172
+ ratio: 'Ratio',
173
+ };
174
+ }
175
+
176
+ static types(): { [key: string]: any } {
177
+ return {
178
+ duration: 'number',
179
+ quality: 'string',
180
+ ratio: 'string',
181
+ };
182
+ }
183
+
184
+ validate() {
185
+ super.validate();
186
+ }
187
+
188
+ constructor(map?: { [key: string]: any }) {
189
+ super(map);
190
+ }
191
+ }
192
+
193
+ export class EcomVideoRecreationRequest extends $dara.Model {
194
+ /**
195
+ * @remarks
196
+ * The input parameters for video remix.
197
+ *
198
+ * This parameter is required.
199
+ */
200
+ input?: EcomVideoRecreationRequestInput;
201
+ /**
202
+ * @remarks
203
+ * The output specifications for the final video.
204
+ */
205
+ output?: EcomVideoRecreationRequestOutput;
206
+ static names(): { [key: string]: string } {
207
+ return {
208
+ input: 'Input',
209
+ output: 'Output',
210
+ };
211
+ }
212
+
213
+ static types(): { [key: string]: any } {
214
+ return {
215
+ input: EcomVideoRecreationRequestInput,
216
+ output: EcomVideoRecreationRequestOutput,
217
+ };
218
+ }
219
+
220
+ validate() {
221
+ if(this.input && typeof (this.input as any).validate === 'function') {
222
+ (this.input as any).validate();
223
+ }
224
+ if(this.output && typeof (this.output as any).validate === 'function') {
225
+ (this.output as any).validate();
226
+ }
227
+ super.validate();
228
+ }
229
+
230
+ constructor(map?: { [key: string]: any }) {
231
+ super(map);
232
+ }
233
+ }
234
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { EcomVideoRecreationResponseBody } from "./EcomVideoRecreationResponseBody";
4
+
5
+
6
+ export class EcomVideoRecreationResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: EcomVideoRecreationResponseBody;
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: EcomVideoRecreationResponseBody,
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,104 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class EcomVideoRecreationResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The asynchronous task ID for QueryAsyncTaskResult queries.
9
+ *
10
+ * @example
11
+ * task_778fa8bd21804828a5d147050e30edac
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 EcomVideoRecreationResponseBody extends $dara.Model {
36
+ /**
37
+ * @remarks
38
+ * The result code. `success` indicates success. An error code is returned upon failure.
39
+ *
40
+ * @example
41
+ * success
42
+ */
43
+ code?: string;
44
+ /**
45
+ * @remarks
46
+ * The asynchronous task submit status.
47
+ */
48
+ data?: EcomVideoRecreationResponseBodyData;
49
+ /**
50
+ * @remarks
51
+ * The response message. An error description is returned upon failure.
52
+ *
53
+ * @example
54
+ * Task submitted
55
+ */
56
+ message?: string;
57
+ /**
58
+ * @remarks
59
+ * The request ID, used to identify a unique call.
60
+ *
61
+ * @example
62
+ * 70CBEFDF-BB17-1EB3-8A21-569F3124738F
63
+ */
64
+ requestId?: string;
65
+ /**
66
+ * @remarks
67
+ * Indicates whether the submission is successful.
68
+ *
69
+ * @example
70
+ * true
71
+ */
72
+ success?: boolean;
73
+ static names(): { [key: string]: string } {
74
+ return {
75
+ code: 'Code',
76
+ data: 'Data',
77
+ message: 'Message',
78
+ requestId: 'RequestId',
79
+ success: 'Success',
80
+ };
81
+ }
82
+
83
+ static types(): { [key: string]: any } {
84
+ return {
85
+ code: 'string',
86
+ data: EcomVideoRecreationResponseBodyData,
87
+ message: 'string',
88
+ requestId: 'string',
89
+ success: 'boolean',
90
+ };
91
+ }
92
+
93
+ validate() {
94
+ if(this.data && typeof (this.data as any).validate === 'function') {
95
+ (this.data as any).validate();
96
+ }
97
+ super.validate();
98
+ }
99
+
100
+ constructor(map?: { [key: string]: any }) {
101
+ super(map);
102
+ }
103
+ }
104
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class EcomVideoRecreationShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The input parameters for video remix.
9
+ *
10
+ * This parameter is required.
11
+ */
12
+ inputShrink?: string;
13
+ /**
14
+ * @remarks
15
+ * The output specifications for the final video.
16
+ */
17
+ outputShrink?: string;
18
+ static names(): { [key: string]: string } {
19
+ return {
20
+ inputShrink: 'Input',
21
+ outputShrink: 'Output',
22
+ };
23
+ }
24
+
25
+ static types(): { [key: string]: any } {
26
+ return {
27
+ inputShrink: 'string',
28
+ outputShrink: 'string',
29
+ };
30
+ }
31
+
32
+ validate() {
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageCroppingRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * URL of the image to be processed
8
+ * The URL of the image to process.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -15,7 +15,7 @@ export class ImageCroppingRequest extends $dara.Model {
15
15
  imageUrl?: string;
16
16
  /**
17
17
  * @remarks
18
- * Target height
18
+ * The target height.
19
19
  *
20
20
  * This parameter is required.
21
21
  *
@@ -25,7 +25,7 @@ export class ImageCroppingRequest extends $dara.Model {
25
25
  targetHeight?: number;
26
26
  /**
27
27
  * @remarks
28
- * Target width
28
+ * The target width.
29
29
  *
30
30
  * This parameter is required.
31
31
  *
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageCroppingResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Image height
8
+ * The image height.
9
9
  *
10
10
  * @example
11
11
  * 800
@@ -13,7 +13,7 @@ export class ImageCroppingResponseBodyData extends $dara.Model {
13
13
  height?: number;
14
14
  /**
15
15
  * @remarks
16
- * URL of the cropped image
16
+ * The URL of the cropped image.
17
17
  *
18
18
  * @example
19
19
  * https://example.com/cropped.jpg
@@ -21,7 +21,7 @@ export class ImageCroppingResponseBodyData extends $dara.Model {
21
21
  imageUrl?: string;
22
22
  /**
23
23
  * @remarks
24
- * Usage information
24
+ * The usage information.
25
25
  *
26
26
  * @example
27
27
  * {"ProcessedImageCount":1}
@@ -29,7 +29,7 @@ export class ImageCroppingResponseBodyData extends $dara.Model {
29
29
  usageMap?: { [key: string]: number };
30
30
  /**
31
31
  * @remarks
32
- * Image width
32
+ * The image width.
33
33
  *
34
34
  * @example
35
35
  * 800
@@ -68,7 +68,7 @@ export class ImageCroppingResponseBodyData extends $dara.Model {
68
68
  export class ImageCroppingResponseBody extends $dara.Model {
69
69
  /**
70
70
  * @remarks
71
- * Response code
71
+ * The response code.
72
72
  *
73
73
  * @example
74
74
  * success
@@ -76,12 +76,12 @@ export class ImageCroppingResponseBody extends $dara.Model {
76
76
  code?: string;
77
77
  /**
78
78
  * @remarks
79
- * Crop result
79
+ * The cropping result.
80
80
  */
81
81
  data?: ImageCroppingResponseBodyData;
82
82
  /**
83
83
  * @remarks
84
- * Error message
84
+ * The error message.
85
85
  *
86
86
  * @example
87
87
  * Success
@@ -97,7 +97,9 @@ export class ImageCroppingResponseBody extends $dara.Model {
97
97
  requestId?: string;
98
98
  /**
99
99
  * @remarks
100
- * Whether the call was successful: true indicates success, false indicates failure
100
+ * Indicates whether the call is successful. Valid values:
101
+ * - true: Successful.
102
+ * - false: Failed.
101
103
  *
102
104
  * @example
103
105
  * True
@@ -6,8 +6,9 @@ export class ImageMattingRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
8
  * Specifies the background type of the returned image. Valid values:
9
- * - WHITE_BACKGROUND: white background image.
10
- * - TRANSPARENT: transparent background image.
9
+ *
10
+ * - WHITE_BACKGROUND: white background.
11
+ * - TRANSPARENT: transparent background.
11
12
  *
12
13
  * This parameter is required.
13
14
  *
@@ -25,7 +26,7 @@ export class ImageMattingRequest extends $dara.Model {
25
26
  bgColor?: string;
26
27
  /**
27
28
  * @remarks
28
- * The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels. The file size cannot exceed 10 MB.<br>**Example**: `"https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg"`
29
+ * The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 3000 × 3000 pixels, and a file size not exceeding 10 MB.<br>**Example**: `"https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg"`
29
30
  *
30
31
  * This parameter is required.
31
32
  *
@@ -108,6 +108,7 @@ export class ImageMattingResponseBody extends $dara.Model {
108
108
  /**
109
109
  * @remarks
110
110
  * Indicates whether the call is successful. Valid values:
111
+ *
111
112
  * - true: Successful.
112
113
  * - false: Failed.
113
114
  *
@@ -15,7 +15,7 @@ export class ImageRecognitionRequest extends $dara.Model {
15
15
  imageUrl?: string;
16
16
  /**
17
17
  * @remarks
18
- * The list of non-subject element types to detect. Valid values: 1 (background), 2 (border), 3 (watermark), and 4 (collage).
18
+ * The list of non-subject element types to detect. Valid values: 1 (background), 2 (border), 3 (watermark), 4 (splice).
19
19
  *
20
20
  * @example
21
21
  * [1,2,3,4]
@@ -23,7 +23,7 @@ export class ImageRecognitionRequest extends $dara.Model {
23
23
  nonObjectDetectElements?: number[];
24
24
  /**
25
25
  * @remarks
26
- * The list of subject element types to detect. Valid values: 1 (product subject), 2 (model), 3 (text), and 4 (logo).
26
+ * The list of subject element types to detect. Valid values: 1 (product subject), 2 (model), 3 (text), 4 (logo).
27
27
  *
28
28
  * @example
29
29
  * [1,2,3,4]
@@ -47,7 +47,7 @@ export class ImageRecognitionRequest extends $dara.Model {
47
47
  returnCharacter?: number;
48
48
  /**
49
49
  * @remarks
50
- * Specifies whether to return text property information. Valid values: 1 (return) and 0 (do not return).
50
+ * Specifies whether to return text attribute information. Valid values: 1 (return) and 0 (do not return).
51
51
  *
52
52
  * @example
53
53
  * 1
@@ -63,7 +63,7 @@ export class ImageRecognitionRequest extends $dara.Model {
63
63
  returnProductNum?: number;
64
64
  /**
65
65
  * @remarks
66
- * Specifies whether to return product property information. Valid values: 1 (return) and 0 (do not return).
66
+ * Specifies whether to return product attribute information. Valid values: 1 (return) and 0 (do not return).
67
67
  *
68
68
  * @example
69
69
  * 1
@@ -168,7 +168,7 @@ export class ImageRecognitionResponseBodyData extends $dara.Model {
168
168
  export class ImageRecognitionResponseBody extends $dara.Model {
169
169
  /**
170
170
  * @remarks
171
- * The error code. This parameter is not returned if the call is successful.
171
+ * The error code. This parameter is not returned for successful calls.
172
172
  *
173
173
  * @example
174
174
  * 200
@@ -181,7 +181,7 @@ export class ImageRecognitionResponseBody extends $dara.Model {
181
181
  data?: ImageRecognitionResponseBodyData;
182
182
  /**
183
183
  * @remarks
184
- * The error message. This parameter is not returned if the call is successful.
184
+ * The error message. This parameter is not returned for successful calls.
185
185
  *
186
186
  * @example
187
187
  * OK
@@ -15,7 +15,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
15
15
  imageUrl?: string;
16
16
  /**
17
17
  * @remarks
18
- * The list of non-subject element types to detect. Valid values: 1 (background), 2 (border), 3 (watermark), and 4 (collage).
18
+ * The list of non-subject element types to detect. Valid values: 1 (background), 2 (border), 3 (watermark), 4 (splice).
19
19
  *
20
20
  * @example
21
21
  * [1,2,3,4]
@@ -23,7 +23,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
23
23
  nonObjectDetectElementsShrink?: string;
24
24
  /**
25
25
  * @remarks
26
- * The list of subject element types to detect. Valid values: 1 (product subject), 2 (model), 3 (text), and 4 (logo).
26
+ * The list of subject element types to detect. Valid values: 1 (product subject), 2 (model), 3 (text), 4 (logo).
27
27
  *
28
28
  * @example
29
29
  * [1,2,3,4]
@@ -47,7 +47,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
47
47
  returnCharacter?: number;
48
48
  /**
49
49
  * @remarks
50
- * Specifies whether to return text property information. Valid values: 1 (return) and 0 (do not return).
50
+ * Specifies whether to return text attribute information. Valid values: 1 (return) and 0 (do not return).
51
51
  *
52
52
  * @example
53
53
  * 1
@@ -63,7 +63,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
63
63
  returnProductNum?: number;
64
64
  /**
65
65
  * @remarks
66
- * Specifies whether to return product property information. Valid values: 1 (return) and 0 (do not return).
66
+ * Specifies whether to return product attribute information. Valid values: 1 (return) and 0 (do not return).
67
67
  *
68
68
  * @example
69
69
  * 1