@alicloud/aidge20260428 5.10.0 → 5.11.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 +201 -186
- package/dist/client.js +282 -186
- package/dist/client.js.map +1 -1
- package/dist/models/GenerateProductContentRequest.d.ts +85 -0
- package/dist/models/GenerateProductContentRequest.js +80 -0
- package/dist/models/GenerateProductContentRequest.js.map +1 -0
- package/dist/models/GenerateProductContentResponse.d.ts +19 -0
- package/dist/models/GenerateProductContentResponse.js +69 -0
- package/dist/models/GenerateProductContentResponse.js.map +1 -0
- package/dist/models/GenerateProductContentResponseBody.d.ts +71 -0
- package/dist/models/GenerateProductContentResponseBody.js +109 -0
- package/dist/models/GenerateProductContentResponseBody.js.map +1 -0
- package/dist/models/ImageMattingAsyncRequest.d.ts +9 -1
- package/dist/models/ImageMattingAsyncRequest.js +2 -0
- package/dist/models/ImageMattingAsyncRequest.js.map +1 -1
- package/dist/models/ImageMattingAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageRecognitionAsyncRequest.d.ts +33 -25
- package/dist/models/ImageRecognitionAsyncRequest.js +2 -0
- package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +6 -6
- package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +33 -25
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js +2 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageRemovalProAsyncRequest.d.ts +10 -1
- package/dist/models/ImageRemovalProAsyncRequest.js +2 -0
- package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +7 -5
- package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncRequest.d.ts +25 -6
- package/dist/models/ImageRemoveAsyncRequest.js +2 -0
- package/dist/models/ImageRemoveAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemoveAsyncResponseBody.d.ts +6 -4
- package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +25 -6
- package/dist/models/ImageRemoveAsyncShrinkRequest.js +2 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +17 -9
- package/dist/models/ImageTranslationPlusAsyncRequest.js +2 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageTranslationProAsyncRequest.d.ts +15 -7
- package/dist/models/ImageTranslationProAsyncRequest.js +2 -0
- package/dist/models/ImageTranslationProAsyncRequest.js.map +1 -1
- package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +4 -4
- package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +10 -2
- package/dist/models/ImageTranslationStandardAsyncRequest.js +2 -0
- package/dist/models/ImageTranslationStandardAsyncRequest.js.map +1 -1
- package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +4 -4
- package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +13 -7
- package/dist/models/QueryAsyncTaskResultResponseBody.js +2 -0
- package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -1
- package/dist/models/SizeChartExtractAsyncRequest.d.ts +9 -1
- package/dist/models/SizeChartExtractAsyncRequest.js +2 -0
- package/dist/models/SizeChartExtractAsyncRequest.js.map +1 -1
- package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +5 -5
- package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +9 -1
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js +2 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js.map +1 -1
- package/dist/models/VideoTranslationRequest.d.ts +12 -12
- package/dist/models/VideoTranslationResponseBody.d.ts +4 -4
- package/dist/models/VideoTranslationShrinkRequest.d.ts +12 -12
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +15 -7
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +308 -190
- package/src/models/GenerateProductContentRequest.ts +120 -0
- package/src/models/GenerateProductContentResponse.ts +40 -0
- package/src/models/GenerateProductContentResponseBody.ts +124 -0
- package/src/models/ImageMattingAsyncRequest.ts +11 -1
- package/src/models/ImageMattingAsyncResponseBody.ts +5 -5
- package/src/models/ImageRecognitionAsyncRequest.ts +35 -25
- package/src/models/ImageRecognitionAsyncResponseBody.ts +6 -6
- package/src/models/ImageRecognitionAsyncShrinkRequest.ts +35 -25
- package/src/models/ImageRemovalProAsyncRequest.ts +12 -1
- package/src/models/ImageRemovalProAsyncResponseBody.ts +7 -5
- package/src/models/ImageRemoveAsyncRequest.ts +27 -6
- package/src/models/ImageRemoveAsyncResponseBody.ts +6 -4
- package/src/models/ImageRemoveAsyncShrinkRequest.ts +27 -6
- package/src/models/ImageTranslationPlusAsyncRequest.ts +19 -9
- package/src/models/ImageTranslationPlusAsyncResponseBody.ts +5 -5
- package/src/models/ImageTranslationProAsyncRequest.ts +17 -7
- package/src/models/ImageTranslationProAsyncResponseBody.ts +4 -4
- package/src/models/ImageTranslationStandardAsyncRequest.ts +12 -2
- package/src/models/ImageTranslationStandardAsyncResponseBody.ts +4 -4
- package/src/models/QueryAsyncTaskResultResponseBody.ts +15 -7
- package/src/models/SizeChartExtractAsyncRequest.ts +11 -1
- package/src/models/SizeChartExtractAsyncResponseBody.ts +5 -5
- package/src/models/SizeChartExtractAsyncShrinkRequest.ts +11 -1
- package/src/models/VideoTranslationRequest.ts +12 -12
- package/src/models/VideoTranslationResponseBody.ts +4 -4
- package/src/models/VideoTranslationShrinkRequest.ts +12 -12
- package/src/models/model.ts +4 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GenerateProductContentRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 5
|
|
9
|
+
*/
|
|
10
|
+
bulletPointCount?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* This parameter is required.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* description
|
|
17
|
+
*/
|
|
18
|
+
contentType?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* True
|
|
22
|
+
*/
|
|
23
|
+
enableTranslation?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* 1000
|
|
27
|
+
*/
|
|
28
|
+
maxLength?: number;
|
|
29
|
+
/**
|
|
30
|
+
* @example
|
|
31
|
+
* 500
|
|
32
|
+
*/
|
|
33
|
+
minLength?: number;
|
|
34
|
+
/**
|
|
35
|
+
* @remarks
|
|
36
|
+
* This parameter is required.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* generate
|
|
40
|
+
*/
|
|
41
|
+
operation?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @example
|
|
44
|
+
* amazon
|
|
45
|
+
*/
|
|
46
|
+
platform?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @example
|
|
49
|
+
* {"brand":"苏泊尔","material":"304不锈钢"}
|
|
50
|
+
*/
|
|
51
|
+
productAttributes?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* 厨房用具
|
|
55
|
+
*/
|
|
56
|
+
productCategory?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @remarks
|
|
59
|
+
* This parameter is required.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* zh
|
|
63
|
+
*/
|
|
64
|
+
sourceLanguage?: string;
|
|
65
|
+
/**
|
|
66
|
+
* @remarks
|
|
67
|
+
* This parameter is required.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* 不锈钢蒸锅28cm三层大容量家用厨房必备蒸煮两用锅具
|
|
71
|
+
*/
|
|
72
|
+
sourceText?: string;
|
|
73
|
+
/**
|
|
74
|
+
* @example
|
|
75
|
+
* en
|
|
76
|
+
*/
|
|
77
|
+
targetLanguage?: string;
|
|
78
|
+
static names(): { [key: string]: string } {
|
|
79
|
+
return {
|
|
80
|
+
bulletPointCount: 'BulletPointCount',
|
|
81
|
+
contentType: 'ContentType',
|
|
82
|
+
enableTranslation: 'EnableTranslation',
|
|
83
|
+
maxLength: 'MaxLength',
|
|
84
|
+
minLength: 'MinLength',
|
|
85
|
+
operation: 'Operation',
|
|
86
|
+
platform: 'Platform',
|
|
87
|
+
productAttributes: 'ProductAttributes',
|
|
88
|
+
productCategory: 'ProductCategory',
|
|
89
|
+
sourceLanguage: 'SourceLanguage',
|
|
90
|
+
sourceText: 'SourceText',
|
|
91
|
+
targetLanguage: 'TargetLanguage',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static types(): { [key: string]: any } {
|
|
96
|
+
return {
|
|
97
|
+
bulletPointCount: 'number',
|
|
98
|
+
contentType: 'string',
|
|
99
|
+
enableTranslation: 'boolean',
|
|
100
|
+
maxLength: 'number',
|
|
101
|
+
minLength: 'number',
|
|
102
|
+
operation: 'string',
|
|
103
|
+
platform: 'string',
|
|
104
|
+
productAttributes: 'string',
|
|
105
|
+
productCategory: 'string',
|
|
106
|
+
sourceLanguage: 'string',
|
|
107
|
+
sourceText: 'string',
|
|
108
|
+
targetLanguage: 'string',
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
validate() {
|
|
113
|
+
super.validate();
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
constructor(map?: { [key: string]: any }) {
|
|
117
|
+
super(map);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GenerateProductContentResponseBody } from "./GenerateProductContentResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GenerateProductContentResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GenerateProductContentResponseBody;
|
|
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: GenerateProductContentResponseBody,
|
|
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,124 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GenerateProductContentResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* title
|
|
9
|
+
*/
|
|
10
|
+
contentType?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 54
|
|
14
|
+
*/
|
|
15
|
+
length?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* ru
|
|
19
|
+
*/
|
|
20
|
+
outputLanguage?: string;
|
|
21
|
+
pointLengths?: number[];
|
|
22
|
+
points?: string[];
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* Чашка Для Мороженого Из Нержавеющей Стали 14,5x10,8 см
|
|
26
|
+
*/
|
|
27
|
+
text?: string;
|
|
28
|
+
usageMap?: { [key: string]: number };
|
|
29
|
+
static names(): { [key: string]: string } {
|
|
30
|
+
return {
|
|
31
|
+
contentType: 'ContentType',
|
|
32
|
+
length: 'Length',
|
|
33
|
+
outputLanguage: 'OutputLanguage',
|
|
34
|
+
pointLengths: 'PointLengths',
|
|
35
|
+
points: 'Points',
|
|
36
|
+
text: 'Text',
|
|
37
|
+
usageMap: 'UsageMap',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static types(): { [key: string]: any } {
|
|
42
|
+
return {
|
|
43
|
+
contentType: 'string',
|
|
44
|
+
length: 'number',
|
|
45
|
+
outputLanguage: 'string',
|
|
46
|
+
pointLengths: { 'type': 'array', 'itemType': 'number' },
|
|
47
|
+
points: { 'type': 'array', 'itemType': 'string' },
|
|
48
|
+
text: 'string',
|
|
49
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
validate() {
|
|
54
|
+
if(Array.isArray(this.pointLengths)) {
|
|
55
|
+
$dara.Model.validateArray(this.pointLengths);
|
|
56
|
+
}
|
|
57
|
+
if(Array.isArray(this.points)) {
|
|
58
|
+
$dara.Model.validateArray(this.points);
|
|
59
|
+
}
|
|
60
|
+
if(this.usageMap) {
|
|
61
|
+
$dara.Model.validateMap(this.usageMap);
|
|
62
|
+
}
|
|
63
|
+
super.validate();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
constructor(map?: { [key: string]: any }) {
|
|
67
|
+
super(map);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export class GenerateProductContentResponseBody extends $dara.Model {
|
|
72
|
+
/**
|
|
73
|
+
* @example
|
|
74
|
+
* success
|
|
75
|
+
*/
|
|
76
|
+
code?: string;
|
|
77
|
+
data?: GenerateProductContentResponseBodyData;
|
|
78
|
+
/**
|
|
79
|
+
* @example
|
|
80
|
+
* OK
|
|
81
|
+
*/
|
|
82
|
+
message?: string;
|
|
83
|
+
/**
|
|
84
|
+
* @example
|
|
85
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
86
|
+
*/
|
|
87
|
+
requestId?: string;
|
|
88
|
+
/**
|
|
89
|
+
* @example
|
|
90
|
+
* True
|
|
91
|
+
*/
|
|
92
|
+
success?: boolean;
|
|
93
|
+
static names(): { [key: string]: string } {
|
|
94
|
+
return {
|
|
95
|
+
code: 'Code',
|
|
96
|
+
data: 'Data',
|
|
97
|
+
message: 'Message',
|
|
98
|
+
requestId: 'RequestId',
|
|
99
|
+
success: 'Success',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
static types(): { [key: string]: any } {
|
|
104
|
+
return {
|
|
105
|
+
code: 'string',
|
|
106
|
+
data: GenerateProductContentResponseBodyData,
|
|
107
|
+
message: 'string',
|
|
108
|
+
requestId: 'string',
|
|
109
|
+
success: 'boolean',
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
validate() {
|
|
114
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
115
|
+
(this.data as any).validate();
|
|
116
|
+
}
|
|
117
|
+
super.validate();
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
constructor(map?: { [key: string]: any }) {
|
|
121
|
+
super(map);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
@@ -25,7 +25,15 @@ export class ImageMattingAsyncRequest extends $dara.Model {
|
|
|
25
25
|
bgColor?: string;
|
|
26
26
|
/**
|
|
27
27
|
* @remarks
|
|
28
|
-
* The
|
|
28
|
+
* The business order ID of the caller. It is recorded upon acceptance and returned as is when you query the result of the asynchronous task.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* order-20260928-001
|
|
32
|
+
*/
|
|
33
|
+
bizId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @remarks
|
|
36
|
+
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 100 × 100 and 3000 × 3000 pixels, and the file size must not exceed 10 MB.
|
|
29
37
|
*
|
|
30
38
|
* This parameter is required.
|
|
31
39
|
*
|
|
@@ -53,6 +61,7 @@ export class ImageMattingAsyncRequest extends $dara.Model {
|
|
|
53
61
|
return {
|
|
54
62
|
backGroundType: 'BackGroundType',
|
|
55
63
|
bgColor: 'BgColor',
|
|
64
|
+
bizId: 'BizId',
|
|
56
65
|
imageUrl: 'ImageUrl',
|
|
57
66
|
targetHeight: 'TargetHeight',
|
|
58
67
|
targetWidth: 'TargetWidth',
|
|
@@ -63,6 +72,7 @@ export class ImageMattingAsyncRequest extends $dara.Model {
|
|
|
63
72
|
return {
|
|
64
73
|
backGroundType: 'string',
|
|
65
74
|
bgColor: 'string',
|
|
75
|
+
bizId: 'string',
|
|
66
76
|
imageUrl: 'string',
|
|
67
77
|
targetHeight: 'number',
|
|
68
78
|
targetWidth: 'number',
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageMattingAsyncResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The
|
|
8
|
+
* The task ID used to query the result of the asynchronous task.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
@@ -35,7 +35,7 @@ export class ImageMattingAsyncResponseBodyData extends $dara.Model {
|
|
|
35
35
|
export class ImageMattingAsyncResponseBody extends $dara.Model {
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The status code, such as success.
|
|
38
|
+
* The status code, such as "success". This parameter is not returned for normal calls.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* success
|
|
@@ -43,12 +43,12 @@ export class ImageMattingAsyncResponseBody extends $dara.Model {
|
|
|
43
43
|
code?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The
|
|
46
|
+
* The submission result of the asynchronous task for intelligent image matting.
|
|
47
47
|
*/
|
|
48
48
|
data?: ImageMattingAsyncResponseBodyData;
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
* The error message. This parameter is not returned
|
|
51
|
+
* The error message. This parameter is not returned for normal calls.
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* OK
|
|
@@ -56,7 +56,7 @@ export class ImageMattingAsyncResponseBody extends $dara.Model {
|
|
|
56
56
|
message?: string;
|
|
57
57
|
/**
|
|
58
58
|
* @remarks
|
|
59
|
-
* The ID of the request
|
|
59
|
+
* The ID of the request. It is used to identify a unique request.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -5,7 +5,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The
|
|
8
|
+
* The business ID of the caller. It is recorded upon acceptance and returned as is when you query the result of the asynchronous task.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* order-20260928-001
|
|
12
|
+
*/
|
|
13
|
+
bizId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The image URL. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
|
|
9
17
|
*
|
|
10
18
|
* This parameter is required.
|
|
11
19
|
*
|
|
@@ -15,29 +23,29 @@ export class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
15
23
|
imageUrl?: string;
|
|
16
24
|
/**
|
|
17
25
|
* @remarks
|
|
18
|
-
*
|
|
19
|
-
* - 1:
|
|
20
|
-
* - 2:
|
|
21
|
-
* - 3:
|
|
22
|
-
* - 4:
|
|
23
|
-
* You can specify multiple
|
|
26
|
+
* The types of elements to detect outside the image subject. Valid values:
|
|
27
|
+
* - 1: watermark
|
|
28
|
+
* - 2: logo
|
|
29
|
+
* - 3: text
|
|
30
|
+
* - 4: text-containing color block
|
|
31
|
+
* You can specify multiple values. This parameter and ObjectDetectElements cannot be empty at the same time.
|
|
24
32
|
*/
|
|
25
33
|
nonObjectDetectElements?: number[];
|
|
26
34
|
/**
|
|
27
35
|
* @remarks
|
|
28
|
-
*
|
|
29
|
-
* - 1:
|
|
30
|
-
* - 2:
|
|
31
|
-
* - 3:
|
|
32
|
-
* - 4:
|
|
33
|
-
* You can specify multiple
|
|
36
|
+
* The types of elements to detect on the image subject. Valid values:
|
|
37
|
+
* - 1: watermark
|
|
38
|
+
* - 2: logo
|
|
39
|
+
* - 3: text
|
|
40
|
+
* - 4: text-containing color block
|
|
41
|
+
* You can specify multiple values.
|
|
34
42
|
*/
|
|
35
43
|
objectDetectElements?: number[];
|
|
36
44
|
/**
|
|
37
45
|
* @remarks
|
|
38
46
|
* Specifies whether to return the marginalization distance of the subject. Valid values:
|
|
39
|
-
* - 1:
|
|
40
|
-
* - 0:
|
|
47
|
+
* - 1: yes
|
|
48
|
+
* - 0: no
|
|
41
49
|
* Default value: 0.
|
|
42
50
|
*
|
|
43
51
|
* @example
|
|
@@ -46,9 +54,9 @@ export class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
46
54
|
returnBorderPixel?: number;
|
|
47
55
|
/**
|
|
48
56
|
* @remarks
|
|
49
|
-
* Specifies whether to return the OCR
|
|
50
|
-
* - 1:
|
|
51
|
-
* - 0:
|
|
57
|
+
* Specifies whether to return the OCR result of the text in the recognized area. Valid values:
|
|
58
|
+
* - 1: yes
|
|
59
|
+
* - 0: no
|
|
52
60
|
* Default value: 0.
|
|
53
61
|
*
|
|
54
62
|
* @example
|
|
@@ -58,12 +66,12 @@ export class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
58
66
|
/**
|
|
59
67
|
* @remarks
|
|
60
68
|
* Specifies whether to return the text proportion. Valid values:
|
|
61
|
-
* - 1:
|
|
62
|
-
* - 0:
|
|
69
|
+
* - 1: yes
|
|
70
|
+
* - 0: no
|
|
63
71
|
* Default value: 0.
|
|
64
72
|
* This parameter takes effect only when the following two conditions are met:
|
|
65
73
|
* 1. ReturnCharacter is set to 1.
|
|
66
|
-
* 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text
|
|
74
|
+
* 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text needs to be recognized.
|
|
67
75
|
*
|
|
68
76
|
* @example
|
|
69
77
|
* 1
|
|
@@ -72,8 +80,8 @@ export class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
72
80
|
/**
|
|
73
81
|
* @remarks
|
|
74
82
|
* Specifies whether to return the number of subjects. Valid values:
|
|
75
|
-
* - 1:
|
|
76
|
-
* - 0:
|
|
83
|
+
* - 1: yes
|
|
84
|
+
* - 0: no
|
|
77
85
|
* Default value: 0.
|
|
78
86
|
*
|
|
79
87
|
* @example
|
|
@@ -83,8 +91,8 @@ export class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
83
91
|
/**
|
|
84
92
|
* @remarks
|
|
85
93
|
* Specifies whether to return the area proportion of the subject. Valid values:
|
|
86
|
-
* - 1:
|
|
87
|
-
* - 0:
|
|
94
|
+
* - 1: yes
|
|
95
|
+
* - 0: no
|
|
88
96
|
* Default value: 0.
|
|
89
97
|
*
|
|
90
98
|
* @example
|
|
@@ -93,6 +101,7 @@ export class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
93
101
|
returnProductProp?: number;
|
|
94
102
|
static names(): { [key: string]: string } {
|
|
95
103
|
return {
|
|
104
|
+
bizId: 'BizId',
|
|
96
105
|
imageUrl: 'ImageUrl',
|
|
97
106
|
nonObjectDetectElements: 'NonObjectDetectElements',
|
|
98
107
|
objectDetectElements: 'ObjectDetectElements',
|
|
@@ -106,6 +115,7 @@ export class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
106
115
|
|
|
107
116
|
static types(): { [key: string]: any } {
|
|
108
117
|
return {
|
|
118
|
+
bizId: 'string',
|
|
109
119
|
imageUrl: 'string',
|
|
110
120
|
nonObjectDetectElements: { 'type': 'array', 'itemType': 'number' },
|
|
111
121
|
objectDetectElements: { 'type': 'array', 'itemType': 'number' },
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRecognitionAsyncResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The ID
|
|
8
|
+
* The task ID used to query the result of the asynchronous task.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
@@ -35,7 +35,7 @@ export class ImageRecognitionAsyncResponseBodyData extends $dara.Model {
|
|
|
35
35
|
export class ImageRecognitionAsyncResponseBody 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 normal calls.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* 200
|
|
@@ -43,7 +43,7 @@ export class ImageRecognitionAsyncResponseBody extends $dara.Model {
|
|
|
43
43
|
code?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The returned recognition result
|
|
46
|
+
* The struct information of the returned recognition result.
|
|
47
47
|
*/
|
|
48
48
|
data?: ImageRecognitionAsyncResponseBodyData;
|
|
49
49
|
/**
|
|
@@ -56,7 +56,7 @@ export class ImageRecognitionAsyncResponseBody extends $dara.Model {
|
|
|
56
56
|
message?: string;
|
|
57
57
|
/**
|
|
58
58
|
* @remarks
|
|
59
|
-
* The ID
|
|
59
|
+
* The request ID, which is used to identify a unique request.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -65,8 +65,8 @@ export class ImageRecognitionAsyncResponseBody extends $dara.Model {
|
|
|
65
65
|
/**
|
|
66
66
|
* @remarks
|
|
67
67
|
* Indicates whether the call is successful. Valid values:
|
|
68
|
-
* - true:
|
|
69
|
-
* - false:
|
|
68
|
+
* - true: successful
|
|
69
|
+
* - false: failed
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* True
|
|
@@ -5,7 +5,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The
|
|
8
|
+
* The business ID of the caller. It is recorded upon acceptance and returned as is when you query the result of the asynchronous task.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* order-20260928-001
|
|
12
|
+
*/
|
|
13
|
+
bizId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The image URL. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
|
|
9
17
|
*
|
|
10
18
|
* This parameter is required.
|
|
11
19
|
*
|
|
@@ -15,29 +23,29 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
15
23
|
imageUrl?: string;
|
|
16
24
|
/**
|
|
17
25
|
* @remarks
|
|
18
|
-
*
|
|
19
|
-
* - 1:
|
|
20
|
-
* - 2:
|
|
21
|
-
* - 3:
|
|
22
|
-
* - 4:
|
|
23
|
-
* You can specify multiple
|
|
26
|
+
* The types of elements to detect outside the image subject. Valid values:
|
|
27
|
+
* - 1: watermark
|
|
28
|
+
* - 2: logo
|
|
29
|
+
* - 3: text
|
|
30
|
+
* - 4: text-containing color block
|
|
31
|
+
* You can specify multiple values. This parameter and ObjectDetectElements cannot be empty at the same time.
|
|
24
32
|
*/
|
|
25
33
|
nonObjectDetectElementsShrink?: string;
|
|
26
34
|
/**
|
|
27
35
|
* @remarks
|
|
28
|
-
*
|
|
29
|
-
* - 1:
|
|
30
|
-
* - 2:
|
|
31
|
-
* - 3:
|
|
32
|
-
* - 4:
|
|
33
|
-
* You can specify multiple
|
|
36
|
+
* The types of elements to detect on the image subject. Valid values:
|
|
37
|
+
* - 1: watermark
|
|
38
|
+
* - 2: logo
|
|
39
|
+
* - 3: text
|
|
40
|
+
* - 4: text-containing color block
|
|
41
|
+
* You can specify multiple values.
|
|
34
42
|
*/
|
|
35
43
|
objectDetectElementsShrink?: string;
|
|
36
44
|
/**
|
|
37
45
|
* @remarks
|
|
38
46
|
* Specifies whether to return the marginalization distance of the subject. Valid values:
|
|
39
|
-
* - 1:
|
|
40
|
-
* - 0:
|
|
47
|
+
* - 1: yes
|
|
48
|
+
* - 0: no
|
|
41
49
|
* Default value: 0.
|
|
42
50
|
*
|
|
43
51
|
* @example
|
|
@@ -46,9 +54,9 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
46
54
|
returnBorderPixel?: number;
|
|
47
55
|
/**
|
|
48
56
|
* @remarks
|
|
49
|
-
* Specifies whether to return the OCR
|
|
50
|
-
* - 1:
|
|
51
|
-
* - 0:
|
|
57
|
+
* Specifies whether to return the OCR result of the text in the recognized area. Valid values:
|
|
58
|
+
* - 1: yes
|
|
59
|
+
* - 0: no
|
|
52
60
|
* Default value: 0.
|
|
53
61
|
*
|
|
54
62
|
* @example
|
|
@@ -58,12 +66,12 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
58
66
|
/**
|
|
59
67
|
* @remarks
|
|
60
68
|
* Specifies whether to return the text proportion. Valid values:
|
|
61
|
-
* - 1:
|
|
62
|
-
* - 0:
|
|
69
|
+
* - 1: yes
|
|
70
|
+
* - 0: no
|
|
63
71
|
* Default value: 0.
|
|
64
72
|
* This parameter takes effect only when the following two conditions are met:
|
|
65
73
|
* 1. ReturnCharacter is set to 1.
|
|
66
|
-
* 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text
|
|
74
|
+
* 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text needs to be recognized.
|
|
67
75
|
*
|
|
68
76
|
* @example
|
|
69
77
|
* 1
|
|
@@ -72,8 +80,8 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
72
80
|
/**
|
|
73
81
|
* @remarks
|
|
74
82
|
* Specifies whether to return the number of subjects. Valid values:
|
|
75
|
-
* - 1:
|
|
76
|
-
* - 0:
|
|
83
|
+
* - 1: yes
|
|
84
|
+
* - 0: no
|
|
77
85
|
* Default value: 0.
|
|
78
86
|
*
|
|
79
87
|
* @example
|
|
@@ -83,8 +91,8 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
83
91
|
/**
|
|
84
92
|
* @remarks
|
|
85
93
|
* Specifies whether to return the area proportion of the subject. Valid values:
|
|
86
|
-
* - 1:
|
|
87
|
-
* - 0:
|
|
94
|
+
* - 1: yes
|
|
95
|
+
* - 0: no
|
|
88
96
|
* Default value: 0.
|
|
89
97
|
*
|
|
90
98
|
* @example
|
|
@@ -93,6 +101,7 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
93
101
|
returnProductProp?: number;
|
|
94
102
|
static names(): { [key: string]: string } {
|
|
95
103
|
return {
|
|
104
|
+
bizId: 'BizId',
|
|
96
105
|
imageUrl: 'ImageUrl',
|
|
97
106
|
nonObjectDetectElementsShrink: 'NonObjectDetectElements',
|
|
98
107
|
objectDetectElementsShrink: 'ObjectDetectElements',
|
|
@@ -106,6 +115,7 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
106
115
|
|
|
107
116
|
static types(): { [key: string]: any } {
|
|
108
117
|
return {
|
|
118
|
+
bizId: 'string',
|
|
109
119
|
imageUrl: 'string',
|
|
110
120
|
nonObjectDetectElementsShrink: 'string',
|
|
111
121
|
objectDetectElementsShrink: 'string',
|
|
@@ -5,7 +5,16 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemovalProAsyncRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The
|
|
8
|
+
* The business order ID of the caller. This ID is recorded when the request is accepted and returned as-is when you query the asynchronous task result.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* order-20260928-001
|
|
12
|
+
*/
|
|
13
|
+
bizId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The URL of the original image. The image must be in the JPG, JPEG, PNG, BMP, or WEBP format.
|
|
17
|
+
* · Resolution: 256×256 to 3000×3000. File size: ≤ 10 MB.
|
|
9
18
|
*
|
|
10
19
|
* This parameter is required.
|
|
11
20
|
*
|
|
@@ -15,12 +24,14 @@ export class ImageRemovalProAsyncRequest extends $dara.Model {
|
|
|
15
24
|
imageUrl?: string;
|
|
16
25
|
static names(): { [key: string]: string } {
|
|
17
26
|
return {
|
|
27
|
+
bizId: 'BizId',
|
|
18
28
|
imageUrl: 'ImageUrl',
|
|
19
29
|
};
|
|
20
30
|
}
|
|
21
31
|
|
|
22
32
|
static types(): { [key: string]: any } {
|
|
23
33
|
return {
|
|
34
|
+
bizId: 'string',
|
|
24
35
|
imageUrl: 'string',
|
|
25
36
|
};
|
|
26
37
|
}
|