@alicloud/aidge20260428 5.7.1 → 5.8.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 (80) hide show
  1. package/dist/client.d.ts +222 -76
  2. package/dist/client.js +338 -76
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DiduiAreaDeductionProRequest.d.ts +33 -0
  5. package/dist/models/DiduiAreaDeductionProRequest.js +60 -0
  6. package/dist/models/DiduiAreaDeductionProRequest.js.map +1 -0
  7. package/dist/models/DiduiAreaDeductionProResponse.d.ts +19 -0
  8. package/dist/models/DiduiAreaDeductionProResponse.js +69 -0
  9. package/dist/models/DiduiAreaDeductionProResponse.js.map +1 -0
  10. package/dist/models/DiduiAreaDeductionProResponseBody.d.ts +70 -0
  11. package/dist/models/DiduiAreaDeductionProResponseBody.js +88 -0
  12. package/dist/models/DiduiAreaDeductionProResponseBody.js.map +1 -0
  13. package/dist/models/GeneralRephotographyDetectionRequest.d.ts +23 -0
  14. package/dist/models/GeneralRephotographyDetectionRequest.js +58 -0
  15. package/dist/models/GeneralRephotographyDetectionRequest.js.map +1 -0
  16. package/dist/models/GeneralRephotographyDetectionResponse.d.ts +19 -0
  17. package/dist/models/GeneralRephotographyDetectionResponse.js +69 -0
  18. package/dist/models/GeneralRephotographyDetectionResponse.js.map +1 -0
  19. package/dist/models/GeneralRephotographyDetectionResponseBody.d.ts +170 -0
  20. package/dist/models/GeneralRephotographyDetectionResponseBody.js +172 -0
  21. package/dist/models/GeneralRephotographyDetectionResponseBody.js.map +1 -0
  22. package/dist/models/ImageTranslationPlusResponseBody.d.ts +1 -1
  23. package/dist/models/ImageTranslationProRequest.d.ts +3 -3
  24. package/dist/models/ImageTranslationStandardRequest.d.ts +10 -10
  25. package/dist/models/ImageTranslationStandardResponseBody.d.ts +8 -8
  26. package/dist/models/MerchandisePlacementDetectionProRequest.d.ts +39 -0
  27. package/dist/models/MerchandisePlacementDetectionProRequest.js +62 -0
  28. package/dist/models/MerchandisePlacementDetectionProRequest.js.map +1 -0
  29. package/dist/models/MerchandisePlacementDetectionProResponse.d.ts +19 -0
  30. package/dist/models/MerchandisePlacementDetectionProResponse.js +69 -0
  31. package/dist/models/MerchandisePlacementDetectionProResponse.js.map +1 -0
  32. package/dist/models/MerchandisePlacementDetectionProResponseBody.d.ts +118 -0
  33. package/dist/models/MerchandisePlacementDetectionProResponseBody.js +124 -0
  34. package/dist/models/MerchandisePlacementDetectionProResponseBody.js.map +1 -0
  35. package/dist/models/MerchandisePlacementDetectionRequest.d.ts +12 -5
  36. package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -1
  37. package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +7 -7
  38. package/dist/models/PetHealthAnalysisRequest.d.ts +36 -0
  39. package/dist/models/PetHealthAnalysisRequest.js +65 -0
  40. package/dist/models/PetHealthAnalysisRequest.js.map +1 -0
  41. package/dist/models/PetHealthAnalysisResponse.d.ts +19 -0
  42. package/dist/models/PetHealthAnalysisResponse.js +69 -0
  43. package/dist/models/PetHealthAnalysisResponse.js.map +1 -0
  44. package/dist/models/PetHealthAnalysisResponseBody.d.ts +70 -0
  45. package/dist/models/PetHealthAnalysisResponseBody.js +88 -0
  46. package/dist/models/PetHealthAnalysisResponseBody.js.map +1 -0
  47. package/dist/models/PetHealthAnalysisShrinkRequest.d.ts +36 -0
  48. package/dist/models/PetHealthAnalysisShrinkRequest.js +62 -0
  49. package/dist/models/PetHealthAnalysisShrinkRequest.js.map +1 -0
  50. package/dist/models/TextTranslateRequest.d.ts +6 -6
  51. package/dist/models/TextTranslateResponseBody.d.ts +1 -1
  52. package/dist/models/TextTranslateShrinkRequest.d.ts +6 -6
  53. package/dist/models/model.d.ts +21 -0
  54. package/dist/models/model.js +46 -4
  55. package/dist/models/model.js.map +1 -1
  56. package/package.json +1 -1
  57. package/src/client.ts +356 -76
  58. package/src/models/DiduiAreaDeductionProRequest.ts +48 -0
  59. package/src/models/DiduiAreaDeductionProResponse.ts +40 -0
  60. package/src/models/DiduiAreaDeductionProResponseBody.ts +104 -0
  61. package/src/models/GeneralRephotographyDetectionRequest.ts +36 -0
  62. package/src/models/GeneralRephotographyDetectionResponse.ts +40 -0
  63. package/src/models/GeneralRephotographyDetectionResponseBody.ts +259 -0
  64. package/src/models/ImageTranslationPlusResponseBody.ts +1 -1
  65. package/src/models/ImageTranslationProRequest.ts +3 -3
  66. package/src/models/ImageTranslationStandardRequest.ts +10 -10
  67. package/src/models/ImageTranslationStandardResponseBody.ts +8 -8
  68. package/src/models/MerchandisePlacementDetectionProRequest.ts +56 -0
  69. package/src/models/MerchandisePlacementDetectionProResponse.ts +40 -0
  70. package/src/models/MerchandisePlacementDetectionProResponseBody.ts +177 -0
  71. package/src/models/MerchandisePlacementDetectionRequest.ts +12 -5
  72. package/src/models/MerchandisePlacementDetectionResponseBody.ts +7 -7
  73. package/src/models/PetHealthAnalysisRequest.ts +56 -0
  74. package/src/models/PetHealthAnalysisResponse.ts +40 -0
  75. package/src/models/PetHealthAnalysisResponseBody.ts +104 -0
  76. package/src/models/PetHealthAnalysisShrinkRequest.ts +53 -0
  77. package/src/models/TextTranslateRequest.ts +6 -6
  78. package/src/models/TextTranslateResponseBody.ts +1 -1
  79. package/src/models/TextTranslateShrinkRequest.ts +6 -6
  80. package/src/models/model.ts +21 -0
@@ -0,0 +1,23 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class GeneralRephotographyDetectionRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The HTTPS URL of the original image to recognize. The URL must be accessible and must not contain whitespace or URL-embedded usernames or passwords.
6
+ *
7
+ * This parameter is required.
8
+ *
9
+ * @example
10
+ * https://example.com/image.jpg
11
+ */
12
+ imageUrl?: string;
13
+ static names(): {
14
+ [key: string]: string;
15
+ };
16
+ static types(): {
17
+ [key: string]: any;
18
+ };
19
+ validate(): void;
20
+ constructor(map?: {
21
+ [key: string]: any;
22
+ });
23
+ }
@@ -0,0 +1,58 @@
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.GeneralRephotographyDetectionRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class GeneralRephotographyDetectionRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ imageUrl: 'ImageUrl',
43
+ };
44
+ }
45
+ static types() {
46
+ return {
47
+ imageUrl: 'string',
48
+ };
49
+ }
50
+ validate() {
51
+ super.validate();
52
+ }
53
+ constructor(map) {
54
+ super(map);
55
+ }
56
+ }
57
+ exports.GeneralRephotographyDetectionRequest = GeneralRephotographyDetectionRequest;
58
+ //# sourceMappingURL=GeneralRephotographyDetectionRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeneralRephotographyDetectionRequest.js","sourceRoot":"","sources":["../../src/models/GeneralRephotographyDetectionRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAWnE,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,oFA8BC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { GeneralRephotographyDetectionResponseBody } from "./GeneralRephotographyDetectionResponseBody";
3
+ export declare class GeneralRephotographyDetectionResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: GeneralRephotographyDetectionResponseBody;
9
+ static names(): {
10
+ [key: string]: string;
11
+ };
12
+ static types(): {
13
+ [key: string]: any;
14
+ };
15
+ validate(): void;
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
@@ -0,0 +1,69 @@
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.GeneralRephotographyDetectionResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const GeneralRephotographyDetectionResponseBody_1 = require("./GeneralRephotographyDetectionResponseBody");
40
+ class GeneralRephotographyDetectionResponse extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ headers: 'headers',
44
+ statusCode: 'statusCode',
45
+ body: 'body',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
51
+ statusCode: 'number',
52
+ body: GeneralRephotographyDetectionResponseBody_1.GeneralRephotographyDetectionResponseBody,
53
+ };
54
+ }
55
+ validate() {
56
+ if (this.headers) {
57
+ $dara.Model.validateMap(this.headers);
58
+ }
59
+ if (this.body && typeof this.body.validate === 'function') {
60
+ this.body.validate();
61
+ }
62
+ super.validate();
63
+ }
64
+ constructor(map) {
65
+ super(map);
66
+ }
67
+ }
68
+ exports.GeneralRephotographyDetectionResponse = GeneralRephotographyDetectionResponse;
69
+ //# sourceMappingURL=GeneralRephotographyDetectionResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeneralRephotographyDetectionResponse.js","sourceRoot":"","sources":["../../src/models/GeneralRephotographyDetectionResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2GAAwG;AAGxG,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAIpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qFAAyC;SAChD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,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;AAjCD,sFAiCC"}
@@ -0,0 +1,170 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class GeneralRephotographyDetectionResponseBodyDataResultGroundingRegions extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The bounding box coordinates.
6
+ */
7
+ bbox2d?: number[];
8
+ /**
9
+ * @remarks
10
+ * The target category. For valid values, see the table below.
11
+ *
12
+ * @example
13
+ * product
14
+ */
15
+ label?: string;
16
+ /**
17
+ * @remarks
18
+ * The confirmed short name or text of up to 24 characters. This value is an empty string if the text is unreadable.
19
+ *
20
+ * @example
21
+ * Product
22
+ */
23
+ text?: string;
24
+ static names(): {
25
+ [key: string]: string;
26
+ };
27
+ static types(): {
28
+ [key: string]: any;
29
+ };
30
+ validate(): void;
31
+ constructor(map?: {
32
+ [key: string]: any;
33
+ });
34
+ }
35
+ export declare class GeneralRephotographyDetectionResponseBodyDataResultGrounding extends $dara.Model {
36
+ /**
37
+ * @remarks
38
+ * The coverage of the localization. Valid values:
39
+ * - complete: All relevant visible targets are fully covered.
40
+ * - partial: Only some targets are valid or recognizable.
41
+ *
42
+ * @example
43
+ * complete
44
+ */
45
+ coverage?: string;
46
+ /**
47
+ * @remarks
48
+ * The array of targets. A maximum of 12 items are returned. This value can be empty if no relevant targets exist.
49
+ */
50
+ regions?: GeneralRephotographyDetectionResponseBodyDataResultGroundingRegions[];
51
+ static names(): {
52
+ [key: string]: string;
53
+ };
54
+ static types(): {
55
+ [key: string]: any;
56
+ };
57
+ validate(): void;
58
+ constructor(map?: {
59
+ [key: string]: any;
60
+ });
61
+ }
62
+ export declare class GeneralRephotographyDetectionResponseBodyDataResult extends $dara.Model {
63
+ /**
64
+ * @remarks
65
+ * The supplementary element localization result.
66
+ */
67
+ grounding?: GeneralRephotographyDetectionResponseBodyDataResultGrounding;
68
+ /**
69
+ * @remarks
70
+ * Indicates whether the image is a recaptured photo.
71
+ *
72
+ * @example
73
+ * true
74
+ */
75
+ isFake?: boolean;
76
+ /**
77
+ * @remarks
78
+ * The detection type. The value is fixed as general.
79
+ *
80
+ * @example
81
+ * general
82
+ */
83
+ type?: string;
84
+ static names(): {
85
+ [key: string]: string;
86
+ };
87
+ static types(): {
88
+ [key: string]: any;
89
+ };
90
+ validate(): void;
91
+ constructor(map?: {
92
+ [key: string]: any;
93
+ });
94
+ }
95
+ export declare class GeneralRephotographyDetectionResponseBodyData extends $dara.Model {
96
+ /**
97
+ * @remarks
98
+ * The business result. This value is an empty object if the request fails.
99
+ */
100
+ result?: GeneralRephotographyDetectionResponseBodyDataResult;
101
+ /**
102
+ * @remarks
103
+ * The usage information. The value is `{"ProcessingCount":1}` on success, or an empty object on failure.
104
+ *
105
+ * @example
106
+ * {"ProcessingCount":1}
107
+ */
108
+ usageMap?: {
109
+ [key: string]: number;
110
+ };
111
+ static names(): {
112
+ [key: string]: string;
113
+ };
114
+ static types(): {
115
+ [key: string]: any;
116
+ };
117
+ validate(): void;
118
+ constructor(map?: {
119
+ [key: string]: any;
120
+ });
121
+ }
122
+ export declare class GeneralRephotographyDetectionResponseBody extends $dara.Model {
123
+ /**
124
+ * @remarks
125
+ * The error code.
126
+ *
127
+ * @example
128
+ * success
129
+ */
130
+ code?: string;
131
+ /**
132
+ * @remarks
133
+ * The recapture detection result.
134
+ */
135
+ data?: GeneralRephotographyDetectionResponseBodyData;
136
+ /**
137
+ * @remarks
138
+ * The response message or failure description.
139
+ *
140
+ * @example
141
+ * Success
142
+ */
143
+ message?: string;
144
+ /**
145
+ * @remarks
146
+ * The request ID.
147
+ *
148
+ * @example
149
+ * 70CBEFDF-BB17-1EB3-8A21-569F3124738F
150
+ */
151
+ requestId?: string;
152
+ /**
153
+ * @remarks
154
+ * Indicates whether the call is successful.
155
+ *
156
+ * @example
157
+ * True
158
+ */
159
+ success?: boolean;
160
+ static names(): {
161
+ [key: string]: string;
162
+ };
163
+ static types(): {
164
+ [key: string]: any;
165
+ };
166
+ validate(): void;
167
+ constructor(map?: {
168
+ [key: string]: any;
169
+ });
170
+ }
@@ -0,0 +1,172 @@
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.GeneralRephotographyDetectionResponseBody = exports.GeneralRephotographyDetectionResponseBodyData = exports.GeneralRephotographyDetectionResponseBodyDataResult = exports.GeneralRephotographyDetectionResponseBodyDataResultGrounding = exports.GeneralRephotographyDetectionResponseBodyDataResultGroundingRegions = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class GeneralRephotographyDetectionResponseBodyDataResultGroundingRegions extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ bbox2d: 'Bbox2d',
43
+ label: 'Label',
44
+ text: 'Text',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ bbox2d: { 'type': 'array', 'itemType': 'number' },
50
+ label: 'string',
51
+ text: 'string',
52
+ };
53
+ }
54
+ validate() {
55
+ if (Array.isArray(this.bbox2d)) {
56
+ $dara.Model.validateArray(this.bbox2d);
57
+ }
58
+ super.validate();
59
+ }
60
+ constructor(map) {
61
+ super(map);
62
+ }
63
+ }
64
+ exports.GeneralRephotographyDetectionResponseBodyDataResultGroundingRegions = GeneralRephotographyDetectionResponseBodyDataResultGroundingRegions;
65
+ class GeneralRephotographyDetectionResponseBodyDataResultGrounding extends $dara.Model {
66
+ static names() {
67
+ return {
68
+ coverage: 'Coverage',
69
+ regions: 'Regions',
70
+ };
71
+ }
72
+ static types() {
73
+ return {
74
+ coverage: 'string',
75
+ regions: { 'type': 'array', 'itemType': GeneralRephotographyDetectionResponseBodyDataResultGroundingRegions },
76
+ };
77
+ }
78
+ validate() {
79
+ if (Array.isArray(this.regions)) {
80
+ $dara.Model.validateArray(this.regions);
81
+ }
82
+ super.validate();
83
+ }
84
+ constructor(map) {
85
+ super(map);
86
+ }
87
+ }
88
+ exports.GeneralRephotographyDetectionResponseBodyDataResultGrounding = GeneralRephotographyDetectionResponseBodyDataResultGrounding;
89
+ class GeneralRephotographyDetectionResponseBodyDataResult extends $dara.Model {
90
+ static names() {
91
+ return {
92
+ grounding: 'Grounding',
93
+ isFake: 'IsFake',
94
+ type: 'Type',
95
+ };
96
+ }
97
+ static types() {
98
+ return {
99
+ grounding: GeneralRephotographyDetectionResponseBodyDataResultGrounding,
100
+ isFake: 'boolean',
101
+ type: 'string',
102
+ };
103
+ }
104
+ validate() {
105
+ if (this.grounding && typeof this.grounding.validate === 'function') {
106
+ this.grounding.validate();
107
+ }
108
+ super.validate();
109
+ }
110
+ constructor(map) {
111
+ super(map);
112
+ }
113
+ }
114
+ exports.GeneralRephotographyDetectionResponseBodyDataResult = GeneralRephotographyDetectionResponseBodyDataResult;
115
+ class GeneralRephotographyDetectionResponseBodyData extends $dara.Model {
116
+ static names() {
117
+ return {
118
+ result: 'Result',
119
+ usageMap: 'UsageMap',
120
+ };
121
+ }
122
+ static types() {
123
+ return {
124
+ result: GeneralRephotographyDetectionResponseBodyDataResult,
125
+ usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
126
+ };
127
+ }
128
+ validate() {
129
+ if (this.result && typeof this.result.validate === 'function') {
130
+ this.result.validate();
131
+ }
132
+ if (this.usageMap) {
133
+ $dara.Model.validateMap(this.usageMap);
134
+ }
135
+ super.validate();
136
+ }
137
+ constructor(map) {
138
+ super(map);
139
+ }
140
+ }
141
+ exports.GeneralRephotographyDetectionResponseBodyData = GeneralRephotographyDetectionResponseBodyData;
142
+ class GeneralRephotographyDetectionResponseBody extends $dara.Model {
143
+ static names() {
144
+ return {
145
+ code: 'Code',
146
+ data: 'Data',
147
+ message: 'Message',
148
+ requestId: 'RequestId',
149
+ success: 'Success',
150
+ };
151
+ }
152
+ static types() {
153
+ return {
154
+ code: 'string',
155
+ data: GeneralRephotographyDetectionResponseBodyData,
156
+ message: 'string',
157
+ requestId: 'string',
158
+ success: 'boolean',
159
+ };
160
+ }
161
+ validate() {
162
+ if (this.data && typeof this.data.validate === 'function') {
163
+ this.data.validate();
164
+ }
165
+ super.validate();
166
+ }
167
+ constructor(map) {
168
+ super(map);
169
+ }
170
+ }
171
+ exports.GeneralRephotographyDetectionResponseBody = GeneralRephotographyDetectionResponseBody;
172
+ //# sourceMappingURL=GeneralRephotographyDetectionResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeneralRephotographyDetectionResponseBody.js","sourceRoot":"","sources":["../../src/models/GeneralRephotographyDetectionResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mEAAoE,SAAQ,KAAK,CAAC,KAAK;IAsBlG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,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AAQ,KAAK,CAAC,KAAK;IAsCxE,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,6CAA6C;YACnD,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,8FAoEC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageTranslationPlusResponseBodyData extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The asynchronous task ID. Use this ID to poll for results through the queryTaskResult API operation.
5
+ * The asynchronous task ID. Use this ID to poll for results through the queryTaskResult operation.
6
6
  *
7
7
  * @example
8
8
  * task-abc123
@@ -42,7 +42,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
42
42
  includingProductArea?: boolean;
43
43
  /**
44
44
  * @remarks
45
- * The source language code. This parameter is required. For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
45
+ * The source language code. This parameter is required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
46
46
  *
47
47
  * This parameter is required.
48
48
  *
@@ -52,7 +52,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
52
52
  sourceLanguage?: string;
53
53
  /**
54
54
  * @remarks
55
- * The target language code. This parameter is required. For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
55
+ * The target language code. This parameter is required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
56
56
  *
57
57
  * This parameter is required.
58
58
  *
@@ -62,7 +62,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
62
62
  targetLanguage?: string;
63
63
  /**
64
64
  * @remarks
65
- * Specifies whether to translate brand names on images. This parameter is optional. Default value: false. This helps you protect brand name information from being translated.
65
+ * Specifies whether to translate brand names on the image. This parameter is optional. Default value: false. This helps you protect brand name information from being translated.
66
66
  *
67
67
  * @example
68
68
  * false
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageTranslationStandardRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The intervention glossary ID. Optional. You must create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
5
+ * The intervention glossary ID. This parameter is optional. You must create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
6
6
  *
7
7
  * @example
8
8
  * glossary_1
@@ -10,10 +10,10 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
10
10
  glossary?: string;
11
11
  /**
12
12
  * @remarks
13
- * - Image URL: Must be publicly accessible.
14
- * - Format: png, jpeg, jpg, bmp, webp
15
- * - Pixels: Both width and height must not exceed 4000
16
- * - File size: Original file ≤ 10 MB
13
+ * - Image URL: The URL must be publicly accessible.
14
+ * - Format: png, jpeg, jpg, bmp, or webp.
15
+ * - Pixels: The width and height must not exceed 4000 pixels each.
16
+ * - File size: The original file must be 10 MB or smaller.
17
17
  *
18
18
  * This parameter is required.
19
19
  *
@@ -23,7 +23,7 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
23
23
  imageUrl?: string;
24
24
  /**
25
25
  * @remarks
26
- * Specifies whether to translate text on the product area of an image. Optional. Default value: false. This helps protect information by avoiding translation of embedded information such as product names.
26
+ * Specifies whether to translate text on the product area of the image. This parameter is optional. Default value: false. This helps protect information by preventing translation of embedded content such as product names.
27
27
  *
28
28
  * @example
29
29
  * false
@@ -31,7 +31,7 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
31
31
  includingProductArea?: boolean;
32
32
  /**
33
33
  * @remarks
34
- * The source language code. Required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
34
+ * The source language code. This parameter is required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
35
35
  *
36
36
  * This parameter is required.
37
37
  *
@@ -41,7 +41,7 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
41
41
  sourceLanguage?: string;
42
42
  /**
43
43
  * @remarks
44
- * The target language code. Required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
44
+ * The target language code. This parameter is required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
45
45
  *
46
46
  * This parameter is required.
47
47
  *
@@ -51,7 +51,7 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
51
51
  targetLanguage?: string;
52
52
  /**
53
53
  * @remarks
54
- * Specifies whether to translate brand names on images. Optional. Default value: false. This helps protect brand name information from being translated.
54
+ * Specifies whether to translate brand names on the image. This parameter is optional. Default value: false. This helps protect brand name information from being translated.
55
55
  *
56
56
  * @example
57
57
  * false
@@ -59,7 +59,7 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
59
59
  translatingBrandInTheProduct?: boolean;
60
60
  /**
61
61
  * @remarks
62
- * Specifies whether to return layer information such as text position, font, and color. If you set this parameter to true, layer information is returned, which can be used to integrate with image editors for secondary editing. Default value: false.
62
+ * Specifies whether to return layer information such as text position, font, and color. If you set this parameter to true, layer information is returned for secondary editing through an image editor. Default value: false.
63
63
  *
64
64
  * @example
65
65
  * false