@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.
- package/dist/client.d.ts +98 -26
- package/dist/client.js +186 -26
- package/dist/client.js.map +1 -1
- package/dist/models/DiduiAreaDeductionRequest.d.ts +127 -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 +202 -0
- package/dist/models/DiduiAreaDeductionResponseBody.js +159 -0
- package/dist/models/DiduiAreaDeductionResponseBody.js.map +1 -0
- package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +46 -0
- package/dist/models/DiduiAreaDeductionShrinkRequest.js +64 -0
- package/dist/models/DiduiAreaDeductionShrinkRequest.js.map +1 -0
- package/dist/models/ImageRemoveRequest.d.ts +15 -0
- package/dist/models/ImageRemoveRequest.js +12 -0
- package/dist/models/ImageRemoveRequest.js.map +1 -1
- package/dist/models/ImageRemoveShrinkRequest.d.ts +15 -0
- package/dist/models/ImageRemoveShrinkRequest.js +6 -0
- package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
- 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 +204 -26
- package/src/models/DiduiAreaDeductionRequest.ts +180 -0
- package/src/models/DiduiAreaDeductionResponse.ts +40 -0
- package/src/models/DiduiAreaDeductionResponseBody.ts +287 -0
- package/src/models/DiduiAreaDeductionShrinkRequest.ts +65 -0
- package/src/models/ImageRemoveRequest.ts +27 -0
- package/src/models/ImageRemoveShrinkRequest.ts +21 -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,287 @@
|
|
|
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
|
+
* @remarks
|
|
8
|
+
* The floor display area, in square meters.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 1.5334
|
|
12
|
+
*/
|
|
13
|
+
areaM2?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The left edge length, in meters.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 1.025
|
|
20
|
+
*/
|
|
21
|
+
leftEdgeM?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The right edge length, in meters.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 1.419
|
|
28
|
+
*/
|
|
29
|
+
rightEdgeM?: number;
|
|
30
|
+
static names(): { [key: string]: string } {
|
|
31
|
+
return {
|
|
32
|
+
areaM2: 'AreaM2',
|
|
33
|
+
leftEdgeM: 'LeftEdgeM',
|
|
34
|
+
rightEdgeM: 'RightEdgeM',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
areaM2: 'number',
|
|
41
|
+
leftEdgeM: 'number',
|
|
42
|
+
rightEdgeM: 'number',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
validate() {
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class DiduiAreaDeductionResponseBodyDataResult extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The stage 4 area label.
|
|
59
|
+
*/
|
|
60
|
+
stage4AreaLabel?: DiduiAreaDeductionResponseBodyDataResultStage4AreaLabel;
|
|
61
|
+
static names(): { [key: string]: string } {
|
|
62
|
+
return {
|
|
63
|
+
stage4AreaLabel: 'Stage4AreaLabel',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static types(): { [key: string]: any } {
|
|
68
|
+
return {
|
|
69
|
+
stage4AreaLabel: DiduiAreaDeductionResponseBodyDataResultStage4AreaLabel,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
validate() {
|
|
74
|
+
if(this.stage4AreaLabel && typeof (this.stage4AreaLabel as any).validate === 'function') {
|
|
75
|
+
(this.stage4AreaLabel as any).validate();
|
|
76
|
+
}
|
|
77
|
+
super.validate();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
constructor(map?: { [key: string]: any }) {
|
|
81
|
+
super(map);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export class DiduiAreaDeductionResponseBodyData extends $dara.Model {
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The number of downstream call attempts.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* 1
|
|
92
|
+
*/
|
|
93
|
+
attempts?: number;
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* The workflow error code.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* success
|
|
100
|
+
*/
|
|
101
|
+
code?: string;
|
|
102
|
+
/**
|
|
103
|
+
* @remarks
|
|
104
|
+
* The downstream HTTP status code.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* OK
|
|
108
|
+
*/
|
|
109
|
+
httpStatus?: number;
|
|
110
|
+
/**
|
|
111
|
+
* @remarks
|
|
112
|
+
* The downstream call latency, in milliseconds.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* 1000
|
|
116
|
+
*/
|
|
117
|
+
latencyMs?: number;
|
|
118
|
+
/**
|
|
119
|
+
* @remarks
|
|
120
|
+
* The workflow description.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* Success
|
|
124
|
+
*/
|
|
125
|
+
message?: string;
|
|
126
|
+
/**
|
|
127
|
+
* @remarks
|
|
128
|
+
* The model request ID.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* model_req_id_xx
|
|
132
|
+
*/
|
|
133
|
+
modelRequestId?: string;
|
|
134
|
+
/**
|
|
135
|
+
* @remarks
|
|
136
|
+
* The business request ID.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* 643913D2-063F-599C-B3DF-B8D415CE171F
|
|
140
|
+
*/
|
|
141
|
+
reqId?: string;
|
|
142
|
+
/**
|
|
143
|
+
* @remarks
|
|
144
|
+
* The area calculation result.
|
|
145
|
+
*/
|
|
146
|
+
result?: DiduiAreaDeductionResponseBodyDataResult;
|
|
147
|
+
/**
|
|
148
|
+
* @remarks
|
|
149
|
+
* The workflow status.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* COMPLETED
|
|
153
|
+
*/
|
|
154
|
+
status?: string;
|
|
155
|
+
/**
|
|
156
|
+
* @remarks
|
|
157
|
+
* The workflow business status.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* True
|
|
161
|
+
*/
|
|
162
|
+
success?: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* @remarks
|
|
165
|
+
* The usage information.
|
|
166
|
+
*
|
|
167
|
+
* @example
|
|
168
|
+
* {"ProcessingCount":1}
|
|
169
|
+
*/
|
|
170
|
+
usageMap?: { [key: string]: number };
|
|
171
|
+
static names(): { [key: string]: string } {
|
|
172
|
+
return {
|
|
173
|
+
attempts: 'Attempts',
|
|
174
|
+
code: 'Code',
|
|
175
|
+
httpStatus: 'HttpStatus',
|
|
176
|
+
latencyMs: 'LatencyMs',
|
|
177
|
+
message: 'Message',
|
|
178
|
+
modelRequestId: 'ModelRequestId',
|
|
179
|
+
reqId: 'ReqId',
|
|
180
|
+
result: 'Result',
|
|
181
|
+
status: 'Status',
|
|
182
|
+
success: 'Success',
|
|
183
|
+
usageMap: 'UsageMap',
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
static types(): { [key: string]: any } {
|
|
188
|
+
return {
|
|
189
|
+
attempts: 'number',
|
|
190
|
+
code: 'string',
|
|
191
|
+
httpStatus: 'number',
|
|
192
|
+
latencyMs: 'number',
|
|
193
|
+
message: 'string',
|
|
194
|
+
modelRequestId: 'string',
|
|
195
|
+
reqId: 'string',
|
|
196
|
+
result: DiduiAreaDeductionResponseBodyDataResult,
|
|
197
|
+
status: 'string',
|
|
198
|
+
success: 'boolean',
|
|
199
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
validate() {
|
|
204
|
+
if(this.result && typeof (this.result as any).validate === 'function') {
|
|
205
|
+
(this.result as any).validate();
|
|
206
|
+
}
|
|
207
|
+
if(this.usageMap) {
|
|
208
|
+
$dara.Model.validateMap(this.usageMap);
|
|
209
|
+
}
|
|
210
|
+
super.validate();
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
constructor(map?: { [key: string]: any }) {
|
|
214
|
+
super(map);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export class DiduiAreaDeductionResponseBody extends $dara.Model {
|
|
219
|
+
/**
|
|
220
|
+
* @remarks
|
|
221
|
+
* The error code.
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* success
|
|
225
|
+
*/
|
|
226
|
+
code?: string;
|
|
227
|
+
/**
|
|
228
|
+
* @remarks
|
|
229
|
+
* The floor display area inference result.
|
|
230
|
+
*/
|
|
231
|
+
data?: DiduiAreaDeductionResponseBodyData;
|
|
232
|
+
/**
|
|
233
|
+
* @remarks
|
|
234
|
+
* The error message.
|
|
235
|
+
*
|
|
236
|
+
* @example
|
|
237
|
+
* Success
|
|
238
|
+
*/
|
|
239
|
+
message?: string;
|
|
240
|
+
/**
|
|
241
|
+
* @remarks
|
|
242
|
+
* Id of the request
|
|
243
|
+
*
|
|
244
|
+
* @example
|
|
245
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
246
|
+
*/
|
|
247
|
+
requestId?: string;
|
|
248
|
+
/**
|
|
249
|
+
* @remarks
|
|
250
|
+
* Indicates whether the call was successful.
|
|
251
|
+
*
|
|
252
|
+
* @example
|
|
253
|
+
* True
|
|
254
|
+
*/
|
|
255
|
+
success?: boolean;
|
|
256
|
+
static names(): { [key: string]: string } {
|
|
257
|
+
return {
|
|
258
|
+
code: 'Code',
|
|
259
|
+
data: 'Data',
|
|
260
|
+
message: 'Message',
|
|
261
|
+
requestId: 'RequestId',
|
|
262
|
+
success: 'Success',
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
static types(): { [key: string]: any } {
|
|
267
|
+
return {
|
|
268
|
+
code: 'string',
|
|
269
|
+
data: DiduiAreaDeductionResponseBodyData,
|
|
270
|
+
message: 'string',
|
|
271
|
+
requestId: 'string',
|
|
272
|
+
success: 'boolean',
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
validate() {
|
|
277
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
278
|
+
(this.data as any).validate();
|
|
279
|
+
}
|
|
280
|
+
super.validate();
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
constructor(map?: { [key: string]: any }) {
|
|
284
|
+
super(map);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
* The list of products and their detection boxes.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*/
|
|
12
|
+
productsShrink?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* The ID of the customer-specific SKU vector database that determines which database is used for retrieval. The database must be created in advance through the database creation process.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* rag_xxx
|
|
19
|
+
*/
|
|
20
|
+
ragId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* The optional business request ID used for Tracing Analysis.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* didui-request-001
|
|
27
|
+
*/
|
|
28
|
+
reqId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @remarks
|
|
31
|
+
* The HTTPS URL of the overall floor display image.
|
|
32
|
+
*
|
|
33
|
+
* This parameter is required.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* https://example.com/didui.jpg
|
|
37
|
+
*/
|
|
38
|
+
targetImageUrl?: string;
|
|
39
|
+
static names(): { [key: string]: string } {
|
|
40
|
+
return {
|
|
41
|
+
productsShrink: 'Products',
|
|
42
|
+
ragId: 'RagId',
|
|
43
|
+
reqId: 'ReqId',
|
|
44
|
+
targetImageUrl: 'TargetImageUrl',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
static types(): { [key: string]: any } {
|
|
49
|
+
return {
|
|
50
|
+
productsShrink: 'string',
|
|
51
|
+
ragId: 'string',
|
|
52
|
+
reqId: 'string',
|
|
53
|
+
targetImageUrl: 'string',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
validate() {
|
|
58
|
+
super.validate();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
constructor(map?: { [key: string]: any }) {
|
|
62
|
+
super(map);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -49,12 +49,30 @@ export class ImageRemoveRequest extends $dara.Model {
|
|
|
49
49
|
* [1,2]
|
|
50
50
|
*/
|
|
51
51
|
objectRemoveElements?: number[];
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* [10,10,100,100]
|
|
55
|
+
*/
|
|
56
|
+
position?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @example
|
|
59
|
+
* ["https://img.alicdn.com/bao/uploaded/i2/xxx.jpg"]
|
|
60
|
+
*/
|
|
61
|
+
userImage?: string[];
|
|
62
|
+
/**
|
|
63
|
+
* @example
|
|
64
|
+
* ["xx","yy"]
|
|
65
|
+
*/
|
|
66
|
+
userText?: string[];
|
|
52
67
|
static names(): { [key: string]: string } {
|
|
53
68
|
return {
|
|
54
69
|
imageUrl: 'ImageUrl',
|
|
55
70
|
mask: 'Mask',
|
|
56
71
|
nonObjectRemoveElements: 'NonObjectRemoveElements',
|
|
57
72
|
objectRemoveElements: 'ObjectRemoveElements',
|
|
73
|
+
position: 'Position',
|
|
74
|
+
userImage: 'UserImage',
|
|
75
|
+
userText: 'UserText',
|
|
58
76
|
};
|
|
59
77
|
}
|
|
60
78
|
|
|
@@ -64,6 +82,9 @@ export class ImageRemoveRequest extends $dara.Model {
|
|
|
64
82
|
mask: 'string',
|
|
65
83
|
nonObjectRemoveElements: { 'type': 'array', 'itemType': 'number' },
|
|
66
84
|
objectRemoveElements: { 'type': 'array', 'itemType': 'number' },
|
|
85
|
+
position: 'string',
|
|
86
|
+
userImage: { 'type': 'array', 'itemType': 'string' },
|
|
87
|
+
userText: { 'type': 'array', 'itemType': 'string' },
|
|
67
88
|
};
|
|
68
89
|
}
|
|
69
90
|
|
|
@@ -74,6 +95,12 @@ export class ImageRemoveRequest extends $dara.Model {
|
|
|
74
95
|
if(Array.isArray(this.objectRemoveElements)) {
|
|
75
96
|
$dara.Model.validateArray(this.objectRemoveElements);
|
|
76
97
|
}
|
|
98
|
+
if(Array.isArray(this.userImage)) {
|
|
99
|
+
$dara.Model.validateArray(this.userImage);
|
|
100
|
+
}
|
|
101
|
+
if(Array.isArray(this.userText)) {
|
|
102
|
+
$dara.Model.validateArray(this.userText);
|
|
103
|
+
}
|
|
77
104
|
super.validate();
|
|
78
105
|
}
|
|
79
106
|
|
|
@@ -49,12 +49,30 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
|
|
|
49
49
|
* [1,2]
|
|
50
50
|
*/
|
|
51
51
|
objectRemoveElementsShrink?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* [10,10,100,100]
|
|
55
|
+
*/
|
|
56
|
+
position?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @example
|
|
59
|
+
* ["https://img.alicdn.com/bao/uploaded/i2/xxx.jpg"]
|
|
60
|
+
*/
|
|
61
|
+
userImageShrink?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @example
|
|
64
|
+
* ["xx","yy"]
|
|
65
|
+
*/
|
|
66
|
+
userTextShrink?: string;
|
|
52
67
|
static names(): { [key: string]: string } {
|
|
53
68
|
return {
|
|
54
69
|
imageUrl: 'ImageUrl',
|
|
55
70
|
mask: 'Mask',
|
|
56
71
|
nonObjectRemoveElementsShrink: 'NonObjectRemoveElements',
|
|
57
72
|
objectRemoveElementsShrink: 'ObjectRemoveElements',
|
|
73
|
+
position: 'Position',
|
|
74
|
+
userImageShrink: 'UserImage',
|
|
75
|
+
userTextShrink: 'UserText',
|
|
58
76
|
};
|
|
59
77
|
}
|
|
60
78
|
|
|
@@ -64,6 +82,9 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
|
|
|
64
82
|
mask: 'string',
|
|
65
83
|
nonObjectRemoveElementsShrink: 'string',
|
|
66
84
|
objectRemoveElementsShrink: 'string',
|
|
85
|
+
position: 'string',
|
|
86
|
+
userImageShrink: 'string',
|
|
87
|
+
userTextShrink: 'string',
|
|
67
88
|
};
|
|
68
89
|
}
|
|
69
90
|
|
|
@@ -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
|
+
|