@alicloud/aidge20260428 5.10.0 → 5.10.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 (77) hide show
  1. package/dist/client.d.ts +186 -186
  2. package/dist/client.js +210 -186
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ImageMattingAsyncRequest.d.ts +9 -1
  5. package/dist/models/ImageMattingAsyncRequest.js +2 -0
  6. package/dist/models/ImageMattingAsyncRequest.js.map +1 -1
  7. package/dist/models/ImageMattingAsyncResponseBody.d.ts +5 -5
  8. package/dist/models/ImageRecognitionAsyncRequest.d.ts +33 -25
  9. package/dist/models/ImageRecognitionAsyncRequest.js +2 -0
  10. package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -1
  11. package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +6 -6
  12. package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +33 -25
  13. package/dist/models/ImageRecognitionAsyncShrinkRequest.js +2 -0
  14. package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -1
  15. package/dist/models/ImageRemovalProAsyncRequest.d.ts +10 -1
  16. package/dist/models/ImageRemovalProAsyncRequest.js +2 -0
  17. package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -1
  18. package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +7 -5
  19. package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -1
  20. package/dist/models/ImageRemoveAsyncRequest.d.ts +25 -6
  21. package/dist/models/ImageRemoveAsyncRequest.js +2 -0
  22. package/dist/models/ImageRemoveAsyncRequest.js.map +1 -1
  23. package/dist/models/ImageRemoveAsyncResponseBody.d.ts +6 -4
  24. package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -1
  25. package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +25 -6
  26. package/dist/models/ImageRemoveAsyncShrinkRequest.js +2 -0
  27. package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -1
  28. package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +17 -9
  29. package/dist/models/ImageTranslationPlusAsyncRequest.js +2 -0
  30. package/dist/models/ImageTranslationPlusAsyncRequest.js.map +1 -1
  31. package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +5 -5
  32. package/dist/models/ImageTranslationProAsyncRequest.d.ts +15 -7
  33. package/dist/models/ImageTranslationProAsyncRequest.js +2 -0
  34. package/dist/models/ImageTranslationProAsyncRequest.js.map +1 -1
  35. package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +4 -4
  36. package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +10 -2
  37. package/dist/models/ImageTranslationStandardAsyncRequest.js +2 -0
  38. package/dist/models/ImageTranslationStandardAsyncRequest.js.map +1 -1
  39. package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +4 -4
  40. package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +13 -7
  41. package/dist/models/QueryAsyncTaskResultResponseBody.js +2 -0
  42. package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -1
  43. package/dist/models/SizeChartExtractAsyncRequest.d.ts +9 -1
  44. package/dist/models/SizeChartExtractAsyncRequest.js +2 -0
  45. package/dist/models/SizeChartExtractAsyncRequest.js.map +1 -1
  46. package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +5 -5
  47. package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +9 -1
  48. package/dist/models/SizeChartExtractAsyncShrinkRequest.js +2 -0
  49. package/dist/models/SizeChartExtractAsyncShrinkRequest.js.map +1 -1
  50. package/dist/models/VideoTranslationRequest.d.ts +12 -12
  51. package/dist/models/VideoTranslationResponseBody.d.ts +4 -4
  52. package/dist/models/VideoTranslationShrinkRequest.d.ts +12 -12
  53. package/package.json +1 -1
  54. package/src/client.ts +222 -190
  55. package/src/models/ImageMattingAsyncRequest.ts +11 -1
  56. package/src/models/ImageMattingAsyncResponseBody.ts +5 -5
  57. package/src/models/ImageRecognitionAsyncRequest.ts +35 -25
  58. package/src/models/ImageRecognitionAsyncResponseBody.ts +6 -6
  59. package/src/models/ImageRecognitionAsyncShrinkRequest.ts +35 -25
  60. package/src/models/ImageRemovalProAsyncRequest.ts +12 -1
  61. package/src/models/ImageRemovalProAsyncResponseBody.ts +7 -5
  62. package/src/models/ImageRemoveAsyncRequest.ts +27 -6
  63. package/src/models/ImageRemoveAsyncResponseBody.ts +6 -4
  64. package/src/models/ImageRemoveAsyncShrinkRequest.ts +27 -6
  65. package/src/models/ImageTranslationPlusAsyncRequest.ts +19 -9
  66. package/src/models/ImageTranslationPlusAsyncResponseBody.ts +5 -5
  67. package/src/models/ImageTranslationProAsyncRequest.ts +17 -7
  68. package/src/models/ImageTranslationProAsyncResponseBody.ts +4 -4
  69. package/src/models/ImageTranslationStandardAsyncRequest.ts +12 -2
  70. package/src/models/ImageTranslationStandardAsyncResponseBody.ts +4 -4
  71. package/src/models/QueryAsyncTaskResultResponseBody.ts +15 -7
  72. package/src/models/SizeChartExtractAsyncRequest.ts +11 -1
  73. package/src/models/SizeChartExtractAsyncResponseBody.ts +5 -5
  74. package/src/models/SizeChartExtractAsyncShrinkRequest.ts +11 -1
  75. package/src/models/VideoTranslationRequest.ts +12 -12
  76. package/src/models/VideoTranslationResponseBody.ts +4 -4
  77. package/src/models/VideoTranslationShrinkRequest.ts +12 -12
@@ -25,7 +25,15 @@ export class ImageMattingAsyncRequest extends $dara.Model {
25
25
  bgColor?: string;
26
26
  /**
27
27
  * @remarks
28
- * The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 100 × 100 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
28
+ * The business order ID of the caller. It is recorded upon acceptance and returned as is when you query the result of the asynchronous task.
29
+ *
30
+ * @example
31
+ * order-20260928-001
32
+ */
33
+ bizId?: string;
34
+ /**
35
+ * @remarks
36
+ * The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 100 × 100 and 3000 × 3000 pixels, and the file size must not exceed 10 MB.
29
37
  *
30
38
  * This parameter is required.
31
39
  *
@@ -53,6 +61,7 @@ export class ImageMattingAsyncRequest extends $dara.Model {
53
61
  return {
54
62
  backGroundType: 'BackGroundType',
55
63
  bgColor: 'BgColor',
64
+ bizId: 'BizId',
56
65
  imageUrl: 'ImageUrl',
57
66
  targetHeight: 'TargetHeight',
58
67
  targetWidth: 'TargetWidth',
@@ -63,6 +72,7 @@ export class ImageMattingAsyncRequest extends $dara.Model {
63
72
  return {
64
73
  backGroundType: 'string',
65
74
  bgColor: 'string',
75
+ bizId: 'string',
66
76
  imageUrl: 'string',
67
77
  targetHeight: 'number',
68
78
  targetWidth: 'number',
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageMattingAsyncResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The ID of the task that is used to query the asynchronous task result.
8
+ * The task ID used to query the result of the asynchronous task.
9
9
  *
10
10
  * @example
11
11
  * TID_550e8400-e29b-41d4-a716-446655440000
@@ -35,7 +35,7 @@ export class ImageMattingAsyncResponseBodyData extends $dara.Model {
35
35
  export class ImageMattingAsyncResponseBody extends $dara.Model {
36
36
  /**
37
37
  * @remarks
38
- * The status code, such as success.
38
+ * The status code, such as "success". This parameter is not returned for normal calls.
39
39
  *
40
40
  * @example
41
41
  * success
@@ -43,12 +43,12 @@ export class ImageMattingAsyncResponseBody extends $dara.Model {
43
43
  code?: string;
44
44
  /**
45
45
  * @remarks
46
- * The commit result of the intelligent image matting asynchronous task node.
46
+ * The submission result of the asynchronous task for intelligent image matting.
47
47
  */
48
48
  data?: ImageMattingAsyncResponseBodyData;
49
49
  /**
50
50
  * @remarks
51
- * The error message. This parameter is not returned when the call is successful.
51
+ * The error message. This parameter is not returned for normal calls.
52
52
  *
53
53
  * @example
54
54
  * OK
@@ -56,7 +56,7 @@ export class ImageMattingAsyncResponseBody extends $dara.Model {
56
56
  message?: string;
57
57
  /**
58
58
  * @remarks
59
- * The ID of the request, which is used to identify a unique request.
59
+ * The ID of the request. It is used to identify a unique request.
60
60
  *
61
61
  * @example
62
62
  * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
@@ -5,7 +5,15 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageRecognitionAsyncRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The URL of the image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
8
+ * The business ID of the caller. It is recorded upon acceptance and returned as is when you query the result of the asynchronous task.
9
+ *
10
+ * @example
11
+ * order-20260928-001
12
+ */
13
+ bizId?: string;
14
+ /**
15
+ * @remarks
16
+ * The image URL. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
9
17
  *
10
18
  * This parameter is required.
11
19
  *
@@ -15,29 +23,29 @@ export class ImageRecognitionAsyncRequest extends $dara.Model {
15
23
  imageUrl?: string;
16
24
  /**
17
25
  * @remarks
18
- * Specifies the types of elements to be detected outside the image subject. Valid values:
19
- * - 1: Watermark.
20
- * - 2: Logo.
21
- * - 3: Text.
22
- * - 4: Text-containing color block.
23
- * You can specify multiple element types. This parameter and ObjectDetectElements cannot be empty at the same time.
26
+ * The types of elements to detect outside the image subject. Valid values:
27
+ * - 1: watermark
28
+ * - 2: logo
29
+ * - 3: text
30
+ * - 4: text-containing color block
31
+ * You can specify multiple values. This parameter and ObjectDetectElements cannot be empty at the same time.
24
32
  */
25
33
  nonObjectDetectElements?: number[];
26
34
  /**
27
35
  * @remarks
28
- * Specifies the types of elements to be detected on the image subject. Valid values:
29
- * - 1: Watermark.
30
- * - 2: Logo.
31
- * - 3: Text.
32
- * - 4: Text-containing color block.
33
- * You can specify multiple element types.
36
+ * The types of elements to detect on the image subject. Valid values:
37
+ * - 1: watermark
38
+ * - 2: logo
39
+ * - 3: text
40
+ * - 4: text-containing color block
41
+ * You can specify multiple values.
34
42
  */
35
43
  objectDetectElements?: number[];
36
44
  /**
37
45
  * @remarks
38
46
  * Specifies whether to return the marginalization distance of the subject. Valid values:
39
- * - 1: Yes.
40
- * - 0: No.
47
+ * - 1: yes
48
+ * - 0: no
41
49
  * Default value: 0.
42
50
  *
43
51
  * @example
@@ -46,9 +54,9 @@ export class ImageRecognitionAsyncRequest extends $dara.Model {
46
54
  returnBorderPixel?: number;
47
55
  /**
48
56
  * @remarks
49
- * Specifies whether to return the OCR results of the text in the recognized area. Valid values:
50
- * - 1: Yes.
51
- * - 0: No.
57
+ * Specifies whether to return the OCR result of the text in the recognized area. Valid values:
58
+ * - 1: yes
59
+ * - 0: no
52
60
  * Default value: 0.
53
61
  *
54
62
  * @example
@@ -58,12 +66,12 @@ export class ImageRecognitionAsyncRequest extends $dara.Model {
58
66
  /**
59
67
  * @remarks
60
68
  * Specifies whether to return the text proportion. Valid values:
61
- * - 1: Yes.
62
- * - 0: No.
69
+ * - 1: yes
70
+ * - 0: no
63
71
  * Default value: 0.
64
72
  * This parameter takes effect only when the following two conditions are met:
65
73
  * 1. ReturnCharacter is set to 1.
66
- * 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text recognition is required.
74
+ * 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text needs to be recognized.
67
75
  *
68
76
  * @example
69
77
  * 1
@@ -72,8 +80,8 @@ export class ImageRecognitionAsyncRequest extends $dara.Model {
72
80
  /**
73
81
  * @remarks
74
82
  * Specifies whether to return the number of subjects. Valid values:
75
- * - 1: Yes.
76
- * - 0: No.
83
+ * - 1: yes
84
+ * - 0: no
77
85
  * Default value: 0.
78
86
  *
79
87
  * @example
@@ -83,8 +91,8 @@ export class ImageRecognitionAsyncRequest extends $dara.Model {
83
91
  /**
84
92
  * @remarks
85
93
  * Specifies whether to return the area proportion of the subject. Valid values:
86
- * - 1: Yes.
87
- * - 0: No.
94
+ * - 1: yes
95
+ * - 0: no
88
96
  * Default value: 0.
89
97
  *
90
98
  * @example
@@ -93,6 +101,7 @@ export class ImageRecognitionAsyncRequest extends $dara.Model {
93
101
  returnProductProp?: number;
94
102
  static names(): { [key: string]: string } {
95
103
  return {
104
+ bizId: 'BizId',
96
105
  imageUrl: 'ImageUrl',
97
106
  nonObjectDetectElements: 'NonObjectDetectElements',
98
107
  objectDetectElements: 'ObjectDetectElements',
@@ -106,6 +115,7 @@ export class ImageRecognitionAsyncRequest extends $dara.Model {
106
115
 
107
116
  static types(): { [key: string]: any } {
108
117
  return {
118
+ bizId: 'string',
109
119
  imageUrl: 'string',
110
120
  nonObjectDetectElements: { 'type': 'array', 'itemType': 'number' },
111
121
  objectDetectElements: { 'type': 'array', 'itemType': 'number' },
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageRecognitionAsyncResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The ID of the task used to query the asynchronous task result.
8
+ * The task ID used to query the result of the asynchronous task.
9
9
  *
10
10
  * @example
11
11
  * TID_550e8400-e29b-41d4-a716-446655440000
@@ -35,7 +35,7 @@ export class ImageRecognitionAsyncResponseBodyData extends $dara.Model {
35
35
  export class ImageRecognitionAsyncResponseBody extends $dara.Model {
36
36
  /**
37
37
  * @remarks
38
- * The error code. This parameter is not returned when the call is successful.
38
+ * The error code. This parameter is not returned for normal calls.
39
39
  *
40
40
  * @example
41
41
  * 200
@@ -43,7 +43,7 @@ export class ImageRecognitionAsyncResponseBody extends $dara.Model {
43
43
  code?: string;
44
44
  /**
45
45
  * @remarks
46
- * The returned recognition result struct.
46
+ * The struct information of the returned recognition result.
47
47
  */
48
48
  data?: ImageRecognitionAsyncResponseBodyData;
49
49
  /**
@@ -56,7 +56,7 @@ export class ImageRecognitionAsyncResponseBody extends $dara.Model {
56
56
  message?: string;
57
57
  /**
58
58
  * @remarks
59
- * The ID of the request, which is used to identify a unique request.
59
+ * The request ID, which is used to identify a unique request.
60
60
  *
61
61
  * @example
62
62
  * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
@@ -65,8 +65,8 @@ export class ImageRecognitionAsyncResponseBody extends $dara.Model {
65
65
  /**
66
66
  * @remarks
67
67
  * Indicates whether the call is successful. Valid values:
68
- * - true: The call is successful.
69
- * - false: The call fails.
68
+ * - true: successful
69
+ * - false: failed
70
70
  *
71
71
  * @example
72
72
  * True
@@ -5,7 +5,15 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The URL of the image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
8
+ * The business ID of the caller. It is recorded upon acceptance and returned as is when you query the result of the asynchronous task.
9
+ *
10
+ * @example
11
+ * order-20260928-001
12
+ */
13
+ bizId?: string;
14
+ /**
15
+ * @remarks
16
+ * The image URL. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
9
17
  *
10
18
  * This parameter is required.
11
19
  *
@@ -15,29 +23,29 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
15
23
  imageUrl?: string;
16
24
  /**
17
25
  * @remarks
18
- * Specifies the types of elements to be detected outside the image subject. Valid values:
19
- * - 1: Watermark.
20
- * - 2: Logo.
21
- * - 3: Text.
22
- * - 4: Text-containing color block.
23
- * You can specify multiple element types. This parameter and ObjectDetectElements cannot be empty at the same time.
26
+ * The types of elements to detect outside the image subject. Valid values:
27
+ * - 1: watermark
28
+ * - 2: logo
29
+ * - 3: text
30
+ * - 4: text-containing color block
31
+ * You can specify multiple values. This parameter and ObjectDetectElements cannot be empty at the same time.
24
32
  */
25
33
  nonObjectDetectElementsShrink?: string;
26
34
  /**
27
35
  * @remarks
28
- * Specifies the types of elements to be detected on the image subject. Valid values:
29
- * - 1: Watermark.
30
- * - 2: Logo.
31
- * - 3: Text.
32
- * - 4: Text-containing color block.
33
- * You can specify multiple element types.
36
+ * The types of elements to detect on the image subject. Valid values:
37
+ * - 1: watermark
38
+ * - 2: logo
39
+ * - 3: text
40
+ * - 4: text-containing color block
41
+ * You can specify multiple values.
34
42
  */
35
43
  objectDetectElementsShrink?: string;
36
44
  /**
37
45
  * @remarks
38
46
  * Specifies whether to return the marginalization distance of the subject. Valid values:
39
- * - 1: Yes.
40
- * - 0: No.
47
+ * - 1: yes
48
+ * - 0: no
41
49
  * Default value: 0.
42
50
  *
43
51
  * @example
@@ -46,9 +54,9 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
46
54
  returnBorderPixel?: number;
47
55
  /**
48
56
  * @remarks
49
- * Specifies whether to return the OCR results of the text in the recognized area. Valid values:
50
- * - 1: Yes.
51
- * - 0: No.
57
+ * Specifies whether to return the OCR result of the text in the recognized area. Valid values:
58
+ * - 1: yes
59
+ * - 0: no
52
60
  * Default value: 0.
53
61
  *
54
62
  * @example
@@ -58,12 +66,12 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
58
66
  /**
59
67
  * @remarks
60
68
  * Specifies whether to return the text proportion. Valid values:
61
- * - 1: Yes.
62
- * - 0: No.
69
+ * - 1: yes
70
+ * - 0: no
63
71
  * Default value: 0.
64
72
  * This parameter takes effect only when the following two conditions are met:
65
73
  * 1. ReturnCharacter is set to 1.
66
- * 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text recognition is required.
74
+ * 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text needs to be recognized.
67
75
  *
68
76
  * @example
69
77
  * 1
@@ -72,8 +80,8 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
72
80
  /**
73
81
  * @remarks
74
82
  * Specifies whether to return the number of subjects. Valid values:
75
- * - 1: Yes.
76
- * - 0: No.
83
+ * - 1: yes
84
+ * - 0: no
77
85
  * Default value: 0.
78
86
  *
79
87
  * @example
@@ -83,8 +91,8 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
83
91
  /**
84
92
  * @remarks
85
93
  * Specifies whether to return the area proportion of the subject. Valid values:
86
- * - 1: Yes.
87
- * - 0: No.
94
+ * - 1: yes
95
+ * - 0: no
88
96
  * Default value: 0.
89
97
  *
90
98
  * @example
@@ -93,6 +101,7 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
93
101
  returnProductProp?: number;
94
102
  static names(): { [key: string]: string } {
95
103
  return {
104
+ bizId: 'BizId',
96
105
  imageUrl: 'ImageUrl',
97
106
  nonObjectDetectElementsShrink: 'NonObjectDetectElements',
98
107
  objectDetectElementsShrink: 'ObjectDetectElements',
@@ -106,6 +115,7 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
106
115
 
107
116
  static types(): { [key: string]: any } {
108
117
  return {
118
+ bizId: 'string',
109
119
  imageUrl: 'string',
110
120
  nonObjectDetectElementsShrink: 'string',
111
121
  objectDetectElementsShrink: 'string',
@@ -5,7 +5,16 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageRemovalProAsyncRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The 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, and the file size must be less than or equal to 10 MB.
8
+ * The business order ID of the caller. This ID is recorded when the request is accepted and returned as-is when you query the asynchronous task result.
9
+ *
10
+ * @example
11
+ * order-20260928-001
12
+ */
13
+ bizId?: string;
14
+ /**
15
+ * @remarks
16
+ * The URL of the original image. The image must be in the JPG, JPEG, PNG, BMP, or WEBP format.
17
+ * · Resolution: 256×256 to 3000×3000. File size: ≤ 10 MB.
9
18
  *
10
19
  * This parameter is required.
11
20
  *
@@ -15,12 +24,14 @@ export class ImageRemovalProAsyncRequest extends $dara.Model {
15
24
  imageUrl?: string;
16
25
  static names(): { [key: string]: string } {
17
26
  return {
27
+ bizId: 'BizId',
18
28
  imageUrl: 'ImageUrl',
19
29
  };
20
30
  }
21
31
 
22
32
  static types(): { [key: string]: any } {
23
33
  return {
34
+ bizId: 'string',
24
35
  imageUrl: 'string',
25
36
  };
26
37
  }
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageRemovalProAsyncResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The node ID used to query the asynchronous task result.
8
+ * The ID of the task. You can use this ID to query the asynchronous task result.
9
9
  *
10
10
  * @example
11
11
  * TID_550e8400-e29b-41d4-a716-446655440000
@@ -35,7 +35,7 @@ export class ImageRemovalProAsyncResponseBodyData extends $dara.Model {
35
35
  export class ImageRemovalProAsyncResponseBody extends $dara.Model {
36
36
  /**
37
37
  * @remarks
38
- * The error code. This parameter is not returned when the call is successful.
38
+ * The error code. This parameter is not returned for successful calls.
39
39
  *
40
40
  * @example
41
41
  * success
@@ -48,7 +48,7 @@ export class ImageRemovalProAsyncResponseBody extends $dara.Model {
48
48
  data?: ImageRemovalProAsyncResponseBodyData;
49
49
  /**
50
50
  * @remarks
51
- * The error message. This parameter is not returned when the call is successful. Example: "The parameters contain sensitive information. Try other inputs."
51
+ * The error message. This parameter is not returned for successful calls. Example: "The parameters contain sensitive information. Try other inputs."
52
52
  *
53
53
  * @example
54
54
  * OK
@@ -56,7 +56,7 @@ export class ImageRemovalProAsyncResponseBody extends $dara.Model {
56
56
  message?: string;
57
57
  /**
58
58
  * @remarks
59
- * The ID of the request, which is used to identify a unique request.
59
+ * The ID of the request. This ID is used to uniquely identify the request.
60
60
  *
61
61
  * @example
62
62
  * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
@@ -64,7 +64,9 @@ export class ImageRemovalProAsyncResponseBody extends $dara.Model {
64
64
  requestId?: string;
65
65
  /**
66
66
  * @remarks
67
- * Indicates whether the call is successful. A value of true indicates success, and a value of false indicates failure.
67
+ * Indicates whether the call is successful. Valid values:
68
+ * - true: successful.
69
+ * - false: failed.
68
70
  *
69
71
  * @example
70
72
  * True
@@ -5,7 +5,15 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageRemoveAsyncRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * 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, and the file size must not exceed 10 MB.
8
+ * The business order ID of the caller. This ID is recorded when the request is accepted and returned as-is when you query the result of the asynchronous task.
9
+ *
10
+ * @example
11
+ * order-20260928-001
12
+ */
13
+ bizId?: string;
14
+ /**
15
+ * @remarks
16
+ * The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
9
17
  *
10
18
  * This parameter is required.
11
19
  *
@@ -15,7 +23,9 @@ export class ImageRemoveAsyncRequest extends $dara.Model {
15
23
  imageUrl?: string;
16
24
  /**
17
25
  * @remarks
18
- * The specific area to erase. This parameter must be used in conjunction with the editor, and the input format is RLE. If this parameter is specified, it takes precedence and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
26
+ * The specific area to erase. This parameter must be used in conjunction with the editor. The input format is Run-Length Encoding (RLE).
27
+ * If this parameter is specified, it takes precedence and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage.
28
+ * If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
19
29
  *
20
30
  * @example
21
31
  * "474556 160 475356 160 476156 160 476956 160 477756 160 478556 160 479356 160 480156 160 480956 160 481756 160 482556 160 483356 160 484156 160 484956 160 485756 160 486556 160 487356 160 488156 160 488956 160 489756 160 490556 160 491356 160 492156 160"
@@ -23,17 +33,26 @@ export class ImageRemoveAsyncRequest extends $dara.Model {
23
33
  mask?: string;
24
34
  /**
25
35
  * @remarks
26
- * The list of element types to remove from the non-subject area of the image.
36
+ * The list of element types to remove from the image background.
27
37
  */
28
38
  nonObjectRemoveElements?: number[];
29
39
  /**
30
40
  * @remarks
31
- * The types of elements to remove from the image subject. Valid values: 1 (transparent text blocks), 2 (specific names), 3 (text), and 4 (watermarks). You can select multiple element types. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements. For more information about each type, see the product documentation. Image subject: the core product area in the image.
41
+ * The types of elements to remove from the image subject. Valid values:
42
+ * - 1: Transparent text blocks.
43
+ * - 2: Specific names.
44
+ * - 3: Text.
45
+ * - 4: Promotional stickers.
46
+ * You can select multiple element types. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage.
47
+ * If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
48
+ * For more information about each type, see the product documentation.
49
+ * Image subject: the core product area in the image.
32
50
  */
33
51
  objectRemoveElements?: number[];
34
52
  /**
35
53
  * @remarks
36
- * The specific area to erase. This parameter must be used in conjunction with the editor, and the input format is four-point coordinates [xx,yy,zz,dd]. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
54
+ * The specific area to erase. This parameter must be used in conjunction with the editor. The input format is a four-point coordinate array, such as [xx,yy,zz,dd]. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage.
55
+ * If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
37
56
  *
38
57
  * @example
39
58
  * [10,20,100,200]
@@ -46,11 +65,12 @@ export class ImageRemoveAsyncRequest extends $dara.Model {
46
65
  userImage?: string[];
47
66
  /**
48
67
  * @remarks
49
- * The list of user-specified texts to erase.
68
+ * The list of user-specified text strings to erase.
50
69
  */
51
70
  userText?: string[];
52
71
  static names(): { [key: string]: string } {
53
72
  return {
73
+ bizId: 'BizId',
54
74
  imageUrl: 'ImageUrl',
55
75
  mask: 'Mask',
56
76
  nonObjectRemoveElements: 'NonObjectRemoveElements',
@@ -63,6 +83,7 @@ export class ImageRemoveAsyncRequest extends $dara.Model {
63
83
 
64
84
  static types(): { [key: string]: any } {
65
85
  return {
86
+ bizId: 'string',
66
87
  imageUrl: 'string',
67
88
  mask: 'string',
68
89
  nonObjectRemoveElements: { 'type': 'array', 'itemType': 'number' },
@@ -43,12 +43,12 @@ export class ImageRemoveAsyncResponseBody extends $dara.Model {
43
43
  code?: string;
44
44
  /**
45
45
  * @remarks
46
- * The returned result struct.
46
+ * The returned result struct information.
47
47
  */
48
48
  data?: ImageRemoveAsyncResponseBodyData;
49
49
  /**
50
50
  * @remarks
51
- * The error message, such as "The parameters contain sensitive information. Please try another input."
51
+ * The error message, such as "The parameters contain sensitive information. Try another input."
52
52
  *
53
53
  * @example
54
54
  * OK
@@ -56,7 +56,7 @@ export class ImageRemoveAsyncResponseBody extends $dara.Model {
56
56
  message?: string;
57
57
  /**
58
58
  * @remarks
59
- * The ID of the request, which is used to identify a unique request.
59
+ * The request ID, which is used to identify a unique request.
60
60
  *
61
61
  * @example
62
62
  * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
@@ -64,7 +64,9 @@ export class ImageRemoveAsyncResponseBody extends $dara.Model {
64
64
  requestId?: string;
65
65
  /**
66
66
  * @remarks
67
- * Indicates whether the call was successful. Valid values: true (success) and false (failure).
67
+ * Indicates whether the call is successful. Valid values:
68
+ * - true: The call is successful.
69
+ * - false: The call fails.
68
70
  *
69
71
  * @example
70
72
  * True
@@ -5,7 +5,15 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageRemoveAsyncShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * 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, and the file size must not exceed 10 MB.
8
+ * The business order ID of the caller. This ID is recorded when the request is accepted and returned as-is when you query the result of the asynchronous task.
9
+ *
10
+ * @example
11
+ * order-20260928-001
12
+ */
13
+ bizId?: string;
14
+ /**
15
+ * @remarks
16
+ * The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
9
17
  *
10
18
  * This parameter is required.
11
19
  *
@@ -15,7 +23,9 @@ export class ImageRemoveAsyncShrinkRequest extends $dara.Model {
15
23
  imageUrl?: string;
16
24
  /**
17
25
  * @remarks
18
- * The specific area to erase. This parameter must be used in conjunction with the editor, and the input format is RLE. If this parameter is specified, it takes precedence and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
26
+ * The specific area to erase. This parameter must be used in conjunction with the editor. The input format is Run-Length Encoding (RLE).
27
+ * If this parameter is specified, it takes precedence and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage.
28
+ * If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
19
29
  *
20
30
  * @example
21
31
  * "474556 160 475356 160 476156 160 476956 160 477756 160 478556 160 479356 160 480156 160 480956 160 481756 160 482556 160 483356 160 484156 160 484956 160 485756 160 486556 160 487356 160 488156 160 488956 160 489756 160 490556 160 491356 160 492156 160"
@@ -23,17 +33,26 @@ export class ImageRemoveAsyncShrinkRequest extends $dara.Model {
23
33
  mask?: string;
24
34
  /**
25
35
  * @remarks
26
- * The list of element types to remove from the non-subject area of the image.
36
+ * The list of element types to remove from the image background.
27
37
  */
28
38
  nonObjectRemoveElementsShrink?: string;
29
39
  /**
30
40
  * @remarks
31
- * The types of elements to remove from the image subject. Valid values: 1 (transparent text blocks), 2 (specific names), 3 (text), and 4 (watermarks). You can select multiple element types. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements. For more information about each type, see the product documentation. Image subject: the core product area in the image.
41
+ * The types of elements to remove from the image subject. Valid values:
42
+ * - 1: Transparent text blocks.
43
+ * - 2: Specific names.
44
+ * - 3: Text.
45
+ * - 4: Promotional stickers.
46
+ * You can select multiple element types. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage.
47
+ * If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
48
+ * For more information about each type, see the product documentation.
49
+ * Image subject: the core product area in the image.
32
50
  */
33
51
  objectRemoveElementsShrink?: string;
34
52
  /**
35
53
  * @remarks
36
- * The specific area to erase. This parameter must be used in conjunction with the editor, and the input format is four-point coordinates [xx,yy,zz,dd]. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
54
+ * The specific area to erase. This parameter must be used in conjunction with the editor. The input format is a four-point coordinate array, such as [xx,yy,zz,dd]. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage.
55
+ * If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
37
56
  *
38
57
  * @example
39
58
  * [10,20,100,200]
@@ -46,11 +65,12 @@ export class ImageRemoveAsyncShrinkRequest extends $dara.Model {
46
65
  userImageShrink?: string;
47
66
  /**
48
67
  * @remarks
49
- * The list of user-specified texts to erase.
68
+ * The list of user-specified text strings to erase.
50
69
  */
51
70
  userTextShrink?: string;
52
71
  static names(): { [key: string]: string } {
53
72
  return {
73
+ bizId: 'BizId',
54
74
  imageUrl: 'ImageUrl',
55
75
  mask: 'Mask',
56
76
  nonObjectRemoveElementsShrink: 'NonObjectRemoveElements',
@@ -63,6 +83,7 @@ export class ImageRemoveAsyncShrinkRequest extends $dara.Model {
63
83
 
64
84
  static types(): { [key: string]: any } {
65
85
  return {
86
+ bizId: 'string',
66
87
  imageUrl: 'string',
67
88
  mask: 'string',
68
89
  nonObjectRemoveElementsShrink: 'string',