@alicloud/aidge20260428 5.7.0 → 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 (87) hide show
  1. package/dist/client.d.ts +286 -78
  2. package/dist/client.js +405 -78
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AiTryOnRequest.d.ts +11 -2
  5. package/dist/models/AiTryOnRequest.js.map +1 -1
  6. package/dist/models/AiTryOnResponseBody.d.ts +35 -1
  7. package/dist/models/AiTryOnResponseBody.js.map +1 -1
  8. package/dist/models/DiduiAreaDeductionProRequest.d.ts +33 -0
  9. package/dist/models/DiduiAreaDeductionProRequest.js +60 -0
  10. package/dist/models/DiduiAreaDeductionProRequest.js.map +1 -0
  11. package/dist/models/DiduiAreaDeductionProResponse.d.ts +19 -0
  12. package/dist/models/DiduiAreaDeductionProResponse.js +69 -0
  13. package/dist/models/DiduiAreaDeductionProResponse.js.map +1 -0
  14. package/dist/models/DiduiAreaDeductionProResponseBody.d.ts +70 -0
  15. package/dist/models/DiduiAreaDeductionProResponseBody.js +88 -0
  16. package/dist/models/DiduiAreaDeductionProResponseBody.js.map +1 -0
  17. package/dist/models/GeneralRephotographyDetectionRequest.d.ts +23 -0
  18. package/dist/models/GeneralRephotographyDetectionRequest.js +58 -0
  19. package/dist/models/GeneralRephotographyDetectionRequest.js.map +1 -0
  20. package/dist/models/GeneralRephotographyDetectionResponse.d.ts +19 -0
  21. package/dist/models/GeneralRephotographyDetectionResponse.js +69 -0
  22. package/dist/models/GeneralRephotographyDetectionResponse.js.map +1 -0
  23. package/dist/models/GeneralRephotographyDetectionResponseBody.d.ts +170 -0
  24. package/dist/models/GeneralRephotographyDetectionResponseBody.js +172 -0
  25. package/dist/models/GeneralRephotographyDetectionResponseBody.js.map +1 -0
  26. package/dist/models/ImageTranslationPlusResponseBody.d.ts +1 -1
  27. package/dist/models/ImageTranslationProRequest.d.ts +3 -3
  28. package/dist/models/ImageTranslationStandardRequest.d.ts +10 -10
  29. package/dist/models/ImageTranslationStandardResponseBody.d.ts +8 -8
  30. package/dist/models/MerchandisePlacementDetectionProRequest.d.ts +39 -0
  31. package/dist/models/MerchandisePlacementDetectionProRequest.js +62 -0
  32. package/dist/models/MerchandisePlacementDetectionProRequest.js.map +1 -0
  33. package/dist/models/MerchandisePlacementDetectionProResponse.d.ts +19 -0
  34. package/dist/models/MerchandisePlacementDetectionProResponse.js +69 -0
  35. package/dist/models/MerchandisePlacementDetectionProResponse.js.map +1 -0
  36. package/dist/models/MerchandisePlacementDetectionProResponseBody.d.ts +118 -0
  37. package/dist/models/MerchandisePlacementDetectionProResponseBody.js +124 -0
  38. package/dist/models/MerchandisePlacementDetectionProResponseBody.js.map +1 -0
  39. package/dist/models/MerchandisePlacementDetectionRequest.d.ts +13 -5
  40. package/dist/models/MerchandisePlacementDetectionRequest.js +2 -0
  41. package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -1
  42. package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +7 -7
  43. package/dist/models/PetHealthAnalysisRequest.d.ts +36 -0
  44. package/dist/models/PetHealthAnalysisRequest.js +65 -0
  45. package/dist/models/PetHealthAnalysisRequest.js.map +1 -0
  46. package/dist/models/PetHealthAnalysisResponse.d.ts +19 -0
  47. package/dist/models/PetHealthAnalysisResponse.js +69 -0
  48. package/dist/models/PetHealthAnalysisResponse.js.map +1 -0
  49. package/dist/models/PetHealthAnalysisResponseBody.d.ts +70 -0
  50. package/dist/models/PetHealthAnalysisResponseBody.js +88 -0
  51. package/dist/models/PetHealthAnalysisResponseBody.js.map +1 -0
  52. package/dist/models/PetHealthAnalysisShrinkRequest.d.ts +36 -0
  53. package/dist/models/PetHealthAnalysisShrinkRequest.js +62 -0
  54. package/dist/models/PetHealthAnalysisShrinkRequest.js.map +1 -0
  55. package/dist/models/TextTranslateRequest.d.ts +6 -6
  56. package/dist/models/TextTranslateResponseBody.d.ts +1 -1
  57. package/dist/models/TextTranslateShrinkRequest.d.ts +6 -6
  58. package/dist/models/model.d.ts +21 -0
  59. package/dist/models/model.js +46 -4
  60. package/dist/models/model.js.map +1 -1
  61. package/package.json +1 -1
  62. package/src/client.ts +424 -78
  63. package/src/models/AiTryOnRequest.ts +11 -2
  64. package/src/models/AiTryOnResponseBody.ts +35 -1
  65. package/src/models/DiduiAreaDeductionProRequest.ts +48 -0
  66. package/src/models/DiduiAreaDeductionProResponse.ts +40 -0
  67. package/src/models/DiduiAreaDeductionProResponseBody.ts +104 -0
  68. package/src/models/GeneralRephotographyDetectionRequest.ts +36 -0
  69. package/src/models/GeneralRephotographyDetectionResponse.ts +40 -0
  70. package/src/models/GeneralRephotographyDetectionResponseBody.ts +259 -0
  71. package/src/models/ImageTranslationPlusResponseBody.ts +1 -1
  72. package/src/models/ImageTranslationProRequest.ts +3 -3
  73. package/src/models/ImageTranslationStandardRequest.ts +10 -10
  74. package/src/models/ImageTranslationStandardResponseBody.ts +8 -8
  75. package/src/models/MerchandisePlacementDetectionProRequest.ts +56 -0
  76. package/src/models/MerchandisePlacementDetectionProResponse.ts +40 -0
  77. package/src/models/MerchandisePlacementDetectionProResponseBody.ts +177 -0
  78. package/src/models/MerchandisePlacementDetectionRequest.ts +15 -5
  79. package/src/models/MerchandisePlacementDetectionResponseBody.ts +7 -7
  80. package/src/models/PetHealthAnalysisRequest.ts +56 -0
  81. package/src/models/PetHealthAnalysisResponse.ts +40 -0
  82. package/src/models/PetHealthAnalysisResponseBody.ts +104 -0
  83. package/src/models/PetHealthAnalysisShrinkRequest.ts +53 -0
  84. package/src/models/TextTranslateRequest.ts +6 -6
  85. package/src/models/TextTranslateResponseBody.ts +1 -1
  86. package/src/models/TextTranslateShrinkRequest.ts +6 -6
  87. package/src/models/model.ts +21 -0
@@ -42,6 +42,7 @@ class MerchandisePlacementDetectionRequest extends $dara.Model {
42
42
  apiId: 'ApiId',
43
43
  imageUrl: 'ImageUrl',
44
44
  ragId: 'RagId',
45
+ rule: 'Rule',
45
46
  type: 'Type',
46
47
  };
47
48
  }
@@ -50,6 +51,7 @@ class MerchandisePlacementDetectionRequest extends $dara.Model {
50
51
  apiId: 'string',
51
52
  imageUrl: 'string',
52
53
  ragId: 'string',
54
+ rule: 'string',
53
55
  type: 'string',
54
56
  };
55
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MerchandisePlacementDetectionRequest.js","sourceRoot":"","sources":["../../src/models/MerchandisePlacementDetectionRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAmCnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;SACf,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;AA5DD,oFA4DC"}
1
+ {"version":3,"file":"MerchandisePlacementDetectionRequest.js","sourceRoot":"","sources":["../../src/models/MerchandisePlacementDetectionRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IA2CnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;SACf,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,oFAsEC"}
@@ -38,7 +38,7 @@ export declare class MerchandisePlacementDetectionResponseBodyDataDataTop1 exten
38
38
  export declare class MerchandisePlacementDetectionResponseBodyDataDataTopk extends $dara.Model {
39
39
  /**
40
40
  * @remarks
41
- * The recall rank of the product.
41
+ * The recall rank.
42
42
  *
43
43
  * @example
44
44
  * 1
@@ -82,15 +82,15 @@ export declare class MerchandisePlacementDetectionResponseBodyDataDataTopk exten
82
82
  export declare class MerchandisePlacementDetectionResponseBodyDataData extends $dara.Model {
83
83
  /**
84
84
  * @remarks
85
- * The position coordinates of the detection box in the format [x1,y1,x2,y2].
85
+ * The detection box position coordinates in the format [x1,y1,x2,y2].
86
86
  */
87
87
  bbox?: number[];
88
88
  /**
89
89
  * @remarks
90
- * The failure reason for the detection box. The value is null if the detection is successful.
90
+ * The failure reason for a single detection box. The value is null if the detection is successful.
91
91
  *
92
92
  * @example
93
- * "Embedding failed"
93
+ * "embedding failed"
94
94
  */
95
95
  error?: string;
96
96
  /**
@@ -133,7 +133,7 @@ export declare class MerchandisePlacementDetectionResponseBodyData extends $dara
133
133
  boxCount?: number;
134
134
  /**
135
135
  * @remarks
136
- * The list of recall details for each detection box.
136
+ * The list of retrieval details for each detection box.
137
137
  */
138
138
  data?: MerchandisePlacementDetectionResponseBodyDataData[];
139
139
  /**
@@ -160,7 +160,7 @@ export declare class MerchandisePlacementDetectionResponseBodyData extends $dara
160
160
  export declare class MerchandisePlacementDetectionResponseBody extends $dara.Model {
161
161
  /**
162
162
  * @remarks
163
- * The error code. This parameter is not returned if the call is successful.
163
+ * The error code. This parameter is not returned for successful calls.
164
164
  *
165
165
  * @example
166
166
  * 200
@@ -173,7 +173,7 @@ export declare class MerchandisePlacementDetectionResponseBody extends $dara.Mod
173
173
  data?: MerchandisePlacementDetectionResponseBodyData;
174
174
  /**
175
175
  * @remarks
176
- * The error message. This parameter is not returned if the call is successful.
176
+ * The error message. This parameter is not returned for successful calls.
177
177
  *
178
178
  * @example
179
179
  * OK
@@ -0,0 +1,36 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class PetHealthAnalysisRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The list of HTTPS URLs of images to analyze. At least one accessible image must be provided.
6
+ *
7
+ * This parameter is required.
8
+ */
9
+ imageUrl?: string[];
10
+ /**
11
+ * @remarks
12
+ * The system prompt used to specify the response role or requirements. The value must comply with JSON string escaping rules.
13
+ *
14
+ * @example
15
+ * You are a professional veterinarian
16
+ */
17
+ systemPrompt?: string;
18
+ /**
19
+ * @remarks
20
+ * 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.
21
+ *
22
+ * @example
23
+ * Please analyze the health condition of this pet
24
+ */
25
+ userPrompt?: string;
26
+ static names(): {
27
+ [key: string]: string;
28
+ };
29
+ static types(): {
30
+ [key: string]: any;
31
+ };
32
+ validate(): void;
33
+ constructor(map?: {
34
+ [key: string]: any;
35
+ });
36
+ }
@@ -0,0 +1,65 @@
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.PetHealthAnalysisRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class PetHealthAnalysisRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ imageUrl: 'ImageUrl',
43
+ systemPrompt: 'SystemPrompt',
44
+ userPrompt: 'UserPrompt',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ imageUrl: { 'type': 'array', 'itemType': 'string' },
50
+ systemPrompt: 'string',
51
+ userPrompt: 'string',
52
+ };
53
+ }
54
+ validate() {
55
+ if (Array.isArray(this.imageUrl)) {
56
+ $dara.Model.validateArray(this.imageUrl);
57
+ }
58
+ super.validate();
59
+ }
60
+ constructor(map) {
61
+ super(map);
62
+ }
63
+ }
64
+ exports.PetHealthAnalysisRequest = PetHealthAnalysisRequest;
65
+ //# sourceMappingURL=PetHealthAnalysisRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PetHealthAnalysisRequest.js","sourceRoot":"","sources":["../../src/models/PetHealthAnalysisRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAwBvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,YAAY,EAAE,cAAc;YAC5B,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACnD,YAAY,EAAE,QAAQ;YACtB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlDD,4DAkDC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { PetHealthAnalysisResponseBody } from "./PetHealthAnalysisResponseBody";
3
+ export declare class PetHealthAnalysisResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: PetHealthAnalysisResponseBody;
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.PetHealthAnalysisResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const PetHealthAnalysisResponseBody_1 = require("./PetHealthAnalysisResponseBody");
40
+ class PetHealthAnalysisResponse 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: PetHealthAnalysisResponseBody_1.PetHealthAnalysisResponseBody,
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.PetHealthAnalysisResponse = PetHealthAnalysisResponse;
69
+ //# sourceMappingURL=PetHealthAnalysisResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PetHealthAnalysisResponse.js","sourceRoot":"","sources":["../../src/models/PetHealthAnalysisResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mFAAgF;AAGhF,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAIxD,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,6DAA6B;SACpC,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,8DAiCC"}
@@ -0,0 +1,70 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class PetHealthAnalysisResponseBodyData extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The asynchronous task ID used for QueryAsyncTaskResult queries.
6
+ *
7
+ * @example
8
+ * task_778fa8bd21804828a5d147050e30edac
9
+ */
10
+ taskId?: string;
11
+ static names(): {
12
+ [key: string]: string;
13
+ };
14
+ static types(): {
15
+ [key: string]: any;
16
+ };
17
+ validate(): void;
18
+ constructor(map?: {
19
+ [key: string]: any;
20
+ });
21
+ }
22
+ export declare class PetHealthAnalysisResponseBody extends $dara.Model {
23
+ /**
24
+ * @remarks
25
+ * The error code.
26
+ *
27
+ * @example
28
+ * success
29
+ */
30
+ code?: string;
31
+ /**
32
+ * @remarks
33
+ * The asynchronous task submit status.
34
+ */
35
+ data?: PetHealthAnalysisResponseBodyData;
36
+ /**
37
+ * @remarks
38
+ * The response message or failure description.
39
+ *
40
+ * @example
41
+ * Task submitted
42
+ */
43
+ message?: string;
44
+ /**
45
+ * @remarks
46
+ * The request ID.
47
+ *
48
+ * @example
49
+ * 70CBEFDF-BB17-1EB3-8A21-569F3124738F
50
+ */
51
+ requestId?: string;
52
+ /**
53
+ * @remarks
54
+ * Indicates whether the call is successful.
55
+ *
56
+ * @example
57
+ * True
58
+ */
59
+ success?: boolean;
60
+ static names(): {
61
+ [key: string]: string;
62
+ };
63
+ static types(): {
64
+ [key: string]: any;
65
+ };
66
+ validate(): void;
67
+ constructor(map?: {
68
+ [key: string]: any;
69
+ });
70
+ }
@@ -0,0 +1,88 @@
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.PetHealthAnalysisResponseBody = exports.PetHealthAnalysisResponseBodyData = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class PetHealthAnalysisResponseBodyData extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ taskId: 'TaskId',
43
+ };
44
+ }
45
+ static types() {
46
+ return {
47
+ taskId: 'string',
48
+ };
49
+ }
50
+ validate() {
51
+ super.validate();
52
+ }
53
+ constructor(map) {
54
+ super(map);
55
+ }
56
+ }
57
+ exports.PetHealthAnalysisResponseBodyData = PetHealthAnalysisResponseBodyData;
58
+ class PetHealthAnalysisResponseBody extends $dara.Model {
59
+ static names() {
60
+ return {
61
+ code: 'Code',
62
+ data: 'Data',
63
+ message: 'Message',
64
+ requestId: 'RequestId',
65
+ success: 'Success',
66
+ };
67
+ }
68
+ static types() {
69
+ return {
70
+ code: 'string',
71
+ data: PetHealthAnalysisResponseBodyData,
72
+ message: 'string',
73
+ requestId: 'string',
74
+ success: 'boolean',
75
+ };
76
+ }
77
+ validate() {
78
+ if (this.data && typeof this.data.validate === 'function') {
79
+ this.data.validate();
80
+ }
81
+ super.validate();
82
+ }
83
+ constructor(map) {
84
+ super(map);
85
+ }
86
+ }
87
+ exports.PetHealthAnalysisResponseBody = PetHealthAnalysisResponseBody;
88
+ //# sourceMappingURL=PetHealthAnalysisResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PetHealthAnalysisResponseBody.js","sourceRoot":"","sources":["../../src/models/PetHealthAnalysisResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAShE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,8EA4BC;AAED,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAsC5D,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,iCAAiC;YACvC,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,sEAoEC"}
@@ -0,0 +1,36 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class PetHealthAnalysisShrinkRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The list of HTTPS URLs of images to analyze. At least one accessible image must be provided.
6
+ *
7
+ * This parameter is required.
8
+ */
9
+ imageUrlShrink?: string;
10
+ /**
11
+ * @remarks
12
+ * The system prompt used to specify the response role or requirements. The value must comply with JSON string escaping rules.
13
+ *
14
+ * @example
15
+ * You are a professional veterinarian
16
+ */
17
+ systemPrompt?: string;
18
+ /**
19
+ * @remarks
20
+ * 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.
21
+ *
22
+ * @example
23
+ * Please analyze the health condition of this pet
24
+ */
25
+ userPrompt?: string;
26
+ static names(): {
27
+ [key: string]: string;
28
+ };
29
+ static types(): {
30
+ [key: string]: any;
31
+ };
32
+ validate(): void;
33
+ constructor(map?: {
34
+ [key: string]: any;
35
+ });
36
+ }
@@ -0,0 +1,62 @@
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.PetHealthAnalysisShrinkRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class PetHealthAnalysisShrinkRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ imageUrlShrink: 'ImageUrl',
43
+ systemPrompt: 'SystemPrompt',
44
+ userPrompt: 'UserPrompt',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ imageUrlShrink: 'string',
50
+ systemPrompt: 'string',
51
+ userPrompt: 'string',
52
+ };
53
+ }
54
+ validate() {
55
+ super.validate();
56
+ }
57
+ constructor(map) {
58
+ super(map);
59
+ }
60
+ }
61
+ exports.PetHealthAnalysisShrinkRequest = PetHealthAnalysisShrinkRequest;
62
+ //# sourceMappingURL=PetHealthAnalysisShrinkRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PetHealthAnalysisShrinkRequest.js","sourceRoot":"","sources":["../../src/models/PetHealthAnalysisShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAwB7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,UAAU;YAC1B,YAAY,EAAE,cAAc;YAC5B,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,QAAQ;YACxB,YAAY,EAAE,QAAQ;YACtB,UAAU,EAAE,QAAQ;SACrB,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;AA/CD,wEA+CC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class TextTranslateRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * 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.
5
+ * 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.
6
6
  *
7
7
  * @example
8
8
  * MyCompany-Chat
@@ -10,7 +10,7 @@ export declare class TextTranslateRequest extends $dara.Model {
10
10
  bizName?: string;
11
11
  /**
12
12
  * @remarks
13
- * 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).
13
+ * 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).
14
14
  *
15
15
  * @example
16
16
  * text
@@ -18,7 +18,7 @@ export declare class TextTranslateRequest extends $dara.Model {
18
18
  formatType?: string;
19
19
  /**
20
20
  * @remarks
21
- * 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.
21
+ * 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.
22
22
  *
23
23
  * @example
24
24
  * glossary_1
@@ -26,7 +26,7 @@ export declare class TextTranslateRequest extends $dara.Model {
26
26
  glossary?: string;
27
27
  /**
28
28
  * @remarks
29
- * 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).
29
+ * 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).
30
30
  *
31
31
  * @example
32
32
  * auto
@@ -34,7 +34,7 @@ export declare class TextTranslateRequest extends $dara.Model {
34
34
  sourceLanguage?: string;
35
35
  /**
36
36
  * @remarks
37
- * 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.
37
+ * 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.
38
38
  *
39
39
  * This parameter is required.
40
40
  *
@@ -54,7 +54,7 @@ export declare class TextTranslateRequest extends $dara.Model {
54
54
  targetLanguage?: string;
55
55
  /**
56
56
  * @remarks
57
- * 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:
57
+ * 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:
58
58
  * - e-commerce-title: cross-border e-commerce product title translation.
59
59
  * - e-commerce-description: cross-border e-commerce product description translation.
60
60
  * - e-commerce-chat: cross-border e-commerce conversation translation.
@@ -86,7 +86,7 @@ export declare class TextTranslateResponseBody extends $dara.Model {
86
86
  message?: string;
87
87
  /**
88
88
  * @remarks
89
- * The request ID, used to uniquely identify a request.
89
+ * The request ID, which uniquely identifies a single request.
90
90
  *
91
91
  * @example
92
92
  * 922E43BB-EE0E-1A29-B143-BB91BB3EA6AB
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class TextTranslateShrinkRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * 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.
5
+ * 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.
6
6
  *
7
7
  * @example
8
8
  * MyCompany-Chat
@@ -10,7 +10,7 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
10
10
  bizName?: string;
11
11
  /**
12
12
  * @remarks
13
- * 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).
13
+ * 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).
14
14
  *
15
15
  * @example
16
16
  * text
@@ -18,7 +18,7 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
18
18
  formatType?: string;
19
19
  /**
20
20
  * @remarks
21
- * 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.
21
+ * 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.
22
22
  *
23
23
  * @example
24
24
  * glossary_1
@@ -26,7 +26,7 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
26
26
  glossary?: string;
27
27
  /**
28
28
  * @remarks
29
- * 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).
29
+ * 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).
30
30
  *
31
31
  * @example
32
32
  * auto
@@ -34,7 +34,7 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
34
34
  sourceLanguage?: string;
35
35
  /**
36
36
  * @remarks
37
- * 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.
37
+ * 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.
38
38
  *
39
39
  * This parameter is required.
40
40
  *
@@ -54,7 +54,7 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
54
54
  targetLanguage?: string;
55
55
  /**
56
56
  * @remarks
57
- * 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:
57
+ * 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:
58
58
  * - e-commerce-title: cross-border e-commerce product title translation.
59
59
  * - e-commerce-description: cross-border e-commerce product description translation.
60
60
  * - e-commerce-chat: cross-border e-commerce conversation translation.