@alicloud/aidge20260428 5.5.0 → 5.7.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 +520 -490
- package/dist/client.js +595 -490
- package/dist/client.js.map +1 -1
- package/dist/models/AiTryOnRequest.d.ts +42 -0
- package/dist/models/AiTryOnRequest.js +64 -0
- package/dist/models/AiTryOnRequest.js.map +1 -0
- package/dist/models/AiTryOnResponse.d.ts +19 -0
- package/dist/models/AiTryOnResponse.js +69 -0
- package/dist/models/AiTryOnResponse.js.map +1 -0
- package/dist/models/AiTryOnResponseBody.d.ts +90 -0
- package/dist/models/AiTryOnResponseBody.js +120 -0
- package/dist/models/AiTryOnResponseBody.js.map +1 -0
- package/dist/models/AssetOptimizeLiteRequest.d.ts +2 -2
- package/dist/models/AssetOptimizeLiteResponseBody.d.ts +1 -3
- package/dist/models/AssetOptimizeLiteResponseBody.js +0 -2
- package/dist/models/AssetOptimizeLiteResponseBody.js.map +1 -1
- package/dist/models/AssetOptimizeProRequest.d.ts +5 -5
- package/dist/models/AssetOptimizeProResponseBody.d.ts +4 -4
- package/dist/models/AssetOptimizeProShrinkRequest.d.ts +5 -5
- package/dist/models/CategoryAttributeMatchRequest.d.ts +5 -5
- package/dist/models/CategoryAttributeMatchResponseBody.d.ts +5 -5
- package/dist/models/CategoryAttributeMatchShrinkRequest.d.ts +5 -5
- package/dist/models/CategoryMatchRequest.d.ts +7 -7
- package/dist/models/CategoryMatchResponseBody.d.ts +8 -8
- package/dist/models/DiduiAreaDeductionRequest.d.ts +2 -2
- package/dist/models/DiduiAreaDeductionResponseBody.d.ts +4 -4
- package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +1 -1
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -3
- package/dist/models/EcomVideoRecreationRequest.d.ts +12 -12
- package/dist/models/EcomVideoRecreationResponseBody.d.ts +2 -2
- package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +1 -1
- package/dist/models/ImageMattingRequest.d.ts +1 -1
- package/dist/models/ImageMattingResponseBody.d.ts +2 -3
- package/dist/models/ImageMattingResponseBody.js.map +1 -1
- package/dist/models/ImageRecognitionRequest.d.ts +2 -2
- package/dist/models/ImageRecognitionResponseBody.d.ts +5 -5
- package/dist/models/ImageRecognitionShrinkRequest.d.ts +2 -2
- package/dist/models/ImageRemovalProRequest.d.ts +2 -2
- package/dist/models/ImageRemovalProResponseBody.d.ts +3 -3
- package/dist/models/ImageRemoveRequest.d.ts +9 -9
- package/dist/models/ImageRemoveResponseBody.d.ts +2 -2
- package/dist/models/ImageRemoveShrinkRequest.d.ts +9 -9
- package/dist/models/ImageTranslationPlusResponseBody.d.ts +3 -3
- package/dist/models/ImageTranslationProRequest.d.ts +6 -6
- package/dist/models/ImageTranslationProResponseBody.d.ts +14 -14
- package/dist/models/ImageTranslationStandardRequest.d.ts +2 -2
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +7 -7
- package/dist/models/LanguageDetectRequest.d.ts +2 -2
- package/dist/models/LanguageDetectResponseBody.d.ts +3 -3
- package/dist/models/MaterialInspectionRequest.d.ts +5 -5
- package/dist/models/MaterialInspectionResponseBody.d.ts +6 -11
- package/dist/models/MaterialInspectionResponseBody.js.map +1 -1
- package/dist/models/MerchandisePlacementDetectionRequest.d.ts +5 -5
- package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +9 -9
- package/dist/models/PackageWeightSizeCheckRequest.d.ts +1 -1
- package/dist/models/PackageWeightSizeCheckResponseBody.d.ts +4 -4
- package/dist/models/PrepaidTextTranslateRequest.d.ts +3 -3
- package/dist/models/PrepaidTextTranslateResponseBody.d.ts +6 -6
- package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +3 -3
- package/dist/models/ProductHotspotDetectionResponseBody.d.ts +2 -2
- package/dist/models/SizeChartDetectResponseBody.d.ts +3 -4
- package/dist/models/SizeChartDetectResponseBody.js.map +1 -1
- package/dist/models/SizeChartExtractRequest.d.ts +2 -2
- package/dist/models/SizeChartExtractResponseBody.d.ts +1 -1
- package/dist/models/SizeChartExtractShrinkRequest.d.ts +2 -2
- package/dist/models/SubmitProductMatchRequest.d.ts +77 -0
- package/dist/models/SubmitProductMatchRequest.js +70 -0
- package/dist/models/SubmitProductMatchRequest.js.map +1 -0
- package/dist/models/SubmitProductMatchResponse.d.ts +19 -0
- package/dist/models/SubmitProductMatchResponse.js +69 -0
- package/dist/models/SubmitProductMatchResponse.js.map +1 -0
- package/dist/models/SubmitProductMatchResponseBody.d.ts +80 -0
- package/dist/models/SubmitProductMatchResponseBody.js +90 -0
- package/dist/models/SubmitProductMatchResponseBody.js.map +1 -0
- package/dist/models/TextCorrectResponseBody.d.ts +1 -1
- package/dist/models/TextTranslateRequest.d.ts +13 -16
- package/dist/models/TextTranslateRequest.js.map +1 -1
- package/dist/models/TextTranslateResponseBody.d.ts +2 -2
- package/dist/models/TextTranslateShrinkRequest.d.ts +13 -16
- package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
- package/dist/models/VideoTranslationRequest.d.ts +2 -2
- package/dist/models/VideoTranslationResponseBody.d.ts +1 -1
- package/dist/models/VideoTranslationShrinkRequest.d.ts +2 -2
- package/dist/models/VirtualTryOnResponseBody.d.ts +3 -3
- package/dist/models/VisionFlowRequest.d.ts +15 -15
- package/dist/models/VisionFlowResponseBody.d.ts +1 -1
- package/dist/models/VisionFlowShrinkRequest.d.ts +15 -15
- package/dist/models/model.d.ts +9 -0
- package/dist/models/model.js +22 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +610 -490
- package/src/models/AiTryOnRequest.ts +61 -0
- package/src/models/AiTryOnResponse.ts +40 -0
- package/src/models/AiTryOnResponseBody.ts +145 -0
- package/src/models/AssetOptimizeLiteRequest.ts +2 -2
- package/src/models/AssetOptimizeLiteResponseBody.ts +1 -3
- package/src/models/AssetOptimizeProRequest.ts +5 -5
- package/src/models/AssetOptimizeProResponseBody.ts +4 -4
- package/src/models/AssetOptimizeProShrinkRequest.ts +5 -5
- package/src/models/CategoryAttributeMatchRequest.ts +5 -5
- package/src/models/CategoryAttributeMatchResponseBody.ts +5 -5
- package/src/models/CategoryAttributeMatchShrinkRequest.ts +5 -5
- package/src/models/CategoryMatchRequest.ts +7 -7
- package/src/models/CategoryMatchResponseBody.ts +8 -8
- package/src/models/DiduiAreaDeductionRequest.ts +2 -2
- package/src/models/DiduiAreaDeductionResponseBody.ts +4 -4
- package/src/models/DiduiAreaDeductionShrinkRequest.ts +1 -1
- package/src/models/DocumentTranslateRequest.ts +1 -1
- package/src/models/DocumentTranslateResponseBody.ts +3 -3
- package/src/models/EcomVideoRecreationRequest.ts +12 -12
- package/src/models/EcomVideoRecreationResponseBody.ts +2 -2
- package/src/models/EcomVideoRecreationShrinkRequest.ts +1 -1
- package/src/models/ImageMattingRequest.ts +1 -1
- package/src/models/ImageMattingResponseBody.ts +2 -3
- package/src/models/ImageRecognitionRequest.ts +2 -2
- package/src/models/ImageRecognitionResponseBody.ts +5 -5
- package/src/models/ImageRecognitionShrinkRequest.ts +2 -2
- package/src/models/ImageRemovalProRequest.ts +2 -2
- package/src/models/ImageRemovalProResponseBody.ts +3 -3
- package/src/models/ImageRemoveRequest.ts +9 -9
- package/src/models/ImageRemoveResponseBody.ts +2 -2
- package/src/models/ImageRemoveShrinkRequest.ts +9 -9
- package/src/models/ImageTranslationPlusResponseBody.ts +3 -3
- package/src/models/ImageTranslationProRequest.ts +6 -6
- package/src/models/ImageTranslationProResponseBody.ts +14 -14
- package/src/models/ImageTranslationStandardRequest.ts +2 -2
- package/src/models/ImageTranslationStandardResponseBody.ts +7 -7
- package/src/models/LanguageDetectRequest.ts +2 -2
- package/src/models/LanguageDetectResponseBody.ts +3 -3
- package/src/models/MaterialInspectionRequest.ts +5 -5
- package/src/models/MaterialInspectionResponseBody.ts +6 -11
- package/src/models/MerchandisePlacementDetectionRequest.ts +5 -5
- package/src/models/MerchandisePlacementDetectionResponseBody.ts +9 -9
- package/src/models/PackageWeightSizeCheckRequest.ts +1 -1
- package/src/models/PackageWeightSizeCheckResponseBody.ts +4 -4
- package/src/models/PrepaidTextTranslateRequest.ts +3 -3
- package/src/models/PrepaidTextTranslateResponseBody.ts +6 -6
- package/src/models/PrepaidTextTranslateShrinkRequest.ts +3 -3
- package/src/models/ProductHotspotDetectionResponseBody.ts +2 -2
- package/src/models/SizeChartDetectResponseBody.ts +3 -4
- package/src/models/SizeChartExtractRequest.ts +2 -2
- package/src/models/SizeChartExtractResponseBody.ts +1 -1
- package/src/models/SizeChartExtractShrinkRequest.ts +2 -2
- package/src/models/SubmitProductMatchRequest.ts +102 -0
- package/src/models/SubmitProductMatchResponse.ts +40 -0
- package/src/models/SubmitProductMatchResponseBody.ts +116 -0
- package/src/models/TextCorrectResponseBody.ts +1 -1
- package/src/models/TextTranslateRequest.ts +13 -16
- package/src/models/TextTranslateResponseBody.ts +2 -2
- package/src/models/TextTranslateShrinkRequest.ts +13 -16
- package/src/models/VideoTranslationRequest.ts +2 -2
- package/src/models/VideoTranslationResponseBody.ts +1 -1
- package/src/models/VideoTranslationShrinkRequest.ts +2 -2
- package/src/models/VirtualTryOnResponseBody.ts +3 -3
- package/src/models/VisionFlowRequest.ts +15 -15
- package/src/models/VisionFlowResponseBody.ts +1 -1
- package/src/models/VisionFlowShrinkRequest.ts +15 -15
- package/src/models/model.ts +9 -0
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SizeChartExtractResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The asynchronous task ID, used to query the result later.
|
|
8
|
+
* The asynchronous task ID, which is used to query the result later.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* task-xxxxx
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SizeChartExtractShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The list of column names (such as Size, Bust, Length).
|
|
8
|
+
* The list of column names (such as Size, Bust, and Length).
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ["Size","Bust","Length"]
|
|
@@ -23,7 +23,7 @@ export class SizeChartExtractShrinkRequest extends $dara.Model {
|
|
|
23
23
|
imageUrl?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The language model
|
|
26
|
+
* The language model (such as en and cn).
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* en
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class SubmitProductMatchRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The product brand. If this value is not specified, the system attempts to extract the brand from the shop name.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* FILA
|
|
12
|
+
*/
|
|
13
|
+
brandName?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The Miaojie product category. Currently used for extension and auditing purposes.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* Children\\"s Shoes
|
|
20
|
+
*/
|
|
21
|
+
category?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The HTTP or HTTPS URL of the product main image.
|
|
25
|
+
*
|
|
26
|
+
* This parameter is required.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* https://example.com/items/228516909/main.jpg
|
|
30
|
+
*/
|
|
31
|
+
imageUrl?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @remarks
|
|
34
|
+
* The Miaojie product ID.
|
|
35
|
+
*
|
|
36
|
+
* This parameter is required.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* 228516909
|
|
40
|
+
*/
|
|
41
|
+
itemId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @remarks
|
|
44
|
+
* The HTTP or HTTPS URL of the product detail page.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* https://example.com/items/228516909
|
|
48
|
+
*/
|
|
49
|
+
productUrl?: string;
|
|
50
|
+
/**
|
|
51
|
+
* @remarks
|
|
52
|
+
* The shop name. This value is also used as the extraction source when the brand name is missing.
|
|
53
|
+
*
|
|
54
|
+
* This parameter is required.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* FILA斐乐官方旗舰店
|
|
58
|
+
*/
|
|
59
|
+
shopName?: string;
|
|
60
|
+
/**
|
|
61
|
+
* @remarks
|
|
62
|
+
* The product title.
|
|
63
|
+
*
|
|
64
|
+
* This parameter is required.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* FILA Kids Training Shoes
|
|
68
|
+
*/
|
|
69
|
+
title?: string;
|
|
70
|
+
static names(): { [key: string]: string } {
|
|
71
|
+
return {
|
|
72
|
+
brandName: 'BrandName',
|
|
73
|
+
category: 'Category',
|
|
74
|
+
imageUrl: 'ImageUrl',
|
|
75
|
+
itemId: 'ItemId',
|
|
76
|
+
productUrl: 'ProductUrl',
|
|
77
|
+
shopName: 'ShopName',
|
|
78
|
+
title: 'Title',
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
static types(): { [key: string]: any } {
|
|
83
|
+
return {
|
|
84
|
+
brandName: 'string',
|
|
85
|
+
category: 'string',
|
|
86
|
+
imageUrl: 'string',
|
|
87
|
+
itemId: 'string',
|
|
88
|
+
productUrl: 'string',
|
|
89
|
+
shopName: 'string',
|
|
90
|
+
title: 'string',
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
validate() {
|
|
95
|
+
super.validate();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
constructor(map?: { [key: string]: any }) {
|
|
99
|
+
super(map);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { SubmitProductMatchResponseBody } from "./SubmitProductMatchResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class SubmitProductMatchResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: SubmitProductMatchResponseBody;
|
|
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: SubmitProductMatchResponseBody,
|
|
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,116 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class SubmitProductMatchResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The task acceptance time in ISO 8601 UTC format.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 2026-08-20T09:30:00Z
|
|
12
|
+
*/
|
|
13
|
+
submittedAt?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The asynchronous task ID used for QueryAsyncTaskResult queries.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* b7ea15cb609f47b7999d2d68dfbf3c90
|
|
20
|
+
*/
|
|
21
|
+
taskId?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
submittedAt: 'SubmittedAt',
|
|
25
|
+
taskId: 'TaskId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
submittedAt: 'string',
|
|
32
|
+
taskId: 'string',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
validate() {
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class SubmitProductMatchResponseBody extends $dara.Model {
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The error code. This parameter is not returned if the call is successful.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* 200
|
|
52
|
+
*/
|
|
53
|
+
code?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The submit result of the matching product identification asynchronous task.
|
|
57
|
+
*/
|
|
58
|
+
data?: SubmitProductMatchResponseBodyData;
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The error message. This parameter is not returned if the call is successful.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* OK
|
|
65
|
+
*/
|
|
66
|
+
message?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* Id of the request
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
73
|
+
*/
|
|
74
|
+
requestId?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* Indicates whether the call is successful. Valid values:
|
|
78
|
+
* - true: The call is successful.
|
|
79
|
+
* - false: The call failed.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* True
|
|
83
|
+
*/
|
|
84
|
+
success?: boolean;
|
|
85
|
+
static names(): { [key: string]: string } {
|
|
86
|
+
return {
|
|
87
|
+
code: 'Code',
|
|
88
|
+
data: 'Data',
|
|
89
|
+
message: 'Message',
|
|
90
|
+
requestId: 'RequestId',
|
|
91
|
+
success: 'Success',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static types(): { [key: string]: any } {
|
|
96
|
+
return {
|
|
97
|
+
code: 'string',
|
|
98
|
+
data: SubmitProductMatchResponseBodyData,
|
|
99
|
+
message: 'string',
|
|
100
|
+
requestId: 'string',
|
|
101
|
+
success: 'boolean',
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
validate() {
|
|
106
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
107
|
+
(this.data as any).validate();
|
|
108
|
+
}
|
|
109
|
+
super.validate();
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
constructor(map?: { [key: string]: any }) {
|
|
113
|
+
super(map);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -61,7 +61,7 @@ export class TextCorrectResponseBody extends $dara.Model {
|
|
|
61
61
|
data?: TextCorrectResponseBodyData;
|
|
62
62
|
/**
|
|
63
63
|
* @remarks
|
|
64
|
-
* The error message. The value "Success" is returned if the call is successful.
|
|
64
|
+
* The error message. The value "Success" is returned if the call is successful. If an error occurs, a specific error message is returned, such as "The parameters contain sensitive information. Try other input."
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* Success
|
|
@@ -5,9 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class TextTranslateRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* This field represents your identity and facilitates communication for various issues.
|
|
9
|
-
* ● If you are an Alibaba internal organization, specify a value based on your actual scenario, such as BU name-product or BU name-chat.
|
|
10
|
-
* ● If you are an external Alibaba partner, specify the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
|
|
8
|
+
* This field represents your identity and facilitates communication for various issues. If you are an Alibaba internal organization, specify a value based on your actual scenario, such as BU name-product or BU name-chat. If you are an external Alibaba partner, specify the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
|
|
11
9
|
*
|
|
12
10
|
* @example
|
|
13
11
|
* MyCompany-Chat
|
|
@@ -15,7 +13,7 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
15
13
|
bizName?: string;
|
|
16
14
|
/**
|
|
17
15
|
* @remarks
|
|
18
|
-
* 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 that preserves HTML tags).
|
|
19
17
|
*
|
|
20
18
|
* @example
|
|
21
19
|
* text
|
|
@@ -23,7 +21,7 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
23
21
|
formatType?: string;
|
|
24
22
|
/**
|
|
25
23
|
* @remarks
|
|
26
|
-
* The intervention glossary ID. This parameter is optional.
|
|
24
|
+
* The intervention glossary ID. This parameter is optional. You must create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
|
|
27
25
|
*
|
|
28
26
|
* @example
|
|
29
27
|
* glossary_1
|
|
@@ -31,7 +29,7 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
31
29
|
glossary?: string;
|
|
32
30
|
/**
|
|
33
31
|
* @remarks
|
|
34
|
-
* The source language code.
|
|
32
|
+
* The source language code. If not specified, the language is automatically detected. This parameter is optional. You can set it to auto for language detection. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
35
33
|
*
|
|
36
34
|
* @example
|
|
37
35
|
* auto
|
|
@@ -39,7 +37,7 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
39
37
|
sourceLanguage?: string;
|
|
40
38
|
/**
|
|
41
39
|
* @remarks
|
|
42
|
-
* The list of texts to
|
|
40
|
+
* The list of texts to be translated. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
|
|
43
41
|
*
|
|
44
42
|
* This parameter is required.
|
|
45
43
|
*
|
|
@@ -49,7 +47,7 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
49
47
|
sourceTextList?: string[];
|
|
50
48
|
/**
|
|
51
49
|
* @remarks
|
|
52
|
-
* The target language code. This parameter is required. For supported language
|
|
50
|
+
* The target language code. This parameter is required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
53
51
|
*
|
|
54
52
|
* This parameter is required.
|
|
55
53
|
*
|
|
@@ -59,14 +57,13 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
59
57
|
targetLanguage?: string;
|
|
60
58
|
/**
|
|
61
59
|
* @remarks
|
|
62
|
-
* The business scenario identifier. You can pass in only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used.
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* ● game: game translation
|
|
60
|
+
* The business scenario identifier. You can pass in only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used. Valid values:
|
|
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.
|
|
70
67
|
*
|
|
71
68
|
* @example
|
|
72
69
|
* e-commerce-title
|
|
@@ -111,7 +111,7 @@ export class TextTranslateResponseBody extends $dara.Model {
|
|
|
111
111
|
data?: TextTranslateResponseBodyData;
|
|
112
112
|
/**
|
|
113
113
|
* @remarks
|
|
114
|
-
* The error message. The value "Success" is returned for successful calls. For
|
|
114
|
+
* The error message. The value "Success" is returned for successful calls. For failed calls, a specific error message is returned, such as "The parameters contain sensitive information. Try other input."
|
|
115
115
|
*
|
|
116
116
|
* @example
|
|
117
117
|
* Success
|
|
@@ -119,7 +119,7 @@ export class TextTranslateResponseBody extends $dara.Model {
|
|
|
119
119
|
message?: string;
|
|
120
120
|
/**
|
|
121
121
|
* @remarks
|
|
122
|
-
* The request ID,
|
|
122
|
+
* The request ID, used to uniquely identify a request.
|
|
123
123
|
*
|
|
124
124
|
* @example
|
|
125
125
|
* 922E43BB-EE0E-1A29-B143-BB91BB3EA6AB
|
|
@@ -5,9 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class TextTranslateShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* This field represents your identity and facilitates communication for various issues.
|
|
9
|
-
* ● If you are an Alibaba internal organization, specify a value based on your actual scenario, such as BU name-product or BU name-chat.
|
|
10
|
-
* ● If you are an external Alibaba partner, specify the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
|
|
8
|
+
* This field represents your identity and facilitates communication for various issues. If you are an Alibaba internal organization, specify a value based on your actual scenario, such as BU name-product or BU name-chat. If you are an external Alibaba partner, specify the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
|
|
11
9
|
*
|
|
12
10
|
* @example
|
|
13
11
|
* MyCompany-Chat
|
|
@@ -15,7 +13,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
15
13
|
bizName?: string;
|
|
16
14
|
/**
|
|
17
15
|
* @remarks
|
|
18
|
-
* 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 that preserves HTML tags).
|
|
19
17
|
*
|
|
20
18
|
* @example
|
|
21
19
|
* text
|
|
@@ -23,7 +21,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
23
21
|
formatType?: string;
|
|
24
22
|
/**
|
|
25
23
|
* @remarks
|
|
26
|
-
* The intervention glossary ID. This parameter is optional.
|
|
24
|
+
* The intervention glossary ID. This parameter is optional. You must create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
|
|
27
25
|
*
|
|
28
26
|
* @example
|
|
29
27
|
* glossary_1
|
|
@@ -31,7 +29,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
31
29
|
glossary?: string;
|
|
32
30
|
/**
|
|
33
31
|
* @remarks
|
|
34
|
-
* The source language code.
|
|
32
|
+
* The source language code. If not specified, the language is automatically detected. This parameter is optional. You can set it to auto for language detection. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
35
33
|
*
|
|
36
34
|
* @example
|
|
37
35
|
* auto
|
|
@@ -39,7 +37,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
39
37
|
sourceLanguage?: string;
|
|
40
38
|
/**
|
|
41
39
|
* @remarks
|
|
42
|
-
* The list of texts to
|
|
40
|
+
* The list of texts to be translated. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
|
|
43
41
|
*
|
|
44
42
|
* This parameter is required.
|
|
45
43
|
*
|
|
@@ -49,7 +47,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
49
47
|
sourceTextListShrink?: string;
|
|
50
48
|
/**
|
|
51
49
|
* @remarks
|
|
52
|
-
* The target language code. This parameter is required. For supported language
|
|
50
|
+
* The target language code. This parameter is required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
53
51
|
*
|
|
54
52
|
* This parameter is required.
|
|
55
53
|
*
|
|
@@ -59,14 +57,13 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
59
57
|
targetLanguage?: string;
|
|
60
58
|
/**
|
|
61
59
|
* @remarks
|
|
62
|
-
* The business scenario identifier. You can pass in only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used.
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* ● game: game translation
|
|
60
|
+
* The business scenario identifier. You can pass in only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used. Valid values:
|
|
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.
|
|
70
67
|
*
|
|
71
68
|
* @example
|
|
72
69
|
* e-commerce-title
|
|
@@ -12,7 +12,7 @@ export class VideoTranslationRequest extends $dara.Model {
|
|
|
12
12
|
capabilities?: string[];
|
|
13
13
|
/**
|
|
14
14
|
* @remarks
|
|
15
|
-
* The source language. This parameter is optional. Default value: auto
|
|
15
|
+
* The source language. This parameter is optional. Default value: auto, which indicates automatic detection.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* zh
|
|
@@ -30,7 +30,7 @@ export class VideoTranslationRequest extends $dara.Model {
|
|
|
30
30
|
targetLanguage?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* The video
|
|
33
|
+
* The URL of the video (MP4/MOV, ≤ 200 MB).
|
|
34
34
|
*
|
|
35
35
|
* This parameter is required.
|
|
36
36
|
*
|
|
@@ -12,7 +12,7 @@ export class VideoTranslationShrinkRequest extends $dara.Model {
|
|
|
12
12
|
capabilitiesShrink?: string;
|
|
13
13
|
/**
|
|
14
14
|
* @remarks
|
|
15
|
-
* The source language. This parameter is optional. Default value: auto
|
|
15
|
+
* The source language. This parameter is optional. Default value: auto, which indicates automatic detection.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* zh
|
|
@@ -30,7 +30,7 @@ export class VideoTranslationShrinkRequest extends $dara.Model {
|
|
|
30
30
|
targetLanguage?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* The video
|
|
33
|
+
* The URL of the video (MP4/MOV, ≤ 200 MB).
|
|
34
34
|
*
|
|
35
35
|
* This parameter is required.
|
|
36
36
|
*
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class VirtualTryOnResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The asynchronous task ID
|
|
8
|
+
* The asynchronous task ID, which is used to query the task result later.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* task-xxxx-xxxx-xxxx
|
|
@@ -66,7 +66,7 @@ export class VirtualTryOnResponseBody extends $dara.Model {
|
|
|
66
66
|
message?: string;
|
|
67
67
|
/**
|
|
68
68
|
* @remarks
|
|
69
|
-
* The request ID
|
|
69
|
+
* The request ID, which uniquely identifies the request.
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -74,7 +74,7 @@ export class VirtualTryOnResponseBody extends $dara.Model {
|
|
|
74
74
|
requestId?: string;
|
|
75
75
|
/**
|
|
76
76
|
* @remarks
|
|
77
|
-
* Indicates whether the call is successful.
|
|
77
|
+
* Indicates whether the call is successful. Valid values: true: The call is successful. false: The call failed.
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
80
|
* True
|