@alicloud/aidge20260428 5.3.1 → 5.4.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 +651 -526
- package/dist/client.js +689 -529
- package/dist/client.js.map +1 -1
- package/dist/models/AssetOptimizeLiteRequest.d.ts +10 -10
- package/dist/models/AssetOptimizeLiteResponseBody.d.ts +5 -5
- package/dist/models/AssetOptimizeProRequest.d.ts +6 -6
- package/dist/models/AssetOptimizeProResponseBody.d.ts +4 -4
- package/dist/models/AssetOptimizeProShrinkRequest.d.ts +6 -6
- package/dist/models/CategoryAttributeMatchRequest.d.ts +7 -7
- package/dist/models/CategoryAttributeMatchResponseBody.d.ts +7 -7
- package/dist/models/CategoryAttributeMatchShrinkRequest.d.ts +7 -7
- package/dist/models/CategoryMatchRequest.d.ts +8 -8
- package/dist/models/CategoryMatchResponseBody.d.ts +10 -10
- package/dist/models/DiduiAreaDeductionRequest.d.ts +1 -1
- package/dist/models/DiduiAreaDeductionResponseBody.d.ts +1 -1
- package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +6 -2
- package/dist/models/DocumentTranslateRequest.js.map +1 -1
- package/dist/models/DocumentTranslateResponseBody.d.ts +4 -3
- package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
- package/dist/models/EcomVideoRecreationRequest.d.ts +156 -0
- package/dist/models/EcomVideoRecreationRequest.js +150 -0
- package/dist/models/EcomVideoRecreationRequest.js.map +1 -0
- package/dist/models/EcomVideoRecreationResponse.d.ts +19 -0
- package/dist/models/EcomVideoRecreationResponse.js +69 -0
- package/dist/models/EcomVideoRecreationResponse.js.map +1 -0
- package/dist/models/EcomVideoRecreationResponseBody.d.ts +70 -0
- package/dist/models/EcomVideoRecreationResponseBody.js +88 -0
- package/dist/models/EcomVideoRecreationResponseBody.js.map +1 -0
- package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +25 -0
- package/dist/models/EcomVideoRecreationShrinkRequest.js +60 -0
- package/dist/models/EcomVideoRecreationShrinkRequest.js.map +1 -0
- package/dist/models/ImageCroppingRequest.d.ts +3 -3
- package/dist/models/ImageCroppingResponseBody.d.ts +10 -8
- package/dist/models/ImageCroppingResponseBody.js.map +1 -1
- package/dist/models/ImageMattingRequest.d.ts +4 -3
- package/dist/models/ImageMattingRequest.js.map +1 -1
- package/dist/models/ImageMattingResponseBody.d.ts +1 -0
- package/dist/models/ImageMattingResponseBody.js.map +1 -1
- package/dist/models/ImageRecognitionRequest.d.ts +4 -4
- package/dist/models/ImageRecognitionResponseBody.d.ts +2 -2
- package/dist/models/ImageRecognitionShrinkRequest.d.ts +4 -4
- package/dist/models/ImageRemoveRequest.d.ts +24 -17
- package/dist/models/ImageRemoveRequest.js.map +1 -1
- package/dist/models/ImageRemoveResponseBody.d.ts +9 -8
- package/dist/models/ImageRemoveResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveShrinkRequest.d.ts +24 -17
- package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusResponseBody.d.ts +3 -1
- package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -1
- package/dist/models/ImageTranslationProRequest.d.ts +14 -8
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +19 -19
- package/dist/models/ImageTranslationStandardRequest.d.ts +9 -6
- package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +8 -8
- package/dist/models/LanguageDetectRequest.d.ts +10 -2
- package/dist/models/LanguageDetectRequest.js +2 -0
- package/dist/models/LanguageDetectRequest.js.map +1 -1
- package/dist/models/LanguageDetectResponseBody.d.ts +5 -7
- package/dist/models/LanguageDetectResponseBody.js.map +1 -1
- package/dist/models/MaterialInspectionRequest.d.ts +5 -5
- package/dist/models/MaterialInspectionResponseBody.d.ts +14 -7
- package/dist/models/MaterialInspectionResponseBody.js.map +1 -1
- package/dist/models/MerchandisePlacementDetectionRequest.d.ts +4 -4
- package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +8 -8
- package/dist/models/PackageWeightSizeCheckRequest.d.ts +2 -2
- package/dist/models/PackageWeightSizeCheckResponseBody.d.ts +6 -6
- package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +5 -5
- package/dist/models/SizeChartDetectResponseBody.d.ts +1 -0
- package/dist/models/SizeChartDetectResponseBody.js.map +1 -1
- package/dist/models/SizeChartExtractRequest.d.ts +2 -2
- package/dist/models/SizeChartExtractResponseBody.d.ts +1 -1
- package/dist/models/SizeChartExtractShrinkRequest.d.ts +2 -2
- package/dist/models/TextCorrectRequest.d.ts +2 -2
- package/dist/models/TextCorrectResponseBody.d.ts +6 -6
- package/dist/models/TextTranslateRequest.d.ts +15 -6
- package/dist/models/TextTranslateRequest.js.map +1 -1
- package/dist/models/TextTranslateResponseBody.d.ts +4 -4
- package/dist/models/TextTranslateShrinkRequest.d.ts +15 -6
- package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
- package/dist/models/VideoGenerationRequest.d.ts +45 -8
- package/dist/models/VideoGenerationRequest.js.map +1 -1
- package/dist/models/VideoGenerationResponseBody.d.ts +5 -5
- package/dist/models/VideoTranslationResponseBody.d.ts +3 -3
- package/dist/models/VisionFlowRequest.d.ts +16 -16
- package/dist/models/VisionFlowResponseBody.d.ts +4 -4
- package/dist/models/VisionFlowShrinkRequest.d.ts +16 -16
- package/dist/models/model.d.ts +8 -0
- package/dist/models/model.js +20 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +698 -531
- package/src/models/AssetOptimizeLiteRequest.ts +10 -10
- package/src/models/AssetOptimizeLiteResponseBody.ts +5 -5
- package/src/models/AssetOptimizeProRequest.ts +6 -6
- package/src/models/AssetOptimizeProResponseBody.ts +4 -4
- package/src/models/AssetOptimizeProShrinkRequest.ts +6 -6
- package/src/models/CategoryAttributeMatchRequest.ts +7 -7
- package/src/models/CategoryAttributeMatchResponseBody.ts +7 -7
- package/src/models/CategoryAttributeMatchShrinkRequest.ts +7 -7
- package/src/models/CategoryMatchRequest.ts +8 -8
- package/src/models/CategoryMatchResponseBody.ts +10 -10
- package/src/models/DiduiAreaDeductionRequest.ts +1 -1
- package/src/models/DiduiAreaDeductionResponseBody.ts +1 -1
- package/src/models/DiduiAreaDeductionShrinkRequest.ts +1 -1
- package/src/models/DocumentTranslateRequest.ts +6 -2
- package/src/models/DocumentTranslateResponseBody.ts +4 -3
- package/src/models/EcomVideoRecreationRequest.ts +234 -0
- package/src/models/EcomVideoRecreationResponse.ts +40 -0
- package/src/models/EcomVideoRecreationResponseBody.ts +104 -0
- package/src/models/EcomVideoRecreationShrinkRequest.ts +40 -0
- package/src/models/ImageCroppingRequest.ts +3 -3
- package/src/models/ImageCroppingResponseBody.ts +10 -8
- package/src/models/ImageMattingRequest.ts +4 -3
- package/src/models/ImageMattingResponseBody.ts +1 -0
- package/src/models/ImageRecognitionRequest.ts +4 -4
- package/src/models/ImageRecognitionResponseBody.ts +2 -2
- package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
- package/src/models/ImageRemoveRequest.ts +24 -17
- package/src/models/ImageRemoveResponseBody.ts +9 -8
- package/src/models/ImageRemoveShrinkRequest.ts +24 -17
- package/src/models/ImageTranslationPlusResponseBody.ts +3 -1
- package/src/models/ImageTranslationProRequest.ts +14 -8
- package/src/models/ImageTranslationProResponseBody.ts +19 -19
- package/src/models/ImageTranslationStandardRequest.ts +9 -6
- package/src/models/ImageTranslationStandardResponseBody.ts +8 -8
- package/src/models/LanguageDetectRequest.ts +12 -2
- package/src/models/LanguageDetectResponseBody.ts +5 -7
- package/src/models/MaterialInspectionRequest.ts +5 -5
- package/src/models/MaterialInspectionResponseBody.ts +14 -7
- package/src/models/MerchandisePlacementDetectionRequest.ts +4 -4
- package/src/models/MerchandisePlacementDetectionResponseBody.ts +8 -8
- package/src/models/PackageWeightSizeCheckRequest.ts +2 -2
- package/src/models/PackageWeightSizeCheckResponseBody.ts +6 -6
- package/src/models/QueryAsyncTaskResultResponseBody.ts +5 -5
- package/src/models/SizeChartDetectResponseBody.ts +1 -0
- package/src/models/SizeChartExtractRequest.ts +2 -2
- package/src/models/SizeChartExtractResponseBody.ts +1 -1
- package/src/models/SizeChartExtractShrinkRequest.ts +2 -2
- package/src/models/TextCorrectRequest.ts +2 -2
- package/src/models/TextCorrectResponseBody.ts +6 -6
- package/src/models/TextTranslateRequest.ts +15 -6
- package/src/models/TextTranslateResponseBody.ts +4 -4
- package/src/models/TextTranslateShrinkRequest.ts +15 -6
- package/src/models/VideoGenerationRequest.ts +45 -8
- package/src/models/VideoGenerationResponseBody.ts +5 -5
- package/src/models/VideoTranslationResponseBody.ts +3 -3
- package/src/models/VisionFlowRequest.ts +16 -16
- package/src/models/VisionFlowResponseBody.ts +4 -4
- package/src/models/VisionFlowShrinkRequest.ts +16 -16
- package/src/models/model.ts +8 -0
|
@@ -13,14 +13,18 @@ export class VideoGenerationRequestInputAssetBindings extends $dara.Model {
|
|
|
13
13
|
assetIndex?: number;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The
|
|
16
|
+
* The asset description.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* -
|
|
17
20
|
*/
|
|
18
21
|
description?: string;
|
|
19
22
|
/**
|
|
20
23
|
* @remarks
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
+
* The asset usage.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* -
|
|
24
28
|
*/
|
|
25
29
|
slot?: string;
|
|
26
30
|
static names(): { [key: string]: string } {
|
|
@@ -51,7 +55,7 @@ export class VideoGenerationRequestInputAssetBindings extends $dara.Model {
|
|
|
51
55
|
export class VideoGenerationRequestInput extends $dara.Model {
|
|
52
56
|
/**
|
|
53
57
|
* @remarks
|
|
54
|
-
*
|
|
58
|
+
* The asset binding list.
|
|
55
59
|
*/
|
|
56
60
|
assetBindings?: VideoGenerationRequestInputAssetBindings[];
|
|
57
61
|
/**
|
|
@@ -123,15 +127,48 @@ export class VideoGenerationRequestIntent extends $dara.Model {
|
|
|
123
127
|
channel?: string;
|
|
124
128
|
/**
|
|
125
129
|
* @remarks
|
|
126
|
-
* The business goal.
|
|
130
|
+
* The business goal. Valid values:
|
|
131
|
+
*
|
|
132
|
+
* camera_motion: Camera movement mode. Generates video based on fixed 360° camera movement logic.
|
|
133
|
+
*
|
|
134
|
+
* scripted_video: Scripted mode. Provides a script or prompt, and the system generates video based on the script.
|
|
135
|
+
*
|
|
136
|
+
* auto_video: Unscripted mode. No script is provided. The system automatically plans the script and then generates the video.
|
|
127
137
|
*
|
|
128
138
|
* @example
|
|
129
|
-
*
|
|
139
|
+
* auto_video
|
|
130
140
|
*/
|
|
131
141
|
goal?: string;
|
|
132
142
|
/**
|
|
133
143
|
* @remarks
|
|
134
|
-
*
|
|
144
|
+
* The script or prompt.
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* 【2. Shot Breakdown】
|
|
148
|
+
* [0-1s]【Eye-level close-up, static camera】Summer commute trousers folded on a clean tabletop; one corner is quickly unfolded to reveal the solid-color fabric and crisp crease line. The frame focuses on the trouser leg\\"s surface smoothness and sharp appearance. [BGM/SFX: Upbeat, crisp commute-vibe background music begins]
|
|
149
|
+
*
|
|
150
|
+
* [1-2s]【Low-angle mid-shot, static camera】The full pair of trousers hangs freely in the air with a slight swing, showcasing the natural drape of the lightweight fabric and the complete straight-leg silhouette, then returns to a still, hanging state.
|
|
151
|
+
*
|
|
152
|
+
* [2-3s]【Eye-level mid-shot, static camera】A commute-styled model stands in a fitting area, holding the folded trousers at waist level with both hands, performing one up-and-down sizing gesture before holding them steady, displaying the overall proportions of the trousers in their folded state and the expected fit. [[Voiceover]: Who says wearing trousers in summer has to be stuffy? Most likely you just haven\\"t picked the right pair.]
|
|
153
|
+
*
|
|
154
|
+
* [3-5s]【Eye-level full shot, slight pullback】The commute-styled model, now wearing the trousers paired with a clean commute top, takes two steps forward in a modern office building corridor, dynamically showcasing the front straight-leg silhouette, trouser leg lines, and commute outfit coordination.
|
|
155
|
+
*
|
|
156
|
+
* [5-7s]【Low-angle mid-shot, static camera】The commute-styled model shifts to an angled side stance, one hand in the front pocket and the other in the back pocket, displaying the cut from waist and hip down to the knee, the solid-color surface, and the clean lateral lines.
|
|
157
|
+
*
|
|
158
|
+
* [7-9s]【Eye-level mid-shot, static camera】The commute-styled model lifts one foot onto a low step, one hand brushes down the lower-leg trouser fabric and lightly lifts the hem, briefly exposing the ankle, showcasing the hem edge, side-seam details, and the wearing state during movement. [[Voiceover]: These ice-skin trousers are lightweight and breathable, solid-color straight-leg — looking sharp and at ease even when walking around at work.]
|
|
159
|
+
*
|
|
160
|
+
* [9-11s]【Overhead close-up, static camera】The lens focuses closely on the waistband area; the commute-styled model presses both hands along the waistband contour and smooths it, then pauses to display the seams and actual wearing state, clearly presenting the waistband shape and structural details.
|
|
161
|
+
*
|
|
162
|
+
* [11-13s]【Eye-level close-up, static camera】The commute-styled model gently lifts the fabric on both sides of the thigh with both hands, then raises one knee with a slight lateral turn before returning to a natural stance, demonstrating the actual range of motion during knee-lift and side-turn, as well as how the straight-leg trouser recovers after the foot lands.
|
|
163
|
+
*
|
|
164
|
+
* [13-15s]【Eye-level close-up, static camera】The commute-styled model enters the frame from the rear side, places one hand in the back pocket, then lightly traces along the back pocket edge and rear waist seam, showcasing the back pocket contour, pocket opening edge, and rear waist seam details up close. [[Voiceover]: If you\\"re always on the move, there\\"s room for knee lifts and side turns — commuting just got easier.]
|
|
165
|
+
*
|
|
166
|
+
* [15-17s]【Eye-level mid-shot, static camera】The commute-styled model faces away to display the rear silhouette of the trousers, hands naturally in pockets with a slight weight shift, then turns slightly to an angled side view so both the rear and lateral trouser lines are visible, fully presenting the rear cut and the overall line from hip and thigh down to the hem.
|
|
167
|
+
*
|
|
168
|
+
* [17-19s]【Eye-level full shot, smooth follow】The commute-styled model first walks sideways to the right, then transitions into a forward stride to complete the full presentation, finishing in the modern office building corridor in full commute attire, clearly showing the front straight-leg silhouette, clean lines, and overall fit. [[Voiceover]: If you like this fit, go check out the details.]
|
|
169
|
+
*
|
|
170
|
+
* 【3. Negative/Constraint Instructions】
|
|
171
|
+
* The entire video centers on the summer commute trousers; no unrelated products or multi-person interactions are allowed.
|
|
135
172
|
*/
|
|
136
173
|
script?: string;
|
|
137
174
|
static names(): { [key: string]: string } {
|
|
@@ -45,7 +45,7 @@ export class VideoGenerationResponseBodyData extends $dara.Model {
|
|
|
45
45
|
export class VideoGenerationResponseBody extends $dara.Model {
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
|
-
* The response code. A value of success indicates a successful call, and failed indicates a
|
|
48
|
+
* The response code. A value of success indicates a successful call, and a value of failed indicates a failed call.
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
51
|
* success
|
|
@@ -53,12 +53,12 @@ export class VideoGenerationResponseBody extends $dara.Model {
|
|
|
53
53
|
code?: string;
|
|
54
54
|
/**
|
|
55
55
|
* @remarks
|
|
56
|
-
* The struct
|
|
56
|
+
* The response struct.
|
|
57
57
|
*/
|
|
58
58
|
data?: VideoGenerationResponseBodyData;
|
|
59
59
|
/**
|
|
60
60
|
* @remarks
|
|
61
|
-
* The
|
|
61
|
+
* The response message. An error message is returned if the call fails.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
64
|
* Success
|
|
@@ -66,7 +66,7 @@ export class VideoGenerationResponseBody extends $dara.Model {
|
|
|
66
66
|
message?: string;
|
|
67
67
|
/**
|
|
68
68
|
* @remarks
|
|
69
|
-
* The request ID,
|
|
69
|
+
* The request ID, which uniquely identifies a single API call.
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* 70CBEFDF-BB17-1EB3-8A21-569F3124738F
|
|
@@ -74,7 +74,7 @@ export class VideoGenerationResponseBody extends $dara.Model {
|
|
|
74
74
|
requestId?: string;
|
|
75
75
|
/**
|
|
76
76
|
* @remarks
|
|
77
|
-
* Indicates whether the call is successful. A value of true indicates success, and false indicates failure.
|
|
77
|
+
* Indicates whether the call is successful. A value of true indicates success, and a value of false indicates failure.
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
80
|
* true
|
|
@@ -43,12 +43,12 @@ export class VideoTranslationResponseBody extends $dara.Model {
|
|
|
43
43
|
code?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The asynchronous task submit
|
|
46
|
+
* The asynchronous task submit result.
|
|
47
47
|
*/
|
|
48
48
|
data?: VideoTranslationResponseBodyData;
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
* The description
|
|
51
|
+
* The description.
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* Translation processing
|
|
@@ -64,7 +64,7 @@ export class VideoTranslationResponseBody extends $dara.Model {
|
|
|
64
64
|
requestId?: string;
|
|
65
65
|
/**
|
|
66
66
|
* @remarks
|
|
67
|
-
* Indicates whether the call is successful. Valid values: true: The call is successful. false: The call
|
|
67
|
+
* Indicates whether the call is successful. Valid values: true: The call is successful. false: The call fails.
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
70
|
* True
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class VisionFlowRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The AI capabilities to apply (1
|
|
8
|
+
* The AI capabilities to apply (1=Intelligent Element Detection, 2=Intelligent Matting, 3=Intelligent Removal, 4=Image Translation Pro, 5=Intelligent Cropping, 6=HD Upscaling). Multiple selections allowed.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -15,7 +15,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
15
15
|
ability?: number[];
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The background type of the
|
|
18
|
+
* The background type of the output image. Valid values: WHITE_BACKGROUND (white background) and TRANSPARENT (transparent background). Required when the Intelligent Matting capability is selected.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* WHITE_BACKGROUND
|
|
@@ -23,7 +23,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
23
23
|
backGroundType?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The
|
|
26
|
+
* The glossary ID. Optional. Create the glossary separately in the console and provide its ID. If empty, translation results are not modified.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* glossary_1
|
|
@@ -31,7 +31,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
31
31
|
glossary?: string;
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* The URL of the image to process. Required.
|
|
34
|
+
* The URL of the image to process. Required. Resolution must be greater than 256×256, long side no greater than 1920 pixels, short side no greater than 1080 pixels. File size must not exceed 5 MB. Supported formats: png, jpeg, jpg, bmp, webp.
|
|
35
35
|
*
|
|
36
36
|
* This parameter is required.
|
|
37
37
|
*
|
|
@@ -49,7 +49,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
49
49
|
includingProductArea?: boolean;
|
|
50
50
|
/**
|
|
51
51
|
* @remarks
|
|
52
|
-
* Specifies whether images
|
|
52
|
+
* Specifies whether images containing the specified elements proceed to subsequent processing. A value of true indicates that images with the specified elements proceed to subsequent processing. A value of false indicates that images without the specified elements proceed. Required when the Intelligent Element Detection capability is selected.
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* true
|
|
@@ -57,7 +57,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
57
57
|
isFilter?: boolean;
|
|
58
58
|
/**
|
|
59
59
|
* @remarks
|
|
60
|
-
* The specific removal area in RLE format. Optional. If provided, this
|
|
60
|
+
* The specific removal area in RLE format. Optional. If provided, this takes priority and the ObjectRemoveElements and NonobjectRemoveElements parameters are ignored.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
63
|
* 474556 160 475356 160
|
|
@@ -65,7 +65,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
65
65
|
mask?: string;
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* The elements to detect on the non-subject area of the image (1
|
|
68
|
+
* The elements to detect on the non-subject area of the image (1=Watermark, 2=Logo, 3=Text, 4=Text-bearing color block). Multiple selections allowed. When the Intelligent Element Detection capability is selected, at least one of NonobjectDetectElements or ObjectDetectElements is required.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* [1,2,3]
|
|
@@ -73,7 +73,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
73
73
|
nonobjectDetectElements?: number[];
|
|
74
74
|
/**
|
|
75
75
|
* @remarks
|
|
76
|
-
* The elements to remove from the non-subject area of the image (1
|
|
76
|
+
* The elements to remove from the non-subject area of the image (1=Transparent text block, 2=Specific name, 3=Text, 4=Ad patch). Multiple selections allowed. When the Intelligent Removal capability is selected, at least one of NonobjectRemoveElements or ObjectRemoveElements is required.
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
79
79
|
* [1,2,4]
|
|
@@ -81,7 +81,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
81
81
|
nonobjectRemoveElements?: number[];
|
|
82
82
|
/**
|
|
83
83
|
* @remarks
|
|
84
|
-
* The elements to detect on the image subject (1
|
|
84
|
+
* The elements to detect on the image subject (1=Watermark, 2=Logo, 3=Text, 4=Text-bearing color block). Multiple selections allowed. When the Intelligent Element Detection capability is selected, at least one of ObjectDetectElements or NonobjectDetectElements is required.
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
87
|
* [1,2,3,4]
|
|
@@ -89,7 +89,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
89
89
|
objectDetectElements?: number[];
|
|
90
90
|
/**
|
|
91
91
|
* @remarks
|
|
92
|
-
* The elements to remove from the image subject (1
|
|
92
|
+
* The elements to remove from the image subject (1=Transparent text block, 2=Specific name, 3=Text, 4=Ad patch). Multiple selections allowed. When the Intelligent Removal capability is selected, at least one of ObjectRemoveElements or NonobjectRemoveElements is required.
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* [1,2,4]
|
|
@@ -97,7 +97,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
97
97
|
objectRemoveElements?: number[];
|
|
98
98
|
/**
|
|
99
99
|
* @remarks
|
|
100
|
-
* The source language code. Optional.
|
|
100
|
+
* The source language code. Optional. Refer to the supported language pairs list for available language directions.
|
|
101
101
|
*
|
|
102
102
|
* @example
|
|
103
103
|
* zh
|
|
@@ -105,7 +105,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
105
105
|
sourceLanguage?: string;
|
|
106
106
|
/**
|
|
107
107
|
* @remarks
|
|
108
|
-
* The desired height of the cropped image, in pixels. Valid values: 100 to 5000. Required when the
|
|
108
|
+
* The desired height of the cropped image, in pixels. Valid values: 100 to 5000. Required when the Intelligent Cropping capability is selected.
|
|
109
109
|
*
|
|
110
110
|
* @example
|
|
111
111
|
* 800
|
|
@@ -113,7 +113,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
113
113
|
targetHeight?: number;
|
|
114
114
|
/**
|
|
115
115
|
* @remarks
|
|
116
|
-
* The target language code. Optional.
|
|
116
|
+
* The target language code. Optional. Refer to the supported language pairs list for available language directions.
|
|
117
117
|
*
|
|
118
118
|
* @example
|
|
119
119
|
* en
|
|
@@ -121,7 +121,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
121
121
|
targetLanguage?: string;
|
|
122
122
|
/**
|
|
123
123
|
* @remarks
|
|
124
|
-
* The desired width of the cropped image, in pixels. Valid values: 100 to 5000. Required when the
|
|
124
|
+
* The desired width of the cropped image, in pixels. Valid values: 100 to 5000. Required when the Intelligent Cropping capability is selected.
|
|
125
125
|
*
|
|
126
126
|
* @example
|
|
127
127
|
* 800
|
|
@@ -129,7 +129,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
129
129
|
targetWidth?: number;
|
|
130
130
|
/**
|
|
131
131
|
* @remarks
|
|
132
|
-
* Specifies whether to translate brand names
|
|
132
|
+
* Specifies whether to translate brand names in the image. Optional. Default value: false. Helps protect brand name information from being translated.
|
|
133
133
|
*
|
|
134
134
|
* @example
|
|
135
135
|
* false
|
|
@@ -137,7 +137,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
137
137
|
translatingBrandInTheProduct?: boolean;
|
|
138
138
|
/**
|
|
139
139
|
* @remarks
|
|
140
|
-
* The image upscaling factor. Optional. Default value: 2. Valid values: 2 to 4. Required when the HD
|
|
140
|
+
* The image upscaling factor. Optional. Default value: 2. Valid values: 2 to 4. Required when the HD Upscaling capability is selected.
|
|
141
141
|
*
|
|
142
142
|
* @example
|
|
143
143
|
* 2
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class VisionFlowResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The asynchronous task ID
|
|
8
|
+
* The asynchronous task ID, used to query processing results later through QueryAsyncTaskResult.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* e4c48e88-3c34-91e3-ab8a-08484dc4d402
|
|
@@ -43,7 +43,7 @@ export class VisionFlowResponseBody extends $dara.Model {
|
|
|
43
43
|
code?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The submit status data
|
|
46
|
+
* The asynchronous task submit status data, which contains the asynchronous task ID.
|
|
47
47
|
*/
|
|
48
48
|
data?: VisionFlowResponseBodyData;
|
|
49
49
|
/**
|
|
@@ -56,7 +56,7 @@ export class VisionFlowResponseBody extends $dara.Model {
|
|
|
56
56
|
message?: string;
|
|
57
57
|
/**
|
|
58
58
|
* @remarks
|
|
59
|
-
* The request ID,
|
|
59
|
+
* The request ID, used to uniquely identify a single API call.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* F3E65785-0180-1227-91B0-2F5F52F679FB
|
|
@@ -64,7 +64,7 @@ export class VisionFlowResponseBody extends $dara.Model {
|
|
|
64
64
|
requestId?: string;
|
|
65
65
|
/**
|
|
66
66
|
* @remarks
|
|
67
|
-
* Indicates whether the call is successful.
|
|
67
|
+
* Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
70
|
* true
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class VisionFlowShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The AI capabilities to apply (1
|
|
8
|
+
* The AI capabilities to apply (1=Intelligent Element Detection, 2=Intelligent Matting, 3=Intelligent Removal, 4=Image Translation Pro, 5=Intelligent Cropping, 6=HD Upscaling). Multiple selections allowed.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -15,7 +15,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
15
15
|
abilityShrink?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The background type of the
|
|
18
|
+
* The background type of the output image. Valid values: WHITE_BACKGROUND (white background) and TRANSPARENT (transparent background). Required when the Intelligent Matting capability is selected.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* WHITE_BACKGROUND
|
|
@@ -23,7 +23,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
23
23
|
backGroundType?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The
|
|
26
|
+
* The glossary ID. Optional. Create the glossary separately in the console and provide its ID. If empty, translation results are not modified.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* glossary_1
|
|
@@ -31,7 +31,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
31
31
|
glossary?: string;
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* The URL of the image to process. Required.
|
|
34
|
+
* The URL of the image to process. Required. Resolution must be greater than 256×256, long side no greater than 1920 pixels, short side no greater than 1080 pixels. File size must not exceed 5 MB. Supported formats: png, jpeg, jpg, bmp, webp.
|
|
35
35
|
*
|
|
36
36
|
* This parameter is required.
|
|
37
37
|
*
|
|
@@ -49,7 +49,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
49
49
|
includingProductArea?: boolean;
|
|
50
50
|
/**
|
|
51
51
|
* @remarks
|
|
52
|
-
* Specifies whether images
|
|
52
|
+
* Specifies whether images containing the specified elements proceed to subsequent processing. A value of true indicates that images with the specified elements proceed to subsequent processing. A value of false indicates that images without the specified elements proceed. Required when the Intelligent Element Detection capability is selected.
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* true
|
|
@@ -57,7 +57,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
57
57
|
isFilter?: boolean;
|
|
58
58
|
/**
|
|
59
59
|
* @remarks
|
|
60
|
-
* The specific removal area in RLE format. Optional. If provided, this
|
|
60
|
+
* The specific removal area in RLE format. Optional. If provided, this takes priority and the ObjectRemoveElements and NonobjectRemoveElements parameters are ignored.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
63
|
* 474556 160 475356 160
|
|
@@ -65,7 +65,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
65
65
|
mask?: string;
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* The elements to detect on the non-subject area of the image (1
|
|
68
|
+
* The elements to detect on the non-subject area of the image (1=Watermark, 2=Logo, 3=Text, 4=Text-bearing color block). Multiple selections allowed. When the Intelligent Element Detection capability is selected, at least one of NonobjectDetectElements or ObjectDetectElements is required.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* [1,2,3]
|
|
@@ -73,7 +73,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
73
73
|
nonobjectDetectElementsShrink?: string;
|
|
74
74
|
/**
|
|
75
75
|
* @remarks
|
|
76
|
-
* The elements to remove from the non-subject area of the image (1
|
|
76
|
+
* The elements to remove from the non-subject area of the image (1=Transparent text block, 2=Specific name, 3=Text, 4=Ad patch). Multiple selections allowed. When the Intelligent Removal capability is selected, at least one of NonobjectRemoveElements or ObjectRemoveElements is required.
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
79
79
|
* [1,2,4]
|
|
@@ -81,7 +81,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
81
81
|
nonobjectRemoveElementsShrink?: string;
|
|
82
82
|
/**
|
|
83
83
|
* @remarks
|
|
84
|
-
* The elements to detect on the image subject (1
|
|
84
|
+
* The elements to detect on the image subject (1=Watermark, 2=Logo, 3=Text, 4=Text-bearing color block). Multiple selections allowed. When the Intelligent Element Detection capability is selected, at least one of ObjectDetectElements or NonobjectDetectElements is required.
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
87
|
* [1,2,3,4]
|
|
@@ -89,7 +89,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
89
89
|
objectDetectElementsShrink?: string;
|
|
90
90
|
/**
|
|
91
91
|
* @remarks
|
|
92
|
-
* The elements to remove from the image subject (1
|
|
92
|
+
* The elements to remove from the image subject (1=Transparent text block, 2=Specific name, 3=Text, 4=Ad patch). Multiple selections allowed. When the Intelligent Removal capability is selected, at least one of ObjectRemoveElements or NonobjectRemoveElements is required.
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* [1,2,4]
|
|
@@ -97,7 +97,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
97
97
|
objectRemoveElementsShrink?: string;
|
|
98
98
|
/**
|
|
99
99
|
* @remarks
|
|
100
|
-
* The source language code. Optional.
|
|
100
|
+
* The source language code. Optional. Refer to the supported language pairs list for available language directions.
|
|
101
101
|
*
|
|
102
102
|
* @example
|
|
103
103
|
* zh
|
|
@@ -105,7 +105,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
105
105
|
sourceLanguage?: string;
|
|
106
106
|
/**
|
|
107
107
|
* @remarks
|
|
108
|
-
* The desired height of the cropped image, in pixels. Valid values: 100 to 5000. Required when the
|
|
108
|
+
* The desired height of the cropped image, in pixels. Valid values: 100 to 5000. Required when the Intelligent Cropping capability is selected.
|
|
109
109
|
*
|
|
110
110
|
* @example
|
|
111
111
|
* 800
|
|
@@ -113,7 +113,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
113
113
|
targetHeight?: number;
|
|
114
114
|
/**
|
|
115
115
|
* @remarks
|
|
116
|
-
* The target language code. Optional.
|
|
116
|
+
* The target language code. Optional. Refer to the supported language pairs list for available language directions.
|
|
117
117
|
*
|
|
118
118
|
* @example
|
|
119
119
|
* en
|
|
@@ -121,7 +121,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
121
121
|
targetLanguage?: string;
|
|
122
122
|
/**
|
|
123
123
|
* @remarks
|
|
124
|
-
* The desired width of the cropped image, in pixels. Valid values: 100 to 5000. Required when the
|
|
124
|
+
* The desired width of the cropped image, in pixels. Valid values: 100 to 5000. Required when the Intelligent Cropping capability is selected.
|
|
125
125
|
*
|
|
126
126
|
* @example
|
|
127
127
|
* 800
|
|
@@ -129,7 +129,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
129
129
|
targetWidth?: number;
|
|
130
130
|
/**
|
|
131
131
|
* @remarks
|
|
132
|
-
* Specifies whether to translate brand names
|
|
132
|
+
* Specifies whether to translate brand names in the image. Optional. Default value: false. Helps protect brand name information from being translated.
|
|
133
133
|
*
|
|
134
134
|
* @example
|
|
135
135
|
* false
|
|
@@ -137,7 +137,7 @@ export class VisionFlowShrinkRequest extends $dara.Model {
|
|
|
137
137
|
translatingBrandInTheProduct?: boolean;
|
|
138
138
|
/**
|
|
139
139
|
* @remarks
|
|
140
|
-
* The image upscaling factor. Optional. Default value: 2. Valid values: 2 to 4. Required when the HD
|
|
140
|
+
* The image upscaling factor. Optional. Default value: 2. Valid values: 2 to 4. Required when the HD Upscaling capability is selected.
|
|
141
141
|
*
|
|
142
142
|
* @example
|
|
143
143
|
* 2
|
package/src/models/model.ts
CHANGED
|
@@ -10,6 +10,10 @@ export { DiduiAreaDeductionResponseBodyDataResultStage4AreaLabel } from './Didui
|
|
|
10
10
|
export { DiduiAreaDeductionResponseBodyDataResult } from './DiduiAreaDeductionResponseBody';
|
|
11
11
|
export { DiduiAreaDeductionResponseBodyData } from './DiduiAreaDeductionResponseBody';
|
|
12
12
|
export { DocumentTranslateResponseBodyData } from './DocumentTranslateResponseBody';
|
|
13
|
+
export { EcomVideoRecreationRequestInputProductInfo } from './EcomVideoRecreationRequest';
|
|
14
|
+
export { EcomVideoRecreationRequestInput } from './EcomVideoRecreationRequest';
|
|
15
|
+
export { EcomVideoRecreationRequestOutput } from './EcomVideoRecreationRequest';
|
|
16
|
+
export { EcomVideoRecreationResponseBodyData } from './EcomVideoRecreationResponseBody';
|
|
13
17
|
export { ImageCroppingResponseBodyData } from './ImageCroppingResponseBody';
|
|
14
18
|
export { ImageMattingResponseBodyData } from './ImageMattingResponseBody';
|
|
15
19
|
export { ImageRecognitionResponseBodyData } from './ImageRecognitionResponseBody';
|
|
@@ -81,6 +85,10 @@ export { DiduiAreaDeductionResponse } from './DiduiAreaDeductionResponse';
|
|
|
81
85
|
export { DocumentTranslateRequest } from './DocumentTranslateRequest';
|
|
82
86
|
export { DocumentTranslateResponseBody } from './DocumentTranslateResponseBody';
|
|
83
87
|
export { DocumentTranslateResponse } from './DocumentTranslateResponse';
|
|
88
|
+
export { EcomVideoRecreationRequest } from './EcomVideoRecreationRequest';
|
|
89
|
+
export { EcomVideoRecreationShrinkRequest } from './EcomVideoRecreationShrinkRequest';
|
|
90
|
+
export { EcomVideoRecreationResponseBody } from './EcomVideoRecreationResponseBody';
|
|
91
|
+
export { EcomVideoRecreationResponse } from './EcomVideoRecreationResponse';
|
|
84
92
|
export { ImageCroppingRequest } from './ImageCroppingRequest';
|
|
85
93
|
export { ImageCroppingResponseBody } from './ImageCroppingResponseBody';
|
|
86
94
|
export { ImageCroppingResponse } from './ImageCroppingResponse';
|