@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
|
@@ -15,7 +15,7 @@ export class ImageRecognitionRequest extends $dara.Model {
|
|
|
15
15
|
imageUrl?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The list of non-subject element types to detect. Valid values: 1 (background), 2 (border), 3 (watermark), 4 (splice).
|
|
18
|
+
* The list of non-subject element types to detect. Valid values: 1 (background), 2 (border), 3 (watermark), and 4 (splice).
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* [1,2,3,4]
|
|
@@ -23,7 +23,7 @@ export class ImageRecognitionRequest extends $dara.Model {
|
|
|
23
23
|
nonObjectDetectElements?: number[];
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The list of subject element types to detect. Valid values: 1 (product subject), 2 (model), 3 (text), 4 (logo).
|
|
26
|
+
* The list of subject element types to detect. Valid values: 1 (product subject), 2 (model), 3 (text), and 4 (logo).
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* [1,2,3,4]
|
|
@@ -47,7 +47,7 @@ export class ImageRecognitionRequest extends $dara.Model {
|
|
|
47
47
|
returnCharacter?: number;
|
|
48
48
|
/**
|
|
49
49
|
* @remarks
|
|
50
|
-
* Specifies whether to return text
|
|
50
|
+
* Specifies whether to return text property information. Valid values: 1 (return) and 0 (do not return).
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
53
|
* 1
|
|
@@ -63,7 +63,7 @@ export class ImageRecognitionRequest extends $dara.Model {
|
|
|
63
63
|
returnProductNum?: number;
|
|
64
64
|
/**
|
|
65
65
|
* @remarks
|
|
66
|
-
* Specifies whether to return product
|
|
66
|
+
* Specifies whether to return product property information. Valid values: 1 (return) and 0 (do not return).
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
69
|
* 1
|
|
@@ -77,7 +77,7 @@ export class ImageRecognitionResponseBodyData extends $dara.Model {
|
|
|
77
77
|
objWatermark?: boolean;
|
|
78
78
|
/**
|
|
79
79
|
* @remarks
|
|
80
|
-
* The
|
|
80
|
+
* The number of products.
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
83
|
* 2
|
|
@@ -85,7 +85,7 @@ export class ImageRecognitionResponseBodyData extends $dara.Model {
|
|
|
85
85
|
pdNum?: number;
|
|
86
86
|
/**
|
|
87
87
|
* @remarks
|
|
88
|
-
* The product
|
|
88
|
+
* The proportion of the product area in the image.
|
|
89
89
|
*
|
|
90
90
|
* @example
|
|
91
91
|
* 74.15%
|
|
@@ -98,7 +98,7 @@ export class ImageRecognitionResponseBodyData extends $dara.Model {
|
|
|
98
98
|
recText?: string[];
|
|
99
99
|
/**
|
|
100
100
|
* @remarks
|
|
101
|
-
* The text
|
|
101
|
+
* The proportion of the text area in the image.
|
|
102
102
|
*
|
|
103
103
|
* @example
|
|
104
104
|
* 7.52%
|
|
@@ -168,7 +168,7 @@ export class ImageRecognitionResponseBodyData extends $dara.Model {
|
|
|
168
168
|
export class ImageRecognitionResponseBody extends $dara.Model {
|
|
169
169
|
/**
|
|
170
170
|
* @remarks
|
|
171
|
-
* The error code. This parameter is not returned
|
|
171
|
+
* The error code. This parameter is not returned if the call is successful.
|
|
172
172
|
*
|
|
173
173
|
* @example
|
|
174
174
|
* 200
|
|
@@ -181,7 +181,7 @@ export class ImageRecognitionResponseBody extends $dara.Model {
|
|
|
181
181
|
data?: ImageRecognitionResponseBodyData;
|
|
182
182
|
/**
|
|
183
183
|
* @remarks
|
|
184
|
-
* The error message. This parameter is not returned
|
|
184
|
+
* The error message. This parameter is not returned if the call is successful.
|
|
185
185
|
*
|
|
186
186
|
* @example
|
|
187
187
|
* OK
|
|
@@ -15,7 +15,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
|
|
|
15
15
|
imageUrl?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The list of non-subject element types to detect. Valid values: 1 (background), 2 (border), 3 (watermark), 4 (splice).
|
|
18
|
+
* The list of non-subject element types to detect. Valid values: 1 (background), 2 (border), 3 (watermark), and 4 (splice).
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* [1,2,3,4]
|
|
@@ -23,7 +23,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
|
|
|
23
23
|
nonObjectDetectElementsShrink?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The list of subject element types to detect. Valid values: 1 (product subject), 2 (model), 3 (text), 4 (logo).
|
|
26
|
+
* The list of subject element types to detect. Valid values: 1 (product subject), 2 (model), 3 (text), and 4 (logo).
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* [1,2,3,4]
|
|
@@ -47,7 +47,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
|
|
|
47
47
|
returnCharacter?: number;
|
|
48
48
|
/**
|
|
49
49
|
* @remarks
|
|
50
|
-
* Specifies whether to return text
|
|
50
|
+
* Specifies whether to return text property information. Valid values: 1 (return) and 0 (do not return).
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
53
|
* 1
|
|
@@ -63,7 +63,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
|
|
|
63
63
|
returnProductNum?: number;
|
|
64
64
|
/**
|
|
65
65
|
* @remarks
|
|
66
|
-
* Specifies whether to return product
|
|
66
|
+
* Specifies whether to return product property information. Valid values: 1 (return) and 0 (do not return).
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
69
|
* 1
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemovalProResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The URL of the result image. This parameter is returned in synchronous mode.
|
|
8
|
+
* The URL of the erasure result image. This parameter is returned in synchronous mode.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* https://aib-image.oss-ap-southeast-1.aliyuncs.com/ai_desc%2F250cc947-9cd5-4df0-9c23-44eba5d0dfc30.jpg?OSSAccessKeyId=LTAI5tSEGjGp5wixZgHLc3bV&Expires=4999655814&Signature=shvGNDmkyv9MLTw4%2BOxYglJCpAE%3D
|
|
@@ -13,7 +13,7 @@ export class ImageRemovalProResponseBodyData extends $dara.Model {
|
|
|
13
13
|
imageUrl?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The asynchronous task ID. This parameter is returned in asynchronous mode and is used to query
|
|
16
|
+
* The asynchronous task ID. This parameter is returned in asynchronous mode and is used to query task results.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ed9d8504-6141-9fbb-8345-4fa36433483f
|
|
@@ -63,7 +63,7 @@ export class ImageRemovalProResponseBody extends $dara.Model {
|
|
|
63
63
|
code?: string;
|
|
64
64
|
/**
|
|
65
65
|
* @remarks
|
|
66
|
-
* The
|
|
66
|
+
* The Intelligent Eraser Pro result.
|
|
67
67
|
*/
|
|
68
68
|
data?: ImageRemovalProResponseBodyData;
|
|
69
69
|
/**
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemoveRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 3000 × 3000 pixels, and a file size no
|
|
8
|
+
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 3000 × 3000 pixels, and a file size of no more than 10 MB.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -16,7 +16,7 @@ export class ImageRemoveRequest extends $dara.Model {
|
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
18
|
* The specific removal area. This parameter must be used with the editor. The input format is RLE.
|
|
19
|
-
* If
|
|
19
|
+
* If specified, this parameter takes priority and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is optional, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
20
20
|
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
@@ -25,9 +25,9 @@ export class ImageRemoveRequest extends $dara.Model {
|
|
|
25
25
|
mask?: string;
|
|
26
26
|
/**
|
|
27
27
|
* @remarks
|
|
28
|
-
* The elements to remove from the non-subject area of the image (1=transparent text blocks, 2=specific names, 3=text, 4=
|
|
28
|
+
* The elements to remove from the non-subject area of the image (1 = transparent text blocks, 2 = specific names, 3 = text, 4 = image blemishes). You can select multiple element types. This parameter is optional, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
29
29
|
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
30
|
-
* Refer to the product description for details
|
|
30
|
+
* Refer to the product description for details about each type.
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* [1,2]
|
|
@@ -35,9 +35,9 @@ export class ImageRemoveRequest extends $dara.Model {
|
|
|
35
35
|
nonObjectRemoveElements?: number[];
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The elements to remove from the image subject (1=transparent text blocks, 2=specific names, 3=text, 4=
|
|
38
|
+
* The elements to remove from the image subject (1 = transparent text blocks, 2 = specific names, 3 = text, 4 = image blemishes). You can select multiple element types. This parameter is optional, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
39
39
|
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
40
|
-
* Refer to the product description for details
|
|
40
|
+
* Refer to the product description for details about each type.
|
|
41
41
|
* Image subject: The core product area in the image.
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
@@ -46,7 +46,7 @@ export class ImageRemoveRequest extends $dara.Model {
|
|
|
46
46
|
objectRemoveElements?: number[];
|
|
47
47
|
/**
|
|
48
48
|
* @remarks
|
|
49
|
-
* The specific removal area. This parameter must be used with the editor. The input format is four-point coordinates [xx,yy,zz,dd]. This parameter is
|
|
49
|
+
* The specific removal area. This parameter must be used with the editor. The input format is four-point coordinates [xx,yy,zz,dd]. This parameter is optional, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
50
50
|
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
@@ -55,7 +55,7 @@ export class ImageRemoveRequest extends $dara.Model {
|
|
|
55
55
|
position?: string;
|
|
56
56
|
/**
|
|
57
57
|
* @remarks
|
|
58
|
-
* The user-specified image element links to remove. Multiple image links are supported. The input format is ["https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg","https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg"]. This parameter is
|
|
58
|
+
* The user-specified image element links to remove. Multiple image links are supported. The input format is ["https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg","https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg"]. This parameter is optional, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
59
59
|
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
@@ -64,7 +64,7 @@ export class ImageRemoveRequest extends $dara.Model {
|
|
|
64
64
|
userImage?: string[];
|
|
65
65
|
/**
|
|
66
66
|
* @remarks
|
|
67
|
-
* The user-specified text to remove. Multiple text inputs are supported. The input format is ["xx","yy"]. This parameter is
|
|
67
|
+
* The user-specified text to remove. Multiple text inputs are supported. The input format is ["xx","yy"]. This parameter is optional, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
68
68
|
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemoveResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The height of the result image in pixels.
|
|
8
|
+
* The height of the result image, in pixels.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 800
|
|
@@ -30,7 +30,7 @@ export class ImageRemoveResponseBodyData extends $dara.Model {
|
|
|
30
30
|
usageMap?: { [key: string]: number };
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* The width of the result image in pixels.
|
|
33
|
+
* The width of the result image, in pixels.
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
36
|
* 800
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemoveShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 3000 × 3000 pixels, and a file size no
|
|
8
|
+
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 3000 × 3000 pixels, and a file size of no more than 10 MB.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -16,7 +16,7 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
|
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
18
|
* The specific removal area. This parameter must be used with the editor. The input format is RLE.
|
|
19
|
-
* If
|
|
19
|
+
* If specified, this parameter takes priority and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is optional, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
20
20
|
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
@@ -25,9 +25,9 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
|
|
|
25
25
|
mask?: string;
|
|
26
26
|
/**
|
|
27
27
|
* @remarks
|
|
28
|
-
* The elements to remove from the non-subject area of the image (1=transparent text blocks, 2=specific names, 3=text, 4=
|
|
28
|
+
* The elements to remove from the non-subject area of the image (1 = transparent text blocks, 2 = specific names, 3 = text, 4 = image blemishes). You can select multiple element types. This parameter is optional, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
29
29
|
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
30
|
-
* Refer to the product description for details
|
|
30
|
+
* Refer to the product description for details about each type.
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* [1,2]
|
|
@@ -35,9 +35,9 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
|
|
|
35
35
|
nonObjectRemoveElementsShrink?: string;
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The elements to remove from the image subject (1=transparent text blocks, 2=specific names, 3=text, 4=
|
|
38
|
+
* The elements to remove from the image subject (1 = transparent text blocks, 2 = specific names, 3 = text, 4 = image blemishes). You can select multiple element types. This parameter is optional, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
39
39
|
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
40
|
-
* Refer to the product description for details
|
|
40
|
+
* Refer to the product description for details about each type.
|
|
41
41
|
* Image subject: The core product area in the image.
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
@@ -46,7 +46,7 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
|
|
|
46
46
|
objectRemoveElementsShrink?: string;
|
|
47
47
|
/**
|
|
48
48
|
* @remarks
|
|
49
|
-
* The specific removal area. This parameter must be used with the editor. The input format is four-point coordinates [xx,yy,zz,dd]. This parameter is
|
|
49
|
+
* The specific removal area. This parameter must be used with the editor. The input format is four-point coordinates [xx,yy,zz,dd]. This parameter is optional, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
50
50
|
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
@@ -55,7 +55,7 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
|
|
|
55
55
|
position?: string;
|
|
56
56
|
/**
|
|
57
57
|
* @remarks
|
|
58
|
-
* The user-specified image element links to remove. Multiple image links are supported. The input format is ["https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg","https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg"]. This parameter is
|
|
58
|
+
* The user-specified image element links to remove. Multiple image links are supported. The input format is ["https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg","https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg"]. This parameter is optional, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
59
59
|
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
@@ -64,7 +64,7 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
|
|
|
64
64
|
userImageShrink?: string;
|
|
65
65
|
/**
|
|
66
66
|
* @remarks
|
|
67
|
-
* The user-specified text to remove. Multiple text inputs are supported. The input format is ["xx","yy"]. This parameter is
|
|
67
|
+
* The user-specified text to remove. Multiple text inputs are supported. The input format is ["xx","yy"]. This parameter is optional, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
68
68
|
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationPlusResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The asynchronous task ID. Use
|
|
8
|
+
* The asynchronous task ID. Use this ID to poll for results through the queryTaskResult API operation.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* task-abc123
|
|
@@ -35,7 +35,7 @@ export class ImageTranslationPlusResponseBodyData extends $dara.Model {
|
|
|
35
35
|
export class ImageTranslationPlusResponseBody extends $dara.Model {
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The error code. This parameter is not returned
|
|
38
|
+
* The error code. This parameter is not returned if the call is successful.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* 200
|
|
@@ -48,7 +48,7 @@ export class ImageTranslationPlusResponseBody extends $dara.Model {
|
|
|
48
48
|
data?: ImageTranslationPlusResponseBodyData;
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
* The error message. This parameter is not returned
|
|
51
|
+
* The error message. This parameter is not returned if the call is successful.
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* OK
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationProRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* Specifies whether to use asynchronous mode. Default value: false (synchronous mode).
|
|
8
|
+
* Specifies whether to use asynchronous mode. Default value: false (synchronous mode). If you set this parameter to true, the API immediately returns a TaskId. Use the query translation result API to retrieve the final result.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* true
|
|
@@ -13,7 +13,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
13
13
|
async?: boolean;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The ID of the intervention glossary. This parameter is optional. Create the glossary
|
|
16
|
+
* The ID of the intervention glossary. This parameter is optional. Create the glossary in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* glossary_1
|
|
@@ -26,7 +26,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
26
26
|
* Image requirements:
|
|
27
27
|
* - Image URL: Must be publicly accessible.
|
|
28
28
|
* - Format: png, jpeg, jpg, bmp, or webp.
|
|
29
|
-
* - Pixels:
|
|
29
|
+
* - Pixels: Width and height must not exceed 4000 pixels each.
|
|
30
30
|
* - File size: The original file must be 10 MB or smaller.
|
|
31
31
|
*
|
|
32
32
|
* This parameter is required.
|
|
@@ -37,7 +37,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
37
37
|
imageUrl?: string;
|
|
38
38
|
/**
|
|
39
39
|
* @remarks
|
|
40
|
-
* Specifies whether to translate text on the image subject. This parameter is optional. Default value: false.
|
|
40
|
+
* Specifies whether to translate text on the image subject. This parameter is optional. Default value: false. This helps protect information such as embedded product names from being translated.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* false
|
|
@@ -65,7 +65,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
65
65
|
targetLanguage?: string;
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* Specifies whether to translate brand names on the image. This parameter is optional. Default value: false.
|
|
68
|
+
* Specifies whether to translate brand names on the image. This parameter is optional. Default value: false. This helps protect brand name information from being translated.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* false
|
|
@@ -73,7 +73,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
73
73
|
translatingBrandInTheProduct?: boolean;
|
|
74
74
|
/**
|
|
75
75
|
* @remarks
|
|
76
|
-
* Specifies whether to return layout information such as text position, font, and color.
|
|
76
|
+
* Specifies whether to return layout information such as text position, font, and color. Set this parameter to true to retrieve layer information for secondary editing with an image editor. Default value: false.
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
79
79
|
* false
|
|
@@ -215,7 +215,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTe
|
|
|
215
215
|
export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts extends $dara.Model {
|
|
216
216
|
/**
|
|
217
217
|
* @remarks
|
|
218
|
-
* The color
|
|
218
|
+
* The text color after translation.
|
|
219
219
|
*
|
|
220
220
|
* @example
|
|
221
221
|
* #515151
|
|
@@ -231,7 +231,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
231
231
|
fontsize?: number;
|
|
232
232
|
/**
|
|
233
233
|
* @remarks
|
|
234
|
-
* The horizontal layout. Valid values: center, left, right.
|
|
234
|
+
* The horizontal layout mode. Valid values: center, left, right.
|
|
235
235
|
*
|
|
236
236
|
* @example
|
|
237
237
|
* center
|
|
@@ -239,7 +239,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
239
239
|
horizontalLayout?: string;
|
|
240
240
|
/**
|
|
241
241
|
* @remarks
|
|
242
|
-
* The coordinates of the image
|
|
242
|
+
* The coordinates of the image repair area.
|
|
243
243
|
*/
|
|
244
244
|
imageRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect;
|
|
245
245
|
/**
|
|
@@ -265,7 +265,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
265
265
|
textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect;
|
|
266
266
|
/**
|
|
267
267
|
* @remarks
|
|
268
|
-
* Indicates whether the TextItem is valid. The
|
|
268
|
+
* Indicates whether the TextItem is valid. The TextItem is invalid if this value does not exist or is set to false.
|
|
269
269
|
*
|
|
270
270
|
* @example
|
|
271
271
|
* true
|
|
@@ -281,7 +281,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
281
281
|
value?: string;
|
|
282
282
|
/**
|
|
283
283
|
* @remarks
|
|
284
|
-
* The vertical layout. Valid values: center, top, down.
|
|
284
|
+
* The vertical layout mode. Valid values: center, top, and down.
|
|
285
285
|
*
|
|
286
286
|
* @example
|
|
287
287
|
* center
|
|
@@ -346,7 +346,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
346
346
|
* The original text before translation.
|
|
347
347
|
*
|
|
348
348
|
* @example
|
|
349
|
-
*
|
|
349
|
+
* 萌趣造型·清脆响铃
|
|
350
350
|
*/
|
|
351
351
|
content?: string;
|
|
352
352
|
/**
|
|
@@ -359,7 +359,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
359
359
|
fontsize?: number;
|
|
360
360
|
/**
|
|
361
361
|
* @remarks
|
|
362
|
-
* The horizontal layout. Valid values: center, left, right.
|
|
362
|
+
* The horizontal layout mode. Valid values: center, left, right.
|
|
363
363
|
*
|
|
364
364
|
* @example
|
|
365
365
|
* left
|
|
@@ -380,7 +380,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
380
380
|
texts?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts[];
|
|
381
381
|
/**
|
|
382
382
|
* @remarks
|
|
383
|
-
* The vertical layout. Valid values: center, top, down.
|
|
383
|
+
* The vertical layout mode. Valid values: center, top, and down.
|
|
384
384
|
*
|
|
385
385
|
* @example
|
|
386
386
|
* center
|
|
@@ -448,7 +448,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.M
|
|
|
448
448
|
repairedUrl?: string;
|
|
449
449
|
/**
|
|
450
450
|
* @remarks
|
|
451
|
-
* The collection of global IDs
|
|
451
|
+
* The collection of global IDs for the translated images.
|
|
452
452
|
*/
|
|
453
453
|
resultImageIds?: string[];
|
|
454
454
|
/**
|
|
@@ -595,7 +595,7 @@ export class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
|
|
|
595
595
|
export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
|
|
596
596
|
/**
|
|
597
597
|
* @remarks
|
|
598
|
-
* The URL of the
|
|
598
|
+
* The URL of the translated result image.
|
|
599
599
|
*
|
|
600
600
|
* @example
|
|
601
601
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
|
|
@@ -653,7 +653,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
|
|
|
653
653
|
taskId?: string;
|
|
654
654
|
/**
|
|
655
655
|
* @remarks
|
|
656
|
-
* The usage information,
|
|
656
|
+
* The usage information, such as the number of processed images.
|
|
657
657
|
*/
|
|
658
658
|
usageMap?: { [key: string]: number };
|
|
659
659
|
static names(): { [key: string]: string } {
|
|
@@ -703,12 +703,12 @@ export class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
703
703
|
code?: string;
|
|
704
704
|
/**
|
|
705
705
|
* @remarks
|
|
706
|
-
* The translation result data. ResultList contains the
|
|
706
|
+
* The translation result data. ResultList contains the URLs of the translation results. GenFiles contains EditInfo, which includes the recognized text information.
|
|
707
707
|
*/
|
|
708
708
|
data?: ImageTranslationProResponseBodyData;
|
|
709
709
|
/**
|
|
710
710
|
* @remarks
|
|
711
|
-
* The error message.
|
|
711
|
+
* The error message. "Success" is returned for successful calls. A specific error message is returned for failed calls, such as "The content contains sensitive data. Try other input."
|
|
712
712
|
*
|
|
713
713
|
* @example
|
|
714
714
|
* Success
|
|
@@ -716,7 +716,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
716
716
|
message?: string;
|
|
717
717
|
/**
|
|
718
718
|
* @remarks
|
|
719
|
-
* The request ID
|
|
719
|
+
* The request ID, which uniquely identifies the request.
|
|
720
720
|
*
|
|
721
721
|
* @example
|
|
722
722
|
* 61785C32-80C2-19A3-9E55-2C3702C84B40
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationStandardRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The intervention glossary ID. Optional.
|
|
8
|
+
* The intervention glossary ID. Optional. You must create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* glossary_1
|
|
@@ -26,7 +26,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
26
26
|
imageUrl?: string;
|
|
27
27
|
/**
|
|
28
28
|
* @remarks
|
|
29
|
-
* Specifies whether to translate text on the image
|
|
29
|
+
* Specifies whether to translate text on the product area of an image. Optional. Default value: false. This helps protect information by avoiding translation of embedded information such as product names.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* false
|
|
@@ -388,7 +388,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
388
388
|
font?: string[];
|
|
389
389
|
/**
|
|
390
390
|
* @remarks
|
|
391
|
-
* The product area
|
|
391
|
+
* The product area rectangles.
|
|
392
392
|
*/
|
|
393
393
|
goodsRects?: ImageTranslationStandardResponseBodyDataEditInfoGoodsRects;
|
|
394
394
|
/**
|
|
@@ -409,7 +409,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
409
409
|
languages?: string[];
|
|
410
410
|
/**
|
|
411
411
|
* @remarks
|
|
412
|
-
* The
|
|
412
|
+
* The original image URL.
|
|
413
413
|
*
|
|
414
414
|
* @example
|
|
415
415
|
* https://xiuxiu-pro.meitudata.com/posters/34d78f9157e5560a4d612949ca6f6485.jpg
|
|
@@ -417,7 +417,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
417
417
|
pictUrl?: string;
|
|
418
418
|
/**
|
|
419
419
|
* @remarks
|
|
420
|
-
* The
|
|
420
|
+
* The repaired image URL.
|
|
421
421
|
*
|
|
422
422
|
* @example
|
|
423
423
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.png
|
|
@@ -520,7 +520,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
|
|
|
520
520
|
editInfo?: ImageTranslationStandardResponseBodyDataEditInfo;
|
|
521
521
|
/**
|
|
522
522
|
* @remarks
|
|
523
|
-
* The URL of the image generated
|
|
523
|
+
* The URL of the image generated after image translation.
|
|
524
524
|
*
|
|
525
525
|
* @example
|
|
526
526
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
|
|
@@ -568,7 +568,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
|
|
|
568
568
|
export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
569
569
|
/**
|
|
570
570
|
* @remarks
|
|
571
|
-
* The response code. 200 indicates
|
|
571
|
+
* The response code. A value of 200 indicates a successful call. For other response codes, refer to the error code information.
|
|
572
572
|
*
|
|
573
573
|
* @example
|
|
574
574
|
* 200
|
|
@@ -589,7 +589,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
|
589
589
|
message?: string;
|
|
590
590
|
/**
|
|
591
591
|
* @remarks
|
|
592
|
-
* The request ID,
|
|
592
|
+
* The request ID, which uniquely identifies the request.
|
|
593
593
|
*
|
|
594
594
|
* @example
|
|
595
595
|
* 1CEC4D94-905A-1ED1-A7B4-1BFEFFB3D850
|
|
@@ -597,7 +597,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
|
597
597
|
requestId?: string;
|
|
598
598
|
/**
|
|
599
599
|
* @remarks
|
|
600
|
-
* Indicates whether the call is successful. true indicates success. false indicates failure.
|
|
600
|
+
* Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
|
|
601
601
|
*
|
|
602
602
|
* @example
|
|
603
603
|
* true
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
72
|
+
* The request ID, which uniquely identifies the request.
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
75
|
* 42542C6C-F2A4-1B2B-8EFF-130C8FD06F54
|