@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
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class TextTranslateAsyncRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* order-20260928-001
|
|
9
|
+
*/
|
|
10
|
+
bizId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* BUxxx-chat
|
|
14
|
+
*/
|
|
15
|
+
bizName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* text
|
|
19
|
+
*/
|
|
20
|
+
formatType?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* " glossary_1"
|
|
24
|
+
*/
|
|
25
|
+
glossary?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* auto
|
|
29
|
+
*/
|
|
30
|
+
sourceLanguage?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* This parameter is required.
|
|
34
|
+
*/
|
|
35
|
+
sourceTextList?: string[];
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* This parameter is required.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* en
|
|
42
|
+
*/
|
|
43
|
+
targetLanguage?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @example
|
|
46
|
+
* e-commerce-title
|
|
47
|
+
*/
|
|
48
|
+
translateScene?: string;
|
|
49
|
+
static names(): { [key: string]: string } {
|
|
50
|
+
return {
|
|
51
|
+
bizId: 'BizId',
|
|
52
|
+
bizName: 'BizName',
|
|
53
|
+
formatType: 'FormatType',
|
|
54
|
+
glossary: 'Glossary',
|
|
55
|
+
sourceLanguage: 'SourceLanguage',
|
|
56
|
+
sourceTextList: 'SourceTextList',
|
|
57
|
+
targetLanguage: 'TargetLanguage',
|
|
58
|
+
translateScene: 'TranslateScene',
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
static types(): { [key: string]: any } {
|
|
63
|
+
return {
|
|
64
|
+
bizId: 'string',
|
|
65
|
+
bizName: 'string',
|
|
66
|
+
formatType: 'string',
|
|
67
|
+
glossary: 'string',
|
|
68
|
+
sourceLanguage: 'string',
|
|
69
|
+
sourceTextList: { 'type': 'array', 'itemType': 'string' },
|
|
70
|
+
targetLanguage: 'string',
|
|
71
|
+
translateScene: 'string',
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
validate() {
|
|
76
|
+
if(Array.isArray(this.sourceTextList)) {
|
|
77
|
+
$dara.Model.validateArray(this.sourceTextList);
|
|
78
|
+
}
|
|
79
|
+
super.validate();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
constructor(map?: { [key: string]: any }) {
|
|
83
|
+
super(map);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { TextTranslateAsyncResponseBody } from "./TextTranslateAsyncResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class TextTranslateAsyncResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: TextTranslateAsyncResponseBody;
|
|
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: TextTranslateAsyncResponseBody,
|
|
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,85 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class TextTranslateAsyncResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
9
|
+
*/
|
|
10
|
+
taskId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
taskId: 'TaskId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
taskId: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class TextTranslateAsyncResponseBody extends $dara.Model {
|
|
33
|
+
/**
|
|
34
|
+
* @example
|
|
35
|
+
* success
|
|
36
|
+
*/
|
|
37
|
+
code?: string;
|
|
38
|
+
data?: TextTranslateAsyncResponseBodyData;
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* success
|
|
42
|
+
*/
|
|
43
|
+
message?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @example
|
|
46
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
47
|
+
*/
|
|
48
|
+
requestId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* @example
|
|
51
|
+
* True
|
|
52
|
+
*/
|
|
53
|
+
success?: boolean;
|
|
54
|
+
static names(): { [key: string]: string } {
|
|
55
|
+
return {
|
|
56
|
+
code: 'Code',
|
|
57
|
+
data: 'Data',
|
|
58
|
+
message: 'Message',
|
|
59
|
+
requestId: 'RequestId',
|
|
60
|
+
success: 'Success',
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
static types(): { [key: string]: any } {
|
|
65
|
+
return {
|
|
66
|
+
code: 'string',
|
|
67
|
+
data: TextTranslateAsyncResponseBodyData,
|
|
68
|
+
message: 'string',
|
|
69
|
+
requestId: 'string',
|
|
70
|
+
success: 'boolean',
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
validate() {
|
|
75
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
76
|
+
(this.data as any).validate();
|
|
77
|
+
}
|
|
78
|
+
super.validate();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
constructor(map?: { [key: string]: any }) {
|
|
82
|
+
super(map);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class TextTranslateAsyncShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* order-20260928-001
|
|
9
|
+
*/
|
|
10
|
+
bizId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* BUxxx-chat
|
|
14
|
+
*/
|
|
15
|
+
bizName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* text
|
|
19
|
+
*/
|
|
20
|
+
formatType?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* " glossary_1"
|
|
24
|
+
*/
|
|
25
|
+
glossary?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* auto
|
|
29
|
+
*/
|
|
30
|
+
sourceLanguage?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* This parameter is required.
|
|
34
|
+
*/
|
|
35
|
+
sourceTextListShrink?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* This parameter is required.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* en
|
|
42
|
+
*/
|
|
43
|
+
targetLanguage?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @example
|
|
46
|
+
* e-commerce-title
|
|
47
|
+
*/
|
|
48
|
+
translateScene?: string;
|
|
49
|
+
static names(): { [key: string]: string } {
|
|
50
|
+
return {
|
|
51
|
+
bizId: 'BizId',
|
|
52
|
+
bizName: 'BizName',
|
|
53
|
+
formatType: 'FormatType',
|
|
54
|
+
glossary: 'Glossary',
|
|
55
|
+
sourceLanguage: 'SourceLanguage',
|
|
56
|
+
sourceTextListShrink: 'SourceTextList',
|
|
57
|
+
targetLanguage: 'TargetLanguage',
|
|
58
|
+
translateScene: 'TranslateScene',
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
static types(): { [key: string]: any } {
|
|
63
|
+
return {
|
|
64
|
+
bizId: 'string',
|
|
65
|
+
bizName: 'string',
|
|
66
|
+
formatType: 'string',
|
|
67
|
+
glossary: 'string',
|
|
68
|
+
sourceLanguage: 'string',
|
|
69
|
+
sourceTextListShrink: 'string',
|
|
70
|
+
targetLanguage: 'string',
|
|
71
|
+
translateScene: 'string',
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
validate() {
|
|
76
|
+
super.validate();
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
constructor(map?: { [key: string]: any }) {
|
|
80
|
+
super(map);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -21,7 +21,7 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
21
21
|
formatType?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The intervention glossary ID. This parameter is optional.
|
|
24
|
+
* The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console, and its ID must be provided. If the specified glossary ID is empty, the translation results are not modified.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* glossary_1
|
|
@@ -29,7 +29,10 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
29
29
|
glossary?: string;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
* The source language code.
|
|
32
|
+
* The source language code. If this parameter is not specified, the language is automatically detected. This parameter is optional. You can pass auto for language detection.
|
|
33
|
+
* <props="china">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html)
|
|
34
|
+
*
|
|
35
|
+
* <props="intl">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping)
|
|
33
36
|
*
|
|
34
37
|
* @example
|
|
35
38
|
* auto
|
|
@@ -47,7 +50,10 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
47
50
|
sourceTextList?: string[];
|
|
48
51
|
/**
|
|
49
52
|
* @remarks
|
|
50
|
-
* The target language code. This parameter is required.
|
|
53
|
+
* The target language code. This parameter is required.
|
|
54
|
+
* <props="china">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html)
|
|
55
|
+
*
|
|
56
|
+
* <props="intl">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping)
|
|
51
57
|
*
|
|
52
58
|
* This parameter is required.
|
|
53
59
|
*
|
|
@@ -57,13 +63,7 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
57
63
|
targetLanguage?: string;
|
|
58
64
|
/**
|
|
59
65
|
* @remarks
|
|
60
|
-
* The business scenario identifier. You can pass
|
|
61
|
-
* - e-commerce-title: cross-border e-commerce product title translation.
|
|
62
|
-
* - e-commerce-description: cross-border e-commerce product description translation.
|
|
63
|
-
* - e-commerce-chat: cross-border e-commerce conversation translation.
|
|
64
|
-
* - e-commerce-cpv: cross-border e-commerce product CPV attribute translation.
|
|
65
|
-
* - novel: novel translation.
|
|
66
|
-
* - game: game translation.
|
|
66
|
+
* The business scenario identifier. You can pass only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style policy to produce translations that better fit the industry. If this field is not specified or is specified incorrectly, the general translation policy is used. Valid values: e-commerce-title (cross-border e-commerce product title translation), e-commerce-description (cross-border e-commerce product description translation), e-commerce-chat (cross-border e-commerce conversation translation), e-commerce-cpv (cross-border e-commerce product CPV attribute translation), novel (novel translation), game (game translation).
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
69
|
* e-commerce-title
|
|
@@ -119,7 +119,7 @@ export class TextTranslateResponseBody extends $dara.Model {
|
|
|
119
119
|
message?: string;
|
|
120
120
|
/**
|
|
121
121
|
* @remarks
|
|
122
|
-
* The request ID, which uniquely identifies a single
|
|
122
|
+
* The request ID, which uniquely identifies a single API call.
|
|
123
123
|
*
|
|
124
124
|
* @example
|
|
125
125
|
* 922E43BB-EE0E-1A29-B143-BB91BB3EA6AB
|
|
@@ -21,7 +21,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
21
21
|
formatType?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The intervention glossary ID. This parameter is optional.
|
|
24
|
+
* The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console, and its ID must be provided. If the specified glossary ID is empty, the translation results are not modified.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* glossary_1
|
|
@@ -29,7 +29,10 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
29
29
|
glossary?: string;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
* The source language code.
|
|
32
|
+
* The source language code. If this parameter is not specified, the language is automatically detected. This parameter is optional. You can pass auto for language detection.
|
|
33
|
+
* <props="china">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html)
|
|
34
|
+
*
|
|
35
|
+
* <props="intl">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping)
|
|
33
36
|
*
|
|
34
37
|
* @example
|
|
35
38
|
* auto
|
|
@@ -47,7 +50,10 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
47
50
|
sourceTextListShrink?: string;
|
|
48
51
|
/**
|
|
49
52
|
* @remarks
|
|
50
|
-
* The target language code. This parameter is required.
|
|
53
|
+
* The target language code. This parameter is required.
|
|
54
|
+
* <props="china">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html)
|
|
55
|
+
*
|
|
56
|
+
* <props="intl">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping)
|
|
51
57
|
*
|
|
52
58
|
* This parameter is required.
|
|
53
59
|
*
|
|
@@ -57,13 +63,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
57
63
|
targetLanguage?: string;
|
|
58
64
|
/**
|
|
59
65
|
* @remarks
|
|
60
|
-
* The business scenario identifier. You can pass
|
|
61
|
-
* - e-commerce-title: cross-border e-commerce product title translation.
|
|
62
|
-
* - e-commerce-description: cross-border e-commerce product description translation.
|
|
63
|
-
* - e-commerce-chat: cross-border e-commerce conversation translation.
|
|
64
|
-
* - e-commerce-cpv: cross-border e-commerce product CPV attribute translation.
|
|
65
|
-
* - novel: novel translation.
|
|
66
|
-
* - game: game translation.
|
|
66
|
+
* The business scenario identifier. You can pass only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style policy to produce translations that better fit the industry. If this field is not specified or is specified incorrectly, the general translation policy is used. Valid values: e-commerce-title (cross-border e-commerce product title translation), e-commerce-description (cross-border e-commerce product description translation), e-commerce-chat (cross-border e-commerce conversation translation), e-commerce-cpv (cross-border e-commerce product CPV attribute translation), novel (novel translation), game (game translation).
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
69
|
* e-commerce-title
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class VideoGenerationRequestInputAssetBindings extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The asset index.
|
|
8
|
+
* The asset index, such as 0, 1, 2, or 3, which must be consistent with the number of the image URL.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 0
|
|
@@ -13,7 +13,13 @@ export class VideoGenerationRequestInputAssetBindings extends $dara.Model {
|
|
|
13
13
|
assetIndex?: number;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The
|
|
16
|
+
* The description of the image. Examples:
|
|
17
|
+
* 1. Description for look_reference: Front full-body outfit reference image of the person.
|
|
18
|
+
* 2. Description for scene_reference: Specified clothing display scene.
|
|
19
|
+
* 3. Description for garment_reference:
|
|
20
|
+
* ● Front of the top;
|
|
21
|
+
* ● Back of the bottom;
|
|
22
|
+
* ● Side of the shoes.
|
|
17
23
|
*
|
|
18
24
|
* @example
|
|
19
25
|
* -
|
|
@@ -21,7 +27,10 @@ export class VideoGenerationRequestInputAssetBindings extends $dara.Model {
|
|
|
21
27
|
description?: string;
|
|
22
28
|
/**
|
|
23
29
|
* @remarks
|
|
24
|
-
*
|
|
30
|
+
* Specifies the asset usage. Valid values:
|
|
31
|
+
* - look_reference: Corresponds to the full outfit effect image of the person wearing the clothes (overall visual).
|
|
32
|
+
* - scene_reference: Corresponds to the scene reference image (usually the cover main image).
|
|
33
|
+
* - garment_reference: Corresponds to all product detail images (including front, back, and side of clothes, shoes, skirts, and other partial close-ups).
|
|
25
34
|
*
|
|
26
35
|
* @example
|
|
27
36
|
* -
|
|
@@ -65,14 +74,14 @@ export class VideoGenerationRequestInput extends $dara.Model {
|
|
|
65
74
|
extra?: { [key: string]: any };
|
|
66
75
|
/**
|
|
67
76
|
* @remarks
|
|
68
|
-
* The list of product image URLs (1 to
|
|
77
|
+
* The list of product image URLs (1 to 8 images), which must be accessible over the Internet.
|
|
69
78
|
*
|
|
70
79
|
* This parameter is required.
|
|
71
80
|
*/
|
|
72
81
|
images?: string[];
|
|
73
82
|
/**
|
|
74
83
|
* @remarks
|
|
75
|
-
* The product title.
|
|
84
|
+
* The product title. Only the first 60 characters are used.
|
|
76
85
|
*
|
|
77
86
|
* This parameter is required.
|
|
78
87
|
*
|
|
@@ -119,7 +128,7 @@ export class VideoGenerationRequestInput extends $dara.Model {
|
|
|
119
128
|
export class VideoGenerationRequestIntent extends $dara.Model {
|
|
120
129
|
/**
|
|
121
130
|
* @remarks
|
|
122
|
-
* The
|
|
131
|
+
* The delivery channel.
|
|
123
132
|
*
|
|
124
133
|
* @example
|
|
125
134
|
* -
|
|
@@ -127,13 +136,13 @@ export class VideoGenerationRequestIntent extends $dara.Model {
|
|
|
127
136
|
channel?: string;
|
|
128
137
|
/**
|
|
129
138
|
* @remarks
|
|
130
|
-
*
|
|
139
|
+
* Specifies the business goal. Valid values:
|
|
131
140
|
*
|
|
132
|
-
* camera_motion: Camera movement mode. Generates
|
|
141
|
+
* - camera_motion: Camera movement mode. Generates videos based on a fixed 360-degree camera movement logic.
|
|
133
142
|
*
|
|
134
|
-
* scripted_video: Scripted mode. Provides a script or prompt, and the system generates video
|
|
143
|
+
* - scripted_video: Scripted mode. Provides a script or prompt, and the system generates the video according to the script.
|
|
135
144
|
*
|
|
136
|
-
* auto_video: Unscripted mode.
|
|
145
|
+
* - auto_video: Unscripted mode. Does not provide a script, and the system automatically plans the script and generates the video.
|
|
137
146
|
*
|
|
138
147
|
* @example
|
|
139
148
|
* auto_video
|
|
@@ -199,7 +208,7 @@ export class VideoGenerationRequestIntent extends $dara.Model {
|
|
|
199
208
|
export class VideoGenerationRequestOutput extends $dara.Model {
|
|
200
209
|
/**
|
|
201
210
|
* @remarks
|
|
202
|
-
* The video duration
|
|
211
|
+
* The video duration varies by Intent.goal: auto_video supports 5 to 15 seconds, scripted_video supports 5 to 30 seconds, and camera_motion generates a fixed 10-second video and returns two 5-second videos.
|
|
203
212
|
*
|
|
204
213
|
* This parameter is required.
|
|
205
214
|
*
|
|
@@ -219,7 +228,7 @@ export class VideoGenerationRequestOutput extends $dara.Model {
|
|
|
219
228
|
quality?: string;
|
|
220
229
|
/**
|
|
221
230
|
* @remarks
|
|
222
|
-
* The
|
|
231
|
+
* The aspect ratio varies by Intent.goal: auto_video and scripted_video only support 9:16, and camera_motion only supports 3:4.
|
|
223
232
|
*
|
|
224
233
|
* @example
|
|
225
234
|
* 9:16
|
|
@@ -13,7 +13,7 @@ export class VideoGenerationResponseBodyData extends $dara.Model {
|
|
|
13
13
|
taskId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The metering usage information.
|
|
16
|
+
* The metering and usage information.
|
|
17
17
|
*/
|
|
18
18
|
usageMap?: { [key: string]: number };
|
|
19
19
|
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
|
|
48
|
+
* The response code. A value of success indicates that the call is successful, and a value of failed indicates that the call fails.
|
|
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
|
|
56
|
+
* The struct information of the returned result.
|
|
57
57
|
*/
|
|
58
58
|
data?: VideoGenerationResponseBodyData;
|
|
59
59
|
/**
|
|
60
60
|
* @remarks
|
|
61
|
-
* The
|
|
61
|
+
* The returned message. An error message is returned when 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, which
|
|
69
|
+
* The request ID, which is used to identify a unique request call.
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* 70CBEFDF-BB17-1EB3-8A21-569F3124738F
|
|
@@ -5,14 +5,38 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class VideoTranslationRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The
|
|
8
|
+
* The list of translation features. Valid values: speech and visual. You can select both. At least one feature is required. Duplicate values are not accepted.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*/
|
|
12
12
|
capabilities?: string[];
|
|
13
13
|
/**
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* Specifies whether to enable the quality check for on-screen text processing. Default value: false. The quality check is enabled when visual is included and this parameter is explicitly set to true. If only speech is selected, this parameter is ignored, no quality check is performed, no quality check fields are returned, and no errors are reported due to this parameter. Enabling the quality check may increase the waiting time. Do not enable it unless necessary.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* true
|
|
19
|
+
*/
|
|
20
|
+
enableQualityCheck?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* Specifies whether to only erase the source language text in the video frames without translating it. This parameter is valid only when visual is included. Valid values: true (erases only) and false (translates the on-screen text). Default value: false.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* true
|
|
27
|
+
*/
|
|
28
|
+
eraseOnly?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @remarks
|
|
31
|
+
* Specifies whether to erase brand logos. This parameter is valid only when visual is included. Valid values: true (erases brand logos) and false (retains logos). Default value: false. This parameter is independent of eraseOnly.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* true
|
|
35
|
+
*/
|
|
36
|
+
removeLogo?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @remarks
|
|
39
|
+
* The source language. For supported languages, see Language support.
|
|
16
40
|
*
|
|
17
41
|
* @example
|
|
18
42
|
* zh
|
|
@@ -20,9 +44,15 @@ export class VideoTranslationRequest extends $dara.Model {
|
|
|
20
44
|
sourceLanguage?: string;
|
|
21
45
|
/**
|
|
22
46
|
* @remarks
|
|
23
|
-
* The
|
|
47
|
+
* The subtitle processing mode. This parameter is valid only when speech is included. Valid values: erase (erases only the original subtitles) and replace (erases the original subtitles and adds new subtitles). If this parameter is omitted, the original subtitles are not processed and no new subtitles are added.
|
|
24
48
|
*
|
|
25
|
-
*
|
|
49
|
+
* @example
|
|
50
|
+
* erase
|
|
51
|
+
*/
|
|
52
|
+
subtitleMode?: string;
|
|
53
|
+
/**
|
|
54
|
+
* @remarks
|
|
55
|
+
* The target language. This parameter is required.
|
|
26
56
|
*
|
|
27
57
|
* @example
|
|
28
58
|
* ru
|
|
@@ -30,18 +60,22 @@ export class VideoTranslationRequest extends $dara.Model {
|
|
|
30
60
|
targetLanguage?: string;
|
|
31
61
|
/**
|
|
32
62
|
* @remarks
|
|
33
|
-
* The URL of the video
|
|
63
|
+
* The URL of the video. Supported formats: MP4 and MOV. Maximum size: 200 MB.
|
|
34
64
|
*
|
|
35
65
|
* This parameter is required.
|
|
36
66
|
*
|
|
37
67
|
* @example
|
|
38
|
-
* https://example.com/
|
|
68
|
+
* https://cdn.example.com/product-demo.mp4
|
|
39
69
|
*/
|
|
40
70
|
videoUrl?: string;
|
|
41
71
|
static names(): { [key: string]: string } {
|
|
42
72
|
return {
|
|
43
73
|
capabilities: 'Capabilities',
|
|
74
|
+
enableQualityCheck: 'EnableQualityCheck',
|
|
75
|
+
eraseOnly: 'EraseOnly',
|
|
76
|
+
removeLogo: 'RemoveLogo',
|
|
44
77
|
sourceLanguage: 'SourceLanguage',
|
|
78
|
+
subtitleMode: 'SubtitleMode',
|
|
45
79
|
targetLanguage: 'TargetLanguage',
|
|
46
80
|
videoUrl: 'VideoUrl',
|
|
47
81
|
};
|
|
@@ -50,7 +84,11 @@ export class VideoTranslationRequest extends $dara.Model {
|
|
|
50
84
|
static types(): { [key: string]: any } {
|
|
51
85
|
return {
|
|
52
86
|
capabilities: { 'type': 'array', 'itemType': 'string' },
|
|
87
|
+
enableQualityCheck: 'boolean',
|
|
88
|
+
eraseOnly: 'boolean',
|
|
89
|
+
removeLogo: 'boolean',
|
|
53
90
|
sourceLanguage: 'string',
|
|
91
|
+
subtitleMode: 'string',
|
|
54
92
|
targetLanguage: 'string',
|
|
55
93
|
videoUrl: 'string',
|
|
56
94
|
};
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class VideoTranslationResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The asynchronous task
|
|
8
|
+
* The ID of the asynchronous task, which is used for subsequent queries.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 0ea3b66e88a543658520c994f08896a0
|
|
@@ -43,12 +43,12 @@ export class VideoTranslationResponseBody extends $dara.Model {
|
|
|
43
43
|
code?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The
|
|
46
|
+
* The submission result of the asynchronous task.
|
|
47
47
|
*/
|
|
48
48
|
data?: VideoTranslationResponseBodyData;
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
* The description.
|
|
51
|
+
* The description message.
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* Translation processing
|
|
@@ -56,7 +56,7 @@ export class VideoTranslationResponseBody extends $dara.Model {
|
|
|
56
56
|
message?: string;
|
|
57
57
|
/**
|
|
58
58
|
* @remarks
|
|
59
|
-
* The request
|
|
59
|
+
* The request tracking ID.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* req_20260608_jkl012
|
|
@@ -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
|
|
67
|
+
* Indicates whether the call is successful. Valid values: true (successful) and false (failed).
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
70
|
* True
|