@alicloud/dms20250414 4.4.0 → 4.5.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 (28) hide show
  1. package/dist/client.d.ts +23 -8
  2. package/dist/client.js +50 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeDataAgentSkillDownloadRequest.d.ts +29 -0
  5. package/dist/models/DescribeDataAgentSkillDownloadRequest.js +60 -0
  6. package/dist/models/DescribeDataAgentSkillDownloadRequest.js.map +1 -0
  7. package/dist/models/DescribeDataAgentSkillDownloadResponse.d.ts +19 -0
  8. package/dist/models/DescribeDataAgentSkillDownloadResponse.js +69 -0
  9. package/dist/models/DescribeDataAgentSkillDownloadResponse.js.map +1 -0
  10. package/dist/models/DescribeDataAgentSkillDownloadResponseBody.d.ts +97 -0
  11. package/dist/models/DescribeDataAgentSkillDownloadResponseBody.js +94 -0
  12. package/dist/models/DescribeDataAgentSkillDownloadResponseBody.js.map +1 -0
  13. package/dist/models/SendChatMessageRequest.d.ts +63 -49
  14. package/dist/models/SendChatMessageRequest.js +2 -0
  15. package/dist/models/SendChatMessageRequest.js.map +1 -1
  16. package/dist/models/SendChatMessageShrinkRequest.d.ts +17 -14
  17. package/dist/models/SendChatMessageShrinkRequest.js.map +1 -1
  18. package/dist/models/model.d.ts +4 -0
  19. package/dist/models/model.js +20 -12
  20. package/dist/models/model.js.map +1 -1
  21. package/package.json +1 -1
  22. package/src/client.ts +54 -8
  23. package/src/models/DescribeDataAgentSkillDownloadRequest.ts +44 -0
  24. package/src/models/DescribeDataAgentSkillDownloadResponse.ts +40 -0
  25. package/src/models/DescribeDataAgentSkillDownloadResponseBody.ts +137 -0
  26. package/src/models/SendChatMessageRequest.ts +65 -49
  27. package/src/models/SendChatMessageShrinkRequest.ts +17 -14
  28. package/src/models/model.ts +4 -0
package/dist/client.d.ts CHANGED
@@ -662,6 +662,21 @@ export default class Client extends OpenApi {
662
662
  * @returns DescribeDataAgentSessionResponse
663
663
  */
664
664
  describeDataAgentSession(request: $_model.DescribeDataAgentSessionRequest): Promise<$_model.DescribeDataAgentSessionResponse>;
665
+ /**
666
+ * Retrieves the download link for a DataAgent skill.
667
+ *
668
+ * @param request - DescribeDataAgentSkillDownloadRequest
669
+ * @param runtime - runtime options for this request RuntimeOptions
670
+ * @returns DescribeDataAgentSkillDownloadResponse
671
+ */
672
+ describeDataAgentSkillDownloadWithOptions(request: $_model.DescribeDataAgentSkillDownloadRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeDataAgentSkillDownloadResponse>;
673
+ /**
674
+ * Retrieves the download link for a DataAgent skill.
675
+ *
676
+ * @param request - DescribeDataAgentSkillDownloadRequest
677
+ * @returns DescribeDataAgentSkillDownloadResponse
678
+ */
679
+ describeDataAgentSkillDownload(request: $_model.DescribeDataAgentSkillDownloadRequest): Promise<$_model.DescribeDataAgentSkillDownloadResponse>;
665
680
  /**
666
681
  * Invokes the DescribeDataAgentTheme operation to query the details of a specific DataAgent theme, including the theme name, stage, source, common scenarios, description, and creation and modification time.
667
682
  *
@@ -1909,10 +1924,10 @@ export default class Client extends OpenApi {
1909
1924
  *
1910
1925
  * @remarks
1911
1926
  * ## Request description
1912
- * - The default value of message_type is primary. Set this parameter to additional or cancel when you need to append information or cancel the session.
1913
- * - The reply_to field specifies the agent message to which this message responds. The default value is 0.
1914
- * - When message_type is set to additional, the question field is required.
1915
- * - You can use quoted_message to quote previous user messages.
1927
+ * - The default value of `message_type` is `primary`. Set it to `additional` or `cancel` when you need to append information or cancel the session.
1928
+ * - The `reply_to` field specifies the agent message to which this message responds. The default value is `0`.
1929
+ * - The `question` field is required when `message_type` is set to `additional`.
1930
+ * - You can use `quoted_message` to quote previous user messages.
1916
1931
  *
1917
1932
  * @param tmpReq - SendChatMessageRequest
1918
1933
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1924,10 +1939,10 @@ export default class Client extends OpenApi {
1924
1939
  *
1925
1940
  * @remarks
1926
1941
  * ## Request description
1927
- * - The default value of message_type is primary. Set this parameter to additional or cancel when you need to append information or cancel the session.
1928
- * - The reply_to field specifies the agent message to which this message responds. The default value is 0.
1929
- * - When message_type is set to additional, the question field is required.
1930
- * - You can use quoted_message to quote previous user messages.
1942
+ * - The default value of `message_type` is `primary`. Set it to `additional` or `cancel` when you need to append information or cancel the session.
1943
+ * - The `reply_to` field specifies the agent message to which this message responds. The default value is `0`.
1944
+ * - The `question` field is required when `message_type` is set to `additional`.
1945
+ * - You can use `quoted_message` to quote previous user messages.
1931
1946
  *
1932
1947
  * @param request - SendChatMessageRequest
1933
1948
  * @returns SendChatMessageResponse
package/dist/client.js CHANGED
@@ -2224,6 +2224,48 @@ class Client extends openapi_core_1.default {
2224
2224
  let runtime = new $dara.RuntimeOptions({});
2225
2225
  return await this.describeDataAgentSessionWithOptions(request, runtime);
2226
2226
  }
2227
+ /**
2228
+ * Retrieves the download link for a DataAgent skill.
2229
+ *
2230
+ * @param request - DescribeDataAgentSkillDownloadRequest
2231
+ * @param runtime - runtime options for this request RuntimeOptions
2232
+ * @returns DescribeDataAgentSkillDownloadResponse
2233
+ */
2234
+ async describeDataAgentSkillDownloadWithOptions(request, runtime) {
2235
+ request.validate();
2236
+ let query = {};
2237
+ if (!$dara.isNull(request.skillId)) {
2238
+ query["SkillId"] = request.skillId;
2239
+ }
2240
+ if (!$dara.isNull(request.workspaceId)) {
2241
+ query["WorkspaceId"] = request.workspaceId;
2242
+ }
2243
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2244
+ query: openapi_core_2.OpenApiUtil.query(query),
2245
+ });
2246
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2247
+ action: "DescribeDataAgentSkillDownload",
2248
+ version: "2025-04-14",
2249
+ protocol: "HTTPS",
2250
+ pathname: "/",
2251
+ method: "POST",
2252
+ authType: "AK",
2253
+ style: "RPC",
2254
+ reqBodyType: "formData",
2255
+ bodyType: "json",
2256
+ });
2257
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeDataAgentSkillDownloadResponse({}));
2258
+ }
2259
+ /**
2260
+ * Retrieves the download link for a DataAgent skill.
2261
+ *
2262
+ * @param request - DescribeDataAgentSkillDownloadRequest
2263
+ * @returns DescribeDataAgentSkillDownloadResponse
2264
+ */
2265
+ async describeDataAgentSkillDownload(request) {
2266
+ let runtime = new $dara.RuntimeOptions({});
2267
+ return await this.describeDataAgentSkillDownloadWithOptions(request, runtime);
2268
+ }
2227
2269
  /**
2228
2270
  * Invokes the DescribeDataAgentTheme operation to query the details of a specific DataAgent theme, including the theme name, stage, source, common scenarios, description, and creation and modification time.
2229
2271
  *
@@ -6271,10 +6313,10 @@ class Client extends openapi_core_1.default {
6271
6313
  *
6272
6314
  * @remarks
6273
6315
  * ## Request description
6274
- * - The default value of message_type is primary. Set this parameter to additional or cancel when you need to append information or cancel the session.
6275
- * - The reply_to field specifies the agent message to which this message responds. The default value is 0.
6276
- * - When message_type is set to additional, the question field is required.
6277
- * - You can use quoted_message to quote previous user messages.
6316
+ * - The default value of `message_type` is `primary`. Set it to `additional` or `cancel` when you need to append information or cancel the session.
6317
+ * - The `reply_to` field specifies the agent message to which this message responds. The default value is `0`.
6318
+ * - The `question` field is required when `message_type` is set to `additional`.
6319
+ * - You can use `quoted_message` to quote previous user messages.
6278
6320
  *
6279
6321
  * @param tmpReq - SendChatMessageRequest
6280
6322
  * @param runtime - runtime options for this request RuntimeOptions
@@ -6363,10 +6405,10 @@ class Client extends openapi_core_1.default {
6363
6405
  *
6364
6406
  * @remarks
6365
6407
  * ## Request description
6366
- * - The default value of message_type is primary. Set this parameter to additional or cancel when you need to append information or cancel the session.
6367
- * - The reply_to field specifies the agent message to which this message responds. The default value is 0.
6368
- * - When message_type is set to additional, the question field is required.
6369
- * - You can use quoted_message to quote previous user messages.
6408
+ * - The default value of `message_type` is `primary`. Set it to `additional` or `cancel` when you need to append information or cancel the session.
6409
+ * - The `reply_to` field specifies the agent message to which this message responds. The default value is `0`.
6410
+ * - The `question` field is required when `message_type` is set to `additional`.
6411
+ * - You can use `quoted_message` to quote previous user messages.
6370
6412
  *
6371
6413
  * @param request - SendChatMessageRequest
6372
6414
  * @returns SendChatMessageResponse