@alicloud/aidge20260428 5.12.2 → 5.14.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 +774 -630
- package/dist/client.js +863 -630
- package/dist/client.js.map +1 -1
- package/dist/models/AddDisplayKnowledgeResponseBody.d.ts +3 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.js.map +1 -1
- package/dist/models/AiTryOnRequest.d.ts +65 -8
- package/dist/models/AiTryOnRequest.js +10 -0
- package/dist/models/AiTryOnRequest.js.map +1 -1
- package/dist/models/AiTryOnResponseBody.d.ts +8 -8
- package/dist/models/CategoryAttributeMatchResponseBody.d.ts +3 -0
- package/dist/models/CategoryAttributeMatchResponseBody.js.map +1 -1
- package/dist/models/DeleteDisplayKnowledgeResponseBody.d.ts +3 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +10 -7
- package/dist/models/DocumentTranslateRequest.js.map +1 -1
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -3
- package/dist/models/EcomVideoRecreationRequest.d.ts +11 -17
- package/dist/models/EcomVideoRecreationRequest.js.map +1 -1
- package/dist/models/EcomVideoRecreationResponseBody.d.ts +3 -3
- package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +2 -2
- package/dist/models/GeneralRephotographyDetectionResponseBody.d.ts +4 -4
- package/dist/models/GenerateProductContentRequest.d.ts +11 -13
- package/dist/models/GenerateProductContentRequest.js.map +1 -1
- package/dist/models/GenerateProductContentResponseBody.d.ts +9 -7
- package/dist/models/GenerateProductContentResponseBody.js.map +1 -1
- package/dist/models/ImageMattingAsyncRequest.d.ts +1 -1
- package/dist/models/ImageMattingAsyncResponseBody.d.ts +2 -2
- package/dist/models/ImageRecognitionAsyncRequest.d.ts +14 -11
- package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +14 -11
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageRemovalProAsyncRequest.d.ts +1 -1
- package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +5 -7
- package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemovalProResponseBody.d.ts +3 -0
- package/dist/models/ImageRemovalProResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncRequest.d.ts +19 -8
- package/dist/models/ImageRemoveAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemoveAsyncResponseBody.d.ts +8 -6
- package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +19 -8
- package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +11 -11
- package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +4 -4
- package/dist/models/ImageTranslationProAsyncRequest.d.ts +5 -5
- package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +1 -1
- package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +1 -1
- package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +3 -3
- package/dist/models/ImageTranslationStandardRequest.d.ts +4 -4
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +10 -10
- package/dist/models/ImageUpscaleRequest.d.ts +1 -1
- package/dist/models/ImageUpscaleResponseBody.d.ts +7 -7
- package/dist/models/MaterialInspectionRequest.d.ts +4 -4
- package/dist/models/MaterialInspectionResponseBody.d.ts +9 -9
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.d.ts +15 -12
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.js.map +1 -1
- package/dist/models/MerchandisePlacementDetectionProRequest.d.ts +5 -5
- package/dist/models/MerchandisePlacementDetectionProResponseBody.d.ts +6 -6
- package/dist/models/MerchandisePlacementDetectionRequest.d.ts +7 -7
- package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +19 -19
- package/dist/models/MerchandisePriceTagDetectionRequest.d.ts +1 -1
- package/dist/models/MerchandisePriceTagDetectionResponseBody.d.ts +11 -11
- package/dist/models/MerchandiseSceneDetectionRequest.d.ts +1 -1
- package/dist/models/MerchandiseSceneDetectionResponseBody.d.ts +16 -10
- package/dist/models/MerchandiseSceneDetectionResponseBody.js.map +1 -1
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.d.ts +7 -7
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.d.ts +12 -9
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.js.map +1 -1
- package/dist/models/PrepaidTextTranslateRequest.d.ts +8 -8
- package/dist/models/PrepaidTextTranslateResponseBody.d.ts +11 -8
- package/dist/models/PrepaidTextTranslateResponseBody.js.map +1 -1
- package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +8 -8
- package/dist/models/ProductVideoGenerationRequest.d.ts +62 -0
- package/dist/models/ProductVideoGenerationRequest.js +71 -0
- package/dist/models/ProductVideoGenerationRequest.js.map +1 -0
- package/dist/models/ProductVideoGenerationResponse.d.ts +19 -0
- package/dist/models/ProductVideoGenerationResponse.js +69 -0
- package/dist/models/ProductVideoGenerationResponse.js.map +1 -0
- package/dist/models/ProductVideoGenerationResponseBody.d.ts +86 -0
- package/dist/models/ProductVideoGenerationResponseBody.js +92 -0
- package/dist/models/ProductVideoGenerationResponseBody.js.map +1 -0
- package/dist/models/ProductVideoGenerationShrinkRequest.d.ts +62 -0
- package/dist/models/ProductVideoGenerationShrinkRequest.js +68 -0
- package/dist/models/ProductVideoGenerationShrinkRequest.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +3 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.js.map +1 -1
- package/dist/models/SizeChartExtractAsyncRequest.d.ts +3 -3
- package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +7 -5
- package/dist/models/SizeChartExtractAsyncResponseBody.js.map +1 -1
- package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +3 -3
- package/dist/models/StorefrontSceneRecognitionRequest.d.ts +1 -1
- package/dist/models/StorefrontSceneRecognitionResponseBody.d.ts +9 -6
- package/dist/models/StorefrontSceneRecognitionResponseBody.js.map +1 -1
- package/dist/models/SubmitProductMatchRequest.d.ts +8 -8
- package/dist/models/SubmitProductMatchResponseBody.d.ts +7 -7
- package/dist/models/TextTranslateAsyncRequest.d.ts +9 -9
- package/dist/models/TextTranslateAsyncResponseBody.d.ts +6 -6
- package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +9 -9
- package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +3 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.js.map +1 -1
- package/dist/models/VacancyDetectionRequest.d.ts +39 -0
- package/dist/models/VacancyDetectionRequest.js +62 -0
- package/dist/models/VacancyDetectionRequest.js.map +1 -0
- package/dist/models/VacancyDetectionResponse.d.ts +19 -0
- package/dist/models/VacancyDetectionResponse.js +69 -0
- package/dist/models/VacancyDetectionResponse.js.map +1 -0
- package/dist/models/VacancyDetectionResponseBody.d.ts +83 -0
- package/dist/models/VacancyDetectionResponseBody.js +93 -0
- package/dist/models/VacancyDetectionResponseBody.js.map +1 -0
- package/dist/models/VideoGenerationRequest.d.ts +18 -17
- package/dist/models/VideoGenerationRequest.js.map +1 -1
- package/dist/models/VideoGenerationResponseBody.d.ts +2 -2
- package/dist/models/VideoTranslationRequest.d.ts +8 -17
- package/dist/models/VideoTranslationRequest.js.map +1 -1
- package/dist/models/VideoTranslationResponseBody.d.ts +4 -6
- package/dist/models/VideoTranslationResponseBody.js.map +1 -1
- package/dist/models/VideoTranslationShrinkRequest.d.ts +8 -17
- package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
- package/dist/models/VirtualTryOnResponseBody.d.ts +7 -6
- package/dist/models/VirtualTryOnResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +9 -0
- package/dist/models/model.js +23 -5
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +882 -630
- package/src/models/AddDisplayKnowledgeResponseBody.ts +3 -0
- package/src/models/AiTryOnRequest.ts +75 -8
- package/src/models/AiTryOnResponseBody.ts +8 -8
- package/src/models/CategoryAttributeMatchResponseBody.ts +3 -0
- package/src/models/DeleteDisplayKnowledgeResponseBody.ts +3 -0
- package/src/models/DocumentTranslateRequest.ts +10 -7
- package/src/models/DocumentTranslateResponseBody.ts +3 -3
- package/src/models/EcomVideoRecreationRequest.ts +11 -17
- package/src/models/EcomVideoRecreationResponseBody.ts +3 -3
- package/src/models/EcomVideoRecreationShrinkRequest.ts +2 -2
- package/src/models/GeneralRephotographyDetectionResponseBody.ts +4 -4
- package/src/models/GenerateProductContentRequest.ts +11 -13
- package/src/models/GenerateProductContentResponseBody.ts +9 -7
- package/src/models/ImageMattingAsyncRequest.ts +1 -1
- package/src/models/ImageMattingAsyncResponseBody.ts +2 -2
- package/src/models/ImageRecognitionAsyncRequest.ts +14 -11
- package/src/models/ImageRecognitionAsyncResponseBody.ts +5 -5
- package/src/models/ImageRecognitionAsyncShrinkRequest.ts +14 -11
- package/src/models/ImageRemovalProAsyncRequest.ts +1 -1
- package/src/models/ImageRemovalProAsyncResponseBody.ts +5 -7
- package/src/models/ImageRemovalProResponseBody.ts +3 -0
- package/src/models/ImageRemoveAsyncRequest.ts +19 -8
- package/src/models/ImageRemoveAsyncResponseBody.ts +8 -6
- package/src/models/ImageRemoveAsyncShrinkRequest.ts +19 -8
- package/src/models/ImageTranslationPlusAsyncRequest.ts +11 -11
- package/src/models/ImageTranslationPlusAsyncResponseBody.ts +4 -4
- package/src/models/ImageTranslationProAsyncRequest.ts +5 -5
- package/src/models/ImageTranslationProAsyncResponseBody.ts +1 -1
- package/src/models/ImageTranslationStandardAsyncRequest.ts +1 -1
- package/src/models/ImageTranslationStandardAsyncResponseBody.ts +3 -3
- package/src/models/ImageTranslationStandardRequest.ts +4 -4
- package/src/models/ImageTranslationStandardResponseBody.ts +10 -10
- package/src/models/ImageUpscaleRequest.ts +1 -1
- package/src/models/ImageUpscaleResponseBody.ts +7 -7
- package/src/models/MaterialInspectionRequest.ts +4 -4
- package/src/models/MaterialInspectionResponseBody.ts +9 -9
- package/src/models/MerchandisePlacementDetectionLiteResponseBody.ts +15 -12
- package/src/models/MerchandisePlacementDetectionProRequest.ts +5 -5
- package/src/models/MerchandisePlacementDetectionProResponseBody.ts +6 -6
- package/src/models/MerchandisePlacementDetectionRequest.ts +7 -7
- package/src/models/MerchandisePlacementDetectionResponseBody.ts +19 -19
- package/src/models/MerchandisePriceTagDetectionRequest.ts +1 -1
- package/src/models/MerchandisePriceTagDetectionResponseBody.ts +11 -11
- package/src/models/MerchandiseSceneDetectionRequest.ts +1 -1
- package/src/models/MerchandiseSceneDetectionResponseBody.ts +16 -10
- package/src/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.ts +7 -7
- package/src/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.ts +12 -9
- package/src/models/PrepaidTextTranslateRequest.ts +8 -8
- package/src/models/PrepaidTextTranslateResponseBody.ts +11 -8
- package/src/models/PrepaidTextTranslateShrinkRequest.ts +8 -8
- package/src/models/ProductVideoGenerationRequest.ts +88 -0
- package/src/models/ProductVideoGenerationResponse.ts +40 -0
- package/src/models/ProductVideoGenerationResponseBody.ts +124 -0
- package/src/models/ProductVideoGenerationShrinkRequest.ts +85 -0
- package/src/models/QueryDisplayKnowledgeResponseBody.ts +3 -0
- package/src/models/SizeChartExtractAsyncRequest.ts +3 -3
- package/src/models/SizeChartExtractAsyncResponseBody.ts +7 -5
- package/src/models/SizeChartExtractAsyncShrinkRequest.ts +3 -3
- package/src/models/StorefrontSceneRecognitionRequest.ts +1 -1
- package/src/models/StorefrontSceneRecognitionResponseBody.ts +9 -6
- package/src/models/SubmitProductMatchRequest.ts +8 -8
- package/src/models/SubmitProductMatchResponseBody.ts +7 -7
- package/src/models/TextTranslateAsyncRequest.ts +9 -9
- package/src/models/TextTranslateAsyncResponseBody.ts +6 -6
- package/src/models/TextTranslateAsyncShrinkRequest.ts +9 -9
- package/src/models/UpdateDisplayKnowledgeResponseBody.ts +3 -0
- package/src/models/VacancyDetectionRequest.ts +56 -0
- package/src/models/VacancyDetectionResponse.ts +40 -0
- package/src/models/VacancyDetectionResponseBody.ts +120 -0
- package/src/models/VideoGenerationRequest.ts +18 -17
- package/src/models/VideoGenerationResponseBody.ts +2 -2
- package/src/models/VideoTranslationRequest.ts +8 -17
- package/src/models/VideoTranslationResponseBody.ts +4 -6
- package/src/models/VideoTranslationShrinkRequest.ts +8 -17
- package/src/models/VirtualTryOnResponseBody.ts +7 -6
- package/src/models/model.ts +9 -0
|
@@ -5,15 +5,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class PrepaidTextTranslateShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The business scenario identifier. This parameter is optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or
|
|
8
|
+
* The business scenario identifier. This parameter is optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, and game. If this parameter is not specified or is invalid, the general translation policy is used by default.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
|
-
* Alibaba
|
|
11
|
+
* Alibaba-Product
|
|
12
12
|
*/
|
|
13
13
|
bizName?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format
|
|
16
|
+
* The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format, which retains HTML tags).
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* text
|
|
@@ -21,7 +21,7 @@ export class PrepaidTextTranslateShrinkRequest extends $dara.Model {
|
|
|
21
21
|
formatType?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The intervention glossary
|
|
24
|
+
* The ID of the intervention glossary. This parameter is optional. You must create the glossary in the console and provide its ID. If the provided intervention glossary ID is empty, the translation results are not modified.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* custom_glossary
|
|
@@ -29,7 +29,7 @@ export class PrepaidTextTranslateShrinkRequest extends $dara.Model {
|
|
|
29
29
|
glossary?: string;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
* The source language code. This parameter is optional. If not
|
|
32
|
+
* The source language code. This parameter is optional. If you do not specify this parameter, the language is automatically detected. You can set this parameter to auto for language detection.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* auto
|
|
@@ -37,7 +37,7 @@ export class PrepaidTextTranslateShrinkRequest extends $dara.Model {
|
|
|
37
37
|
sourceLanguage?: string;
|
|
38
38
|
/**
|
|
39
39
|
* @remarks
|
|
40
|
-
* The list of
|
|
40
|
+
* The list of text to be translated. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
|
|
41
41
|
*
|
|
42
42
|
* This parameter is required.
|
|
43
43
|
*
|
|
@@ -47,7 +47,7 @@ export class PrepaidTextTranslateShrinkRequest extends $dara.Model {
|
|
|
47
47
|
sourceTextListShrink?: string;
|
|
48
48
|
/**
|
|
49
49
|
* @remarks
|
|
50
|
-
* The target language code. This parameter is required. More than 100 language
|
|
50
|
+
* The target language code. This parameter is required. More than 100 language pairs are supported. For details, see the supported language pairs list.
|
|
51
51
|
*
|
|
52
52
|
* This parameter is required.
|
|
53
53
|
*
|
|
@@ -57,7 +57,7 @@ export class PrepaidTextTranslateShrinkRequest extends $dara.Model {
|
|
|
57
57
|
targetLanguage?: string;
|
|
58
58
|
/**
|
|
59
59
|
* @remarks
|
|
60
|
-
* The format of the
|
|
60
|
+
* The format of the translated text. Valid values: html (web page format. Setting this parameter processes the source and translated text in HTML format) and text (text format. Setting this parameter processes the source and translated text as plain text without format processing).
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
63
|
* e-commerce-title
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ProductVideoGenerationRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The aspect ratio of the video. Default value: 9:16. Valid values: 16:9, 1:1, 3:4, and 9:16.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 9:16
|
|
12
|
+
*/
|
|
13
|
+
aspectRatio?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The duration of the video in seconds. Default value: 15. If no script is provided, the value must be an integer from 5 to 15. If a script is provided, the value must be an integer from 5 to 30. A value of 15.0 is treated as 15.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 15
|
|
20
|
+
*/
|
|
21
|
+
duration?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The public image URLs. At least one image URL is required. Each URL must start with http:// or https:// after leading and trailing whitespaces are removed.
|
|
25
|
+
*
|
|
26
|
+
* This parameter is required.
|
|
27
|
+
*/
|
|
28
|
+
productImages?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* @remarks
|
|
31
|
+
* The product title. This parameter is required.
|
|
32
|
+
*
|
|
33
|
+
* This parameter is required.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* White minimalist ceramic mug
|
|
37
|
+
*/
|
|
38
|
+
productTitle?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* The resolution of the video. Default value: 720P. Valid values: 720P and 1080P. The value is case-insensitive and is automatically converted to uppercase by the service.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* 720P
|
|
45
|
+
*/
|
|
46
|
+
resolution?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* The existing storyboard script. If this parameter is not provided or is left blank, automatic planning is used.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* create a dog
|
|
53
|
+
*/
|
|
54
|
+
script?: string;
|
|
55
|
+
static names(): { [key: string]: string } {
|
|
56
|
+
return {
|
|
57
|
+
aspectRatio: 'aspect_ratio',
|
|
58
|
+
duration: 'duration',
|
|
59
|
+
productImages: 'product_images',
|
|
60
|
+
productTitle: 'product_title',
|
|
61
|
+
resolution: 'resolution',
|
|
62
|
+
script: 'script',
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
static types(): { [key: string]: any } {
|
|
67
|
+
return {
|
|
68
|
+
aspectRatio: 'string',
|
|
69
|
+
duration: 'number',
|
|
70
|
+
productImages: { 'type': 'array', 'itemType': 'string' },
|
|
71
|
+
productTitle: 'string',
|
|
72
|
+
resolution: 'string',
|
|
73
|
+
script: 'string',
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
validate() {
|
|
78
|
+
if(Array.isArray(this.productImages)) {
|
|
79
|
+
$dara.Model.validateArray(this.productImages);
|
|
80
|
+
}
|
|
81
|
+
super.validate();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
constructor(map?: { [key: string]: any }) {
|
|
85
|
+
super(map);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ProductVideoGenerationResponseBody } from "./ProductVideoGenerationResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ProductVideoGenerationResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ProductVideoGenerationResponseBody;
|
|
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: ProductVideoGenerationResponseBody,
|
|
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,124 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ProductVideoGenerationResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The planning route written upon acceptance. Valid values: DIRECT (with script) and AUTO_PLAN (automatic planning).
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* AUTO_PLAN
|
|
12
|
+
*/
|
|
13
|
+
route?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The current status of the task.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* PENDING
|
|
20
|
+
*/
|
|
21
|
+
status?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The task ID of the service.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* task_778fa8bd21804828a5d147050e30edac
|
|
28
|
+
*/
|
|
29
|
+
taskId?: string;
|
|
30
|
+
static names(): { [key: string]: string } {
|
|
31
|
+
return {
|
|
32
|
+
route: 'route',
|
|
33
|
+
status: 'status',
|
|
34
|
+
taskId: 'task_id',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
route: 'string',
|
|
41
|
+
status: 'string',
|
|
42
|
+
taskId: 'string',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
validate() {
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class ProductVideoGenerationResponseBody extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The error code.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* success
|
|
62
|
+
*/
|
|
63
|
+
code?: string;
|
|
64
|
+
/**
|
|
65
|
+
* @remarks
|
|
66
|
+
* The task acceptance result.
|
|
67
|
+
*/
|
|
68
|
+
data?: ProductVideoGenerationResponseBodyData;
|
|
69
|
+
/**
|
|
70
|
+
* @remarks
|
|
71
|
+
* The returned message or failure description.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* Task submitted
|
|
75
|
+
*/
|
|
76
|
+
message?: string;
|
|
77
|
+
/**
|
|
78
|
+
* @remarks
|
|
79
|
+
* Id of the request
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* 70CBEFDF-BB17-1EB3-8A21-569F3124738F
|
|
83
|
+
*/
|
|
84
|
+
requestId?: string;
|
|
85
|
+
/**
|
|
86
|
+
* @remarks
|
|
87
|
+
* Indicates whether the call was successful.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* True
|
|
91
|
+
*/
|
|
92
|
+
success?: boolean;
|
|
93
|
+
static names(): { [key: string]: string } {
|
|
94
|
+
return {
|
|
95
|
+
code: 'Code',
|
|
96
|
+
data: 'Data',
|
|
97
|
+
message: 'Message',
|
|
98
|
+
requestId: 'RequestId',
|
|
99
|
+
success: 'Success',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
static types(): { [key: string]: any } {
|
|
104
|
+
return {
|
|
105
|
+
code: 'string',
|
|
106
|
+
data: ProductVideoGenerationResponseBodyData,
|
|
107
|
+
message: 'string',
|
|
108
|
+
requestId: 'string',
|
|
109
|
+
success: 'boolean',
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
validate() {
|
|
114
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
115
|
+
(this.data as any).validate();
|
|
116
|
+
}
|
|
117
|
+
super.validate();
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
constructor(map?: { [key: string]: any }) {
|
|
121
|
+
super(map);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ProductVideoGenerationShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The aspect ratio of the video. Default value: 9:16. Valid values: 16:9, 1:1, 3:4, and 9:16.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 9:16
|
|
12
|
+
*/
|
|
13
|
+
aspectRatio?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The duration of the video in seconds. Default value: 15. If no script is provided, the value must be an integer from 5 to 15. If a script is provided, the value must be an integer from 5 to 30. A value of 15.0 is treated as 15.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 15
|
|
20
|
+
*/
|
|
21
|
+
duration?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The public image URLs. At least one image URL is required. Each URL must start with http:// or https:// after leading and trailing whitespaces are removed.
|
|
25
|
+
*
|
|
26
|
+
* This parameter is required.
|
|
27
|
+
*/
|
|
28
|
+
productImagesShrink?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @remarks
|
|
31
|
+
* The product title. This parameter is required.
|
|
32
|
+
*
|
|
33
|
+
* This parameter is required.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* White minimalist ceramic mug
|
|
37
|
+
*/
|
|
38
|
+
productTitle?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* The resolution of the video. Default value: 720P. Valid values: 720P and 1080P. The value is case-insensitive and is automatically converted to uppercase by the service.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* 720P
|
|
45
|
+
*/
|
|
46
|
+
resolution?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* The existing storyboard script. If this parameter is not provided or is left blank, automatic planning is used.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* create a dog
|
|
53
|
+
*/
|
|
54
|
+
script?: string;
|
|
55
|
+
static names(): { [key: string]: string } {
|
|
56
|
+
return {
|
|
57
|
+
aspectRatio: 'aspect_ratio',
|
|
58
|
+
duration: 'duration',
|
|
59
|
+
productImagesShrink: 'product_images',
|
|
60
|
+
productTitle: 'product_title',
|
|
61
|
+
resolution: 'resolution',
|
|
62
|
+
script: 'script',
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
static types(): { [key: string]: any } {
|
|
67
|
+
return {
|
|
68
|
+
aspectRatio: 'string',
|
|
69
|
+
duration: 'number',
|
|
70
|
+
productImagesShrink: 'string',
|
|
71
|
+
productTitle: 'string',
|
|
72
|
+
resolution: 'string',
|
|
73
|
+
script: 'string',
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
validate() {
|
|
78
|
+
super.validate();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
constructor(map?: { [key: string]: any }) {
|
|
82
|
+
super(map);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -203,6 +203,9 @@ export class QueryDisplayKnowledgeResponseBodyData extends $dara.Model {
|
|
|
203
203
|
/**
|
|
204
204
|
* @remarks
|
|
205
205
|
* The usage information. This parameter is empty for free API operations.
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* {"ProcessingCount":1}
|
|
206
209
|
*/
|
|
207
210
|
usageMap?: { [key: string]: number };
|
|
208
211
|
static names(): { [key: string]: string } {
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SizeChartExtractAsyncRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The business
|
|
8
|
+
* The business ID of the caller. It is recorded when the request is accepted and returned as-is when you query the result of the asynchronous task.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* order-20260928-001
|
|
@@ -18,7 +18,7 @@ export class SizeChartExtractAsyncRequest extends $dara.Model {
|
|
|
18
18
|
columnNameList?: string[];
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
* The image URL. 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.
|
|
21
|
+
* The image URL. The image must be in the JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 pixels and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
|
|
22
22
|
*
|
|
23
23
|
* This parameter is required.
|
|
24
24
|
*
|
|
@@ -28,7 +28,7 @@ export class SizeChartExtractAsyncRequest extends $dara.Model {
|
|
|
28
28
|
imageUrl?: string;
|
|
29
29
|
/**
|
|
30
30
|
* @remarks
|
|
31
|
-
* The output language. If you do not specify this parameter, the original language is
|
|
31
|
+
* The output language format. If you do not specify this parameter, the original language of the image is retained. If the original language of the image is Chinese or English, set this parameter to en to output English, or set it to cn to output Chinese.
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* en
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SizeChartExtractAsyncResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The task ID used to query the asynchronous task
|
|
8
|
+
* The task ID, which is used to query the result of the asynchronous task.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
@@ -35,7 +35,7 @@ export class SizeChartExtractAsyncResponseBodyData extends $dara.Model {
|
|
|
35
35
|
export class SizeChartExtractAsyncResponseBody extends $dara.Model {
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The error code. This parameter is not returned for
|
|
38
|
+
* The error code. This parameter is not returned for successful calls.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* success
|
|
@@ -48,7 +48,7 @@ export class SizeChartExtractAsyncResponseBody extends $dara.Model {
|
|
|
48
48
|
data?: SizeChartExtractAsyncResponseBodyData;
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
* The error message. This parameter is not returned for
|
|
51
|
+
* The error message. This parameter is not returned for successful calls.
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* OK
|
|
@@ -56,7 +56,7 @@ export class SizeChartExtractAsyncResponseBody extends $dara.Model {
|
|
|
56
56
|
message?: string;
|
|
57
57
|
/**
|
|
58
58
|
* @remarks
|
|
59
|
-
* The request ID
|
|
59
|
+
* The request ID. It is used to identify a unique request.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -64,7 +64,9 @@ export class SizeChartExtractAsyncResponseBody extends $dara.Model {
|
|
|
64
64
|
requestId?: string;
|
|
65
65
|
/**
|
|
66
66
|
* @remarks
|
|
67
|
-
* Indicates whether the call is successful.
|
|
67
|
+
* Indicates whether the call is successful. Valid values:
|
|
68
|
+
* - true: The call is successful.
|
|
69
|
+
* - false: The call fails.
|
|
68
70
|
*
|
|
69
71
|
* @example
|
|
70
72
|
* True
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SizeChartExtractAsyncShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The business
|
|
8
|
+
* The business ID of the caller. It is recorded when the request is accepted and returned as-is when you query the result of the asynchronous task.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* order-20260928-001
|
|
@@ -18,7 +18,7 @@ export class SizeChartExtractAsyncShrinkRequest extends $dara.Model {
|
|
|
18
18
|
columnNameListShrink?: string;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
* The image URL. 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.
|
|
21
|
+
* The image URL. The image must be in the JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 pixels and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
|
|
22
22
|
*
|
|
23
23
|
* This parameter is required.
|
|
24
24
|
*
|
|
@@ -28,7 +28,7 @@ export class SizeChartExtractAsyncShrinkRequest extends $dara.Model {
|
|
|
28
28
|
imageUrl?: string;
|
|
29
29
|
/**
|
|
30
30
|
* @remarks
|
|
31
|
-
* The output language. If you do not specify this parameter, the original language is
|
|
31
|
+
* The output language format. If you do not specify this parameter, the original language of the image is retained. If the original language of the image is Chinese or English, set this parameter to en to output English, or set it to cn to output Chinese.
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* en
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class StorefrontSceneRecognitionRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The HTTP(S) URL of the image to be
|
|
8
|
+
* The HTTP(S) URL of the image to be checked.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -8,12 +8,12 @@ export class StorefrontSceneRecognitionResponseBodyDataResultDetails extends $da
|
|
|
8
8
|
* The non-empty category name.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
|
-
* oppo vivo smartphone
|
|
11
|
+
* oppo vivo smartphone store
|
|
12
12
|
*/
|
|
13
13
|
clazz?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* A finite numerical value. The source document does not specify
|
|
16
|
+
* A finite numerical value. The source document does not specify the value range.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 0.99
|
|
@@ -46,6 +46,9 @@ export class StorefrontSceneRecognitionResponseBodyDataResultGroundingRegions ex
|
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
48
|
* The bounding box coordinates.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* [0,0,456,398]
|
|
49
52
|
*/
|
|
50
53
|
bbox2d?: number[];
|
|
51
54
|
/**
|
|
@@ -103,7 +106,7 @@ export class StorefrontSceneRecognitionResponseBodyDataResultGrounding extends $
|
|
|
103
106
|
coverage?: string;
|
|
104
107
|
/**
|
|
105
108
|
* @remarks
|
|
106
|
-
* The
|
|
109
|
+
* The list of regions.
|
|
107
110
|
*/
|
|
108
111
|
regions?: StorefrontSceneRecognitionResponseBodyDataResultGroundingRegions[];
|
|
109
112
|
static names(): { [key: string]: string } {
|
|
@@ -135,7 +138,7 @@ export class StorefrontSceneRecognitionResponseBodyDataResultGrounding extends $
|
|
|
135
138
|
export class StorefrontSceneRecognitionResponseBodyDataResult extends $dara.Model {
|
|
136
139
|
/**
|
|
137
140
|
* @remarks
|
|
138
|
-
* The classification details
|
|
141
|
+
* The classification details, which can be an empty array.
|
|
139
142
|
*/
|
|
140
143
|
details?: StorefrontSceneRecognitionResponseBodyDataResultDetails[];
|
|
141
144
|
/**
|
|
@@ -145,7 +148,7 @@ export class StorefrontSceneRecognitionResponseBodyDataResult extends $dara.Mode
|
|
|
145
148
|
grounding?: StorefrontSceneRecognitionResponseBodyDataResultGrounding;
|
|
146
149
|
/**
|
|
147
150
|
* @remarks
|
|
148
|
-
* The non-empty scene
|
|
151
|
+
* The non-empty array of scene classifications.
|
|
149
152
|
*/
|
|
150
153
|
scenes?: string[];
|
|
151
154
|
static names(): { [key: string]: string } {
|
|
@@ -185,7 +188,7 @@ export class StorefrontSceneRecognitionResponseBodyDataResult extends $dara.Mode
|
|
|
185
188
|
export class StorefrontSceneRecognitionResponseBodyData extends $dara.Model {
|
|
186
189
|
/**
|
|
187
190
|
* @remarks
|
|
188
|
-
* The scene recognition result
|
|
191
|
+
* The details of the scene recognition result.
|
|
189
192
|
*/
|
|
190
193
|
result?: StorefrontSceneRecognitionResponseBodyDataResult;
|
|
191
194
|
/**
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SubmitProductMatchRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The product brand. If
|
|
8
|
+
* The product brand. If missing, the service attempts to extract it from the shop name.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* FILA
|
|
@@ -13,15 +13,15 @@ export class SubmitProductMatchRequest extends $dara.Model {
|
|
|
13
13
|
brandName?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The Miaojie product category
|
|
16
|
+
* The Miaojie product category, which is currently used for extension and auditing.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
|
-
* Children\\"s
|
|
19
|
+
* Children\\"s shoes
|
|
20
20
|
*/
|
|
21
21
|
category?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The HTTP
|
|
24
|
+
* The HTTP/HTTPS URL of the product main image.
|
|
25
25
|
*
|
|
26
26
|
* This parameter is required.
|
|
27
27
|
*
|
|
@@ -41,7 +41,7 @@ export class SubmitProductMatchRequest extends $dara.Model {
|
|
|
41
41
|
itemId?: string;
|
|
42
42
|
/**
|
|
43
43
|
* @remarks
|
|
44
|
-
* The HTTP
|
|
44
|
+
* The HTTP/HTTPS URL of the product detail page.
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
47
|
* https://example.com/items/228516909
|
|
@@ -49,12 +49,12 @@ export class SubmitProductMatchRequest extends $dara.Model {
|
|
|
49
49
|
productUrl?: string;
|
|
50
50
|
/**
|
|
51
51
|
* @remarks
|
|
52
|
-
* The shop name
|
|
52
|
+
* The shop name, which is also used as the extraction source when the brand is missing.
|
|
53
53
|
*
|
|
54
54
|
* This parameter is required.
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
|
-
* FILA
|
|
57
|
+
* FILA Official Flagship Store
|
|
58
58
|
*/
|
|
59
59
|
shopName?: string;
|
|
60
60
|
/**
|
|
@@ -64,7 +64,7 @@ export class SubmitProductMatchRequest extends $dara.Model {
|
|
|
64
64
|
* This parameter is required.
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
|
-
* FILA
|
|
67
|
+
* FILA children\\"s training shoes
|
|
68
68
|
*/
|
|
69
69
|
title?: string;
|
|
70
70
|
static names(): { [key: string]: string } {
|