@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.
Files changed (160) hide show
  1. package/dist/client.d.ts +324 -264
  2. package/dist/client.js +488 -264
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddDisplayKnowledgeRequest.d.ts +68 -0
  5. package/dist/models/AddDisplayKnowledgeRequest.js +88 -0
  6. package/dist/models/AddDisplayKnowledgeRequest.js.map +1 -0
  7. package/dist/models/AddDisplayKnowledgeResponse.d.ts +19 -0
  8. package/dist/models/AddDisplayKnowledgeResponse.js +69 -0
  9. package/dist/models/AddDisplayKnowledgeResponse.js.map +1 -0
  10. package/dist/models/AddDisplayKnowledgeResponseBody.d.ts +210 -0
  11. package/dist/models/AddDisplayKnowledgeResponseBody.js +143 -0
  12. package/dist/models/AddDisplayKnowledgeResponseBody.js.map +1 -0
  13. package/dist/models/AddDisplayKnowledgeShrinkRequest.d.ts +30 -0
  14. package/dist/models/AddDisplayKnowledgeShrinkRequest.js +60 -0
  15. package/dist/models/AddDisplayKnowledgeShrinkRequest.js.map +1 -0
  16. package/dist/models/AiTryOnRequest.d.ts +4 -4
  17. package/dist/models/AiTryOnResponseBody.d.ts +10 -10
  18. package/dist/models/AiTryOnResponseBody.js +0 -2
  19. package/dist/models/AiTryOnResponseBody.js.map +1 -1
  20. package/dist/models/DeleteDisplayKnowledgeRequest.d.ts +30 -0
  21. package/dist/models/DeleteDisplayKnowledgeRequest.js +63 -0
  22. package/dist/models/DeleteDisplayKnowledgeRequest.js.map +1 -0
  23. package/dist/models/DeleteDisplayKnowledgeResponse.d.ts +19 -0
  24. package/dist/models/DeleteDisplayKnowledgeResponse.js +69 -0
  25. package/dist/models/DeleteDisplayKnowledgeResponse.js.map +1 -0
  26. package/dist/models/DeleteDisplayKnowledgeResponseBody.d.ts +214 -0
  27. package/dist/models/DeleteDisplayKnowledgeResponseBody.js +145 -0
  28. package/dist/models/DeleteDisplayKnowledgeResponseBody.js.map +1 -0
  29. package/dist/models/DeleteDisplayKnowledgeShrinkRequest.d.ts +30 -0
  30. package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js +60 -0
  31. package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js.map +1 -0
  32. package/dist/models/ImageMattingAsyncRequest.d.ts +9 -1
  33. package/dist/models/ImageMattingAsyncRequest.js +2 -0
  34. package/dist/models/ImageMattingAsyncRequest.js.map +1 -1
  35. package/dist/models/ImageMattingAsyncResponseBody.d.ts +5 -5
  36. package/dist/models/ImageRecognitionAsyncRequest.d.ts +33 -25
  37. package/dist/models/ImageRecognitionAsyncRequest.js +2 -0
  38. package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -1
  39. package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +6 -6
  40. package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +33 -25
  41. package/dist/models/ImageRecognitionAsyncShrinkRequest.js +2 -0
  42. package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -1
  43. package/dist/models/ImageRemovalProAsyncRequest.d.ts +10 -1
  44. package/dist/models/ImageRemovalProAsyncRequest.js +2 -0
  45. package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -1
  46. package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +7 -5
  47. package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -1
  48. package/dist/models/ImageRemoveAsyncRequest.d.ts +25 -6
  49. package/dist/models/ImageRemoveAsyncRequest.js +2 -0
  50. package/dist/models/ImageRemoveAsyncRequest.js.map +1 -1
  51. package/dist/models/ImageRemoveAsyncResponseBody.d.ts +6 -4
  52. package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -1
  53. package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +25 -6
  54. package/dist/models/ImageRemoveAsyncShrinkRequest.js +2 -0
  55. package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -1
  56. package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +17 -9
  57. package/dist/models/ImageTranslationPlusAsyncRequest.js +2 -0
  58. package/dist/models/ImageTranslationPlusAsyncRequest.js.map +1 -1
  59. package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +5 -5
  60. package/dist/models/ImageTranslationProAsyncRequest.d.ts +15 -7
  61. package/dist/models/ImageTranslationProAsyncRequest.js +2 -0
  62. package/dist/models/ImageTranslationProAsyncRequest.js.map +1 -1
  63. package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +4 -4
  64. package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +10 -2
  65. package/dist/models/ImageTranslationStandardAsyncRequest.js +2 -0
  66. package/dist/models/ImageTranslationStandardAsyncRequest.js.map +1 -1
  67. package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +4 -4
  68. package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +13 -7
  69. package/dist/models/QueryAsyncTaskResultResponseBody.js +2 -0
  70. package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -1
  71. package/dist/models/QueryDisplayKnowledgeRequest.d.ts +60 -0
  72. package/dist/models/QueryDisplayKnowledgeRequest.js +71 -0
  73. package/dist/models/QueryDisplayKnowledgeRequest.js.map +1 -0
  74. package/dist/models/QueryDisplayKnowledgeResponse.d.ts +19 -0
  75. package/dist/models/QueryDisplayKnowledgeResponse.js +69 -0
  76. package/dist/models/QueryDisplayKnowledgeResponse.js.map +1 -0
  77. package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +240 -0
  78. package/dist/models/QueryDisplayKnowledgeResponseBody.js +151 -0
  79. package/dist/models/QueryDisplayKnowledgeResponseBody.js.map +1 -0
  80. package/dist/models/QueryDisplayKnowledgeShrinkRequest.d.ts +60 -0
  81. package/dist/models/QueryDisplayKnowledgeShrinkRequest.js +68 -0
  82. package/dist/models/QueryDisplayKnowledgeShrinkRequest.js.map +1 -0
  83. package/dist/models/SizeChartExtractAsyncRequest.d.ts +9 -1
  84. package/dist/models/SizeChartExtractAsyncRequest.js +2 -0
  85. package/dist/models/SizeChartExtractAsyncRequest.js.map +1 -1
  86. package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +5 -5
  87. package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +9 -1
  88. package/dist/models/SizeChartExtractAsyncShrinkRequest.js +2 -0
  89. package/dist/models/SizeChartExtractAsyncShrinkRequest.js.map +1 -1
  90. package/dist/models/TextTranslateAsyncRequest.d.ts +28 -0
  91. package/dist/models/TextTranslateAsyncRequest.js.map +1 -1
  92. package/dist/models/TextTranslateAsyncResponseBody.d.ts +19 -0
  93. package/dist/models/TextTranslateAsyncResponseBody.js.map +1 -1
  94. package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +28 -0
  95. package/dist/models/TextTranslateAsyncShrinkRequest.js.map +1 -1
  96. package/dist/models/UpdateDisplayKnowledgeRequest.d.ts +74 -0
  97. package/dist/models/UpdateDisplayKnowledgeRequest.js +88 -0
  98. package/dist/models/UpdateDisplayKnowledgeRequest.js.map +1 -0
  99. package/dist/models/UpdateDisplayKnowledgeResponse.d.ts +19 -0
  100. package/dist/models/UpdateDisplayKnowledgeResponse.js +69 -0
  101. package/dist/models/UpdateDisplayKnowledgeResponse.js.map +1 -0
  102. package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +206 -0
  103. package/dist/models/UpdateDisplayKnowledgeResponseBody.js +143 -0
  104. package/dist/models/UpdateDisplayKnowledgeResponseBody.js.map +1 -0
  105. package/dist/models/UpdateDisplayKnowledgeShrinkRequest.d.ts +30 -0
  106. package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js +60 -0
  107. package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js.map +1 -0
  108. package/dist/models/VideoTranslationRequest.d.ts +12 -12
  109. package/dist/models/VideoTranslationResponseBody.d.ts +1 -1
  110. package/dist/models/VideoTranslationShrinkRequest.d.ts +12 -12
  111. package/dist/models/model.d.ts +26 -0
  112. package/dist/models/model.js +59 -6
  113. package/dist/models/model.js.map +1 -1
  114. package/package.json +1 -1
  115. package/src/client.ts +524 -268
  116. package/src/models/AddDisplayKnowledgeRequest.ts +100 -0
  117. package/src/models/AddDisplayKnowledgeResponse.ts +40 -0
  118. package/src/models/AddDisplayKnowledgeResponseBody.ts +288 -0
  119. package/src/models/AddDisplayKnowledgeShrinkRequest.ts +45 -0
  120. package/src/models/AiTryOnRequest.ts +4 -4
  121. package/src/models/AiTryOnResponseBody.ts +10 -10
  122. package/src/models/DeleteDisplayKnowledgeRequest.ts +48 -0
  123. package/src/models/DeleteDisplayKnowledgeResponse.ts +40 -0
  124. package/src/models/DeleteDisplayKnowledgeResponseBody.ts +294 -0
  125. package/src/models/DeleteDisplayKnowledgeShrinkRequest.ts +45 -0
  126. package/src/models/ImageMattingAsyncRequest.ts +11 -1
  127. package/src/models/ImageMattingAsyncResponseBody.ts +5 -5
  128. package/src/models/ImageRecognitionAsyncRequest.ts +35 -25
  129. package/src/models/ImageRecognitionAsyncResponseBody.ts +6 -6
  130. package/src/models/ImageRecognitionAsyncShrinkRequest.ts +35 -25
  131. package/src/models/ImageRemovalProAsyncRequest.ts +12 -1
  132. package/src/models/ImageRemovalProAsyncResponseBody.ts +7 -5
  133. package/src/models/ImageRemoveAsyncRequest.ts +27 -6
  134. package/src/models/ImageRemoveAsyncResponseBody.ts +6 -4
  135. package/src/models/ImageRemoveAsyncShrinkRequest.ts +27 -6
  136. package/src/models/ImageTranslationPlusAsyncRequest.ts +19 -9
  137. package/src/models/ImageTranslationPlusAsyncResponseBody.ts +5 -5
  138. package/src/models/ImageTranslationProAsyncRequest.ts +17 -7
  139. package/src/models/ImageTranslationProAsyncResponseBody.ts +4 -4
  140. package/src/models/ImageTranslationStandardAsyncRequest.ts +12 -2
  141. package/src/models/ImageTranslationStandardAsyncResponseBody.ts +4 -4
  142. package/src/models/QueryAsyncTaskResultResponseBody.ts +15 -7
  143. package/src/models/QueryDisplayKnowledgeRequest.ts +86 -0
  144. package/src/models/QueryDisplayKnowledgeResponse.ts +40 -0
  145. package/src/models/QueryDisplayKnowledgeResponseBody.ts +326 -0
  146. package/src/models/QueryDisplayKnowledgeShrinkRequest.ts +83 -0
  147. package/src/models/SizeChartExtractAsyncRequest.ts +11 -1
  148. package/src/models/SizeChartExtractAsyncResponseBody.ts +5 -5
  149. package/src/models/SizeChartExtractAsyncShrinkRequest.ts +11 -1
  150. package/src/models/TextTranslateAsyncRequest.ts +28 -0
  151. package/src/models/TextTranslateAsyncResponseBody.ts +19 -0
  152. package/src/models/TextTranslateAsyncShrinkRequest.ts +28 -0
  153. package/src/models/UpdateDisplayKnowledgeRequest.ts +108 -0
  154. package/src/models/UpdateDisplayKnowledgeResponse.ts +40 -0
  155. package/src/models/UpdateDisplayKnowledgeResponseBody.ts +284 -0
  156. package/src/models/UpdateDisplayKnowledgeShrinkRequest.ts +45 -0
  157. package/src/models/VideoTranslationRequest.ts +12 -12
  158. package/src/models/VideoTranslationResponseBody.ts +1 -1
  159. package/src/models/VideoTranslationShrinkRequest.ts +12 -12
  160. 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. The file size cannot exceed 10 MB.
21
+ * The image URL. The image must be in the JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 pixels and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
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 of the asynchronous task used to query the result.
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 when the call is successful.
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 submission result of the asynchronous task for size chart extraction.
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 when the call is successful.
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 and false. A value of true indicates that the call is successful. A value of false indicates that the call fails.
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. The file size cannot exceed 10 MB.
21
+ * The image URL. The image must be in the JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 pixels and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
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
+