@alicloud/dms20250414 2.0.0 → 2.1.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 (61) hide show
  1. package/dist/client.d.ts +25 -10
  2. package/dist/client.js +64 -10
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAgentRequest.d.ts +47 -0
  5. package/dist/models/CreateAgentRequest.js +64 -0
  6. package/dist/models/CreateAgentRequest.js.map +1 -0
  7. package/dist/models/CreateAgentResponse.d.ts +19 -0
  8. package/dist/models/CreateAgentResponse.js +69 -0
  9. package/dist/models/CreateAgentResponse.js.map +1 -0
  10. package/dist/models/CreateAgentResponseBody.d.ts +257 -0
  11. package/dist/models/CreateAgentResponseBody.js +154 -0
  12. package/dist/models/CreateAgentResponseBody.js.map +1 -0
  13. package/dist/models/CreateDataAgentSessionRequest.d.ts +102 -21
  14. package/dist/models/CreateDataAgentSessionRequest.js +51 -1
  15. package/dist/models/CreateDataAgentSessionRequest.js.map +1 -1
  16. package/dist/models/CreateDataAgentSessionResponseBody.d.ts +51 -29
  17. package/dist/models/CreateDataAgentSessionResponseBody.js.map +1 -1
  18. package/dist/models/CreateDataAgentSessionShrinkRequest.d.ts +2 -2
  19. package/dist/models/CreateDataAgentThemeRequest.d.ts +16 -8
  20. package/dist/models/CreateDataAgentThemeRequest.js +2 -0
  21. package/dist/models/CreateDataAgentThemeRequest.js.map +1 -1
  22. package/dist/models/CreateDataAgentThemeResponseBody.d.ts +2 -2
  23. package/dist/models/DescribeDataAgentSessionRequest.d.ts +1 -1
  24. package/dist/models/DescribeDataAgentSessionResponseBody.d.ts +19 -20
  25. package/dist/models/DescribeDataAgentSessionResponseBody.js.map +1 -1
  26. package/dist/models/DescribeDataAgentThemeResponseBody.d.ts +9 -13
  27. package/dist/models/DescribeDataAgentThemeResponseBody.js.map +1 -1
  28. package/dist/models/GetDataAgentThemeUploadSignatureRequest.d.ts +1 -1
  29. package/dist/models/GetDataAgentThemeUploadSignatureResponseBody.d.ts +5 -5
  30. package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.d.ts +9 -2
  31. package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.js.map +1 -1
  32. package/dist/models/ListDataAgentThemeRequest.d.ts +15 -7
  33. package/dist/models/ListDataAgentThemeRequest.js +2 -0
  34. package/dist/models/ListDataAgentThemeRequest.js.map +1 -1
  35. package/dist/models/ListDataAgentThemeResponseBody.d.ts +8 -8
  36. package/dist/models/ModifyDataAgentThemeRequest.d.ts +3 -3
  37. package/dist/models/ModifyDataAgentThemeResponseBody.d.ts +2 -2
  38. package/dist/models/model.d.ts +7 -0
  39. package/dist/models/model.js +30 -16
  40. package/dist/models/model.js.map +1 -1
  41. package/package.json +1 -1
  42. package/src/client.ts +72 -10
  43. package/src/models/CreateAgentRequest.ts +66 -0
  44. package/src/models/CreateAgentResponse.ts +40 -0
  45. package/src/models/CreateAgentResponseBody.ts +348 -0
  46. package/src/models/CreateDataAgentSessionRequest.ts +134 -21
  47. package/src/models/CreateDataAgentSessionResponseBody.ts +51 -29
  48. package/src/models/CreateDataAgentSessionShrinkRequest.ts +2 -2
  49. package/src/models/CreateDataAgentThemeRequest.ts +18 -8
  50. package/src/models/CreateDataAgentThemeResponseBody.ts +2 -2
  51. package/src/models/DescribeDataAgentSessionRequest.ts +1 -1
  52. package/src/models/DescribeDataAgentSessionResponseBody.ts +19 -20
  53. package/src/models/DescribeDataAgentThemeResponseBody.ts +9 -13
  54. package/src/models/GetDataAgentThemeUploadSignatureRequest.ts +1 -1
  55. package/src/models/GetDataAgentThemeUploadSignatureResponseBody.ts +5 -5
  56. package/src/models/ListDataAgentAccuracyTestInstancesResponseBody.ts +9 -2
  57. package/src/models/ListDataAgentThemeRequest.ts +17 -7
  58. package/src/models/ListDataAgentThemeResponseBody.ts +8 -8
  59. package/src/models/ModifyDataAgentThemeRequest.ts +3 -3
  60. package/src/models/ModifyDataAgentThemeResponseBody.ts +2 -2
  61. package/src/models/model.ts +7 -0
package/dist/client.d.ts CHANGED
@@ -134,6 +134,21 @@ export default class Client extends OpenApi {
134
134
  * @returns ConfigDataAgentMemoryResponse
135
135
  */
136
136
  configDataAgentMemory(request: $_model.ConfigDataAgentMemoryRequest): Promise<$_model.ConfigDataAgentMemoryResponse>;
137
+ /**
138
+ * Creates a Database Gateway agent identity.
139
+ *
140
+ * @param request - CreateAgentRequest
141
+ * @param runtime - runtime options for this request RuntimeOptions
142
+ * @returns CreateAgentResponse
143
+ */
144
+ createAgentWithOptions(request: $_model.CreateAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAgentResponse>;
145
+ /**
146
+ * Creates a Database Gateway agent identity.
147
+ *
148
+ * @param request - CreateAgentRequest
149
+ * @returns CreateAgentResponse
150
+ */
151
+ createAgent(request: $_model.CreateAgentRequest): Promise<$_model.CreateAgentResponse>;
137
152
  /**
138
153
  * Creates an Airflow instance in a workspace.
139
154
  *
@@ -231,7 +246,7 @@ export default class Client extends OpenApi {
231
246
  */
232
247
  createDataAgentKnowledgeBase(request: $_model.CreateDataAgentKnowledgeBaseRequest): Promise<$_model.CreateDataAgentKnowledgeBaseResponse>;
233
248
  /**
234
- * Create a DataAgent session
249
+ * Creates a DataAgent session.
235
250
  *
236
251
  * @param tmpReq - CreateDataAgentSessionRequest
237
252
  * @param runtime - runtime options for this request RuntimeOptions
@@ -239,7 +254,7 @@ export default class Client extends OpenApi {
239
254
  */
240
255
  createDataAgentSessionWithOptions(tmpReq: $_model.CreateDataAgentSessionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateDataAgentSessionResponse>;
241
256
  /**
242
- * Create a DataAgent session
257
+ * Creates a DataAgent session.
243
258
  *
244
259
  * @param request - CreateDataAgentSessionRequest
245
260
  * @returns CreateDataAgentSessionResponse
@@ -708,7 +723,7 @@ export default class Client extends OpenApi {
708
723
  */
709
724
  describeDataAgentSession(request: $_model.DescribeDataAgentSessionRequest): Promise<$_model.DescribeDataAgentSessionResponse>;
710
725
  /**
711
- * Invokes the DescribeDataAgentTheme operation to query the details of a single DataAgent theme, including the theme name, stage, source, common scenarios, description, and creation and modification time.
726
+ * 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.
712
727
  *
713
728
  * @param request - DescribeDataAgentThemeRequest
714
729
  * @param runtime - runtime options for this request RuntimeOptions
@@ -716,7 +731,7 @@ export default class Client extends OpenApi {
716
731
  */
717
732
  describeDataAgentThemeWithOptions(request: $_model.DescribeDataAgentThemeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeDataAgentThemeResponse>;
718
733
  /**
719
- * Invokes the DescribeDataAgentTheme operation to query the details of a single DataAgent theme, including the theme name, stage, source, common scenarios, description, and creation and modification time.
734
+ * 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.
720
735
  *
721
736
  * @param request - DescribeDataAgentThemeRequest
722
737
  * @returns DescribeDataAgentThemeResponse
@@ -954,7 +969,7 @@ export default class Client extends OpenApi {
954
969
  getDataAgentTaskModelUsageMetrics(request: $_model.GetDataAgentTaskModelUsageMetricsRequest): Promise<$_model.GetDataAgentTaskModelUsageMetricsResponse>;
955
970
  /**
956
971
  * Calls the GetDataAgentThemeUploadSignature operation to obtain OSS direct upload credentials for uploading a DataAgent theme file. After obtaining the credentials, use the PostObject method to upload the theme file directly to OSS. After the upload is complete, call the CreateDataAgentTheme operation with the returned ThemeId to complete theme creation.
957
- * Refer to https://www.alibabacloud.com/help/en/oss/user-guide/client-direct-transmission/ for instructions on uploading the theme file.
972
+ * For more information, see https://www.alibabacloud.com/help/en/oss/user-guide/client-direct-transmission/.
958
973
  *
959
974
  * @param request - GetDataAgentThemeUploadSignatureRequest
960
975
  * @param runtime - runtime options for this request RuntimeOptions
@@ -963,7 +978,7 @@ export default class Client extends OpenApi {
963
978
  getDataAgentThemeUploadSignatureWithOptions(request: $_model.GetDataAgentThemeUploadSignatureRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetDataAgentThemeUploadSignatureResponse>;
964
979
  /**
965
980
  * Calls the GetDataAgentThemeUploadSignature operation to obtain OSS direct upload credentials for uploading a DataAgent theme file. After obtaining the credentials, use the PostObject method to upload the theme file directly to OSS. After the upload is complete, call the CreateDataAgentTheme operation with the returned ThemeId to complete theme creation.
966
- * Refer to https://www.alibabacloud.com/help/en/oss/user-guide/client-direct-transmission/ for instructions on uploading the theme file.
981
+ * For more information, see https://www.alibabacloud.com/help/en/oss/user-guide/client-direct-transmission/.
967
982
  *
968
983
  * @param request - GetDataAgentThemeUploadSignatureRequest
969
984
  * @returns GetDataAgentThemeUploadSignatureResponse
@@ -1429,7 +1444,7 @@ export default class Client extends OpenApi {
1429
1444
  */
1430
1445
  listDataAgentSkillMeta(request: $_model.ListDataAgentSkillMetaRequest): Promise<$_model.ListDataAgentSkillMetaResponse>;
1431
1446
  /**
1432
- * Invokes the ListDataAgentTheme operation to query the DataAgent theme list by paging. You can filter themes by theme stage, source, and common scenarios.
1447
+ * Calls the ListDataAgentTheme operation to query the DataAgent theme list by paging. You can filter results by theme stage, source, and common scenario.
1433
1448
  *
1434
1449
  * @param request - ListDataAgentThemeRequest
1435
1450
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1437,7 +1452,7 @@ export default class Client extends OpenApi {
1437
1452
  */
1438
1453
  listDataAgentThemeWithOptions(request: $_model.ListDataAgentThemeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListDataAgentThemeResponse>;
1439
1454
  /**
1440
- * Invokes the ListDataAgentTheme operation to query the DataAgent theme list by paging. You can filter themes by theme stage, source, and common scenarios.
1455
+ * Calls the ListDataAgentTheme operation to query the DataAgent theme list by paging. You can filter results by theme stage, source, and common scenario.
1441
1456
  *
1442
1457
  * @param request - ListDataAgentThemeRequest
1443
1458
  * @returns ListDataAgentThemeResponse
@@ -1801,7 +1816,7 @@ export default class Client extends OpenApi {
1801
1816
  */
1802
1817
  modifyDataAgentMcp(request: $_model.ModifyDataAgentMcpRequest): Promise<$_model.ModifyDataAgentMcpResponse>;
1803
1818
  /**
1804
- * Calls the ModifyDataAgentTheme operation to modify the display name and description of a DataAgent theme. Passing null for a parameter value indicates that the corresponding field is not modified. Passing an empty string clears the field.
1819
+ * Modifies the display name and description of a DataAgent theme. A null parameter value indicates that the corresponding field is not modified, and an empty string clears the field.
1805
1820
  *
1806
1821
  * @param request - ModifyDataAgentThemeRequest
1807
1822
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1809,7 +1824,7 @@ export default class Client extends OpenApi {
1809
1824
  */
1810
1825
  modifyDataAgentThemeWithOptions(request: $_model.ModifyDataAgentThemeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyDataAgentThemeResponse>;
1811
1826
  /**
1812
- * Calls the ModifyDataAgentTheme operation to modify the display name and description of a DataAgent theme. Passing null for a parameter value indicates that the corresponding field is not modified. Passing an empty string clears the field.
1827
+ * Modifies the display name and description of a DataAgent theme. A null parameter value indicates that the corresponding field is not modified, and an empty string clears the field.
1813
1828
  *
1814
1829
  * @param request - ModifyDataAgentThemeRequest
1815
1830
  * @returns ModifyDataAgentThemeResponse
package/dist/client.js CHANGED
@@ -508,6 +508,54 @@ class Client extends openapi_core_1.default {
508
508
  let runtime = new $dara.RuntimeOptions({});
509
509
  return await this.configDataAgentMemoryWithOptions(request, runtime);
510
510
  }
511
+ /**
512
+ * Creates a Database Gateway agent identity.
513
+ *
514
+ * @param request - CreateAgentRequest
515
+ * @param runtime - runtime options for this request RuntimeOptions
516
+ * @returns CreateAgentResponse
517
+ */
518
+ async createAgentWithOptions(request, runtime) {
519
+ request.validate();
520
+ let query = {};
521
+ if (!$dara.isNull(request.agentName)) {
522
+ query["AgentName"] = request.agentName;
523
+ }
524
+ if (!$dara.isNull(request.agentType)) {
525
+ query["AgentType"] = request.agentType;
526
+ }
527
+ if (!$dara.isNull(request.description)) {
528
+ query["Description"] = request.description;
529
+ }
530
+ if (!$dara.isNull(request.expireAfterSeconds)) {
531
+ query["ExpireAfterSeconds"] = request.expireAfterSeconds;
532
+ }
533
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
534
+ query: openapi_core_2.OpenApiUtil.query(query),
535
+ });
536
+ let params = new openapi_core_2.$OpenApiUtil.Params({
537
+ action: "CreateAgent",
538
+ version: "2025-04-14",
539
+ protocol: "HTTPS",
540
+ pathname: "/",
541
+ method: "POST",
542
+ authType: "AK",
543
+ style: "RPC",
544
+ reqBodyType: "formData",
545
+ bodyType: "json",
546
+ });
547
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateAgentResponse({}));
548
+ }
549
+ /**
550
+ * Creates a Database Gateway agent identity.
551
+ *
552
+ * @param request - CreateAgentRequest
553
+ * @returns CreateAgentResponse
554
+ */
555
+ async createAgent(request) {
556
+ let runtime = new $dara.RuntimeOptions({});
557
+ return await this.createAgentWithOptions(request, runtime);
558
+ }
511
559
  /**
512
560
  * Creates an Airflow instance in a workspace.
513
561
  *
@@ -951,7 +999,7 @@ class Client extends openapi_core_1.default {
951
999
  return await this.createDataAgentKnowledgeBaseWithOptions(request, runtime);
952
1000
  }
953
1001
  /**
954
- * Create a DataAgent session
1002
+ * Creates a DataAgent session.
955
1003
  *
956
1004
  * @param tmpReq - CreateDataAgentSessionRequest
957
1005
  * @param runtime - runtime options for this request RuntimeOptions
@@ -997,7 +1045,7 @@ class Client extends openapi_core_1.default {
997
1045
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateDataAgentSessionResponse({}));
998
1046
  }
999
1047
  /**
1000
- * Create a DataAgent session
1048
+ * Creates a DataAgent session.
1001
1049
  *
1002
1050
  * @param request - CreateDataAgentSessionRequest
1003
1051
  * @returns CreateDataAgentSessionResponse
@@ -1082,6 +1130,9 @@ class Client extends openapi_core_1.default {
1082
1130
  if (!$dara.isNull(request.themeType)) {
1083
1131
  query["ThemeType"] = request.themeType;
1084
1132
  }
1133
+ if (!$dara.isNull(request.workspaceId)) {
1134
+ query["WorkspaceId"] = request.workspaceId;
1135
+ }
1085
1136
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1086
1137
  query: openapi_core_2.OpenApiUtil.query(query),
1087
1138
  });
@@ -2476,7 +2527,7 @@ class Client extends openapi_core_1.default {
2476
2527
  return await this.describeDataAgentSessionWithOptions(request, runtime);
2477
2528
  }
2478
2529
  /**
2479
- * Invokes the DescribeDataAgentTheme operation to query the details of a single DataAgent theme, including the theme name, stage, source, common scenarios, description, and creation and modification time.
2530
+ * 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.
2480
2531
  *
2481
2532
  * @param request - DescribeDataAgentThemeRequest
2482
2533
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2505,7 +2556,7 @@ class Client extends openapi_core_1.default {
2505
2556
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeDataAgentThemeResponse({}));
2506
2557
  }
2507
2558
  /**
2508
- * Invokes the DescribeDataAgentTheme operation to query the details of a single DataAgent theme, including the theme name, stage, source, common scenarios, description, and creation and modification time.
2559
+ * 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.
2509
2560
  *
2510
2561
  * @param request - DescribeDataAgentThemeRequest
2511
2562
  * @returns DescribeDataAgentThemeResponse
@@ -3200,7 +3251,7 @@ class Client extends openapi_core_1.default {
3200
3251
  }
3201
3252
  /**
3202
3253
  * Calls the GetDataAgentThemeUploadSignature operation to obtain OSS direct upload credentials for uploading a DataAgent theme file. After obtaining the credentials, use the PostObject method to upload the theme file directly to OSS. After the upload is complete, call the CreateDataAgentTheme operation with the returned ThemeId to complete theme creation.
3203
- * Refer to https://www.alibabacloud.com/help/en/oss/user-guide/client-direct-transmission/ for instructions on uploading the theme file.
3254
+ * For more information, see https://www.alibabacloud.com/help/en/oss/user-guide/client-direct-transmission/.
3204
3255
  *
3205
3256
  * @param request - GetDataAgentThemeUploadSignatureRequest
3206
3257
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3230,7 +3281,7 @@ class Client extends openapi_core_1.default {
3230
3281
  }
3231
3282
  /**
3232
3283
  * Calls the GetDataAgentThemeUploadSignature operation to obtain OSS direct upload credentials for uploading a DataAgent theme file. After obtaining the credentials, use the PostObject method to upload the theme file directly to OSS. After the upload is complete, call the CreateDataAgentTheme operation with the returned ThemeId to complete theme creation.
3233
- * Refer to https://www.alibabacloud.com/help/en/oss/user-guide/client-direct-transmission/ for instructions on uploading the theme file.
3284
+ * For more information, see https://www.alibabacloud.com/help/en/oss/user-guide/client-direct-transmission/.
3234
3285
  *
3235
3286
  * @param request - GetDataAgentThemeUploadSignatureRequest
3236
3287
  * @returns GetDataAgentThemeUploadSignatureResponse
@@ -4699,7 +4750,7 @@ class Client extends openapi_core_1.default {
4699
4750
  return await this.listDataAgentSkillMetaWithOptions(request, runtime);
4700
4751
  }
4701
4752
  /**
4702
- * Invokes the ListDataAgentTheme operation to query the DataAgent theme list by paging. You can filter themes by theme stage, source, and common scenarios.
4753
+ * Calls the ListDataAgentTheme operation to query the DataAgent theme list by paging. You can filter results by theme stage, source, and common scenario.
4703
4754
  *
4704
4755
  * @param request - ListDataAgentThemeRequest
4705
4756
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4729,6 +4780,9 @@ class Client extends openapi_core_1.default {
4729
4780
  if (!$dara.isNull(request.themeType)) {
4730
4781
  query["ThemeType"] = request.themeType;
4731
4782
  }
4783
+ if (!$dara.isNull(request.workspaceId)) {
4784
+ query["WorkspaceId"] = request.workspaceId;
4785
+ }
4732
4786
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4733
4787
  query: openapi_core_2.OpenApiUtil.query(query),
4734
4788
  });
@@ -4746,7 +4800,7 @@ class Client extends openapi_core_1.default {
4746
4800
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListDataAgentThemeResponse({}));
4747
4801
  }
4748
4802
  /**
4749
- * Invokes the ListDataAgentTheme operation to query the DataAgent theme list by paging. You can filter themes by theme stage, source, and common scenarios.
4803
+ * Calls the ListDataAgentTheme operation to query the DataAgent theme list by paging. You can filter results by theme stage, source, and common scenario.
4750
4804
  *
4751
4805
  * @param request - ListDataAgentThemeRequest
4752
4806
  * @returns ListDataAgentThemeResponse
@@ -6159,7 +6213,7 @@ class Client extends openapi_core_1.default {
6159
6213
  return await this.modifyDataAgentMcpWithOptions(request, runtime);
6160
6214
  }
6161
6215
  /**
6162
- * Calls the ModifyDataAgentTheme operation to modify the display name and description of a DataAgent theme. Passing null for a parameter value indicates that the corresponding field is not modified. Passing an empty string clears the field.
6216
+ * Modifies the display name and description of a DataAgent theme. A null parameter value indicates that the corresponding field is not modified, and an empty string clears the field.
6163
6217
  *
6164
6218
  * @param request - ModifyDataAgentThemeRequest
6165
6219
  * @param runtime - runtime options for this request RuntimeOptions
@@ -6194,7 +6248,7 @@ class Client extends openapi_core_1.default {
6194
6248
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyDataAgentThemeResponse({}));
6195
6249
  }
6196
6250
  /**
6197
- * Calls the ModifyDataAgentTheme operation to modify the display name and description of a DataAgent theme. Passing null for a parameter value indicates that the corresponding field is not modified. Passing an empty string clears the field.
6251
+ * Modifies the display name and description of a DataAgent theme. A null parameter value indicates that the corresponding field is not modified, and an empty string clears the field.
6198
6252
  *
6199
6253
  * @param request - ModifyDataAgentThemeRequest
6200
6254
  * @returns ModifyDataAgentThemeResponse