@alicloud/aidge20260428 5.10.0 → 5.11.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 (93) hide show
  1. package/dist/client.d.ts +201 -186
  2. package/dist/client.js +282 -186
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/GenerateProductContentRequest.d.ts +85 -0
  5. package/dist/models/GenerateProductContentRequest.js +80 -0
  6. package/dist/models/GenerateProductContentRequest.js.map +1 -0
  7. package/dist/models/GenerateProductContentResponse.d.ts +19 -0
  8. package/dist/models/GenerateProductContentResponse.js +69 -0
  9. package/dist/models/GenerateProductContentResponse.js.map +1 -0
  10. package/dist/models/GenerateProductContentResponseBody.d.ts +71 -0
  11. package/dist/models/GenerateProductContentResponseBody.js +109 -0
  12. package/dist/models/GenerateProductContentResponseBody.js.map +1 -0
  13. package/dist/models/ImageMattingAsyncRequest.d.ts +9 -1
  14. package/dist/models/ImageMattingAsyncRequest.js +2 -0
  15. package/dist/models/ImageMattingAsyncRequest.js.map +1 -1
  16. package/dist/models/ImageMattingAsyncResponseBody.d.ts +5 -5
  17. package/dist/models/ImageRecognitionAsyncRequest.d.ts +33 -25
  18. package/dist/models/ImageRecognitionAsyncRequest.js +2 -0
  19. package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -1
  20. package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +6 -6
  21. package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +33 -25
  22. package/dist/models/ImageRecognitionAsyncShrinkRequest.js +2 -0
  23. package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -1
  24. package/dist/models/ImageRemovalProAsyncRequest.d.ts +10 -1
  25. package/dist/models/ImageRemovalProAsyncRequest.js +2 -0
  26. package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -1
  27. package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +7 -5
  28. package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -1
  29. package/dist/models/ImageRemoveAsyncRequest.d.ts +25 -6
  30. package/dist/models/ImageRemoveAsyncRequest.js +2 -0
  31. package/dist/models/ImageRemoveAsyncRequest.js.map +1 -1
  32. package/dist/models/ImageRemoveAsyncResponseBody.d.ts +6 -4
  33. package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -1
  34. package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +25 -6
  35. package/dist/models/ImageRemoveAsyncShrinkRequest.js +2 -0
  36. package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -1
  37. package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +17 -9
  38. package/dist/models/ImageTranslationPlusAsyncRequest.js +2 -0
  39. package/dist/models/ImageTranslationPlusAsyncRequest.js.map +1 -1
  40. package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +5 -5
  41. package/dist/models/ImageTranslationProAsyncRequest.d.ts +15 -7
  42. package/dist/models/ImageTranslationProAsyncRequest.js +2 -0
  43. package/dist/models/ImageTranslationProAsyncRequest.js.map +1 -1
  44. package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +4 -4
  45. package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +10 -2
  46. package/dist/models/ImageTranslationStandardAsyncRequest.js +2 -0
  47. package/dist/models/ImageTranslationStandardAsyncRequest.js.map +1 -1
  48. package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +4 -4
  49. package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +13 -7
  50. package/dist/models/QueryAsyncTaskResultResponseBody.js +2 -0
  51. package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -1
  52. package/dist/models/SizeChartExtractAsyncRequest.d.ts +9 -1
  53. package/dist/models/SizeChartExtractAsyncRequest.js +2 -0
  54. package/dist/models/SizeChartExtractAsyncRequest.js.map +1 -1
  55. package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +5 -5
  56. package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +9 -1
  57. package/dist/models/SizeChartExtractAsyncShrinkRequest.js +2 -0
  58. package/dist/models/SizeChartExtractAsyncShrinkRequest.js.map +1 -1
  59. package/dist/models/VideoTranslationRequest.d.ts +12 -12
  60. package/dist/models/VideoTranslationResponseBody.d.ts +4 -4
  61. package/dist/models/VideoTranslationShrinkRequest.d.ts +12 -12
  62. package/dist/models/model.d.ts +4 -0
  63. package/dist/models/model.js +15 -7
  64. package/dist/models/model.js.map +1 -1
  65. package/package.json +1 -1
  66. package/src/client.ts +308 -190
  67. package/src/models/GenerateProductContentRequest.ts +120 -0
  68. package/src/models/GenerateProductContentResponse.ts +40 -0
  69. package/src/models/GenerateProductContentResponseBody.ts +124 -0
  70. package/src/models/ImageMattingAsyncRequest.ts +11 -1
  71. package/src/models/ImageMattingAsyncResponseBody.ts +5 -5
  72. package/src/models/ImageRecognitionAsyncRequest.ts +35 -25
  73. package/src/models/ImageRecognitionAsyncResponseBody.ts +6 -6
  74. package/src/models/ImageRecognitionAsyncShrinkRequest.ts +35 -25
  75. package/src/models/ImageRemovalProAsyncRequest.ts +12 -1
  76. package/src/models/ImageRemovalProAsyncResponseBody.ts +7 -5
  77. package/src/models/ImageRemoveAsyncRequest.ts +27 -6
  78. package/src/models/ImageRemoveAsyncResponseBody.ts +6 -4
  79. package/src/models/ImageRemoveAsyncShrinkRequest.ts +27 -6
  80. package/src/models/ImageTranslationPlusAsyncRequest.ts +19 -9
  81. package/src/models/ImageTranslationPlusAsyncResponseBody.ts +5 -5
  82. package/src/models/ImageTranslationProAsyncRequest.ts +17 -7
  83. package/src/models/ImageTranslationProAsyncResponseBody.ts +4 -4
  84. package/src/models/ImageTranslationStandardAsyncRequest.ts +12 -2
  85. package/src/models/ImageTranslationStandardAsyncResponseBody.ts +4 -4
  86. package/src/models/QueryAsyncTaskResultResponseBody.ts +15 -7
  87. package/src/models/SizeChartExtractAsyncRequest.ts +11 -1
  88. package/src/models/SizeChartExtractAsyncResponseBody.ts +5 -5
  89. package/src/models/SizeChartExtractAsyncShrinkRequest.ts +11 -1
  90. package/src/models/VideoTranslationRequest.ts +12 -12
  91. package/src/models/VideoTranslationResponseBody.ts +4 -4
  92. package/src/models/VideoTranslationShrinkRequest.ts +12 -12
  93. package/src/models/model.ts +4 -0
@@ -2,7 +2,16 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageRemovalProAsyncRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * 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.
5
+ * 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.
6
+ *
7
+ * @example
8
+ * order-20260928-001
9
+ */
10
+ bizId?: string;
11
+ /**
12
+ * @remarks
13
+ * The URL of the original image. The image must be in the JPG, JPEG, PNG, BMP, or WEBP format.
14
+ * · Resolution: 256×256 to 3000×3000. File size: ≤ 10 MB.
6
15
  *
7
16
  * This parameter is required.
8
17
  *
@@ -39,11 +39,13 @@ const $dara = __importStar(require("@darabonba/typescript"));
39
39
  class ImageRemovalProAsyncRequest extends $dara.Model {
40
40
  static names() {
41
41
  return {
42
+ bizId: 'BizId',
42
43
  imageUrl: 'ImageUrl',
43
44
  };
44
45
  }
45
46
  static types() {
46
47
  return {
48
+ bizId: 'string',
47
49
  imageUrl: 'string',
48
50
  };
49
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ImageRemovalProAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemovalProAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAW1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9BD,kEA8BC"}
1
+ {"version":3,"file":"ImageRemovalProAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemovalProAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAoB1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzCD,kEAyCC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageRemovalProAsyncResponseBodyData extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The node ID used to query the asynchronous task result.
5
+ * The ID of the task. You can use this ID to query the asynchronous task result.
6
6
  *
7
7
  * @example
8
8
  * TID_550e8400-e29b-41d4-a716-446655440000
@@ -22,7 +22,7 @@ export declare class ImageRemovalProAsyncResponseBodyData extends $dara.Model {
22
22
  export declare class ImageRemovalProAsyncResponseBody extends $dara.Model {
23
23
  /**
24
24
  * @remarks
25
- * The error code. This parameter is not returned when the call is successful.
25
+ * The error code. This parameter is not returned for successful calls.
26
26
  *
27
27
  * @example
28
28
  * success
@@ -35,7 +35,7 @@ export declare class ImageRemovalProAsyncResponseBody extends $dara.Model {
35
35
  data?: ImageRemovalProAsyncResponseBodyData;
36
36
  /**
37
37
  * @remarks
38
- * The error message. This parameter is not returned when the call is successful. Example: "The parameters contain sensitive information. Try other inputs."
38
+ * The error message. This parameter is not returned for successful calls. Example: "The parameters contain sensitive information. Try other inputs."
39
39
  *
40
40
  * @example
41
41
  * OK
@@ -43,7 +43,7 @@ export declare class ImageRemovalProAsyncResponseBody extends $dara.Model {
43
43
  message?: string;
44
44
  /**
45
45
  * @remarks
46
- * The ID of the request, which is used to identify a unique request.
46
+ * The ID of the request. This ID is used to uniquely identify the request.
47
47
  *
48
48
  * @example
49
49
  * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
@@ -51,7 +51,9 @@ export declare class ImageRemovalProAsyncResponseBody extends $dara.Model {
51
51
  requestId?: string;
52
52
  /**
53
53
  * @remarks
54
- * Indicates whether the call is successful. A value of true indicates success, and a value of false indicates failure.
54
+ * Indicates whether the call is successful. Valid values:
55
+ * - true: successful.
56
+ * - false: failed.
55
57
  *
56
58
  * @example
57
59
  * True
@@ -1 +1 @@
1
- {"version":3,"file":"ImageRemovalProAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemovalProAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IASnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,oFA4BC;AAED,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAsC/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,oCAAoC;YAC1C,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,4EAoEC"}
1
+ {"version":3,"file":"ImageRemovalProAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemovalProAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IASnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,oFA4BC;AAED,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAwC/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,oCAAoC;YAC1C,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,4EAsEC"}
@@ -2,7 +2,15 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageRemoveAsyncRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * 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.
5
+ * 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.
6
+ *
7
+ * @example
8
+ * order-20260928-001
9
+ */
10
+ bizId?: string;
11
+ /**
12
+ * @remarks
13
+ * 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.
6
14
  *
7
15
  * This parameter is required.
8
16
  *
@@ -12,7 +20,9 @@ export declare class ImageRemoveAsyncRequest extends $dara.Model {
12
20
  imageUrl?: string;
13
21
  /**
14
22
  * @remarks
15
- * 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.
23
+ * The specific area to erase. This parameter must be used in conjunction with the editor. The input format is Run-Length Encoding (RLE).
24
+ * 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.
25
+ * If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
16
26
  *
17
27
  * @example
18
28
  * "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"
@@ -20,17 +30,26 @@ export declare class ImageRemoveAsyncRequest extends $dara.Model {
20
30
  mask?: string;
21
31
  /**
22
32
  * @remarks
23
- * The list of element types to remove from the non-subject area of the image.
33
+ * The list of element types to remove from the image background.
24
34
  */
25
35
  nonObjectRemoveElements?: number[];
26
36
  /**
27
37
  * @remarks
28
- * 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.
38
+ * The types of elements to remove from the image subject. Valid values:
39
+ * - 1: Transparent text blocks.
40
+ * - 2: Specific names.
41
+ * - 3: Text.
42
+ * - 4: Promotional stickers.
43
+ * 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.
44
+ * If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
45
+ * For more information about each type, see the product documentation.
46
+ * Image subject: the core product area in the image.
29
47
  */
30
48
  objectRemoveElements?: number[];
31
49
  /**
32
50
  * @remarks
33
- * 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.
51
+ * 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.
52
+ * If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
34
53
  *
35
54
  * @example
36
55
  * [10,20,100,200]
@@ -43,7 +62,7 @@ export declare class ImageRemoveAsyncRequest extends $dara.Model {
43
62
  userImage?: string[];
44
63
  /**
45
64
  * @remarks
46
- * The list of user-specified texts to erase.
65
+ * The list of user-specified text strings to erase.
47
66
  */
48
67
  userText?: string[];
49
68
  static names(): {
@@ -39,6 +39,7 @@ const $dara = __importStar(require("@darabonba/typescript"));
39
39
  class ImageRemoveAsyncRequest extends $dara.Model {
40
40
  static names() {
41
41
  return {
42
+ bizId: 'BizId',
42
43
  imageUrl: 'ImageUrl',
43
44
  mask: 'Mask',
44
45
  nonObjectRemoveElements: 'NonObjectRemoveElements',
@@ -50,6 +51,7 @@ class ImageRemoveAsyncRequest extends $dara.Model {
50
51
  }
51
52
  static types() {
52
53
  return {
54
+ bizId: 'string',
53
55
  imageUrl: 'string',
54
56
  mask: 'string',
55
57
  nonObjectRemoveElements: { 'type': 'array', 'itemType': 'number' },
@@ -1 +1 @@
1
- {"version":3,"file":"ImageRemoveAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IA+CtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,uBAAuB,EAAE,yBAAyB;YAClD,oBAAoB,EAAE,sBAAsB;YAC5C,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;YACd,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAClE,oBAAoB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC/D,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACpD,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACpD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC;YAC/C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;QAC1D,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC;YAC5C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACvD,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1FD,0DA0FC"}
1
+ {"version":3,"file":"ImageRemoveAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAkEtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,uBAAuB,EAAE,yBAAyB;YAClD,oBAAoB,EAAE,sBAAsB;YAC5C,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;YACd,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAClE,oBAAoB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC/D,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACpD,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACpD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC;YAC/C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;QAC1D,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC;YAC5C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACvD,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/GD,0DA+GC"}
@@ -30,12 +30,12 @@ export declare class ImageRemoveAsyncResponseBody extends $dara.Model {
30
30
  code?: string;
31
31
  /**
32
32
  * @remarks
33
- * The returned result struct.
33
+ * The returned result struct information.
34
34
  */
35
35
  data?: ImageRemoveAsyncResponseBodyData;
36
36
  /**
37
37
  * @remarks
38
- * The error message, such as "The parameters contain sensitive information. Please try another input."
38
+ * The error message, such as "The parameters contain sensitive information. Try another input."
39
39
  *
40
40
  * @example
41
41
  * OK
@@ -43,7 +43,7 @@ export declare class ImageRemoveAsyncResponseBody extends $dara.Model {
43
43
  message?: string;
44
44
  /**
45
45
  * @remarks
46
- * The ID of the request, which is used to identify a unique request.
46
+ * The request ID, which is used to identify a unique request.
47
47
  *
48
48
  * @example
49
49
  * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
@@ -51,7 +51,9 @@ export declare class ImageRemoveAsyncResponseBody extends $dara.Model {
51
51
  requestId?: string;
52
52
  /**
53
53
  * @remarks
54
- * Indicates whether the call was successful. Valid values: true (success) and false (failure).
54
+ * Indicates whether the call is successful. Valid values:
55
+ * - true: The call is successful.
56
+ * - false: The call fails.
55
57
  *
56
58
  * @example
57
59
  * True
@@ -1 +1 @@
1
- {"version":3,"file":"ImageRemoveAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAS/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,4EA4BC;AAED,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAsC3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,gCAAgC;YACtC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,oEAoEC"}
1
+ {"version":3,"file":"ImageRemoveAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAS/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,4EA4BC;AAED,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAwC3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,gCAAgC;YACtC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,oEAsEC"}
@@ -2,7 +2,15 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageRemoveAsyncShrinkRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * 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.
5
+ * 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.
6
+ *
7
+ * @example
8
+ * order-20260928-001
9
+ */
10
+ bizId?: string;
11
+ /**
12
+ * @remarks
13
+ * 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.
6
14
  *
7
15
  * This parameter is required.
8
16
  *
@@ -12,7 +20,9 @@ export declare class ImageRemoveAsyncShrinkRequest extends $dara.Model {
12
20
  imageUrl?: string;
13
21
  /**
14
22
  * @remarks
15
- * 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.
23
+ * The specific area to erase. This parameter must be used in conjunction with the editor. The input format is Run-Length Encoding (RLE).
24
+ * 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.
25
+ * If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
16
26
  *
17
27
  * @example
18
28
  * "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"
@@ -20,17 +30,26 @@ export declare class ImageRemoveAsyncShrinkRequest extends $dara.Model {
20
30
  mask?: string;
21
31
  /**
22
32
  * @remarks
23
- * The list of element types to remove from the non-subject area of the image.
33
+ * The list of element types to remove from the image background.
24
34
  */
25
35
  nonObjectRemoveElementsShrink?: string;
26
36
  /**
27
37
  * @remarks
28
- * 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.
38
+ * The types of elements to remove from the image subject. Valid values:
39
+ * - 1: Transparent text blocks.
40
+ * - 2: Specific names.
41
+ * - 3: Text.
42
+ * - 4: Promotional stickers.
43
+ * 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.
44
+ * If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
45
+ * For more information about each type, see the product documentation.
46
+ * Image subject: the core product area in the image.
29
47
  */
30
48
  objectRemoveElementsShrink?: string;
31
49
  /**
32
50
  * @remarks
33
- * 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.
51
+ * 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.
52
+ * If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
34
53
  *
35
54
  * @example
36
55
  * [10,20,100,200]
@@ -43,7 +62,7 @@ export declare class ImageRemoveAsyncShrinkRequest extends $dara.Model {
43
62
  userImageShrink?: string;
44
63
  /**
45
64
  * @remarks
46
- * The list of user-specified texts to erase.
65
+ * The list of user-specified text strings to erase.
47
66
  */
48
67
  userTextShrink?: string;
49
68
  static names(): {
@@ -39,6 +39,7 @@ const $dara = __importStar(require("@darabonba/typescript"));
39
39
  class ImageRemoveAsyncShrinkRequest extends $dara.Model {
40
40
  static names() {
41
41
  return {
42
+ bizId: 'BizId',
42
43
  imageUrl: 'ImageUrl',
43
44
  mask: 'Mask',
44
45
  nonObjectRemoveElementsShrink: 'NonObjectRemoveElements',
@@ -50,6 +51,7 @@ class ImageRemoveAsyncShrinkRequest extends $dara.Model {
50
51
  }
51
52
  static types() {
52
53
  return {
54
+ bizId: 'string',
53
55
  imageUrl: 'string',
54
56
  mask: 'string',
55
57
  nonObjectRemoveElementsShrink: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"ImageRemoveAsyncShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IA+C5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,6BAA6B,EAAE,yBAAyB;YACxD,0BAA0B,EAAE,sBAAsB;YAClD,QAAQ,EAAE,UAAU;YACpB,eAAe,EAAE,WAAW;YAC5B,cAAc,EAAE,UAAU;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;YACd,6BAA6B,EAAE,QAAQ;YACvC,0BAA0B,EAAE,QAAQ;YACpC,QAAQ,EAAE,QAAQ;YAClB,eAAe,EAAE,QAAQ;YACzB,cAAc,EAAE,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9ED,sEA8EC"}
1
+ {"version":3,"file":"ImageRemoveAsyncShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAkE5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,6BAA6B,EAAE,yBAAyB;YACxD,0BAA0B,EAAE,sBAAsB;YAClD,QAAQ,EAAE,UAAU;YACpB,eAAe,EAAE,WAAW;YAC5B,cAAc,EAAE,UAAU;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;YACd,6BAA6B,EAAE,QAAQ;YACvC,0BAA0B,EAAE,QAAQ;YACpC,QAAQ,EAAE,QAAQ;YAClB,eAAe,EAAE,QAAQ;YACzB,cAAc,EAAE,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnGD,sEAmGC"}
@@ -2,7 +2,15 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The intervention glossary ID. The intervention glossary ID must be created separately and provided in the input parameters. If the provided intervention glossary ID is empty, the translation results will not be modified.
5
+ * 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.
6
+ *
7
+ * @example
8
+ * order-20260928-001
9
+ */
10
+ bizId?: string;
11
+ /**
12
+ * @remarks
13
+ * The intervention glossary ID. You must create the intervention glossary separately and provide its ID in the input parameters. If the provided intervention glossary ID is empty, the translation results are not modified.
6
14
  *
7
15
  * @example
8
16
  * glossary_1
@@ -10,10 +18,10 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
10
18
  glossary?: string;
11
19
  /**
12
20
  * @remarks
13
- * • Image URL: Must be publicly accessible.
14
- * • Format: PNG, JPEG, JPG, BMP, or WEBP.
15
- * • Pixels: Both width and height must not exceed 4,000.
16
- * • File size: The original file must be less than or equal to 10 MB.
21
+ * * Image URL: The image must be accessible over the Internet.
22
+ * * Format: PNG, JPEG, JPG, BMP, or WEBP.
23
+ * * Resolution: The width and height cannot exceed 4,000 pixels.
24
+ * * File size: The original file size cannot exceed 10 MB.
17
25
  *
18
26
  * This parameter is required.
19
27
  *
@@ -23,7 +31,7 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
23
31
  imageUrl?: string;
24
32
  /**
25
33
  * @remarks
26
- * Specifies whether to translate the text on the image subject. This helps you protect information and prevent embedded information, such as product names, from being translated. In the example image, the text in the red box represents the text on the subject, and the text in the blue box represents the text not on the subject.
34
+ * Specifies whether to translate the text on the image subject. This helps you protect information and prevent embedded information, such as the product name, from being translated. In the example image, the text in the red box represents the text on the subject, and the text in the blue box represents the text not on the subject.
27
35
  *
28
36
  * @example
29
37
  * false
@@ -41,7 +49,7 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
41
49
  sourceLanguage?: string;
42
50
  /**
43
51
  * @remarks
44
- * The target language code. The 12 minor language pairs listed above are recommended.
52
+ * The target language code. We recommend that you use the 12 minor language pairs listed above.
45
53
  *
46
54
  * This parameter is required.
47
55
  *
@@ -51,7 +59,7 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
51
59
  targetLanguage?: string;
52
60
  /**
53
61
  * @remarks
54
- * Specifies whether to translate brand names in the image. This prevents brand names from being translated. Default value: false, which indicates that brand names are not translated. In the example image, \\"懒角落\\" represents a brand name.
62
+ * Specifies whether to translate the brand name in the image. This prevents the brand name from being translated. Default value: false. In the example image, \\"懒角落\\" represents the brand name.
55
63
  *
56
64
  * @example
57
65
  * false
@@ -59,7 +67,7 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
59
67
  translatingBrandInTheProduct?: boolean;
60
68
  /**
61
69
  * @remarks
62
- * Specifies whether to return layout information such as the position, font, and color of the text. This can be used to obtain data when integrating the image editor for secondary editing. You can call the image translation result query API to obtain the complete parameter information.
70
+ * Specifies whether to return layout information such as the position, font, and color of the text. This can be used to obtain data when you integrate the image editor for secondary editing. You can call the image translation result data query API operation to obtain the complete parameter information.
63
71
  *
64
72
  * @example
65
73
  * false
@@ -39,6 +39,7 @@ const $dara = __importStar(require("@darabonba/typescript"));
39
39
  class ImageTranslationPlusAsyncRequest extends $dara.Model {
40
40
  static names() {
41
41
  return {
42
+ bizId: 'BizId',
42
43
  glossary: 'Glossary',
43
44
  imageUrl: 'ImageUrl',
44
45
  includingProductArea: 'IncludingProductArea',
@@ -50,6 +51,7 @@ class ImageTranslationPlusAsyncRequest extends $dara.Model {
50
51
  }
51
52
  static types() {
52
53
  return {
54
+ bizId: 'string',
53
55
  glossary: 'string',
54
56
  imageUrl: 'string',
55
57
  includingProductArea: 'boolean',
@@ -1 +1 @@
1
- {"version":3,"file":"ImageTranslationPlusAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationPlusAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAkE/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,SAAS;YAC/B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,4BAA4B,EAAE,SAAS;YACvC,cAAc,EAAE,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjGD,4EAiGC"}
1
+ {"version":3,"file":"ImageTranslationPlusAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationPlusAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IA0E/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,SAAS;YAC/B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,4BAA4B,EAAE,SAAS;YACvC,cAAc,EAAE,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3GD,4EA2GC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageTranslationPlusAsyncResponseBodyData extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The identifier of the asynchronous task, which is used for result query and notification association. Do not use the example prefix as a business validation rule.
5
+ * The identifier of the asynchronous task, which is used for result queries and notification association. Do not use the example prefix as a business validation rule.
6
6
  *
7
7
  * @example
8
8
  * TID_550e8400-e29b-41d4-a716-446655440000
@@ -22,7 +22,7 @@ export declare class ImageTranslationPlusAsyncResponseBodyData extends $dara.Mod
22
22
  export declare class ImageTranslationPlusAsyncResponseBody extends $dara.Model {
23
23
  /**
24
24
  * @remarks
25
- * The response code of the submission call. A value of success indicates a successful call.
25
+ * The response code for the submission call. A successful call returns success.
26
26
  *
27
27
  * @example
28
28
  * success
@@ -30,7 +30,7 @@ export declare class ImageTranslationPlusAsyncResponseBody extends $dara.Model {
30
30
  code?: string;
31
31
  /**
32
32
  * @remarks
33
- * The submission result of the Image Translation Plus asynchronous task.
33
+ * The submission result of the asynchronous task for the Plus edition of image translation.
34
34
  */
35
35
  data?: ImageTranslationPlusAsyncResponseBodyData;
36
36
  /**
@@ -43,7 +43,7 @@ export declare class ImageTranslationPlusAsyncResponseBody extends $dara.Model {
43
43
  message?: string;
44
44
  /**
45
45
  * @remarks
46
- * The unique identifier of the request, which is used for troubleshooting and Tracing Analysis.
46
+ * The unique identifier of the request, which is used for troubleshooting and tracing analysis.
47
47
  *
48
48
  * @example
49
49
  * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
@@ -51,7 +51,7 @@ export declare class ImageTranslationPlusAsyncResponseBody extends $dara.Model {
51
51
  requestId?: string;
52
52
  /**
53
53
  * @remarks
54
- * Indicates whether the submission call is successful. This does not mean that the translation is completed. A value of true indicates success, and a value of false indicates failure.
54
+ * Specifies whether the submission call is successful. This does not indicate that the translation is complete. A value of true indicates success, and a value of false indicates failure.
55
55
  *
56
56
  * @example
57
57
  * True
@@ -1,5 +1,13 @@
1
1
  import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageTranslationProAsyncRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The business ID of the caller. This ID is recorded when the request is accepted and returned as-is when you query the asynchronous task result.
6
+ *
7
+ * @example
8
+ * order-20260928-001
9
+ */
10
+ bizId?: string;
3
11
  /**
4
12
  * @remarks
5
13
  * The ID of the intervention glossary. You must create the glossary in the console and provide its ID. If this parameter is left empty, the translation results are not modified.
@@ -10,10 +18,10 @@ export declare class ImageTranslationProAsyncRequest extends $dara.Model {
10
18
  glossary?: string;
11
19
  /**
12
20
  * @remarks
13
- * • Image URL: Must be accessible over the Internet.
14
- * • Format: PNG, JPEG, JPG, BMP, or WEBP.
15
- * • Pixels: Both the width and height must not exceed 4,000.
16
- * • File size: The original file size must be less than or equal to 10 MB.
21
+ * • Image URL: The URL must be publicly accessible over the Internet.
22
+ * • Formats: PNG, JPEG, JPG, BMP, and WEBP.
23
+ * • Pixels: The width and height cannot exceed 4,000 pixels.
24
+ * • File size: The original file size cannot exceed 10 MB.
17
25
  *
18
26
  * This parameter is required.
19
27
  *
@@ -23,7 +31,7 @@ export declare class ImageTranslationProAsyncRequest extends $dara.Model {
23
31
  imageUrl?: string;
24
32
  /**
25
33
  * @remarks
26
- * Specifies whether to translate the text on the product subject in the image. Set this parameter to false to protect the subject information, such as the product name, from being translated. Default value: false.
34
+ * Specifies whether to translate the text on the image subject. Set this parameter to false to protect the subject information, such as the product name, from being translated. Default value: false.
27
35
  *
28
36
  * @example
29
37
  * false
@@ -51,7 +59,7 @@ export declare class ImageTranslationProAsyncRequest extends $dara.Model {
51
59
  targetLanguage?: string;
52
60
  /**
53
61
  * @remarks
54
- * Specifies whether to translate the brand names in the image. Default value: false, which indicates that brand names are not translated.
62
+ * Specifies whether to translate brand names in the image. Default value: false, which indicates that brand names are not translated.
55
63
  *
56
64
  * @example
57
65
  * false
@@ -59,7 +67,7 @@ export declare class ImageTranslationProAsyncRequest extends $dara.Model {
59
67
  translatingBrandInTheProduct?: boolean;
60
68
  /**
61
69
  * @remarks
62
- * Specifies whether to return layout information such as the position, font, and color of the text. If you set this parameter to true, layer information is returned, which can be used for secondary editing in an image editor. Default value: false.
70
+ * Specifies whether to return layout information such as the position, font, and color of the text. If you set this parameter to true, layer information is returned, which can be used for secondary editing when you integrate an image editor. Default value: false.
63
71
  *
64
72
  * @example
65
73
  * false
@@ -39,6 +39,7 @@ const $dara = __importStar(require("@darabonba/typescript"));
39
39
  class ImageTranslationProAsyncRequest extends $dara.Model {
40
40
  static names() {
41
41
  return {
42
+ bizId: 'BizId',
42
43
  glossary: 'Glossary',
43
44
  imageUrl: 'ImageUrl',
44
45
  includingProductArea: 'IncludingProductArea',
@@ -50,6 +51,7 @@ class ImageTranslationProAsyncRequest extends $dara.Model {
50
51
  }
51
52
  static types() {
52
53
  return {
54
+ bizId: 'string',
53
55
  glossary: 'string',
54
56
  imageUrl: 'string',
55
57
  includingProductArea: 'boolean',
@@ -1 +1 @@
1
- {"version":3,"file":"ImageTranslationProAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationProAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAkE9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,SAAS;YAC/B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,4BAA4B,EAAE,SAAS;YACvC,cAAc,EAAE,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjGD,0EAiGC"}
1
+ {"version":3,"file":"ImageTranslationProAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationProAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IA0E9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,SAAS;YAC/B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,4BAA4B,EAAE,SAAS;YACvC,cAAc,EAAE,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3GD,0EA2GC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageTranslationProAsyncResponseBodyData extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The ID of the asynchronous task. It is used to query results and associate notifications. Do not use the example prefix as a business validation rule.
5
+ * The ID of the asynchronous task. This ID is used to query results and associate notifications. Do not use the example prefix as a business validation rule.
6
6
  *
7
7
  * @example
8
8
  * TID_550e8400-e29b-41d4-a716-446655440000
@@ -22,7 +22,7 @@ export declare class ImageTranslationProAsyncResponseBodyData extends $dara.Mode
22
22
  export declare class ImageTranslationProAsyncResponseBody extends $dara.Model {
23
23
  /**
24
24
  * @remarks
25
- * The response code. A value of success indicates that the task is submitted successfully.
25
+ * The response code. A value of success indicates that the task is submitted.
26
26
  *
27
27
  * @example
28
28
  * success
@@ -35,7 +35,7 @@ export declare class ImageTranslationProAsyncResponseBody extends $dara.Model {
35
35
  data?: ImageTranslationProAsyncResponseBodyData;
36
36
  /**
37
37
  * @remarks
38
- * The call description. A successful call returns Success. If the call fails, read the actual error message.
38
+ * The call description. A value of Success indicates a successful call. If the call fails, read the actual error message.
39
39
  *
40
40
  * @example
41
41
  * success
@@ -43,7 +43,7 @@ export declare class ImageTranslationProAsyncResponseBody extends $dara.Model {
43
43
  message?: string;
44
44
  /**
45
45
  * @remarks
46
- * The ID of the submission request. It is used for troubleshooting.
46
+ * The ID of the submission request. This ID is used for troubleshooting.
47
47
  *
48
48
  * @example
49
49
  * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
@@ -1,5 +1,13 @@
1
1
  import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageTranslationStandardAsyncRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The business order ID of the caller. It is recorded upon acceptance and returned as-is when querying the asynchronous task result.
6
+ *
7
+ * @example
8
+ * order-20260928-001
9
+ */
10
+ bizId?: string;
3
11
  /**
4
12
  * @remarks
5
13
  * The intervention glossary.
@@ -20,7 +28,7 @@ export declare class ImageTranslationStandardAsyncRequest extends $dara.Model {
20
28
  imageUrl?: string;
21
29
  /**
22
30
  * @remarks
23
- * Specifies whether to include the product area in the translation.
31
+ * Specifies whether to include the translation of the product area.
24
32
  *
25
33
  * @example
26
34
  * false
@@ -48,7 +56,7 @@ export declare class ImageTranslationStandardAsyncRequest extends $dara.Model {
48
56
  targetLanguage?: string;
49
57
  /**
50
58
  * @remarks
51
- * Specifies whether to translate brand text in the product area.
59
+ * Specifies whether to translate the brand text in the product area.
52
60
  *
53
61
  * @example
54
62
  * false