@alicloud/aidge20260428 5.8.0 → 5.9.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 +1458 -297
- package/dist/client.js +2004 -305
- package/dist/client.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +4 -4
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -3
- package/dist/models/EcomVideoRecreationRequest.d.ts +24 -16
- package/dist/models/EcomVideoRecreationRequest.js +2 -0
- package/dist/models/EcomVideoRecreationRequest.js.map +1 -1
- package/dist/models/EcomVideoRecreationResponseBody.d.ts +5 -5
- package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +2 -2
- package/dist/models/ImageMattingAsyncRequest.d.ts +59 -0
- package/dist/models/ImageMattingAsyncRequest.js +66 -0
- package/dist/models/ImageMattingAsyncRequest.js.map +1 -0
- package/dist/models/ImageMattingAsyncResponse.d.ts +19 -0
- package/dist/models/ImageMattingAsyncResponse.js +69 -0
- package/dist/models/ImageMattingAsyncResponse.js.map +1 -0
- package/dist/models/ImageMattingAsyncResponseBody.d.ts +72 -0
- package/dist/models/ImageMattingAsyncResponseBody.js +88 -0
- package/dist/models/ImageMattingAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncRequest.d.ts +101 -0
- package/dist/models/ImageRecognitionAsyncRequest.js +78 -0
- package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncResponse.d.ts +19 -0
- package/dist/models/ImageRecognitionAsyncResponse.js +69 -0
- package/dist/models/ImageRecognitionAsyncResponse.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +72 -0
- package/dist/models/ImageRecognitionAsyncResponseBody.js +88 -0
- package/dist/models/ImageRecognitionAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +101 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js +72 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -0
- package/dist/models/ImageRemovalProAsyncRequest.d.ts +23 -0
- package/dist/models/ImageRemovalProAsyncRequest.js +58 -0
- package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -0
- package/dist/models/ImageRemovalProAsyncResponse.d.ts +19 -0
- package/dist/models/ImageRemovalProAsyncResponse.js +69 -0
- package/dist/models/ImageRemovalProAsyncResponse.js.map +1 -0
- package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageRemovalProAsyncResponseBody.js +88 -0
- package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRemoveAsyncRequest.d.ts +59 -0
- package/dist/models/ImageRemoveAsyncRequest.js +82 -0
- package/dist/models/ImageRemoveAsyncRequest.js.map +1 -0
- package/dist/models/ImageRemoveAsyncResponse.d.ts +19 -0
- package/dist/models/ImageRemoveAsyncResponse.js +69 -0
- package/dist/models/ImageRemoveAsyncResponse.js.map +1 -0
- package/dist/models/ImageRemoveAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageRemoveAsyncResponseBody.js +88 -0
- package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +59 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.js +70 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +78 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.js +70 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.js.map +1 -0
- package/dist/models/ImageTranslationPlusAsyncResponse.d.ts +19 -0
- package/dist/models/ImageTranslationPlusAsyncResponse.js +69 -0
- package/dist/models/ImageTranslationPlusAsyncResponse.js.map +1 -0
- package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageTranslationPlusAsyncResponseBody.js +88 -0
- package/dist/models/ImageTranslationPlusAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationProAsyncRequest.d.ts +78 -0
- package/dist/models/ImageTranslationProAsyncRequest.js +70 -0
- package/dist/models/ImageTranslationProAsyncRequest.js.map +1 -0
- package/dist/models/ImageTranslationProAsyncResponse.d.ts +19 -0
- package/dist/models/ImageTranslationProAsyncResponse.js +69 -0
- package/dist/models/ImageTranslationProAsyncResponse.js.map +1 -0
- package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageTranslationProAsyncResponseBody.js +88 -0
- package/dist/models/ImageTranslationProAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationProRequest.d.ts +12 -8
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +4 -2
- package/dist/models/ImageTranslationProResponseBody.js.map +1 -1
- package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +75 -0
- package/dist/models/ImageTranslationStandardAsyncRequest.js +70 -0
- package/dist/models/ImageTranslationStandardAsyncRequest.js.map +1 -0
- package/dist/models/ImageTranslationStandardAsyncResponse.d.ts +19 -0
- package/dist/models/ImageTranslationStandardAsyncResponse.js +69 -0
- package/dist/models/ImageTranslationStandardAsyncResponse.js.map +1 -0
- package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageTranslationStandardAsyncResponseBody.js +88 -0
- package/dist/models/ImageTranslationStandardAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationStandardRequest.d.ts +11 -7
- package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +8 -8
- package/dist/models/MerchandisePlacementDetectionLiteRequest.d.ts +23 -0
- package/dist/models/MerchandisePlacementDetectionLiteRequest.js +58 -0
- package/dist/models/MerchandisePlacementDetectionLiteRequest.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponse.d.ts +19 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponse.js +69 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponse.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.d.ts +239 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.js +229 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.js.map +1 -0
- package/dist/models/MerchandisePriceTagDetectionRequest.d.ts +23 -0
- package/dist/models/MerchandisePriceTagDetectionRequest.js +58 -0
- package/dist/models/MerchandisePriceTagDetectionRequest.js.map +1 -0
- package/dist/models/MerchandisePriceTagDetectionResponse.d.ts +19 -0
- package/dist/models/MerchandisePriceTagDetectionResponse.js +69 -0
- package/dist/models/MerchandisePriceTagDetectionResponse.js.map +1 -0
- package/dist/models/MerchandisePriceTagDetectionResponseBody.d.ts +258 -0
- package/dist/models/MerchandisePriceTagDetectionResponseBody.js +230 -0
- package/dist/models/MerchandisePriceTagDetectionResponseBody.js.map +1 -0
- package/dist/models/MerchandiseSceneDetectionRequest.d.ts +23 -0
- package/dist/models/MerchandiseSceneDetectionRequest.js +58 -0
- package/dist/models/MerchandiseSceneDetectionRequest.js.map +1 -0
- package/dist/models/MerchandiseSceneDetectionResponse.d.ts +19 -0
- package/dist/models/MerchandiseSceneDetectionResponse.js +69 -0
- package/dist/models/MerchandiseSceneDetectionResponse.js.map +1 -0
- package/dist/models/MerchandiseSceneDetectionResponseBody.d.ts +263 -0
- package/dist/models/MerchandiseSceneDetectionResponseBody.js +235 -0
- package/dist/models/MerchandiseSceneDetectionResponseBody.js.map +1 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.d.ts +23 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.js +58 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.js.map +1 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.d.ts +19 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.js +69 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.js.map +1 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.d.ts +170 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.js +172 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.js.map +1 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.d.ts +23 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.js +58 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.js.map +1 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.d.ts +19 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.js +69 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.js.map +1 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.d.ts +197 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.js +178 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.js.map +1 -0
- package/dist/models/PetHealthAnalysisRequest.d.ts +2 -10
- package/dist/models/PetHealthAnalysisRequest.js.map +1 -1
- package/dist/models/PetHealthAnalysisResponseBody.d.ts +0 -19
- package/dist/models/PetHealthAnalysisResponseBody.js.map +1 -1
- package/dist/models/PetHealthAnalysisShrinkRequest.d.ts +2 -10
- package/dist/models/PetHealthAnalysisShrinkRequest.js.map +1 -1
- package/dist/models/SizeChartExtractAsyncRequest.d.ts +36 -0
- package/dist/models/SizeChartExtractAsyncRequest.js +65 -0
- package/dist/models/SizeChartExtractAsyncRequest.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncResponse.d.ts +19 -0
- package/dist/models/SizeChartExtractAsyncResponse.js +69 -0
- package/dist/models/SizeChartExtractAsyncResponse.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +70 -0
- package/dist/models/SizeChartExtractAsyncResponseBody.js +88 -0
- package/dist/models/SizeChartExtractAsyncResponseBody.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +36 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js +62 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js.map +1 -0
- package/dist/models/StorefrontSceneRecognitionRequest.d.ts +23 -0
- package/dist/models/StorefrontSceneRecognitionRequest.js +58 -0
- package/dist/models/StorefrontSceneRecognitionRequest.js.map +1 -0
- package/dist/models/StorefrontSceneRecognitionResponse.d.ts +19 -0
- package/dist/models/StorefrontSceneRecognitionResponse.js +69 -0
- package/dist/models/StorefrontSceneRecognitionResponse.js.map +1 -0
- package/dist/models/StorefrontSceneRecognitionResponseBody.d.ts +190 -0
- package/dist/models/StorefrontSceneRecognitionResponseBody.js +199 -0
- package/dist/models/StorefrontSceneRecognitionResponseBody.js.map +1 -0
- package/dist/models/TextTranslateAsyncRequest.d.ts +56 -0
- package/dist/models/TextTranslateAsyncRequest.js +75 -0
- package/dist/models/TextTranslateAsyncRequest.js.map +1 -0
- package/dist/models/TextTranslateAsyncResponse.d.ts +19 -0
- package/dist/models/TextTranslateAsyncResponse.js +69 -0
- package/dist/models/TextTranslateAsyncResponse.js.map +1 -0
- package/dist/models/TextTranslateAsyncResponseBody.d.ts +51 -0
- package/dist/models/TextTranslateAsyncResponseBody.js +88 -0
- package/dist/models/TextTranslateAsyncResponseBody.js.map +1 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +56 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.js +72 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.js.map +1 -0
- package/dist/models/TextTranslateRequest.d.ts +10 -10
- package/dist/models/TextTranslateResponseBody.d.ts +1 -1
- package/dist/models/TextTranslateShrinkRequest.d.ts +10 -10
- package/dist/models/VideoGenerationRequest.d.ts +21 -12
- package/dist/models/VideoGenerationRequest.js.map +1 -1
- package/dist/models/VideoGenerationResponseBody.d.ts +5 -5
- package/dist/models/VideoTranslationRequest.d.ts +36 -6
- package/dist/models/VideoTranslationRequest.js +8 -0
- package/dist/models/VideoTranslationRequest.js.map +1 -1
- package/dist/models/VideoTranslationResponseBody.d.ts +5 -5
- package/dist/models/VideoTranslationShrinkRequest.d.ts +36 -6
- package/dist/models/VideoTranslationShrinkRequest.js +8 -0
- package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +89 -0
- package/dist/models/model.js +184 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2207 -407
- package/src/models/DocumentTranslateRequest.ts +4 -4
- package/src/models/DocumentTranslateResponseBody.ts +3 -3
- package/src/models/EcomVideoRecreationRequest.ts +26 -16
- package/src/models/EcomVideoRecreationResponseBody.ts +5 -5
- package/src/models/EcomVideoRecreationShrinkRequest.ts +2 -2
- package/src/models/ImageMattingAsyncRequest.ts +80 -0
- package/src/models/ImageMattingAsyncResponse.ts +40 -0
- package/src/models/ImageMattingAsyncResponseBody.ts +106 -0
- package/src/models/ImageRecognitionAsyncRequest.ts +134 -0
- package/src/models/ImageRecognitionAsyncResponse.ts +40 -0
- package/src/models/ImageRecognitionAsyncResponseBody.ts +106 -0
- package/src/models/ImageRecognitionAsyncShrinkRequest.ts +128 -0
- package/src/models/ImageRemovalProAsyncRequest.ts +36 -0
- package/src/models/ImageRemovalProAsyncResponse.ts +40 -0
- package/src/models/ImageRemovalProAsyncResponseBody.ts +104 -0
- package/src/models/ImageRemoveAsyncRequest.ts +96 -0
- package/src/models/ImageRemoveAsyncResponse.ts +40 -0
- package/src/models/ImageRemoveAsyncResponseBody.ts +104 -0
- package/src/models/ImageRemoveAsyncShrinkRequest.ts +84 -0
- package/src/models/ImageTranslationPlusAsyncRequest.ts +103 -0
- package/src/models/ImageTranslationPlusAsyncResponse.ts +40 -0
- package/src/models/ImageTranslationPlusAsyncResponseBody.ts +104 -0
- package/src/models/ImageTranslationProAsyncRequest.ts +103 -0
- package/src/models/ImageTranslationProAsyncResponse.ts +40 -0
- package/src/models/ImageTranslationProAsyncResponseBody.ts +104 -0
- package/src/models/ImageTranslationProRequest.ts +12 -8
- package/src/models/ImageTranslationProResponseBody.ts +4 -2
- package/src/models/ImageTranslationStandardAsyncRequest.ts +100 -0
- package/src/models/ImageTranslationStandardAsyncResponse.ts +40 -0
- package/src/models/ImageTranslationStandardAsyncResponseBody.ts +104 -0
- package/src/models/ImageTranslationStandardRequest.ts +11 -7
- package/src/models/ImageTranslationStandardResponseBody.ts +8 -8
- package/src/models/MerchandisePlacementDetectionLiteRequest.ts +36 -0
- package/src/models/MerchandisePlacementDetectionLiteResponse.ts +40 -0
- package/src/models/MerchandisePlacementDetectionLiteResponseBody.ts +367 -0
- package/src/models/MerchandisePriceTagDetectionRequest.ts +36 -0
- package/src/models/MerchandisePriceTagDetectionResponse.ts +40 -0
- package/src/models/MerchandisePriceTagDetectionResponseBody.ts +387 -0
- package/src/models/MerchandiseSceneDetectionRequest.ts +36 -0
- package/src/models/MerchandiseSceneDetectionResponse.ts +40 -0
- package/src/models/MerchandiseSceneDetectionResponseBody.ts +397 -0
- package/src/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.ts +36 -0
- package/src/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.ts +40 -0
- package/src/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.ts +259 -0
- package/src/models/MilkPowderCartonCodeRephotographyDetectionRequest.ts +36 -0
- package/src/models/MilkPowderCartonCodeRephotographyDetectionResponse.ts +40 -0
- package/src/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.ts +292 -0
- package/src/models/PetHealthAnalysisRequest.ts +2 -10
- package/src/models/PetHealthAnalysisResponseBody.ts +0 -19
- package/src/models/PetHealthAnalysisShrinkRequest.ts +2 -10
- package/src/models/SizeChartExtractAsyncRequest.ts +56 -0
- package/src/models/SizeChartExtractAsyncResponse.ts +40 -0
- package/src/models/SizeChartExtractAsyncResponseBody.ts +104 -0
- package/src/models/SizeChartExtractAsyncShrinkRequest.ts +53 -0
- package/src/models/StorefrontSceneRecognitionRequest.ts +36 -0
- package/src/models/StorefrontSceneRecognitionResponse.ts +40 -0
- package/src/models/StorefrontSceneRecognitionResponseBody.ts +297 -0
- package/src/models/TextTranslateAsyncRequest.ts +86 -0
- package/src/models/TextTranslateAsyncResponse.ts +40 -0
- package/src/models/TextTranslateAsyncResponseBody.ts +85 -0
- package/src/models/TextTranslateAsyncShrinkRequest.ts +83 -0
- package/src/models/TextTranslateRequest.ts +10 -10
- package/src/models/TextTranslateResponseBody.ts +1 -1
- package/src/models/TextTranslateShrinkRequest.ts +10 -10
- package/src/models/VideoGenerationRequest.ts +21 -12
- package/src/models/VideoGenerationResponseBody.ts +5 -5
- package/src/models/VideoTranslationRequest.ts +44 -6
- package/src/models/VideoTranslationResponseBody.ts +5 -5
- package/src/models/VideoTranslationShrinkRequest.ts +44 -6
- package/src/models/model.ts +89 -0
|
@@ -5,10 +5,10 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DocumentTranslateRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The
|
|
8
|
+
* The type of the document. Valid values: PDF and word.
|
|
9
9
|
* Supported capacity limits:
|
|
10
|
-
* -
|
|
11
|
-
* - PDF: 200 MB
|
|
10
|
+
* - Word: 200 MB or 100 pages
|
|
11
|
+
* - PDF: 200 MB or 100 pages
|
|
12
12
|
* - Maximum size per file: 200 MB
|
|
13
13
|
*
|
|
14
14
|
* This parameter is required.
|
|
@@ -19,7 +19,7 @@ export class DocumentTranslateRequest extends $dara.Model {
|
|
|
19
19
|
fileType?: string;
|
|
20
20
|
/**
|
|
21
21
|
* @remarks
|
|
22
|
-
* The
|
|
22
|
+
* The glossary ID. Specify this parameter when you need the glossary feature. Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand name protection and similar scenarios.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* glossary_1
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DocumentTranslateResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The unique identifier of the asynchronous task. Use this ID to query the task status and
|
|
8
|
+
* The unique identifier of the asynchronous task. Use this ID to query the task status and result.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 6071a030-5c92-9df1-96d0-44952343439a
|
|
@@ -49,7 +49,7 @@ export class DocumentTranslateResponseBody extends $dara.Model {
|
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
51
|
* The error message, such as "The parameters contain sensitive information. Try other input."
|
|
52
|
-
* This parameter is not returned
|
|
52
|
+
* This parameter is not returned if the call is successful.
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* Success
|
|
@@ -57,7 +57,7 @@ export class DocumentTranslateResponseBody extends $dara.Model {
|
|
|
57
57
|
message?: string;
|
|
58
58
|
/**
|
|
59
59
|
* @remarks
|
|
60
|
-
* The unique request
|
|
60
|
+
* The unique identity of the request. Use this ID for troubleshooting and Tracing Analysis.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
63
|
* 39E8A74B-F99E-1195-A5FF-3ECC5F94F304
|
|
@@ -6,7 +6,7 @@ export class EcomVideoRecreationRequestInputProductInfo extends $dara.Model {
|
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
8
|
* The product category.
|
|
9
|
-
* Example:
|
|
9
|
+
* Example value: Women\\"s clothing/Sun protection clothing.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* Women\\"s clothing/sun protection clothing
|
|
@@ -14,8 +14,8 @@ export class EcomVideoRecreationRequestInputProductInfo extends $dara.Model {
|
|
|
14
14
|
category?: string;
|
|
15
15
|
/**
|
|
16
16
|
* @remarks
|
|
17
|
-
* The actual product information
|
|
18
|
-
* Example:
|
|
17
|
+
* The actual product information, such as SKU, brand, color, material, size, specifications, logo, and usage instructions. This information is used to constrain the facts in the voiceover.
|
|
18
|
+
* Example value: Pale moon yellow, cool-touch fabric, sun protection down to the back of the hand, UPF50+
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* Light moon yellow, cool-touch fabric, sun protection extending to the back of the hand, UPF50+
|
|
@@ -23,8 +23,8 @@ export class EcomVideoRecreationRequestInputProductInfo extends $dara.Model {
|
|
|
23
23
|
detail?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The name of the target product. This parameter is required for product replacement
|
|
27
|
-
* Example:
|
|
26
|
+
* The name of the target product. This parameter is required for product replacement. The maximum length is 200 characters.
|
|
27
|
+
* Example value: Pale moon yellow cool-touch sun protection clothing.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* Light moon yellow cool-touch sun protection clothing
|
|
@@ -58,8 +58,8 @@ export class EcomVideoRecreationRequestInputProductInfo extends $dara.Model {
|
|
|
58
58
|
export class EcomVideoRecreationRequestInput extends $dara.Model {
|
|
59
59
|
/**
|
|
60
60
|
* @remarks
|
|
61
|
-
* The description or supplementary constraints for the target person in person replacement
|
|
62
|
-
* Example: The target person is an adult male
|
|
61
|
+
* The description or supplementary constraints for the target person in person replacement. The length is 1 to 500 characters. This parameter is required when PersonReferenceImageUrls is not provided.
|
|
62
|
+
* Example value: The target person is an adult male, retaining the original clothing and actions.
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* The target character is an adult male, with the original costume and movements preserved.
|
|
@@ -75,24 +75,32 @@ export class EcomVideoRecreationRequestInput extends $dara.Model {
|
|
|
75
75
|
mode?: string;
|
|
76
76
|
/**
|
|
77
77
|
* @remarks
|
|
78
|
-
* The URLs of reference images for the target person in person replacement
|
|
79
|
-
* Example: ["https://example.com/person.jpg"]
|
|
78
|
+
* The URLs of the reference images for the target person in person replacement. You can provide 1 to 5 images, which must be of the same person. We recommend that you arrange the images in the order of facial close-up, front, 45-degree angle, side, and back.
|
|
79
|
+
* Example value: ["https://example.com/person.jpg"]
|
|
80
80
|
*/
|
|
81
81
|
personReferenceImageUrls?: string[];
|
|
82
82
|
/**
|
|
83
83
|
* @remarks
|
|
84
|
-
* The URLs of target product images. This parameter is required for product replacement
|
|
85
|
-
* Example: ["https://example.com/product.png"]
|
|
84
|
+
* The URLs of the target product images. This parameter is required for product replacement. You can upload 1 to 8 images for the same SKU. We recommend that the main subject is clear, unobstructed, and has a clean background.
|
|
85
|
+
* Example value: ["https://example.com/product.png"]
|
|
86
86
|
*/
|
|
87
87
|
productImageUrls?: string[];
|
|
88
88
|
/**
|
|
89
89
|
* @remarks
|
|
90
|
-
* The target product information.
|
|
90
|
+
* The target product information. We recommend that you specify this parameter to improve the accuracy of the voiceover.
|
|
91
91
|
*/
|
|
92
92
|
productInfo?: EcomVideoRecreationRequestInputProductInfo;
|
|
93
93
|
/**
|
|
94
94
|
* @remarks
|
|
95
|
-
* The
|
|
95
|
+
* The generation mode. Default value: `reference`. Valid values: `reference` (directly references the original video) and `rebuild` (breaks down the original video before regenerating it).
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* reference
|
|
99
|
+
*/
|
|
100
|
+
recreateMode?: string;
|
|
101
|
+
/**
|
|
102
|
+
* @remarks
|
|
103
|
+
* The HTTP(S) URL of the reference video. The duration ranges from 2 to 360 seconds. The URL must remain accessible during task execution. We recommend that the validity period is no less than 24 hours.
|
|
96
104
|
*
|
|
97
105
|
* This parameter is required.
|
|
98
106
|
*
|
|
@@ -107,6 +115,7 @@ export class EcomVideoRecreationRequestInput extends $dara.Model {
|
|
|
107
115
|
personReferenceImageUrls: 'PersonReferenceImageUrls',
|
|
108
116
|
productImageUrls: 'ProductImageUrls',
|
|
109
117
|
productInfo: 'ProductInfo',
|
|
118
|
+
recreateMode: 'RecreateMode',
|
|
110
119
|
sourceVideoUrl: 'SourceVideoUrl',
|
|
111
120
|
};
|
|
112
121
|
}
|
|
@@ -118,6 +127,7 @@ export class EcomVideoRecreationRequestInput extends $dara.Model {
|
|
|
118
127
|
personReferenceImageUrls: { 'type': 'array', 'itemType': 'string' },
|
|
119
128
|
productImageUrls: { 'type': 'array', 'itemType': 'string' },
|
|
120
129
|
productInfo: EcomVideoRecreationRequestInputProductInfo,
|
|
130
|
+
recreateMode: 'string',
|
|
121
131
|
sourceVideoUrl: 'string',
|
|
122
132
|
};
|
|
123
133
|
}
|
|
@@ -143,7 +153,7 @@ export class EcomVideoRecreationRequestInput extends $dara.Model {
|
|
|
143
153
|
export class EcomVideoRecreationRequestOutput extends $dara.Model {
|
|
144
154
|
/**
|
|
145
155
|
* @remarks
|
|
146
|
-
* The target duration in seconds.
|
|
156
|
+
* The target duration in seconds. In `reference` mode, the input value is ignored and forced to -1, which follows the duration of the original video. In `rebuild` mode, you can pass an integer from 5 to 60, or pass -1 to indicate an automatic duration.
|
|
147
157
|
*
|
|
148
158
|
* @example
|
|
149
159
|
* -1
|
|
@@ -193,14 +203,14 @@ export class EcomVideoRecreationRequestOutput extends $dara.Model {
|
|
|
193
203
|
export class EcomVideoRecreationRequest extends $dara.Model {
|
|
194
204
|
/**
|
|
195
205
|
* @remarks
|
|
196
|
-
* The input parameters for video
|
|
206
|
+
* The input parameters for video variation generation.
|
|
197
207
|
*
|
|
198
208
|
* This parameter is required.
|
|
199
209
|
*/
|
|
200
210
|
input?: EcomVideoRecreationRequestInput;
|
|
201
211
|
/**
|
|
202
212
|
* @remarks
|
|
203
|
-
* The output specifications for the
|
|
213
|
+
* The output specifications for the generated video.
|
|
204
214
|
*/
|
|
205
215
|
output?: EcomVideoRecreationRequestOutput;
|
|
206
216
|
static names(): { [key: string]: string } {
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class EcomVideoRecreationResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The asynchronous task
|
|
8
|
+
* The ID of the asynchronous task, which is used to query the task result by calling QueryAsyncTaskResult.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* task_778fa8bd21804828a5d147050e30edac
|
|
@@ -35,7 +35,7 @@ export class EcomVideoRecreationResponseBodyData extends $dara.Model {
|
|
|
35
35
|
export class EcomVideoRecreationResponseBody extends $dara.Model {
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The result code. A value of `success` indicates success.
|
|
38
|
+
* The result code. A value of `success` indicates success. If the call fails, the corresponding error code is returned.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* success
|
|
@@ -43,12 +43,12 @@ export class EcomVideoRecreationResponseBody extends $dara.Model {
|
|
|
43
43
|
code?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The asynchronous task
|
|
46
|
+
* The submission result of the asynchronous task.
|
|
47
47
|
*/
|
|
48
48
|
data?: EcomVideoRecreationResponseBodyData;
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
* The
|
|
51
|
+
* The return message. If the call fails, an error description is returned.
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* Task submitted
|
|
@@ -56,7 +56,7 @@ export class EcomVideoRecreationResponseBody extends $dara.Model {
|
|
|
56
56
|
message?: string;
|
|
57
57
|
/**
|
|
58
58
|
* @remarks
|
|
59
|
-
* The request ID, used to identify a unique call.
|
|
59
|
+
* The request ID, which is used to identify a unique call.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* 70CBEFDF-BB17-1EB3-8A21-569F3124738F
|
|
@@ -5,14 +5,14 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class EcomVideoRecreationShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The input parameters for video
|
|
8
|
+
* The input parameters for video variation generation.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*/
|
|
12
12
|
inputShrink?: string;
|
|
13
13
|
/**
|
|
14
14
|
* @remarks
|
|
15
|
-
* The output specifications for the
|
|
15
|
+
* The output specifications for the generated video.
|
|
16
16
|
*/
|
|
17
17
|
outputShrink?: string;
|
|
18
18
|
static names(): { [key: string]: string } {
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ImageMattingAsyncRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Specifies the background format of the returned image. Valid values:
|
|
9
|
+
* - WHITE_BACKGROUND: Returns an image with a white background.
|
|
10
|
+
* - TRANSPARENT: Returns an image with a transparent background.
|
|
11
|
+
*
|
|
12
|
+
* This parameter is required.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* WHITE_BACKGROUND
|
|
16
|
+
*/
|
|
17
|
+
backGroundType?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @remarks
|
|
20
|
+
* The BGR color value of the background. Default value: white.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* 255,255,255
|
|
24
|
+
*/
|
|
25
|
+
bgColor?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 100 × 100 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
|
|
29
|
+
*
|
|
30
|
+
* This parameter is required.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg
|
|
34
|
+
*/
|
|
35
|
+
imageUrl?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The expected height of the cropped image. If you do not specify this parameter, the original height of the image is used. Unit: pixels. Valid values: 100 to 5000.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* 800
|
|
42
|
+
*/
|
|
43
|
+
targetHeight?: number;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The expected width of the cropped image. If you do not specify this parameter, the original width of the image is used. Unit: pixels. Valid values: 100 to 5000.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* 800
|
|
50
|
+
*/
|
|
51
|
+
targetWidth?: number;
|
|
52
|
+
static names(): { [key: string]: string } {
|
|
53
|
+
return {
|
|
54
|
+
backGroundType: 'BackGroundType',
|
|
55
|
+
bgColor: 'BgColor',
|
|
56
|
+
imageUrl: 'ImageUrl',
|
|
57
|
+
targetHeight: 'TargetHeight',
|
|
58
|
+
targetWidth: 'TargetWidth',
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
static types(): { [key: string]: any } {
|
|
63
|
+
return {
|
|
64
|
+
backGroundType: 'string',
|
|
65
|
+
bgColor: 'string',
|
|
66
|
+
imageUrl: 'string',
|
|
67
|
+
targetHeight: 'number',
|
|
68
|
+
targetWidth: 'number',
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
validate() {
|
|
73
|
+
super.validate();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
constructor(map?: { [key: string]: any }) {
|
|
77
|
+
super(map);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ImageMattingAsyncResponseBody } from "./ImageMattingAsyncResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ImageMattingAsyncResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ImageMattingAsyncResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: ImageMattingAsyncResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ImageMattingAsyncResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The ID of the task that is used to query the asynchronous task result.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
12
|
+
*/
|
|
13
|
+
taskId?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
taskId: 'TaskId',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
taskId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export class ImageMattingAsyncResponseBody extends $dara.Model {
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The status code, such as success.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* success
|
|
42
|
+
*/
|
|
43
|
+
code?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The commit result of the intelligent image matting asynchronous task node.
|
|
47
|
+
*/
|
|
48
|
+
data?: ImageMattingAsyncResponseBodyData;
|
|
49
|
+
/**
|
|
50
|
+
* @remarks
|
|
51
|
+
* The error message. This parameter is not returned when the call is successful.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* OK
|
|
55
|
+
*/
|
|
56
|
+
message?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @remarks
|
|
59
|
+
* The ID of the request, which is used to identify a unique request.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
63
|
+
*/
|
|
64
|
+
requestId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* @remarks
|
|
67
|
+
* Indicates whether the call is successful. Valid values:
|
|
68
|
+
* - true: The call is successful.
|
|
69
|
+
* - false: The call fails.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* True
|
|
73
|
+
*/
|
|
74
|
+
success?: boolean;
|
|
75
|
+
static names(): { [key: string]: string } {
|
|
76
|
+
return {
|
|
77
|
+
code: 'Code',
|
|
78
|
+
data: 'Data',
|
|
79
|
+
message: 'Message',
|
|
80
|
+
requestId: 'RequestId',
|
|
81
|
+
success: 'Success',
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
static types(): { [key: string]: any } {
|
|
86
|
+
return {
|
|
87
|
+
code: 'string',
|
|
88
|
+
data: ImageMattingAsyncResponseBodyData,
|
|
89
|
+
message: 'string',
|
|
90
|
+
requestId: 'string',
|
|
91
|
+
success: 'boolean',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
validate() {
|
|
96
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
97
|
+
(this.data as any).validate();
|
|
98
|
+
}
|
|
99
|
+
super.validate();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
constructor(map?: { [key: string]: any }) {
|
|
103
|
+
super(map);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The URL of the 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 cannot exceed 10 MB.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg
|
|
14
|
+
*/
|
|
15
|
+
imageUrl?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* Specifies the types of elements to be detected outside the image subject. Valid values:
|
|
19
|
+
* - 1: Watermark.
|
|
20
|
+
* - 2: Logo.
|
|
21
|
+
* - 3: Text.
|
|
22
|
+
* - 4: Text-containing color block.
|
|
23
|
+
* You can specify multiple element types. This parameter and ObjectDetectElements cannot be empty at the same time.
|
|
24
|
+
*/
|
|
25
|
+
nonObjectDetectElements?: number[];
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* Specifies the types of elements to be detected on the image subject. Valid values:
|
|
29
|
+
* - 1: Watermark.
|
|
30
|
+
* - 2: Logo.
|
|
31
|
+
* - 3: Text.
|
|
32
|
+
* - 4: Text-containing color block.
|
|
33
|
+
* You can specify multiple element types.
|
|
34
|
+
*/
|
|
35
|
+
objectDetectElements?: number[];
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* Specifies whether to return the marginalization distance of the subject. Valid values:
|
|
39
|
+
* - 1: Yes.
|
|
40
|
+
* - 0: No.
|
|
41
|
+
* Default value: 0.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* 1
|
|
45
|
+
*/
|
|
46
|
+
returnBorderPixel?: number;
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* Specifies whether to return the OCR results of the text in the recognized area. Valid values:
|
|
50
|
+
* - 1: Yes.
|
|
51
|
+
* - 0: No.
|
|
52
|
+
* Default value: 0.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* 1
|
|
56
|
+
*/
|
|
57
|
+
returnCharacter?: number;
|
|
58
|
+
/**
|
|
59
|
+
* @remarks
|
|
60
|
+
* Specifies whether to return the text proportion. Valid values:
|
|
61
|
+
* - 1: Yes.
|
|
62
|
+
* - 0: No.
|
|
63
|
+
* Default value: 0.
|
|
64
|
+
* This parameter takes effect only when the following two conditions are met:
|
|
65
|
+
* 1. ReturnCharacter is set to 1.
|
|
66
|
+
* 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text recognition is required.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* 1
|
|
70
|
+
*/
|
|
71
|
+
returnCharacterProp?: number;
|
|
72
|
+
/**
|
|
73
|
+
* @remarks
|
|
74
|
+
* Specifies whether to return the number of subjects. Valid values:
|
|
75
|
+
* - 1: Yes.
|
|
76
|
+
* - 0: No.
|
|
77
|
+
* Default value: 0.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* 1
|
|
81
|
+
*/
|
|
82
|
+
returnProductNum?: number;
|
|
83
|
+
/**
|
|
84
|
+
* @remarks
|
|
85
|
+
* Specifies whether to return the area proportion of the subject. Valid values:
|
|
86
|
+
* - 1: Yes.
|
|
87
|
+
* - 0: No.
|
|
88
|
+
* Default value: 0.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* 1
|
|
92
|
+
*/
|
|
93
|
+
returnProductProp?: number;
|
|
94
|
+
static names(): { [key: string]: string } {
|
|
95
|
+
return {
|
|
96
|
+
imageUrl: 'ImageUrl',
|
|
97
|
+
nonObjectDetectElements: 'NonObjectDetectElements',
|
|
98
|
+
objectDetectElements: 'ObjectDetectElements',
|
|
99
|
+
returnBorderPixel: 'ReturnBorderPixel',
|
|
100
|
+
returnCharacter: 'ReturnCharacter',
|
|
101
|
+
returnCharacterProp: 'ReturnCharacterProp',
|
|
102
|
+
returnProductNum: 'ReturnProductNum',
|
|
103
|
+
returnProductProp: 'ReturnProductProp',
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
static types(): { [key: string]: any } {
|
|
108
|
+
return {
|
|
109
|
+
imageUrl: 'string',
|
|
110
|
+
nonObjectDetectElements: { 'type': 'array', 'itemType': 'number' },
|
|
111
|
+
objectDetectElements: { 'type': 'array', 'itemType': 'number' },
|
|
112
|
+
returnBorderPixel: 'number',
|
|
113
|
+
returnCharacter: 'number',
|
|
114
|
+
returnCharacterProp: 'number',
|
|
115
|
+
returnProductNum: 'number',
|
|
116
|
+
returnProductProp: 'number',
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
validate() {
|
|
121
|
+
if(Array.isArray(this.nonObjectDetectElements)) {
|
|
122
|
+
$dara.Model.validateArray(this.nonObjectDetectElements);
|
|
123
|
+
}
|
|
124
|
+
if(Array.isArray(this.objectDetectElements)) {
|
|
125
|
+
$dara.Model.validateArray(this.objectDetectElements);
|
|
126
|
+
}
|
|
127
|
+
super.validate();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
constructor(map?: { [key: string]: any }) {
|
|
131
|
+
super(map);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ImageRecognitionAsyncResponseBody } from "./ImageRecognitionAsyncResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ImageRecognitionAsyncResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ImageRecognitionAsyncResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: ImageRecognitionAsyncResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|