@alicloud/aidge20260428 5.7.1 → 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 +222 -76
- package/dist/client.js +338 -76
- package/dist/client.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 +12 -5
- 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 +356 -76
- 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 +12 -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
|
@@ -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
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationStandardRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The intervention glossary ID.
|
|
8
|
+
* The intervention glossary ID. This parameter is optional. You must create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* glossary_1
|
|
@@ -13,10 +13,10 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
13
13
|
glossary?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* - Image URL:
|
|
17
|
-
* - Format: png, jpeg, jpg, bmp, webp
|
|
18
|
-
* - Pixels:
|
|
19
|
-
* - File size:
|
|
16
|
+
* - Image URL: The URL must be publicly accessible.
|
|
17
|
+
* - Format: png, jpeg, jpg, bmp, or webp.
|
|
18
|
+
* - Pixels: The width and height must not exceed 4000 pixels each.
|
|
19
|
+
* - File size: The original file must be 10 MB or smaller.
|
|
20
20
|
*
|
|
21
21
|
* This parameter is required.
|
|
22
22
|
*
|
|
@@ -26,7 +26,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
26
26
|
imageUrl?: string;
|
|
27
27
|
/**
|
|
28
28
|
* @remarks
|
|
29
|
-
* Specifies whether to translate text on the product area of
|
|
29
|
+
* Specifies whether to translate text on the product area of the image. This parameter is optional. Default value: false. This helps protect information by preventing translation of embedded content such as product names.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* false
|
|
@@ -34,7 +34,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
34
34
|
includingProductArea?: boolean;
|
|
35
35
|
/**
|
|
36
36
|
* @remarks
|
|
37
|
-
* The source language code.
|
|
37
|
+
* 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).
|
|
38
38
|
*
|
|
39
39
|
* This parameter is required.
|
|
40
40
|
*
|
|
@@ -44,7 +44,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
44
44
|
sourceLanguage?: string;
|
|
45
45
|
/**
|
|
46
46
|
* @remarks
|
|
47
|
-
* The target language code.
|
|
47
|
+
* 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).
|
|
48
48
|
*
|
|
49
49
|
* This parameter is required.
|
|
50
50
|
*
|
|
@@ -54,7 +54,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
54
54
|
targetLanguage?: string;
|
|
55
55
|
/**
|
|
56
56
|
* @remarks
|
|
57
|
-
* Specifies whether to translate brand names on
|
|
57
|
+
* Specifies whether to translate brand names on the image. This parameter is optional. Default value: false. This helps protect brand name information from being translated.
|
|
58
58
|
*
|
|
59
59
|
* @example
|
|
60
60
|
* false
|
|
@@ -62,7 +62,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
62
62
|
translatingBrandInTheProduct?: boolean;
|
|
63
63
|
/**
|
|
64
64
|
* @remarks
|
|
65
|
-
* Specifies whether to return layer information such as text position, font, and color. If you set this parameter to true, layer information is returned
|
|
65
|
+
* Specifies whether to return layer information such as text position, font, and color. If you set this parameter to true, layer information is returned for secondary editing through an image editor. Default value: false.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
68
|
* false
|
|
@@ -207,7 +207,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts exte
|
|
|
207
207
|
language?: string;
|
|
208
208
|
/**
|
|
209
209
|
* @remarks
|
|
210
|
-
* The
|
|
210
|
+
* The number of lines.
|
|
211
211
|
*
|
|
212
212
|
* @example
|
|
213
213
|
* 1
|
|
@@ -322,7 +322,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreas extends $
|
|
|
322
322
|
horizontalLayout?: string;
|
|
323
323
|
/**
|
|
324
324
|
* @remarks
|
|
325
|
-
* The
|
|
325
|
+
* The number of lines.
|
|
326
326
|
*
|
|
327
327
|
* @example
|
|
328
328
|
* 2
|
|
@@ -388,12 +388,12 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
388
388
|
font?: string[];
|
|
389
389
|
/**
|
|
390
390
|
* @remarks
|
|
391
|
-
* The product area
|
|
391
|
+
* The rectangle of the product area.
|
|
392
392
|
*/
|
|
393
393
|
goodsRects?: ImageTranslationStandardResponseBodyDataEditInfoGoodsRects;
|
|
394
394
|
/**
|
|
395
395
|
* @remarks
|
|
396
|
-
* The product image
|
|
396
|
+
* The URL of the product image.
|
|
397
397
|
*
|
|
398
398
|
* @example
|
|
399
399
|
* https://xiuxiu-pro.meitudata.com/posters/34d78f9157e5560a4d612949ca6f6485.jpg
|
|
@@ -409,7 +409,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
409
409
|
languages?: string[];
|
|
410
410
|
/**
|
|
411
411
|
* @remarks
|
|
412
|
-
* The original image
|
|
412
|
+
* The URL of the original image.
|
|
413
413
|
*
|
|
414
414
|
* @example
|
|
415
415
|
* https://xiuxiu-pro.meitudata.com/posters/34d78f9157e5560a4d612949ca6f6485.jpg
|
|
@@ -417,7 +417,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
417
417
|
pictUrl?: string;
|
|
418
418
|
/**
|
|
419
419
|
* @remarks
|
|
420
|
-
* The repaired image
|
|
420
|
+
* The URL of the repaired image.
|
|
421
421
|
*
|
|
422
422
|
* @example
|
|
423
423
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.png
|
|
@@ -568,7 +568,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
|
|
|
568
568
|
export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
569
569
|
/**
|
|
570
570
|
* @remarks
|
|
571
|
-
* The response code.
|
|
571
|
+
* The response code. 200 indicates a successful call. For other response codes, refer to the error code information.
|
|
572
572
|
*
|
|
573
573
|
* @example
|
|
574
574
|
* 200
|
|
@@ -576,7 +576,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
|
576
576
|
code?: string;
|
|
577
577
|
/**
|
|
578
578
|
* @remarks
|
|
579
|
-
* The translation result data, including the translated image
|
|
579
|
+
* The translation result data, including the URL of the translated image and usage information.
|
|
580
580
|
*/
|
|
581
581
|
data?: ImageTranslationStandardResponseBodyData;
|
|
582
582
|
/**
|