@alicloud/aidge20260428 5.9.0 → 5.10.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.
Files changed (94) hide show
  1. package/dist/client.d.ts +160 -100
  2. package/dist/client.js +300 -100
  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/QueryDisplayKnowledgeRequest.d.ts +60 -0
  33. package/dist/models/QueryDisplayKnowledgeRequest.js +71 -0
  34. package/dist/models/QueryDisplayKnowledgeRequest.js.map +1 -0
  35. package/dist/models/QueryDisplayKnowledgeResponse.d.ts +19 -0
  36. package/dist/models/QueryDisplayKnowledgeResponse.js +69 -0
  37. package/dist/models/QueryDisplayKnowledgeResponse.js.map +1 -0
  38. package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +240 -0
  39. package/dist/models/QueryDisplayKnowledgeResponseBody.js +151 -0
  40. package/dist/models/QueryDisplayKnowledgeResponseBody.js.map +1 -0
  41. package/dist/models/QueryDisplayKnowledgeShrinkRequest.d.ts +60 -0
  42. package/dist/models/QueryDisplayKnowledgeShrinkRequest.js +68 -0
  43. package/dist/models/QueryDisplayKnowledgeShrinkRequest.js.map +1 -0
  44. package/dist/models/TextTranslateAsyncRequest.d.ts +28 -0
  45. package/dist/models/TextTranslateAsyncRequest.js.map +1 -1
  46. package/dist/models/TextTranslateAsyncResponseBody.d.ts +19 -0
  47. package/dist/models/TextTranslateAsyncResponseBody.js.map +1 -1
  48. package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +28 -0
  49. package/dist/models/TextTranslateAsyncShrinkRequest.js.map +1 -1
  50. package/dist/models/UpdateDisplayKnowledgeRequest.d.ts +74 -0
  51. package/dist/models/UpdateDisplayKnowledgeRequest.js +88 -0
  52. package/dist/models/UpdateDisplayKnowledgeRequest.js.map +1 -0
  53. package/dist/models/UpdateDisplayKnowledgeResponse.d.ts +19 -0
  54. package/dist/models/UpdateDisplayKnowledgeResponse.js +69 -0
  55. package/dist/models/UpdateDisplayKnowledgeResponse.js.map +1 -0
  56. package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +206 -0
  57. package/dist/models/UpdateDisplayKnowledgeResponseBody.js +143 -0
  58. package/dist/models/UpdateDisplayKnowledgeResponseBody.js.map +1 -0
  59. package/dist/models/UpdateDisplayKnowledgeShrinkRequest.d.ts +30 -0
  60. package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js +60 -0
  61. package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js.map +1 -0
  62. package/dist/models/VideoTranslationRequest.d.ts +6 -6
  63. package/dist/models/VideoTranslationResponseBody.d.ts +4 -4
  64. package/dist/models/VideoTranslationShrinkRequest.d.ts +6 -6
  65. package/dist/models/model.d.ts +26 -0
  66. package/dist/models/model.js +59 -6
  67. package/dist/models/model.js.map +1 -1
  68. package/package.json +1 -1
  69. package/src/client.ts +324 -100
  70. package/src/models/AddDisplayKnowledgeRequest.ts +100 -0
  71. package/src/models/AddDisplayKnowledgeResponse.ts +40 -0
  72. package/src/models/AddDisplayKnowledgeResponseBody.ts +288 -0
  73. package/src/models/AddDisplayKnowledgeShrinkRequest.ts +45 -0
  74. package/src/models/AiTryOnRequest.ts +4 -4
  75. package/src/models/AiTryOnResponseBody.ts +10 -10
  76. package/src/models/DeleteDisplayKnowledgeRequest.ts +48 -0
  77. package/src/models/DeleteDisplayKnowledgeResponse.ts +40 -0
  78. package/src/models/DeleteDisplayKnowledgeResponseBody.ts +294 -0
  79. package/src/models/DeleteDisplayKnowledgeShrinkRequest.ts +45 -0
  80. package/src/models/QueryDisplayKnowledgeRequest.ts +86 -0
  81. package/src/models/QueryDisplayKnowledgeResponse.ts +40 -0
  82. package/src/models/QueryDisplayKnowledgeResponseBody.ts +326 -0
  83. package/src/models/QueryDisplayKnowledgeShrinkRequest.ts +83 -0
  84. package/src/models/TextTranslateAsyncRequest.ts +28 -0
  85. package/src/models/TextTranslateAsyncResponseBody.ts +19 -0
  86. package/src/models/TextTranslateAsyncShrinkRequest.ts +28 -0
  87. package/src/models/UpdateDisplayKnowledgeRequest.ts +108 -0
  88. package/src/models/UpdateDisplayKnowledgeResponse.ts +40 -0
  89. package/src/models/UpdateDisplayKnowledgeResponseBody.ts +284 -0
  90. package/src/models/UpdateDisplayKnowledgeShrinkRequest.ts +45 -0
  91. package/src/models/VideoTranslationRequest.ts +6 -6
  92. package/src/models/VideoTranslationResponseBody.ts +4 -4
  93. package/src/models/VideoTranslationShrinkRequest.ts +6 -6
  94. package/src/models/model.ts +26 -0
@@ -0,0 +1,326 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class QueryDisplayKnowledgeResponseBodyDataRecords extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The description of the failure cause. This parameter is returned only when the status is FAILED.
9
+ *
10
+ * @example
11
+ * Image is inaccessible
12
+ */
13
+ failureMessage?: string;
14
+ /**
15
+ * @remarks
16
+ * The code of the failure cause. This parameter is returned only when the status is FAILED.
17
+ *
18
+ * @example
19
+ * Image is inaccessible
20
+ */
21
+ failureReason?: string;
22
+ /**
23
+ * @remarks
24
+ * The last modified time.
25
+ *
26
+ * @example
27
+ * 2026-08-01T15:53:46Z
28
+ */
29
+ gmtModified?: string;
30
+ /**
31
+ * @remarks
32
+ * The 24-hour signed URL of the transferred image.
33
+ *
34
+ * @example
35
+ * https://xxx/2190149752-0-cib.jpg
36
+ */
37
+ imageUrl?: string;
38
+ /**
39
+ * @remarks
40
+ * The expiration time of the signed URL.
41
+ *
42
+ * @example
43
+ * Date
44
+ */
45
+ imageUrlExpireTime?: string;
46
+ /**
47
+ * @remarks
48
+ * The record ID.
49
+ *
50
+ * @example
51
+ * 4410879640480000
52
+ */
53
+ recordId?: number;
54
+ /**
55
+ * @remarks
56
+ * SKU ID
57
+ *
58
+ * @example
59
+ * sku-001
60
+ */
61
+ skuId?: string;
62
+ /**
63
+ * @remarks
64
+ * The SKU name.
65
+ *
66
+ * @example
67
+ * Product side image
68
+ */
69
+ skuName?: string;
70
+ /**
71
+ * @remarks
72
+ * The record status.
73
+ *
74
+ * @example
75
+ * UPDATING - Updating
76
+ * EMBEDDED - Vectorization completed
77
+ * FAILED - Processing failed
78
+ */
79
+ status?: string;
80
+ static names(): { [key: string]: string } {
81
+ return {
82
+ failureMessage: 'FailureMessage',
83
+ failureReason: 'FailureReason',
84
+ gmtModified: 'GmtModified',
85
+ imageUrl: 'ImageUrl',
86
+ imageUrlExpireTime: 'ImageUrlExpireTime',
87
+ recordId: 'RecordId',
88
+ skuId: 'SkuId',
89
+ skuName: 'SkuName',
90
+ status: 'Status',
91
+ };
92
+ }
93
+
94
+ static types(): { [key: string]: any } {
95
+ return {
96
+ failureMessage: 'string',
97
+ failureReason: 'string',
98
+ gmtModified: 'string',
99
+ imageUrl: 'string',
100
+ imageUrlExpireTime: 'string',
101
+ recordId: 'number',
102
+ skuId: 'string',
103
+ skuName: 'string',
104
+ status: 'string',
105
+ };
106
+ }
107
+
108
+ validate() {
109
+ super.validate();
110
+ }
111
+
112
+ constructor(map?: { [key: string]: any }) {
113
+ super(map);
114
+ }
115
+ }
116
+
117
+ export class QueryDisplayKnowledgeResponseBodyData extends $dara.Model {
118
+ /**
119
+ * @remarks
120
+ * The business error code.
121
+ *
122
+ * @example
123
+ * Success
124
+ */
125
+ errorCode?: string;
126
+ /**
127
+ * @remarks
128
+ * The business error message.
129
+ *
130
+ * @example
131
+ * Success
132
+ */
133
+ errorMessage?: string;
134
+ /**
135
+ * @remarks
136
+ * The knowledge base status.
137
+ *
138
+ * @example
139
+ * AVAILABLE - Available
140
+ */
141
+ knowledgeBaseStatus?: string;
142
+ /**
143
+ * @remarks
144
+ * The page number.
145
+ *
146
+ * @example
147
+ * 10
148
+ */
149
+ pageNum?: number;
150
+ /**
151
+ * @remarks
152
+ * The number of entries per page.
153
+ *
154
+ * @example
155
+ * 10
156
+ */
157
+ pageSize?: number;
158
+ /**
159
+ * @remarks
160
+ * The knowledge base ID.
161
+ *
162
+ * @example
163
+ * rag_xxx
164
+ */
165
+ ragId?: string;
166
+ /**
167
+ * @remarks
168
+ * The records on the current page.
169
+ */
170
+ records?: QueryDisplayKnowledgeResponseBodyDataRecords[];
171
+ /**
172
+ * @remarks
173
+ * Indicates whether the business processing is successful.
174
+ *
175
+ * @example
176
+ * True
177
+ */
178
+ success?: boolean;
179
+ /**
180
+ * @remarks
181
+ * The asynchronous task ID. This parameter is empty for synchronous API operations.
182
+ *
183
+ * @example
184
+ * a8323ada-a196-9061-976f-90e38b27323a
185
+ */
186
+ taskId?: string;
187
+ /**
188
+ * @remarks
189
+ * The total number of records.
190
+ *
191
+ * @example
192
+ * 17
193
+ */
194
+ total?: number;
195
+ /**
196
+ * @remarks
197
+ * The total number of pages.
198
+ *
199
+ * @example
200
+ * 20
201
+ */
202
+ totalPage?: number;
203
+ /**
204
+ * @remarks
205
+ * The usage information. This parameter is empty for free API operations.
206
+ */
207
+ usageMap?: { [key: string]: number };
208
+ static names(): { [key: string]: string } {
209
+ return {
210
+ errorCode: 'ErrorCode',
211
+ errorMessage: 'ErrorMessage',
212
+ knowledgeBaseStatus: 'KnowledgeBaseStatus',
213
+ pageNum: 'PageNum',
214
+ pageSize: 'PageSize',
215
+ ragId: 'RagId',
216
+ records: 'Records',
217
+ success: 'Success',
218
+ taskId: 'TaskId',
219
+ total: 'Total',
220
+ totalPage: 'TotalPage',
221
+ usageMap: 'UsageMap',
222
+ };
223
+ }
224
+
225
+ static types(): { [key: string]: any } {
226
+ return {
227
+ errorCode: 'string',
228
+ errorMessage: 'string',
229
+ knowledgeBaseStatus: 'string',
230
+ pageNum: 'number',
231
+ pageSize: 'number',
232
+ ragId: 'string',
233
+ records: { 'type': 'array', 'itemType': QueryDisplayKnowledgeResponseBodyDataRecords },
234
+ success: 'boolean',
235
+ taskId: 'string',
236
+ total: 'number',
237
+ totalPage: 'number',
238
+ usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
239
+ };
240
+ }
241
+
242
+ validate() {
243
+ if(Array.isArray(this.records)) {
244
+ $dara.Model.validateArray(this.records);
245
+ }
246
+ if(this.usageMap) {
247
+ $dara.Model.validateMap(this.usageMap);
248
+ }
249
+ super.validate();
250
+ }
251
+
252
+ constructor(map?: { [key: string]: any }) {
253
+ super(map);
254
+ }
255
+ }
256
+
257
+ export class QueryDisplayKnowledgeResponseBody extends $dara.Model {
258
+ /**
259
+ * @remarks
260
+ * The error code.
261
+ *
262
+ * @example
263
+ * success
264
+ */
265
+ code?: string;
266
+ /**
267
+ * @remarks
268
+ * The query result of the display knowledge base content.
269
+ */
270
+ data?: QueryDisplayKnowledgeResponseBodyData;
271
+ /**
272
+ * @remarks
273
+ * The returned message or failure description.
274
+ *
275
+ * @example
276
+ * Success
277
+ */
278
+ message?: string;
279
+ /**
280
+ * @remarks
281
+ * The request ID.
282
+ *
283
+ * @example
284
+ * 70CBEFDF-BB17-1EB3-8A21-569F3124738F
285
+ */
286
+ requestId?: string;
287
+ /**
288
+ * @remarks
289
+ * Indicates whether the call is successful.
290
+ *
291
+ * @example
292
+ * True
293
+ */
294
+ success?: boolean;
295
+ static names(): { [key: string]: string } {
296
+ return {
297
+ code: 'Code',
298
+ data: 'Data',
299
+ message: 'Message',
300
+ requestId: 'RequestId',
301
+ success: 'Success',
302
+ };
303
+ }
304
+
305
+ static types(): { [key: string]: any } {
306
+ return {
307
+ code: 'string',
308
+ data: QueryDisplayKnowledgeResponseBodyData,
309
+ message: 'string',
310
+ requestId: 'string',
311
+ success: 'boolean',
312
+ };
313
+ }
314
+
315
+ validate() {
316
+ if(this.data && typeof (this.data as any).validate === 'function') {
317
+ (this.data as any).validate();
318
+ }
319
+ super.validate();
320
+ }
321
+
322
+ constructor(map?: { [key: string]: any }) {
323
+ super(map);
324
+ }
325
+ }
326
+
@@ -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 QueryDisplayKnowledgeShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The page number. Default value: 1.
9
+ *
10
+ * @example
11
+ * 10
12
+ */
13
+ pageNum?: number;
14
+ /**
15
+ * @remarks
16
+ * The number of entries per page. Default value: 20. Maximum value: 100.
17
+ *
18
+ * @example
19
+ * 50
20
+ */
21
+ pageSize?: number;
22
+ /**
23
+ * @remarks
24
+ * The knowledge base ID.
25
+ *
26
+ * This parameter is required.
27
+ *
28
+ * @example
29
+ * rag_xxx
30
+ */
31
+ ragId?: string;
32
+ /**
33
+ * @remarks
34
+ * The SKU ID for exact match.
35
+ *
36
+ * @example
37
+ * sku-001
38
+ */
39
+ skuId?: string;
40
+ /**
41
+ * @remarks
42
+ * The keyword in the SKU name.
43
+ *
44
+ * @example
45
+ * Product front image
46
+ */
47
+ skuName?: string;
48
+ /**
49
+ * @remarks
50
+ * The list of record statuses. Valid values: UPDATING, EMBEDDED, and FAILED.
51
+ */
52
+ statusesShrink?: string;
53
+ static names(): { [key: string]: string } {
54
+ return {
55
+ pageNum: 'PageNum',
56
+ pageSize: 'PageSize',
57
+ ragId: 'RagId',
58
+ skuId: 'SkuId',
59
+ skuName: 'SkuName',
60
+ statusesShrink: 'Statuses',
61
+ };
62
+ }
63
+
64
+ static types(): { [key: string]: any } {
65
+ return {
66
+ pageNum: 'number',
67
+ pageSize: 'number',
68
+ ragId: 'string',
69
+ skuId: 'string',
70
+ skuName: 'string',
71
+ statusesShrink: 'string',
72
+ };
73
+ }
74
+
75
+ validate() {
76
+ super.validate();
77
+ }
78
+
79
+ constructor(map?: { [key: string]: any }) {
80
+ super(map);
81
+ }
82
+ }
83
+
@@ -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
+