@alicloud/aidge20260428 5.4.0 → 5.6.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 (146) hide show
  1. package/dist/client.d.ts +548 -456
  2. package/dist/client.js +623 -456
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AssetOptimizeLiteRequest.d.ts +2 -2
  5. package/dist/models/AssetOptimizeLiteResponseBody.d.ts +1 -1
  6. package/dist/models/AssetOptimizeProRequest.d.ts +5 -5
  7. package/dist/models/AssetOptimizeProResponseBody.d.ts +4 -4
  8. package/dist/models/AssetOptimizeProShrinkRequest.d.ts +5 -5
  9. package/dist/models/CategoryAttributeMatchRequest.d.ts +5 -5
  10. package/dist/models/CategoryAttributeMatchResponseBody.d.ts +5 -5
  11. package/dist/models/CategoryAttributeMatchShrinkRequest.d.ts +5 -5
  12. package/dist/models/CategoryMatchRequest.d.ts +7 -7
  13. package/dist/models/CategoryMatchResponseBody.d.ts +8 -8
  14. package/dist/models/DiduiAreaDeductionRequest.d.ts +2 -2
  15. package/dist/models/DiduiAreaDeductionResponseBody.d.ts +4 -4
  16. package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +1 -1
  17. package/dist/models/DocumentTranslateRequest.d.ts +2 -2
  18. package/dist/models/DocumentTranslateResponseBody.d.ts +3 -3
  19. package/dist/models/EcomVideoRecreationRequest.d.ts +12 -12
  20. package/dist/models/EcomVideoRecreationResponseBody.d.ts +2 -2
  21. package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +1 -1
  22. package/dist/models/ImageMattingRequest.d.ts +1 -1
  23. package/dist/models/ImageMattingResponseBody.d.ts +2 -3
  24. package/dist/models/ImageMattingResponseBody.js.map +1 -1
  25. package/dist/models/ImageRecognitionRequest.d.ts +4 -4
  26. package/dist/models/ImageRecognitionResponseBody.d.ts +5 -5
  27. package/dist/models/ImageRecognitionShrinkRequest.d.ts +4 -4
  28. package/dist/models/ImageRemovalProRequest.d.ts +2 -2
  29. package/dist/models/ImageRemovalProResponseBody.d.ts +3 -3
  30. package/dist/models/ImageRemoveRequest.d.ts +9 -9
  31. package/dist/models/ImageRemoveResponseBody.d.ts +2 -2
  32. package/dist/models/ImageRemoveShrinkRequest.d.ts +9 -9
  33. package/dist/models/ImageTranslationPlusResponseBody.d.ts +3 -3
  34. package/dist/models/ImageTranslationProRequest.d.ts +10 -10
  35. package/dist/models/ImageTranslationProResponseBody.d.ts +11 -11
  36. package/dist/models/ImageTranslationStandardRequest.d.ts +4 -4
  37. package/dist/models/ImageTranslationStandardResponseBody.d.ts +7 -7
  38. package/dist/models/LanguageDetectRequest.d.ts +2 -2
  39. package/dist/models/LanguageDetectResponseBody.d.ts +3 -3
  40. package/dist/models/MaterialInspectionRequest.d.ts +5 -5
  41. package/dist/models/MaterialInspectionResponseBody.d.ts +6 -11
  42. package/dist/models/MaterialInspectionResponseBody.js.map +1 -1
  43. package/dist/models/MerchandisePlacementDetectionRequest.d.ts +5 -5
  44. package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +9 -9
  45. package/dist/models/PackageWeightSizeCheckRequest.d.ts +1 -1
  46. package/dist/models/PackageWeightSizeCheckResponseBody.d.ts +4 -4
  47. package/dist/models/PrepaidTextTranslateRequest.d.ts +3 -3
  48. package/dist/models/PrepaidTextTranslateResponseBody.d.ts +6 -6
  49. package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +3 -3
  50. package/dist/models/ProductHotspotDetectionResponseBody.d.ts +2 -2
  51. package/dist/models/SizeChartDetectResponseBody.d.ts +3 -4
  52. package/dist/models/SizeChartDetectResponseBody.js.map +1 -1
  53. package/dist/models/SubmitProductMatchRequest.d.ts +77 -0
  54. package/dist/models/SubmitProductMatchRequest.js +70 -0
  55. package/dist/models/SubmitProductMatchRequest.js.map +1 -0
  56. package/dist/models/SubmitProductMatchResponse.d.ts +19 -0
  57. package/dist/models/SubmitProductMatchResponse.js +69 -0
  58. package/dist/models/SubmitProductMatchResponse.js.map +1 -0
  59. package/dist/models/SubmitProductMatchResponseBody.d.ts +80 -0
  60. package/dist/models/SubmitProductMatchResponseBody.js +90 -0
  61. package/dist/models/SubmitProductMatchResponseBody.js.map +1 -0
  62. package/dist/models/TextTranslateRequest.d.ts +6 -15
  63. package/dist/models/TextTranslateRequest.js.map +1 -1
  64. package/dist/models/TextTranslateResponseBody.d.ts +5 -5
  65. package/dist/models/TextTranslateShrinkRequest.d.ts +6 -15
  66. package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
  67. package/dist/models/VideoTranslationRequest.d.ts +1 -1
  68. package/dist/models/VideoTranslationShrinkRequest.d.ts +1 -1
  69. package/dist/models/VirtualTryOnRequest.d.ts +51 -0
  70. package/dist/models/VirtualTryOnRequest.js +64 -0
  71. package/dist/models/VirtualTryOnRequest.js.map +1 -0
  72. package/dist/models/VirtualTryOnResponse.d.ts +19 -0
  73. package/dist/models/VirtualTryOnResponse.js +69 -0
  74. package/dist/models/VirtualTryOnResponse.js.map +1 -0
  75. package/dist/models/VirtualTryOnResponseBody.d.ts +77 -0
  76. package/dist/models/VirtualTryOnResponseBody.js +93 -0
  77. package/dist/models/VirtualTryOnResponseBody.js.map +1 -0
  78. package/dist/models/VisionFlowRequest.d.ts +15 -15
  79. package/dist/models/VisionFlowResponseBody.d.ts +1 -1
  80. package/dist/models/VisionFlowShrinkRequest.d.ts +15 -15
  81. package/dist/models/model.d.ts +8 -0
  82. package/dist/models/model.js +19 -3
  83. package/dist/models/model.js.map +1 -1
  84. package/package.json +1 -1
  85. package/src/client.ts +638 -456
  86. package/src/models/AssetOptimizeLiteRequest.ts +2 -2
  87. package/src/models/AssetOptimizeLiteResponseBody.ts +1 -1
  88. package/src/models/AssetOptimizeProRequest.ts +5 -5
  89. package/src/models/AssetOptimizeProResponseBody.ts +4 -4
  90. package/src/models/AssetOptimizeProShrinkRequest.ts +5 -5
  91. package/src/models/CategoryAttributeMatchRequest.ts +5 -5
  92. package/src/models/CategoryAttributeMatchResponseBody.ts +5 -5
  93. package/src/models/CategoryAttributeMatchShrinkRequest.ts +5 -5
  94. package/src/models/CategoryMatchRequest.ts +7 -7
  95. package/src/models/CategoryMatchResponseBody.ts +8 -8
  96. package/src/models/DiduiAreaDeductionRequest.ts +2 -2
  97. package/src/models/DiduiAreaDeductionResponseBody.ts +4 -4
  98. package/src/models/DiduiAreaDeductionShrinkRequest.ts +1 -1
  99. package/src/models/DocumentTranslateRequest.ts +2 -2
  100. package/src/models/DocumentTranslateResponseBody.ts +3 -3
  101. package/src/models/EcomVideoRecreationRequest.ts +12 -12
  102. package/src/models/EcomVideoRecreationResponseBody.ts +2 -2
  103. package/src/models/EcomVideoRecreationShrinkRequest.ts +1 -1
  104. package/src/models/ImageMattingRequest.ts +1 -1
  105. package/src/models/ImageMattingResponseBody.ts +2 -3
  106. package/src/models/ImageRecognitionRequest.ts +4 -4
  107. package/src/models/ImageRecognitionResponseBody.ts +5 -5
  108. package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
  109. package/src/models/ImageRemovalProRequest.ts +2 -2
  110. package/src/models/ImageRemovalProResponseBody.ts +3 -3
  111. package/src/models/ImageRemoveRequest.ts +9 -9
  112. package/src/models/ImageRemoveResponseBody.ts +2 -2
  113. package/src/models/ImageRemoveShrinkRequest.ts +9 -9
  114. package/src/models/ImageTranslationPlusResponseBody.ts +3 -3
  115. package/src/models/ImageTranslationProRequest.ts +10 -10
  116. package/src/models/ImageTranslationProResponseBody.ts +11 -11
  117. package/src/models/ImageTranslationStandardRequest.ts +4 -4
  118. package/src/models/ImageTranslationStandardResponseBody.ts +7 -7
  119. package/src/models/LanguageDetectRequest.ts +2 -2
  120. package/src/models/LanguageDetectResponseBody.ts +3 -3
  121. package/src/models/MaterialInspectionRequest.ts +5 -5
  122. package/src/models/MaterialInspectionResponseBody.ts +6 -11
  123. package/src/models/MerchandisePlacementDetectionRequest.ts +5 -5
  124. package/src/models/MerchandisePlacementDetectionResponseBody.ts +9 -9
  125. package/src/models/PackageWeightSizeCheckRequest.ts +1 -1
  126. package/src/models/PackageWeightSizeCheckResponseBody.ts +4 -4
  127. package/src/models/PrepaidTextTranslateRequest.ts +3 -3
  128. package/src/models/PrepaidTextTranslateResponseBody.ts +6 -6
  129. package/src/models/PrepaidTextTranslateShrinkRequest.ts +3 -3
  130. package/src/models/ProductHotspotDetectionResponseBody.ts +2 -2
  131. package/src/models/SizeChartDetectResponseBody.ts +3 -4
  132. package/src/models/SubmitProductMatchRequest.ts +102 -0
  133. package/src/models/SubmitProductMatchResponse.ts +40 -0
  134. package/src/models/SubmitProductMatchResponseBody.ts +116 -0
  135. package/src/models/TextTranslateRequest.ts +6 -15
  136. package/src/models/TextTranslateResponseBody.ts +5 -5
  137. package/src/models/TextTranslateShrinkRequest.ts +6 -15
  138. package/src/models/VideoTranslationRequest.ts +1 -1
  139. package/src/models/VideoTranslationShrinkRequest.ts +1 -1
  140. package/src/models/VirtualTryOnRequest.ts +70 -0
  141. package/src/models/VirtualTryOnResponse.ts +40 -0
  142. package/src/models/VirtualTryOnResponseBody.ts +114 -0
  143. package/src/models/VisionFlowRequest.ts +15 -15
  144. package/src/models/VisionFlowResponseBody.ts +1 -1
  145. package/src/models/VisionFlowShrinkRequest.ts +15 -15
  146. package/src/models/model.ts +8 -0
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class LanguageDetectRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The detection scenario. Default value: common. If you are using a search phrase scenario, set this parameter to query. If an incorrect value is passed or the parameter is not specified, the common general identification is used. Note: pass query in lowercase.
8
+ * The detection scenario. Default value: common. If you are identifying search phrases, set this parameter to query. If an incorrect value is specified or this parameter is left empty, the common general identification mode is used. Note: pass query in lowercase.
9
9
  *
10
10
  * @example
11
11
  * query
@@ -13,7 +13,7 @@ export class LanguageDetectRequest extends $dara.Model {
13
13
  scene?: string;
14
14
  /**
15
15
  * @remarks
16
- * The source text to be identified. This parameter is required.
16
+ * The source text to identify. This parameter is required.
17
17
  *
18
18
  * This parameter is required.
19
19
  *
@@ -48,7 +48,7 @@ export class LanguageDetectResponseBodyData extends $dara.Model {
48
48
  export class LanguageDetectResponseBody extends $dara.Model {
49
49
  /**
50
50
  * @remarks
51
- * The response code. A value of 200 indicates a successful call. For other response codes, refer to the error code information.
51
+ * The response code. A value of 200 indicates a successful call. For other response codes, refer to the error code documentation.
52
52
  *
53
53
  * @example
54
54
  * 200
@@ -61,7 +61,7 @@ export class LanguageDetectResponseBody extends $dara.Model {
61
61
  data?: LanguageDetectResponseBodyData;
62
62
  /**
63
63
  * @remarks
64
- * The error message. "Success" is returned for a successful call. A specific error message is returned for an exception, such as "The parameters contain sensitive information. Try other input."
64
+ * The error message. "Success" is returned for a successful call. A specific error message is returned for a failed call, such as "The parameters contain sensitive information. Try other input."
65
65
  *
66
66
  * @example
67
67
  * Success
@@ -69,7 +69,7 @@ export class LanguageDetectResponseBody extends $dara.Model {
69
69
  message?: string;
70
70
  /**
71
71
  * @remarks
72
- * The request ID, used to uniquely identify a request.
72
+ * The request ID, which uniquely identifies the request.
73
73
  *
74
74
  * @example
75
75
  * 42542C6C-F2A4-1B2B-8EFF-130C8FD06F54
@@ -13,7 +13,7 @@ export class MaterialInspectionRequest extends $dara.Model {
13
13
  apiId?: string;
14
14
  /**
15
15
  * @remarks
16
- * The URL of the reference image. Optional. When this parameter is not empty, the system performs multi-image differential comparison.
16
+ * The URL of the reference image. This parameter is optional. If a non-empty value is specified, multi-image differential comparison is performed.
17
17
  *
18
18
  * @example
19
19
  * https://example.com/reference.jpg
@@ -21,7 +21,7 @@ export class MaterialInspectionRequest extends $dara.Model {
21
21
  imageRefer?: string;
22
22
  /**
23
23
  * @remarks
24
- * The URL of the target image to be inspected.
24
+ * The URL of the target image.
25
25
  *
26
26
  * This parameter is required.
27
27
  *
@@ -31,7 +31,7 @@ export class MaterialInspectionRequest extends $dara.Model {
31
31
  imageUrl?: string;
32
32
  /**
33
33
  * @remarks
34
- * The business request identity. Optional. This value is returned as-is in the response for Tracing Analysis purposes.
34
+ * The business request identity. This parameter is optional. The value is returned as-is in the response for Tracing Analysis purposes.
35
35
  *
36
36
  * @example
37
37
  * req-2026-06-04-001
@@ -39,10 +39,10 @@ export class MaterialInspectionRequest extends $dara.Model {
39
39
  reqId?: string;
40
40
  /**
41
41
  * @remarks
42
- * The rule prompt in natural language that describes the inspection criteria.
42
+ * The rule prompt in natural language.
43
43
  *
44
44
  * @example
45
- * The door-shaped display stand must be placed in the entrance area; the functional display card must be placed on the counter surface
45
+ * The door-shaped display stand must be placed in the entrance area; the functional card stand must be placed on the counter surface
46
46
  */
47
47
  rules?: string;
48
48
  static names(): { [key: string]: string } {
@@ -5,10 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class MaterialInspectionResponseBodyDataResultSteps extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The determination result of the step. Valid values:
9
- * - PASS: The step is compliant.
10
- * - FAIL: The step is non-compliant.
11
- * - UNABLE_TO_JUDGE: The system cannot determine the result.
8
+ * The determination result of the step. Valid values: PASS, FAIL, and UNABLE_TO_JUDGE.
12
9
  *
13
10
  * @example
14
11
  * PASS
@@ -48,17 +45,15 @@ export class MaterialInspectionResponseBodyDataResultSteps extends $dara.Model {
48
45
  export class MaterialInspectionResponseBodyDataResult extends $dara.Model {
49
46
  /**
50
47
  * @remarks
51
- * The natural language summary of the inspection result, such as "1 rule: 1 PASS, all inspection items are compliant."
48
+ * The natural language summary, such as "1 rule: 1 PASS, all inspection items are compliant."
52
49
  *
53
50
  * @example
54
- * 1项规则:1 PASS,所有检测项合规
51
+ * 1 rule: 1 PASS, all inspection items are compliant
55
52
  */
56
53
  evidence?: string;
57
54
  /**
58
55
  * @remarks
59
- * The overall determination result. Valid values:
60
- * - PASS: All inspection items are compliant.
61
- * - FAIL: One or more inspection items are non-compliant.
56
+ * The overall determination result. Valid values: PASS and FAIL.
62
57
  *
63
58
  * @example
64
59
  * PASS
@@ -66,7 +61,7 @@ export class MaterialInspectionResponseBodyDataResult extends $dara.Model {
66
61
  overallResult?: string;
67
62
  /**
68
63
  * @remarks
69
- * The request ID returned as-is from the input.
64
+ * The request ID returned as-is from the request.
70
65
  *
71
66
  * @example
72
67
  * req-001
@@ -79,7 +74,7 @@ export class MaterialInspectionResponseBodyDataResult extends $dara.Model {
79
74
  steps?: MaterialInspectionResponseBodyDataResultSteps[];
80
75
  /**
81
76
  * @remarks
82
- * The detection type that indicates the identified material category.
77
+ * The detection type.
83
78
  *
84
79
  * @example
85
80
  * Stamp
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class MerchandisePlacementDetectionRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specifies a custom API version. If you created a "My API" during the trial phase, you can find the corresponding ApiId in the product console under "Intelligent Inspection > API Management > My API".
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**.
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 image to be recognized (accessible over the public network or from OSS).
16
+ * The URL of the shelf or floor-stack photo to be recognized (accessible over the Internet or from OSS).
17
17
  *
18
18
  * This parameter is required.
19
19
  *
@@ -23,7 +23,7 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
23
23
  imageUrl?: string;
24
24
  /**
25
25
  * @remarks
26
- * The ID of the customer\\"s dedicated SKU vector library, which determines which library is used for retrieval. 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 recall. The library must be created in advance through the library creation process.
27
27
  *
28
28
  * @example
29
29
  * rag_xxx
@@ -31,10 +31,10 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
31
31
  ragId?: string;
32
32
  /**
33
33
  * @remarks
34
- * The business type (reserved for future routing by business line). The current phase supports skincare & lotion.
34
+ * The business type (reserved for future routing by business line). The current release supports skincare.
35
35
  *
36
36
  * @example
37
- * 水乳
37
+ * skincare
38
38
  */
39
39
  type?: string;
40
40
  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.
58
+ * The recall rank of the product.
59
59
  *
60
60
  * @example
61
61
  * 1
@@ -115,7 +115,7 @@ 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 position coordinates of the detection box in the format [x1,y1,x2,y2].
119
119
  */
120
120
  bbox?: number[];
121
121
  /**
@@ -123,7 +123,7 @@ export class MerchandisePlacementDetectionResponseBodyDataData extends $dara.Mod
123
123
  * The failure reason for the 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,12 +193,12 @@ export class MerchandisePlacementDetectionResponseBodyData extends $dara.Model {
193
193
  boxCount?: number;
194
194
  /**
195
195
  * @remarks
196
- * The list of retrieval details for each detection box.
196
+ * The list of recall details for each detection box.
197
197
  */
198
198
  data?: MerchandisePlacementDetectionResponseBodyDataData[];
199
199
  /**
200
200
  * @remarks
201
- * The usage information. The key is the usage name and the value is the count.
201
+ * The usage information, where the key is the usage name and the value is the count.
202
202
  *
203
203
  * @example
204
204
  * {"ProcessingCount":1}
@@ -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 for successful calls.
241
+ * The error code. This parameter is not returned if the call is successful.
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 for successful calls.
254
+ * The error message. This parameter is not returned if the call is successful.
255
255
  *
256
256
  * @example
257
257
  * OK
@@ -267,8 +267,8 @@ export class MerchandisePlacementDetectionResponseBody extends $dara.Model {
267
267
  requestId?: string;
268
268
  /**
269
269
  * @remarks
270
- * Indicates whether the call was successful. Valid values:
271
- * - true: The call was successful.
270
+ * Indicates whether the call is successful. Valid values:
271
+ * - true: The call is successful.
272
272
  * - false: The call failed.
273
273
  *
274
274
  * @example
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class PackageWeightSizeCheckRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The URL of the annotated image with manual bounding box markings, which is the original image overlaid with blue or red rectangular bounding box lines. The URL must be publicly accessible. The image must not exceed 4000 × 4000 pixels or 10 MB in size. Supported formats: png, jpeg, and jpg.
8
+ * The URL of the image with manual bounding box annotations, which is the original image overlaid with blue or red rectangular bounding box lines. The URL must be publicly accessible. The image must not exceed 4000 × 4000 pixels or 10 MB in size. Supported formats: png, jpeg, and jpg.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class PackageWeightSizeCheckResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The asynchronous task ID, which is used to query the review result by calling QueryAsyncTaskResult.
8
+ * The asynchronous task ID used to query the review result later by calling QueryAsyncTaskResult.
9
9
  *
10
10
  * @example
11
11
  * a8323ada-a196-9061-976f-90e38b27323a
@@ -48,7 +48,7 @@ export class PackageWeightSizeCheckResponseBody extends $dara.Model {
48
48
  data?: PackageWeightSizeCheckResponseBodyData;
49
49
  /**
50
50
  * @remarks
51
- * The error message. "Success" is returned for a successful call. A specific error message is returned for a failed call.
51
+ * The error message. "Success" is returned for successful calls. A specific error message is returned for failed calls.
52
52
  *
53
53
  * @example
54
54
  * Success
@@ -56,7 +56,7 @@ export class PackageWeightSizeCheckResponseBody extends $dara.Model {
56
56
  message?: string;
57
57
  /**
58
58
  * @remarks
59
- * The request ID, which uniquely identifies the API call.
59
+ * The request ID, which uniquely identifies the request.
60
60
  *
61
61
  * @example
62
62
  * F93D82E4-D0B6-1043-AC58-282597BC3C10
@@ -64,7 +64,7 @@ export class PackageWeightSizeCheckResponseBody extends $dara.Model {
64
64
  requestId?: string;
65
65
  /**
66
66
  * @remarks
67
- * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
67
+ * Indicates whether the call is successful. Valid values: true and false.
68
68
  *
69
69
  * @example
70
70
  * true
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class PrepaidTextTranslateRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The business scenario identifier. This parameter is optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or an invalid value is passed, the general translation strategy is used by default.
8
+ * The business scenario identifier. This parameter is optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or an invalid value is passed, the general translation policy is used by default.
9
9
  *
10
10
  * @example
11
11
  * Alibaba-商品
@@ -13,7 +13,7 @@ export class PrepaidTextTranslateRequest extends $dara.Model {
13
13
  bizName?: string;
14
14
  /**
15
15
  * @remarks
16
- * The format type of the source text. This parameter is optional. Supports text (plain text format) and html (web page format, preserving 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 that preserves HTML tags).
17
17
  *
18
18
  * @example
19
19
  * text
@@ -57,7 +57,7 @@ export class PrepaidTextTranslateRequest extends $dara.Model {
57
57
  targetLanguage?: string;
58
58
  /**
59
59
  * @remarks
60
- * The format of the translation text. html (web page format. This setting processes both the source text and translated text in HTML format) or text (text format. This setting processes both the source text and translated result as plain text without format processing).
60
+ * The format of the translation text. html (web page format. This setting processes the source text and translated text in HTML format). text (text format. This setting processes the source text and translated text as plain text without any format processing).
61
61
  *
62
62
  * @example
63
63
  * e-commerce-title
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class PrepaidTextTranslateResponseBodyDataTranslations extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The character count of the source text.
8
+ * The number of characters in the source text.
9
9
  *
10
10
  * @example
11
11
  * 11
@@ -60,7 +60,7 @@ export class PrepaidTextTranslateResponseBodyData extends $dara.Model {
60
60
  translations?: PrepaidTextTranslateResponseBodyDataTranslations[];
61
61
  /**
62
62
  * @remarks
63
- * The usage information, including the input character count.
63
+ * The usage information, including the number of input characters.
64
64
  */
65
65
  usageMap?: { [key: string]: number };
66
66
  static names(): { [key: string]: string } {
@@ -95,7 +95,7 @@ export class PrepaidTextTranslateResponseBodyData extends $dara.Model {
95
95
  export class PrepaidTextTranslateResponseBody extends $dara.Model {
96
96
  /**
97
97
  * @remarks
98
- * The response code. Returns "success" for normal calls.
98
+ * The response code. The value "success" is returned for successful calls.
99
99
  *
100
100
  * @example
101
101
  * success
@@ -108,7 +108,7 @@ export class PrepaidTextTranslateResponseBody extends $dara.Model {
108
108
  data?: PrepaidTextTranslateResponseBodyData;
109
109
  /**
110
110
  * @remarks
111
- * The error message. Returns "Success" for normal calls. Returns specific error information for exceptions, such as "The parameters contain sensitive information. Try other input."
111
+ * The error message. The value "Success" is returned for successful calls. For exceptions, a specific error message is returned, such as "The parameters contain sensitive information. Try other input."
112
112
  *
113
113
  * @example
114
114
  * Success
@@ -116,7 +116,7 @@ export class PrepaidTextTranslateResponseBody extends $dara.Model {
116
116
  message?: string;
117
117
  /**
118
118
  * @remarks
119
- * The request ID, used to identify a unique request call.
119
+ * The request ID, used to uniquely identify a request.
120
120
  *
121
121
  * @example
122
122
  * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
@@ -124,7 +124,7 @@ export class PrepaidTextTranslateResponseBody extends $dara.Model {
124
124
  requestId?: string;
125
125
  /**
126
126
  * @remarks
127
- * Indicates whether the call is successful. true indicates success. false indicates failure.
127
+ * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
128
128
  *
129
129
  * @example
130
130
  * True
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class PrepaidTextTranslateShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The business scenario identifier. This parameter is optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or an invalid value is passed, the general translation strategy is used by default.
8
+ * The business scenario identifier. This parameter is optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or an invalid value is passed, the general translation policy is used by default.
9
9
  *
10
10
  * @example
11
11
  * Alibaba-商品
@@ -13,7 +13,7 @@ export class PrepaidTextTranslateShrinkRequest extends $dara.Model {
13
13
  bizName?: string;
14
14
  /**
15
15
  * @remarks
16
- * The format type of the source text. This parameter is optional. Supports text (plain text format) and html (web page format, preserving 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 that preserves HTML tags).
17
17
  *
18
18
  * @example
19
19
  * text
@@ -57,7 +57,7 @@ export class PrepaidTextTranslateShrinkRequest extends $dara.Model {
57
57
  targetLanguage?: string;
58
58
  /**
59
59
  * @remarks
60
- * The format of the translation text. html (web page format. This setting processes both the source text and translated text in HTML format) or text (text format. This setting processes both the source text and translated result as plain text without format processing).
60
+ * The format of the translation text. html (web page format. This setting processes the source text and translated text in HTML format). text (text format. This setting processes the source text and translated text as plain text without any format processing).
61
61
  *
62
62
  * @example
63
63
  * e-commerce-title
@@ -65,7 +65,7 @@ export class ProductHotspotDetectionResponseBodyDataProductsBoxes extends $dara.
65
65
  export class ProductHotspotDetectionResponseBodyDataProducts extends $dara.Model {
66
66
  /**
67
67
  * @remarks
68
- * The bounding boxes of the product instances.
68
+ * The bounding boxes of the detected product instances.
69
69
  */
70
70
  boxes?: ProductHotspotDetectionResponseBodyDataProductsBoxes[];
71
71
  /**
@@ -115,7 +115,7 @@ export class ProductHotspotDetectionResponseBodyDataProducts extends $dara.Model
115
115
  export class ProductHotspotDetectionResponseBodyData extends $dara.Model {
116
116
  /**
117
117
  * @remarks
118
- * The list of recognized products and their bounding boxes.
118
+ * The list of detected products and their bounding boxes.
119
119
  */
120
120
  products?: ProductHotspotDetectionResponseBodyDataProducts[];
121
121
  /**
@@ -13,7 +13,7 @@ export class SizeChartDetectResponseBodyData extends $dara.Model {
13
13
  isSizeChart?: boolean;
14
14
  /**
15
15
  * @remarks
16
- * The usage information. The key is the usage name, and the value is the count.
16
+ * The usage information. The key is the usage name and the value is the count.
17
17
  *
18
18
  * @example
19
19
  * {"ProcessedImageCount":1}
@@ -77,9 +77,8 @@ export class SizeChartDetectResponseBody extends $dara.Model {
77
77
  requestId?: string;
78
78
  /**
79
79
  * @remarks
80
- * Indicates whether the call is successful. Valid values:
81
- *
82
- * - true: The call is successful.
80
+ * Indicates whether the call was successful. Valid values:
81
+ * - true: The call was successful.
83
82
  * - false: The call failed.
84
83
  *
85
84
  * @example
@@ -0,0 +1,102 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class SubmitProductMatchRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The product brand. If this value is not specified, the system attempts to extract the brand from the shop name.
9
+ *
10
+ * @example
11
+ * FILA
12
+ */
13
+ brandName?: string;
14
+ /**
15
+ * @remarks
16
+ * The Miaojie product category. Currently used for extension and auditing purposes.
17
+ *
18
+ * @example
19
+ * Children\\"s Shoes
20
+ */
21
+ category?: string;
22
+ /**
23
+ * @remarks
24
+ * The HTTP or HTTPS URL of the product main image.
25
+ *
26
+ * This parameter is required.
27
+ *
28
+ * @example
29
+ * https://example.com/items/228516909/main.jpg
30
+ */
31
+ imageUrl?: string;
32
+ /**
33
+ * @remarks
34
+ * The Miaojie product ID.
35
+ *
36
+ * This parameter is required.
37
+ *
38
+ * @example
39
+ * 228516909
40
+ */
41
+ itemId?: string;
42
+ /**
43
+ * @remarks
44
+ * The HTTP or HTTPS URL of the product detail page.
45
+ *
46
+ * @example
47
+ * https://example.com/items/228516909
48
+ */
49
+ productUrl?: string;
50
+ /**
51
+ * @remarks
52
+ * The shop name. This value is also used as the extraction source when the brand name is missing.
53
+ *
54
+ * This parameter is required.
55
+ *
56
+ * @example
57
+ * FILA斐乐官方旗舰店
58
+ */
59
+ shopName?: string;
60
+ /**
61
+ * @remarks
62
+ * The product title.
63
+ *
64
+ * This parameter is required.
65
+ *
66
+ * @example
67
+ * FILA Kids Training Shoes
68
+ */
69
+ title?: string;
70
+ static names(): { [key: string]: string } {
71
+ return {
72
+ brandName: 'BrandName',
73
+ category: 'Category',
74
+ imageUrl: 'ImageUrl',
75
+ itemId: 'ItemId',
76
+ productUrl: 'ProductUrl',
77
+ shopName: 'ShopName',
78
+ title: 'Title',
79
+ };
80
+ }
81
+
82
+ static types(): { [key: string]: any } {
83
+ return {
84
+ brandName: 'string',
85
+ category: 'string',
86
+ imageUrl: 'string',
87
+ itemId: 'string',
88
+ productUrl: 'string',
89
+ shopName: 'string',
90
+ title: 'string',
91
+ };
92
+ }
93
+
94
+ validate() {
95
+ super.validate();
96
+ }
97
+
98
+ constructor(map?: { [key: string]: any }) {
99
+ super(map);
100
+ }
101
+ }
102
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { SubmitProductMatchResponseBody } from "./SubmitProductMatchResponseBody";
4
+
5
+
6
+ export class SubmitProductMatchResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: SubmitProductMatchResponseBody;
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: SubmitProductMatchResponseBody,
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
+