@alicloud/aidge20260428 5.7.0 → 5.8.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 +286 -78
- package/dist/client.js +405 -78
- package/dist/client.js.map +1 -1
- package/dist/models/AiTryOnRequest.d.ts +11 -2
- package/dist/models/AiTryOnRequest.js.map +1 -1
- package/dist/models/AiTryOnResponseBody.d.ts +35 -1
- package/dist/models/AiTryOnResponseBody.js.map +1 -1
- package/dist/models/DiduiAreaDeductionProRequest.d.ts +33 -0
- package/dist/models/DiduiAreaDeductionProRequest.js +60 -0
- package/dist/models/DiduiAreaDeductionProRequest.js.map +1 -0
- package/dist/models/DiduiAreaDeductionProResponse.d.ts +19 -0
- package/dist/models/DiduiAreaDeductionProResponse.js +69 -0
- package/dist/models/DiduiAreaDeductionProResponse.js.map +1 -0
- package/dist/models/DiduiAreaDeductionProResponseBody.d.ts +70 -0
- package/dist/models/DiduiAreaDeductionProResponseBody.js +88 -0
- package/dist/models/DiduiAreaDeductionProResponseBody.js.map +1 -0
- package/dist/models/GeneralRephotographyDetectionRequest.d.ts +23 -0
- package/dist/models/GeneralRephotographyDetectionRequest.js +58 -0
- package/dist/models/GeneralRephotographyDetectionRequest.js.map +1 -0
- package/dist/models/GeneralRephotographyDetectionResponse.d.ts +19 -0
- package/dist/models/GeneralRephotographyDetectionResponse.js +69 -0
- package/dist/models/GeneralRephotographyDetectionResponse.js.map +1 -0
- package/dist/models/GeneralRephotographyDetectionResponseBody.d.ts +170 -0
- package/dist/models/GeneralRephotographyDetectionResponseBody.js +172 -0
- package/dist/models/GeneralRephotographyDetectionResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationPlusResponseBody.d.ts +1 -1
- package/dist/models/ImageTranslationProRequest.d.ts +3 -3
- package/dist/models/ImageTranslationStandardRequest.d.ts +10 -10
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +8 -8
- package/dist/models/MerchandisePlacementDetectionProRequest.d.ts +39 -0
- package/dist/models/MerchandisePlacementDetectionProRequest.js +62 -0
- package/dist/models/MerchandisePlacementDetectionProRequest.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionProResponse.d.ts +19 -0
- package/dist/models/MerchandisePlacementDetectionProResponse.js +69 -0
- package/dist/models/MerchandisePlacementDetectionProResponse.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionProResponseBody.d.ts +118 -0
- package/dist/models/MerchandisePlacementDetectionProResponseBody.js +124 -0
- package/dist/models/MerchandisePlacementDetectionProResponseBody.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionRequest.d.ts +13 -5
- package/dist/models/MerchandisePlacementDetectionRequest.js +2 -0
- package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -1
- package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +7 -7
- package/dist/models/PetHealthAnalysisRequest.d.ts +36 -0
- package/dist/models/PetHealthAnalysisRequest.js +65 -0
- package/dist/models/PetHealthAnalysisRequest.js.map +1 -0
- package/dist/models/PetHealthAnalysisResponse.d.ts +19 -0
- package/dist/models/PetHealthAnalysisResponse.js +69 -0
- package/dist/models/PetHealthAnalysisResponse.js.map +1 -0
- package/dist/models/PetHealthAnalysisResponseBody.d.ts +70 -0
- package/dist/models/PetHealthAnalysisResponseBody.js +88 -0
- package/dist/models/PetHealthAnalysisResponseBody.js.map +1 -0
- package/dist/models/PetHealthAnalysisShrinkRequest.d.ts +36 -0
- package/dist/models/PetHealthAnalysisShrinkRequest.js +62 -0
- package/dist/models/PetHealthAnalysisShrinkRequest.js.map +1 -0
- package/dist/models/TextTranslateRequest.d.ts +6 -6
- package/dist/models/TextTranslateResponseBody.d.ts +1 -1
- package/dist/models/TextTranslateShrinkRequest.d.ts +6 -6
- package/dist/models/model.d.ts +21 -0
- package/dist/models/model.js +46 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +424 -78
- package/src/models/AiTryOnRequest.ts +11 -2
- package/src/models/AiTryOnResponseBody.ts +35 -1
- package/src/models/DiduiAreaDeductionProRequest.ts +48 -0
- package/src/models/DiduiAreaDeductionProResponse.ts +40 -0
- package/src/models/DiduiAreaDeductionProResponseBody.ts +104 -0
- package/src/models/GeneralRephotographyDetectionRequest.ts +36 -0
- package/src/models/GeneralRephotographyDetectionResponse.ts +40 -0
- package/src/models/GeneralRephotographyDetectionResponseBody.ts +259 -0
- package/src/models/ImageTranslationPlusResponseBody.ts +1 -1
- package/src/models/ImageTranslationProRequest.ts +3 -3
- package/src/models/ImageTranslationStandardRequest.ts +10 -10
- package/src/models/ImageTranslationStandardResponseBody.ts +8 -8
- package/src/models/MerchandisePlacementDetectionProRequest.ts +56 -0
- package/src/models/MerchandisePlacementDetectionProResponse.ts +40 -0
- package/src/models/MerchandisePlacementDetectionProResponseBody.ts +177 -0
- package/src/models/MerchandisePlacementDetectionRequest.ts +15 -5
- package/src/models/MerchandisePlacementDetectionResponseBody.ts +7 -7
- package/src/models/PetHealthAnalysisRequest.ts +56 -0
- package/src/models/PetHealthAnalysisResponse.ts +40 -0
- package/src/models/PetHealthAnalysisResponseBody.ts +104 -0
- package/src/models/PetHealthAnalysisShrinkRequest.ts +53 -0
- package/src/models/TextTranslateRequest.ts +6 -6
- package/src/models/TextTranslateResponseBody.ts +1 -1
- package/src/models/TextTranslateShrinkRequest.ts +6 -6
- package/src/models/model.ts +21 -0
|
@@ -5,27 +5,36 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class AiTryOnRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
+
* The URL of the clothing image. Only one image is supported. The URL must be a publicly accessible `http`/`https` address. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 2049 × 2049 pixels, and a file size of no more than 10 MB.<br>
|
|
9
|
+
*
|
|
8
10
|
* This parameter is required.
|
|
9
11
|
*
|
|
10
12
|
* @example
|
|
11
|
-
* https://
|
|
13
|
+
* https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg
|
|
12
14
|
*/
|
|
13
15
|
clothImageUrl?: string;
|
|
14
16
|
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The clothing type. If specified, the value must be one of the following: tops/bottoms/dresses/tops_and_bottoms/shoes/hats. If not specified, the system automatically identifies the type.
|
|
19
|
+
*
|
|
15
20
|
* @example
|
|
16
21
|
* tops
|
|
17
22
|
*/
|
|
18
23
|
clothType?: string;
|
|
19
24
|
/**
|
|
20
25
|
* @remarks
|
|
26
|
+
* The URL of the model image. Only one image is supported. The URL must be a publicly accessible `http`/`https` address. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 2049 × 2049 pixels, and a file size of no more than 10 MB.<br>
|
|
27
|
+
*
|
|
21
28
|
* This parameter is required.
|
|
22
29
|
*
|
|
23
30
|
* @example
|
|
24
|
-
* https://
|
|
31
|
+
* https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg
|
|
25
32
|
*/
|
|
26
33
|
modelImageUrl?: string;
|
|
27
34
|
/**
|
|
28
35
|
* @remarks
|
|
36
|
+
* The output image resolution. The synchronous API supports only 1K.
|
|
37
|
+
*
|
|
29
38
|
* This parameter is required.
|
|
30
39
|
*
|
|
31
40
|
* @example
|
|
@@ -6,11 +6,17 @@ import * as $dara from '@darabonba/typescript';
|
|
|
6
6
|
*/
|
|
7
7
|
export class AiTryOnResponseBodyDataUsageMap extends $dara.Model {
|
|
8
8
|
/**
|
|
9
|
+
* @remarks
|
|
10
|
+
* The number of processed images.
|
|
11
|
+
*
|
|
9
12
|
* @example
|
|
10
13
|
* 1
|
|
11
14
|
*/
|
|
12
15
|
processedImageCount?: number;
|
|
13
16
|
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The resolution of the processed image.
|
|
19
|
+
*
|
|
14
20
|
* @example
|
|
15
21
|
* 1K
|
|
16
22
|
*/
|
|
@@ -40,21 +46,33 @@ export class AiTryOnResponseBodyDataUsageMap extends $dara.Model {
|
|
|
40
46
|
|
|
41
47
|
export class AiTryOnResponseBodyData extends $dara.Model {
|
|
42
48
|
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* The height of the result image, in pixels.
|
|
51
|
+
*
|
|
43
52
|
* @example
|
|
44
53
|
* 1360
|
|
45
54
|
*/
|
|
46
55
|
imageHeight?: string;
|
|
47
56
|
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The URL of the virtual try-on result image.
|
|
59
|
+
*
|
|
48
60
|
* @example
|
|
49
61
|
* https://example.com/virtual-try-on-result.png
|
|
50
62
|
*/
|
|
51
63
|
imageUrl?: string;
|
|
52
64
|
/**
|
|
65
|
+
* @remarks
|
|
66
|
+
* The width of the result image, in pixels.
|
|
67
|
+
*
|
|
53
68
|
* @example
|
|
54
69
|
* 768
|
|
55
70
|
*/
|
|
56
71
|
imageWidth?: string;
|
|
57
72
|
/**
|
|
73
|
+
* @remarks
|
|
74
|
+
* The usage details.
|
|
75
|
+
*
|
|
58
76
|
* @example
|
|
59
77
|
* {"ProcessedImageCount":1,"Resolution":"1K"}
|
|
60
78
|
*/
|
|
@@ -91,22 +109,38 @@ export class AiTryOnResponseBodyData extends $dara.Model {
|
|
|
91
109
|
|
|
92
110
|
export class AiTryOnResponseBody extends $dara.Model {
|
|
93
111
|
/**
|
|
112
|
+
* @remarks
|
|
113
|
+
* The error code. This parameter is not returned if the call is successful.
|
|
114
|
+
*
|
|
94
115
|
* @example
|
|
95
116
|
* 200
|
|
96
117
|
*/
|
|
97
118
|
code?: string;
|
|
119
|
+
/**
|
|
120
|
+
* @remarks
|
|
121
|
+
* The result struct.
|
|
122
|
+
*/
|
|
98
123
|
data?: AiTryOnResponseBodyData;
|
|
99
124
|
/**
|
|
125
|
+
* @remarks
|
|
126
|
+
* The error message. This parameter is not returned if the call is successful.
|
|
127
|
+
*
|
|
100
128
|
* @example
|
|
101
129
|
* OK
|
|
102
130
|
*/
|
|
103
131
|
message?: string;
|
|
104
132
|
/**
|
|
133
|
+
* @remarks
|
|
134
|
+
* The request ID. Used to uniquely identify a request.
|
|
135
|
+
*
|
|
105
136
|
* @example
|
|
106
|
-
*
|
|
137
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
107
138
|
*/
|
|
108
139
|
requestId?: string;
|
|
109
140
|
/**
|
|
141
|
+
* @remarks
|
|
142
|
+
* Indicates whether the call is successful. Valid values: true and false.
|
|
143
|
+
*
|
|
110
144
|
* @example
|
|
111
145
|
* True
|
|
112
146
|
*/
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DiduiAreaDeductionProRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The HTTP(S) URL of the overall floor display image.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* https://example.com/image.jpg
|
|
14
|
+
*/
|
|
15
|
+
imageUrl?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The ID of the SKU asset knowledge base.
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* rag_9c1f2b7d4e5a4c8fa1b2c3d4e5f60718
|
|
24
|
+
*/
|
|
25
|
+
ragId?: string;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
imageUrl: 'ImageUrl',
|
|
29
|
+
ragId: 'RagId',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static types(): { [key: string]: any } {
|
|
34
|
+
return {
|
|
35
|
+
imageUrl: 'string',
|
|
36
|
+
ragId: 'string',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DiduiAreaDeductionProResponseBody } from "./DiduiAreaDeductionProResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DiduiAreaDeductionProResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DiduiAreaDeductionProResponseBody;
|
|
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: DiduiAreaDeductionProResponseBody,
|
|
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,104 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DiduiAreaDeductionProResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The ID of the asynchronous task, which is used to call QueryAsyncTaskResult to query the task result.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* task_778xxxxxxxxxxx
|
|
12
|
+
*/
|
|
13
|
+
taskId?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
taskId: 'TaskId',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
taskId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export class DiduiAreaDeductionProResponseBody extends $dara.Model {
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The error code.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* success
|
|
42
|
+
*/
|
|
43
|
+
code?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The submit status of the asynchronous task.
|
|
47
|
+
*/
|
|
48
|
+
data?: DiduiAreaDeductionProResponseBodyData;
|
|
49
|
+
/**
|
|
50
|
+
* @remarks
|
|
51
|
+
* The response message or failure description.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* Task submitted
|
|
55
|
+
*/
|
|
56
|
+
message?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @remarks
|
|
59
|
+
* The request ID.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* 70CBEFDF-BB17-1EB3-8A21-569F3124738F
|
|
63
|
+
*/
|
|
64
|
+
requestId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* @remarks
|
|
67
|
+
* Indicates whether the call was successful.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* True
|
|
71
|
+
*/
|
|
72
|
+
success?: boolean;
|
|
73
|
+
static names(): { [key: string]: string } {
|
|
74
|
+
return {
|
|
75
|
+
code: 'Code',
|
|
76
|
+
data: 'Data',
|
|
77
|
+
message: 'Message',
|
|
78
|
+
requestId: 'RequestId',
|
|
79
|
+
success: 'Success',
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
static types(): { [key: string]: any } {
|
|
84
|
+
return {
|
|
85
|
+
code: 'string',
|
|
86
|
+
data: DiduiAreaDeductionProResponseBodyData,
|
|
87
|
+
message: 'string',
|
|
88
|
+
requestId: 'string',
|
|
89
|
+
success: 'boolean',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
validate() {
|
|
94
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
95
|
+
(this.data as any).validate();
|
|
96
|
+
}
|
|
97
|
+
super.validate();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
constructor(map?: { [key: string]: any }) {
|
|
101
|
+
super(map);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GeneralRephotographyDetectionRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The HTTPS URL of the original image to recognize. The URL must be accessible and must not contain whitespace or URL-embedded usernames or passwords.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* https://example.com/image.jpg
|
|
14
|
+
*/
|
|
15
|
+
imageUrl?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
imageUrl: 'ImageUrl',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static types(): { [key: string]: any } {
|
|
23
|
+
return {
|
|
24
|
+
imageUrl: 'string',
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
validate() {
|
|
29
|
+
super.validate();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
constructor(map?: { [key: string]: any }) {
|
|
33
|
+
super(map);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GeneralRephotographyDetectionResponseBody } from "./GeneralRephotographyDetectionResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GeneralRephotographyDetectionResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GeneralRephotographyDetectionResponseBody;
|
|
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: GeneralRephotographyDetectionResponseBody,
|
|
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,259 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GeneralRephotographyDetectionResponseBodyDataResultGroundingRegions extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The bounding box coordinates.
|
|
9
|
+
*/
|
|
10
|
+
bbox2d?: number[];
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The target category. For valid values, see the table below.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* product
|
|
17
|
+
*/
|
|
18
|
+
label?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The confirmed short name or text of up to 24 characters. This value is an empty string if the text is unreadable.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* Product
|
|
25
|
+
*/
|
|
26
|
+
text?: string;
|
|
27
|
+
static names(): { [key: string]: string } {
|
|
28
|
+
return {
|
|
29
|
+
bbox2d: 'Bbox2d',
|
|
30
|
+
label: 'Label',
|
|
31
|
+
text: 'Text',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
bbox2d: { 'type': 'array', 'itemType': 'number' },
|
|
38
|
+
label: 'string',
|
|
39
|
+
text: 'string',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
validate() {
|
|
44
|
+
if(Array.isArray(this.bbox2d)) {
|
|
45
|
+
$dara.Model.validateArray(this.bbox2d);
|
|
46
|
+
}
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class GeneralRephotographyDetectionResponseBodyDataResultGrounding extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The coverage of the localization. Valid values:
|
|
59
|
+
* - complete: All relevant visible targets are fully covered.
|
|
60
|
+
* - partial: Only some targets are valid or recognizable.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* complete
|
|
64
|
+
*/
|
|
65
|
+
coverage?: string;
|
|
66
|
+
/**
|
|
67
|
+
* @remarks
|
|
68
|
+
* The array of targets. A maximum of 12 items are returned. This value can be empty if no relevant targets exist.
|
|
69
|
+
*/
|
|
70
|
+
regions?: GeneralRephotographyDetectionResponseBodyDataResultGroundingRegions[];
|
|
71
|
+
static names(): { [key: string]: string } {
|
|
72
|
+
return {
|
|
73
|
+
coverage: 'Coverage',
|
|
74
|
+
regions: 'Regions',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
static types(): { [key: string]: any } {
|
|
79
|
+
return {
|
|
80
|
+
coverage: 'string',
|
|
81
|
+
regions: { 'type': 'array', 'itemType': GeneralRephotographyDetectionResponseBodyDataResultGroundingRegions },
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
validate() {
|
|
86
|
+
if(Array.isArray(this.regions)) {
|
|
87
|
+
$dara.Model.validateArray(this.regions);
|
|
88
|
+
}
|
|
89
|
+
super.validate();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
constructor(map?: { [key: string]: any }) {
|
|
93
|
+
super(map);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export class GeneralRephotographyDetectionResponseBodyDataResult extends $dara.Model {
|
|
98
|
+
/**
|
|
99
|
+
* @remarks
|
|
100
|
+
* The supplementary element localization result.
|
|
101
|
+
*/
|
|
102
|
+
grounding?: GeneralRephotographyDetectionResponseBodyDataResultGrounding;
|
|
103
|
+
/**
|
|
104
|
+
* @remarks
|
|
105
|
+
* Indicates whether the image is a recaptured photo.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* true
|
|
109
|
+
*/
|
|
110
|
+
isFake?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* @remarks
|
|
113
|
+
* The detection type. The value is fixed as general.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* general
|
|
117
|
+
*/
|
|
118
|
+
type?: string;
|
|
119
|
+
static names(): { [key: string]: string } {
|
|
120
|
+
return {
|
|
121
|
+
grounding: 'Grounding',
|
|
122
|
+
isFake: 'IsFake',
|
|
123
|
+
type: 'Type',
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
static types(): { [key: string]: any } {
|
|
128
|
+
return {
|
|
129
|
+
grounding: GeneralRephotographyDetectionResponseBodyDataResultGrounding,
|
|
130
|
+
isFake: 'boolean',
|
|
131
|
+
type: 'string',
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
validate() {
|
|
136
|
+
if(this.grounding && typeof (this.grounding as any).validate === 'function') {
|
|
137
|
+
(this.grounding as any).validate();
|
|
138
|
+
}
|
|
139
|
+
super.validate();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
constructor(map?: { [key: string]: any }) {
|
|
143
|
+
super(map);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export class GeneralRephotographyDetectionResponseBodyData extends $dara.Model {
|
|
148
|
+
/**
|
|
149
|
+
* @remarks
|
|
150
|
+
* The business result. This value is an empty object if the request fails.
|
|
151
|
+
*/
|
|
152
|
+
result?: GeneralRephotographyDetectionResponseBodyDataResult;
|
|
153
|
+
/**
|
|
154
|
+
* @remarks
|
|
155
|
+
* The usage information. The value is `{"ProcessingCount":1}` on success, or an empty object on failure.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* {"ProcessingCount":1}
|
|
159
|
+
*/
|
|
160
|
+
usageMap?: { [key: string]: number };
|
|
161
|
+
static names(): { [key: string]: string } {
|
|
162
|
+
return {
|
|
163
|
+
result: 'Result',
|
|
164
|
+
usageMap: 'UsageMap',
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
static types(): { [key: string]: any } {
|
|
169
|
+
return {
|
|
170
|
+
result: GeneralRephotographyDetectionResponseBodyDataResult,
|
|
171
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
validate() {
|
|
176
|
+
if(this.result && typeof (this.result as any).validate === 'function') {
|
|
177
|
+
(this.result as any).validate();
|
|
178
|
+
}
|
|
179
|
+
if(this.usageMap) {
|
|
180
|
+
$dara.Model.validateMap(this.usageMap);
|
|
181
|
+
}
|
|
182
|
+
super.validate();
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
constructor(map?: { [key: string]: any }) {
|
|
186
|
+
super(map);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export class GeneralRephotographyDetectionResponseBody extends $dara.Model {
|
|
191
|
+
/**
|
|
192
|
+
* @remarks
|
|
193
|
+
* The error code.
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* success
|
|
197
|
+
*/
|
|
198
|
+
code?: string;
|
|
199
|
+
/**
|
|
200
|
+
* @remarks
|
|
201
|
+
* The recapture detection result.
|
|
202
|
+
*/
|
|
203
|
+
data?: GeneralRephotographyDetectionResponseBodyData;
|
|
204
|
+
/**
|
|
205
|
+
* @remarks
|
|
206
|
+
* The response message or failure description.
|
|
207
|
+
*
|
|
208
|
+
* @example
|
|
209
|
+
* Success
|
|
210
|
+
*/
|
|
211
|
+
message?: string;
|
|
212
|
+
/**
|
|
213
|
+
* @remarks
|
|
214
|
+
* The request ID.
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* 70CBEFDF-BB17-1EB3-8A21-569F3124738F
|
|
218
|
+
*/
|
|
219
|
+
requestId?: string;
|
|
220
|
+
/**
|
|
221
|
+
* @remarks
|
|
222
|
+
* Indicates whether the call is successful.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* True
|
|
226
|
+
*/
|
|
227
|
+
success?: boolean;
|
|
228
|
+
static names(): { [key: string]: string } {
|
|
229
|
+
return {
|
|
230
|
+
code: 'Code',
|
|
231
|
+
data: 'Data',
|
|
232
|
+
message: 'Message',
|
|
233
|
+
requestId: 'RequestId',
|
|
234
|
+
success: 'Success',
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
static types(): { [key: string]: any } {
|
|
239
|
+
return {
|
|
240
|
+
code: 'string',
|
|
241
|
+
data: GeneralRephotographyDetectionResponseBodyData,
|
|
242
|
+
message: 'string',
|
|
243
|
+
requestId: 'string',
|
|
244
|
+
success: 'boolean',
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
validate() {
|
|
249
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
250
|
+
(this.data as any).validate();
|
|
251
|
+
}
|
|
252
|
+
super.validate();
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
constructor(map?: { [key: string]: any }) {
|
|
256
|
+
super(map);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationPlusResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The asynchronous task ID. Use this ID to poll for results through the queryTaskResult
|
|
8
|
+
* The asynchronous task ID. Use this ID to poll for results through the queryTaskResult operation.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* task-abc123
|
|
@@ -45,7 +45,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
45
45
|
includingProductArea?: boolean;
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
|
-
* The source language code. This parameter is required. For supported language directions, see [Language
|
|
48
|
+
* The source language code. This parameter is required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
49
49
|
*
|
|
50
50
|
* This parameter is required.
|
|
51
51
|
*
|
|
@@ -55,7 +55,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
55
55
|
sourceLanguage?: string;
|
|
56
56
|
/**
|
|
57
57
|
* @remarks
|
|
58
|
-
* The target language code. This parameter is required. For supported language directions, see [Language
|
|
58
|
+
* The target language code. This parameter is required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
59
59
|
*
|
|
60
60
|
* This parameter is required.
|
|
61
61
|
*
|
|
@@ -65,7 +65,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
65
65
|
targetLanguage?: string;
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* Specifies whether to translate brand names on
|
|
68
|
+
* Specifies whether to translate brand names on the image. This parameter is optional. Default value: false. This helps you protect brand name information from being translated.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* false
|