@alicloud/aidge20260428 5.5.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.
- package/dist/client.d.ts +437 -422
- package/dist/client.js +479 -422
- package/dist/client.js.map +1 -1
- package/dist/models/AssetOptimizeLiteRequest.d.ts +2 -2
- package/dist/models/AssetOptimizeLiteResponseBody.d.ts +1 -1
- package/dist/models/AssetOptimizeProRequest.d.ts +5 -5
- package/dist/models/AssetOptimizeProResponseBody.d.ts +4 -4
- package/dist/models/AssetOptimizeProShrinkRequest.d.ts +5 -5
- package/dist/models/CategoryAttributeMatchRequest.d.ts +5 -5
- package/dist/models/CategoryAttributeMatchResponseBody.d.ts +5 -5
- package/dist/models/CategoryAttributeMatchShrinkRequest.d.ts +5 -5
- package/dist/models/CategoryMatchRequest.d.ts +7 -7
- package/dist/models/CategoryMatchResponseBody.d.ts +8 -8
- package/dist/models/DiduiAreaDeductionRequest.d.ts +2 -2
- package/dist/models/DiduiAreaDeductionResponseBody.d.ts +4 -4
- package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +1 -1
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -3
- package/dist/models/EcomVideoRecreationRequest.d.ts +12 -12
- package/dist/models/EcomVideoRecreationResponseBody.d.ts +2 -2
- package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +1 -1
- package/dist/models/ImageMattingRequest.d.ts +1 -1
- package/dist/models/ImageMattingResponseBody.d.ts +2 -3
- package/dist/models/ImageMattingResponseBody.js.map +1 -1
- package/dist/models/ImageRecognitionRequest.d.ts +4 -4
- package/dist/models/ImageRecognitionResponseBody.d.ts +5 -5
- package/dist/models/ImageRecognitionShrinkRequest.d.ts +4 -4
- package/dist/models/ImageRemovalProRequest.d.ts +2 -2
- package/dist/models/ImageRemovalProResponseBody.d.ts +3 -3
- package/dist/models/ImageRemoveRequest.d.ts +9 -9
- package/dist/models/ImageRemoveResponseBody.d.ts +2 -2
- package/dist/models/ImageRemoveShrinkRequest.d.ts +9 -9
- package/dist/models/ImageTranslationPlusResponseBody.d.ts +3 -3
- package/dist/models/ImageTranslationProRequest.d.ts +6 -6
- package/dist/models/ImageTranslationProResponseBody.d.ts +14 -14
- package/dist/models/ImageTranslationStandardRequest.d.ts +2 -2
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +7 -7
- package/dist/models/LanguageDetectRequest.d.ts +2 -2
- package/dist/models/LanguageDetectResponseBody.d.ts +3 -3
- package/dist/models/MaterialInspectionRequest.d.ts +5 -5
- package/dist/models/MaterialInspectionResponseBody.d.ts +6 -11
- package/dist/models/MaterialInspectionResponseBody.js.map +1 -1
- package/dist/models/MerchandisePlacementDetectionRequest.d.ts +5 -5
- package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +9 -9
- package/dist/models/PackageWeightSizeCheckRequest.d.ts +1 -1
- package/dist/models/PackageWeightSizeCheckResponseBody.d.ts +4 -4
- package/dist/models/PrepaidTextTranslateRequest.d.ts +3 -3
- package/dist/models/PrepaidTextTranslateResponseBody.d.ts +6 -6
- package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +3 -3
- package/dist/models/ProductHotspotDetectionResponseBody.d.ts +2 -2
- package/dist/models/SizeChartDetectResponseBody.d.ts +3 -4
- package/dist/models/SizeChartDetectResponseBody.js.map +1 -1
- package/dist/models/SubmitProductMatchRequest.d.ts +77 -0
- package/dist/models/SubmitProductMatchRequest.js +70 -0
- package/dist/models/SubmitProductMatchRequest.js.map +1 -0
- package/dist/models/SubmitProductMatchResponse.d.ts +19 -0
- package/dist/models/SubmitProductMatchResponse.js +69 -0
- package/dist/models/SubmitProductMatchResponse.js.map +1 -0
- package/dist/models/SubmitProductMatchResponseBody.d.ts +80 -0
- package/dist/models/SubmitProductMatchResponseBody.js +90 -0
- package/dist/models/SubmitProductMatchResponseBody.js.map +1 -0
- package/dist/models/TextTranslateRequest.d.ts +4 -13
- package/dist/models/TextTranslateRequest.js.map +1 -1
- package/dist/models/TextTranslateResponseBody.d.ts +1 -1
- package/dist/models/TextTranslateShrinkRequest.d.ts +4 -13
- package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
- package/dist/models/VideoTranslationRequest.d.ts +1 -1
- package/dist/models/VideoTranslationShrinkRequest.d.ts +1 -1
- package/dist/models/VisionFlowRequest.d.ts +15 -15
- package/dist/models/VisionFlowResponseBody.d.ts +1 -1
- package/dist/models/VisionFlowShrinkRequest.d.ts +15 -15
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +11 -3
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +488 -422
- package/src/models/AssetOptimizeLiteRequest.ts +2 -2
- package/src/models/AssetOptimizeLiteResponseBody.ts +1 -1
- package/src/models/AssetOptimizeProRequest.ts +5 -5
- package/src/models/AssetOptimizeProResponseBody.ts +4 -4
- package/src/models/AssetOptimizeProShrinkRequest.ts +5 -5
- package/src/models/CategoryAttributeMatchRequest.ts +5 -5
- package/src/models/CategoryAttributeMatchResponseBody.ts +5 -5
- package/src/models/CategoryAttributeMatchShrinkRequest.ts +5 -5
- package/src/models/CategoryMatchRequest.ts +7 -7
- package/src/models/CategoryMatchResponseBody.ts +8 -8
- package/src/models/DiduiAreaDeductionRequest.ts +2 -2
- package/src/models/DiduiAreaDeductionResponseBody.ts +4 -4
- package/src/models/DiduiAreaDeductionShrinkRequest.ts +1 -1
- package/src/models/DocumentTranslateResponseBody.ts +3 -3
- package/src/models/EcomVideoRecreationRequest.ts +12 -12
- package/src/models/EcomVideoRecreationResponseBody.ts +2 -2
- package/src/models/EcomVideoRecreationShrinkRequest.ts +1 -1
- package/src/models/ImageMattingRequest.ts +1 -1
- package/src/models/ImageMattingResponseBody.ts +2 -3
- package/src/models/ImageRecognitionRequest.ts +4 -4
- package/src/models/ImageRecognitionResponseBody.ts +5 -5
- package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
- package/src/models/ImageRemovalProRequest.ts +2 -2
- package/src/models/ImageRemovalProResponseBody.ts +3 -3
- package/src/models/ImageRemoveRequest.ts +9 -9
- package/src/models/ImageRemoveResponseBody.ts +2 -2
- package/src/models/ImageRemoveShrinkRequest.ts +9 -9
- package/src/models/ImageTranslationPlusResponseBody.ts +3 -3
- package/src/models/ImageTranslationProRequest.ts +6 -6
- package/src/models/ImageTranslationProResponseBody.ts +14 -14
- package/src/models/ImageTranslationStandardRequest.ts +2 -2
- package/src/models/ImageTranslationStandardResponseBody.ts +7 -7
- package/src/models/LanguageDetectRequest.ts +2 -2
- package/src/models/LanguageDetectResponseBody.ts +3 -3
- package/src/models/MaterialInspectionRequest.ts +5 -5
- package/src/models/MaterialInspectionResponseBody.ts +6 -11
- package/src/models/MerchandisePlacementDetectionRequest.ts +5 -5
- package/src/models/MerchandisePlacementDetectionResponseBody.ts +9 -9
- package/src/models/PackageWeightSizeCheckRequest.ts +1 -1
- package/src/models/PackageWeightSizeCheckResponseBody.ts +4 -4
- package/src/models/PrepaidTextTranslateRequest.ts +3 -3
- package/src/models/PrepaidTextTranslateResponseBody.ts +6 -6
- package/src/models/PrepaidTextTranslateShrinkRequest.ts +3 -3
- package/src/models/ProductHotspotDetectionResponseBody.ts +2 -2
- package/src/models/SizeChartDetectResponseBody.ts +3 -4
- package/src/models/SubmitProductMatchRequest.ts +102 -0
- package/src/models/SubmitProductMatchResponse.ts +40 -0
- package/src/models/SubmitProductMatchResponseBody.ts +116 -0
- package/src/models/TextTranslateRequest.ts +4 -13
- package/src/models/TextTranslateResponseBody.ts +1 -1
- package/src/models/TextTranslateShrinkRequest.ts +4 -13
- package/src/models/VideoTranslationRequest.ts +1 -1
- package/src/models/VideoTranslationShrinkRequest.ts +1 -1
- package/src/models/VisionFlowRequest.ts +15 -15
- package/src/models/VisionFlowResponseBody.ts +1 -1
- package/src/models/VisionFlowShrinkRequest.ts +15 -15
- package/src/models/model.ts +4 -0
|
@@ -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.
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
48
|
+
* The natural language summary, such as "1 rule: 1 PASS, all inspection items are compliant."
|
|
52
49
|
*
|
|
53
50
|
* @example
|
|
54
|
-
* 1
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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
|
-
* "
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
271
|
-
* - true: The call
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class SubmitProductMatchResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The task acceptance time in ISO 8601 UTC format.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 2026-08-20T09:30:00Z
|
|
12
|
+
*/
|
|
13
|
+
submittedAt?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The asynchronous task ID used for QueryAsyncTaskResult queries.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* b7ea15cb609f47b7999d2d68dfbf3c90
|
|
20
|
+
*/
|
|
21
|
+
taskId?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
submittedAt: 'SubmittedAt',
|
|
25
|
+
taskId: 'TaskId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
submittedAt: 'string',
|
|
32
|
+
taskId: 'string',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
validate() {
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class SubmitProductMatchResponseBody extends $dara.Model {
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The error code. This parameter is not returned if the call is successful.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* 200
|
|
52
|
+
*/
|
|
53
|
+
code?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The submit result of the matching product identification asynchronous task.
|
|
57
|
+
*/
|
|
58
|
+
data?: SubmitProductMatchResponseBodyData;
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The error message. This parameter is not returned if the call is successful.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* OK
|
|
65
|
+
*/
|
|
66
|
+
message?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* Id of the request
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
73
|
+
*/
|
|
74
|
+
requestId?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* Indicates whether the call is successful. Valid values:
|
|
78
|
+
* - true: The call is successful.
|
|
79
|
+
* - false: The call failed.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* True
|
|
83
|
+
*/
|
|
84
|
+
success?: boolean;
|
|
85
|
+
static names(): { [key: string]: string } {
|
|
86
|
+
return {
|
|
87
|
+
code: 'Code',
|
|
88
|
+
data: 'Data',
|
|
89
|
+
message: 'Message',
|
|
90
|
+
requestId: 'RequestId',
|
|
91
|
+
success: 'Success',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static types(): { [key: string]: any } {
|
|
96
|
+
return {
|
|
97
|
+
code: 'string',
|
|
98
|
+
data: SubmitProductMatchResponseBodyData,
|
|
99
|
+
message: 'string',
|
|
100
|
+
requestId: 'string',
|
|
101
|
+
success: 'boolean',
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
validate() {
|
|
106
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
107
|
+
(this.data as any).validate();
|
|
108
|
+
}
|
|
109
|
+
super.validate();
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
constructor(map?: { [key: string]: any }) {
|
|
113
|
+
super(map);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|