@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,158 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DiduiAreaDeductionRequestProductsBoxes extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 689
|
|
12
|
+
*/
|
|
13
|
+
bottom?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* This parameter is required.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 763
|
|
20
|
+
*/
|
|
21
|
+
left?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* This parameter is required.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 904
|
|
28
|
+
*/
|
|
29
|
+
right?: number;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* This parameter is required.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 606
|
|
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 DiduiAreaDeductionRequestProducts extends $dara.Model {
|
|
66
|
+
/**
|
|
67
|
+
* @remarks
|
|
68
|
+
* This parameter is required.
|
|
69
|
+
*/
|
|
70
|
+
boxes?: DiduiAreaDeductionRequestProductsBoxes[];
|
|
71
|
+
/**
|
|
72
|
+
* @remarks
|
|
73
|
+
* This parameter is required.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* 6901234579
|
|
77
|
+
*/
|
|
78
|
+
skuId?: string;
|
|
79
|
+
static names(): { [key: string]: string } {
|
|
80
|
+
return {
|
|
81
|
+
boxes: 'Boxes',
|
|
82
|
+
skuId: 'SkuId',
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
static types(): { [key: string]: any } {
|
|
87
|
+
return {
|
|
88
|
+
boxes: { 'type': 'array', 'itemType': DiduiAreaDeductionRequestProductsBoxes },
|
|
89
|
+
skuId: 'string',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
validate() {
|
|
94
|
+
if(Array.isArray(this.boxes)) {
|
|
95
|
+
$dara.Model.validateArray(this.boxes);
|
|
96
|
+
}
|
|
97
|
+
super.validate();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
constructor(map?: { [key: string]: any }) {
|
|
101
|
+
super(map);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export class DiduiAreaDeductionRequest extends $dara.Model {
|
|
106
|
+
/**
|
|
107
|
+
* @remarks
|
|
108
|
+
* This parameter is required.
|
|
109
|
+
*/
|
|
110
|
+
products?: DiduiAreaDeductionRequestProducts[];
|
|
111
|
+
/**
|
|
112
|
+
* @example
|
|
113
|
+
* rag_xxx
|
|
114
|
+
*/
|
|
115
|
+
ragId?: string;
|
|
116
|
+
/**
|
|
117
|
+
* @example
|
|
118
|
+
* didui-request-001
|
|
119
|
+
*/
|
|
120
|
+
reqId?: string;
|
|
121
|
+
/**
|
|
122
|
+
* @remarks
|
|
123
|
+
* This parameter is required.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* https://example.com/didui.jpg
|
|
127
|
+
*/
|
|
128
|
+
targetImageUrl?: string;
|
|
129
|
+
static names(): { [key: string]: string } {
|
|
130
|
+
return {
|
|
131
|
+
products: 'Products',
|
|
132
|
+
ragId: 'RagId',
|
|
133
|
+
reqId: 'ReqId',
|
|
134
|
+
targetImageUrl: 'TargetImageUrl',
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
static types(): { [key: string]: any } {
|
|
139
|
+
return {
|
|
140
|
+
products: { 'type': 'array', 'itemType': DiduiAreaDeductionRequestProducts },
|
|
141
|
+
ragId: 'string',
|
|
142
|
+
reqId: 'string',
|
|
143
|
+
targetImageUrl: 'string',
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
validate() {
|
|
148
|
+
if(Array.isArray(this.products)) {
|
|
149
|
+
$dara.Model.validateArray(this.products);
|
|
150
|
+
}
|
|
151
|
+
super.validate();
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
constructor(map?: { [key: string]: any }) {
|
|
155
|
+
super(map);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
@@ -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
|
+
|
|
@@ -35,7 +35,7 @@ export class ImageTranslationPlusResponseBodyData extends $dara.Model {
|
|
|
35
35
|
export class ImageTranslationPlusResponseBody extends $dara.Model {
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The error code. This parameter is not returned
|
|
38
|
+
* The error code. This parameter is not returned for successful calls.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* 200
|
|
@@ -43,12 +43,12 @@ export class ImageTranslationPlusResponseBody extends $dara.Model {
|
|
|
43
43
|
code?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The submit status
|
|
46
|
+
* The asynchronous task submit status.
|
|
47
47
|
*/
|
|
48
48
|
data?: ImageTranslationPlusResponseBodyData;
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
* The error message. This parameter is not returned
|
|
51
|
+
* The error message. This parameter is not returned for successful calls.
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* OK
|
|
@@ -64,9 +64,7 @@ export class ImageTranslationPlusResponseBody extends $dara.Model {
|
|
|
64
64
|
requestId?: string;
|
|
65
65
|
/**
|
|
66
66
|
* @remarks
|
|
67
|
-
* Indicates whether the call is successful. Valid values:
|
|
68
|
-
* - true: The call is successful.
|
|
69
|
-
* - false: The call failed.
|
|
67
|
+
* Indicates whether the call is successful. Valid values: true: successful. false: failed.
|
|
70
68
|
*
|
|
71
69
|
* @example
|
|
72
70
|
* True
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class PrepaidTextTranslateRequest 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
|
+
sourceTextList?: 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
|
+
sourceTextList: '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
|
+
sourceTextList: { 'type': 'array', 'itemType': 'string' },
|
|
85
|
+
targetLanguage: 'string',
|
|
86
|
+
translateScene: 'string',
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
validate() {
|
|
91
|
+
if(Array.isArray(this.sourceTextList)) {
|
|
92
|
+
$dara.Model.validateArray(this.sourceTextList);
|
|
93
|
+
}
|
|
94
|
+
super.validate();
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
constructor(map?: { [key: string]: any }) {
|
|
98
|
+
super(map);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { PrepaidTextTranslateResponseBody } from "./PrepaidTextTranslateResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class PrepaidTextTranslateResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: PrepaidTextTranslateResponseBody;
|
|
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: PrepaidTextTranslateResponseBody,
|
|
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
|
+
|