@alicloud/aidge20260428 5.2.0 → 5.3.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.
Files changed (55) hide show
  1. package/dist/client.d.ts +98 -26
  2. package/dist/client.js +186 -26
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DiduiAreaDeductionRequest.d.ts +127 -0
  5. package/dist/models/DiduiAreaDeductionRequest.js +116 -0
  6. package/dist/models/DiduiAreaDeductionRequest.js.map +1 -0
  7. package/dist/models/DiduiAreaDeductionResponse.d.ts +19 -0
  8. package/dist/models/DiduiAreaDeductionResponse.js +69 -0
  9. package/dist/models/DiduiAreaDeductionResponse.js.map +1 -0
  10. package/dist/models/DiduiAreaDeductionResponseBody.d.ts +202 -0
  11. package/dist/models/DiduiAreaDeductionResponseBody.js +159 -0
  12. package/dist/models/DiduiAreaDeductionResponseBody.js.map +1 -0
  13. package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +46 -0
  14. package/dist/models/DiduiAreaDeductionShrinkRequest.js +64 -0
  15. package/dist/models/DiduiAreaDeductionShrinkRequest.js.map +1 -0
  16. package/dist/models/ImageRemoveRequest.d.ts +15 -0
  17. package/dist/models/ImageRemoveRequest.js +12 -0
  18. package/dist/models/ImageRemoveRequest.js.map +1 -1
  19. package/dist/models/ImageRemoveShrinkRequest.d.ts +15 -0
  20. package/dist/models/ImageRemoveShrinkRequest.js +6 -0
  21. package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
  22. package/dist/models/ProductHotspotDetectionRequest.d.ts +38 -0
  23. package/dist/models/ProductHotspotDetectionRequest.js +65 -0
  24. package/dist/models/ProductHotspotDetectionRequest.js.map +1 -0
  25. package/dist/models/ProductHotspotDetectionResponse.d.ts +19 -0
  26. package/dist/models/ProductHotspotDetectionResponse.js +69 -0
  27. package/dist/models/ProductHotspotDetectionResponse.js.map +1 -0
  28. package/dist/models/ProductHotspotDetectionResponseBody.d.ts +154 -0
  29. package/dist/models/ProductHotspotDetectionResponseBody.js +147 -0
  30. package/dist/models/ProductHotspotDetectionResponseBody.js.map +1 -0
  31. package/dist/models/ProductHotspotDetectionShrinkRequest.d.ts +38 -0
  32. package/dist/models/ProductHotspotDetectionShrinkRequest.js +62 -0
  33. package/dist/models/ProductHotspotDetectionShrinkRequest.js.map +1 -0
  34. package/dist/models/VideoGenerationRequest.d.ts +42 -0
  35. package/dist/models/VideoGenerationRequest.js +31 -1
  36. package/dist/models/VideoGenerationRequest.js.map +1 -1
  37. package/dist/models/VideoGenerationResponseBody.d.ts +3 -3
  38. package/dist/models/model.d.ts +17 -0
  39. package/dist/models/model.js +43 -8
  40. package/dist/models/model.js.map +1 -1
  41. package/package.json +1 -1
  42. package/src/client.ts +204 -26
  43. package/src/models/DiduiAreaDeductionRequest.ts +180 -0
  44. package/src/models/DiduiAreaDeductionResponse.ts +40 -0
  45. package/src/models/DiduiAreaDeductionResponseBody.ts +287 -0
  46. package/src/models/DiduiAreaDeductionShrinkRequest.ts +65 -0
  47. package/src/models/ImageRemoveRequest.ts +27 -0
  48. package/src/models/ImageRemoveShrinkRequest.ts +21 -0
  49. package/src/models/ProductHotspotDetectionRequest.ts +58 -0
  50. package/src/models/ProductHotspotDetectionResponse.ts +40 -0
  51. package/src/models/ProductHotspotDetectionResponseBody.ts +227 -0
  52. package/src/models/ProductHotspotDetectionShrinkRequest.ts +55 -0
  53. package/src/models/VideoGenerationRequest.ts +63 -0
  54. package/src/models/VideoGenerationResponseBody.ts +3 -3
  55. package/src/models/model.ts +17 -0
@@ -0,0 +1,227 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ProductHotspotDetectionResponseBodyDataProductsBoxes extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The bottom boundary of the bounding box.
9
+ *
10
+ * @example
11
+ * 947
12
+ */
13
+ bottom?: number;
14
+ /**
15
+ * @remarks
16
+ * The left boundary of the bounding box.
17
+ *
18
+ * @example
19
+ * 280
20
+ */
21
+ left?: number;
22
+ /**
23
+ * @remarks
24
+ * The right boundary of the bounding box.
25
+ *
26
+ * @example
27
+ * 743
28
+ */
29
+ right?: number;
30
+ /**
31
+ * @remarks
32
+ * The top boundary of the bounding box.
33
+ *
34
+ * @example
35
+ * 965
36
+ */
37
+ top?: number;
38
+ static names(): { [key: string]: string } {
39
+ return {
40
+ bottom: 'Bottom',
41
+ left: 'Left',
42
+ right: 'Right',
43
+ top: 'Top',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ bottom: 'number',
50
+ left: 'number',
51
+ right: 'number',
52
+ top: 'number',
53
+ };
54
+ }
55
+
56
+ validate() {
57
+ super.validate();
58
+ }
59
+
60
+ constructor(map?: { [key: string]: any }) {
61
+ super(map);
62
+ }
63
+ }
64
+
65
+ export class ProductHotspotDetectionResponseBodyDataProducts extends $dara.Model {
66
+ /**
67
+ * @remarks
68
+ * The bounding boxes of the product instances.
69
+ */
70
+ boxes?: ProductHotspotDetectionResponseBodyDataProductsBoxes[];
71
+ /**
72
+ * @remarks
73
+ * The product name.
74
+ *
75
+ * @example
76
+ * Beige metal chain-embellished Mary Jane flats
77
+ */
78
+ label?: string;
79
+ /**
80
+ * @remarks
81
+ * The product ID generated by the workflow.
82
+ *
83
+ * @example
84
+ * product_1
85
+ */
86
+ productId?: string;
87
+ static names(): { [key: string]: string } {
88
+ return {
89
+ boxes: 'Boxes',
90
+ label: 'Label',
91
+ productId: 'ProductId',
92
+ };
93
+ }
94
+
95
+ static types(): { [key: string]: any } {
96
+ return {
97
+ boxes: { 'type': 'array', 'itemType': ProductHotspotDetectionResponseBodyDataProductsBoxes },
98
+ label: 'string',
99
+ productId: 'string',
100
+ };
101
+ }
102
+
103
+ validate() {
104
+ if(Array.isArray(this.boxes)) {
105
+ $dara.Model.validateArray(this.boxes);
106
+ }
107
+ super.validate();
108
+ }
109
+
110
+ constructor(map?: { [key: string]: any }) {
111
+ super(map);
112
+ }
113
+ }
114
+
115
+ export class ProductHotspotDetectionResponseBodyData extends $dara.Model {
116
+ /**
117
+ * @remarks
118
+ * The list of recognized products and their bounding boxes.
119
+ */
120
+ products?: ProductHotspotDetectionResponseBodyDataProducts[];
121
+ /**
122
+ * @remarks
123
+ * The usage information.
124
+ *
125
+ * @example
126
+ * {"ProcessingCount":1}
127
+ */
128
+ usageMap?: { [key: string]: number };
129
+ static names(): { [key: string]: string } {
130
+ return {
131
+ products: 'Products',
132
+ usageMap: 'UsageMap',
133
+ };
134
+ }
135
+
136
+ static types(): { [key: string]: any } {
137
+ return {
138
+ products: { 'type': 'array', 'itemType': ProductHotspotDetectionResponseBodyDataProducts },
139
+ usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
140
+ };
141
+ }
142
+
143
+ validate() {
144
+ if(Array.isArray(this.products)) {
145
+ $dara.Model.validateArray(this.products);
146
+ }
147
+ if(this.usageMap) {
148
+ $dara.Model.validateMap(this.usageMap);
149
+ }
150
+ super.validate();
151
+ }
152
+
153
+ constructor(map?: { [key: string]: any }) {
154
+ super(map);
155
+ }
156
+ }
157
+
158
+ export class ProductHotspotDetectionResponseBody extends $dara.Model {
159
+ /**
160
+ * @remarks
161
+ * The error code.
162
+ *
163
+ * @example
164
+ * success
165
+ */
166
+ code?: string;
167
+ /**
168
+ * @remarks
169
+ * The product hotzone recognition result.
170
+ */
171
+ data?: ProductHotspotDetectionResponseBodyData;
172
+ /**
173
+ * @remarks
174
+ * The error message.
175
+ *
176
+ * @example
177
+ * Success
178
+ */
179
+ message?: string;
180
+ /**
181
+ * @remarks
182
+ * Id of the request
183
+ *
184
+ * @example
185
+ * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
186
+ */
187
+ requestId?: string;
188
+ /**
189
+ * @remarks
190
+ * Indicates whether the call was successful.
191
+ *
192
+ * @example
193
+ * True
194
+ */
195
+ success?: boolean;
196
+ static names(): { [key: string]: string } {
197
+ return {
198
+ code: 'Code',
199
+ data: 'Data',
200
+ message: 'Message',
201
+ requestId: 'RequestId',
202
+ success: 'Success',
203
+ };
204
+ }
205
+
206
+ static types(): { [key: string]: any } {
207
+ return {
208
+ code: 'string',
209
+ data: ProductHotspotDetectionResponseBodyData,
210
+ message: 'string',
211
+ requestId: 'string',
212
+ success: 'boolean',
213
+ };
214
+ }
215
+
216
+ validate() {
217
+ if(this.data && typeof (this.data as any).validate === 'function') {
218
+ (this.data as any).validate();
219
+ }
220
+ super.validate();
221
+ }
222
+
223
+ constructor(map?: { [key: string]: any }) {
224
+ super(map);
225
+ }
226
+ }
227
+
@@ -0,0 +1,55 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ProductHotspotDetectionShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The HTTPS URLs of reference images that define the SKU whitelist. A maximum of 20 images are supported.
9
+ *
10
+ * This parameter is required.
11
+ */
12
+ referenceImageUrlsShrink?: string;
13
+ /**
14
+ * @remarks
15
+ * The unique business ID for this single-scene call.
16
+ *
17
+ * @example
18
+ * hotspot-request-001
19
+ */
20
+ reqId?: string;
21
+ /**
22
+ * @remarks
23
+ * The HTTPS OSS or CDN URL of the target image to be annotated with bounding boxes.
24
+ *
25
+ * This parameter is required.
26
+ *
27
+ * @example
28
+ * https://example.com/scene.jpg
29
+ */
30
+ targetImageUrl?: string;
31
+ static names(): { [key: string]: string } {
32
+ return {
33
+ referenceImageUrlsShrink: 'ReferenceImageUrls',
34
+ reqId: 'ReqId',
35
+ targetImageUrl: 'TargetImageUrl',
36
+ };
37
+ }
38
+
39
+ static types(): { [key: string]: any } {
40
+ return {
41
+ referenceImageUrlsShrink: 'string',
42
+ reqId: 'string',
43
+ targetImageUrl: 'string',
44
+ };
45
+ }
46
+
47
+ validate() {
48
+ super.validate();
49
+ }
50
+
51
+ constructor(map?: { [key: string]: any }) {
52
+ super(map);
53
+ }
54
+ }
55
+
@@ -2,7 +2,58 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class VideoGenerationRequestInputAssetBindings extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The asset index.
9
+ *
10
+ * @example
11
+ * 0
12
+ */
13
+ assetIndex?: number;
14
+ /**
15
+ * @remarks
16
+ * The natural language description of the asset.
17
+ */
18
+ description?: string;
19
+ /**
20
+ * @remarks
21
+ * Valid values:
22
+ * - look_reference: appearance reference.
23
+ * - scene_reference: scene reference.
24
+ */
25
+ slot?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ assetIndex: 'AssetIndex',
29
+ description: 'Description',
30
+ slot: 'Slot',
31
+ };
32
+ }
33
+
34
+ static types(): { [key: string]: any } {
35
+ return {
36
+ assetIndex: 'number',
37
+ description: 'string',
38
+ slot: 'string',
39
+ };
40
+ }
41
+
42
+ validate() {
43
+ super.validate();
44
+ }
45
+
46
+ constructor(map?: { [key: string]: any }) {
47
+ super(map);
48
+ }
49
+ }
50
+
5
51
  export class VideoGenerationRequestInput extends $dara.Model {
52
+ /**
53
+ * @remarks
54
+ * Specifies the purpose and description of images by asset index.
55
+ */
56
+ assetBindings?: VideoGenerationRequestInputAssetBindings[];
6
57
  /**
7
58
  * @remarks
8
59
  * The extended information.
@@ -27,6 +78,7 @@ export class VideoGenerationRequestInput extends $dara.Model {
27
78
  title?: string;
28
79
  static names(): { [key: string]: string } {
29
80
  return {
81
+ assetBindings: 'AssetBindings',
30
82
  extra: 'Extra',
31
83
  images: 'Images',
32
84
  title: 'Title',
@@ -35,6 +87,7 @@ export class VideoGenerationRequestInput extends $dara.Model {
35
87
 
36
88
  static types(): { [key: string]: any } {
37
89
  return {
90
+ assetBindings: { 'type': 'array', 'itemType': VideoGenerationRequestInputAssetBindings },
38
91
  extra: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
39
92
  images: { 'type': 'array', 'itemType': 'string' },
40
93
  title: 'string',
@@ -42,6 +95,9 @@ export class VideoGenerationRequestInput extends $dara.Model {
42
95
  }
43
96
 
44
97
  validate() {
98
+ if(Array.isArray(this.assetBindings)) {
99
+ $dara.Model.validateArray(this.assetBindings);
100
+ }
45
101
  if(this.extra) {
46
102
  $dara.Model.validateMap(this.extra);
47
103
  }
@@ -73,10 +129,16 @@ export class VideoGenerationRequestIntent extends $dara.Model {
73
129
  * -
74
130
  */
75
131
  goal?: string;
132
+ /**
133
+ * @remarks
134
+ * Required when goal is set to scripted_video.
135
+ */
136
+ script?: string;
76
137
  static names(): { [key: string]: string } {
77
138
  return {
78
139
  channel: 'Channel',
79
140
  goal: 'Goal',
141
+ script: 'Script',
80
142
  };
81
143
  }
82
144
 
@@ -84,6 +146,7 @@ export class VideoGenerationRequestIntent extends $dara.Model {
84
146
  return {
85
147
  channel: 'string',
86
148
  goal: 'string',
149
+ script: 'string',
87
150
  };
88
151
  }
89
152
 
@@ -45,7 +45,7 @@ export class VideoGenerationResponseBodyData extends $dara.Model {
45
45
  export class VideoGenerationResponseBody extends $dara.Model {
46
46
  /**
47
47
  * @remarks
48
- * The response code. A value of success indicates a successful call, and a value of failed indicates a failure.
48
+ * The response code. A value of success indicates a successful call, and failed indicates a failure.
49
49
  *
50
50
  * @example
51
51
  * success
@@ -58,7 +58,7 @@ export class VideoGenerationResponseBody extends $dara.Model {
58
58
  data?: VideoGenerationResponseBodyData;
59
59
  /**
60
60
  * @remarks
61
- * The response message. An error message is returned if the call fails.
61
+ * The returned message. Returns the fault message upon failure.
62
62
  *
63
63
  * @example
64
64
  * Success
@@ -74,7 +74,7 @@ export class VideoGenerationResponseBody extends $dara.Model {
74
74
  requestId?: string;
75
75
  /**
76
76
  * @remarks
77
- * Indicates whether the call is successful. A value of true indicates success, and a value of false indicates failure.
77
+ * Indicates whether the call is successful. A value of true indicates success, and false indicates failure.
78
78
  *
79
79
  * @example
80
80
  * true
@@ -4,6 +4,11 @@ export { CategoryAttributeMatchResponseBodyDataAttributes } from './CategoryAttr
4
4
  export { CategoryAttributeMatchResponseBodyDataUsageMap } from './CategoryAttributeMatchResponseBody';
5
5
  export { CategoryAttributeMatchResponseBodyData } from './CategoryAttributeMatchResponseBody';
6
6
  export { CategoryMatchResponseBodyData } from './CategoryMatchResponseBody';
7
+ export { DiduiAreaDeductionRequestProductsBoxes } from './DiduiAreaDeductionRequest';
8
+ export { DiduiAreaDeductionRequestProducts } from './DiduiAreaDeductionRequest';
9
+ export { DiduiAreaDeductionResponseBodyDataResultStage4AreaLabel } from './DiduiAreaDeductionResponseBody';
10
+ export { DiduiAreaDeductionResponseBodyDataResult } from './DiduiAreaDeductionResponseBody';
11
+ export { DiduiAreaDeductionResponseBodyData } from './DiduiAreaDeductionResponseBody';
7
12
  export { DocumentTranslateResponseBodyData } from './DocumentTranslateResponseBody';
8
13
  export { ImageCroppingResponseBodyData } from './ImageCroppingResponseBody';
9
14
  export { ImageMattingResponseBodyData } from './ImageMattingResponseBody';
@@ -39,12 +44,16 @@ export { MerchandisePlacementDetectionResponseBodyData } from './MerchandisePlac
39
44
  export { PackageWeightSizeCheckResponseBodyData } from './PackageWeightSizeCheckResponseBody';
40
45
  export { PrepaidTextTranslateResponseBodyDataTranslations } from './PrepaidTextTranslateResponseBody';
41
46
  export { PrepaidTextTranslateResponseBodyData } from './PrepaidTextTranslateResponseBody';
47
+ export { ProductHotspotDetectionResponseBodyDataProductsBoxes } from './ProductHotspotDetectionResponseBody';
48
+ export { ProductHotspotDetectionResponseBodyDataProducts } from './ProductHotspotDetectionResponseBody';
49
+ export { ProductHotspotDetectionResponseBodyData } from './ProductHotspotDetectionResponseBody';
42
50
  export { QueryAsyncTaskResultResponseBodyData } from './QueryAsyncTaskResultResponseBody';
43
51
  export { SizeChartDetectResponseBodyData } from './SizeChartDetectResponseBody';
44
52
  export { SizeChartExtractResponseBodyData } from './SizeChartExtractResponseBody';
45
53
  export { TextCorrectResponseBodyData } from './TextCorrectResponseBody';
46
54
  export { TextTranslateResponseBodyDataTranslations } from './TextTranslateResponseBody';
47
55
  export { TextTranslateResponseBodyData } from './TextTranslateResponseBody';
56
+ export { VideoGenerationRequestInputAssetBindings } from './VideoGenerationRequest';
48
57
  export { VideoGenerationRequestInput } from './VideoGenerationRequest';
49
58
  export { VideoGenerationRequestIntent } from './VideoGenerationRequest';
50
59
  export { VideoGenerationRequestOutput } from './VideoGenerationRequest';
@@ -65,6 +74,10 @@ export { CategoryAttributeMatchResponse } from './CategoryAttributeMatchResponse
65
74
  export { CategoryMatchRequest } from './CategoryMatchRequest';
66
75
  export { CategoryMatchResponseBody } from './CategoryMatchResponseBody';
67
76
  export { CategoryMatchResponse } from './CategoryMatchResponse';
77
+ export { DiduiAreaDeductionRequest } from './DiduiAreaDeductionRequest';
78
+ export { DiduiAreaDeductionShrinkRequest } from './DiduiAreaDeductionShrinkRequest';
79
+ export { DiduiAreaDeductionResponseBody } from './DiduiAreaDeductionResponseBody';
80
+ export { DiduiAreaDeductionResponse } from './DiduiAreaDeductionResponse';
68
81
  export { DocumentTranslateRequest } from './DocumentTranslateRequest';
69
82
  export { DocumentTranslateResponseBody } from './DocumentTranslateResponseBody';
70
83
  export { DocumentTranslateResponse } from './DocumentTranslateResponse';
@@ -110,6 +123,10 @@ export { PrepaidTextTranslateRequest } from './PrepaidTextTranslateRequest';
110
123
  export { PrepaidTextTranslateShrinkRequest } from './PrepaidTextTranslateShrinkRequest';
111
124
  export { PrepaidTextTranslateResponseBody } from './PrepaidTextTranslateResponseBody';
112
125
  export { PrepaidTextTranslateResponse } from './PrepaidTextTranslateResponse';
126
+ export { ProductHotspotDetectionRequest } from './ProductHotspotDetectionRequest';
127
+ export { ProductHotspotDetectionShrinkRequest } from './ProductHotspotDetectionShrinkRequest';
128
+ export { ProductHotspotDetectionResponseBody } from './ProductHotspotDetectionResponseBody';
129
+ export { ProductHotspotDetectionResponse } from './ProductHotspotDetectionResponse';
113
130
  export { QueryAsyncTaskResultRequest } from './QueryAsyncTaskResultRequest';
114
131
  export { QueryAsyncTaskResultResponseBody } from './QueryAsyncTaskResultResponseBody';
115
132
  export { QueryAsyncTaskResultResponse } from './QueryAsyncTaskResultResponse';