@alicloud/dms20250414 1.14.2 → 1.15.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.
- package/dist/client.d.ts +51 -36
- package/dist/client.js +119 -37
- package/dist/client.js.map +1 -1
- package/dist/models/CreateDataAgentWorkspaceRequest.d.ts +3 -3
- package/dist/models/CreateDataAgentWorkspaceResponseBody.d.ts +6 -9
- package/dist/models/CreateDataAgentWorkspaceResponseBody.js +2 -0
- package/dist/models/CreateDataAgentWorkspaceResponseBody.js.map +1 -1
- package/dist/models/DataAgentBillingInstance.d.ts +28 -0
- package/dist/models/DataAgentBillingInstance.js +89 -0
- package/dist/models/DataAgentBillingInstance.js.map +1 -0
- package/dist/models/DescribeDataAgentSessionRequest.d.ts +3 -3
- package/dist/models/DescribeDataAgentSessionResponseBody.d.ts +231 -40
- package/dist/models/DescribeDataAgentSessionResponseBody.js +93 -1
- package/dist/models/DescribeDataAgentSessionResponseBody.js.map +1 -1
- package/dist/models/DmsGatewayOrder.d.ts +23 -0
- package/dist/models/DmsGatewayOrder.js +76 -0
- package/dist/models/DmsGatewayOrder.js.map +1 -0
- package/dist/models/GetChatContentRequest.d.ts +2 -2
- package/dist/models/GetChatContentResponseBody.d.ts +11 -4
- package/dist/models/GetChatContentResponseBody.js.map +1 -1
- package/dist/models/GetDataAgentWorkspaceInfoRequest.d.ts +2 -2
- package/dist/models/GetDataAgentWorkspaceInfoResponseBody.d.ts +9 -12
- package/dist/models/GetDataAgentWorkspaceInfoResponseBody.js +2 -0
- package/dist/models/GetDataAgentWorkspaceInfoResponseBody.js.map +1 -1
- package/dist/models/GetSqlConsoleOperationLogRequest.d.ts +85 -0
- package/dist/models/GetSqlConsoleOperationLogRequest.js +72 -0
- package/dist/models/GetSqlConsoleOperationLogRequest.js.map +1 -0
- package/dist/models/GetSqlConsoleOperationLogResponse.d.ts +19 -0
- package/dist/models/GetSqlConsoleOperationLogResponse.js +69 -0
- package/dist/models/GetSqlConsoleOperationLogResponse.js.map +1 -0
- package/dist/models/GetSqlConsoleOperationLogResponseBody.d.ts +150 -0
- package/dist/models/GetSqlConsoleOperationLogResponseBody.js +108 -0
- package/dist/models/GetSqlConsoleOperationLogResponseBody.js.map +1 -0
- package/dist/models/ListDataAgentSessionRequest.d.ts +11 -10
- package/dist/models/ListDataAgentSessionRequest.js +2 -0
- package/dist/models/ListDataAgentSessionRequest.js.map +1 -1
- package/dist/models/ListDataAgentSessionResponseBody.d.ts +36 -44
- package/dist/models/ListDataAgentSessionResponseBody.js.map +1 -1
- package/dist/models/ListDataAgentWorkspaceRequest.d.ts +6 -6
- package/dist/models/ListDataAgentWorkspaceResponseBody.d.ts +13 -12
- package/dist/models/ListDataAgentWorkspaceResponseBody.js +2 -0
- package/dist/models/ListDataAgentWorkspaceResponseBody.js.map +1 -1
- package/dist/models/MdbAgentInstanceVo.d.ts +28 -0
- package/dist/models/MdbAgentInstanceVo.js +86 -0
- package/dist/models/MdbAgentInstanceVo.js.map +1 -0
- package/dist/models/SendChatMessageRequest.d.ts +141 -25
- package/dist/models/SendChatMessageRequest.js +61 -1
- package/dist/models/SendChatMessageRequest.js.map +1 -1
- package/dist/models/SendChatMessageResponseBody.d.ts +11 -3
- package/dist/models/SendChatMessageResponseBody.js +2 -0
- package/dist/models/SendChatMessageResponseBody.js.map +1 -1
- package/dist/models/SendChatMessageShrinkRequest.d.ts +32 -11
- package/dist/models/SendChatMessageShrinkRequest.js +4 -0
- package/dist/models/SendChatMessageShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +12 -0
- package/dist/models/model.js +40 -16
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +133 -37
- package/src/models/CreateDataAgentWorkspaceRequest.ts +3 -3
- package/src/models/CreateDataAgentWorkspaceResponseBody.ts +8 -9
- package/src/models/DataAgentBillingInstance.ts +72 -0
- package/src/models/DescribeDataAgentSessionRequest.ts +3 -3
- package/src/models/DescribeDataAgentSessionResponseBody.ts +296 -40
- package/src/models/DmsGatewayOrder.ts +54 -0
- package/src/models/GetChatContentRequest.ts +2 -2
- package/src/models/GetChatContentResponseBody.ts +11 -4
- package/src/models/GetDataAgentWorkspaceInfoRequest.ts +2 -2
- package/src/models/GetDataAgentWorkspaceInfoResponseBody.ts +11 -12
- package/src/models/GetSqlConsoleOperationLogRequest.ts +112 -0
- package/src/models/GetSqlConsoleOperationLogResponse.ts +40 -0
- package/src/models/GetSqlConsoleOperationLogResponseBody.ts +204 -0
- package/src/models/ListDataAgentSessionRequest.ts +13 -10
- package/src/models/ListDataAgentSessionResponseBody.ts +36 -44
- package/src/models/ListDataAgentWorkspaceRequest.ts +6 -6
- package/src/models/ListDataAgentWorkspaceResponseBody.ts +15 -12
- package/src/models/MdbAgentInstanceVo.ts +69 -0
- package/src/models/SendChatMessageRequest.ts +183 -25
- package/src/models/SendChatMessageResponseBody.ts +13 -3
- package/src/models/SendChatMessageShrinkRequest.ts +36 -11
- package/src/models/model.ts +12 -0
package/dist/client.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ export default class Client extends OpenApi {
|
|
|
171
171
|
*/
|
|
172
172
|
createDataAgentSession(request: $_model.CreateDataAgentSessionRequest): Promise<$_model.CreateDataAgentSessionResponse>;
|
|
173
173
|
/**
|
|
174
|
-
* Creates a DataAgent workspace.
|
|
174
|
+
* Creates a DataAgent collaborative workspace.
|
|
175
175
|
*
|
|
176
176
|
* @param request - CreateDataAgentWorkspaceRequest
|
|
177
177
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -179,7 +179,7 @@ export default class Client extends OpenApi {
|
|
|
179
179
|
*/
|
|
180
180
|
createDataAgentWorkspaceWithOptions(request: $_model.CreateDataAgentWorkspaceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateDataAgentWorkspaceResponse>;
|
|
181
181
|
/**
|
|
182
|
-
* Creates a DataAgent workspace.
|
|
182
|
+
* Creates a DataAgent collaborative workspace.
|
|
183
183
|
*
|
|
184
184
|
* @param request - CreateDataAgentWorkspaceRequest
|
|
185
185
|
* @returns CreateDataAgentWorkspaceResponse
|
|
@@ -447,7 +447,7 @@ export default class Client extends OpenApi {
|
|
|
447
447
|
*/
|
|
448
448
|
describeCustomAgent(request: $_model.DescribeCustomAgentRequest): Promise<$_model.DescribeCustomAgentResponse>;
|
|
449
449
|
/**
|
|
450
|
-
*
|
|
450
|
+
* Retrieves the description of a DataAgent session.
|
|
451
451
|
*
|
|
452
452
|
* @param request - DescribeDataAgentSessionRequest
|
|
453
453
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -455,7 +455,7 @@ export default class Client extends OpenApi {
|
|
|
455
455
|
*/
|
|
456
456
|
describeDataAgentSessionWithOptions(request: $_model.DescribeDataAgentSessionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeDataAgentSessionResponse>;
|
|
457
457
|
/**
|
|
458
|
-
*
|
|
458
|
+
* Retrieves the description of a DataAgent session.
|
|
459
459
|
*
|
|
460
460
|
* @param request - DescribeDataAgentSessionRequest
|
|
461
461
|
* @returns DescribeDataAgentSessionResponse
|
|
@@ -552,12 +552,12 @@ export default class Client extends OpenApi {
|
|
|
552
552
|
*/
|
|
553
553
|
getAirflow(request: $_model.GetAirflowRequest): Promise<$_model.GetAirflowResponse>;
|
|
554
554
|
/**
|
|
555
|
-
* Retrieves chat content from a specific checkpoint by specifying
|
|
555
|
+
* Retrieves chat content from a specific checkpoint by specifying the session ID and AgentId.
|
|
556
556
|
*
|
|
557
557
|
* @remarks
|
|
558
|
-
* ## Request
|
|
559
|
-
* - The response is an SSE stream
|
|
560
|
-
* - The `content` field
|
|
558
|
+
* ## Request Description
|
|
559
|
+
* - The response is returned as an SSE stream, where each event follows the `SSEEvent` schema and contains meta-information such as the message level.
|
|
560
|
+
* - The `content` field in each SSE event may carry actual message text or a JSON object, depending on the value of `content_type`.
|
|
561
561
|
*
|
|
562
562
|
* @param request - GetChatContentRequest
|
|
563
563
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -565,12 +565,12 @@ export default class Client extends OpenApi {
|
|
|
565
565
|
*/
|
|
566
566
|
getChatContentWithSSE(request: $_model.GetChatContentRequest, runtime: $dara.RuntimeOptions): AsyncGenerator<$_model.GetChatContentResponse, any, unknown>;
|
|
567
567
|
/**
|
|
568
|
-
* Retrieves chat content from a specific checkpoint by specifying
|
|
568
|
+
* Retrieves chat content from a specific checkpoint by specifying the session ID and AgentId.
|
|
569
569
|
*
|
|
570
570
|
* @remarks
|
|
571
|
-
* ## Request
|
|
572
|
-
* - The response is an SSE stream
|
|
573
|
-
* - The `content` field
|
|
571
|
+
* ## Request Description
|
|
572
|
+
* - The response is returned as an SSE stream, where each event follows the `SSEEvent` schema and contains meta-information such as the message level.
|
|
573
|
+
* - The `content` field in each SSE event may carry actual message text or a JSON object, depending on the value of `content_type`.
|
|
574
574
|
*
|
|
575
575
|
* @param request - GetChatContentRequest
|
|
576
576
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -578,12 +578,12 @@ export default class Client extends OpenApi {
|
|
|
578
578
|
*/
|
|
579
579
|
getChatContentWithOptions(request: $_model.GetChatContentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetChatContentResponse>;
|
|
580
580
|
/**
|
|
581
|
-
* Retrieves chat content from a specific checkpoint by specifying
|
|
581
|
+
* Retrieves chat content from a specific checkpoint by specifying the session ID and AgentId.
|
|
582
582
|
*
|
|
583
583
|
* @remarks
|
|
584
|
-
* ## Request
|
|
585
|
-
* - The response is an SSE stream
|
|
586
|
-
* - The `content` field
|
|
584
|
+
* ## Request Description
|
|
585
|
+
* - The response is returned as an SSE stream, where each event follows the `SSEEvent` schema and contains meta-information such as the message level.
|
|
586
|
+
* - The `content` field in each SSE event may carry actual message text or a JSON object, depending on the value of `content_type`.
|
|
587
587
|
*
|
|
588
588
|
* @param request - GetChatContentRequest
|
|
589
589
|
* @returns GetChatContentResponse
|
|
@@ -605,7 +605,7 @@ export default class Client extends OpenApi {
|
|
|
605
605
|
*/
|
|
606
606
|
getDataAgentSubAccountInfo(request: $_model.GetDataAgentSubAccountInfoRequest): Promise<$_model.GetDataAgentSubAccountInfoResponse>;
|
|
607
607
|
/**
|
|
608
|
-
* Retrieves
|
|
608
|
+
* Retrieves the details of a collaborative workspace.
|
|
609
609
|
*
|
|
610
610
|
* @param request - GetDataAgentWorkspaceInfoRequest
|
|
611
611
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -613,7 +613,7 @@ export default class Client extends OpenApi {
|
|
|
613
613
|
*/
|
|
614
614
|
getDataAgentWorkspaceInfoWithOptions(request: $_model.GetDataAgentWorkspaceInfoRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetDataAgentWorkspaceInfoResponse>;
|
|
615
615
|
/**
|
|
616
|
-
* Retrieves
|
|
616
|
+
* Retrieves the details of a collaborative workspace.
|
|
617
617
|
*
|
|
618
618
|
* @param request - GetDataAgentWorkspaceInfoRequest
|
|
619
619
|
* @returns GetDataAgentWorkspaceInfoResponse
|
|
@@ -724,6 +724,21 @@ export default class Client extends OpenApi {
|
|
|
724
724
|
* @returns GetNotebookTaskStatusResponse
|
|
725
725
|
*/
|
|
726
726
|
getNotebookTaskStatus(request: $_model.GetNotebookTaskStatusRequest): Promise<$_model.GetNotebookTaskStatusResponse>;
|
|
727
|
+
/**
|
|
728
|
+
* Queries the operation logs of the SQL window.
|
|
729
|
+
*
|
|
730
|
+
* @param request - GetSqlConsoleOperationLogRequest
|
|
731
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
732
|
+
* @returns GetSqlConsoleOperationLogResponse
|
|
733
|
+
*/
|
|
734
|
+
getSqlConsoleOperationLogWithOptions(request: $_model.GetSqlConsoleOperationLogRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetSqlConsoleOperationLogResponse>;
|
|
735
|
+
/**
|
|
736
|
+
* Queries the operation logs of the SQL window.
|
|
737
|
+
*
|
|
738
|
+
* @param request - GetSqlConsoleOperationLogRequest
|
|
739
|
+
* @returns GetSqlConsoleOperationLogResponse
|
|
740
|
+
*/
|
|
741
|
+
getSqlConsoleOperationLog(request: $_model.GetSqlConsoleOperationLogRequest): Promise<$_model.GetSqlConsoleOperationLogResponse>;
|
|
727
742
|
/**
|
|
728
743
|
* Reads the content of a code file in the workspace and returns the file content along with mtime (in the header).
|
|
729
744
|
*
|
|
@@ -839,7 +854,7 @@ export default class Client extends OpenApi {
|
|
|
839
854
|
*/
|
|
840
855
|
listCustomAgent(request: $_model.ListCustomAgentRequest): Promise<$_model.ListCustomAgentResponse>;
|
|
841
856
|
/**
|
|
842
|
-
*
|
|
857
|
+
* Retrieves the list of historical session descriptions for a Data Agent.
|
|
843
858
|
*
|
|
844
859
|
* @param request - ListDataAgentSessionRequest
|
|
845
860
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -847,14 +862,14 @@ export default class Client extends OpenApi {
|
|
|
847
862
|
*/
|
|
848
863
|
listDataAgentSessionWithOptions(request: $_model.ListDataAgentSessionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListDataAgentSessionResponse>;
|
|
849
864
|
/**
|
|
850
|
-
*
|
|
865
|
+
* Retrieves the list of historical session descriptions for a Data Agent.
|
|
851
866
|
*
|
|
852
867
|
* @param request - ListDataAgentSessionRequest
|
|
853
868
|
* @returns ListDataAgentSessionResponse
|
|
854
869
|
*/
|
|
855
870
|
listDataAgentSession(request: $_model.ListDataAgentSessionRequest): Promise<$_model.ListDataAgentSessionResponse>;
|
|
856
871
|
/**
|
|
857
|
-
* Retrieves
|
|
872
|
+
* Retrieves the collaborative workspaces under the primary account with pagination.
|
|
858
873
|
*
|
|
859
874
|
* @param request - ListDataAgentWorkspaceRequest
|
|
860
875
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -862,7 +877,7 @@ export default class Client extends OpenApi {
|
|
|
862
877
|
*/
|
|
863
878
|
listDataAgentWorkspaceWithOptions(request: $_model.ListDataAgentWorkspaceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListDataAgentWorkspaceResponse>;
|
|
864
879
|
/**
|
|
865
|
-
* Retrieves
|
|
880
|
+
* Retrieves the collaborative workspaces under the primary account with pagination.
|
|
866
881
|
*
|
|
867
882
|
* @param request - ListDataAgentWorkspaceRequest
|
|
868
883
|
* @returns ListDataAgentWorkspaceResponse
|
|
@@ -1247,16 +1262,16 @@ export default class Client extends OpenApi {
|
|
|
1247
1262
|
*/
|
|
1248
1263
|
saveWorkspaceCode(request: $_model.SaveWorkspaceCodeRequest): Promise<$_model.SaveWorkspaceCodeResponse>;
|
|
1249
1264
|
/**
|
|
1250
|
-
*
|
|
1265
|
+
* Send a user message to a specified session or cancel the session.
|
|
1251
1266
|
*
|
|
1252
1267
|
* @remarks
|
|
1253
|
-
* ## Request
|
|
1254
|
-
* -
|
|
1255
|
-
* -
|
|
1256
|
-
* - The `reply_to` field
|
|
1268
|
+
* ## Request description
|
|
1269
|
+
* - `agent_id` and `session_id` are required fields.
|
|
1270
|
+
* - `message_type` defaults to `primary`. When you need to append information or cancel a session, set it to `additional` or `cancel`.
|
|
1271
|
+
* - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
|
|
1257
1272
|
* - When `message_type` is `additional`, the `question` field is required.
|
|
1258
|
-
* -
|
|
1259
|
-
* -
|
|
1273
|
+
* - `quoted_message` can be used to quote the content of the user\\"s previous message.
|
|
1274
|
+
* - Fields such as `data_source`, `dms_user`, `db_metadata`, and `session_config` are all optional, but provide more detailed context information.
|
|
1260
1275
|
*
|
|
1261
1276
|
* @param tmpReq - SendChatMessageRequest
|
|
1262
1277
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1264,16 +1279,16 @@ export default class Client extends OpenApi {
|
|
|
1264
1279
|
*/
|
|
1265
1280
|
sendChatMessageWithOptions(tmpReq: $_model.SendChatMessageRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SendChatMessageResponse>;
|
|
1266
1281
|
/**
|
|
1267
|
-
*
|
|
1282
|
+
* Send a user message to a specified session or cancel the session.
|
|
1268
1283
|
*
|
|
1269
1284
|
* @remarks
|
|
1270
|
-
* ## Request
|
|
1271
|
-
* -
|
|
1272
|
-
* -
|
|
1273
|
-
* - The `reply_to` field
|
|
1285
|
+
* ## Request description
|
|
1286
|
+
* - `agent_id` and `session_id` are required fields.
|
|
1287
|
+
* - `message_type` defaults to `primary`. When you need to append information or cancel a session, set it to `additional` or `cancel`.
|
|
1288
|
+
* - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
|
|
1274
1289
|
* - When `message_type` is `additional`, the `question` field is required.
|
|
1275
|
-
* -
|
|
1276
|
-
* -
|
|
1290
|
+
* - `quoted_message` can be used to quote the content of the user\\"s previous message.
|
|
1291
|
+
* - Fields such as `data_source`, `dms_user`, `db_metadata`, and `session_config` are all optional, but provide more detailed context information.
|
|
1277
1292
|
*
|
|
1278
1293
|
* @param request - SendChatMessageRequest
|
|
1279
1294
|
* @returns SendChatMessageResponse
|
package/dist/client.js
CHANGED
|
@@ -68,7 +68,17 @@ __exportStar(require("./models/model"), exports);
|
|
|
68
68
|
class Client extends openapi_core_1.default {
|
|
69
69
|
constructor(config) {
|
|
70
70
|
super(config);
|
|
71
|
-
this._endpointRule = "";
|
|
71
|
+
this._endpointRule = "regional";
|
|
72
|
+
this._endpointMap = {
|
|
73
|
+
'us-west-1': "dms.us-west-1.aliyuncs.com",
|
|
74
|
+
'us-east-1': "dms.us-east-1.aliyuncs.com",
|
|
75
|
+
'cn-shenzhen': "dms.cn-shenzhen.aliyuncs.com",
|
|
76
|
+
'cn-shanghai': "dms.cn-shanghai.aliyuncs.com",
|
|
77
|
+
'cn-hongkong': "dms.cn-hongkong.aliyuncs.com",
|
|
78
|
+
'cn-hangzhou': "dms.cn-hangzhou.aliyuncs.com",
|
|
79
|
+
'cn-beijing': "dms.cn-beijing.aliyuncs.com",
|
|
80
|
+
'ap-southeast-1': "dms.ap-southeast-1.aliyuncs.com",
|
|
81
|
+
};
|
|
72
82
|
this.checkConfig(config);
|
|
73
83
|
this._endpoint = this.getEndpoint("dms", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
74
84
|
}
|
|
@@ -716,7 +726,7 @@ class Client extends openapi_core_1.default {
|
|
|
716
726
|
return await this.createDataAgentSessionWithOptions(request, runtime);
|
|
717
727
|
}
|
|
718
728
|
/**
|
|
719
|
-
* Creates a DataAgent workspace.
|
|
729
|
+
* Creates a DataAgent collaborative workspace.
|
|
720
730
|
*
|
|
721
731
|
* @param request - CreateDataAgentWorkspaceRequest
|
|
722
732
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -754,7 +764,7 @@ class Client extends openapi_core_1.default {
|
|
|
754
764
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateDataAgentWorkspaceResponse({}));
|
|
755
765
|
}
|
|
756
766
|
/**
|
|
757
|
-
* Creates a DataAgent workspace.
|
|
767
|
+
* Creates a DataAgent collaborative workspace.
|
|
758
768
|
*
|
|
759
769
|
* @param request - CreateDataAgentWorkspaceRequest
|
|
760
770
|
* @returns CreateDataAgentWorkspaceResponse
|
|
@@ -1628,7 +1638,7 @@ class Client extends openapi_core_1.default {
|
|
|
1628
1638
|
return await this.describeCustomAgentWithOptions(request, runtime);
|
|
1629
1639
|
}
|
|
1630
1640
|
/**
|
|
1631
|
-
*
|
|
1641
|
+
* Retrieves the description of a DataAgent session.
|
|
1632
1642
|
*
|
|
1633
1643
|
* @param request - DescribeDataAgentSessionRequest
|
|
1634
1644
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1663,7 +1673,7 @@ class Client extends openapi_core_1.default {
|
|
|
1663
1673
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeDataAgentSessionResponse({}));
|
|
1664
1674
|
}
|
|
1665
1675
|
/**
|
|
1666
|
-
*
|
|
1676
|
+
* Retrieves the description of a DataAgent session.
|
|
1667
1677
|
*
|
|
1668
1678
|
* @param request - DescribeDataAgentSessionRequest
|
|
1669
1679
|
* @returns DescribeDataAgentSessionResponse
|
|
@@ -1931,12 +1941,12 @@ class Client extends openapi_core_1.default {
|
|
|
1931
1941
|
return await this.getAirflowWithOptions(request, runtime);
|
|
1932
1942
|
}
|
|
1933
1943
|
/**
|
|
1934
|
-
* Retrieves chat content from a specific checkpoint by specifying
|
|
1944
|
+
* Retrieves chat content from a specific checkpoint by specifying the session ID and AgentId.
|
|
1935
1945
|
*
|
|
1936
1946
|
* @remarks
|
|
1937
|
-
* ## Request
|
|
1938
|
-
* - The response is an SSE stream
|
|
1939
|
-
* - The `content` field
|
|
1947
|
+
* ## Request Description
|
|
1948
|
+
* - The response is returned as an SSE stream, where each event follows the `SSEEvent` schema and contains meta-information such as the message level.
|
|
1949
|
+
* - The `content` field in each SSE event may carry actual message text or a JSON object, depending on the value of `content_type`.
|
|
1940
1950
|
*
|
|
1941
1951
|
* @param request - GetChatContentRequest
|
|
1942
1952
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2001,12 +2011,12 @@ class Client extends openapi_core_1.default {
|
|
|
2001
2011
|
});
|
|
2002
2012
|
}
|
|
2003
2013
|
/**
|
|
2004
|
-
* Retrieves chat content from a specific checkpoint by specifying
|
|
2014
|
+
* Retrieves chat content from a specific checkpoint by specifying the session ID and AgentId.
|
|
2005
2015
|
*
|
|
2006
2016
|
* @remarks
|
|
2007
|
-
* ## Request
|
|
2008
|
-
* - The response is an SSE stream
|
|
2009
|
-
* - The `content` field
|
|
2017
|
+
* ## Request Description
|
|
2018
|
+
* - The response is returned as an SSE stream, where each event follows the `SSEEvent` schema and contains meta-information such as the message level.
|
|
2019
|
+
* - The `content` field in each SSE event may carry actual message text or a JSON object, depending on the value of `content_type`.
|
|
2010
2020
|
*
|
|
2011
2021
|
* @param request - GetChatContentRequest
|
|
2012
2022
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2044,12 +2054,12 @@ class Client extends openapi_core_1.default {
|
|
|
2044
2054
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetChatContentResponse({}));
|
|
2045
2055
|
}
|
|
2046
2056
|
/**
|
|
2047
|
-
* Retrieves chat content from a specific checkpoint by specifying
|
|
2057
|
+
* Retrieves chat content from a specific checkpoint by specifying the session ID and AgentId.
|
|
2048
2058
|
*
|
|
2049
2059
|
* @remarks
|
|
2050
|
-
* ## Request
|
|
2051
|
-
* - The response is an SSE stream
|
|
2052
|
-
* - The `content` field
|
|
2060
|
+
* ## Request Description
|
|
2061
|
+
* - The response is returned as an SSE stream, where each event follows the `SSEEvent` schema and contains meta-information such as the message level.
|
|
2062
|
+
* - The `content` field in each SSE event may carry actual message text or a JSON object, depending on the value of `content_type`.
|
|
2053
2063
|
*
|
|
2054
2064
|
* @param request - GetChatContentRequest
|
|
2055
2065
|
* @returns GetChatContentResponse
|
|
@@ -2101,7 +2111,7 @@ class Client extends openapi_core_1.default {
|
|
|
2101
2111
|
return await this.getDataAgentSubAccountInfoWithOptions(request, runtime);
|
|
2102
2112
|
}
|
|
2103
2113
|
/**
|
|
2104
|
-
* Retrieves
|
|
2114
|
+
* Retrieves the details of a collaborative workspace.
|
|
2105
2115
|
*
|
|
2106
2116
|
* @param request - GetDataAgentWorkspaceInfoRequest
|
|
2107
2117
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2133,7 +2143,7 @@ class Client extends openapi_core_1.default {
|
|
|
2133
2143
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetDataAgentWorkspaceInfoResponse({}));
|
|
2134
2144
|
}
|
|
2135
2145
|
/**
|
|
2136
|
-
* Retrieves
|
|
2146
|
+
* Retrieves the details of a collaborative workspace.
|
|
2137
2147
|
*
|
|
2138
2148
|
* @param request - GetDataAgentWorkspaceInfoRequest
|
|
2139
2149
|
* @returns GetDataAgentWorkspaceInfoResponse
|
|
@@ -2494,6 +2504,66 @@ class Client extends openapi_core_1.default {
|
|
|
2494
2504
|
let runtime = new $dara.RuntimeOptions({});
|
|
2495
2505
|
return await this.getNotebookTaskStatusWithOptions(request, runtime);
|
|
2496
2506
|
}
|
|
2507
|
+
/**
|
|
2508
|
+
* Queries the operation logs of the SQL window.
|
|
2509
|
+
*
|
|
2510
|
+
* @param request - GetSqlConsoleOperationLogRequest
|
|
2511
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2512
|
+
* @returns GetSqlConsoleOperationLogResponse
|
|
2513
|
+
*/
|
|
2514
|
+
async getSqlConsoleOperationLogWithOptions(request, runtime) {
|
|
2515
|
+
request.validate();
|
|
2516
|
+
let query = {};
|
|
2517
|
+
if (!$dara.isNull(request.endTime)) {
|
|
2518
|
+
query["EndTime"] = request.endTime;
|
|
2519
|
+
}
|
|
2520
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
2521
|
+
query["InstanceId"] = request.instanceId;
|
|
2522
|
+
}
|
|
2523
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
2524
|
+
query["PageNumber"] = request.pageNumber;
|
|
2525
|
+
}
|
|
2526
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
2527
|
+
query["PageSize"] = request.pageSize;
|
|
2528
|
+
}
|
|
2529
|
+
if (!$dara.isNull(request.schema)) {
|
|
2530
|
+
query["Schema"] = request.schema;
|
|
2531
|
+
}
|
|
2532
|
+
if (!$dara.isNull(request.sqlType)) {
|
|
2533
|
+
query["SqlType"] = request.sqlType;
|
|
2534
|
+
}
|
|
2535
|
+
if (!$dara.isNull(request.startTime)) {
|
|
2536
|
+
query["StartTime"] = request.startTime;
|
|
2537
|
+
}
|
|
2538
|
+
if (!$dara.isNull(request.username)) {
|
|
2539
|
+
query["Username"] = request.username;
|
|
2540
|
+
}
|
|
2541
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2542
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2543
|
+
});
|
|
2544
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2545
|
+
action: "GetSqlConsoleOperationLog",
|
|
2546
|
+
version: "2025-04-14",
|
|
2547
|
+
protocol: "HTTPS",
|
|
2548
|
+
pathname: "/",
|
|
2549
|
+
method: "POST",
|
|
2550
|
+
authType: "AK",
|
|
2551
|
+
style: "RPC",
|
|
2552
|
+
reqBodyType: "formData",
|
|
2553
|
+
bodyType: "json",
|
|
2554
|
+
});
|
|
2555
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetSqlConsoleOperationLogResponse({}));
|
|
2556
|
+
}
|
|
2557
|
+
/**
|
|
2558
|
+
* Queries the operation logs of the SQL window.
|
|
2559
|
+
*
|
|
2560
|
+
* @param request - GetSqlConsoleOperationLogRequest
|
|
2561
|
+
* @returns GetSqlConsoleOperationLogResponse
|
|
2562
|
+
*/
|
|
2563
|
+
async getSqlConsoleOperationLog(request) {
|
|
2564
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2565
|
+
return await this.getSqlConsoleOperationLogWithOptions(request, runtime);
|
|
2566
|
+
}
|
|
2497
2567
|
/**
|
|
2498
2568
|
* Reads the content of a code file in the workspace and returns the file content along with mtime (in the header).
|
|
2499
2569
|
*
|
|
@@ -2786,7 +2856,7 @@ class Client extends openapi_core_1.default {
|
|
|
2786
2856
|
return await this.listCustomAgentWithOptions(request, runtime);
|
|
2787
2857
|
}
|
|
2788
2858
|
/**
|
|
2789
|
-
*
|
|
2859
|
+
* Retrieves the list of historical session descriptions for a Data Agent.
|
|
2790
2860
|
*
|
|
2791
2861
|
* @param request - ListDataAgentSessionRequest
|
|
2792
2862
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2810,6 +2880,9 @@ class Client extends openapi_core_1.default {
|
|
|
2810
2880
|
if (!$dara.isNull(request.isSaved)) {
|
|
2811
2881
|
query["IsSaved"] = request.isSaved;
|
|
2812
2882
|
}
|
|
2883
|
+
if (!$dara.isNull(request.mode)) {
|
|
2884
|
+
query["Mode"] = request.mode;
|
|
2885
|
+
}
|
|
2813
2886
|
if (!$dara.isNull(request.pageNumber)) {
|
|
2814
2887
|
query["PageNumber"] = request.pageNumber;
|
|
2815
2888
|
}
|
|
@@ -2842,7 +2915,7 @@ class Client extends openapi_core_1.default {
|
|
|
2842
2915
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListDataAgentSessionResponse({}));
|
|
2843
2916
|
}
|
|
2844
2917
|
/**
|
|
2845
|
-
*
|
|
2918
|
+
* Retrieves the list of historical session descriptions for a Data Agent.
|
|
2846
2919
|
*
|
|
2847
2920
|
* @param request - ListDataAgentSessionRequest
|
|
2848
2921
|
* @returns ListDataAgentSessionResponse
|
|
@@ -2852,7 +2925,7 @@ class Client extends openapi_core_1.default {
|
|
|
2852
2925
|
return await this.listDataAgentSessionWithOptions(request, runtime);
|
|
2853
2926
|
}
|
|
2854
2927
|
/**
|
|
2855
|
-
* Retrieves
|
|
2928
|
+
* Retrieves the collaborative workspaces under the primary account with pagination.
|
|
2856
2929
|
*
|
|
2857
2930
|
* @param request - ListDataAgentWorkspaceRequest
|
|
2858
2931
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2905,7 +2978,7 @@ class Client extends openapi_core_1.default {
|
|
|
2905
2978
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListDataAgentWorkspaceResponse({}));
|
|
2906
2979
|
}
|
|
2907
2980
|
/**
|
|
2908
|
-
* Retrieves
|
|
2981
|
+
* Retrieves the collaborative workspaces under the primary account with pagination.
|
|
2909
2982
|
*
|
|
2910
2983
|
* @param request - ListDataAgentWorkspaceRequest
|
|
2911
2984
|
* @returns ListDataAgentWorkspaceResponse
|
|
@@ -4326,16 +4399,16 @@ class Client extends openapi_core_1.default {
|
|
|
4326
4399
|
return await this.saveWorkspaceCodeWithOptions(request, runtime);
|
|
4327
4400
|
}
|
|
4328
4401
|
/**
|
|
4329
|
-
*
|
|
4402
|
+
* Send a user message to a specified session or cancel the session.
|
|
4330
4403
|
*
|
|
4331
4404
|
* @remarks
|
|
4332
|
-
* ## Request
|
|
4333
|
-
* -
|
|
4334
|
-
* -
|
|
4335
|
-
* - The `reply_to` field
|
|
4405
|
+
* ## Request description
|
|
4406
|
+
* - `agent_id` and `session_id` are required fields.
|
|
4407
|
+
* - `message_type` defaults to `primary`. When you need to append information or cancel a session, set it to `additional` or `cancel`.
|
|
4408
|
+
* - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
|
|
4336
4409
|
* - When `message_type` is `additional`, the `question` field is required.
|
|
4337
|
-
* -
|
|
4338
|
-
* -
|
|
4410
|
+
* - `quoted_message` can be used to quote the content of the user\\"s previous message.
|
|
4411
|
+
* - Fields such as `data_source`, `dms_user`, `db_metadata`, and `session_config` are all optional, but provide more detailed context information.
|
|
4339
4412
|
*
|
|
4340
4413
|
* @param tmpReq - SendChatMessageRequest
|
|
4341
4414
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4354,6 +4427,9 @@ class Client extends openapi_core_1.default {
|
|
|
4354
4427
|
if (!$dara.isNull(tmpReq.sessionConfig)) {
|
|
4355
4428
|
request.sessionConfigShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sessionConfig, "SessionConfig", "json");
|
|
4356
4429
|
}
|
|
4430
|
+
if (!$dara.isNull(tmpReq.taskConfig)) {
|
|
4431
|
+
request.taskConfigShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.taskConfig, "TaskConfig", "json");
|
|
4432
|
+
}
|
|
4357
4433
|
let query = {};
|
|
4358
4434
|
if (!$dara.isNull(request.agentId)) {
|
|
4359
4435
|
query["AgentId"] = request.agentId;
|
|
@@ -4391,6 +4467,12 @@ class Client extends openapi_core_1.default {
|
|
|
4391
4467
|
if (!$dara.isNull(request.sessionId)) {
|
|
4392
4468
|
query["SessionId"] = request.sessionId;
|
|
4393
4469
|
}
|
|
4470
|
+
if (!$dara.isNull(request.taskConfigShrink)) {
|
|
4471
|
+
query["TaskConfig"] = request.taskConfigShrink;
|
|
4472
|
+
}
|
|
4473
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
4474
|
+
query["WorkspaceId"] = request.workspaceId;
|
|
4475
|
+
}
|
|
4394
4476
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4395
4477
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4396
4478
|
});
|
|
@@ -4408,16 +4490,16 @@ class Client extends openapi_core_1.default {
|
|
|
4408
4490
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SendChatMessageResponse({}));
|
|
4409
4491
|
}
|
|
4410
4492
|
/**
|
|
4411
|
-
*
|
|
4493
|
+
* Send a user message to a specified session or cancel the session.
|
|
4412
4494
|
*
|
|
4413
4495
|
* @remarks
|
|
4414
|
-
* ## Request
|
|
4415
|
-
* -
|
|
4416
|
-
* -
|
|
4417
|
-
* - The `reply_to` field
|
|
4496
|
+
* ## Request description
|
|
4497
|
+
* - `agent_id` and `session_id` are required fields.
|
|
4498
|
+
* - `message_type` defaults to `primary`. When you need to append information or cancel a session, set it to `additional` or `cancel`.
|
|
4499
|
+
* - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
|
|
4418
4500
|
* - When `message_type` is `additional`, the `question` field is required.
|
|
4419
|
-
* -
|
|
4420
|
-
* -
|
|
4501
|
+
* - `quoted_message` can be used to quote the content of the user\\"s previous message.
|
|
4502
|
+
* - Fields such as `data_source`, `dms_user`, `db_metadata`, and `session_config` are all optional, but provide more detailed context information.
|
|
4421
4503
|
*
|
|
4422
4504
|
* @param request - SendChatMessageRequest
|
|
4423
4505
|
* @returns SendChatMessageResponse
|