@alicloud/aidge20260428 5.10.1 → 5.12.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 +816 -672
- package/dist/client.js +900 -672
- package/dist/client.js.map +1 -1
- package/dist/models/AddDisplayKnowledgeRequest.d.ts +2 -2
- package/dist/models/AddDisplayKnowledgeResponseBody.d.ts +7 -7
- package/dist/models/AiTryOnRequest.d.ts +3 -3
- package/dist/models/AiTryOnResponseBody.d.ts +2 -4
- package/dist/models/AiTryOnResponseBody.js.map +1 -1
- package/dist/models/AssetOptimizeLiteRequest.d.ts +1 -1
- package/dist/models/AssetOptimizeLiteResponseBody.d.ts +2 -2
- package/dist/models/AssetOptimizeProRequest.d.ts +12 -12
- package/dist/models/AssetOptimizeProResponseBody.d.ts +6 -6
- package/dist/models/AssetOptimizeProShrinkRequest.d.ts +12 -12
- package/dist/models/CategoryAttributeMatchRequest.d.ts +9 -9
- package/dist/models/CategoryAttributeMatchResponseBody.d.ts +13 -13
- package/dist/models/CategoryAttributeMatchShrinkRequest.d.ts +9 -9
- package/dist/models/CategoryMatchRequest.d.ts +10 -10
- package/dist/models/CategoryMatchResponseBody.d.ts +12 -12
- package/dist/models/DeleteDisplayKnowledgeRequest.d.ts +1 -1
- package/dist/models/DeleteDisplayKnowledgeResponseBody.d.ts +8 -8
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.d.ts +1 -1
- package/dist/models/DiduiAreaDeductionProResponseBody.d.ts +4 -4
- package/dist/models/DiduiAreaDeductionRequest.d.ts +8 -8
- package/dist/models/DiduiAreaDeductionResponseBody.d.ts +6 -6
- package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +3 -3
- package/dist/models/DocumentTranslateRequest.d.ts +6 -7
- package/dist/models/DocumentTranslateRequest.js.map +1 -1
- package/dist/models/DocumentTranslateResponseBody.d.ts +8 -6
- package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
- package/dist/models/EcomVideoRecreationRequest.d.ts +15 -15
- package/dist/models/EcomVideoRecreationResponseBody.d.ts +1 -1
- package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +2 -2
- package/dist/models/GeneralRephotographyDetectionRequest.d.ts +1 -1
- package/dist/models/GeneralRephotographyDetectionResponseBody.d.ts +11 -11
- package/dist/models/GenerateProductContentRequest.d.ts +119 -0
- package/dist/models/GenerateProductContentRequest.js +80 -0
- package/dist/models/GenerateProductContentRequest.js.map +1 -0
- package/dist/models/GenerateProductContentResponse.d.ts +19 -0
- package/dist/models/GenerateProductContentResponse.js +69 -0
- package/dist/models/GenerateProductContentResponse.js.map +1 -0
- package/dist/models/GenerateProductContentResponseBody.d.ts +111 -0
- package/dist/models/GenerateProductContentResponseBody.js +109 -0
- package/dist/models/GenerateProductContentResponseBody.js.map +1 -0
- package/dist/models/ImageCroppingRequest.d.ts +1 -1
- package/dist/models/ImageCroppingResponseBody.d.ts +1 -3
- package/dist/models/ImageCroppingResponseBody.js.map +1 -1
- package/dist/models/ImageMattingAsyncRequest.d.ts +2 -2
- package/dist/models/ImageMattingAsyncResponseBody.d.ts +4 -6
- package/dist/models/ImageMattingAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageMattingRequest.d.ts +5 -6
- package/dist/models/ImageMattingRequest.js.map +1 -1
- package/dist/models/ImageMattingResponseBody.d.ts +26 -7
- package/dist/models/ImageMattingResponseBody.js +2 -0
- package/dist/models/ImageMattingResponseBody.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncRequest.d.ts +10 -35
- package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +5 -7
- package/dist/models/ImageRecognitionAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +10 -35
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageRecognitionRequest.d.ts +4 -4
- package/dist/models/ImageRecognitionResponseBody.d.ts +7 -7
- package/dist/models/ImageRecognitionShrinkRequest.d.ts +4 -4
- package/dist/models/ImageRemovalProAsyncRequest.d.ts +2 -3
- package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageRemovalProRequest.d.ts +2 -3
- package/dist/models/ImageRemovalProRequest.js.map +1 -1
- package/dist/models/ImageRemovalProResponseBody.d.ts +6 -6
- package/dist/models/ImageRemoveAsyncRequest.d.ts +7 -18
- package/dist/models/ImageRemoveAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemoveAsyncResponseBody.d.ts +5 -7
- package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +7 -18
- package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +10 -10
- package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +6 -6
- package/dist/models/ImageTranslationPlusRequest.d.ts +2 -2
- package/dist/models/ImageTranslationPlusResponseBody.d.ts +5 -5
- package/dist/models/ImageTranslationProAsyncRequest.d.ts +6 -6
- package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageTranslationProRequest.d.ts +16 -17
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +24 -26
- package/dist/models/ImageTranslationProResponseBody.js.map +1 -1
- package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +2 -2
- package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +3 -3
- package/dist/models/ImageTranslationStandardRequest.d.ts +12 -12
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +54 -9
- package/dist/models/ImageTranslationStandardResponseBody.js.map +1 -1
- package/dist/models/ImageUpscaleRequest.d.ts +31 -0
- package/dist/models/ImageUpscaleRequest.js +60 -0
- package/dist/models/ImageUpscaleRequest.js.map +1 -0
- package/dist/models/ImageUpscaleResponse.d.ts +19 -0
- package/dist/models/ImageUpscaleResponse.js +69 -0
- package/dist/models/ImageUpscaleResponse.js.map +1 -0
- package/dist/models/ImageUpscaleResponseBody.d.ts +160 -0
- package/dist/models/ImageUpscaleResponseBody.js +146 -0
- package/dist/models/ImageUpscaleResponseBody.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeRequest.d.ts +1 -1
- package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +11 -11
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.d.ts +1 -1
- package/dist/models/SizeChartExtractAsyncRequest.d.ts +3 -3
- package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +2 -2
- package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +3 -3
- package/dist/models/TextTranslateAsyncRequest.d.ts +12 -12
- package/dist/models/TextTranslateAsyncResponseBody.d.ts +3 -3
- package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +12 -12
- package/dist/models/UpdateDisplayKnowledgeRequest.d.ts +1 -1
- package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +6 -6
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.d.ts +1 -1
- package/dist/models/VideoTranslationRequest.d.ts +17 -8
- package/dist/models/VideoTranslationRequest.js.map +1 -1
- package/dist/models/VideoTranslationResponseBody.d.ts +6 -4
- package/dist/models/VideoTranslationResponseBody.js.map +1 -1
- package/dist/models/VideoTranslationShrinkRequest.d.ts +17 -8
- package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
- package/dist/models/VirtualTryOnRequest.d.ts +3 -3
- package/dist/models/VirtualTryOnResponseBody.d.ts +7 -5
- package/dist/models/VirtualTryOnResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +10 -0
- package/dist/models/model.js +27 -7
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +918 -672
- package/src/models/AddDisplayKnowledgeRequest.ts +2 -2
- package/src/models/AddDisplayKnowledgeResponseBody.ts +7 -7
- package/src/models/AiTryOnRequest.ts +3 -3
- package/src/models/AiTryOnResponseBody.ts +2 -4
- package/src/models/AssetOptimizeLiteRequest.ts +1 -1
- package/src/models/AssetOptimizeLiteResponseBody.ts +2 -2
- package/src/models/AssetOptimizeProRequest.ts +12 -12
- package/src/models/AssetOptimizeProResponseBody.ts +6 -6
- package/src/models/AssetOptimizeProShrinkRequest.ts +12 -12
- package/src/models/CategoryAttributeMatchRequest.ts +9 -9
- package/src/models/CategoryAttributeMatchResponseBody.ts +13 -13
- package/src/models/CategoryAttributeMatchShrinkRequest.ts +9 -9
- package/src/models/CategoryMatchRequest.ts +10 -10
- package/src/models/CategoryMatchResponseBody.ts +12 -12
- package/src/models/DeleteDisplayKnowledgeRequest.ts +1 -1
- package/src/models/DeleteDisplayKnowledgeResponseBody.ts +8 -8
- package/src/models/DeleteDisplayKnowledgeShrinkRequest.ts +1 -1
- package/src/models/DiduiAreaDeductionProResponseBody.ts +4 -4
- package/src/models/DiduiAreaDeductionRequest.ts +8 -8
- package/src/models/DiduiAreaDeductionResponseBody.ts +6 -6
- package/src/models/DiduiAreaDeductionShrinkRequest.ts +3 -3
- package/src/models/DocumentTranslateRequest.ts +6 -7
- package/src/models/DocumentTranslateResponseBody.ts +8 -6
- package/src/models/EcomVideoRecreationRequest.ts +15 -15
- package/src/models/EcomVideoRecreationResponseBody.ts +1 -1
- package/src/models/EcomVideoRecreationShrinkRequest.ts +2 -2
- package/src/models/GeneralRephotographyDetectionRequest.ts +1 -1
- package/src/models/GeneralRephotographyDetectionResponseBody.ts +11 -11
- package/src/models/GenerateProductContentRequest.ts +154 -0
- package/src/models/GenerateProductContentResponse.ts +40 -0
- package/src/models/GenerateProductContentResponseBody.ts +164 -0
- package/src/models/ImageCroppingRequest.ts +1 -1
- package/src/models/ImageCroppingResponseBody.ts +1 -3
- package/src/models/ImageMattingAsyncRequest.ts +2 -2
- package/src/models/ImageMattingAsyncResponseBody.ts +4 -6
- package/src/models/ImageMattingRequest.ts +5 -6
- package/src/models/ImageMattingResponseBody.ts +28 -7
- package/src/models/ImageRecognitionAsyncRequest.ts +10 -35
- package/src/models/ImageRecognitionAsyncResponseBody.ts +5 -7
- package/src/models/ImageRecognitionAsyncShrinkRequest.ts +10 -35
- package/src/models/ImageRecognitionRequest.ts +4 -4
- package/src/models/ImageRecognitionResponseBody.ts +7 -7
- package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
- package/src/models/ImageRemovalProAsyncRequest.ts +2 -3
- package/src/models/ImageRemovalProAsyncResponseBody.ts +5 -5
- package/src/models/ImageRemovalProRequest.ts +2 -3
- package/src/models/ImageRemovalProResponseBody.ts +6 -6
- package/src/models/ImageRemoveAsyncRequest.ts +7 -18
- package/src/models/ImageRemoveAsyncResponseBody.ts +5 -7
- package/src/models/ImageRemoveAsyncShrinkRequest.ts +7 -18
- package/src/models/ImageTranslationPlusAsyncRequest.ts +10 -10
- package/src/models/ImageTranslationPlusAsyncResponseBody.ts +6 -6
- package/src/models/ImageTranslationPlusRequest.ts +2 -2
- package/src/models/ImageTranslationPlusResponseBody.ts +5 -5
- package/src/models/ImageTranslationProAsyncRequest.ts +6 -6
- package/src/models/ImageTranslationProAsyncResponseBody.ts +5 -5
- package/src/models/ImageTranslationProRequest.ts +17 -18
- package/src/models/ImageTranslationProResponseBody.ts +24 -26
- package/src/models/ImageTranslationStandardAsyncRequest.ts +2 -2
- package/src/models/ImageTranslationStandardAsyncResponseBody.ts +3 -3
- package/src/models/ImageTranslationStandardRequest.ts +12 -12
- package/src/models/ImageTranslationStandardResponseBody.ts +54 -9
- package/src/models/ImageUpscaleRequest.ts +46 -0
- package/src/models/ImageUpscaleResponse.ts +40 -0
- package/src/models/ImageUpscaleResponseBody.ts +234 -0
- package/src/models/QueryDisplayKnowledgeRequest.ts +1 -1
- package/src/models/QueryDisplayKnowledgeResponseBody.ts +11 -11
- package/src/models/QueryDisplayKnowledgeShrinkRequest.ts +1 -1
- package/src/models/SizeChartExtractAsyncRequest.ts +3 -3
- package/src/models/SizeChartExtractAsyncResponseBody.ts +2 -2
- package/src/models/SizeChartExtractAsyncShrinkRequest.ts +3 -3
- package/src/models/TextTranslateAsyncRequest.ts +12 -12
- package/src/models/TextTranslateAsyncResponseBody.ts +3 -3
- package/src/models/TextTranslateAsyncShrinkRequest.ts +12 -12
- package/src/models/UpdateDisplayKnowledgeRequest.ts +1 -1
- package/src/models/UpdateDisplayKnowledgeResponseBody.ts +6 -6
- package/src/models/UpdateDisplayKnowledgeShrinkRequest.ts +1 -1
- package/src/models/VideoTranslationRequest.ts +17 -8
- package/src/models/VideoTranslationResponseBody.ts +6 -4
- package/src/models/VideoTranslationShrinkRequest.ts +17 -8
- package/src/models/VirtualTryOnRequest.ts +3 -3
- package/src/models/VirtualTryOnResponseBody.ts +7 -5
- package/src/models/model.ts +10 -0
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRemoveAsyncRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The business order ID of the caller.
|
|
5
|
+
* The business order ID of the caller. It is recorded upon acceptance and returned as is when querying the asynchronous task result.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* order-20260928-001
|
|
@@ -10,7 +10,7 @@ export declare class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
10
10
|
bizId?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size
|
|
13
|
+
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size must not exceed 10 MB.
|
|
14
14
|
*
|
|
15
15
|
* This parameter is required.
|
|
16
16
|
*
|
|
@@ -20,9 +20,7 @@ export declare class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
20
20
|
imageUrl?: string;
|
|
21
21
|
/**
|
|
22
22
|
* @remarks
|
|
23
|
-
* The specific area to
|
|
24
|
-
* If this parameter is specified, it takes precedence and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage.
|
|
25
|
-
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
23
|
+
* The specific area to remove. This parameter must be used in conjunction with the editor. The input format is RLE. If this parameter is specified, it takes precedence and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority takes effect as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
26
24
|
*
|
|
27
25
|
* @example
|
|
28
26
|
* "474556 160 475356 160 476156 160 476956 160 477756 160 478556 160 479356 160 480156 160 480956 160 481756 160 482556 160 483356 160 484156 160 484956 160 485756 160 486556 160 487356 160 488156 160 488956 160 489756 160 490556 160 491356 160 492156 160"
|
|
@@ -35,21 +33,12 @@ export declare class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
35
33
|
nonObjectRemoveElements?: number[];
|
|
36
34
|
/**
|
|
37
35
|
* @remarks
|
|
38
|
-
* The types of elements to remove from the image subject. Valid values:
|
|
39
|
-
* - 1: Transparent text blocks.
|
|
40
|
-
* - 2: Specific names.
|
|
41
|
-
* - 3: Text.
|
|
42
|
-
* - 4: Promotional stickers.
|
|
43
|
-
* You can select multiple element types. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage.
|
|
44
|
-
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
45
|
-
* For more information about each type, see the product documentation.
|
|
46
|
-
* Image subject: the core product area in the image.
|
|
36
|
+
* The types of elements to remove from the image subject. Valid values: 1: transparent text blocks. 2: specific names. 3: text. 4: watermarks. You can select multiple element types. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority takes effect as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements. For more information about each type, see the product documentation. Image subject: the core product area in the image.
|
|
47
37
|
*/
|
|
48
38
|
objectRemoveElements?: number[];
|
|
49
39
|
/**
|
|
50
40
|
* @remarks
|
|
51
|
-
* The specific area to
|
|
52
|
-
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
41
|
+
* The specific area to remove. This parameter must be used in conjunction with the editor. The input format is four-point coordinates [xx,yy,zz,dd]. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority takes effect as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
53
42
|
*
|
|
54
43
|
* @example
|
|
55
44
|
* [10,20,100,200]
|
|
@@ -57,12 +46,12 @@ export declare class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
57
46
|
position?: string;
|
|
58
47
|
/**
|
|
59
48
|
* @remarks
|
|
60
|
-
* The list of URLs
|
|
49
|
+
* The list of URLs of image elements to remove specified by the user.
|
|
61
50
|
*/
|
|
62
51
|
userImage?: string[];
|
|
63
52
|
/**
|
|
64
53
|
* @remarks
|
|
65
|
-
* The list of
|
|
54
|
+
* The list of text strings to remove specified by the user.
|
|
66
55
|
*/
|
|
67
56
|
userText?: string[];
|
|
68
57
|
static names(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRemoveAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRemoveAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAuDtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,uBAAuB,EAAE,yBAAyB;YAClD,oBAAoB,EAAE,sBAAsB;YAC5C,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;YACd,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAClE,oBAAoB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC/D,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACpD,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACpD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC;YAC/C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;QAC1D,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC;YAC5C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACvD,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApGD,0DAoGC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRemoveAsyncResponseBodyData extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The task ID used to query the
|
|
5
|
+
* The task ID used to query the asynchronous task result.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
@@ -22,7 +22,7 @@ export declare class ImageRemoveAsyncResponseBodyData extends $dara.Model {
|
|
|
22
22
|
export declare class ImageRemoveAsyncResponseBody extends $dara.Model {
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The status code, such as
|
|
25
|
+
* The status code, such as success.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* success
|
|
@@ -35,7 +35,7 @@ export declare class ImageRemoveAsyncResponseBody extends $dara.Model {
|
|
|
35
35
|
data?: ImageRemoveAsyncResponseBodyData;
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The error message, such as "The
|
|
38
|
+
* The error message, such as \\"The parameter contains sensitive information. Please try another input.\\"
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* OK
|
|
@@ -43,7 +43,7 @@ export declare class ImageRemoveAsyncResponseBody extends $dara.Model {
|
|
|
43
43
|
message?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The request ID, which is used to identify a unique request.
|
|
46
|
+
* The request ID, which is used to identify a unique request call.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -51,9 +51,7 @@ export declare class ImageRemoveAsyncResponseBody extends $dara.Model {
|
|
|
51
51
|
requestId?: string;
|
|
52
52
|
/**
|
|
53
53
|
* @remarks
|
|
54
|
-
* Indicates whether the call is successful. Valid values:
|
|
55
|
-
* - true: The call is successful.
|
|
56
|
-
* - false: The call fails.
|
|
54
|
+
* Indicates whether the call is successful. Valid values: true: The call is successful. false: The call failed.
|
|
57
55
|
*
|
|
58
56
|
* @example
|
|
59
57
|
* True
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRemoveAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAS/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,4EA4BC;AAED,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRemoveAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAS/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,4EA4BC;AAED,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAsC3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,gCAAgC;YACtC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,oEAoEC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The business order ID of the caller.
|
|
5
|
+
* The business order ID of the caller. It is recorded upon acceptance and returned as is when querying the asynchronous task result.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* order-20260928-001
|
|
@@ -10,7 +10,7 @@ export declare class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
|
10
10
|
bizId?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size
|
|
13
|
+
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size must not exceed 10 MB.
|
|
14
14
|
*
|
|
15
15
|
* This parameter is required.
|
|
16
16
|
*
|
|
@@ -20,9 +20,7 @@ export declare class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
|
20
20
|
imageUrl?: string;
|
|
21
21
|
/**
|
|
22
22
|
* @remarks
|
|
23
|
-
* The specific area to
|
|
24
|
-
* If this parameter is specified, it takes precedence and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage.
|
|
25
|
-
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
23
|
+
* The specific area to remove. This parameter must be used in conjunction with the editor. The input format is RLE. If this parameter is specified, it takes precedence and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority takes effect as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
26
24
|
*
|
|
27
25
|
* @example
|
|
28
26
|
* "474556 160 475356 160 476156 160 476956 160 477756 160 478556 160 479356 160 480156 160 480956 160 481756 160 482556 160 483356 160 484156 160 484956 160 485756 160 486556 160 487356 160 488156 160 488956 160 489756 160 490556 160 491356 160 492156 160"
|
|
@@ -35,21 +33,12 @@ export declare class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
|
35
33
|
nonObjectRemoveElementsShrink?: string;
|
|
36
34
|
/**
|
|
37
35
|
* @remarks
|
|
38
|
-
* The types of elements to remove from the image subject. Valid values:
|
|
39
|
-
* - 1: Transparent text blocks.
|
|
40
|
-
* - 2: Specific names.
|
|
41
|
-
* - 3: Text.
|
|
42
|
-
* - 4: Promotional stickers.
|
|
43
|
-
* You can select multiple element types. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage.
|
|
44
|
-
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
45
|
-
* For more information about each type, see the product documentation.
|
|
46
|
-
* Image subject: the core product area in the image.
|
|
36
|
+
* The types of elements to remove from the image subject. Valid values: 1: transparent text blocks. 2: specific names. 3: text. 4: watermarks. You can select multiple element types. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority takes effect as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements. For more information about each type, see the product documentation. Image subject: the core product area in the image.
|
|
47
37
|
*/
|
|
48
38
|
objectRemoveElementsShrink?: string;
|
|
49
39
|
/**
|
|
50
40
|
* @remarks
|
|
51
|
-
* The specific area to
|
|
52
|
-
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
41
|
+
* The specific area to remove. This parameter must be used in conjunction with the editor. The input format is four-point coordinates [xx,yy,zz,dd]. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority takes effect as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
53
42
|
*
|
|
54
43
|
* @example
|
|
55
44
|
* [10,20,100,200]
|
|
@@ -57,12 +46,12 @@ export declare class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
|
57
46
|
position?: string;
|
|
58
47
|
/**
|
|
59
48
|
* @remarks
|
|
60
|
-
* The list of URLs
|
|
49
|
+
* The list of URLs of image elements to remove specified by the user.
|
|
61
50
|
*/
|
|
62
51
|
userImageShrink?: string;
|
|
63
52
|
/**
|
|
64
53
|
* @remarks
|
|
65
|
-
* The list of
|
|
54
|
+
* The list of text strings to remove specified by the user.
|
|
66
55
|
*/
|
|
67
56
|
userTextShrink?: string;
|
|
68
57
|
static names(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRemoveAsyncShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRemoveAsyncShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAuD5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,6BAA6B,EAAE,yBAAyB;YACxD,0BAA0B,EAAE,sBAAsB;YAClD,QAAQ,EAAE,UAAU;YACpB,eAAe,EAAE,WAAW;YAC5B,cAAc,EAAE,UAAU;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;YACd,6BAA6B,EAAE,QAAQ;YACvC,0BAA0B,EAAE,QAAQ;YACpC,QAAQ,EAAE,QAAQ;YAClB,eAAe,EAAE,QAAQ;YACzB,cAAc,EAAE,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxFD,sEAwFC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The business order
|
|
5
|
+
* The business order number of the caller. It is recorded upon acceptance and returned as is when querying the asynchronous task result.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* order-20260928-001
|
|
@@ -10,7 +10,7 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
10
10
|
bizId?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The intervention glossary
|
|
13
|
+
* The ID of the intervention glossary. The intervention glossary ID must be created separately and provided in the input parameters. If the provided intervention glossary ID is empty, the translation results will not be modified.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* glossary_1
|
|
@@ -18,10 +18,10 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
18
18
|
glossary?: string;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
* * Image URL:
|
|
22
|
-
* * Format: PNG, JPEG, JPG, BMP, or
|
|
23
|
-
* * Resolution: The width and height
|
|
24
|
-
* * File size: The original file
|
|
21
|
+
* * Image URL: Must be publicly accessible over the Internet.
|
|
22
|
+
* * Format: PNG, JPEG, JPG, BMP, or WebP.
|
|
23
|
+
* * Resolution: The width and height must not exceed 4,000 pixels.
|
|
24
|
+
* * File size: The original file must be less than or equal to 10 MB.
|
|
25
25
|
*
|
|
26
26
|
* This parameter is required.
|
|
27
27
|
*
|
|
@@ -31,7 +31,7 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
31
31
|
imageUrl?: string;
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* Specifies whether to translate the text on the image subject. This helps you protect information and prevent embedded information
|
|
34
|
+
* Specifies whether to translate the text on the image subject. This helps you protect information and prevent embedded information such as product names from being translated. In the example image, the text in the red box represents the text on the subject, and the text in the blue box represents the text not on the subject.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* false
|
|
@@ -49,7 +49,7 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
49
49
|
sourceLanguage?: string;
|
|
50
50
|
/**
|
|
51
51
|
* @remarks
|
|
52
|
-
* The target language code. We recommend
|
|
52
|
+
* The target language code. We recommend using the 12 minor language pairs listed above.
|
|
53
53
|
*
|
|
54
54
|
* This parameter is required.
|
|
55
55
|
*
|
|
@@ -59,7 +59,7 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
59
59
|
targetLanguage?: string;
|
|
60
60
|
/**
|
|
61
61
|
* @remarks
|
|
62
|
-
* Specifies whether to translate the brand
|
|
62
|
+
* Specifies whether to translate the brand names in the image. This helps you protect brand name information from being translated. Default value: false, which indicates that brand names are not translated. In the example image, "Lazy Corner" represents the brand name.
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* false
|
|
@@ -67,7 +67,7 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
67
67
|
translatingBrandInTheProduct?: boolean;
|
|
68
68
|
/**
|
|
69
69
|
* @remarks
|
|
70
|
-
* Specifies whether to return layout information such as the position, font, and color of the text. This can be used to obtain data when
|
|
70
|
+
* Specifies whether to return layout information such as the position, font, and color of the text. This can be used to obtain data when integrating the image editor for secondary editing. You can call the image translation result query API to obtain the complete parameter information.
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
73
|
* false
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageTranslationPlusAsyncResponseBodyData extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The identifier of the asynchronous task, which is used for result
|
|
5
|
+
* The identifier of the asynchronous task, which is used for result query and notification association. Do not use the example prefix as a business validation rule.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
@@ -22,7 +22,7 @@ export declare class ImageTranslationPlusAsyncResponseBodyData extends $dara.Mod
|
|
|
22
22
|
export declare class ImageTranslationPlusAsyncResponseBody extends $dara.Model {
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The response code for the submission call.
|
|
25
|
+
* The response code for the submission call. The value success indicates a successful call.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* success
|
|
@@ -30,12 +30,12 @@ export declare class ImageTranslationPlusAsyncResponseBody extends $dara.Model {
|
|
|
30
30
|
code?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* The submission result of the
|
|
33
|
+
* The submission result of the Image Translation Plus asynchronous task.
|
|
34
34
|
*/
|
|
35
35
|
data?: ImageTranslationPlusAsyncResponseBodyData;
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The error message, such as
|
|
38
|
+
* The error message, such as "The content contains sensitive data. Try another input."
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* OK
|
|
@@ -43,7 +43,7 @@ export declare class ImageTranslationPlusAsyncResponseBody extends $dara.Model {
|
|
|
43
43
|
message?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The unique
|
|
46
|
+
* The unique identity of the request, used for troubleshooting and Tracing Analysis.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -51,7 +51,7 @@ export declare class ImageTranslationPlusAsyncResponseBody extends $dara.Model {
|
|
|
51
51
|
requestId?: string;
|
|
52
52
|
/**
|
|
53
53
|
* @remarks
|
|
54
|
-
* Specifies whether the submission call is successful. This does not
|
|
54
|
+
* Specifies whether the submission call is successful. This does not mean that the translation is completed. A value of true indicates success, and a value of false indicates failure.
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
57
|
* True
|
|
@@ -20,7 +20,7 @@ export declare class ImageTranslationPlusRequest extends $dara.Model {
|
|
|
20
20
|
imageUrl?: string;
|
|
21
21
|
/**
|
|
22
22
|
* @remarks
|
|
23
|
-
* Specifies whether to translate text on the product
|
|
23
|
+
* Specifies whether to translate the text on the product subject. This parameter is optional. Default value: false.
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* false
|
|
@@ -48,7 +48,7 @@ export declare class ImageTranslationPlusRequest extends $dara.Model {
|
|
|
48
48
|
targetLanguage?: string;
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
* Specifies whether to translate
|
|
51
|
+
* Specifies whether to translate the text on the brand. This parameter is optional. Default value: false.
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* false
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageTranslationPlusResponseBodyData extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The asynchronous task
|
|
5
|
+
* The ID of the asynchronous task. You can use this ID to poll the result by calling the queryTaskResult operation.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* task-abc123
|
|
@@ -22,7 +22,7 @@ export declare class ImageTranslationPlusResponseBodyData extends $dara.Model {
|
|
|
22
22
|
export declare class ImageTranslationPlusResponseBody extends $dara.Model {
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The error code. This parameter is not returned
|
|
25
|
+
* The error code. This parameter is not returned when the call is successful.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* 200
|
|
@@ -30,12 +30,12 @@ export declare class ImageTranslationPlusResponseBody extends $dara.Model {
|
|
|
30
30
|
code?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* The asynchronous task
|
|
33
|
+
* The submission result of the asynchronous task.
|
|
34
34
|
*/
|
|
35
35
|
data?: ImageTranslationPlusResponseBodyData;
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The error message. This parameter is not returned
|
|
38
|
+
* The error message. This parameter is not returned when the call is successful.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* OK
|
|
@@ -53,7 +53,7 @@ export declare class ImageTranslationPlusResponseBody extends $dara.Model {
|
|
|
53
53
|
* @remarks
|
|
54
54
|
* Indicates whether the call is successful. Valid values:
|
|
55
55
|
* - true: The call is successful.
|
|
56
|
-
* - false: The call
|
|
56
|
+
* - false: The call fails.
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
59
|
* True
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageTranslationProAsyncRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The business ID of the caller. This ID is recorded when the request is accepted and returned as-is when you query the asynchronous task result.
|
|
5
|
+
* The business order ID of the caller. This ID is recorded when the request is accepted and returned as-is when you query the asynchronous task result.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* order-20260928-001
|
|
@@ -18,10 +18,10 @@ export declare class ImageTranslationProAsyncRequest extends $dara.Model {
|
|
|
18
18
|
glossary?: string;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
21
|
+
* * Image URL: Must be accessible over the Internet.
|
|
22
|
+
* * Format: PNG, JPEG, JPG, BMP, and WebP.
|
|
23
|
+
* * Pixels: The width and height must not exceed 4,000.
|
|
24
|
+
* * File size: The original file must be less than or equal to 10 MB.
|
|
25
25
|
*
|
|
26
26
|
* This parameter is required.
|
|
27
27
|
*
|
|
@@ -67,7 +67,7 @@ export declare class ImageTranslationProAsyncRequest extends $dara.Model {
|
|
|
67
67
|
translatingBrandInTheProduct?: boolean;
|
|
68
68
|
/**
|
|
69
69
|
* @remarks
|
|
70
|
-
* Specifies whether to return layout information such as the position, font, and color of the text.
|
|
70
|
+
* Specifies whether to return layout information such as the position, font, and color of the text. When this parameter is set to true, layer information is returned, which can be used for secondary editing in an image editor. Default value: false.
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
73
|
* false
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageTranslationProAsyncResponseBodyData extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The
|
|
5
|
+
* The identifier of the asynchronous task, which is used for result queries and notification association. Do not use the example prefix as a business validation rule.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
@@ -22,7 +22,7 @@ export declare class ImageTranslationProAsyncResponseBodyData extends $dara.Mode
|
|
|
22
22
|
export declare class ImageTranslationProAsyncResponseBody extends $dara.Model {
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The response code. A value of success indicates that the task is submitted.
|
|
25
|
+
* The response code. A value of success indicates that the task is submitted successfully.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* success
|
|
@@ -35,7 +35,7 @@ export declare class ImageTranslationProAsyncResponseBody extends $dara.Model {
|
|
|
35
35
|
data?: ImageTranslationProAsyncResponseBodyData;
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The call description. A
|
|
38
|
+
* The call description. A successful call returns Success. For a failed call, read the actual error message.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* success
|
|
@@ -43,7 +43,7 @@ export declare class ImageTranslationProAsyncResponseBody extends $dara.Model {
|
|
|
43
43
|
message?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The ID of the submission request
|
|
46
|
+
* The ID of the submission request, which is used for troubleshooting.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -51,7 +51,7 @@ export declare class ImageTranslationProAsyncResponseBody extends $dara.Model {
|
|
|
51
51
|
requestId?: string;
|
|
52
52
|
/**
|
|
53
53
|
* @remarks
|
|
54
|
-
* Indicates whether the submission call is successful. This does not
|
|
54
|
+
* Indicates whether the submission call is successful. This does not mean that the translation is completed.
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
57
|
* True
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageTranslationProRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* Specifies whether to use asynchronous mode. Default value: false
|
|
5
|
+
* Specifies whether to use the asynchronous mode. Default value: false, which indicates the synchronous mode. If set to true, the API immediately returns a TaskId, and you must call the query translation results API to obtain the final results.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* true
|
|
@@ -10,7 +10,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
10
10
|
async?: boolean;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The ID of the intervention glossary.
|
|
13
|
+
* The ID of the intervention glossary. Optional. You must create the glossary in the console and provide its ID. If the intervention glossary ID is empty, the translation results are not modified.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* glossary_1
|
|
@@ -18,13 +18,12 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
18
18
|
glossary?: string;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
* The URL of the
|
|
22
|
-
*
|
|
21
|
+
* The URL of the source image. Required.
|
|
23
22
|
* Image requirements:
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
23
|
+
* • Image URL: Must be publicly accessible.
|
|
24
|
+
* • Format: PNG, JPEG, JPG, BMP, or WEBP.
|
|
25
|
+
* • Pixels: The width and height must not exceed 4,000 pixels.
|
|
26
|
+
* • File size: The original file must be 10 MB or smaller.
|
|
28
27
|
*
|
|
29
28
|
* This parameter is required.
|
|
30
29
|
*
|
|
@@ -34,7 +33,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
34
33
|
imageUrl?: string;
|
|
35
34
|
/**
|
|
36
35
|
* @remarks
|
|
37
|
-
* Specifies whether to translate text on the
|
|
36
|
+
* Specifies whether to translate text on the product subject in the image. Optional. Default value: false. This helps you protect information and prevents embedded information such as product names from being translated.
|
|
38
37
|
*
|
|
39
38
|
* @example
|
|
40
39
|
* false
|
|
@@ -42,9 +41,9 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
42
41
|
includingProductArea?: boolean;
|
|
43
42
|
/**
|
|
44
43
|
* @remarks
|
|
45
|
-
* The source language code.
|
|
46
|
-
* <props="china">For supported language
|
|
47
|
-
* <props="intl">For supported language
|
|
44
|
+
* The source language code. Required.
|
|
45
|
+
* <props="china">For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
46
|
+
* <props="intl">For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping).
|
|
48
47
|
*
|
|
49
48
|
* This parameter is required.
|
|
50
49
|
*
|
|
@@ -54,9 +53,9 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
54
53
|
sourceLanguage?: string;
|
|
55
54
|
/**
|
|
56
55
|
* @remarks
|
|
57
|
-
* The target language code.
|
|
58
|
-
* <props="china">For supported language
|
|
59
|
-
* <props="intl">For supported language
|
|
56
|
+
* The target language code. Required.
|
|
57
|
+
* <props="china">For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
58
|
+
* <props="intl">For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping).
|
|
60
59
|
*
|
|
61
60
|
* This parameter is required.
|
|
62
61
|
*
|
|
@@ -66,7 +65,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
66
65
|
targetLanguage?: string;
|
|
67
66
|
/**
|
|
68
67
|
* @remarks
|
|
69
|
-
* Specifies whether to translate brand names
|
|
68
|
+
* Specifies whether to translate brand names in the image. Optional. Default value: false. This helps you protect brand name information from being translated.
|
|
70
69
|
*
|
|
71
70
|
* @example
|
|
72
71
|
* false
|
|
@@ -74,7 +73,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
74
73
|
translatingBrandInTheProduct?: boolean;
|
|
75
74
|
/**
|
|
76
75
|
* @remarks
|
|
77
|
-
* 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. If set to true, layer information is returned, which can be used for secondary editing in an image editor. Default value: false.
|
|
78
77
|
*
|
|
79
78
|
* @example
|
|
80
79
|
* false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageTranslationProRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationProRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageTranslationProRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationProRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAgFzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,SAAS;YAC/B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,4BAA4B,EAAE,SAAS;YACvC,cAAc,EAAE,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjHD,gEAiHC"}
|