@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,56 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class MerchandisePlacementDetectionProRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The HTTPS URL of the display image to detect.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * https://example.com/image.jpg
14
+ */
15
+ imageUrl?: string;
16
+ /**
17
+ * @remarks
18
+ * The detection rule. When non-empty, this value takes priority as the model prompt.
19
+ *
20
+ * @example
21
+ * Identify all Genki Forest beverages on the shelf and mark their positions
22
+ */
23
+ rule?: string;
24
+ /**
25
+ * @remarks
26
+ * The product type. This parameter must be set to Genki Forest when Rule is empty.
27
+ *
28
+ * @example
29
+ * 元气森林
30
+ */
31
+ type?: string;
32
+ static names(): { [key: string]: string } {
33
+ return {
34
+ imageUrl: 'ImageUrl',
35
+ rule: 'Rule',
36
+ type: 'Type',
37
+ };
38
+ }
39
+
40
+ static types(): { [key: string]: any } {
41
+ return {
42
+ imageUrl: 'string',
43
+ rule: 'string',
44
+ type: 'string',
45
+ };
46
+ }
47
+
48
+ validate() {
49
+ super.validate();
50
+ }
51
+
52
+ constructor(map?: { [key: string]: any }) {
53
+ super(map);
54
+ }
55
+ }
56
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { MerchandisePlacementDetectionProResponseBody } from "./MerchandisePlacementDetectionProResponseBody";
4
+
5
+
6
+ export class MerchandisePlacementDetectionProResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: MerchandisePlacementDetectionProResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: MerchandisePlacementDetectionProResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,177 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class MerchandisePlacementDetectionProResponseBodyDataData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The normalized bounding box coordinates [x1,y1,x2,y2], with values in the range 0–1000.
9
+ */
10
+ bbox2d?: number[];
11
+ /**
12
+ * @remarks
13
+ * The detected product name. The value is unknown if the name cannot be determined.
14
+ *
15
+ * @example
16
+ * unknown
17
+ */
18
+ detectedSkuName?: string;
19
+ /**
20
+ * @remarks
21
+ * The bounding box index, starting from 1.
22
+ *
23
+ * @example
24
+ * 1
25
+ */
26
+ idx?: number;
27
+ static names(): { [key: string]: string } {
28
+ return {
29
+ bbox2d: 'Bbox2d',
30
+ detectedSkuName: 'DetectedSkuName',
31
+ idx: 'Idx',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ bbox2d: { 'type': 'array', 'itemType': 'number' },
38
+ detectedSkuName: 'string',
39
+ idx: 'number',
40
+ };
41
+ }
42
+
43
+ validate() {
44
+ if(Array.isArray(this.bbox2d)) {
45
+ $dara.Model.validateArray(this.bbox2d);
46
+ }
47
+ super.validate();
48
+ }
49
+
50
+ constructor(map?: { [key: string]: any }) {
51
+ super(map);
52
+ }
53
+ }
54
+
55
+ export class MerchandisePlacementDetectionProResponseBodyData extends $dara.Model {
56
+ /**
57
+ * @remarks
58
+ * The number of valid bounding boxes.
59
+ *
60
+ * @example
61
+ * 3
62
+ */
63
+ boxCount?: number;
64
+ /**
65
+ * @remarks
66
+ * The list of per-box detection details.
67
+ */
68
+ data?: MerchandisePlacementDetectionProResponseBodyDataData[];
69
+ /**
70
+ * @remarks
71
+ * The usage information.
72
+ *
73
+ * @example
74
+ * {"ProcessingCount":1}
75
+ */
76
+ usageMap?: { [key: string]: number };
77
+ static names(): { [key: string]: string } {
78
+ return {
79
+ boxCount: 'BoxCount',
80
+ data: 'Data',
81
+ usageMap: 'UsageMap',
82
+ };
83
+ }
84
+
85
+ static types(): { [key: string]: any } {
86
+ return {
87
+ boxCount: 'number',
88
+ data: { 'type': 'array', 'itemType': MerchandisePlacementDetectionProResponseBodyDataData },
89
+ usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
90
+ };
91
+ }
92
+
93
+ validate() {
94
+ if(Array.isArray(this.data)) {
95
+ $dara.Model.validateArray(this.data);
96
+ }
97
+ if(this.usageMap) {
98
+ $dara.Model.validateMap(this.usageMap);
99
+ }
100
+ super.validate();
101
+ }
102
+
103
+ constructor(map?: { [key: string]: any }) {
104
+ super(map);
105
+ }
106
+ }
107
+
108
+ export class MerchandisePlacementDetectionProResponseBody extends $dara.Model {
109
+ /**
110
+ * @remarks
111
+ * The error code.
112
+ *
113
+ * @example
114
+ * success
115
+ */
116
+ code?: string;
117
+ /**
118
+ * @remarks
119
+ * The detection result of product display detection Pro.
120
+ */
121
+ data?: MerchandisePlacementDetectionProResponseBodyData;
122
+ /**
123
+ * @remarks
124
+ * The response message or failure description.
125
+ *
126
+ * @example
127
+ * Success
128
+ */
129
+ message?: string;
130
+ /**
131
+ * @remarks
132
+ * The request ID.
133
+ *
134
+ * @example
135
+ * 70CBEFDF-BB17-1EB3-8A21-569F3124738F
136
+ */
137
+ requestId?: string;
138
+ /**
139
+ * @remarks
140
+ * Indicates whether the call is successful.
141
+ *
142
+ * @example
143
+ * True
144
+ */
145
+ success?: boolean;
146
+ static names(): { [key: string]: string } {
147
+ return {
148
+ code: 'Code',
149
+ data: 'Data',
150
+ message: 'Message',
151
+ requestId: 'RequestId',
152
+ success: 'Success',
153
+ };
154
+ }
155
+
156
+ static types(): { [key: string]: any } {
157
+ return {
158
+ code: 'string',
159
+ data: MerchandisePlacementDetectionProResponseBodyData,
160
+ message: 'string',
161
+ requestId: 'string',
162
+ success: 'boolean',
163
+ };
164
+ }
165
+
166
+ validate() {
167
+ if(this.data && typeof (this.data as any).validate === 'function') {
168
+ (this.data as any).validate();
169
+ }
170
+ super.validate();
171
+ }
172
+
173
+ constructor(map?: { [key: string]: any }) {
174
+ super(map);
175
+ }
176
+ }
177
+
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class MerchandisePlacementDetectionRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specify this parameter to use a custom API version. If you created a custom API during the trial phase, you can find the corresponding ApiId in the product console under **Intelligent Inspection > API Management > My APIs**.
8
+ * Specify this parameter to use a custom API version. If you created a custom API during the trial phase, you can find the corresponding ApiId in the product console under Intelligent Inspection > API Management > My API.
9
9
  *
10
10
  * @example
11
11
  * api_xxx
@@ -13,7 +13,7 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
13
13
  apiId?: string;
14
14
  /**
15
15
  * @remarks
16
- * The URL of the shelf or floor-stack photo to be recognized (accessible over the Internet or from OSS).
16
+ * The URL of the original shelf or floor stack image to be recognized (accessible over the Internet or through OSS).
17
17
  *
18
18
  * This parameter is required.
19
19
  *
@@ -23,19 +23,26 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
23
23
  imageUrl?: string;
24
24
  /**
25
25
  * @remarks
26
- * The ID of the customer-specific SKU vector library, which determines which library is used for recall. The library must be created in advance through the library creation process.
26
+ * The ID of the customer-specific SKU vector library, which determines which library is used for retrieval. The library must be created in advance through the library creation process.
27
27
  *
28
28
  * @example
29
29
  * rag_xxx
30
30
  */
31
31
  ragId?: string;
32
+ /**
33
+ * @remarks
34
+ * The custom rule. Enter a detection prompt as the workflow input parameter rule. When this parameter is specified, the type parameter is not required (a dedicated rule branch is used). If Rule is empty, you must specify Type to start detection.
35
+ *
36
+ * @example
37
+ * Please identify all visible beverage products in the image and return only a JSON array. Output format example: [{"bbox_2d":[100,200,250,600],"sku_name":"Coca-Cola"}]
38
+ */
32
39
  rule?: string;
33
40
  /**
34
41
  * @remarks
35
- * The business type (reserved for future routing by business line). The current release supports skincare.
42
+ * The business type (reserved for future routing by business line). The current release supports skincare & lotion.
36
43
  *
37
44
  * @example
38
- * skincare
45
+ * 水乳
39
46
  */
40
47
  type?: string;
41
48
  static names(): { [key: string]: string } {
@@ -55,7 +55,7 @@ export class MerchandisePlacementDetectionResponseBodyDataDataTop1 extends $dara
55
55
  export class MerchandisePlacementDetectionResponseBodyDataDataTopk extends $dara.Model {
56
56
  /**
57
57
  * @remarks
58
- * The recall rank of the product.
58
+ * The recall rank.
59
59
  *
60
60
  * @example
61
61
  * 1
@@ -115,15 +115,15 @@ export class MerchandisePlacementDetectionResponseBodyDataDataTopk extends $dara
115
115
  export class MerchandisePlacementDetectionResponseBodyDataData extends $dara.Model {
116
116
  /**
117
117
  * @remarks
118
- * The position coordinates of the detection box in the format [x1,y1,x2,y2].
118
+ * The detection box position coordinates in the format [x1,y1,x2,y2].
119
119
  */
120
120
  bbox?: number[];
121
121
  /**
122
122
  * @remarks
123
- * The failure reason for the detection box. The value is null if the detection is successful.
123
+ * The failure reason for a single detection box. The value is null if the detection is successful.
124
124
  *
125
125
  * @example
126
- * "Embedding failed"
126
+ * "embedding failed"
127
127
  */
128
128
  error?: string;
129
129
  /**
@@ -193,7 +193,7 @@ export class MerchandisePlacementDetectionResponseBodyData extends $dara.Model {
193
193
  boxCount?: number;
194
194
  /**
195
195
  * @remarks
196
- * The list of recall details for each detection box.
196
+ * The list of retrieval details for each detection box.
197
197
  */
198
198
  data?: MerchandisePlacementDetectionResponseBodyDataData[];
199
199
  /**
@@ -238,7 +238,7 @@ export class MerchandisePlacementDetectionResponseBodyData extends $dara.Model {
238
238
  export class MerchandisePlacementDetectionResponseBody extends $dara.Model {
239
239
  /**
240
240
  * @remarks
241
- * The error code. This parameter is not returned if the call is successful.
241
+ * The error code. This parameter is not returned for successful calls.
242
242
  *
243
243
  * @example
244
244
  * 200
@@ -251,7 +251,7 @@ export class MerchandisePlacementDetectionResponseBody extends $dara.Model {
251
251
  data?: MerchandisePlacementDetectionResponseBodyData;
252
252
  /**
253
253
  * @remarks
254
- * The error message. This parameter is not returned if the call is successful.
254
+ * The error message. This parameter is not returned for successful calls.
255
255
  *
256
256
  * @example
257
257
  * OK
@@ -0,0 +1,56 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class PetHealthAnalysisRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The list of HTTPS URLs of images to analyze. At least one accessible image must be provided.
9
+ *
10
+ * This parameter is required.
11
+ */
12
+ imageUrl?: string[];
13
+ /**
14
+ * @remarks
15
+ * The system prompt used to specify the response role or requirements. The value must comply with JSON string escaping rules.
16
+ *
17
+ * @example
18
+ * You are a professional veterinarian
19
+ */
20
+ systemPrompt?: string;
21
+ /**
22
+ * @remarks
23
+ * The custom analysis requirement. If not specified or set to an empty string, excrement analysis is performed by default. The value must comply with JSON string escaping rules.
24
+ *
25
+ * @example
26
+ * Please analyze the health condition of this pet
27
+ */
28
+ userPrompt?: string;
29
+ static names(): { [key: string]: string } {
30
+ return {
31
+ imageUrl: 'ImageUrl',
32
+ systemPrompt: 'SystemPrompt',
33
+ userPrompt: 'UserPrompt',
34
+ };
35
+ }
36
+
37
+ static types(): { [key: string]: any } {
38
+ return {
39
+ imageUrl: { 'type': 'array', 'itemType': 'string' },
40
+ systemPrompt: 'string',
41
+ userPrompt: 'string',
42
+ };
43
+ }
44
+
45
+ validate() {
46
+ if(Array.isArray(this.imageUrl)) {
47
+ $dara.Model.validateArray(this.imageUrl);
48
+ }
49
+ super.validate();
50
+ }
51
+
52
+ constructor(map?: { [key: string]: any }) {
53
+ super(map);
54
+ }
55
+ }
56
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { PetHealthAnalysisResponseBody } from "./PetHealthAnalysisResponseBody";
4
+
5
+
6
+ export class PetHealthAnalysisResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: PetHealthAnalysisResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: PetHealthAnalysisResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,104 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class PetHealthAnalysisResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The asynchronous task ID used for QueryAsyncTaskResult queries.
9
+ *
10
+ * @example
11
+ * task_778fa8bd21804828a5d147050e30edac
12
+ */
13
+ taskId?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ taskId: 'TaskId',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ taskId: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
35
+ export class PetHealthAnalysisResponseBody extends $dara.Model {
36
+ /**
37
+ * @remarks
38
+ * The error code.
39
+ *
40
+ * @example
41
+ * success
42
+ */
43
+ code?: string;
44
+ /**
45
+ * @remarks
46
+ * The asynchronous task submit status.
47
+ */
48
+ data?: PetHealthAnalysisResponseBodyData;
49
+ /**
50
+ * @remarks
51
+ * The response message or failure description.
52
+ *
53
+ * @example
54
+ * Task submitted
55
+ */
56
+ message?: string;
57
+ /**
58
+ * @remarks
59
+ * The request ID.
60
+ *
61
+ * @example
62
+ * 70CBEFDF-BB17-1EB3-8A21-569F3124738F
63
+ */
64
+ requestId?: string;
65
+ /**
66
+ * @remarks
67
+ * Indicates whether the call is successful.
68
+ *
69
+ * @example
70
+ * True
71
+ */
72
+ success?: boolean;
73
+ static names(): { [key: string]: string } {
74
+ return {
75
+ code: 'Code',
76
+ data: 'Data',
77
+ message: 'Message',
78
+ requestId: 'RequestId',
79
+ success: 'Success',
80
+ };
81
+ }
82
+
83
+ static types(): { [key: string]: any } {
84
+ return {
85
+ code: 'string',
86
+ data: PetHealthAnalysisResponseBodyData,
87
+ message: 'string',
88
+ requestId: 'string',
89
+ success: 'boolean',
90
+ };
91
+ }
92
+
93
+ validate() {
94
+ if(this.data && typeof (this.data as any).validate === 'function') {
95
+ (this.data as any).validate();
96
+ }
97
+ super.validate();
98
+ }
99
+
100
+ constructor(map?: { [key: string]: any }) {
101
+ super(map);
102
+ }
103
+ }
104
+
@@ -0,0 +1,53 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class PetHealthAnalysisShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The list of HTTPS URLs of images to analyze. At least one accessible image must be provided.
9
+ *
10
+ * This parameter is required.
11
+ */
12
+ imageUrlShrink?: string;
13
+ /**
14
+ * @remarks
15
+ * The system prompt used to specify the response role or requirements. The value must comply with JSON string escaping rules.
16
+ *
17
+ * @example
18
+ * You are a professional veterinarian
19
+ */
20
+ systemPrompt?: string;
21
+ /**
22
+ * @remarks
23
+ * The custom analysis requirement. If not specified or set to an empty string, excrement analysis is performed by default. The value must comply with JSON string escaping rules.
24
+ *
25
+ * @example
26
+ * Please analyze the health condition of this pet
27
+ */
28
+ userPrompt?: string;
29
+ static names(): { [key: string]: string } {
30
+ return {
31
+ imageUrlShrink: 'ImageUrl',
32
+ systemPrompt: 'SystemPrompt',
33
+ userPrompt: 'UserPrompt',
34
+ };
35
+ }
36
+
37
+ static types(): { [key: string]: any } {
38
+ return {
39
+ imageUrlShrink: 'string',
40
+ systemPrompt: 'string',
41
+ userPrompt: 'string',
42
+ };
43
+ }
44
+
45
+ validate() {
46
+ super.validate();
47
+ }
48
+
49
+ constructor(map?: { [key: string]: any }) {
50
+ super(map);
51
+ }
52
+ }
53
+
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class TextTranslateRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * This field represents your identity and facilitates communication for various issues. If you are an Alibaba internal organization, specify a value based on your actual scenario, such as BU name-product or BU name-chat. If you are an external Alibaba partner, specify the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
8
+ * This field represents your identity and facilitates subsequent communication on various issues. If you are an Alibaba internal organization, specify a value based on your actual scenario, such as BU name-product or BU name-chat. If you are an external Alibaba partner, specify the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
9
9
  *
10
10
  * @example
11
11
  * MyCompany-Chat
@@ -13,7 +13,7 @@ export class TextTranslateRequest extends $dara.Model {
13
13
  bizName?: string;
14
14
  /**
15
15
  * @remarks
16
- * The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format that preserves HTML tags).
16
+ * The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format, which preserves HTML tags).
17
17
  *
18
18
  * @example
19
19
  * text
@@ -21,7 +21,7 @@ export class TextTranslateRequest extends $dara.Model {
21
21
  formatType?: string;
22
22
  /**
23
23
  * @remarks
24
- * 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.
24
+ * The intervention glossary ID. This parameter is optional. You must create the glossary separately in the console and provide its ID. If the provided glossary ID is empty, the translation results are not modified.
25
25
  *
26
26
  * @example
27
27
  * glossary_1
@@ -29,7 +29,7 @@ export class TextTranslateRequest extends $dara.Model {
29
29
  glossary?: string;
30
30
  /**
31
31
  * @remarks
32
- * The source language code. If not specified, the language is automatically detected. This parameter is optional. You can set it to auto for language detection. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
32
+ * The source language code. This parameter is optional. If you do not specify this parameter, the source language is automatically detected. You can set this parameter to auto for language detection. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
33
33
  *
34
34
  * @example
35
35
  * auto
@@ -37,7 +37,7 @@ export class TextTranslateRequest extends $dara.Model {
37
37
  sourceLanguage?: string;
38
38
  /**
39
39
  * @remarks
40
- * The list of texts to be translated. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
40
+ * The list of texts to translate. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
41
41
  *
42
42
  * This parameter is required.
43
43
  *
@@ -57,7 +57,7 @@ export class TextTranslateRequest extends $dara.Model {
57
57
  targetLanguage?: string;
58
58
  /**
59
59
  * @remarks
60
- * The business scenario identifier. You can pass in only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used. Valid values:
60
+ * The business scenario identifier. You can pass in only one of the following values. After you specify this parameter, the translation engine invokes the terminology library and style strategy for the corresponding industry to produce translations that better fit the industry. If this field is not specified or is specified incorrectly, the general translation strategy is used. Valid values:
61
61
  * - e-commerce-title: cross-border e-commerce product title translation.
62
62
  * - e-commerce-description: cross-border e-commerce product description translation.
63
63
  * - e-commerce-chat: cross-border e-commerce conversation translation.
@@ -119,7 +119,7 @@ export class TextTranslateResponseBody extends $dara.Model {
119
119
  message?: string;
120
120
  /**
121
121
  * @remarks
122
- * The request ID, used to uniquely identify a request.
122
+ * The request ID, which uniquely identifies a single request.
123
123
  *
124
124
  * @example
125
125
  * 922E43BB-EE0E-1A29-B143-BB91BB3EA6AB