@alicloud/aidge20260428 5.1.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 +183 -54
- package/dist/client.js +303 -54
- 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/ImageTranslationPlusResponseBody.d.ts +4 -6
- package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -1
- package/dist/models/PrepaidTextTranslateRequest.d.ts +73 -0
- package/dist/models/PrepaidTextTranslateRequest.js +73 -0
- package/dist/models/PrepaidTextTranslateRequest.js.map +1 -0
- package/dist/models/PrepaidTextTranslateResponse.d.ts +19 -0
- package/dist/models/PrepaidTextTranslateResponse.js +69 -0
- package/dist/models/PrepaidTextTranslateResponse.js.map +1 -0
- package/dist/models/PrepaidTextTranslateResponseBody.d.ts +110 -0
- package/dist/models/PrepaidTextTranslateResponseBody.js +119 -0
- package/dist/models/PrepaidTextTranslateResponseBody.js.map +1 -0
- package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +73 -0
- package/dist/models/PrepaidTextTranslateShrinkRequest.js +70 -0
- package/dist/models/PrepaidTextTranslateShrinkRequest.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 +71 -0
- package/dist/models/VideoGenerationRequest.js +31 -1
- package/dist/models/VideoGenerationRequest.js.map +1 -1
- package/dist/models/VideoGenerationResponseBody.d.ts +23 -0
- package/dist/models/VideoGenerationResponseBody.js.map +1 -1
- package/dist/models/VideoGenerationShrinkRequest.d.ts +8 -0
- package/dist/models/VideoGenerationShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +23 -0
- package/dist/models/model.js +55 -8
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +326 -54
- 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/ImageTranslationPlusResponseBody.ts +4 -6
- package/src/models/PrepaidTextTranslateRequest.ts +101 -0
- package/src/models/PrepaidTextTranslateResponse.ts +40 -0
- package/src/models/PrepaidTextTranslateResponseBody.ts +164 -0
- package/src/models/PrepaidTextTranslateShrinkRequest.ts +98 -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 +92 -0
- package/src/models/VideoGenerationResponseBody.ts +23 -0
- package/src/models/VideoGenerationShrinkRequest.ts +8 -0
- package/src/models/model.ts +23 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class PrepaidTextTranslateResponseBodyDataTranslations extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The character count of the source text.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 11
|
|
12
|
+
*/
|
|
13
|
+
characters?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The automatically detected source language.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* en
|
|
20
|
+
*/
|
|
21
|
+
detectedLanguage?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The translated text.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 你好世界
|
|
28
|
+
*/
|
|
29
|
+
translatedText?: string;
|
|
30
|
+
static names(): { [key: string]: string } {
|
|
31
|
+
return {
|
|
32
|
+
characters: 'Characters',
|
|
33
|
+
detectedLanguage: 'DetectedLanguage',
|
|
34
|
+
translatedText: 'TranslatedText',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
characters: 'number',
|
|
41
|
+
detectedLanguage: 'string',
|
|
42
|
+
translatedText: 'string',
|
|
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 PrepaidTextTranslateResponseBodyData extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The translation result list. Each element corresponds to a translation result for an entry in the input text list.
|
|
59
|
+
*/
|
|
60
|
+
translations?: PrepaidTextTranslateResponseBodyDataTranslations[];
|
|
61
|
+
/**
|
|
62
|
+
* @remarks
|
|
63
|
+
* The usage information, including the input character count.
|
|
64
|
+
*/
|
|
65
|
+
usageMap?: { [key: string]: number };
|
|
66
|
+
static names(): { [key: string]: string } {
|
|
67
|
+
return {
|
|
68
|
+
translations: 'Translations',
|
|
69
|
+
usageMap: 'UsageMap',
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static types(): { [key: string]: any } {
|
|
74
|
+
return {
|
|
75
|
+
translations: { 'type': 'array', 'itemType': PrepaidTextTranslateResponseBodyDataTranslations },
|
|
76
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
validate() {
|
|
81
|
+
if(Array.isArray(this.translations)) {
|
|
82
|
+
$dara.Model.validateArray(this.translations);
|
|
83
|
+
}
|
|
84
|
+
if(this.usageMap) {
|
|
85
|
+
$dara.Model.validateMap(this.usageMap);
|
|
86
|
+
}
|
|
87
|
+
super.validate();
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
constructor(map?: { [key: string]: any }) {
|
|
91
|
+
super(map);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export class PrepaidTextTranslateResponseBody extends $dara.Model {
|
|
96
|
+
/**
|
|
97
|
+
* @remarks
|
|
98
|
+
* The response code. Returns "success" for normal calls.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* success
|
|
102
|
+
*/
|
|
103
|
+
code?: string;
|
|
104
|
+
/**
|
|
105
|
+
* @remarks
|
|
106
|
+
* The translation result data, including the translation list and usage information.
|
|
107
|
+
*/
|
|
108
|
+
data?: PrepaidTextTranslateResponseBodyData;
|
|
109
|
+
/**
|
|
110
|
+
* @remarks
|
|
111
|
+
* The error message. Returns "Success" for normal calls. Returns specific error information for exceptions, such as "The parameters contain sensitive information. Try other input."
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* Success
|
|
115
|
+
*/
|
|
116
|
+
message?: string;
|
|
117
|
+
/**
|
|
118
|
+
* @remarks
|
|
119
|
+
* The request ID, used to identify a unique request call.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
123
|
+
*/
|
|
124
|
+
requestId?: string;
|
|
125
|
+
/**
|
|
126
|
+
* @remarks
|
|
127
|
+
* Indicates whether the call is successful. true indicates success. false indicates failure.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* True
|
|
131
|
+
*/
|
|
132
|
+
success?: boolean;
|
|
133
|
+
static names(): { [key: string]: string } {
|
|
134
|
+
return {
|
|
135
|
+
code: 'Code',
|
|
136
|
+
data: 'Data',
|
|
137
|
+
message: 'Message',
|
|
138
|
+
requestId: 'RequestId',
|
|
139
|
+
success: 'Success',
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
static types(): { [key: string]: any } {
|
|
144
|
+
return {
|
|
145
|
+
code: 'string',
|
|
146
|
+
data: PrepaidTextTranslateResponseBodyData,
|
|
147
|
+
message: 'string',
|
|
148
|
+
requestId: 'string',
|
|
149
|
+
success: 'boolean',
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
validate() {
|
|
154
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
155
|
+
(this.data as any).validate();
|
|
156
|
+
}
|
|
157
|
+
super.validate();
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
constructor(map?: { [key: string]: any }) {
|
|
161
|
+
super(map);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class PrepaidTextTranslateShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The business scenario identifier. This parameter is optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or an invalid value is passed, the general translation strategy is used by default.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* Alibaba-商品
|
|
12
|
+
*/
|
|
13
|
+
bizName?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The format type of the source text. This parameter is optional. Supports text (plain text format) and html (web page format, preserving HTML tags).
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* text
|
|
20
|
+
*/
|
|
21
|
+
formatType?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console, and its ID must be provided. If the glossary ID is empty, the translation result is not modified.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* custom_glossary
|
|
28
|
+
*/
|
|
29
|
+
glossary?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The source language code. This parameter is optional. If not specified, the language is automatically detected. You can pass auto for language detection.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* auto
|
|
36
|
+
*/
|
|
37
|
+
sourceLanguage?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The list of texts to translate. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
|
|
41
|
+
*
|
|
42
|
+
* This parameter is required.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ["Hello world"]
|
|
46
|
+
*/
|
|
47
|
+
sourceTextListShrink?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* The target language code. This parameter is required. More than 100 language directions are supported. For details, refer to the supported language directions list.
|
|
51
|
+
*
|
|
52
|
+
* This parameter is required.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* zh
|
|
56
|
+
*/
|
|
57
|
+
targetLanguage?: string;
|
|
58
|
+
/**
|
|
59
|
+
* @remarks
|
|
60
|
+
* The format of the translation text. html (web page format. This setting processes both the source text and translated text in HTML format) or text (text format. This setting processes both the source text and translated result as plain text without format processing).
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* e-commerce-title
|
|
64
|
+
*/
|
|
65
|
+
translateScene?: string;
|
|
66
|
+
static names(): { [key: string]: string } {
|
|
67
|
+
return {
|
|
68
|
+
bizName: 'BizName',
|
|
69
|
+
formatType: 'FormatType',
|
|
70
|
+
glossary: 'Glossary',
|
|
71
|
+
sourceLanguage: 'SourceLanguage',
|
|
72
|
+
sourceTextListShrink: 'SourceTextList',
|
|
73
|
+
targetLanguage: 'TargetLanguage',
|
|
74
|
+
translateScene: 'TranslateScene',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
static types(): { [key: string]: any } {
|
|
79
|
+
return {
|
|
80
|
+
bizName: 'string',
|
|
81
|
+
formatType: 'string',
|
|
82
|
+
glossary: 'string',
|
|
83
|
+
sourceLanguage: 'string',
|
|
84
|
+
sourceTextListShrink: 'string',
|
|
85
|
+
targetLanguage: 'string',
|
|
86
|
+
translateScene: 'string',
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
validate() {
|
|
91
|
+
super.validate();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
constructor(map?: { [key: string]: any }) {
|
|
95
|
+
super(map);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -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
|
+
|