@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
package/dist/client.js CHANGED
@@ -62,31 +62,78 @@ class Client extends openapi_core_1.default {
62
62
  return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
63
63
  }
64
64
  /**
65
- * Virtual Try-On is an AI algorithm-based image generation API service that replaces the clothing on a model with the garment provided by the user based on the input garment image and model image, while preserving the model\\"s other details and scene details without altering the model\\"s pose, facial features, or other attributes, and achieving realistic and well-fitted clothing placement. Users only need to provide the URL of the original product image to obtain a processed clean image.
65
+ * Synchronously adds content to a display knowledge base in batches.
66
+ *
67
+ * @param tmpReq - AddDisplayKnowledgeRequest
68
+ * @param runtime - runtime options for this request RuntimeOptions
69
+ * @returns AddDisplayKnowledgeResponse
70
+ */
71
+ async addDisplayKnowledgeWithOptions(tmpReq, runtime) {
72
+ tmpReq.validate();
73
+ let request = new $_model.AddDisplayKnowledgeShrinkRequest({});
74
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
75
+ if (!$dara.isNull(tmpReq.records)) {
76
+ request.recordsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.records, "Records", "json");
77
+ }
78
+ let query = {};
79
+ if (!$dara.isNull(request.ragId)) {
80
+ query["RagId"] = request.ragId;
81
+ }
82
+ if (!$dara.isNull(request.recordsShrink)) {
83
+ query["Records"] = request.recordsShrink;
84
+ }
85
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
86
+ query: openapi_core_2.OpenApiUtil.query(query),
87
+ });
88
+ let params = new openapi_core_2.$OpenApiUtil.Params({
89
+ action: "AddDisplayKnowledge",
90
+ version: "2026-04-28",
91
+ protocol: "HTTPS",
92
+ pathname: "/",
93
+ method: "POST",
94
+ authType: "AK",
95
+ style: "RPC",
96
+ reqBodyType: "formData",
97
+ bodyType: "json",
98
+ });
99
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddDisplayKnowledgeResponse({}));
100
+ }
101
+ /**
102
+ * Synchronously adds content to a display knowledge base in batches.
103
+ *
104
+ * @param request - AddDisplayKnowledgeRequest
105
+ * @returns AddDisplayKnowledgeResponse
106
+ */
107
+ async addDisplayKnowledge(request) {
108
+ let runtime = new $dara.RuntimeOptions({});
109
+ return await this.addDisplayKnowledgeWithOptions(request, runtime);
110
+ }
111
+ /**
112
+ * Generates virtual try-on images by applying a specified garment to a model image based on AI algorithms. The service preserves the model\\"s pose, facial features, and background details while ensuring a realistic and well-fitted appearance. You only need to provide the URLs of the original model and garment images to obtain the processed image.
66
113
  *
67
114
  * @remarks
68
115
  * ## Scenarios
69
- * - **Virtual try-on for clothing products:**
70
- * Supports multiple clothing categories including tops, bottoms, jumpsuits, and dresses. After uploading a person image and a product image, the service generates natural and realistic try-on results that intuitively showcase how the clothing looks when worn.
116
+ * - **Virtual try-on for clothing:**
117
+ * Supports various clothing categories such as tops, bottoms, jumpsuits, and dresses. After you upload a model image and a garment image, the service generates natural and realistic try-on effects to visually demonstrate how the garment looks on the model.
71
118
  * - **Virtual try-on for shoes and hats:**
72
- * Supports virtual try-on for shoes, hats, and similar products. The service intelligently matches the product position and proportion based on the person\\"s pose and body parts, producing coordinated and lifelike wearing effects.
119
+ * Supports virtual try-on for accessories such as shoes and hats. The service intelligently matches the position and proportion of the product based on the model\\"s pose and body parts to present a coordinated and realistic wearing effect.
73
120
  * - **E-commerce product display and marketing:**
74
- * Helps merchants quickly generate model try-on images for different products, reducing the costs of traditional photography, outfit changes, and post-production, and improving the production efficiency of product images.
121
+ * Helps merchants quickly generate model try-on images for different products. This reduces the costs of traditional photography, outfit changes, and post-production, and improves the production efficiency of product images.
75
122
  * - **Online shopping experience optimization:**
76
- * Consumers can preview how products look when worn through virtual try-on, gaining a more intuitive understanding of the product\\"s style, coordination, and overall appearance, which assists purchase decisions and enhances the shopping experience.
123
+ * Allows consumers to preview the wearing effect of products through virtual try-on. This provides a more intuitive understanding of the style, matching, and overall effect of the product, which assists in purchase decisions and enhances the shopping experience.
77
124
  * ## Features
78
- * - **First, the user needs to provide a model image and a product image. The system uses the model image as the try-on subject and applies the clothing from the product image onto the model:**
79
- * - a. Model image: The person image on which the virtual try-on is performed.
80
- * - b. Product image: The clothing, shoes, or hat image to be applied onto the model.
81
- * - **Second, the user can select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
82
- * - a. Specify product type: The user can directly specify the product type, and the system processes accordingly.
83
- * - b. Automatic type recognition: If the user does not specify a product type, the system automatically identifies the product category from the product image and performs the virtual try-on based on the recognition result.
84
- * - **Finally, the system combines the model image, product image, and product type to generate a virtual try-on image that showcases how the product looks on the model:**
85
- * - a. Preserve model details: The generation process does not alter the person\\"s appearance, hairstyle, pose, body shape, or other details in the original model image.
86
- * - b. Maintain scene consistency: The background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
87
- * - c. Generate try-on results: The product is naturally applied onto the model, conforming to the person\\"s pose and body structure, producing a coordinated and realistic virtual try-on image.
88
- * ## Sample results
89
- * | **Type** | **Model image** | **Clothing image** | **Try-on result** |
125
+ * - **Provide a model image and a product image. The system uses the model image as the try-on subject and applies the garment from the product image to the model:**
126
+ * - a. Model image: The image of the person who will wear the garment in the virtual try-on.
127
+ * - b. Product image: The image of the clothing, shoes, or hat to be worn by the model.
128
+ * - **Select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
129
+ * - a. Specify product type: You can directly specify the type of the current product, and the system will process it accordingly.
130
+ * - b. Automatic type recognition: If you do not specify the product type, the system automatically recognizes the product category in the product image and performs the virtual try-on based on the recognition result.
131
+ * - **The system generates a virtual try-on image by combining the model image, product image, and product type to show the wearing effect of the product on the model:**
132
+ * - a. Preserve model details: The generation process does not alter the appearance, hairstyle, pose, body shape, or other details of the person in the original model image.
133
+ * - b. Maintain image consistency: The background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
134
+ * - c. Generate try-on effect: The product is naturally applied to the model, fitting the person\\"s pose and body structure to generate a coordinated and realistic virtual try-on image.
135
+ * ## Examples
136
+ * | **Type** | **Model image** | **Garment image** | **Try-on result** |
90
137
  * | --- | --- | --- | --- |
91
138
  * | Tops | ![lQLPJv-OKUNDSxvNBojNA62wAMWEBuiTUuMKXnNidWFWAA_941_1672.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/e4273b03-0d3b-4e98-b8f3-8713fccee303.png) | ![男模特衬衫正面-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/d9ab77f7-8791-4fa5-8d76-4fda3e2e1310.png) | ![7c1c0c04-9828-940f-b86d-c08f7ec8fb97_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/42982786-73ee-4d23-a8d0-551f7a18be22.png) |
92
139
  * | Bottoms | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/64147be2-0c95-431a-8c04-f756fac96db2.jpeg) | ![微喇牛仔裤-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/f79a31cb-08bd-4b59-be9d-9b9aa3f60230.png) | ![adbb8e02-9738-991a-9699-f46bc5c089a9_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/297f29eb-7bc9-49a5-b4f7-114375a0f312.png) |
@@ -131,31 +178,31 @@ class Client extends openapi_core_1.default {
131
178
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.AiTryOnResponse({}));
132
179
  }
133
180
  /**
134
- * Virtual Try-On is an AI algorithm-based image generation API service that replaces the clothing on a model with the garment provided by the user based on the input garment image and model image, while preserving the model\\"s other details and scene details without altering the model\\"s pose, facial features, or other attributes, and achieving realistic and well-fitted clothing placement. Users only need to provide the URL of the original product image to obtain a processed clean image.
181
+ * Generates virtual try-on images by applying a specified garment to a model image based on AI algorithms. The service preserves the model\\"s pose, facial features, and background details while ensuring a realistic and well-fitted appearance. You only need to provide the URLs of the original model and garment images to obtain the processed image.
135
182
  *
136
183
  * @remarks
137
184
  * ## Scenarios
138
- * - **Virtual try-on for clothing products:**
139
- * Supports multiple clothing categories including tops, bottoms, jumpsuits, and dresses. After uploading a person image and a product image, the service generates natural and realistic try-on results that intuitively showcase how the clothing looks when worn.
185
+ * - **Virtual try-on for clothing:**
186
+ * Supports various clothing categories such as tops, bottoms, jumpsuits, and dresses. After you upload a model image and a garment image, the service generates natural and realistic try-on effects to visually demonstrate how the garment looks on the model.
140
187
  * - **Virtual try-on for shoes and hats:**
141
- * Supports virtual try-on for shoes, hats, and similar products. The service intelligently matches the product position and proportion based on the person\\"s pose and body parts, producing coordinated and lifelike wearing effects.
188
+ * Supports virtual try-on for accessories such as shoes and hats. The service intelligently matches the position and proportion of the product based on the model\\"s pose and body parts to present a coordinated and realistic wearing effect.
142
189
  * - **E-commerce product display and marketing:**
143
- * Helps merchants quickly generate model try-on images for different products, reducing the costs of traditional photography, outfit changes, and post-production, and improving the production efficiency of product images.
190
+ * Helps merchants quickly generate model try-on images for different products. This reduces the costs of traditional photography, outfit changes, and post-production, and improves the production efficiency of product images.
144
191
  * - **Online shopping experience optimization:**
145
- * Consumers can preview how products look when worn through virtual try-on, gaining a more intuitive understanding of the product\\"s style, coordination, and overall appearance, which assists purchase decisions and enhances the shopping experience.
192
+ * Allows consumers to preview the wearing effect of products through virtual try-on. This provides a more intuitive understanding of the style, matching, and overall effect of the product, which assists in purchase decisions and enhances the shopping experience.
146
193
  * ## Features
147
- * - **First, the user needs to provide a model image and a product image. The system uses the model image as the try-on subject and applies the clothing from the product image onto the model:**
148
- * - a. Model image: The person image on which the virtual try-on is performed.
149
- * - b. Product image: The clothing, shoes, or hat image to be applied onto the model.
150
- * - **Second, the user can select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
151
- * - a. Specify product type: The user can directly specify the product type, and the system processes accordingly.
152
- * - b. Automatic type recognition: If the user does not specify a product type, the system automatically identifies the product category from the product image and performs the virtual try-on based on the recognition result.
153
- * - **Finally, the system combines the model image, product image, and product type to generate a virtual try-on image that showcases how the product looks on the model:**
154
- * - a. Preserve model details: The generation process does not alter the person\\"s appearance, hairstyle, pose, body shape, or other details in the original model image.
155
- * - b. Maintain scene consistency: The background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
156
- * - c. Generate try-on results: The product is naturally applied onto the model, conforming to the person\\"s pose and body structure, producing a coordinated and realistic virtual try-on image.
157
- * ## Sample results
158
- * | **Type** | **Model image** | **Clothing image** | **Try-on result** |
194
+ * - **Provide a model image and a product image. The system uses the model image as the try-on subject and applies the garment from the product image to the model:**
195
+ * - a. Model image: The image of the person who will wear the garment in the virtual try-on.
196
+ * - b. Product image: The image of the clothing, shoes, or hat to be worn by the model.
197
+ * - **Select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
198
+ * - a. Specify product type: You can directly specify the type of the current product, and the system will process it accordingly.
199
+ * - b. Automatic type recognition: If you do not specify the product type, the system automatically recognizes the product category in the product image and performs the virtual try-on based on the recognition result.
200
+ * - **The system generates a virtual try-on image by combining the model image, product image, and product type to show the wearing effect of the product on the model:**
201
+ * - a. Preserve model details: The generation process does not alter the appearance, hairstyle, pose, body shape, or other details of the person in the original model image.
202
+ * - b. Maintain image consistency: The background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
203
+ * - c. Generate try-on effect: The product is naturally applied to the model, fitting the person\\"s pose and body structure to generate a coordinated and realistic virtual try-on image.
204
+ * ## Examples
205
+ * | **Type** | **Model image** | **Garment image** | **Try-on result** |
159
206
  * | --- | --- | --- | --- |
160
207
  * | Tops | ![lQLPJv-OKUNDSxvNBojNA62wAMWEBuiTUuMKXnNidWFWAA_941_1672.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/e4273b03-0d3b-4e98-b8f3-8713fccee303.png) | ![男模特衬衫正面-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/d9ab77f7-8791-4fa5-8d76-4fda3e2e1310.png) | ![7c1c0c04-9828-940f-b86d-c08f7ec8fb97_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/42982786-73ee-4d23-a8d0-551f7a18be22.png) |
161
208
  * | Bottoms | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/64147be2-0c95-431a-8c04-f756fac96db2.jpeg) | ![微喇牛仔裤-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/f79a31cb-08bd-4b59-be9d-9b9aa3f60230.png) | ![adbb8e02-9738-991a-9699-f46bc5c089a9_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/297f29eb-7bc9-49a5-b4f7-114375a0f312.png) |
@@ -607,6 +654,53 @@ class Client extends openapi_core_1.default {
607
654
  let runtime = new $dara.RuntimeOptions({});
608
655
  return await this.categoryMatchWithOptions(request, runtime);
609
656
  }
657
+ /**
658
+ * Deletes display knowledge base content in batches synchronously.
659
+ *
660
+ * @param tmpReq - DeleteDisplayKnowledgeRequest
661
+ * @param runtime - runtime options for this request RuntimeOptions
662
+ * @returns DeleteDisplayKnowledgeResponse
663
+ */
664
+ async deleteDisplayKnowledgeWithOptions(tmpReq, runtime) {
665
+ tmpReq.validate();
666
+ let request = new $_model.DeleteDisplayKnowledgeShrinkRequest({});
667
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
668
+ if (!$dara.isNull(tmpReq.recordIds)) {
669
+ request.recordIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.recordIds, "RecordIds", "json");
670
+ }
671
+ let query = {};
672
+ if (!$dara.isNull(request.ragId)) {
673
+ query["RagId"] = request.ragId;
674
+ }
675
+ if (!$dara.isNull(request.recordIdsShrink)) {
676
+ query["RecordIds"] = request.recordIdsShrink;
677
+ }
678
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
679
+ query: openapi_core_2.OpenApiUtil.query(query),
680
+ });
681
+ let params = new openapi_core_2.$OpenApiUtil.Params({
682
+ action: "DeleteDisplayKnowledge",
683
+ version: "2026-04-28",
684
+ protocol: "HTTPS",
685
+ pathname: "/",
686
+ method: "POST",
687
+ authType: "AK",
688
+ style: "RPC",
689
+ reqBodyType: "formData",
690
+ bodyType: "json",
691
+ });
692
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteDisplayKnowledgeResponse({}));
693
+ }
694
+ /**
695
+ * Deletes display knowledge base content in batches synchronously.
696
+ *
697
+ * @param request - DeleteDisplayKnowledgeRequest
698
+ * @returns DeleteDisplayKnowledgeResponse
699
+ */
700
+ async deleteDisplayKnowledge(request) {
701
+ let runtime = new $dara.RuntimeOptions({});
702
+ return await this.deleteDisplayKnowledgeWithOptions(request, runtime);
703
+ }
610
704
  /**
611
705
  * Calculates the edge lengths and floor area of a floor display based on the floor display image and product detection boxes.
612
706
  *
@@ -3859,6 +3953,65 @@ class Client extends openapi_core_1.default {
3859
3953
  let runtime = new $dara.RuntimeOptions({});
3860
3954
  return await this.queryAsyncTaskResultWithOptions(request, runtime);
3861
3955
  }
3956
+ /**
3957
+ * Performs a paged query on the content of a display knowledge base with paging (synchronization).
3958
+ *
3959
+ * @param tmpReq - QueryDisplayKnowledgeRequest
3960
+ * @param runtime - runtime options for this request RuntimeOptions
3961
+ * @returns QueryDisplayKnowledgeResponse
3962
+ */
3963
+ async queryDisplayKnowledgeWithOptions(tmpReq, runtime) {
3964
+ tmpReq.validate();
3965
+ let request = new $_model.QueryDisplayKnowledgeShrinkRequest({});
3966
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
3967
+ if (!$dara.isNull(tmpReq.statuses)) {
3968
+ request.statusesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.statuses, "Statuses", "json");
3969
+ }
3970
+ let query = {};
3971
+ if (!$dara.isNull(request.pageNum)) {
3972
+ query["PageNum"] = request.pageNum;
3973
+ }
3974
+ if (!$dara.isNull(request.pageSize)) {
3975
+ query["PageSize"] = request.pageSize;
3976
+ }
3977
+ if (!$dara.isNull(request.ragId)) {
3978
+ query["RagId"] = request.ragId;
3979
+ }
3980
+ if (!$dara.isNull(request.skuId)) {
3981
+ query["SkuId"] = request.skuId;
3982
+ }
3983
+ if (!$dara.isNull(request.skuName)) {
3984
+ query["SkuName"] = request.skuName;
3985
+ }
3986
+ if (!$dara.isNull(request.statusesShrink)) {
3987
+ query["Statuses"] = request.statusesShrink;
3988
+ }
3989
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3990
+ query: openapi_core_2.OpenApiUtil.query(query),
3991
+ });
3992
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3993
+ action: "QueryDisplayKnowledge",
3994
+ version: "2026-04-28",
3995
+ protocol: "HTTPS",
3996
+ pathname: "/",
3997
+ method: "POST",
3998
+ authType: "AK",
3999
+ style: "RPC",
4000
+ reqBodyType: "formData",
4001
+ bodyType: "json",
4002
+ });
4003
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryDisplayKnowledgeResponse({}));
4004
+ }
4005
+ /**
4006
+ * Performs a paged query on the content of a display knowledge base with paging (synchronization).
4007
+ *
4008
+ * @param request - QueryDisplayKnowledgeRequest
4009
+ * @returns QueryDisplayKnowledgeResponse
4010
+ */
4011
+ async queryDisplayKnowledge(request) {
4012
+ let runtime = new $dara.RuntimeOptions({});
4013
+ return await this.queryDisplayKnowledgeWithOptions(request, runtime);
4014
+ }
3862
4015
  /**
3863
4016
  * Detects whether an image contains a size chart. (Synchronous)
3864
4017
  *
@@ -4820,36 +4973,36 @@ class Client extends openapi_core_1.default {
4820
4973
  return await this.textTranslateWithOptions(request, runtime);
4821
4974
  }
4822
4975
  /**
4823
- * 文本翻译异步
4976
+ * Translates text by using the Maas MT model, an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs and optimized for e-commerce terms such as brands, models, materials, and attributes. It supports 156 languages, more than 400 language pairs, and automatic language detection for source texts.
4824
4977
  *
4825
4978
  * @remarks
4826
- * ## 适用场景
4827
- * * 商品标题:Maas MT大模型翻译可以将商品标题中的短语、关键词、流行词等准确翻译成目标语言,提升商品在电商平台的曝光率。
4979
+ * ## Scenarios
4980
+ * * Product titles: The Maas MT large language model accurately translates phrases, keywords, and trending words in product titles into the target language to increase product exposure on e-commerce platforms.
4828
4981
  *
4829
- * * 商品详描:商品详描整体文本较长、格式多样且复杂,Maas 大模型翻译支持长文本翻译和 HTML 格式,翻译效果和格式还原能力表现出色。
4982
+ * * Product descriptions: Product descriptions are typically long and have diverse and complex formats. The Maas large language model supports long-text translation and HTML formatting, delivering excellent translation quality and format restoration.
4830
4983
  *
4831
- * * 商品属性:商品属性词汇较短,且存在电商专有词(如型号、参数)等。
4984
+ * * Product attributes: Product attribute terms are short and contain e-commerce-specific words such as models and parameters.
4832
4985
  *
4833
- * * 客服对话:在客服场景中,可优化“上下文缺失、打字错误“等问题,并在部分语向上支持礼貌用语。
4986
+ * * Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions in specific language pairs.
4834
4987
  *
4835
- *       同时,Maas MT大模型翻译也可以用于通用场景的翻译,如办公、会议、日常对话等。
4836
- * ## 功能介绍
4837
- * * **超低幻觉率与高速推理** Maas MT大模型翻译是在翻译场景上经过偏好对齐的大语言模型,与通用大语言模型相比,翻译推理速度快,幻觉率极低,尤其适合大规模调用的场景。
4988
+ * The Maas MT large language model can also be used for translation in general scenarios, such as office work, meetings, and daily conversations.
4989
+ * ## Features
4990
+ * * **Ultra-low hallucination rate and high-speed inference** The Maas MT large language model is aligned with preferences for translation scenarios. Compared with general-purpose large language models, it provides faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
4838
4991
  *
4839
- * * **支持翻译的文本格式类型** 当前支持 text 和 html 的文本类型。
4992
+ * * **Supported text formats** The model supports text and HTML formats.
4840
4993
  *
4841
- * * **翻译干预能力支持** 支持自定义翻译结果,包含不被翻译(ABC-ABC),指定翻译(ABC-DEF),不翻译(ABC-空值)。常用于品牌词保护等场景。只需调用接口时传入相应的干预词表ID,即可实现,可满足您在不同场景下的翻译需求。一般您可以上传10万条干预词,如有更多需要可以联系平台进行处理。
4994
+ * * **Translation intervention** You can customize translation results, including keeping terms untranslated (ABC-ABC), specifying translations (ABC-DEF), and omitting translations (ABC-null value). This feature is commonly used for brand word protection. You only need to pass the corresponding intervention glossary ID when calling the API. This meets your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
4842
4995
  *
4843
- * * **翻译效果对比**
4844
- * | **原文** | **Aidge译后** | **其他翻译产品1** | **其他翻译产品2** | **Aidge翻译优势** |
4996
+ * * **Translation quality comparison**
4997
+ * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
4845
4998
  * | --- | --- | --- | --- | --- |
4846
- * | 75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan | 75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960. | Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960. | Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960 | 商品主体更清晰 |
4847
- * | New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men\\"s Business Steel Watch | Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios | Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo. | Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada | 句式更完整,表述更清晰,断句更合理 |
4848
- * | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | 产品主体表述更清晰明确,是“钥匙包”而非“钥匙扣”,其它译文容易对产品主体产生歧义 |
4849
- * ## 接入准备与调用流程
4850
- * 文本翻译支持同步和异步两种调用方式。本文介绍异步调用接口,如需使用同步调用,请参阅[《文本翻译-同步接口》](https://api.aliyun.com/document/Aidge/2026-04-28/TextTranslate)。
4851
- * 文本翻译及其他能力的异步接口共用结果获取流程、RocketMQ 订阅规则、消息加密协议、依赖配置,以及 Java 消费与解密代码。
4852
- * 异步调用的接入流程,订阅规则,消息格式与加密协议,以及详细的接入方案请参阅[异步接口调用说明](https://help.aliyun.com/zh/aidge/asynchronous-interface-call-instructions)。
4999
+ * | 75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan | 75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960. | Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960. | Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960 | Clearer product subject |
5000
+ * | New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men\\"s Business Steel Watch | Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios | Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo. | Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada | More complete sentence structure, clearer expression, and more reasonable punctuation |
5001
+ * | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermeture éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more explicit product subject expression, identifying it as a "key bag" rather than a "keychain", avoiding ambiguity in other translations |
5002
+ * ## Preparations and invocation flow
5003
+ * Text translation supports both synchronous and asynchronous invocation methods. This topic describes the asynchronous invocation API. To use synchronous calls, see [Text Translation - Synchronous API](https://api.aliyun.com/document/Aidge/2026-04-28/TextTranslate).
5004
+ * The asynchronous APIs for text translation and other features share the same result retrieval flow, RocketMQ subscribe rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
5005
+ * For the asynchronous invocation onboarding flow, subscribe rules, message formats and encryption protocols, and detailed integration solutions, see [Asynchronous API invocation instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
4853
5006
  *
4854
5007
  * @param tmpReq - TextTranslateAsyncRequest
4855
5008
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4904,36 +5057,36 @@ class Client extends openapi_core_1.default {
4904
5057
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.TextTranslateAsyncResponse({}));
4905
5058
  }
4906
5059
  /**
4907
- * 文本翻译异步
5060
+ * Translates text by using the Maas MT model, an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs and optimized for e-commerce terms such as brands, models, materials, and attributes. It supports 156 languages, more than 400 language pairs, and automatic language detection for source texts.
4908
5061
  *
4909
5062
  * @remarks
4910
- * ## 适用场景
4911
- * * 商品标题:Maas MT大模型翻译可以将商品标题中的短语、关键词、流行词等准确翻译成目标语言,提升商品在电商平台的曝光率。
5063
+ * ## Scenarios
5064
+ * * Product titles: The Maas MT large language model accurately translates phrases, keywords, and trending words in product titles into the target language to increase product exposure on e-commerce platforms.
4912
5065
  *
4913
- * * 商品详描:商品详描整体文本较长、格式多样且复杂,Maas 大模型翻译支持长文本翻译和 HTML 格式,翻译效果和格式还原能力表现出色。
5066
+ * * Product descriptions: Product descriptions are typically long and have diverse and complex formats. The Maas large language model supports long-text translation and HTML formatting, delivering excellent translation quality and format restoration.
4914
5067
  *
4915
- * * 商品属性:商品属性词汇较短,且存在电商专有词(如型号、参数)等。
5068
+ * * Product attributes: Product attribute terms are short and contain e-commerce-specific words such as models and parameters.
4916
5069
  *
4917
- * * 客服对话:在客服场景中,可优化“上下文缺失、打字错误“等问题,并在部分语向上支持礼貌用语。
5070
+ * * Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions in specific language pairs.
4918
5071
  *
4919
- *       同时,Maas MT大模型翻译也可以用于通用场景的翻译,如办公、会议、日常对话等。
4920
- * ## 功能介绍
4921
- * * **超低幻觉率与高速推理** Maas MT大模型翻译是在翻译场景上经过偏好对齐的大语言模型,与通用大语言模型相比,翻译推理速度快,幻觉率极低,尤其适合大规模调用的场景。
5072
+ * The Maas MT large language model can also be used for translation in general scenarios, such as office work, meetings, and daily conversations.
5073
+ * ## Features
5074
+ * * **Ultra-low hallucination rate and high-speed inference** The Maas MT large language model is aligned with preferences for translation scenarios. Compared with general-purpose large language models, it provides faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
4922
5075
  *
4923
- * * **支持翻译的文本格式类型** 当前支持 text 和 html 的文本类型。
5076
+ * * **Supported text formats** The model supports text and HTML formats.
4924
5077
  *
4925
- * * **翻译干预能力支持** 支持自定义翻译结果,包含不被翻译(ABC-ABC),指定翻译(ABC-DEF),不翻译(ABC-空值)。常用于品牌词保护等场景。只需调用接口时传入相应的干预词表ID,即可实现,可满足您在不同场景下的翻译需求。一般您可以上传10万条干预词,如有更多需要可以联系平台进行处理。
5078
+ * * **Translation intervention** You can customize translation results, including keeping terms untranslated (ABC-ABC), specifying translations (ABC-DEF), and omitting translations (ABC-null value). This feature is commonly used for brand word protection. You only need to pass the corresponding intervention glossary ID when calling the API. This meets your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
4926
5079
  *
4927
- * * **翻译效果对比**
4928
- * | **原文** | **Aidge译后** | **其他翻译产品1** | **其他翻译产品2** | **Aidge翻译优势** |
5080
+ * * **Translation quality comparison**
5081
+ * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
4929
5082
  * | --- | --- | --- | --- | --- |
4930
- * | 75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan | 75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960. | Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960. | Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960 | 商品主体更清晰 |
4931
- * | New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men\\"s Business Steel Watch | Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios | Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo. | Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada | 句式更完整,表述更清晰,断句更合理 |
4932
- * | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | 产品主体表述更清晰明确,是“钥匙包”而非“钥匙扣”,其它译文容易对产品主体产生歧义 |
4933
- * ## 接入准备与调用流程
4934
- * 文本翻译支持同步和异步两种调用方式。本文介绍异步调用接口,如需使用同步调用,请参阅[《文本翻译-同步接口》](https://api.aliyun.com/document/Aidge/2026-04-28/TextTranslate)。
4935
- * 文本翻译及其他能力的异步接口共用结果获取流程、RocketMQ 订阅规则、消息加密协议、依赖配置,以及 Java 消费与解密代码。
4936
- * 异步调用的接入流程,订阅规则,消息格式与加密协议,以及详细的接入方案请参阅[异步接口调用说明](https://help.aliyun.com/zh/aidge/asynchronous-interface-call-instructions)。
5083
+ * | 75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan | 75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960. | Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960. | Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960 | Clearer product subject |
5084
+ * | New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men\\"s Business Steel Watch | Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios | Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo. | Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada | More complete sentence structure, clearer expression, and more reasonable punctuation |
5085
+ * | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermeture éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more explicit product subject expression, identifying it as a "key bag" rather than a "keychain", avoiding ambiguity in other translations |
5086
+ * ## Preparations and invocation flow
5087
+ * Text translation supports both synchronous and asynchronous invocation methods. This topic describes the asynchronous invocation API. To use synchronous calls, see [Text Translation - Synchronous API](https://api.aliyun.com/document/Aidge/2026-04-28/TextTranslate).
5088
+ * The asynchronous APIs for text translation and other features share the same result retrieval flow, RocketMQ subscribe rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
5089
+ * For the asynchronous invocation onboarding flow, subscribe rules, message formats and encryption protocols, and detailed integration solutions, see [Asynchronous API invocation instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
4937
5090
  *
4938
5091
  * @param request - TextTranslateAsyncRequest
4939
5092
  * @returns TextTranslateAsyncResponse
@@ -4942,6 +5095,53 @@ class Client extends openapi_core_1.default {
4942
5095
  let runtime = new $dara.RuntimeOptions({});
4943
5096
  return await this.textTranslateAsyncWithOptions(request, runtime);
4944
5097
  }
5098
+ /**
5099
+ * Synchronously updates the content of a display knowledge base in batches.
5100
+ *
5101
+ * @param tmpReq - UpdateDisplayKnowledgeRequest
5102
+ * @param runtime - runtime options for this request RuntimeOptions
5103
+ * @returns UpdateDisplayKnowledgeResponse
5104
+ */
5105
+ async updateDisplayKnowledgeWithOptions(tmpReq, runtime) {
5106
+ tmpReq.validate();
5107
+ let request = new $_model.UpdateDisplayKnowledgeShrinkRequest({});
5108
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
5109
+ if (!$dara.isNull(tmpReq.records)) {
5110
+ request.recordsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.records, "Records", "json");
5111
+ }
5112
+ let query = {};
5113
+ if (!$dara.isNull(request.ragId)) {
5114
+ query["RagId"] = request.ragId;
5115
+ }
5116
+ if (!$dara.isNull(request.recordsShrink)) {
5117
+ query["Records"] = request.recordsShrink;
5118
+ }
5119
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5120
+ query: openapi_core_2.OpenApiUtil.query(query),
5121
+ });
5122
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5123
+ action: "UpdateDisplayKnowledge",
5124
+ version: "2026-04-28",
5125
+ protocol: "HTTPS",
5126
+ pathname: "/",
5127
+ method: "POST",
5128
+ authType: "AK",
5129
+ style: "RPC",
5130
+ reqBodyType: "formData",
5131
+ bodyType: "json",
5132
+ });
5133
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateDisplayKnowledgeResponse({}));
5134
+ }
5135
+ /**
5136
+ * Synchronously updates the content of a display knowledge base in batches.
5137
+ *
5138
+ * @param request - UpdateDisplayKnowledgeRequest
5139
+ * @returns UpdateDisplayKnowledgeResponse
5140
+ */
5141
+ async updateDisplayKnowledge(request) {
5142
+ let runtime = new $dara.RuntimeOptions({});
5143
+ return await this.updateDisplayKnowledgeWithOptions(request, runtime);
5144
+ }
4945
5145
  /**
4946
5146
  * The e-commerce AI video generation agent is designed for e-commerce merchants and platforms. Based on product main images, titles, and selling points, it automatically generates 5- to 30-second product showcase short videos to help customers efficiently produce and distribute e-commerce content. The product supports multiple resolution outputs such as 720P and 1080P. You can invoke single products quickly and generate multiple products in batches, meeting the needs of daily operations and large-scale product content production. It currently overwrites all clothing categories (tops, pants, skirts, suits, underwear, swimwear, etc.) and is gradually expanding to core e-commerce categories such as skincare, cosmetics, food and beverages, and home appliances.
4947
5147
  *
@@ -5035,28 +5235,28 @@ class Client extends openapi_core_1.default {
5035
5235
  return await this.videoGenerationWithOptions(request, runtime);
5036
5236
  }
5037
5237
  /**
5038
- * Translates embedded text, such as subtitles and selling points, in video frames into a target language and erases the original text.
5238
+ * Translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising. The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the task ID and poll the task status by calling the query API until the task is completed and the result is returned.
5039
5239
  *
5040
5240
  * @remarks
5041
5241
  * ## Product introduction
5042
- * The video translation API translates speech and on-screen text in videos into a target language. You can select speech and subtitle translation, on-screen text translation, or both. This API is suitable for scenarios such as multi-language distribution of e-commerce videos, international social media marketing, and global brand advertising.
5043
- * This API uses asynchronous invocation. After you submit a translation task, you obtain a TaskId. You can use the query API to poll the task status until the task is completed and then obtain the result.
5242
+ * The video translation API translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising.
5243
+ * The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the `TaskId` and poll the task status by calling the query API until the task is completed and the result is returned.
5044
5244
  * ## Scenarios
5045
- * * **Cross-border e-commerce video localization**: Translates selling point text in product introduction videos into the language of the target market to promote products on overseas platforms.
5245
+ * * **Cross-border e-commerce video localization**: Translates the selling point text in product introduction videos into the language of the target market to facilitate promotion on overseas platforms.
5046
5246
  *
5047
- * * **International social media marketing**: Localizes on-screen text in videos for platforms such as TikTok, Instagram, and YouTube with one click to improve comprehension and conversion rates among overseas users.
5247
+ * * **International social media marketing**: Localizes the on-screen text in videos for platforms such as TikTok, Instagram, and YouTube with one click to improve comprehension and conversion rates among overseas users.
5048
5248
  *
5049
- * * **Global brand advertising**: Automatically generates video versions in the languages of the delivery regions to reduce manual production costs.
5249
+ * * **Global brand advertising**: Automatically generates video versions in the languages of the target regions to reduce manual production costs.
5050
5250
  *
5051
- * * **Training and product instructions**: Translates on-screen text in training courses or product demo videos into multiple languages for global teams.
5251
+ * * **Training and product instructions**: Translates the on-screen text in training courses or product demo videos into multiple languages for global teams.
5052
5252
  * ## Features
5053
5253
  * | Feature | Identifier | Description |
5054
5254
  * | --- | --- | --- |
5055
- * | Speech and subtitle translation | speech | Translates video speech into target language voiceovers. Does not erase original subtitles or add new subtitles. |
5056
- * | On-screen text translation | visual | Translates embedded text in video frames, such as subtitles and selling points, and erases the original text. You can enable quality check for on-screen text processing by using the API. |
5057
- * Speech and subtitle translation (speech) generates target language voiceovers based on the spoken content in the video and synthesizes them into the video. It does not erase original subtitles or add new subtitles. Original subtitles refer to the existing subtitles in the video frames that correspond to the spoken content.
5058
- * On-screen text translation (visual) targets recognizable text in the original video language within the video frames, such as titles, product selling points, and descriptive text. It can be used independently without selecting speech and subtitle translation first. The text does not need to appear in the speech. Original subtitles within the processing scope may also be processed.
5059
- * When both speech and visual are selected, the speech and subtitle translation is completed and the video is synthesized first. Then, on-screen text processing is performed on this video. The translated voiceover is retained, and a final video is output. The order of features in the array does not affect the execution order. Therefore, not processing original subtitles only means that the speech and subtitle phase does not erase or add subtitles. The subsequent on-screen text processing may still change the original subtitles.
5255
+ * | Speech subtitle translation | `speech` | Translates the video speech into target language dubbing. Original subtitles are not removed, and no new subtitles are added. |
5256
+ * | On-screen text translation | `visual` | Translates the embedded text (subtitles, selling point text, etc.) in the video frames and erases the original text. You can enable quality check for on-screen text processing by using the API. |
5257
+ * Speech subtitle translation (`speech`) generates target language dubbing based on the spoken content in the video and synthesizes it into the video. It does not remove original subtitles or add new subtitles. Original subtitles refer to the existing subtitles in the video frames that correspond to the spoken content.
5258
+ * On-screen text translation (`visual`) targets the recognizable original language text in the video frames, such as titles, product selling points, and descriptive text. It can be used independently without selecting speech subtitle translation first, and the text does not need to appear in the speech. Original subtitles within the processing scope may also be processed.
5259
+ * When both `speech` and `visual` are selected, the speech subtitle translation is completed and the video is synthesized first. Then, on-screen text processing is performed on this video, retaining the translated dubbing and outputting a final video. The order of features in the array does not affect the execution order. Therefore, not processing original subtitles only means that no subtitles are removed or added during the speech subtitle phase. Subsequent on-screen text processing may still alter the original subtitles.
5060
5260
  *
5061
5261
  * @param tmpReq - VideoTranslationRequest
5062
5262
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5113,28 +5313,28 @@ class Client extends openapi_core_1.default {
5113
5313
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.VideoTranslationResponse({}));
5114
5314
  }
5115
5315
  /**
5116
- * Translates embedded text, such as subtitles and selling points, in video frames into a target language and erases the original text.
5316
+ * Translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising. The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the task ID and poll the task status by calling the query API until the task is completed and the result is returned.
5117
5317
  *
5118
5318
  * @remarks
5119
5319
  * ## Product introduction
5120
- * The video translation API translates speech and on-screen text in videos into a target language. You can select speech and subtitle translation, on-screen text translation, or both. This API is suitable for scenarios such as multi-language distribution of e-commerce videos, international social media marketing, and global brand advertising.
5121
- * This API uses asynchronous invocation. After you submit a translation task, you obtain a TaskId. You can use the query API to poll the task status until the task is completed and then obtain the result.
5320
+ * The video translation API translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising.
5321
+ * The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the `TaskId` and poll the task status by calling the query API until the task is completed and the result is returned.
5122
5322
  * ## Scenarios
5123
- * * **Cross-border e-commerce video localization**: Translates selling point text in product introduction videos into the language of the target market to promote products on overseas platforms.
5323
+ * * **Cross-border e-commerce video localization**: Translates the selling point text in product introduction videos into the language of the target market to facilitate promotion on overseas platforms.
5124
5324
  *
5125
- * * **International social media marketing**: Localizes on-screen text in videos for platforms such as TikTok, Instagram, and YouTube with one click to improve comprehension and conversion rates among overseas users.
5325
+ * * **International social media marketing**: Localizes the on-screen text in videos for platforms such as TikTok, Instagram, and YouTube with one click to improve comprehension and conversion rates among overseas users.
5126
5326
  *
5127
- * * **Global brand advertising**: Automatically generates video versions in the languages of the delivery regions to reduce manual production costs.
5327
+ * * **Global brand advertising**: Automatically generates video versions in the languages of the target regions to reduce manual production costs.
5128
5328
  *
5129
- * * **Training and product instructions**: Translates on-screen text in training courses or product demo videos into multiple languages for global teams.
5329
+ * * **Training and product instructions**: Translates the on-screen text in training courses or product demo videos into multiple languages for global teams.
5130
5330
  * ## Features
5131
5331
  * | Feature | Identifier | Description |
5132
5332
  * | --- | --- | --- |
5133
- * | Speech and subtitle translation | speech | Translates video speech into target language voiceovers. Does not erase original subtitles or add new subtitles. |
5134
- * | On-screen text translation | visual | Translates embedded text in video frames, such as subtitles and selling points, and erases the original text. You can enable quality check for on-screen text processing by using the API. |
5135
- * Speech and subtitle translation (speech) generates target language voiceovers based on the spoken content in the video and synthesizes them into the video. It does not erase original subtitles or add new subtitles. Original subtitles refer to the existing subtitles in the video frames that correspond to the spoken content.
5136
- * On-screen text translation (visual) targets recognizable text in the original video language within the video frames, such as titles, product selling points, and descriptive text. It can be used independently without selecting speech and subtitle translation first. The text does not need to appear in the speech. Original subtitles within the processing scope may also be processed.
5137
- * When both speech and visual are selected, the speech and subtitle translation is completed and the video is synthesized first. Then, on-screen text processing is performed on this video. The translated voiceover is retained, and a final video is output. The order of features in the array does not affect the execution order. Therefore, not processing original subtitles only means that the speech and subtitle phase does not erase or add subtitles. The subsequent on-screen text processing may still change the original subtitles.
5333
+ * | Speech subtitle translation | `speech` | Translates the video speech into target language dubbing. Original subtitles are not removed, and no new subtitles are added. |
5334
+ * | On-screen text translation | `visual` | Translates the embedded text (subtitles, selling point text, etc.) in the video frames and erases the original text. You can enable quality check for on-screen text processing by using the API. |
5335
+ * Speech subtitle translation (`speech`) generates target language dubbing based on the spoken content in the video and synthesizes it into the video. It does not remove original subtitles or add new subtitles. Original subtitles refer to the existing subtitles in the video frames that correspond to the spoken content.
5336
+ * On-screen text translation (`visual`) targets the recognizable original language text in the video frames, such as titles, product selling points, and descriptive text. It can be used independently without selecting speech subtitle translation first, and the text does not need to appear in the speech. Original subtitles within the processing scope may also be processed.
5337
+ * When both `speech` and `visual` are selected, the speech subtitle translation is completed and the video is synthesized first. Then, on-screen text processing is performed on this video, retaining the translated dubbing and outputting a final video. The order of features in the array does not affect the execution order. Therefore, not processing original subtitles only means that no subtitles are removed or added during the speech subtitle phase. Subsequent on-screen text processing may still alter the original subtitles.
5138
5338
  *
5139
5339
  * @param request - VideoTranslationRequest
5140
5340
  * @returns VideoTranslationResponse