@alicloud/dataworks-public20240518 9.8.0 → 9.9.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 (40) hide show
  1. package/dist/client.d.ts +35 -14
  2. package/dist/client.js +70 -14
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAgentSessionRequest.d.ts +19 -11
  5. package/dist/models/CreateAgentSessionRequest.js +2 -0
  6. package/dist/models/CreateAgentSessionRequest.js.map +1 -1
  7. package/dist/models/DataQualityRule.d.ts +86 -85
  8. package/dist/models/DataQualityRule.js.map +1 -1
  9. package/dist/models/ListProjectRolesRequest.d.ts +9 -11
  10. package/dist/models/ListProjectRolesRequest.js.map +1 -1
  11. package/dist/models/ListProjectRolesResponseBody.d.ts +5 -5
  12. package/dist/models/ListProjectRolesShrinkRequest.d.ts +9 -11
  13. package/dist/models/ListProjectRolesShrinkRequest.js.map +1 -1
  14. package/dist/models/ReplyAgentSessionRequest.d.ts +119 -0
  15. package/dist/models/ReplyAgentSessionRequest.js +117 -0
  16. package/dist/models/ReplyAgentSessionRequest.js.map +1 -0
  17. package/dist/models/ReplyAgentSessionResponse.d.ts +19 -0
  18. package/dist/models/ReplyAgentSessionResponse.js +69 -0
  19. package/dist/models/ReplyAgentSessionResponse.js.map +1 -0
  20. package/dist/models/ReplyAgentSessionResponseBody.d.ts +136 -0
  21. package/dist/models/ReplyAgentSessionResponseBody.js +140 -0
  22. package/dist/models/ReplyAgentSessionResponseBody.js.map +1 -0
  23. package/dist/models/ReplyAgentSessionShrinkRequest.d.ts +38 -0
  24. package/dist/models/ReplyAgentSessionShrinkRequest.js +62 -0
  25. package/dist/models/ReplyAgentSessionShrinkRequest.js.map +1 -0
  26. package/dist/models/model.d.ts +9 -0
  27. package/dist/models/model.js +49 -31
  28. package/dist/models/model.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/client.ts +76 -14
  31. package/src/models/CreateAgentSessionRequest.ts +21 -11
  32. package/src/models/DataQualityRule.ts +86 -85
  33. package/src/models/ListProjectRolesRequest.ts +9 -11
  34. package/src/models/ListProjectRolesResponseBody.ts +5 -5
  35. package/src/models/ListProjectRolesShrinkRequest.ts +9 -11
  36. package/src/models/ReplyAgentSessionRequest.ts +171 -0
  37. package/src/models/ReplyAgentSessionResponse.ts +40 -0
  38. package/src/models/ReplyAgentSessionResponseBody.ts +204 -0
  39. package/src/models/ReplyAgentSessionShrinkRequest.ts +55 -0
  40. package/src/models/model.ts +9 -0
package/dist/client.d.ts CHANGED
@@ -403,12 +403,12 @@ export default class Client extends OpenApi {
403
403
  * Creates a new agent session and returns the session ID.
404
404
  *
405
405
  * @remarks
406
- * ## Request description
406
+ * ## Operation description
407
407
  * - This operation creates a new agent session.
408
- * - Use `_meta.agent.agentName` to specify the bound agent name. This parameter is required.
409
- * - dataworks_data_agent: DataWorks built-in agent — Data Agent, which provides intelligent data development AI capabilities covering the entire workflow of data integration, development, O&M, governance, and analytics.
410
- * - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI, which uses natural language processing and intelligent analytics technologies to automate the entire analysis workflow from requirement parsing, data extraction, and automatic code generation to visualization report output through conversational interaction.
411
- * - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service, which is a DataWorks enterprise-grade dedicated AI assistant built on open source frameworks such as OpenClaw and Hermes Agent.
408
+ * - Use `_meta.agent.agentName` to specify the agent name to bind. This parameter is required.
409
+ * - dataworks_data_agent: DataWorks built-in agent — Data Agent. Provides intelligent data development AI capabilities that cover the entire workflow of data integration, development, O&M, governance, and analytics.
410
+ * - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI. Uses natural language processing and intelligent analytics to automate the entire analysis workflow through conversational interaction, from requirement parsing, data extraction, and automatic code generation to visual report output.
411
+ * - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service. An enterprise-grade dedicated AI assistant for DataWorks built on open source frameworks such as OpenClaw and Hermes Agent.
412
412
  * - Use `_meta.config.sessionSource` to pass through a session source identifier for subsequent retrieval by source.
413
413
  * - Use `_meta.config.sessionTags[].sessionTagCode` to pass in session tags.
414
414
  *
@@ -421,12 +421,12 @@ export default class Client extends OpenApi {
421
421
  * Creates a new agent session and returns the session ID.
422
422
  *
423
423
  * @remarks
424
- * ## Request description
424
+ * ## Operation description
425
425
  * - This operation creates a new agent session.
426
- * - Use `_meta.agent.agentName` to specify the bound agent name. This parameter is required.
427
- * - dataworks_data_agent: DataWorks built-in agent — Data Agent, which provides intelligent data development AI capabilities covering the entire workflow of data integration, development, O&M, governance, and analytics.
428
- * - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI, which uses natural language processing and intelligent analytics technologies to automate the entire analysis workflow from requirement parsing, data extraction, and automatic code generation to visualization report output through conversational interaction.
429
- * - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service, which is a DataWorks enterprise-grade dedicated AI assistant built on open source frameworks such as OpenClaw and Hermes Agent.
426
+ * - Use `_meta.agent.agentName` to specify the agent name to bind. This parameter is required.
427
+ * - dataworks_data_agent: DataWorks built-in agent — Data Agent. Provides intelligent data development AI capabilities that cover the entire workflow of data integration, development, O&M, governance, and analytics.
428
+ * - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI. Uses natural language processing and intelligent analytics to automate the entire analysis workflow through conversational interaction, from requirement parsing, data extraction, and automatic code generation to visual report output.
429
+ * - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service. An enterprise-grade dedicated AI assistant for DataWorks built on open source frameworks such as OpenClaw and Hermes Agent.
430
430
  * - Use `_meta.config.sessionSource` to pass through a session source identifier for subsequent retrieval by source.
431
431
  * - Use `_meta.config.sessionTags[].sessionTagCode` to pass in session tags.
432
432
  *
@@ -6147,10 +6147,10 @@ export default class Client extends OpenApi {
6147
6147
  */
6148
6148
  listProjectMembers(request: $_model.ListProjectMembersRequest): Promise<$_model.ListProjectMembersResponse>;
6149
6149
  /**
6150
- * Returns a paginated list of roles in a workspace.
6150
+ * Queries the details of workspace roles by paging.
6151
6151
  *
6152
6152
  * @remarks
6153
- * This feature is available in DataWorks Basic Edition and higher.
6153
+ * You must purchase DataWorks Basic Edition or a higher edition to use this feature.
6154
6154
  *
6155
6155
  * @param tmpReq - ListProjectRolesRequest
6156
6156
  * @param runtime - runtime options for this request RuntimeOptions
@@ -6158,10 +6158,10 @@ export default class Client extends OpenApi {
6158
6158
  */
6159
6159
  listProjectRolesWithOptions(tmpReq: $_model.ListProjectRolesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListProjectRolesResponse>;
6160
6160
  /**
6161
- * Returns a paginated list of roles in a workspace.
6161
+ * Queries the details of workspace roles by paging.
6162
6162
  *
6163
6163
  * @remarks
6164
- * This feature is available in DataWorks Basic Edition and higher.
6164
+ * You must purchase DataWorks Basic Edition or a higher edition to use this feature.
6165
6165
  *
6166
6166
  * @param request - ListProjectRolesRequest
6167
6167
  * @returns ListProjectRolesResponse
@@ -7033,6 +7033,27 @@ export default class Client extends OpenApi {
7033
7033
  * @returns RenameWorkflowDefinitionResponse
7034
7034
  */
7035
7035
  renameWorkflowDefinition(request: $_model.RenameWorkflowDefinitionRequest): Promise<$_model.RenameWorkflowDefinitionResponse>;
7036
+ /**
7037
+ * Replies to a pending user interaction in a DataAgent session.
7038
+ *
7039
+ * @remarks
7040
+ * Replies to a permission_request issued by the DataAgent daemon. You can submit an answer to an ask_user_question or cancel the current interaction. The PermissionRequestId must come from the params.data.requestId field in the _qwen/notify event (params.kind=permission_request) of the original PromptAgentSession SSE. The reply only returns whether it was accepted. Subsequent execution events are still returned through the original PromptAgentSession SSE. Do not resubmit the same prompt round.
7041
+ *
7042
+ * @param tmpReq - ReplyAgentSessionRequest
7043
+ * @param runtime - runtime options for this request RuntimeOptions
7044
+ * @returns ReplyAgentSessionResponse
7045
+ */
7046
+ replyAgentSessionWithOptions(tmpReq: $_model.ReplyAgentSessionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ReplyAgentSessionResponse>;
7047
+ /**
7048
+ * Replies to a pending user interaction in a DataAgent session.
7049
+ *
7050
+ * @remarks
7051
+ * Replies to a permission_request issued by the DataAgent daemon. You can submit an answer to an ask_user_question or cancel the current interaction. The PermissionRequestId must come from the params.data.requestId field in the _qwen/notify event (params.kind=permission_request) of the original PromptAgentSession SSE. The reply only returns whether it was accepted. Subsequent execution events are still returned through the original PromptAgentSession SSE. Do not resubmit the same prompt round.
7052
+ *
7053
+ * @param request - ReplyAgentSessionRequest
7054
+ * @returns ReplyAgentSessionResponse
7055
+ */
7056
+ replyAgentSession(request: $_model.ReplyAgentSessionRequest): Promise<$_model.ReplyAgentSessionResponse>;
7036
7057
  /**
7037
7058
  * Reruns multiple node instances in a batch.
7038
7059
  *
package/dist/client.js CHANGED
@@ -1141,12 +1141,12 @@ class Client extends openapi_core_1.default {
1141
1141
  * Creates a new agent session and returns the session ID.
1142
1142
  *
1143
1143
  * @remarks
1144
- * ## Request description
1144
+ * ## Operation description
1145
1145
  * - This operation creates a new agent session.
1146
- * - Use `_meta.agent.agentName` to specify the bound agent name. This parameter is required.
1147
- * - dataworks_data_agent: DataWorks built-in agent — Data Agent, which provides intelligent data development AI capabilities covering the entire workflow of data integration, development, O&M, governance, and analytics.
1148
- * - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI, which uses natural language processing and intelligent analytics technologies to automate the entire analysis workflow from requirement parsing, data extraction, and automatic code generation to visualization report output through conversational interaction.
1149
- * - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service, which is a DataWorks enterprise-grade dedicated AI assistant built on open source frameworks such as OpenClaw and Hermes Agent.
1146
+ * - Use `_meta.agent.agentName` to specify the agent name to bind. This parameter is required.
1147
+ * - dataworks_data_agent: DataWorks built-in agent — Data Agent. Provides intelligent data development AI capabilities that cover the entire workflow of data integration, development, O&M, governance, and analytics.
1148
+ * - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI. Uses natural language processing and intelligent analytics to automate the entire analysis workflow through conversational interaction, from requirement parsing, data extraction, and automatic code generation to visual report output.
1149
+ * - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service. An enterprise-grade dedicated AI assistant for DataWorks built on open source frameworks such as OpenClaw and Hermes Agent.
1150
1150
  * - Use `_meta.config.sessionSource` to pass through a session source identifier for subsequent retrieval by source.
1151
1151
  * - Use `_meta.config.sessionTags[].sessionTagCode` to pass in session tags.
1152
1152
  *
@@ -1191,12 +1191,12 @@ class Client extends openapi_core_1.default {
1191
1191
  * Creates a new agent session and returns the session ID.
1192
1192
  *
1193
1193
  * @remarks
1194
- * ## Request description
1194
+ * ## Operation description
1195
1195
  * - This operation creates a new agent session.
1196
- * - Use `_meta.agent.agentName` to specify the bound agent name. This parameter is required.
1197
- * - dataworks_data_agent: DataWorks built-in agent — Data Agent, which provides intelligent data development AI capabilities covering the entire workflow of data integration, development, O&M, governance, and analytics.
1198
- * - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI, which uses natural language processing and intelligent analytics technologies to automate the entire analysis workflow from requirement parsing, data extraction, and automatic code generation to visualization report output through conversational interaction.
1199
- * - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service, which is a DataWorks enterprise-grade dedicated AI assistant built on open source frameworks such as OpenClaw and Hermes Agent.
1196
+ * - Use `_meta.agent.agentName` to specify the agent name to bind. This parameter is required.
1197
+ * - dataworks_data_agent: DataWorks built-in agent — Data Agent. Provides intelligent data development AI capabilities that cover the entire workflow of data integration, development, O&M, governance, and analytics.
1198
+ * - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI. Uses natural language processing and intelligent analytics to automate the entire analysis workflow through conversational interaction, from requirement parsing, data extraction, and automatic code generation to visual report output.
1199
+ * - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service. An enterprise-grade dedicated AI assistant for DataWorks built on open source frameworks such as OpenClaw and Hermes Agent.
1200
1200
  * - Use `_meta.config.sessionSource` to pass through a session source identifier for subsequent retrieval by source.
1201
1201
  * - Use `_meta.config.sessionTags[].sessionTagCode` to pass in session tags.
1202
1202
  *
@@ -15556,10 +15556,10 @@ class Client extends openapi_core_1.default {
15556
15556
  return await this.listProjectMembersWithOptions(request, runtime);
15557
15557
  }
15558
15558
  /**
15559
- * Returns a paginated list of roles in a workspace.
15559
+ * Queries the details of workspace roles by paging.
15560
15560
  *
15561
15561
  * @remarks
15562
- * This feature is available in DataWorks Basic Edition and higher.
15562
+ * You must purchase DataWorks Basic Edition or a higher edition to use this feature.
15563
15563
  *
15564
15564
  * @param tmpReq - ListProjectRolesRequest
15565
15565
  * @param runtime - runtime options for this request RuntimeOptions
@@ -15611,10 +15611,10 @@ class Client extends openapi_core_1.default {
15611
15611
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListProjectRolesResponse({}));
15612
15612
  }
15613
15613
  /**
15614
- * Returns a paginated list of roles in a workspace.
15614
+ * Queries the details of workspace roles by paging.
15615
15615
  *
15616
15616
  * @remarks
15617
- * This feature is available in DataWorks Basic Edition and higher.
15617
+ * You must purchase DataWorks Basic Edition or a higher edition to use this feature.
15618
15618
  *
15619
15619
  * @param request - ListProjectRolesRequest
15620
15620
  * @returns ListProjectRolesResponse
@@ -17967,6 +17967,62 @@ class Client extends openapi_core_1.default {
17967
17967
  let runtime = new $dara.RuntimeOptions({});
17968
17968
  return await this.renameWorkflowDefinitionWithOptions(request, runtime);
17969
17969
  }
17970
+ /**
17971
+ * Replies to a pending user interaction in a DataAgent session.
17972
+ *
17973
+ * @remarks
17974
+ * Replies to a permission_request issued by the DataAgent daemon. You can submit an answer to an ask_user_question or cancel the current interaction. The PermissionRequestId must come from the params.data.requestId field in the _qwen/notify event (params.kind=permission_request) of the original PromptAgentSession SSE. The reply only returns whether it was accepted. Subsequent execution events are still returned through the original PromptAgentSession SSE. Do not resubmit the same prompt round.
17975
+ *
17976
+ * @param tmpReq - ReplyAgentSessionRequest
17977
+ * @param runtime - runtime options for this request RuntimeOptions
17978
+ * @returns ReplyAgentSessionResponse
17979
+ */
17980
+ async replyAgentSessionWithOptions(tmpReq, runtime) {
17981
+ tmpReq.validate();
17982
+ let request = new $_model.ReplyAgentSessionShrinkRequest({});
17983
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
17984
+ if (!$dara.isNull(tmpReq.params)) {
17985
+ request.paramsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.params, "Params", "json");
17986
+ }
17987
+ let body = {};
17988
+ if (!$dara.isNull(request.id)) {
17989
+ body["Id"] = request.id;
17990
+ }
17991
+ if (!$dara.isNull(request.jsonrpc)) {
17992
+ body["Jsonrpc"] = request.jsonrpc;
17993
+ }
17994
+ if (!$dara.isNull(request.paramsShrink)) {
17995
+ body["Params"] = request.paramsShrink;
17996
+ }
17997
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
17998
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
17999
+ });
18000
+ let params = new openapi_core_2.$OpenApiUtil.Params({
18001
+ action: "ReplyAgentSession",
18002
+ version: "2024-05-18",
18003
+ protocol: "HTTPS",
18004
+ pathname: "/",
18005
+ method: "POST",
18006
+ authType: "AK",
18007
+ style: "RPC",
18008
+ reqBodyType: "formData",
18009
+ bodyType: "json",
18010
+ });
18011
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ReplyAgentSessionResponse({}));
18012
+ }
18013
+ /**
18014
+ * Replies to a pending user interaction in a DataAgent session.
18015
+ *
18016
+ * @remarks
18017
+ * Replies to a permission_request issued by the DataAgent daemon. You can submit an answer to an ask_user_question or cancel the current interaction. The PermissionRequestId must come from the params.data.requestId field in the _qwen/notify event (params.kind=permission_request) of the original PromptAgentSession SSE. The reply only returns whether it was accepted. Subsequent execution events are still returned through the original PromptAgentSession SSE. Do not resubmit the same prompt round.
18018
+ *
18019
+ * @param request - ReplyAgentSessionRequest
18020
+ * @returns ReplyAgentSessionResponse
18021
+ */
18022
+ async replyAgentSession(request) {
18023
+ let runtime = new $dara.RuntimeOptions({});
18024
+ return await this.replyAgentSessionWithOptions(request, runtime);
18025
+ }
17970
18026
  /**
17971
18027
  * Reruns multiple node instances in a batch.
17972
18028
  *