@alicloud/aidge20260428 1.0.0 → 3.0.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.
Files changed (66) hide show
  1. package/dist/client.d.ts +257 -139
  2. package/dist/client.js +333 -143
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DocumentTranslateRequest.d.ts +3 -3
  5. package/dist/models/DocumentTranslateResponseBody.d.ts +3 -5
  6. package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
  7. package/dist/models/ImageMattingRequest.d.ts +7 -7
  8. package/dist/models/ImageMattingResponseBody.d.ts +2 -2
  9. package/dist/models/ImageRemovalProRequest.d.ts +35 -0
  10. package/dist/models/ImageRemovalProRequest.js +60 -0
  11. package/dist/models/ImageRemovalProRequest.js.map +1 -0
  12. package/dist/models/ImageRemovalProResponse.d.ts +19 -0
  13. package/dist/models/ImageRemovalProResponse.js +69 -0
  14. package/dist/models/ImageRemovalProResponse.js.map +1 -0
  15. package/dist/models/ImageRemovalProResponseBody.d.ts +87 -0
  16. package/dist/models/ImageRemovalProResponseBody.js +95 -0
  17. package/dist/models/ImageRemovalProResponseBody.js.map +1 -0
  18. package/dist/models/ImageRemoveRequest.d.ts +15 -5
  19. package/dist/models/ImageRemoveRequest.js.map +1 -1
  20. package/dist/models/ImageRemoveResponseBody.d.ts +8 -8
  21. package/dist/models/ImageRemoveShrinkRequest.d.ts +15 -5
  22. package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
  23. package/dist/models/ImageTranslationProRequest.d.ts +9 -12
  24. package/dist/models/ImageTranslationProRequest.js +2 -2
  25. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  26. package/dist/models/ImageTranslationProResponseBody.d.ts +19 -19
  27. package/dist/models/MaterialInspectionRequest.d.ts +55 -0
  28. package/dist/models/MaterialInspectionRequest.js +66 -0
  29. package/dist/models/MaterialInspectionRequest.js.map +1 -0
  30. package/dist/models/MaterialInspectionResponse.d.ts +19 -0
  31. package/dist/models/MaterialInspectionResponse.js +69 -0
  32. package/dist/models/MaterialInspectionResponse.js.map +1 -0
  33. package/dist/models/MaterialInspectionResponseBody.d.ts +154 -0
  34. package/dist/models/MaterialInspectionResponseBody.js +147 -0
  35. package/dist/models/MaterialInspectionResponseBody.js.map +1 -0
  36. package/dist/models/TextTranslateRequest.d.ts +15 -5
  37. package/dist/models/TextTranslateRequest.js +4 -0
  38. package/dist/models/TextTranslateRequest.js.map +1 -1
  39. package/dist/models/TextTranslateResponseBody.d.ts +7 -7
  40. package/dist/models/TextTranslateShrinkRequest.d.ts +15 -5
  41. package/dist/models/TextTranslateShrinkRequest.js +4 -0
  42. package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
  43. package/dist/models/model.d.ts +10 -0
  44. package/dist/models/model.js +23 -2
  45. package/dist/models/model.js.map +1 -1
  46. package/package.json +1 -1
  47. package/src/client.ts +347 -144
  48. package/src/models/DocumentTranslateRequest.ts +3 -3
  49. package/src/models/DocumentTranslateResponseBody.ts +3 -5
  50. package/src/models/ImageMattingRequest.ts +7 -7
  51. package/src/models/ImageMattingResponseBody.ts +2 -2
  52. package/src/models/ImageRemovalProRequest.ts +50 -0
  53. package/src/models/ImageRemovalProResponse.ts +40 -0
  54. package/src/models/ImageRemovalProResponseBody.ts +126 -0
  55. package/src/models/ImageRemoveRequest.ts +15 -5
  56. package/src/models/ImageRemoveResponseBody.ts +8 -8
  57. package/src/models/ImageRemoveShrinkRequest.ts +15 -5
  58. package/src/models/ImageTranslationProRequest.ts +11 -14
  59. package/src/models/ImageTranslationProResponseBody.ts +19 -19
  60. package/src/models/MaterialInspectionRequest.ts +76 -0
  61. package/src/models/MaterialInspectionResponse.ts +40 -0
  62. package/src/models/MaterialInspectionResponseBody.ts +227 -0
  63. package/src/models/TextTranslateRequest.ts +19 -5
  64. package/src/models/TextTranslateResponseBody.ts +7 -7
  65. package/src/models/TextTranslateShrinkRequest.ts +19 -5
  66. package/src/models/model.ts +10 -0
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class DocumentTranslateRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The type of the document. Valid values: PDF and Word. Size limits: Word 200 MB/300 pages, PDF 200 MB/300 pages. The maximum size of a single file is 200 MB.
8
+ * The supported document types: PDF or Word. Size limits: Word 200 MB/300 pages, PDF 200 MB/300 pages, maximum 200 MB per file.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -15,7 +15,7 @@ export class DocumentTranslateRequest extends $dara.Model {
15
15
  fileType?: string;
16
16
  /**
17
17
  * @remarks
18
- * The glossary ID to use when the glossary feature is required. Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand name protection.
18
+ * The glossary ID to use when the glossary feature is required. Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). Commonly used for brand name protection scenarios.
19
19
  *
20
20
  * @example
21
21
  * glossary_1
@@ -33,7 +33,7 @@ export class DocumentTranslateRequest extends $dara.Model {
33
33
  targetLanguage?: string;
34
34
  /**
35
35
  * @remarks
36
- * The OSS URL of the document to be translated.
36
+ * The OSS URL path of the document to be translated.
37
37
  *
38
38
  * This parameter is required.
39
39
  *
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class DocumentTranslateResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The unique identifier of the asynchronous task. Use this ID to query the task status and result.
8
+ * The unique identifier of the asynchronous task, used to query the task status and result.
9
9
  *
10
10
  * @example
11
11
  * 6071a030-5c92-9df1-96d0-44952343439a
@@ -48,7 +48,7 @@ export class DocumentTranslateResponseBody extends $dara.Model {
48
48
  data?: DocumentTranslateResponseBodyData;
49
49
  /**
50
50
  * @remarks
51
- * The error message. This parameter is not returned if the call is successful.
51
+ * The error message. Not returned for successful calls.
52
52
  *
53
53
  * @example
54
54
  * Success
@@ -64,9 +64,7 @@ export class DocumentTranslateResponseBody extends $dara.Model {
64
64
  requestId?: string;
65
65
  /**
66
66
  * @remarks
67
- * Indicates whether the call was successful. Valid values:
68
- * - true: The call was successful.
69
- * - false: The call failed.
67
+ * Indicates whether the call is successful. Valid values: true: The call is successful. false: The call failed.
70
68
  *
71
69
  * @example
72
70
  * True
@@ -5,7 +5,9 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageMattingRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The URL of the image to process.
8
+ * Specifies the background type of the returned image. Valid values:
9
+ * - WHITE_BACKGROUND: white background image.
10
+ * - TRANSPARENT: transparent background image.
9
11
  *
10
12
  * This parameter is required.
11
13
  *
@@ -15,7 +17,7 @@ export class ImageMattingRequest extends $dara.Model {
15
17
  backGroundType?: string;
16
18
  /**
17
19
  * @remarks
18
- * The target image height in pixels.
20
+ * BGColor
19
21
  *
20
22
  * @example
21
23
  * 255,255,255
@@ -23,7 +25,7 @@ export class ImageMattingRequest extends $dara.Model {
23
25
  bgColor?: string;
24
26
  /**
25
27
  * @remarks
26
- * The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels. The file size cannot exceed 10 MB.<br>**Example**: `"https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg"`.
28
+ * The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels. The file size cannot exceed 10 MB.<br>**Example**: `"https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg"`
27
29
  *
28
30
  * This parameter is required.
29
31
  *
@@ -33,7 +35,7 @@ export class ImageMattingRequest extends $dara.Model {
33
35
  imageUrl?: string;
34
36
  /**
35
37
  * @remarks
36
- * The target image width in pixels.
38
+ * The target image height in pixels.
37
39
  *
38
40
  * @example
39
41
  * 800
@@ -41,9 +43,7 @@ export class ImageMattingRequest extends $dara.Model {
41
43
  targetHeight?: number;
42
44
  /**
43
45
  * @remarks
44
- * The background type of the returned image. Valid values:
45
- * - WHITE_BACKGROUND: white background.
46
- * - TRANSPARENT: transparent background.
46
+ * The target image width in pixels.
47
47
  *
48
48
  * @example
49
49
  * 800
@@ -21,7 +21,7 @@ export class ImageMattingResponseBodyData extends $dara.Model {
21
21
  imageUrl?: string;
22
22
  /**
23
23
  * @remarks
24
- * The quality score of the matting result.
24
+ * The matting quality score.
25
25
  *
26
26
  * @example
27
27
  * 0.11
@@ -107,7 +107,7 @@ export class ImageMattingResponseBody extends $dara.Model {
107
107
  requestId?: string;
108
108
  /**
109
109
  * @remarks
110
- * Indicates whether the call was successful. Valid values:
110
+ * Indicates whether the call is successful. Valid values:
111
111
  * - true: Successful.
112
112
  * - false: Failed.
113
113
  *
@@ -0,0 +1,50 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ImageRemovalProRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The call type. Valid values:
9
+ * - true: asynchronous.
10
+ * - false: synchronous.
11
+ *
12
+ * Default value: false.
13
+ *
14
+ * @example
15
+ * false
16
+ */
17
+ async?: boolean;
18
+ /**
19
+ * @remarks
20
+ * The URL of the image to process.
21
+ *
22
+ * This parameter is required.
23
+ *
24
+ * @example
25
+ * https://cbu01.alicdn.com/imgextra/i2/1067106875/O1CN013rvpXP20enxPQttb3_!!4611686018427380283-0-item_pic.jpg
26
+ */
27
+ imageUrl?: string;
28
+ static names(): { [key: string]: string } {
29
+ return {
30
+ async: 'Async',
31
+ imageUrl: 'ImageUrl',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ async: 'boolean',
38
+ imageUrl: 'string',
39
+ };
40
+ }
41
+
42
+ validate() {
43
+ super.validate();
44
+ }
45
+
46
+ constructor(map?: { [key: string]: any }) {
47
+ super(map);
48
+ }
49
+ }
50
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ImageRemovalProResponseBody } from "./ImageRemovalProResponseBody";
4
+
5
+
6
+ export class ImageRemovalProResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ImageRemovalProResponseBody;
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: ImageRemovalProResponseBody,
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,126 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ImageRemovalProResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The URL of the result image. This parameter is returned in synchronous mode.
9
+ *
10
+ * @example
11
+ * https://aib-image.oss-ap-southeast-1.aliyuncs.com/ai_desc%2F250cc947-9cd5-4df0-9c23-44eba5d0dfc30.jpg?OSSAccessKeyId=LTAI5tSEGjGp5wixZgHLc3bV&Expires=4999655814&Signature=shvGNDmkyv9MLTw4%2BOxYglJCpAE%3D
12
+ */
13
+ imageUrl?: string;
14
+ /**
15
+ * @remarks
16
+ * The asynchronous task ID. This parameter is returned in asynchronous mode and is used to query the task result.
17
+ *
18
+ * @example
19
+ * ed9d8504-6141-9fbb-8345-4fa36433483f
20
+ */
21
+ taskId?: string;
22
+ /**
23
+ * @remarks
24
+ * The usage details. This parameter is returned in synchronous mode.
25
+ */
26
+ usageMap?: { [key: string]: number };
27
+ static names(): { [key: string]: string } {
28
+ return {
29
+ imageUrl: 'ImageUrl',
30
+ taskId: 'TaskId',
31
+ usageMap: 'UsageMap',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ imageUrl: 'string',
38
+ taskId: 'string',
39
+ usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
40
+ };
41
+ }
42
+
43
+ validate() {
44
+ if(this.usageMap) {
45
+ $dara.Model.validateMap(this.usageMap);
46
+ }
47
+ super.validate();
48
+ }
49
+
50
+ constructor(map?: { [key: string]: any }) {
51
+ super(map);
52
+ }
53
+ }
54
+
55
+ export class ImageRemovalProResponseBody extends $dara.Model {
56
+ /**
57
+ * @remarks
58
+ * The error code. This parameter is not returned if the call is successful.
59
+ *
60
+ * @example
61
+ * 200
62
+ */
63
+ code?: string;
64
+ /**
65
+ * @remarks
66
+ * The intelligent removal Pro result.
67
+ */
68
+ data?: ImageRemovalProResponseBodyData;
69
+ /**
70
+ * @remarks
71
+ * The error message. This parameter is not returned if the call is successful.
72
+ *
73
+ * @example
74
+ * OK
75
+ */
76
+ message?: string;
77
+ /**
78
+ * @remarks
79
+ * Id of the request
80
+ *
81
+ * @example
82
+ * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
83
+ */
84
+ requestId?: string;
85
+ /**
86
+ * @remarks
87
+ * Indicates whether the call is successful. Valid values:
88
+ * - true: The call is successful.
89
+ * - false: The call failed.
90
+ *
91
+ * @example
92
+ * True
93
+ */
94
+ success?: boolean;
95
+ static names(): { [key: string]: string } {
96
+ return {
97
+ code: 'Code',
98
+ data: 'Data',
99
+ message: 'Message',
100
+ requestId: 'RequestId',
101
+ success: 'Success',
102
+ };
103
+ }
104
+
105
+ static types(): { [key: string]: any } {
106
+ return {
107
+ code: 'string',
108
+ data: ImageRemovalProResponseBodyData,
109
+ message: 'string',
110
+ requestId: 'string',
111
+ success: 'boolean',
112
+ };
113
+ }
114
+
115
+ validate() {
116
+ if(this.data && typeof (this.data as any).validate === 'function') {
117
+ (this.data as any).validate();
118
+ }
119
+ super.validate();
120
+ }
121
+
122
+ constructor(map?: { [key: string]: any }) {
123
+ super(map);
124
+ }
125
+ }
126
+
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageRemoveRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * URL of the image to be processed (mutually exclusive with ImageBase64)
8
+ * The URL of the image to process. This parameter is mutually exclusive with ImageBase64. You must specify one of them.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -15,7 +15,7 @@ export class ImageRemoveRequest extends $dara.Model {
15
15
  imageUrl?: string;
16
16
  /**
17
17
  * @remarks
18
- * Specific removal area in RLE format. If provided, this takes priority and the remove parameters are ignored
18
+ * The specific erasure region in RLE format. If this parameter is specified, it takes priority and the remove parameters are ignored.
19
19
  *
20
20
  * @example
21
21
  * null
@@ -23,7 +23,13 @@ export class ImageRemoveRequest extends $dara.Model {
23
23
  mask?: string;
24
24
  /**
25
25
  * @remarks
26
- * Elements to remove from the non-subject area of the image (1=transparent text blocks; 2=specific names; 3=text; 4=blemishes). Multiple selections allowed
26
+ * The elements to remove from the non-subject area of the image. Valid values:
27
+ * - 1: transparent text block
28
+ * - 2: specific name
29
+ * - 3: text
30
+ * - 4: image blemish
31
+ *
32
+ * You can specify multiple values.
27
33
  *
28
34
  * @example
29
35
  * [1,2]
@@ -31,9 +37,13 @@ export class ImageRemoveRequest extends $dara.Model {
31
37
  nonObjectRemoveElements?: number[];
32
38
  /**
33
39
  * @remarks
34
- * Elements to remove from the image subject (1=transparent text blocks; 2=specific names; 3=text; 4=blemishes). Multiple selections allowed
40
+ * The elements to remove from the image subject area. Valid values:
41
+ * - 1: transparent text block
42
+ * - 2: specific name
43
+ * - 3: text
44
+ * - 4: image blemish
35
45
  *
36
- * This parameter is required.
46
+ * You can specify multiple values.
37
47
  *
38
48
  * @example
39
49
  * [1,2]
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageRemoveResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Height of the result image (pixels)
8
+ * The height of the result image, in pixels.
9
9
  *
10
10
  * @example
11
11
  * 800
@@ -13,7 +13,7 @@ export class ImageRemoveResponseBodyData extends $dara.Model {
13
13
  height?: number;
14
14
  /**
15
15
  * @remarks
16
- * URL of the removal result image
16
+ * The URL of the result image after erasure.
17
17
  *
18
18
  * @example
19
19
  * http://dashscope-7c2c.oss-cn-shanghai.aliyuncs.com/xxx.jpg
@@ -21,7 +21,7 @@ export class ImageRemoveResponseBodyData extends $dara.Model {
21
21
  imageUrl?: string;
22
22
  /**
23
23
  * @remarks
24
- * Usage information
24
+ * The usage information.
25
25
  *
26
26
  * @example
27
27
  * {"ProcessedImageCount":1}
@@ -29,7 +29,7 @@ export class ImageRemoveResponseBodyData extends $dara.Model {
29
29
  usageMap?: { [key: string]: number };
30
30
  /**
31
31
  * @remarks
32
- * Width of the result image (pixels)
32
+ * The width of the result image, in pixels.
33
33
  *
34
34
  * @example
35
35
  * 800
@@ -68,7 +68,7 @@ export class ImageRemoveResponseBodyData extends $dara.Model {
68
68
  export class ImageRemoveResponseBody extends $dara.Model {
69
69
  /**
70
70
  * @remarks
71
- * Error code
71
+ * The error code.
72
72
  *
73
73
  * @example
74
74
  * 200
@@ -76,12 +76,12 @@ export class ImageRemoveResponseBody extends $dara.Model {
76
76
  code?: string;
77
77
  /**
78
78
  * @remarks
79
- * Intelligent removal result
79
+ * The intelligent erasure result.
80
80
  */
81
81
  data?: ImageRemoveResponseBodyData;
82
82
  /**
83
83
  * @remarks
84
- * Error message
84
+ * The error message.
85
85
  *
86
86
  * @example
87
87
  * OK
@@ -97,7 +97,7 @@ export class ImageRemoveResponseBody extends $dara.Model {
97
97
  requestId?: string;
98
98
  /**
99
99
  * @remarks
100
- * Whether the call was successful
100
+ * Indicates whether the call was successful.
101
101
  *
102
102
  * @example
103
103
  * True
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageRemoveShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * URL of the image to be processed (mutually exclusive with ImageBase64)
8
+ * The URL of the image to process. This parameter is mutually exclusive with ImageBase64. You must specify one of them.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -15,7 +15,7 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
15
15
  imageUrl?: string;
16
16
  /**
17
17
  * @remarks
18
- * Specific removal area in RLE format. If provided, this takes priority and the remove parameters are ignored
18
+ * The specific erasure region in RLE format. If this parameter is specified, it takes priority and the remove parameters are ignored.
19
19
  *
20
20
  * @example
21
21
  * null
@@ -23,7 +23,13 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
23
23
  mask?: string;
24
24
  /**
25
25
  * @remarks
26
- * Elements to remove from the non-subject area of the image (1=transparent text blocks; 2=specific names; 3=text; 4=blemishes). Multiple selections allowed
26
+ * The elements to remove from the non-subject area of the image. Valid values:
27
+ * - 1: transparent text block
28
+ * - 2: specific name
29
+ * - 3: text
30
+ * - 4: image blemish
31
+ *
32
+ * You can specify multiple values.
27
33
  *
28
34
  * @example
29
35
  * [1,2]
@@ -31,9 +37,13 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
31
37
  nonObjectRemoveElementsShrink?: string;
32
38
  /**
33
39
  * @remarks
34
- * Elements to remove from the image subject (1=transparent text blocks; 2=specific names; 3=text; 4=blemishes). Multiple selections allowed
40
+ * The elements to remove from the image subject area. Valid values:
41
+ * - 1: transparent text block
42
+ * - 2: specific name
43
+ * - 3: text
44
+ * - 4: image blemish
35
45
  *
36
- * This parameter is required.
46
+ * You can specify multiple values.
37
47
  *
38
48
  * @example
39
49
  * [1,2]
@@ -5,7 +5,12 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageTranslationProRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The ID of the intervention glossary. Optional. Create the glossary in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
8
+ * Specifies whether to call the operation asynchronously.
9
+ */
10
+ async?: boolean;
11
+ /**
12
+ * @remarks
13
+ * The intervention glossary ID. Optional. Create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
9
14
  *
10
15
  * @example
11
16
  * glossary_1
@@ -13,7 +18,7 @@ export class ImageTranslationProRequest extends $dara.Model {
13
18
  glossary?: string;
14
19
  /**
15
20
  * @remarks
16
- * The URL of the original image. Required. Image requirements: width and height must not exceed 4000 × 4000. File size must not exceed 10 MB. Supported formats: png, jpeg, jpg, bmp, and webp.
21
+ * The URL of the original image. Required. Image requirements: width and height must not exceed 4000 × 4000. Size must not exceed 10 MB. Supported formats: png, jpeg, jpg, bmp, and webp.
17
22
  *
18
23
  * This parameter is required.
19
24
  *
@@ -23,7 +28,7 @@ export class ImageTranslationProRequest extends $dara.Model {
23
28
  imageUrl?: string;
24
29
  /**
25
30
  * @remarks
26
- * Specifies whether to translate text on the image subject. Optional. Default value: false. This helps protect information such as embedded product names from being translated.
31
+ * Specifies whether to translate text on the image subject. Optional. Default value: false. This helps you protect information and avoid translating embedded information such as product names.
27
32
  *
28
33
  * @example
29
34
  * false
@@ -51,7 +56,7 @@ export class ImageTranslationProRequest extends $dara.Model {
51
56
  targetLanguage?: string;
52
57
  /**
53
58
  * @remarks
54
- * Specifies whether to translate brand names on images. Optional. Default value: false. This helps protect brand name information from being translated.
59
+ * Specifies whether to translate brand names on the image. Optional. Default value: false. This helps you protect brand name information from being translated.
55
60
  *
56
61
  * @example
57
62
  * false
@@ -65,16 +70,9 @@ export class ImageTranslationProRequest extends $dara.Model {
65
70
  * false
66
71
  */
67
72
  useImageEditor?: boolean;
68
- /**
69
- * @remarks
70
- * The call type. This is an internal system parameter. Optional.
71
- *
72
- * @example
73
- * sync
74
- */
75
- callType?: string;
76
73
  static names(): { [key: string]: string } {
77
74
  return {
75
+ async: 'Async',
78
76
  glossary: 'Glossary',
79
77
  imageUrl: 'ImageUrl',
80
78
  includingProductArea: 'IncludingProductArea',
@@ -82,12 +80,12 @@ export class ImageTranslationProRequest extends $dara.Model {
82
80
  targetLanguage: 'TargetLanguage',
83
81
  translatingBrandInTheProduct: 'TranslatingBrandInTheProduct',
84
82
  useImageEditor: 'UseImageEditor',
85
- callType: 'callType',
86
83
  };
87
84
  }
88
85
 
89
86
  static types(): { [key: string]: any } {
90
87
  return {
88
+ async: 'boolean',
91
89
  glossary: 'string',
92
90
  imageUrl: 'string',
93
91
  includingProductArea: 'boolean',
@@ -95,7 +93,6 @@ export class ImageTranslationProRequest extends $dara.Model {
95
93
  targetLanguage: 'string',
96
94
  translatingBrandInTheProduct: 'boolean',
97
95
  useImageEditor: 'boolean',
98
- callType: 'string',
99
96
  };
100
97
  }
101
98