@alicloud/aidge20260428 1.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/client.d.ts +257 -139
  2. package/dist/client.js +333 -143
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DocumentTranslateRequest.d.ts +3 -3
  5. package/dist/models/DocumentTranslateResponseBody.d.ts +3 -5
  6. package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
  7. package/dist/models/ImageMattingRequest.d.ts +7 -7
  8. package/dist/models/ImageMattingResponseBody.d.ts +2 -2
  9. package/dist/models/ImageRemovalProRequest.d.ts +35 -0
  10. package/dist/models/ImageRemovalProRequest.js +60 -0
  11. package/dist/models/ImageRemovalProRequest.js.map +1 -0
  12. package/dist/models/ImageRemovalProResponse.d.ts +19 -0
  13. package/dist/models/ImageRemovalProResponse.js +69 -0
  14. package/dist/models/ImageRemovalProResponse.js.map +1 -0
  15. package/dist/models/ImageRemovalProResponseBody.d.ts +87 -0
  16. package/dist/models/ImageRemovalProResponseBody.js +95 -0
  17. package/dist/models/ImageRemovalProResponseBody.js.map +1 -0
  18. package/dist/models/ImageRemoveRequest.d.ts +15 -5
  19. package/dist/models/ImageRemoveRequest.js.map +1 -1
  20. package/dist/models/ImageRemoveResponseBody.d.ts +8 -8
  21. package/dist/models/ImageRemoveShrinkRequest.d.ts +15 -5
  22. package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
  23. package/dist/models/ImageTranslationProRequest.d.ts +9 -12
  24. package/dist/models/ImageTranslationProRequest.js +2 -2
  25. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  26. package/dist/models/ImageTranslationProResponseBody.d.ts +19 -19
  27. package/dist/models/MaterialInspectionRequest.d.ts +55 -0
  28. package/dist/models/MaterialInspectionRequest.js +66 -0
  29. package/dist/models/MaterialInspectionRequest.js.map +1 -0
  30. package/dist/models/MaterialInspectionResponse.d.ts +19 -0
  31. package/dist/models/MaterialInspectionResponse.js +69 -0
  32. package/dist/models/MaterialInspectionResponse.js.map +1 -0
  33. package/dist/models/MaterialInspectionResponseBody.d.ts +154 -0
  34. package/dist/models/MaterialInspectionResponseBody.js +147 -0
  35. package/dist/models/MaterialInspectionResponseBody.js.map +1 -0
  36. package/dist/models/TextTranslateRequest.d.ts +15 -5
  37. package/dist/models/TextTranslateRequest.js +4 -0
  38. package/dist/models/TextTranslateRequest.js.map +1 -1
  39. package/dist/models/TextTranslateResponseBody.d.ts +7 -7
  40. package/dist/models/TextTranslateShrinkRequest.d.ts +15 -5
  41. package/dist/models/TextTranslateShrinkRequest.js +4 -0
  42. package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
  43. package/dist/models/model.d.ts +10 -0
  44. package/dist/models/model.js +23 -2
  45. package/dist/models/model.js.map +1 -1
  46. package/package.json +1 -1
  47. package/src/client.ts +347 -144
  48. package/src/models/DocumentTranslateRequest.ts +3 -3
  49. package/src/models/DocumentTranslateResponseBody.ts +3 -5
  50. package/src/models/ImageMattingRequest.ts +7 -7
  51. package/src/models/ImageMattingResponseBody.ts +2 -2
  52. package/src/models/ImageRemovalProRequest.ts +50 -0
  53. package/src/models/ImageRemovalProResponse.ts +40 -0
  54. package/src/models/ImageRemovalProResponseBody.ts +126 -0
  55. package/src/models/ImageRemoveRequest.ts +15 -5
  56. package/src/models/ImageRemoveResponseBody.ts +8 -8
  57. package/src/models/ImageRemoveShrinkRequest.ts +15 -5
  58. package/src/models/ImageTranslationProRequest.ts +11 -14
  59. package/src/models/ImageTranslationProResponseBody.ts +19 -19
  60. package/src/models/MaterialInspectionRequest.ts +76 -0
  61. package/src/models/MaterialInspectionResponse.ts +40 -0
  62. package/src/models/MaterialInspectionResponseBody.ts +227 -0
  63. package/src/models/TextTranslateRequest.ts +19 -5
  64. package/src/models/TextTranslateResponseBody.ts +7 -7
  65. package/src/models/TextTranslateShrinkRequest.ts +19 -5
  66. package/src/models/model.ts +10 -0
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ImageRemovalProResponseBody = exports.ImageRemovalProResponseBodyData = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ImageRemovalProResponseBodyData extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ imageUrl: 'ImageUrl',
43
+ taskId: 'TaskId',
44
+ usageMap: 'UsageMap',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ imageUrl: 'string',
50
+ taskId: 'string',
51
+ usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
52
+ };
53
+ }
54
+ validate() {
55
+ if (this.usageMap) {
56
+ $dara.Model.validateMap(this.usageMap);
57
+ }
58
+ super.validate();
59
+ }
60
+ constructor(map) {
61
+ super(map);
62
+ }
63
+ }
64
+ exports.ImageRemovalProResponseBodyData = ImageRemovalProResponseBodyData;
65
+ class ImageRemovalProResponseBody extends $dara.Model {
66
+ static names() {
67
+ return {
68
+ code: 'Code',
69
+ data: 'Data',
70
+ message: 'Message',
71
+ requestId: 'RequestId',
72
+ success: 'Success',
73
+ };
74
+ }
75
+ static types() {
76
+ return {
77
+ code: 'string',
78
+ data: ImageRemovalProResponseBodyData,
79
+ message: 'string',
80
+ requestId: 'string',
81
+ success: 'boolean',
82
+ };
83
+ }
84
+ validate() {
85
+ if (this.data && typeof this.data.validate === 'function') {
86
+ this.data.validate();
87
+ }
88
+ super.validate();
89
+ }
90
+ constructor(map) {
91
+ super(map);
92
+ }
93
+ }
94
+ exports.ImageRemovalProResponseBody = ImageRemovalProResponseBody;
95
+ //# sourceMappingURL=ImageRemovalProResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageRemovalProResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemovalProResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAsB9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;SACxE,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;YACjB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhDD,0EAgDC;AAED,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAwC1D,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,+BAA+B;YACrC,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,kEAsEC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageRemoveRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * URL of the image to be processed (mutually exclusive with ImageBase64)
5
+ * The URL of the image to process. This parameter is mutually exclusive with ImageBase64. You must specify one of them.
6
6
  *
7
7
  * This parameter is required.
8
8
  *
@@ -12,7 +12,7 @@ export declare class ImageRemoveRequest extends $dara.Model {
12
12
  imageUrl?: string;
13
13
  /**
14
14
  * @remarks
15
- * Specific removal area in RLE format. If provided, this takes priority and the remove parameters are ignored
15
+ * The specific erasure region in RLE format. If this parameter is specified, it takes priority and the remove parameters are ignored.
16
16
  *
17
17
  * @example
18
18
  * null
@@ -20,7 +20,13 @@ export declare class ImageRemoveRequest extends $dara.Model {
20
20
  mask?: string;
21
21
  /**
22
22
  * @remarks
23
- * 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
23
+ * The elements to remove from the non-subject area of the image. Valid values:
24
+ * - 1: transparent text block
25
+ * - 2: specific name
26
+ * - 3: text
27
+ * - 4: image blemish
28
+ *
29
+ * You can specify multiple values.
24
30
  *
25
31
  * @example
26
32
  * [1,2]
@@ -28,9 +34,13 @@ export declare class ImageRemoveRequest extends $dara.Model {
28
34
  nonObjectRemoveElements?: number[];
29
35
  /**
30
36
  * @remarks
31
- * Elements to remove from the image subject (1=transparent text blocks; 2=specific names; 3=text; 4=blemishes). Multiple selections allowed
37
+ * The elements to remove from the image subject area. Valid values:
38
+ * - 1: transparent text block
39
+ * - 2: specific name
40
+ * - 3: text
41
+ * - 4: image blemish
32
42
  *
33
- * This parameter is required.
43
+ * You can specify multiple values.
34
44
  *
35
45
  * @example
36
46
  * [1,2]
@@ -1 +1 @@
1
- {"version":3,"file":"ImageRemoveRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kBAAmB,SAAQ,KAAK,CAAC,KAAK;IAqCjD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,uBAAuB,EAAE,yBAAyB;YAClD,oBAAoB,EAAE,sBAAsB;SAC7C,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;SAChE,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,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,gDAoEC"}
1
+ {"version":3,"file":"ImageRemoveRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kBAAmB,SAAQ,KAAK,CAAC,KAAK;IA+CjD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,uBAAuB,EAAE,yBAAyB;YAClD,oBAAoB,EAAE,sBAAsB;SAC7C,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;SAChE,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,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9ED,gDA8EC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageRemoveResponseBodyData extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * Height of the result image (pixels)
5
+ * The height of the result image, in pixels.
6
6
  *
7
7
  * @example
8
8
  * 800
@@ -10,7 +10,7 @@ export declare class ImageRemoveResponseBodyData extends $dara.Model {
10
10
  height?: number;
11
11
  /**
12
12
  * @remarks
13
- * URL of the removal result image
13
+ * The URL of the result image after erasure.
14
14
  *
15
15
  * @example
16
16
  * http://dashscope-7c2c.oss-cn-shanghai.aliyuncs.com/xxx.jpg
@@ -18,7 +18,7 @@ export declare class ImageRemoveResponseBodyData extends $dara.Model {
18
18
  imageUrl?: string;
19
19
  /**
20
20
  * @remarks
21
- * Usage information
21
+ * The usage information.
22
22
  *
23
23
  * @example
24
24
  * {"ProcessedImageCount":1}
@@ -28,7 +28,7 @@ export declare class ImageRemoveResponseBodyData extends $dara.Model {
28
28
  };
29
29
  /**
30
30
  * @remarks
31
- * Width of the result image (pixels)
31
+ * The width of the result image, in pixels.
32
32
  *
33
33
  * @example
34
34
  * 800
@@ -48,7 +48,7 @@ export declare class ImageRemoveResponseBodyData extends $dara.Model {
48
48
  export declare class ImageRemoveResponseBody extends $dara.Model {
49
49
  /**
50
50
  * @remarks
51
- * Error code
51
+ * The error code.
52
52
  *
53
53
  * @example
54
54
  * 200
@@ -56,12 +56,12 @@ export declare class ImageRemoveResponseBody extends $dara.Model {
56
56
  code?: string;
57
57
  /**
58
58
  * @remarks
59
- * Intelligent removal result
59
+ * The intelligent erasure result.
60
60
  */
61
61
  data?: ImageRemoveResponseBodyData;
62
62
  /**
63
63
  * @remarks
64
- * Error message
64
+ * The error message.
65
65
  *
66
66
  * @example
67
67
  * OK
@@ -77,7 +77,7 @@ export declare class ImageRemoveResponseBody extends $dara.Model {
77
77
  requestId?: string;
78
78
  /**
79
79
  * @remarks
80
- * Whether the call was successful
80
+ * Indicates whether the call was successful.
81
81
  *
82
82
  * @example
83
83
  * True
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageRemoveShrinkRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * URL of the image to be processed (mutually exclusive with ImageBase64)
5
+ * The URL of the image to process. This parameter is mutually exclusive with ImageBase64. You must specify one of them.
6
6
  *
7
7
  * This parameter is required.
8
8
  *
@@ -12,7 +12,7 @@ export declare class ImageRemoveShrinkRequest extends $dara.Model {
12
12
  imageUrl?: string;
13
13
  /**
14
14
  * @remarks
15
- * Specific removal area in RLE format. If provided, this takes priority and the remove parameters are ignored
15
+ * The specific erasure region in RLE format. If this parameter is specified, it takes priority and the remove parameters are ignored.
16
16
  *
17
17
  * @example
18
18
  * null
@@ -20,7 +20,13 @@ export declare class ImageRemoveShrinkRequest extends $dara.Model {
20
20
  mask?: string;
21
21
  /**
22
22
  * @remarks
23
- * 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
23
+ * The elements to remove from the non-subject area of the image. Valid values:
24
+ * - 1: transparent text block
25
+ * - 2: specific name
26
+ * - 3: text
27
+ * - 4: image blemish
28
+ *
29
+ * You can specify multiple values.
24
30
  *
25
31
  * @example
26
32
  * [1,2]
@@ -28,9 +34,13 @@ export declare class ImageRemoveShrinkRequest extends $dara.Model {
28
34
  nonObjectRemoveElementsShrink?: string;
29
35
  /**
30
36
  * @remarks
31
- * Elements to remove from the image subject (1=transparent text blocks; 2=specific names; 3=text; 4=blemishes). Multiple selections allowed
37
+ * The elements to remove from the image subject area. Valid values:
38
+ * - 1: transparent text block
39
+ * - 2: specific name
40
+ * - 3: text
41
+ * - 4: image blemish
32
42
  *
33
- * This parameter is required.
43
+ * You can specify multiple values.
34
44
  *
35
45
  * @example
36
46
  * [1,2]
@@ -1 +1 @@
1
- {"version":3,"file":"ImageRemoveShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAqCvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,6BAA6B,EAAE,yBAAyB;YACxD,0BAA0B,EAAE,sBAAsB;SACnD,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;SACrC,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;AA9DD,4DA8DC"}
1
+ {"version":3,"file":"ImageRemoveShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IA+CvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,6BAA6B,EAAE,yBAAyB;YACxD,0BAA0B,EAAE,sBAAsB;SACnD,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;SACrC,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;AAxED,4DAwEC"}
@@ -2,7 +2,12 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageTranslationProRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The ID of the intervention glossary. Optional. Create the glossary in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
5
+ * Specifies whether to call the operation asynchronously.
6
+ */
7
+ async?: boolean;
8
+ /**
9
+ * @remarks
10
+ * 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.
6
11
  *
7
12
  * @example
8
13
  * glossary_1
@@ -10,7 +15,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
10
15
  glossary?: string;
11
16
  /**
12
17
  * @remarks
13
- * The URL of the original image. Required. Image requirements: width and height must not exceed 4000 × 4000. File size must not exceed 10 MB. Supported formats: png, jpeg, jpg, bmp, and webp.
18
+ * 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.
14
19
  *
15
20
  * This parameter is required.
16
21
  *
@@ -20,7 +25,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
20
25
  imageUrl?: string;
21
26
  /**
22
27
  * @remarks
23
- * Specifies whether to translate text on the image subject. Optional. Default value: false. This helps protect information such as embedded product names from being translated.
28
+ * 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.
24
29
  *
25
30
  * @example
26
31
  * false
@@ -48,7 +53,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
48
53
  targetLanguage?: string;
49
54
  /**
50
55
  * @remarks
51
- * Specifies whether to translate brand names on images. Optional. Default value: false. This helps protect brand name information from being translated.
56
+ * Specifies whether to translate brand names on the image. Optional. Default value: false. This helps you protect brand name information from being translated.
52
57
  *
53
58
  * @example
54
59
  * false
@@ -62,14 +67,6 @@ export declare class ImageTranslationProRequest extends $dara.Model {
62
67
  * false
63
68
  */
64
69
  useImageEditor?: boolean;
65
- /**
66
- * @remarks
67
- * The call type. This is an internal system parameter. Optional.
68
- *
69
- * @example
70
- * sync
71
- */
72
- callType?: string;
73
70
  static names(): {
74
71
  [key: string]: string;
75
72
  };
@@ -39,6 +39,7 @@ const $dara = __importStar(require("@darabonba/typescript"));
39
39
  class ImageTranslationProRequest extends $dara.Model {
40
40
  static names() {
41
41
  return {
42
+ async: 'Async',
42
43
  glossary: 'Glossary',
43
44
  imageUrl: 'ImageUrl',
44
45
  includingProductArea: 'IncludingProductArea',
@@ -46,11 +47,11 @@ class ImageTranslationProRequest extends $dara.Model {
46
47
  targetLanguage: 'TargetLanguage',
47
48
  translatingBrandInTheProduct: 'TranslatingBrandInTheProduct',
48
49
  useImageEditor: 'UseImageEditor',
49
- callType: 'callType',
50
50
  };
51
51
  }
52
52
  static types() {
53
53
  return {
54
+ async: 'boolean',
54
55
  glossary: 'string',
55
56
  imageUrl: 'string',
56
57
  includingProductArea: 'boolean',
@@ -58,7 +59,6 @@ class ImageTranslationProRequest extends $dara.Model {
58
59
  targetLanguage: 'string',
59
60
  translatingBrandInTheProduct: 'boolean',
60
61
  useImageEditor: 'boolean',
61
- callType: 'string',
62
62
  };
63
63
  }
64
64
  validate() {
@@ -1 +1 @@
1
- {"version":3,"file":"ImageTranslationProRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationProRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAuEzD,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;YAChC,QAAQ,EAAE,UAAU;SACrB,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;YACzB,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;AAxGD,gEAwGC"}
1
+ {"version":3,"file":"ImageTranslationProRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationProRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAoEzD,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,SAAS;YAChB,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;AArGD,gEAqGC"}
@@ -174,7 +174,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
174
174
  fontsize?: number;
175
175
  /**
176
176
  * @remarks
177
- * The horizontal layout. Valid values: center, left, right.
177
+ * The horizontal layout mode. Valid values: center, left, right.
178
178
  *
179
179
  * @example
180
180
  * center
@@ -182,7 +182,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
182
182
  horizontalLayout?: string;
183
183
  /**
184
184
  * @remarks
185
- * The coordinates of the image repair area.
185
+ * The coordinates of the image inpainting area.
186
186
  */
187
187
  imageRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect;
188
188
  /**
@@ -216,7 +216,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
216
216
  textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect;
217
217
  /**
218
218
  * @remarks
219
- * Indicates whether the TextItem is valid. The item is invalid if this value does not exist or is false.
219
+ * Indicates whether the TextItem is valid. The item is invalid when this value does not exist or is false.
220
220
  *
221
221
  * @example
222
222
  * true
@@ -232,7 +232,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
232
232
  value?: string;
233
233
  /**
234
234
  * @remarks
235
- * The vertical layout. Valid values: center, top, down.
235
+ * The vertical layout mode. Valid values: center, top, down.
236
236
  *
237
237
  * @example
238
238
  * center
@@ -276,7 +276,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
276
276
  fontsize?: number;
277
277
  /**
278
278
  * @remarks
279
- * The horizontal layout. Valid values: center, left, right.
279
+ * The horizontal layout mode. Valid values: center, left, right.
280
280
  *
281
281
  * @example
282
282
  * left
@@ -292,12 +292,12 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
292
292
  lineCount?: number;
293
293
  /**
294
294
  * @remarks
295
- * The list of translated texts. Each element corresponds to the translation result for a target language.
295
+ * The list of translated texts. Each element corresponds to the translation result for one target language.
296
296
  */
297
297
  texts?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts[];
298
298
  /**
299
299
  * @remarks
300
- * The vertical layout. Valid values: center, top, down.
300
+ * The vertical layout mode. Valid values: center, top, down.
301
301
  *
302
302
  * @example
303
303
  * center
@@ -327,7 +327,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfo extends
327
327
  goodsRects?: ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects;
328
328
  /**
329
329
  * @remarks
330
- * The list of target languages for translation.
330
+ * The list of translation target languages.
331
331
  */
332
332
  languages?: string[];
333
333
  /**
@@ -345,7 +345,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfo extends
345
345
  resultImageIds?: string[];
346
346
  /**
347
347
  * @remarks
348
- * The list of text boxes, which contains information about all recognized text areas.
348
+ * The list of text boxes, including all recognized text area information.
349
349
  */
350
350
  textAreas?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas[];
351
351
  static names(): {
@@ -370,7 +370,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesResultList exten
370
370
  fileUrl?: string;
371
371
  /**
372
372
  * @remarks
373
- * The target language for translation.
373
+ * The translation target language.
374
374
  *
375
375
  * @example
376
376
  * en
@@ -390,7 +390,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesResultList exten
390
390
  export declare class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
391
391
  /**
392
392
  * @remarks
393
- * The editor information, which contains recognized information such as text areas, product areas, and fonts.
393
+ * The editor information, including recognized text areas, product areas, fonts, and other information.
394
394
  */
395
395
  editInfo?: ImageTranslationProResponseBodyDataGenFilesEditInfo;
396
396
  /**
@@ -420,7 +420,7 @@ export declare class ImageTranslationProResponseBodyDataGenFiles extends $dara.M
420
420
  export declare class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
421
421
  /**
422
422
  * @remarks
423
- * The URL of the image translation result image.
423
+ * The URL of the image translation result.
424
424
  *
425
425
  * @example
426
426
  * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
@@ -428,7 +428,7 @@ export declare class ImageTranslationProResponseBodyDataResultList extends $dara
428
428
  fileUrl?: string;
429
429
  /**
430
430
  * @remarks
431
- * The target language for image translation.
431
+ * The target language of the image translation.
432
432
  *
433
433
  * @example
434
434
  * en
@@ -448,7 +448,7 @@ export declare class ImageTranslationProResponseBodyDataResultList extends $dara
448
448
  export declare class ImageTranslationProResponseBodyData extends $dara.Model {
449
449
  /**
450
450
  * @remarks
451
- * The editor protocol, which contains the translation result files and editing information.
451
+ * The editor protocol, including translation result files and editing information.
452
452
  */
453
453
  genFiles?: ImageTranslationProResponseBodyDataGenFiles[];
454
454
  /**
@@ -458,7 +458,7 @@ export declare class ImageTranslationProResponseBodyData extends $dara.Model {
458
458
  resultList?: ImageTranslationProResponseBodyDataResultList[];
459
459
  /**
460
460
  * @remarks
461
- * The asynchronous task ID. This is not returned for synchronous calls.
461
+ * The asynchronous task ID. Not returned for synchronous calls.
462
462
  *
463
463
  * @example
464
464
  * abc123-task-id
@@ -485,7 +485,7 @@ export declare class ImageTranslationProResponseBodyData extends $dara.Model {
485
485
  export declare class ImageTranslationProResponseBody extends $dara.Model {
486
486
  /**
487
487
  * @remarks
488
- * The response code. A value of 200 indicates success. For other response codes, see the error codes.
488
+ * The response code. 200 indicates a successful call. For other response codes, see the error code information.
489
489
  *
490
490
  * @example
491
491
  * 200
@@ -498,7 +498,7 @@ export declare class ImageTranslationProResponseBody extends $dara.Model {
498
498
  data?: ImageTranslationProResponseBodyData;
499
499
  /**
500
500
  * @remarks
501
- * The error message. "Success" is returned for successful calls. A specific error message is returned for failed calls, such as "The content contains sensitive data. Try other input.".
501
+ * The error message. Returns "Success" for successful calls. Returns specific error information for exceptions, such as "The content contains sensitive data. Try other input."
502
502
  *
503
503
  * @example
504
504
  * Success
@@ -506,7 +506,7 @@ export declare class ImageTranslationProResponseBody extends $dara.Model {
506
506
  message?: string;
507
507
  /**
508
508
  * @remarks
509
- * The request ID, which uniquely identifies the request.
509
+ * The request ID, used to identify a unique request call.
510
510
  *
511
511
  * @example
512
512
  * 61785C32-80C2-19A3-9E55-2C3702C84B40
@@ -514,7 +514,7 @@ export declare class ImageTranslationProResponseBody extends $dara.Model {
514
514
  requestId?: string;
515
515
  /**
516
516
  * @remarks
517
- * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
517
+ * Indicates whether the call was successful. true indicates success. false indicates failure.
518
518
  *
519
519
  * @example
520
520
  * true
@@ -0,0 +1,55 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class MaterialInspectionRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * apiId
6
+ *
7
+ * @example
8
+ * fb0012f49b004f889207a3c5e6ef8da9
9
+ */
10
+ apiId?: string;
11
+ /**
12
+ * @remarks
13
+ * The URL of the reference image. When this parameter is not empty, multi-image comparison mode is used.
14
+ *
15
+ * @example
16
+ * https://example.com/reference.jpg
17
+ */
18
+ imageRefer?: string;
19
+ /**
20
+ * @remarks
21
+ * The URL of the target image to inspect.
22
+ *
23
+ * This parameter is required.
24
+ *
25
+ * @example
26
+ * https://example.com/store.jpg
27
+ */
28
+ imageUrl?: string;
29
+ /**
30
+ * @remarks
31
+ * The business request identity. This value is returned as-is in the response for Tracing Analysis purposes.
32
+ *
33
+ * @example
34
+ * req-2026-06-04-001
35
+ */
36
+ reqId?: string;
37
+ /**
38
+ * @remarks
39
+ * The rule prompt in natural language that defines the inspection criteria.
40
+ *
41
+ * @example
42
+ * 门型展架必须摆放在入口区域;功能台卡必须摆放在中柜台面
43
+ */
44
+ rules?: string;
45
+ static names(): {
46
+ [key: string]: string;
47
+ };
48
+ static types(): {
49
+ [key: string]: any;
50
+ };
51
+ validate(): void;
52
+ constructor(map?: {
53
+ [key: string]: any;
54
+ });
55
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.MaterialInspectionRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class MaterialInspectionRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ apiId: 'ApiId',
43
+ imageRefer: 'ImageRefer',
44
+ imageUrl: 'ImageUrl',
45
+ reqId: 'ReqId',
46
+ rules: 'Rules',
47
+ };
48
+ }
49
+ static types() {
50
+ return {
51
+ apiId: 'string',
52
+ imageRefer: 'string',
53
+ imageUrl: 'string',
54
+ reqId: 'string',
55
+ rules: 'string',
56
+ };
57
+ }
58
+ validate() {
59
+ super.validate();
60
+ }
61
+ constructor(map) {
62
+ super(map);
63
+ }
64
+ }
65
+ exports.MaterialInspectionRequest = MaterialInspectionRequest;
66
+ //# sourceMappingURL=MaterialInspectionRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MaterialInspectionRequest.js","sourceRoot":"","sources":["../../src/models/MaterialInspectionRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IA2CxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,QAAQ;SAChB,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;AAtED,8DAsEC"}