@alicloud/aidge20260428 5.9.0 → 5.10.1
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 +324 -264
- package/dist/client.js +488 -264
- package/dist/client.js.map +1 -1
- package/dist/models/AddDisplayKnowledgeRequest.d.ts +68 -0
- package/dist/models/AddDisplayKnowledgeRequest.js +88 -0
- package/dist/models/AddDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/AddDisplayKnowledgeResponse.js +69 -0
- package/dist/models/AddDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.d.ts +210 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.js +143 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/AiTryOnRequest.d.ts +4 -4
- package/dist/models/AiTryOnResponseBody.d.ts +10 -10
- package/dist/models/AiTryOnResponseBody.js +0 -2
- package/dist/models/AiTryOnResponseBody.js.map +1 -1
- package/dist/models/DeleteDisplayKnowledgeRequest.d.ts +30 -0
- package/dist/models/DeleteDisplayKnowledgeRequest.js +63 -0
- package/dist/models/DeleteDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.js +69 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.d.ts +214 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.js +145 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/ImageMattingAsyncRequest.d.ts +9 -1
- package/dist/models/ImageMattingAsyncRequest.js +2 -0
- package/dist/models/ImageMattingAsyncRequest.js.map +1 -1
- package/dist/models/ImageMattingAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageRecognitionAsyncRequest.d.ts +33 -25
- package/dist/models/ImageRecognitionAsyncRequest.js +2 -0
- package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +6 -6
- package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +33 -25
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js +2 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageRemovalProAsyncRequest.d.ts +10 -1
- package/dist/models/ImageRemovalProAsyncRequest.js +2 -0
- package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +7 -5
- package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncRequest.d.ts +25 -6
- package/dist/models/ImageRemoveAsyncRequest.js +2 -0
- package/dist/models/ImageRemoveAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemoveAsyncResponseBody.d.ts +6 -4
- package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +25 -6
- package/dist/models/ImageRemoveAsyncShrinkRequest.js +2 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +17 -9
- package/dist/models/ImageTranslationPlusAsyncRequest.js +2 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageTranslationProAsyncRequest.d.ts +15 -7
- package/dist/models/ImageTranslationProAsyncRequest.js +2 -0
- package/dist/models/ImageTranslationProAsyncRequest.js.map +1 -1
- package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +4 -4
- package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +10 -2
- package/dist/models/ImageTranslationStandardAsyncRequest.js +2 -0
- package/dist/models/ImageTranslationStandardAsyncRequest.js.map +1 -1
- package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +4 -4
- package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +13 -7
- package/dist/models/QueryAsyncTaskResultResponseBody.js +2 -0
- package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -1
- package/dist/models/QueryDisplayKnowledgeRequest.d.ts +60 -0
- package/dist/models/QueryDisplayKnowledgeRequest.js +71 -0
- package/dist/models/QueryDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/QueryDisplayKnowledgeResponse.js +69 -0
- package/dist/models/QueryDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +240 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.js +151 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.d.ts +60 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.js +68 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncRequest.d.ts +9 -1
- package/dist/models/SizeChartExtractAsyncRequest.js +2 -0
- package/dist/models/SizeChartExtractAsyncRequest.js.map +1 -1
- package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +5 -5
- package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +9 -1
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js +2 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js.map +1 -1
- package/dist/models/TextTranslateAsyncRequest.d.ts +28 -0
- package/dist/models/TextTranslateAsyncRequest.js.map +1 -1
- package/dist/models/TextTranslateAsyncResponseBody.d.ts +19 -0
- package/dist/models/TextTranslateAsyncResponseBody.js.map +1 -1
- package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +28 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.js.map +1 -1
- package/dist/models/UpdateDisplayKnowledgeRequest.d.ts +74 -0
- package/dist/models/UpdateDisplayKnowledgeRequest.js +88 -0
- package/dist/models/UpdateDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.js +69 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +206 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.js +143 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/VideoTranslationRequest.d.ts +12 -12
- package/dist/models/VideoTranslationResponseBody.d.ts +1 -1
- package/dist/models/VideoTranslationShrinkRequest.d.ts +12 -12
- package/dist/models/model.d.ts +26 -0
- package/dist/models/model.js +59 -6
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +524 -268
- package/src/models/AddDisplayKnowledgeRequest.ts +100 -0
- package/src/models/AddDisplayKnowledgeResponse.ts +40 -0
- package/src/models/AddDisplayKnowledgeResponseBody.ts +288 -0
- package/src/models/AddDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/AiTryOnRequest.ts +4 -4
- package/src/models/AiTryOnResponseBody.ts +10 -10
- package/src/models/DeleteDisplayKnowledgeRequest.ts +48 -0
- package/src/models/DeleteDisplayKnowledgeResponse.ts +40 -0
- package/src/models/DeleteDisplayKnowledgeResponseBody.ts +294 -0
- package/src/models/DeleteDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/ImageMattingAsyncRequest.ts +11 -1
- package/src/models/ImageMattingAsyncResponseBody.ts +5 -5
- package/src/models/ImageRecognitionAsyncRequest.ts +35 -25
- package/src/models/ImageRecognitionAsyncResponseBody.ts +6 -6
- package/src/models/ImageRecognitionAsyncShrinkRequest.ts +35 -25
- package/src/models/ImageRemovalProAsyncRequest.ts +12 -1
- package/src/models/ImageRemovalProAsyncResponseBody.ts +7 -5
- package/src/models/ImageRemoveAsyncRequest.ts +27 -6
- package/src/models/ImageRemoveAsyncResponseBody.ts +6 -4
- package/src/models/ImageRemoveAsyncShrinkRequest.ts +27 -6
- package/src/models/ImageTranslationPlusAsyncRequest.ts +19 -9
- package/src/models/ImageTranslationPlusAsyncResponseBody.ts +5 -5
- package/src/models/ImageTranslationProAsyncRequest.ts +17 -7
- package/src/models/ImageTranslationProAsyncResponseBody.ts +4 -4
- package/src/models/ImageTranslationStandardAsyncRequest.ts +12 -2
- package/src/models/ImageTranslationStandardAsyncResponseBody.ts +4 -4
- package/src/models/QueryAsyncTaskResultResponseBody.ts +15 -7
- package/src/models/QueryDisplayKnowledgeRequest.ts +86 -0
- package/src/models/QueryDisplayKnowledgeResponse.ts +40 -0
- package/src/models/QueryDisplayKnowledgeResponseBody.ts +326 -0
- package/src/models/QueryDisplayKnowledgeShrinkRequest.ts +83 -0
- package/src/models/SizeChartExtractAsyncRequest.ts +11 -1
- package/src/models/SizeChartExtractAsyncResponseBody.ts +5 -5
- package/src/models/SizeChartExtractAsyncShrinkRequest.ts +11 -1
- package/src/models/TextTranslateAsyncRequest.ts +28 -0
- package/src/models/TextTranslateAsyncResponseBody.ts +19 -0
- package/src/models/TextTranslateAsyncShrinkRequest.ts +28 -0
- package/src/models/UpdateDisplayKnowledgeRequest.ts +108 -0
- package/src/models/UpdateDisplayKnowledgeResponse.ts +40 -0
- package/src/models/UpdateDisplayKnowledgeResponseBody.ts +284 -0
- package/src/models/UpdateDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/VideoTranslationRequest.ts +12 -12
- package/src/models/VideoTranslationResponseBody.ts +1 -1
- package/src/models/VideoTranslationShrinkRequest.ts +12 -12
- package/src/models/model.ts +26 -0
|
@@ -3,6 +3,14 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class SizeChartExtractAsyncRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The business order number of the caller. It is recorded when the request is accepted and returned as is when you query the asynchronous task result.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* order-20260928-001
|
|
12
|
+
*/
|
|
13
|
+
bizId?: string;
|
|
6
14
|
/**
|
|
7
15
|
* @remarks
|
|
8
16
|
* The list of column names to extract, such as Size, Bust, and Length.
|
|
@@ -10,7 +18,7 @@ export class SizeChartExtractAsyncRequest extends $dara.Model {
|
|
|
10
18
|
columnNameList?: string[];
|
|
11
19
|
/**
|
|
12
20
|
* @remarks
|
|
13
|
-
* 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
|
|
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.
|
|
14
22
|
*
|
|
15
23
|
* This parameter is required.
|
|
16
24
|
*
|
|
@@ -28,6 +36,7 @@ export class SizeChartExtractAsyncRequest extends $dara.Model {
|
|
|
28
36
|
languageModel?: string;
|
|
29
37
|
static names(): { [key: string]: string } {
|
|
30
38
|
return {
|
|
39
|
+
bizId: 'BizId',
|
|
31
40
|
columnNameList: 'ColumnNameList',
|
|
32
41
|
imageUrl: 'ImageUrl',
|
|
33
42
|
languageModel: 'LanguageModel',
|
|
@@ -36,6 +45,7 @@ export class SizeChartExtractAsyncRequest extends $dara.Model {
|
|
|
36
45
|
|
|
37
46
|
static types(): { [key: string]: any } {
|
|
38
47
|
return {
|
|
48
|
+
bizId: 'string',
|
|
39
49
|
columnNameList: { 'type': 'array', 'itemType': 'string' },
|
|
40
50
|
imageUrl: 'string',
|
|
41
51
|
languageModel: 'string',
|
|
@@ -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 ID
|
|
8
|
+
* The task ID used to query the asynchronous task result.
|
|
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
|
|
38
|
+
* The error code. This parameter is not returned for normal calls.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* success
|
|
@@ -43,12 +43,12 @@ export class SizeChartExtractAsyncResponseBody extends $dara.Model {
|
|
|
43
43
|
code?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The
|
|
46
|
+
* The commit result of the size chart fetch asynchronous task node.
|
|
47
47
|
*/
|
|
48
48
|
data?: SizeChartExtractAsyncResponseBodyData;
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
* The error message. This parameter is not returned
|
|
51
|
+
* The error message. This parameter is not returned for normal calls.
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* OK
|
|
@@ -64,7 +64,7 @@ export class SizeChartExtractAsyncResponseBody 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 for success and false for failure.
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
70
|
* True
|
|
@@ -3,6 +3,14 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class SizeChartExtractAsyncShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The business order number of the caller. It is recorded when the request is accepted and returned as is when you query the asynchronous task result.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* order-20260928-001
|
|
12
|
+
*/
|
|
13
|
+
bizId?: string;
|
|
6
14
|
/**
|
|
7
15
|
* @remarks
|
|
8
16
|
* The list of column names to extract, such as Size, Bust, and Length.
|
|
@@ -10,7 +18,7 @@ export class SizeChartExtractAsyncShrinkRequest extends $dara.Model {
|
|
|
10
18
|
columnNameListShrink?: string;
|
|
11
19
|
/**
|
|
12
20
|
* @remarks
|
|
13
|
-
* 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
|
|
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.
|
|
14
22
|
*
|
|
15
23
|
* This parameter is required.
|
|
16
24
|
*
|
|
@@ -28,6 +36,7 @@ export class SizeChartExtractAsyncShrinkRequest extends $dara.Model {
|
|
|
28
36
|
languageModel?: string;
|
|
29
37
|
static names(): { [key: string]: string } {
|
|
30
38
|
return {
|
|
39
|
+
bizId: 'BizId',
|
|
31
40
|
columnNameListShrink: 'ColumnNameList',
|
|
32
41
|
imageUrl: 'ImageUrl',
|
|
33
42
|
languageModel: 'LanguageModel',
|
|
@@ -36,6 +45,7 @@ export class SizeChartExtractAsyncShrinkRequest extends $dara.Model {
|
|
|
36
45
|
|
|
37
46
|
static types(): { [key: string]: any } {
|
|
38
47
|
return {
|
|
48
|
+
bizId: 'string',
|
|
39
49
|
columnNameListShrink: 'string',
|
|
40
50
|
imageUrl: 'string',
|
|
41
51
|
languageModel: 'string',
|
|
@@ -4,37 +4,56 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class TextTranslateAsyncRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The business ID of the caller. The maximum length is 128 characters. This ID is passed through in the translation results.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* order-20260928-001
|
|
9
12
|
*/
|
|
10
13
|
bizId?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The business name of the caller. This field represents your identity and facilitates subsequent communication. If you are an internal Alibaba organization, specify this parameter based on the actual scenario, such as BU name-product or BU name-chat. If you are an external partner, specify the full name of your company. The company name must be the same as the one used when registering your Alibaba Cloud account.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* BUxxx-chat
|
|
14
20
|
*/
|
|
15
21
|
bizName?: string;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The format type of the source text. Valid values: text and html.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* text
|
|
19
28
|
*/
|
|
20
29
|
formatType?: string;
|
|
21
30
|
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The ID of the intervention glossary. You must create the glossary in the console and provide its ID in the request parameters. If the intervention glossary ID is empty, the translation results are not modified.
|
|
33
|
+
*
|
|
22
34
|
* @example
|
|
23
35
|
* " glossary_1"
|
|
24
36
|
*/
|
|
25
37
|
glossary?: string;
|
|
26
38
|
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The source language code. For more information, see the supported language list below. If this parameter is not specified, the language is automatically detected.
|
|
41
|
+
*
|
|
27
42
|
* @example
|
|
28
43
|
* auto
|
|
29
44
|
*/
|
|
30
45
|
sourceLanguage?: string;
|
|
31
46
|
/**
|
|
32
47
|
* @remarks
|
|
48
|
+
* The list of texts to be translated.
|
|
49
|
+
*
|
|
33
50
|
* This parameter is required.
|
|
34
51
|
*/
|
|
35
52
|
sourceTextList?: string[];
|
|
36
53
|
/**
|
|
37
54
|
* @remarks
|
|
55
|
+
* The target language code. For more information, see the supported language pair list below.
|
|
56
|
+
*
|
|
38
57
|
* This parameter is required.
|
|
39
58
|
*
|
|
40
59
|
* @example
|
|
@@ -42,6 +61,15 @@ export class TextTranslateAsyncRequest extends $dara.Model {
|
|
|
42
61
|
*/
|
|
43
62
|
targetLanguage?: string;
|
|
44
63
|
/**
|
|
64
|
+
* @remarks
|
|
65
|
+
* The business scenario identifier. You can specify only one of the following values. After you specify a value, the translation engine uses the terminology library and style policy of the corresponding industry to output industry-specific translations. If this parameter is not specified or an invalid value is specified, the general translation policy is used. Valid values:
|
|
66
|
+
* - e-commerce-title: Translates cross-border e-commerce product titles.
|
|
67
|
+
* - e-commerce-description: Translates cross-border e-commerce product descriptions.
|
|
68
|
+
* - e-commerce-chat: Translates cross-border e-commerce conversations.
|
|
69
|
+
* - e-commerce-cpv: Translates cross-border e-commerce product CPV attributes.
|
|
70
|
+
* - novel: Translates novels.
|
|
71
|
+
* - game: Translates games.
|
|
72
|
+
*
|
|
45
73
|
* @example
|
|
46
74
|
* e-commerce-title
|
|
47
75
|
*/
|
|
@@ -4,6 +4,9 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class TextTranslateAsyncResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The ID of the asynchronous task. It is used for result queries and notification association. Do not use the example prefix as a business validation rule.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
9
12
|
*/
|
|
@@ -31,22 +34,38 @@ export class TextTranslateAsyncResponseBodyData extends $dara.Model {
|
|
|
31
34
|
|
|
32
35
|
export class TextTranslateAsyncResponseBody extends $dara.Model {
|
|
33
36
|
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The response code of the submission call. Example: success.
|
|
39
|
+
*
|
|
34
40
|
* @example
|
|
35
41
|
* success
|
|
36
42
|
*/
|
|
37
43
|
code?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The submission result of the text translation asynchronous node.
|
|
47
|
+
*/
|
|
38
48
|
data?: TextTranslateAsyncResponseBodyData;
|
|
39
49
|
/**
|
|
50
|
+
* @remarks
|
|
51
|
+
* The invocation message. Example of a successful call: Success. If the call fails, check the actual error message.
|
|
52
|
+
*
|
|
40
53
|
* @example
|
|
41
54
|
* success
|
|
42
55
|
*/
|
|
43
56
|
message?: string;
|
|
44
57
|
/**
|
|
58
|
+
* @remarks
|
|
59
|
+
* The ID of the submission request. It is used for troubleshooting.
|
|
60
|
+
*
|
|
45
61
|
* @example
|
|
46
62
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
47
63
|
*/
|
|
48
64
|
requestId?: string;
|
|
49
65
|
/**
|
|
66
|
+
* @remarks
|
|
67
|
+
* Indicates whether the submission call is successful. A successful call does not mean that the translation is complete.
|
|
68
|
+
*
|
|
50
69
|
* @example
|
|
51
70
|
* True
|
|
52
71
|
*/
|
|
@@ -4,37 +4,56 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class TextTranslateAsyncShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The business ID of the caller. The maximum length is 128 characters. This ID is passed through in the translation results.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* order-20260928-001
|
|
9
12
|
*/
|
|
10
13
|
bizId?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The business name of the caller. This field represents your identity and facilitates subsequent communication. If you are an internal Alibaba organization, specify this parameter based on the actual scenario, such as BU name-product or BU name-chat. If you are an external partner, specify the full name of your company. The company name must be the same as the one used when registering your Alibaba Cloud account.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* BUxxx-chat
|
|
14
20
|
*/
|
|
15
21
|
bizName?: string;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The format type of the source text. Valid values: text and html.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* text
|
|
19
28
|
*/
|
|
20
29
|
formatType?: string;
|
|
21
30
|
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The ID of the intervention glossary. You must create the glossary in the console and provide its ID in the request parameters. If the intervention glossary ID is empty, the translation results are not modified.
|
|
33
|
+
*
|
|
22
34
|
* @example
|
|
23
35
|
* " glossary_1"
|
|
24
36
|
*/
|
|
25
37
|
glossary?: string;
|
|
26
38
|
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The source language code. For more information, see the supported language list below. If this parameter is not specified, the language is automatically detected.
|
|
41
|
+
*
|
|
27
42
|
* @example
|
|
28
43
|
* auto
|
|
29
44
|
*/
|
|
30
45
|
sourceLanguage?: string;
|
|
31
46
|
/**
|
|
32
47
|
* @remarks
|
|
48
|
+
* The list of texts to be translated.
|
|
49
|
+
*
|
|
33
50
|
* This parameter is required.
|
|
34
51
|
*/
|
|
35
52
|
sourceTextListShrink?: string;
|
|
36
53
|
/**
|
|
37
54
|
* @remarks
|
|
55
|
+
* The target language code. For more information, see the supported language pair list below.
|
|
56
|
+
*
|
|
38
57
|
* This parameter is required.
|
|
39
58
|
*
|
|
40
59
|
* @example
|
|
@@ -42,6 +61,15 @@ export class TextTranslateAsyncShrinkRequest extends $dara.Model {
|
|
|
42
61
|
*/
|
|
43
62
|
targetLanguage?: string;
|
|
44
63
|
/**
|
|
64
|
+
* @remarks
|
|
65
|
+
* The business scenario identifier. You can specify only one of the following values. After you specify a value, the translation engine uses the terminology library and style policy of the corresponding industry to output industry-specific translations. If this parameter is not specified or an invalid value is specified, the general translation policy is used. Valid values:
|
|
66
|
+
* - e-commerce-title: Translates cross-border e-commerce product titles.
|
|
67
|
+
* - e-commerce-description: Translates cross-border e-commerce product descriptions.
|
|
68
|
+
* - e-commerce-chat: Translates cross-border e-commerce conversations.
|
|
69
|
+
* - e-commerce-cpv: Translates cross-border e-commerce product CPV attributes.
|
|
70
|
+
* - novel: Translates novels.
|
|
71
|
+
* - game: Translates games.
|
|
72
|
+
*
|
|
45
73
|
* @example
|
|
46
74
|
* e-commerce-title
|
|
47
75
|
*/
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class UpdateDisplayKnowledgeRequestRecords extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The HTTP or HTTPS URL of the product image.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* https://xxxx/96f21ebdaeeba27a.jpg
|
|
12
|
+
*/
|
|
13
|
+
imageUrl?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The record ID.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 1489638581
|
|
20
|
+
*/
|
|
21
|
+
recordId?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The SKU ID. If this parameter is not empty, the original value is overwritten.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* sku-001
|
|
28
|
+
*/
|
|
29
|
+
skuId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The SKU name.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* Product front image
|
|
36
|
+
*/
|
|
37
|
+
skuName?: string;
|
|
38
|
+
static names(): { [key: string]: string } {
|
|
39
|
+
return {
|
|
40
|
+
imageUrl: 'ImageUrl',
|
|
41
|
+
recordId: 'RecordId',
|
|
42
|
+
skuId: 'SkuId',
|
|
43
|
+
skuName: 'SkuName',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static types(): { [key: string]: any } {
|
|
48
|
+
return {
|
|
49
|
+
imageUrl: 'string',
|
|
50
|
+
recordId: 'number',
|
|
51
|
+
skuId: 'string',
|
|
52
|
+
skuName: 'string',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
validate() {
|
|
57
|
+
super.validate();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
constructor(map?: { [key: string]: any }) {
|
|
61
|
+
super(map);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export class UpdateDisplayKnowledgeRequest extends $dara.Model {
|
|
66
|
+
/**
|
|
67
|
+
* @remarks
|
|
68
|
+
* The knowledge base ID.
|
|
69
|
+
*
|
|
70
|
+
* This parameter is required.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* rag_xxx
|
|
74
|
+
*/
|
|
75
|
+
ragId?: string;
|
|
76
|
+
/**
|
|
77
|
+
* @remarks
|
|
78
|
+
* The records to update. A maximum of 500 records can be specified.
|
|
79
|
+
*
|
|
80
|
+
* This parameter is required.
|
|
81
|
+
*/
|
|
82
|
+
records?: UpdateDisplayKnowledgeRequestRecords[];
|
|
83
|
+
static names(): { [key: string]: string } {
|
|
84
|
+
return {
|
|
85
|
+
ragId: 'RagId',
|
|
86
|
+
records: 'Records',
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
static types(): { [key: string]: any } {
|
|
91
|
+
return {
|
|
92
|
+
ragId: 'string',
|
|
93
|
+
records: { 'type': 'array', 'itemType': UpdateDisplayKnowledgeRequestRecords },
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
validate() {
|
|
98
|
+
if(Array.isArray(this.records)) {
|
|
99
|
+
$dara.Model.validateArray(this.records);
|
|
100
|
+
}
|
|
101
|
+
super.validate();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
constructor(map?: { [key: string]: any }) {
|
|
105
|
+
super(map);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { UpdateDisplayKnowledgeResponseBody } from "./UpdateDisplayKnowledgeResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class UpdateDisplayKnowledgeResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: UpdateDisplayKnowledgeResponseBody;
|
|
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: UpdateDisplayKnowledgeResponseBody,
|
|
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
|
+
|