@alicloud/aidge20260428 5.2.0 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +98 -26
- package/dist/client.js +171 -26
- package/dist/client.js.map +1 -1
- package/dist/models/DiduiAreaDeductionRequest.d.ts +105 -0
- package/dist/models/DiduiAreaDeductionRequest.js +116 -0
- package/dist/models/DiduiAreaDeductionRequest.js.map +1 -0
- package/dist/models/DiduiAreaDeductionResponse.d.ts +19 -0
- package/dist/models/DiduiAreaDeductionResponse.js +69 -0
- package/dist/models/DiduiAreaDeductionResponse.js.map +1 -0
- package/dist/models/DiduiAreaDeductionResponseBody.d.ts +139 -0
- package/dist/models/DiduiAreaDeductionResponseBody.js +159 -0
- package/dist/models/DiduiAreaDeductionResponseBody.js.map +1 -0
- package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +36 -0
- package/dist/models/DiduiAreaDeductionShrinkRequest.js +64 -0
- package/dist/models/DiduiAreaDeductionShrinkRequest.js.map +1 -0
- package/dist/models/ProductHotspotDetectionRequest.d.ts +38 -0
- package/dist/models/ProductHotspotDetectionRequest.js +65 -0
- package/dist/models/ProductHotspotDetectionRequest.js.map +1 -0
- package/dist/models/ProductHotspotDetectionResponse.d.ts +19 -0
- package/dist/models/ProductHotspotDetectionResponse.js +69 -0
- package/dist/models/ProductHotspotDetectionResponse.js.map +1 -0
- package/dist/models/ProductHotspotDetectionResponseBody.d.ts +154 -0
- package/dist/models/ProductHotspotDetectionResponseBody.js +147 -0
- package/dist/models/ProductHotspotDetectionResponseBody.js.map +1 -0
- package/dist/models/ProductHotspotDetectionShrinkRequest.d.ts +38 -0
- package/dist/models/ProductHotspotDetectionShrinkRequest.js +62 -0
- package/dist/models/ProductHotspotDetectionShrinkRequest.js.map +1 -0
- package/dist/models/VideoGenerationRequest.d.ts +42 -0
- package/dist/models/VideoGenerationRequest.js +31 -1
- package/dist/models/VideoGenerationRequest.js.map +1 -1
- package/dist/models/VideoGenerationResponseBody.d.ts +3 -3
- package/dist/models/model.d.ts +17 -0
- package/dist/models/model.js +43 -8
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +184 -26
- package/src/models/DiduiAreaDeductionRequest.ts +158 -0
- package/src/models/DiduiAreaDeductionResponse.ts +40 -0
- package/src/models/DiduiAreaDeductionResponseBody.ts +224 -0
- package/src/models/DiduiAreaDeductionShrinkRequest.ts +55 -0
- package/src/models/ProductHotspotDetectionRequest.ts +58 -0
- package/src/models/ProductHotspotDetectionResponse.ts +40 -0
- package/src/models/ProductHotspotDetectionResponseBody.ts +227 -0
- package/src/models/ProductHotspotDetectionShrinkRequest.ts +55 -0
- package/src/models/VideoGenerationRequest.ts +63 -0
- package/src/models/VideoGenerationResponseBody.ts +3 -3
- package/src/models/model.ts +17 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DiduiAreaDeductionResponseBody } from "./DiduiAreaDeductionResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DiduiAreaDeductionResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DiduiAreaDeductionResponseBody;
|
|
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: DiduiAreaDeductionResponseBody,
|
|
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,224 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DiduiAreaDeductionResponseBodyDataResultStage4AreaLabel extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 1.5334
|
|
9
|
+
*/
|
|
10
|
+
areaM2?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 1.025
|
|
14
|
+
*/
|
|
15
|
+
leftEdgeM?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 1.419
|
|
19
|
+
*/
|
|
20
|
+
rightEdgeM?: number;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
areaM2: 'AreaM2',
|
|
24
|
+
leftEdgeM: 'LeftEdgeM',
|
|
25
|
+
rightEdgeM: 'RightEdgeM',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
areaM2: 'number',
|
|
32
|
+
leftEdgeM: 'number',
|
|
33
|
+
rightEdgeM: 'number',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class DiduiAreaDeductionResponseBodyDataResult extends $dara.Model {
|
|
47
|
+
stage4AreaLabel?: DiduiAreaDeductionResponseBodyDataResultStage4AreaLabel;
|
|
48
|
+
static names(): { [key: string]: string } {
|
|
49
|
+
return {
|
|
50
|
+
stage4AreaLabel: 'Stage4AreaLabel',
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
static types(): { [key: string]: any } {
|
|
55
|
+
return {
|
|
56
|
+
stage4AreaLabel: DiduiAreaDeductionResponseBodyDataResultStage4AreaLabel,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
validate() {
|
|
61
|
+
if(this.stage4AreaLabel && typeof (this.stage4AreaLabel as any).validate === 'function') {
|
|
62
|
+
(this.stage4AreaLabel as any).validate();
|
|
63
|
+
}
|
|
64
|
+
super.validate();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
constructor(map?: { [key: string]: any }) {
|
|
68
|
+
super(map);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export class DiduiAreaDeductionResponseBodyData extends $dara.Model {
|
|
73
|
+
/**
|
|
74
|
+
* @example
|
|
75
|
+
* 1
|
|
76
|
+
*/
|
|
77
|
+
attempts?: number;
|
|
78
|
+
/**
|
|
79
|
+
* @example
|
|
80
|
+
* success
|
|
81
|
+
*/
|
|
82
|
+
code?: string;
|
|
83
|
+
/**
|
|
84
|
+
* @example
|
|
85
|
+
* OK
|
|
86
|
+
*/
|
|
87
|
+
httpStatus?: number;
|
|
88
|
+
/**
|
|
89
|
+
* @example
|
|
90
|
+
* 1000
|
|
91
|
+
*/
|
|
92
|
+
latencyMs?: number;
|
|
93
|
+
/**
|
|
94
|
+
* @example
|
|
95
|
+
* Success
|
|
96
|
+
*/
|
|
97
|
+
message?: string;
|
|
98
|
+
/**
|
|
99
|
+
* @example
|
|
100
|
+
* model_req_id_xx
|
|
101
|
+
*/
|
|
102
|
+
modelRequestId?: string;
|
|
103
|
+
/**
|
|
104
|
+
* @example
|
|
105
|
+
* 643913D2-063F-599C-B3DF-B8D415CE171F
|
|
106
|
+
*/
|
|
107
|
+
reqId?: string;
|
|
108
|
+
result?: DiduiAreaDeductionResponseBodyDataResult;
|
|
109
|
+
/**
|
|
110
|
+
* @example
|
|
111
|
+
* COMPLETED
|
|
112
|
+
*/
|
|
113
|
+
status?: string;
|
|
114
|
+
/**
|
|
115
|
+
* @example
|
|
116
|
+
* True
|
|
117
|
+
*/
|
|
118
|
+
success?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* @example
|
|
121
|
+
* {"ProcessingCount":1}
|
|
122
|
+
*/
|
|
123
|
+
usageMap?: { [key: string]: number };
|
|
124
|
+
static names(): { [key: string]: string } {
|
|
125
|
+
return {
|
|
126
|
+
attempts: 'Attempts',
|
|
127
|
+
code: 'Code',
|
|
128
|
+
httpStatus: 'HttpStatus',
|
|
129
|
+
latencyMs: 'LatencyMs',
|
|
130
|
+
message: 'Message',
|
|
131
|
+
modelRequestId: 'ModelRequestId',
|
|
132
|
+
reqId: 'ReqId',
|
|
133
|
+
result: 'Result',
|
|
134
|
+
status: 'Status',
|
|
135
|
+
success: 'Success',
|
|
136
|
+
usageMap: 'UsageMap',
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
static types(): { [key: string]: any } {
|
|
141
|
+
return {
|
|
142
|
+
attempts: 'number',
|
|
143
|
+
code: 'string',
|
|
144
|
+
httpStatus: 'number',
|
|
145
|
+
latencyMs: 'number',
|
|
146
|
+
message: 'string',
|
|
147
|
+
modelRequestId: 'string',
|
|
148
|
+
reqId: 'string',
|
|
149
|
+
result: DiduiAreaDeductionResponseBodyDataResult,
|
|
150
|
+
status: 'string',
|
|
151
|
+
success: 'boolean',
|
|
152
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
validate() {
|
|
157
|
+
if(this.result && typeof (this.result as any).validate === 'function') {
|
|
158
|
+
(this.result as any).validate();
|
|
159
|
+
}
|
|
160
|
+
if(this.usageMap) {
|
|
161
|
+
$dara.Model.validateMap(this.usageMap);
|
|
162
|
+
}
|
|
163
|
+
super.validate();
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
constructor(map?: { [key: string]: any }) {
|
|
167
|
+
super(map);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export class DiduiAreaDeductionResponseBody extends $dara.Model {
|
|
172
|
+
/**
|
|
173
|
+
* @example
|
|
174
|
+
* success
|
|
175
|
+
*/
|
|
176
|
+
code?: string;
|
|
177
|
+
data?: DiduiAreaDeductionResponseBodyData;
|
|
178
|
+
/**
|
|
179
|
+
* @example
|
|
180
|
+
* Success
|
|
181
|
+
*/
|
|
182
|
+
message?: string;
|
|
183
|
+
/**
|
|
184
|
+
* @example
|
|
185
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
186
|
+
*/
|
|
187
|
+
requestId?: string;
|
|
188
|
+
/**
|
|
189
|
+
* @example
|
|
190
|
+
* True
|
|
191
|
+
*/
|
|
192
|
+
success?: boolean;
|
|
193
|
+
static names(): { [key: string]: string } {
|
|
194
|
+
return {
|
|
195
|
+
code: 'Code',
|
|
196
|
+
data: 'Data',
|
|
197
|
+
message: 'Message',
|
|
198
|
+
requestId: 'RequestId',
|
|
199
|
+
success: 'Success',
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
static types(): { [key: string]: any } {
|
|
204
|
+
return {
|
|
205
|
+
code: 'string',
|
|
206
|
+
data: DiduiAreaDeductionResponseBodyData,
|
|
207
|
+
message: 'string',
|
|
208
|
+
requestId: 'string',
|
|
209
|
+
success: 'boolean',
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
validate() {
|
|
214
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
215
|
+
(this.data as any).validate();
|
|
216
|
+
}
|
|
217
|
+
super.validate();
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
constructor(map?: { [key: string]: any }) {
|
|
221
|
+
super(map);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
@@ -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 DiduiAreaDeductionShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*/
|
|
10
|
+
productsShrink?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* rag_xxx
|
|
14
|
+
*/
|
|
15
|
+
ragId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* didui-request-001
|
|
19
|
+
*/
|
|
20
|
+
reqId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* This parameter is required.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* https://example.com/didui.jpg
|
|
27
|
+
*/
|
|
28
|
+
targetImageUrl?: string;
|
|
29
|
+
static names(): { [key: string]: string } {
|
|
30
|
+
return {
|
|
31
|
+
productsShrink: 'Products',
|
|
32
|
+
ragId: 'RagId',
|
|
33
|
+
reqId: 'ReqId',
|
|
34
|
+
targetImageUrl: 'TargetImageUrl',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
productsShrink: 'string',
|
|
41
|
+
ragId: '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
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ProductHotspotDetectionRequest 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
|
+
referenceImageUrls?: 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
|
+
referenceImageUrls: 'ReferenceImageUrls',
|
|
34
|
+
reqId: 'ReqId',
|
|
35
|
+
targetImageUrl: 'TargetImageUrl',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static types(): { [key: string]: any } {
|
|
40
|
+
return {
|
|
41
|
+
referenceImageUrls: { 'type': 'array', 'itemType': 'string' },
|
|
42
|
+
reqId: 'string',
|
|
43
|
+
targetImageUrl: 'string',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
validate() {
|
|
48
|
+
if(Array.isArray(this.referenceImageUrls)) {
|
|
49
|
+
$dara.Model.validateArray(this.referenceImageUrls);
|
|
50
|
+
}
|
|
51
|
+
super.validate();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
constructor(map?: { [key: string]: any }) {
|
|
55
|
+
super(map);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ProductHotspotDetectionResponseBody } from "./ProductHotspotDetectionResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ProductHotspotDetectionResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ProductHotspotDetectionResponseBody;
|
|
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: ProductHotspotDetectionResponseBody,
|
|
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,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
|
+
|