@alicloud/aidge20260428 2.0.0 → 3.0.1

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 (64) hide show
  1. package/dist/client.d.ts +230 -246
  2. package/dist/client.js +263 -288
  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/{ImageTranslationPlusRequest.js → ImageRemovalProRequest.js} +6 -16
  11. package/dist/models/ImageRemovalProRequest.js.map +1 -0
  12. package/dist/models/{ImageTranslationPlusResponse.d.ts → ImageRemovalProResponse.d.ts} +3 -3
  13. package/dist/models/{ImageTranslationPlusResponse.js → ImageRemovalProResponse.js} +6 -6
  14. package/dist/models/ImageRemovalProResponse.js.map +1 -0
  15. package/dist/models/{ImageTranslationPlusResponseBody.d.ts → ImageRemovalProResponseBody.d.ts} +21 -6
  16. package/dist/models/{ImageTranslationPlusResponseBody.js → ImageRemovalProResponseBody.js} +14 -7
  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 +11 -7
  24. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  25. package/dist/models/ImageTranslationProResponseBody.d.ts +55 -55
  26. package/dist/models/MaterialInspectionRequest.d.ts +14 -0
  27. package/dist/models/MaterialInspectionRequest.js.map +1 -1
  28. package/dist/models/MaterialInspectionResponseBody.d.ts +45 -0
  29. package/dist/models/MaterialInspectionResponseBody.js.map +1 -1
  30. package/dist/models/TextTranslateRequest.d.ts +15 -5
  31. package/dist/models/TextTranslateRequest.js +4 -0
  32. package/dist/models/TextTranslateRequest.js.map +1 -1
  33. package/dist/models/TextTranslateResponseBody.d.ts +7 -7
  34. package/dist/models/TextTranslateShrinkRequest.d.ts +15 -5
  35. package/dist/models/TextTranslateShrinkRequest.js +4 -0
  36. package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
  37. package/dist/models/model.d.ts +4 -4
  38. package/dist/models/model.js +10 -10
  39. package/dist/models/model.js.map +1 -1
  40. package/package.json +2 -2
  41. package/src/client.ts +269 -297
  42. package/src/models/DocumentTranslateRequest.ts +3 -3
  43. package/src/models/DocumentTranslateResponseBody.ts +3 -5
  44. package/src/models/ImageMattingRequest.ts +7 -7
  45. package/src/models/ImageMattingResponseBody.ts +2 -2
  46. package/src/models/ImageRemovalProRequest.ts +50 -0
  47. package/src/models/{ImageTranslationPlusResponse.ts → ImageRemovalProResponse.ts} +4 -4
  48. package/src/models/{ImageTranslationPlusResponseBody.ts → ImageRemovalProResponseBody.ts} +27 -7
  49. package/src/models/ImageRemoveRequest.ts +15 -5
  50. package/src/models/ImageRemoveResponseBody.ts +8 -8
  51. package/src/models/ImageRemoveShrinkRequest.ts +15 -5
  52. package/src/models/ImageTranslationProRequest.ts +11 -7
  53. package/src/models/ImageTranslationProResponseBody.ts +55 -55
  54. package/src/models/MaterialInspectionRequest.ts +14 -0
  55. package/src/models/MaterialInspectionResponseBody.ts +45 -0
  56. package/src/models/TextTranslateRequest.ts +19 -5
  57. package/src/models/TextTranslateResponseBody.ts +7 -7
  58. package/src/models/TextTranslateShrinkRequest.ts +19 -5
  59. package/src/models/model.ts +4 -4
  60. package/dist/models/ImageTranslationPlusRequest.d.ts +0 -75
  61. package/dist/models/ImageTranslationPlusRequest.js.map +0 -1
  62. package/dist/models/ImageTranslationPlusResponse.js.map +0 -1
  63. package/dist/models/ImageTranslationPlusResponseBody.js.map +0 -1
  64. package/src/models/ImageTranslationPlusRequest.ts +0 -100
@@ -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
+
@@ -1,12 +1,12 @@
1
1
  // This file is auto-generated, don't edit it
2
2
  import * as $dara from '@darabonba/typescript';
3
- import { ImageTranslationPlusResponseBody } from "./ImageTranslationPlusResponseBody";
3
+ import { ImageRemovalProResponseBody } from "./ImageRemovalProResponseBody";
4
4
 
5
5
 
6
- export class ImageTranslationPlusResponse extends $dara.Model {
6
+ export class ImageRemovalProResponse extends $dara.Model {
7
7
  headers?: { [key: string]: string };
8
8
  statusCode?: number;
9
- body?: ImageTranslationPlusResponseBody;
9
+ body?: ImageRemovalProResponseBody;
10
10
  static names(): { [key: string]: string } {
11
11
  return {
12
12
  headers: 'headers',
@@ -19,7 +19,7 @@ export class ImageTranslationPlusResponse extends $dara.Model {
19
19
  return {
20
20
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
21
  statusCode: 'number',
22
- body: ImageTranslationPlusResponseBody,
22
+ body: ImageRemovalProResponseBody,
23
23
  };
24
24
  }
25
25
 
@@ -2,28 +2,48 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
- export class ImageTranslationPlusResponseBodyData extends $dara.Model {
5
+ export class ImageRemovalProResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The asynchronous task ID. Use the queryTaskResult API to poll for results.
8
+ * The URL of the result image. This parameter is returned in synchronous mode.
9
9
  *
10
10
  * @example
11
- * task-abc123
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
12
20
  */
13
21
  taskId?: string;
22
+ /**
23
+ * @remarks
24
+ * The usage details. This parameter is returned in synchronous mode.
25
+ */
26
+ usageMap?: { [key: string]: number };
14
27
  static names(): { [key: string]: string } {
15
28
  return {
29
+ imageUrl: 'ImageUrl',
16
30
  taskId: 'TaskId',
31
+ usageMap: 'UsageMap',
17
32
  };
18
33
  }
19
34
 
20
35
  static types(): { [key: string]: any } {
21
36
  return {
37
+ imageUrl: 'string',
22
38
  taskId: 'string',
39
+ usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
23
40
  };
24
41
  }
25
42
 
26
43
  validate() {
44
+ if(this.usageMap) {
45
+ $dara.Model.validateMap(this.usageMap);
46
+ }
27
47
  super.validate();
28
48
  }
29
49
 
@@ -32,7 +52,7 @@ export class ImageTranslationPlusResponseBodyData extends $dara.Model {
32
52
  }
33
53
  }
34
54
 
35
- export class ImageTranslationPlusResponseBody extends $dara.Model {
55
+ export class ImageRemovalProResponseBody extends $dara.Model {
36
56
  /**
37
57
  * @remarks
38
58
  * The error code. This parameter is not returned if the call is successful.
@@ -43,9 +63,9 @@ export class ImageTranslationPlusResponseBody extends $dara.Model {
43
63
  code?: string;
44
64
  /**
45
65
  * @remarks
46
- * The submit status of the asynchronous task.
66
+ * The intelligent removal Pro result.
47
67
  */
48
- data?: ImageTranslationPlusResponseBodyData;
68
+ data?: ImageRemovalProResponseBodyData;
49
69
  /**
50
70
  * @remarks
51
71
  * The error message. This parameter is not returned if the call is successful.
@@ -85,7 +105,7 @@ export class ImageTranslationPlusResponseBody extends $dara.Model {
85
105
  static types(): { [key: string]: any } {
86
106
  return {
87
107
  code: 'string',
88
- data: ImageTranslationPlusResponseBodyData,
108
+ data: ImageRemovalProResponseBodyData,
89
109
  message: 'string',
90
110
  requestId: 'string',
91
111
  success: 'boolean',
@@ -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]
@@ -3,10 +3,14 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ImageTranslationProRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Specifies whether to call the operation asynchronously.
9
+ */
6
10
  async?: boolean;
7
11
  /**
8
12
  * @remarks
9
- * Glossary ID, optional. You need to create a glossary separately in the console and provide its ID. If the provided glossary ID is empty, the translation results will not be modified.
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.
10
14
  *
11
15
  * @example
12
16
  * glossary_1
@@ -14,7 +18,7 @@ export class ImageTranslationProRequest extends $dara.Model {
14
18
  glossary?: string;
15
19
  /**
16
20
  * @remarks
17
- * Original image URL, required. Image requirements: width and height must not exceed 4000×4000; size must not exceed 10MB; supported formats include 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.
18
22
  *
19
23
  * This parameter is required.
20
24
  *
@@ -24,7 +28,7 @@ export class ImageTranslationProRequest extends $dara.Model {
24
28
  imageUrl?: string;
25
29
  /**
26
30
  * @remarks
27
- * Choose whether to translate text on the image subject, optional, default false. This helps you protect information by avoiding translation of embedded content such as product names.
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.
28
32
  *
29
33
  * @example
30
34
  * false
@@ -32,7 +36,7 @@ export class ImageTranslationProRequest extends $dara.Model {
32
36
  includingProductArea?: boolean;
33
37
  /**
34
38
  * @remarks
35
- * Source language code, required. See the supported language pairs list for available translation directions.
39
+ * The source language code. Required. For supported language directions, see the supported language direction list.
36
40
  *
37
41
  * This parameter is required.
38
42
  *
@@ -42,7 +46,7 @@ export class ImageTranslationProRequest extends $dara.Model {
42
46
  sourceLanguage?: string;
43
47
  /**
44
48
  * @remarks
45
- * Target language code, required. See the supported language pairs list for available translation directions.
49
+ * The target language code. Required. For supported language directions, see the supported language direction list.
46
50
  *
47
51
  * This parameter is required.
48
52
  *
@@ -52,7 +56,7 @@ export class ImageTranslationProRequest extends $dara.Model {
52
56
  targetLanguage?: string;
53
57
  /**
54
58
  * @remarks
55
- * Choose whether to translate brand names on the image, optional, default false. This helps you 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.
56
60
  *
57
61
  * @example
58
62
  * false
@@ -60,7 +64,7 @@ export class ImageTranslationProRequest extends $dara.Model {
60
64
  translatingBrandInTheProduct?: boolean;
61
65
  /**
62
66
  * @remarks
63
- * Whether to return layout information such as text position, font, and color, optional, default false. This can be used for secondary editing when integrating with an image editor.
67
+ * Specifies whether to return layout information such as text position, font, and color. Optional. Default value: false. This can be used for secondary editing when integrated with an image editor.
64
68
  *
65
69
  * @example
66
70
  * false