@alicloud/dataworks-public20240518 8.6.0 → 8.7.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 (129) hide show
  1. package/dist/client.d.ts +120 -0
  2. package/dist/client.js +429 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateMcpServerRequest.d.ts +75 -0
  5. package/dist/models/CreateMcpServerRequest.js +123 -0
  6. package/dist/models/CreateMcpServerRequest.js.map +1 -0
  7. package/dist/models/CreateMcpServerResponse.d.ts +19 -0
  8. package/dist/models/CreateMcpServerResponse.js +69 -0
  9. package/dist/models/CreateMcpServerResponse.js.map +1 -0
  10. package/dist/models/CreateMcpServerResponseBody.d.ts +44 -0
  11. package/dist/models/CreateMcpServerResponseBody.js +84 -0
  12. package/dist/models/CreateMcpServerResponseBody.js.map +1 -0
  13. package/dist/models/CreateMcpServerShrinkRequest.d.ts +32 -0
  14. package/dist/models/CreateMcpServerShrinkRequest.js +64 -0
  15. package/dist/models/CreateMcpServerShrinkRequest.js.map +1 -0
  16. package/dist/models/CreateSkillRequest.d.ts +60 -0
  17. package/dist/models/CreateSkillRequest.js +105 -0
  18. package/dist/models/CreateSkillRequest.js.map +1 -0
  19. package/dist/models/CreateSkillResponse.d.ts +19 -0
  20. package/dist/models/CreateSkillResponse.js +69 -0
  21. package/dist/models/CreateSkillResponse.js.map +1 -0
  22. package/dist/models/CreateSkillResponseBody.d.ts +85 -0
  23. package/dist/models/CreateSkillResponseBody.js +128 -0
  24. package/dist/models/CreateSkillResponseBody.js.map +1 -0
  25. package/dist/models/CreateSkillShrinkRequest.d.ts +44 -0
  26. package/dist/models/CreateSkillShrinkRequest.js +72 -0
  27. package/dist/models/CreateSkillShrinkRequest.js.map +1 -0
  28. package/dist/models/GetMcpServerRequest.d.ts +21 -0
  29. package/dist/models/GetMcpServerRequest.js +58 -0
  30. package/dist/models/GetMcpServerRequest.js.map +1 -0
  31. package/dist/models/GetMcpServerResponse.d.ts +19 -0
  32. package/dist/models/GetMcpServerResponse.js +69 -0
  33. package/dist/models/GetMcpServerResponse.js.map +1 -0
  34. package/dist/models/GetMcpServerResponseBody.d.ts +89 -0
  35. package/dist/models/GetMcpServerResponseBody.js +123 -0
  36. package/dist/models/GetMcpServerResponseBody.js.map +1 -0
  37. package/dist/models/GetSkillRequest.d.ts +21 -0
  38. package/dist/models/GetSkillRequest.js +58 -0
  39. package/dist/models/GetSkillRequest.js.map +1 -0
  40. package/dist/models/GetSkillResponse.d.ts +19 -0
  41. package/dist/models/GetSkillResponse.js +69 -0
  42. package/dist/models/GetSkillResponse.js.map +1 -0
  43. package/dist/models/GetSkillResponseBody.d.ts +89 -0
  44. package/dist/models/GetSkillResponseBody.js +130 -0
  45. package/dist/models/GetSkillResponseBody.js.map +1 -0
  46. package/dist/models/ListCustomAgentsRequest.d.ts +33 -0
  47. package/dist/models/ListCustomAgentsRequest.js +67 -0
  48. package/dist/models/ListCustomAgentsRequest.js.map +1 -0
  49. package/dist/models/ListCustomAgentsResponse.d.ts +19 -0
  50. package/dist/models/ListCustomAgentsResponse.js +69 -0
  51. package/dist/models/ListCustomAgentsResponse.js.map +1 -0
  52. package/dist/models/ListCustomAgentsResponseBody.d.ts +97 -0
  53. package/dist/models/ListCustomAgentsResponseBody.js +124 -0
  54. package/dist/models/ListCustomAgentsResponseBody.js.map +1 -0
  55. package/dist/models/ListCustomAgentsShrinkRequest.d.ts +33 -0
  56. package/dist/models/ListCustomAgentsShrinkRequest.js +64 -0
  57. package/dist/models/ListCustomAgentsShrinkRequest.js.map +1 -0
  58. package/dist/models/ListMcpServersRequest.d.ts +33 -0
  59. package/dist/models/ListMcpServersRequest.js +67 -0
  60. package/dist/models/ListMcpServersRequest.js.map +1 -0
  61. package/dist/models/ListMcpServersResponse.d.ts +19 -0
  62. package/dist/models/ListMcpServersResponse.js +69 -0
  63. package/dist/models/ListMcpServersResponse.js.map +1 -0
  64. package/dist/models/ListMcpServersResponseBody.d.ts +105 -0
  65. package/dist/models/ListMcpServersResponseBody.js +151 -0
  66. package/dist/models/ListMcpServersResponseBody.js.map +1 -0
  67. package/dist/models/ListMcpServersShrinkRequest.d.ts +33 -0
  68. package/dist/models/ListMcpServersShrinkRequest.js +64 -0
  69. package/dist/models/ListMcpServersShrinkRequest.js.map +1 -0
  70. package/dist/models/ListSkillsRequest.d.ts +29 -0
  71. package/dist/models/ListSkillsRequest.js +67 -0
  72. package/dist/models/ListSkillsRequest.js.map +1 -0
  73. package/dist/models/ListSkillsResponse.d.ts +19 -0
  74. package/dist/models/ListSkillsResponse.js +69 -0
  75. package/dist/models/ListSkillsResponse.js.map +1 -0
  76. package/dist/models/ListSkillsResponseBody.d.ts +88 -0
  77. package/dist/models/ListSkillsResponseBody.js +120 -0
  78. package/dist/models/ListSkillsResponseBody.js.map +1 -0
  79. package/dist/models/ListSkillsShrinkRequest.d.ts +29 -0
  80. package/dist/models/ListSkillsShrinkRequest.js +64 -0
  81. package/dist/models/ListSkillsShrinkRequest.js.map +1 -0
  82. package/dist/models/UpdateMcpServerRequest.d.ts +58 -0
  83. package/dist/models/UpdateMcpServerRequest.js +101 -0
  84. package/dist/models/UpdateMcpServerRequest.js.map +1 -0
  85. package/dist/models/UpdateMcpServerResponse.d.ts +19 -0
  86. package/dist/models/UpdateMcpServerResponse.js +69 -0
  87. package/dist/models/UpdateMcpServerResponse.js.map +1 -0
  88. package/dist/models/UpdateMcpServerResponseBody.d.ts +52 -0
  89. package/dist/models/UpdateMcpServerResponseBody.js +86 -0
  90. package/dist/models/UpdateMcpServerResponseBody.js.map +1 -0
  91. package/dist/models/UpdateMcpServerShrinkRequest.d.ts +42 -0
  92. package/dist/models/UpdateMcpServerShrinkRequest.js +68 -0
  93. package/dist/models/UpdateMcpServerShrinkRequest.js.map +1 -0
  94. package/dist/models/model.d.ts +49 -0
  95. package/dist/models/model.js +134 -35
  96. package/dist/models/model.js.map +1 -1
  97. package/package.json +1 -1
  98. package/src/client.ts +486 -0
  99. package/src/models/CreateMcpServerRequest.ts +133 -0
  100. package/src/models/CreateMcpServerResponse.ts +40 -0
  101. package/src/models/CreateMcpServerResponseBody.ts +74 -0
  102. package/src/models/CreateMcpServerShrinkRequest.ts +51 -0
  103. package/src/models/CreateSkillRequest.ts +109 -0
  104. package/src/models/CreateSkillResponse.ts +40 -0
  105. package/src/models/CreateSkillResponseBody.ts +150 -0
  106. package/src/models/CreateSkillShrinkRequest.ts +71 -0
  107. package/src/models/GetMcpServerRequest.ts +34 -0
  108. package/src/models/GetMcpServerResponse.ts +40 -0
  109. package/src/models/GetMcpServerResponseBody.ts +147 -0
  110. package/src/models/GetSkillRequest.ts +34 -0
  111. package/src/models/GetSkillResponse.ts +40 -0
  112. package/src/models/GetSkillResponseBody.ts +156 -0
  113. package/src/models/ListCustomAgentsRequest.ts +55 -0
  114. package/src/models/ListCustomAgentsResponse.ts +40 -0
  115. package/src/models/ListCustomAgentsResponseBody.ts +158 -0
  116. package/src/models/ListCustomAgentsShrinkRequest.ts +52 -0
  117. package/src/models/ListMcpServersRequest.ts +55 -0
  118. package/src/models/ListMcpServersResponse.ts +40 -0
  119. package/src/models/ListMcpServersResponseBody.ts +182 -0
  120. package/src/models/ListMcpServersShrinkRequest.ts +52 -0
  121. package/src/models/ListSkillsRequest.ts +51 -0
  122. package/src/models/ListSkillsResponse.ts +40 -0
  123. package/src/models/ListSkillsResponseBody.ts +145 -0
  124. package/src/models/ListSkillsShrinkRequest.ts +48 -0
  125. package/src/models/UpdateMcpServerRequest.ts +103 -0
  126. package/src/models/UpdateMcpServerResponse.ts +40 -0
  127. package/src/models/UpdateMcpServerResponseBody.ts +84 -0
  128. package/src/models/UpdateMcpServerShrinkRequest.ts +65 -0
  129. package/src/models/model.ts +49 -0
package/dist/client.d.ts CHANGED
@@ -696,6 +696,21 @@ export default class Client extends OpenApi {
696
696
  * @returns CreateLineageRelationshipResponse
697
697
  */
698
698
  createLineageRelationship(request: $_model.CreateLineageRelationshipRequest): Promise<$_model.CreateLineageRelationshipResponse>;
699
+ /**
700
+ * 登记 MCP Server
701
+ *
702
+ * @param tmpReq - CreateMcpServerRequest
703
+ * @param runtime - runtime options for this request RuntimeOptions
704
+ * @returns CreateMcpServerResponse
705
+ */
706
+ createMcpServerWithOptions(tmpReq: $_model.CreateMcpServerRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMcpServerResponse>;
707
+ /**
708
+ * 登记 MCP Server
709
+ *
710
+ * @param request - CreateMcpServerRequest
711
+ * @returns CreateMcpServerResponse
712
+ */
713
+ createMcpServer(request: $_model.CreateMcpServerRequest): Promise<$_model.CreateMcpServerResponse>;
699
714
  /**
700
715
  * Creates a collection in Data Map. Collections include categories, subcategories, data albums, and categories that are created in the data albums.
701
716
  *
@@ -939,6 +954,21 @@ export default class Client extends OpenApi {
939
954
  * @returns CreateRouteResponse
940
955
  */
941
956
  createRoute(request: $_model.CreateRouteRequest): Promise<$_model.CreateRouteResponse>;
957
+ /**
958
+ * 创建 Skill
959
+ *
960
+ * @param tmpReq - CreateSkillRequest
961
+ * @param runtime - runtime options for this request RuntimeOptions
962
+ * @returns CreateSkillResponse
963
+ */
964
+ createSkillWithOptions(tmpReq: $_model.CreateSkillRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateSkillResponse>;
965
+ /**
966
+ * 创建 Skill
967
+ *
968
+ * @param request - CreateSkillRequest
969
+ * @returns CreateSkillResponse
970
+ */
971
+ createSkill(request: $_model.CreateSkillRequest): Promise<$_model.CreateSkillResponse>;
942
972
  /**
943
973
  * Creates a file for a function in DataStudio.
944
974
  *
@@ -2511,6 +2541,21 @@ export default class Client extends OpenApi {
2511
2541
  * @returns GetLineageRelationshipResponse
2512
2542
  */
2513
2543
  getLineageRelationship(request: $_model.GetLineageRelationshipRequest): Promise<$_model.GetLineageRelationshipResponse>;
2544
+ /**
2545
+ * 读取 MCP Server 详情
2546
+ *
2547
+ * @param request - GetMcpServerRequest
2548
+ * @param runtime - runtime options for this request RuntimeOptions
2549
+ * @returns GetMcpServerResponse
2550
+ */
2551
+ getMcpServerWithOptions(request: $_model.GetMcpServerRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetMcpServerResponse>;
2552
+ /**
2553
+ * 读取 MCP Server 详情
2554
+ *
2555
+ * @param request - GetMcpServerRequest
2556
+ * @returns GetMcpServerResponse
2557
+ */
2558
+ getMcpServer(request: $_model.GetMcpServerRequest): Promise<$_model.GetMcpServerResponse>;
2514
2559
  /**
2515
2560
  * Queries the information about a collection in Data Map. Collections include categories and data albums.
2516
2561
  *
@@ -2803,6 +2848,21 @@ export default class Client extends OpenApi {
2803
2848
  * @returns GetSchemaResponse
2804
2849
  */
2805
2850
  getSchema(request: $_model.GetSchemaRequest): Promise<$_model.GetSchemaResponse>;
2851
+ /**
2852
+ * 读取 Skill 详情
2853
+ *
2854
+ * @param request - GetSkillRequest
2855
+ * @param runtime - runtime options for this request RuntimeOptions
2856
+ * @returns GetSkillResponse
2857
+ */
2858
+ getSkillWithOptions(request: $_model.GetSkillRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetSkillResponse>;
2859
+ /**
2860
+ * 读取 Skill 详情
2861
+ *
2862
+ * @param request - GetSkillRequest
2863
+ * @returns GetSkillResponse
2864
+ */
2865
+ getSkill(request: $_model.GetSkillRequest): Promise<$_model.GetSkillResponse>;
2806
2866
  /**
2807
2867
  * Queries the information about a specific table in Data Map.
2808
2868
  *
@@ -3170,6 +3230,21 @@ export default class Client extends OpenApi {
3170
3230
  * @returns ListCrawlerTypesResponse
3171
3231
  */
3172
3232
  listCrawlerTypes(): Promise<$_model.ListCrawlerTypesResponse>;
3233
+ /**
3234
+ * 分页列出 自定义 Agent
3235
+ *
3236
+ * @param tmpReq - ListCustomAgentsRequest
3237
+ * @param runtime - runtime options for this request RuntimeOptions
3238
+ * @returns ListCustomAgentsResponse
3239
+ */
3240
+ listCustomAgentsWithOptions(tmpReq: $_model.ListCustomAgentsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListCustomAgentsResponse>;
3241
+ /**
3242
+ * 分页列出 自定义 Agent
3243
+ *
3244
+ * @param request - ListCustomAgentsRequest
3245
+ * @returns ListCustomAgentsResponse
3246
+ */
3247
+ listCustomAgents(request: $_model.ListCustomAgentsRequest): Promise<$_model.ListCustomAgentsResponse>;
3173
3248
  /**
3174
3249
  * Querying a Custom Attribute Definition List
3175
3250
  *
@@ -3840,6 +3915,21 @@ export default class Client extends OpenApi {
3840
3915
  * @returns ListLineagesResponse
3841
3916
  */
3842
3917
  listLineages(request: $_model.ListLineagesRequest): Promise<$_model.ListLineagesResponse>;
3918
+ /**
3919
+ * 分页列出 MCP Server
3920
+ *
3921
+ * @param tmpReq - ListMcpServersRequest
3922
+ * @param runtime - runtime options for this request RuntimeOptions
3923
+ * @returns ListMcpServersResponse
3924
+ */
3925
+ listMcpServersWithOptions(tmpReq: $_model.ListMcpServersRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListMcpServersResponse>;
3926
+ /**
3927
+ * 分页列出 MCP Server
3928
+ *
3929
+ * @param request - ListMcpServersRequest
3930
+ * @returns ListMcpServersResponse
3931
+ */
3932
+ listMcpServers(request: $_model.ListMcpServersRequest): Promise<$_model.ListMcpServersResponse>;
3843
3933
  /**
3844
3934
  * Queries a list of collections in Data Map. Collections include categories and data albums.
3845
3935
  *
@@ -4172,6 +4262,21 @@ export default class Client extends OpenApi {
4172
4262
  * @returns ListSchemasResponse
4173
4263
  */
4174
4264
  listSchemas(request: $_model.ListSchemasRequest): Promise<$_model.ListSchemasResponse>;
4265
+ /**
4266
+ * 分页列出 Skill
4267
+ *
4268
+ * @param tmpReq - ListSkillsRequest
4269
+ * @param runtime - runtime options for this request RuntimeOptions
4270
+ * @returns ListSkillsResponse
4271
+ */
4272
+ listSkillsWithOptions(tmpReq: $_model.ListSkillsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListSkillsResponse>;
4273
+ /**
4274
+ * 分页列出 Skill
4275
+ *
4276
+ * @param request - ListSkillsRequest
4277
+ * @returns ListSkillsResponse
4278
+ */
4279
+ listSkills(request: $_model.ListSkillsRequest): Promise<$_model.ListSkillsResponse>;
4175
4280
  /**
4176
4281
  * Queries a list of tables in Data Map. For data source types that do not support schemas, you can call this API operation to query a list of tables in a specific database. For data source types that support schemas, you can call this API operation to query a list of tables in a specific database, MaxCompute project, or schema. Only the basic information about tables is returned. The information about technical metadata and business metadata is not returned.
4177
4282
  *
@@ -5310,6 +5415,21 @@ export default class Client extends OpenApi {
5310
5415
  * @returns UpdateIDEEventResultResponse
5311
5416
  */
5312
5417
  updateIDEEventResult(request: $_model.UpdateIDEEventResultRequest): Promise<$_model.UpdateIDEEventResultResponse>;
5418
+ /**
5419
+ * 更新 MCP Server
5420
+ *
5421
+ * @param tmpReq - UpdateMcpServerRequest
5422
+ * @param runtime - runtime options for this request RuntimeOptions
5423
+ * @returns UpdateMcpServerResponse
5424
+ */
5425
+ updateMcpServerWithOptions(tmpReq: $_model.UpdateMcpServerRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateMcpServerResponse>;
5426
+ /**
5427
+ * 更新 MCP Server
5428
+ *
5429
+ * @param request - UpdateMcpServerRequest
5430
+ * @returns UpdateMcpServerResponse
5431
+ */
5432
+ updateMcpServer(request: $_model.UpdateMcpServerRequest): Promise<$_model.UpdateMcpServerResponse>;
5313
5433
  /**
5314
5434
  * Updates the information about a collection in Data Map, including the collection name, description, and administrator. Collections include categories and data albums. If you want to update the information about a data album, the account that you use must be attached the AliyunDataWorksFullAccess policy, or you are the data album creator or administrator.
5315
5435
  *
package/dist/client.js CHANGED
@@ -2490,6 +2490,62 @@ class Client extends openapi_core_1.default {
2490
2490
  let runtime = new $dara.RuntimeOptions({});
2491
2491
  return await this.createLineageRelationshipWithOptions(request, runtime);
2492
2492
  }
2493
+ /**
2494
+ * 登记 MCP Server
2495
+ *
2496
+ * @param tmpReq - CreateMcpServerRequest
2497
+ * @param runtime - runtime options for this request RuntimeOptions
2498
+ * @returns CreateMcpServerResponse
2499
+ */
2500
+ async createMcpServerWithOptions(tmpReq, runtime) {
2501
+ tmpReq.validate();
2502
+ let request = new $_model.CreateMcpServerShrinkRequest({});
2503
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
2504
+ if (!$dara.isNull(tmpReq.config)) {
2505
+ request.configShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.config, "Config", "json");
2506
+ }
2507
+ if (!$dara.isNull(tmpReq.visibilityScope)) {
2508
+ request.visibilityScopeShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.visibilityScope, "VisibilityScope", "json");
2509
+ }
2510
+ let body = {};
2511
+ if (!$dara.isNull(request.configShrink)) {
2512
+ body["Config"] = request.configShrink;
2513
+ }
2514
+ if (!$dara.isNull(request.name)) {
2515
+ body["Name"] = request.name;
2516
+ }
2517
+ if (!$dara.isNull(request.visibility)) {
2518
+ body["Visibility"] = request.visibility;
2519
+ }
2520
+ if (!$dara.isNull(request.visibilityScopeShrink)) {
2521
+ body["VisibilityScope"] = request.visibilityScopeShrink;
2522
+ }
2523
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2524
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
2525
+ });
2526
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2527
+ action: "CreateMcpServer",
2528
+ version: "2024-05-18",
2529
+ protocol: "HTTPS",
2530
+ pathname: "/",
2531
+ method: "POST",
2532
+ authType: "AK",
2533
+ style: "RPC",
2534
+ reqBodyType: "formData",
2535
+ bodyType: "json",
2536
+ });
2537
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateMcpServerResponse({}));
2538
+ }
2539
+ /**
2540
+ * 登记 MCP Server
2541
+ *
2542
+ * @param request - CreateMcpServerRequest
2543
+ * @returns CreateMcpServerResponse
2544
+ */
2545
+ async createMcpServer(request) {
2546
+ let runtime = new $dara.RuntimeOptions({});
2547
+ return await this.createMcpServerWithOptions(request, runtime);
2548
+ }
2493
2549
  /**
2494
2550
  * Creates a collection in Data Map. Collections include categories, subcategories, data albums, and categories that are created in the data albums.
2495
2551
  *
@@ -3422,6 +3478,74 @@ class Client extends openapi_core_1.default {
3422
3478
  let runtime = new $dara.RuntimeOptions({});
3423
3479
  return await this.createRouteWithOptions(request, runtime);
3424
3480
  }
3481
+ /**
3482
+ * 创建 Skill
3483
+ *
3484
+ * @param tmpReq - CreateSkillRequest
3485
+ * @param runtime - runtime options for this request RuntimeOptions
3486
+ * @returns CreateSkillResponse
3487
+ */
3488
+ async createSkillWithOptions(tmpReq, runtime) {
3489
+ tmpReq.validate();
3490
+ let request = new $_model.CreateSkillShrinkRequest({});
3491
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
3492
+ if (!$dara.isNull(tmpReq.extra)) {
3493
+ request.extraShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.extra, "Extra", "json");
3494
+ }
3495
+ if (!$dara.isNull(tmpReq.visibilityScope)) {
3496
+ request.visibilityScopeShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.visibilityScope, "VisibilityScope", "json");
3497
+ }
3498
+ let body = {};
3499
+ if (!$dara.isNull(request.bundleUrl)) {
3500
+ body["BundleUrl"] = request.bundleUrl;
3501
+ }
3502
+ if (!$dara.isNull(request.description)) {
3503
+ body["Description"] = request.description;
3504
+ }
3505
+ if (!$dara.isNull(request.extraShrink)) {
3506
+ body["Extra"] = request.extraShrink;
3507
+ }
3508
+ if (!$dara.isNull(request.name)) {
3509
+ body["Name"] = request.name;
3510
+ }
3511
+ if (!$dara.isNull(request.skillMdOverride)) {
3512
+ body["SkillMdOverride"] = request.skillMdOverride;
3513
+ }
3514
+ if (!$dara.isNull(request.versionNote)) {
3515
+ body["VersionNote"] = request.versionNote;
3516
+ }
3517
+ if (!$dara.isNull(request.visibility)) {
3518
+ body["Visibility"] = request.visibility;
3519
+ }
3520
+ if (!$dara.isNull(request.visibilityScopeShrink)) {
3521
+ body["VisibilityScope"] = request.visibilityScopeShrink;
3522
+ }
3523
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3524
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
3525
+ });
3526
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3527
+ action: "CreateSkill",
3528
+ version: "2024-05-18",
3529
+ protocol: "HTTPS",
3530
+ pathname: "/",
3531
+ method: "POST",
3532
+ authType: "AK",
3533
+ style: "RPC",
3534
+ reqBodyType: "formData",
3535
+ bodyType: "json",
3536
+ });
3537
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateSkillResponse({}));
3538
+ }
3539
+ /**
3540
+ * 创建 Skill
3541
+ *
3542
+ * @param request - CreateSkillRequest
3543
+ * @returns CreateSkillResponse
3544
+ */
3545
+ async createSkill(request) {
3546
+ let runtime = new $dara.RuntimeOptions({});
3547
+ return await this.createSkillWithOptions(request, runtime);
3548
+ }
3425
3549
  /**
3426
3550
  * Creates a file for a function in DataStudio.
3427
3551
  *
@@ -7318,6 +7442,45 @@ class Client extends openapi_core_1.default {
7318
7442
  let runtime = new $dara.RuntimeOptions({});
7319
7443
  return await this.getLineageRelationshipWithOptions(request, runtime);
7320
7444
  }
7445
+ /**
7446
+ * 读取 MCP Server 详情
7447
+ *
7448
+ * @param request - GetMcpServerRequest
7449
+ * @param runtime - runtime options for this request RuntimeOptions
7450
+ * @returns GetMcpServerResponse
7451
+ */
7452
+ async getMcpServerWithOptions(request, runtime) {
7453
+ request.validate();
7454
+ let body = {};
7455
+ if (!$dara.isNull(request.name)) {
7456
+ body["Name"] = request.name;
7457
+ }
7458
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7459
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7460
+ });
7461
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7462
+ action: "GetMcpServer",
7463
+ version: "2024-05-18",
7464
+ protocol: "HTTPS",
7465
+ pathname: "/",
7466
+ method: "POST",
7467
+ authType: "AK",
7468
+ style: "RPC",
7469
+ reqBodyType: "formData",
7470
+ bodyType: "json",
7471
+ });
7472
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetMcpServerResponse({}));
7473
+ }
7474
+ /**
7475
+ * 读取 MCP Server 详情
7476
+ *
7477
+ * @param request - GetMcpServerRequest
7478
+ * @returns GetMcpServerResponse
7479
+ */
7480
+ async getMcpServer(request) {
7481
+ let runtime = new $dara.RuntimeOptions({});
7482
+ return await this.getMcpServerWithOptions(request, runtime);
7483
+ }
7321
7484
  /**
7322
7485
  * Queries the information about a collection in Data Map. Collections include categories and data albums.
7323
7486
  *
@@ -7970,6 +8133,45 @@ class Client extends openapi_core_1.default {
7970
8133
  let runtime = new $dara.RuntimeOptions({});
7971
8134
  return await this.getSchemaWithOptions(request, runtime);
7972
8135
  }
8136
+ /**
8137
+ * 读取 Skill 详情
8138
+ *
8139
+ * @param request - GetSkillRequest
8140
+ * @param runtime - runtime options for this request RuntimeOptions
8141
+ * @returns GetSkillResponse
8142
+ */
8143
+ async getSkillWithOptions(request, runtime) {
8144
+ request.validate();
8145
+ let body = {};
8146
+ if (!$dara.isNull(request.name)) {
8147
+ body["Name"] = request.name;
8148
+ }
8149
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8150
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8151
+ });
8152
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8153
+ action: "GetSkill",
8154
+ version: "2024-05-18",
8155
+ protocol: "HTTPS",
8156
+ pathname: "/",
8157
+ method: "POST",
8158
+ authType: "AK",
8159
+ style: "RPC",
8160
+ reqBodyType: "formData",
8161
+ bodyType: "json",
8162
+ });
8163
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetSkillResponse({}));
8164
+ }
8165
+ /**
8166
+ * 读取 Skill 详情
8167
+ *
8168
+ * @param request - GetSkillRequest
8169
+ * @returns GetSkillResponse
8170
+ */
8171
+ async getSkill(request) {
8172
+ let runtime = new $dara.RuntimeOptions({});
8173
+ return await this.getSkillWithOptions(request, runtime);
8174
+ }
7973
8175
  /**
7974
8176
  * Queries the information about a specific table in Data Map.
7975
8177
  *
@@ -9018,6 +9220,61 @@ class Client extends openapi_core_1.default {
9018
9220
  let runtime = new $dara.RuntimeOptions({});
9019
9221
  return await this.listCrawlerTypesWithOptions(runtime);
9020
9222
  }
9223
+ /**
9224
+ * 分页列出 自定义 Agent
9225
+ *
9226
+ * @param tmpReq - ListCustomAgentsRequest
9227
+ * @param runtime - runtime options for this request RuntimeOptions
9228
+ * @returns ListCustomAgentsResponse
9229
+ */
9230
+ async listCustomAgentsWithOptions(tmpReq, runtime) {
9231
+ tmpReq.validate();
9232
+ let request = new $_model.ListCustomAgentsShrinkRequest({});
9233
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
9234
+ if (!$dara.isNull(tmpReq.visibility)) {
9235
+ request.visibilityShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.visibility, "Visibility", "json");
9236
+ }
9237
+ let query = {};
9238
+ if (!$dara.isNull(request.maxResults)) {
9239
+ query["MaxResults"] = request.maxResults;
9240
+ }
9241
+ if (!$dara.isNull(request.nextToken)) {
9242
+ query["NextToken"] = request.nextToken;
9243
+ }
9244
+ let body = {};
9245
+ if (!$dara.isNull(request.q)) {
9246
+ body["Q"] = request.q;
9247
+ }
9248
+ if (!$dara.isNull(request.visibilityShrink)) {
9249
+ body["Visibility"] = request.visibilityShrink;
9250
+ }
9251
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9252
+ query: openapi_core_2.OpenApiUtil.query(query),
9253
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
9254
+ });
9255
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9256
+ action: "ListCustomAgents",
9257
+ version: "2024-05-18",
9258
+ protocol: "HTTPS",
9259
+ pathname: "/",
9260
+ method: "POST",
9261
+ authType: "AK",
9262
+ style: "RPC",
9263
+ reqBodyType: "formData",
9264
+ bodyType: "json",
9265
+ });
9266
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCustomAgentsResponse({}));
9267
+ }
9268
+ /**
9269
+ * 分页列出 自定义 Agent
9270
+ *
9271
+ * @param request - ListCustomAgentsRequest
9272
+ * @returns ListCustomAgentsResponse
9273
+ */
9274
+ async listCustomAgents(request) {
9275
+ let runtime = new $dara.RuntimeOptions({});
9276
+ return await this.listCustomAgentsWithOptions(request, runtime);
9277
+ }
9021
9278
  /**
9022
9279
  * Querying a Custom Attribute Definition List
9023
9280
  *
@@ -10844,6 +11101,61 @@ class Client extends openapi_core_1.default {
10844
11101
  let runtime = new $dara.RuntimeOptions({});
10845
11102
  return await this.listLineagesWithOptions(request, runtime);
10846
11103
  }
11104
+ /**
11105
+ * 分页列出 MCP Server
11106
+ *
11107
+ * @param tmpReq - ListMcpServersRequest
11108
+ * @param runtime - runtime options for this request RuntimeOptions
11109
+ * @returns ListMcpServersResponse
11110
+ */
11111
+ async listMcpServersWithOptions(tmpReq, runtime) {
11112
+ tmpReq.validate();
11113
+ let request = new $_model.ListMcpServersShrinkRequest({});
11114
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
11115
+ if (!$dara.isNull(tmpReq.visibility)) {
11116
+ request.visibilityShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.visibility, "Visibility", "json");
11117
+ }
11118
+ let query = {};
11119
+ if (!$dara.isNull(request.maxResults)) {
11120
+ query["MaxResults"] = request.maxResults;
11121
+ }
11122
+ if (!$dara.isNull(request.nextToken)) {
11123
+ query["NextToken"] = request.nextToken;
11124
+ }
11125
+ let body = {};
11126
+ if (!$dara.isNull(request.q)) {
11127
+ body["Q"] = request.q;
11128
+ }
11129
+ if (!$dara.isNull(request.visibilityShrink)) {
11130
+ body["Visibility"] = request.visibilityShrink;
11131
+ }
11132
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
11133
+ query: openapi_core_2.OpenApiUtil.query(query),
11134
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
11135
+ });
11136
+ let params = new openapi_core_2.$OpenApiUtil.Params({
11137
+ action: "ListMcpServers",
11138
+ version: "2024-05-18",
11139
+ protocol: "HTTPS",
11140
+ pathname: "/",
11141
+ method: "POST",
11142
+ authType: "AK",
11143
+ style: "RPC",
11144
+ reqBodyType: "formData",
11145
+ bodyType: "json",
11146
+ });
11147
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMcpServersResponse({}));
11148
+ }
11149
+ /**
11150
+ * 分页列出 MCP Server
11151
+ *
11152
+ * @param request - ListMcpServersRequest
11153
+ * @returns ListMcpServersResponse
11154
+ */
11155
+ async listMcpServers(request) {
11156
+ let runtime = new $dara.RuntimeOptions({});
11157
+ return await this.listMcpServersWithOptions(request, runtime);
11158
+ }
10847
11159
  /**
10848
11160
  * Queries a list of collections in Data Map. Collections include categories and data albums.
10849
11161
  *
@@ -11829,6 +12141,61 @@ class Client extends openapi_core_1.default {
11829
12141
  let runtime = new $dara.RuntimeOptions({});
11830
12142
  return await this.listSchemasWithOptions(request, runtime);
11831
12143
  }
12144
+ /**
12145
+ * 分页列出 Skill
12146
+ *
12147
+ * @param tmpReq - ListSkillsRequest
12148
+ * @param runtime - runtime options for this request RuntimeOptions
12149
+ * @returns ListSkillsResponse
12150
+ */
12151
+ async listSkillsWithOptions(tmpReq, runtime) {
12152
+ tmpReq.validate();
12153
+ let request = new $_model.ListSkillsShrinkRequest({});
12154
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
12155
+ if (!$dara.isNull(tmpReq.visibility)) {
12156
+ request.visibilityShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.visibility, "Visibility", "json");
12157
+ }
12158
+ let query = {};
12159
+ if (!$dara.isNull(request.maxResults)) {
12160
+ query["MaxResults"] = request.maxResults;
12161
+ }
12162
+ if (!$dara.isNull(request.nextToken)) {
12163
+ query["NextToken"] = request.nextToken;
12164
+ }
12165
+ let body = {};
12166
+ if (!$dara.isNull(request.q)) {
12167
+ body["Q"] = request.q;
12168
+ }
12169
+ if (!$dara.isNull(request.visibilityShrink)) {
12170
+ body["Visibility"] = request.visibilityShrink;
12171
+ }
12172
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
12173
+ query: openapi_core_2.OpenApiUtil.query(query),
12174
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
12175
+ });
12176
+ let params = new openapi_core_2.$OpenApiUtil.Params({
12177
+ action: "ListSkills",
12178
+ version: "2024-05-18",
12179
+ protocol: "HTTPS",
12180
+ pathname: "/",
12181
+ method: "POST",
12182
+ authType: "AK",
12183
+ style: "RPC",
12184
+ reqBodyType: "formData",
12185
+ bodyType: "json",
12186
+ });
12187
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListSkillsResponse({}));
12188
+ }
12189
+ /**
12190
+ * 分页列出 Skill
12191
+ *
12192
+ * @param request - ListSkillsRequest
12193
+ * @returns ListSkillsResponse
12194
+ */
12195
+ async listSkills(request) {
12196
+ let runtime = new $dara.RuntimeOptions({});
12197
+ return await this.listSkillsWithOptions(request, runtime);
12198
+ }
11832
12199
  /**
11833
12200
  * Queries a list of tables in Data Map. For data source types that do not support schemas, you can call this API operation to query a list of tables in a specific database. For data source types that support schemas, you can call this API operation to query a list of tables in a specific database, MaxCompute project, or schema. Only the basic information about tables is returned. The information about technical metadata and business metadata is not returned.
11834
12201
  *
@@ -15513,6 +15880,68 @@ class Client extends openapi_core_1.default {
15513
15880
  let runtime = new $dara.RuntimeOptions({});
15514
15881
  return await this.updateIDEEventResultWithOptions(request, runtime);
15515
15882
  }
15883
+ /**
15884
+ * 更新 MCP Server
15885
+ *
15886
+ * @param tmpReq - UpdateMcpServerRequest
15887
+ * @param runtime - runtime options for this request RuntimeOptions
15888
+ * @returns UpdateMcpServerResponse
15889
+ */
15890
+ async updateMcpServerWithOptions(tmpReq, runtime) {
15891
+ tmpReq.validate();
15892
+ let request = new $_model.UpdateMcpServerShrinkRequest({});
15893
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
15894
+ if (!$dara.isNull(tmpReq.customHeaders)) {
15895
+ request.customHeadersShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.customHeaders, "CustomHeaders", "json");
15896
+ }
15897
+ if (!$dara.isNull(tmpReq.visibilityScope)) {
15898
+ request.visibilityScopeShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.visibilityScope, "VisibilityScope", "json");
15899
+ }
15900
+ let body = {};
15901
+ if (!$dara.isNull(request.customHeadersShrink)) {
15902
+ body["CustomHeaders"] = request.customHeadersShrink;
15903
+ }
15904
+ if (!$dara.isNull(request.name)) {
15905
+ body["Name"] = request.name;
15906
+ }
15907
+ if (!$dara.isNull(request.transport)) {
15908
+ body["Transport"] = request.transport;
15909
+ }
15910
+ if (!$dara.isNull(request.url)) {
15911
+ body["Url"] = request.url;
15912
+ }
15913
+ if (!$dara.isNull(request.visibility)) {
15914
+ body["Visibility"] = request.visibility;
15915
+ }
15916
+ if (!$dara.isNull(request.visibilityScopeShrink)) {
15917
+ body["VisibilityScope"] = request.visibilityScopeShrink;
15918
+ }
15919
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
15920
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
15921
+ });
15922
+ let params = new openapi_core_2.$OpenApiUtil.Params({
15923
+ action: "UpdateMcpServer",
15924
+ version: "2024-05-18",
15925
+ protocol: "HTTPS",
15926
+ pathname: "/",
15927
+ method: "POST",
15928
+ authType: "AK",
15929
+ style: "RPC",
15930
+ reqBodyType: "formData",
15931
+ bodyType: "json",
15932
+ });
15933
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateMcpServerResponse({}));
15934
+ }
15935
+ /**
15936
+ * 更新 MCP Server
15937
+ *
15938
+ * @param request - UpdateMcpServerRequest
15939
+ * @returns UpdateMcpServerResponse
15940
+ */
15941
+ async updateMcpServer(request) {
15942
+ let runtime = new $dara.RuntimeOptions({});
15943
+ return await this.updateMcpServerWithOptions(request, runtime);
15944
+ }
15516
15945
  /**
15517
15946
  * Updates the information about a collection in Data Map, including the collection name, description, and administrator. Collections include categories and data albums. If you want to update the information about a data album, the account that you use must be attached the AliyunDataWorksFullAccess policy, or you are the data album creator or administrator.
15518
15947
  *