@alicloud/dms20250414 1.25.0 → 2.0.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.
@@ -5,13 +5,21 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class SendChatMessageRequestDataSourcePermissionTables extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The list of columns that are allowed to be queried in the current table. If this field is left empty, all columns can be queried. If this field is specified, SQL statements that exceed the allowed scope are blocked. For example, syntax such as SELECT * is blocked. To ensure the effectiveness of DataAgent analysis, avoid specifying columns that exceed the allowed scope in the prompts, knowledge, or instructions modules of DataAgent. Otherwise, SQL statements without the required permissions are generated and blocked, which reduces the analysis speed and effectiveness of DataAgent.
8
+ * The list of columns that are allowed for querying in the current table. If this field is left empty, all columns can be queried. If specified, SQL statements that exceed the allowed scope are blocked. For example, syntax such as SELECT * is blocked. To ensure DataAgent analysis effectiveness, avoid specifying columns beyond the allowed scope in the DataAgent prompts, knowledge, or instructions modules. Otherwise, unauthorized SQL statements may be generated and blocked, which reduces DataAgent analysis speed and effectiveness.
9
9
  */
10
10
  allowedColumns?: string[];
11
+ /**
12
+ * @remarks
13
+ * The list of columns that are not allowed for querying in the current table. If this field is left empty, all columns **can be queried**. If specified, SQL statements that exceed the allowed scope are blocked. For example, syntax such as SELECT * is blocked.
14
+ *
15
+ * If both the disallowed list and the allowed list are configured, the disallowed list takes higher priority. For example, if Table 1 has columns A, B, C, and D, and columns A and B are configured as not queryable while columns B and C are configured as queryable, the final result is that only column C is queryable.
16
+ *
17
+ * To ensure DataAgent analysis effectiveness, avoid specifying columns beyond the allowed scope in the DataAgent prompts, knowledge, or instructions modules. Otherwise, unauthorized SQL statements may be generated and blocked, which reduces DataAgent analysis speed and effectiveness.
18
+ */
11
19
  disallowedColumns?: string[];
12
20
  /**
13
21
  * @remarks
14
- * The required row filter condition for the current table. If this field is left empty, it is ignored. If this field is specified, all SQL statements involving this table are validated to check whether they carry the filter field and whether the WHERE condition meets the constraints. SQL statements that do not meet the constraints are rejected. Ensure the format of the validation conditions is correct.
22
+ * The required row filter condition for the current table. If this field is left empty, it is ignored. If specified, all SQL statements involving this table are validated to check whether they carry the filter field and whether the WHERE condition meets the constraints. SQL statements that do not meet the constraints are rejected. Ensure the validation condition format is correct.
15
23
  *
16
24
  * @example
17
25
  * region = \\"east\\"
@@ -19,7 +27,7 @@ export class SendChatMessageRequestDataSourcePermissionTables extends $dara.Mode
19
27
  requiredRowFilter?: string;
20
28
  /**
21
29
  * @remarks
22
- * The name of the table to which the permission constraint rule applies.
30
+ * The table name to which the permission constraint rule applies.
23
31
  *
24
32
  * @example
25
33
  * sample_table
@@ -99,7 +107,7 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
99
107
  dataSourceId?: string;
100
108
  /**
101
109
  * @remarks
102
- * The data source type. Valid values: `[remote_data_center, database]`, which indicate that the analysis is performed on a file or a database.
110
+ * The data source type. Valid values: `[remote_data_center, database]`, indicating that the analysis is performed on a file or a database.
103
111
  *
104
112
  * @example
105
113
  * remote_data_center
@@ -231,13 +239,21 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
231
239
  export class SendChatMessageRequestDataSourcesPermissionTables extends $dara.Model {
232
240
  /**
233
241
  * @remarks
234
- * The list of columns that are allowed to be queried in the current table. If this field is left empty, all columns can be queried. If this field is specified, SQL statements that exceed the allowed scope are blocked. For example, syntax such as SELECT * is blocked. To ensure the effectiveness of DataAgent analysis, avoid specifying columns that exceed the allowed scope in the prompts, knowledge, or instructions modules of DataAgent. Otherwise, SQL statements without the required permissions are generated and blocked, which reduces the analysis speed and effectiveness of DataAgent.
242
+ * The list of columns that are allowed for querying in the current table. If this field is left empty, all columns can be queried. If specified, SQL statements that exceed the allowed scope are blocked. For example, syntax such as SELECT * is blocked. To ensure DataAgent analysis effectiveness, avoid specifying columns beyond the allowed scope in the DataAgent prompts, knowledge, or instructions modules. Otherwise, unauthorized SQL statements may be generated and blocked, which reduces DataAgent analysis speed and effectiveness.
235
243
  */
236
244
  allowedColumns?: string[];
245
+ /**
246
+ * @remarks
247
+ * The list of columns that are not allowed for querying in the current table. If this field is left empty, all columns **can be queried**. If specified, SQL statements that exceed the allowed scope are blocked. For example, syntax such as SELECT * is blocked.
248
+ *
249
+ * If both the disallowed list and the allowed list are configured, the disallowed list takes higher priority. For example, if Table 1 has columns A, B, C, and D, and columns A and B are configured as not queryable while columns B and C are configured as queryable, the final result is that only column C is queryable.
250
+ *
251
+ * To ensure DataAgent analysis effectiveness, avoid specifying columns beyond the allowed scope in the DataAgent prompts, knowledge, or instructions modules. Otherwise, unauthorized SQL statements may be generated and blocked, which reduces DataAgent analysis speed and effectiveness.
252
+ */
237
253
  disallowedColumns?: string[];
238
254
  /**
239
255
  * @remarks
240
- * The required row filter condition for the current table. If this field is left empty, it is ignored. If this field is specified, all SQL statements involving this table are validated to check whether they carry the filter field and whether the WHERE condition meets the constraints. SQL statements that do not meet the constraints are rejected. Ensure the format of the validation conditions is correct.
256
+ * The required row filter condition for the current table. If this field is left empty, it is ignored. If specified, all SQL statements involving this table are validated to check whether they carry the filter field and whether the WHERE condition meets the constraints. SQL statements that do not meet the constraints are rejected. Ensure the validation condition format is correct.
241
257
  *
242
258
  * @example
243
259
  * region = \\"east\\"
@@ -245,7 +261,7 @@ export class SendChatMessageRequestDataSourcesPermissionTables extends $dara.Mod
245
261
  requiredRowFilter?: string;
246
262
  /**
247
263
  * @remarks
248
- * The name of the table to which the permission constraint rule applies.
264
+ * The table name to which the permission constraint rule applies.
249
265
  *
250
266
  * @example
251
267
  * sample_table
@@ -325,7 +341,7 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
325
341
  dataSourceId?: string;
326
342
  /**
327
343
  * @remarks
328
- * The data source type. Valid values: remote_data_center and database, which indicate that the analysis is performed on a file or a database.
344
+ * The data source type. Valid values: remote_data_center, database. These values indicate that the analysis is performed on a file or a database.
329
345
  *
330
346
  * @example
331
347
  * remote_data_center
@@ -457,9 +473,14 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
457
473
  export class SendChatMessageRequestSessionConfigPermissionConfig extends $dara.Model {
458
474
  /**
459
475
  * @remarks
460
- * The default behavior for unconfigured tables. Valid values:
461
- * - allow: Allow. This is the default value.
462
- * - deny: Deny.
476
+ * The default action for table-level permissions. This parameter controls whether tables that are not configured in DataSources.[item].Permission can be queried. Valid values: allow, deny.
477
+ *
478
+ * - allow (default): works in blacklist mode. By default, all tables can be queried, and the actual permissions are subject to the permissions configured on the Data Management side. Row-level and column-level permissions are enforced only when you configure **row-level and column-level** permissions in DataSources.[item].Permission.
479
+ *
480
+ * - deny (must be manually specified): works in whitelist mode. By default, no tables can be queried. A table can be queried only when you configure permissions for it in DataSources.[item].Permission. You can grant full access to a table by not configuring any row-level or column-level restrictions.
481
+ *
482
+ * @example
483
+ * allow
463
484
  */
464
485
  defaultAction?: string;
465
486
  static names(): { [key: string]: string } {
@@ -486,7 +507,7 @@ export class SendChatMessageRequestSessionConfigPermissionConfig extends $dara.M
486
507
  export class SendChatMessageRequestSessionConfig extends $dara.Model {
487
508
  /**
488
509
  * @remarks
489
- * The custom Agent ID. A custom Agent is an entity used to customize the analysis process. You can create one in the DataAgent console or by calling the CreateCustomAgent operation. The custom Agent ID is a string that starts with `ca-`.
510
+ * The custom agent ID. A custom agent is an entity used to customize the analysis process. You can create one in the DataAgent console or by calling the CreateCustomAgent operation. The custom agent ID is a string that starts with `ca-`.
490
511
  *
491
512
  * @example
492
513
  * ca-asfkjhqwe***aesrfqa
@@ -494,7 +515,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
494
515
  customAgentId?: string;
495
516
  /**
496
517
  * @remarks
497
- * The stage of the custom Agent.
518
+ * The stage of the custom agent.
498
519
  *
499
520
  * @example
500
521
  * null
@@ -507,7 +528,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
507
528
  * @example
508
529
  * false
509
530
  */
510
- enableSearch?: string;
531
+ enableSearch?: boolean;
511
532
  /**
512
533
  * @remarks
513
534
  * The list of knowledge base IDs.
@@ -515,7 +536,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
515
536
  * @example
516
537
  * dasd***cc211
517
538
  */
518
- kbUuidList?: string;
539
+ kbUuidList?: string[];
519
540
  /**
520
541
  * @remarks
521
542
  * Currently only Chinese and English are supported. The default value is Chinese. Only uppercase values are supported.
@@ -531,7 +552,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
531
552
  * @example
532
553
  * 2q1tu90**********6uttu2nw
533
554
  */
534
- mcpServerIds?: string;
555
+ mcpServerIds?: string[];
535
556
  /**
536
557
  * @remarks
537
558
  * The mode. Valid values:
@@ -545,12 +566,12 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
545
566
  mode?: string;
546
567
  /**
547
568
  * @remarks
548
- * The session-level permission configuration. This parameter specifies only the default behavior for unconfigured tables.
569
+ * The session level data permission settings. If this parameter is set multiple times across multiple turns within the same session, the last setting takes effect.
549
570
  */
550
571
  permissionConfig?: SendChatMessageRequestSessionConfigPermissionConfig;
551
572
  /**
552
573
  * @remarks
553
- * Specifies whether to enable the plan. Valid values: disable, enable, and force. Default value: enable.
574
+ * Specifies whether to enable the plan. Valid values: disable, enable, force. Default value: enable.
554
575
  *
555
576
  * @example
556
577
  * disable
@@ -596,6 +617,10 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
596
617
  * True
597
618
  */
598
619
  skipWebReportConfirm?: boolean;
620
+ /**
621
+ * @remarks
622
+ * The list of user-specified skills.
623
+ */
599
624
  userSpecifiedSkillList?: string[];
600
625
  static names(): { [key: string]: string } {
601
626
  return {
@@ -621,10 +646,10 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
621
646
  return {
622
647
  customAgentId: 'string',
623
648
  customAgentStage: 'string',
624
- enableSearch: 'string',
625
- kbUuidList: 'string',
649
+ enableSearch: 'boolean',
650
+ kbUuidList: { 'type': 'array', 'itemType': 'string' },
626
651
  language: 'string',
627
- mcpServerIds: 'string',
652
+ mcpServerIds: { 'type': 'array', 'itemType': 'string' },
628
653
  mode: 'string',
629
654
  permissionConfig: SendChatMessageRequestSessionConfigPermissionConfig,
630
655
  planMode: 'string',
@@ -638,6 +663,12 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
638
663
  }
639
664
 
640
665
  validate() {
666
+ if(Array.isArray(this.kbUuidList)) {
667
+ $dara.Model.validateArray(this.kbUuidList);
668
+ }
669
+ if(Array.isArray(this.mcpServerIds)) {
670
+ $dara.Model.validateArray(this.mcpServerIds);
671
+ }
641
672
  if(this.permissionConfig && typeof (this.permissionConfig as any).validate === 'function') {
642
673
  (this.permissionConfig as any).validate();
643
674
  }
@@ -671,7 +702,7 @@ export class SendChatMessageRequestTaskConfigReportConfig extends $dara.Model {
671
702
  reportTheme?: string;
672
703
  /**
673
704
  * @remarks
674
- * The service type. Valid values: TextReport and WebReport, which indicate that the task generates a text report or a web report. Currently only WebReport is supported.
705
+ * The service type. Valid values: TextReport and WebReport, which indicate that the task generates a text report or a web report. Currently, only WebReport is supported.
675
706
  *
676
707
  * @example
677
708
  * WebReport
@@ -705,7 +736,7 @@ export class SendChatMessageRequestTaskConfigReportConfig extends $dara.Model {
705
736
  export class SendChatMessageRequestTaskConfig extends $dara.Model {
706
737
  /**
707
738
  * @remarks
708
- * The report rule configuration. Only when MessageType is REPORT, a report task is executed based on this configuration.
739
+ * The configuration of the report rule. Only when MesageType is set to REPORT, a report task is executed based on this configuration.
709
740
  */
710
741
  reportConfig?: SendChatMessageRequestTaskConfigReportConfig;
711
742
  static names(): { [key: string]: string } {
@@ -735,7 +766,7 @@ export class SendChatMessageRequestTaskConfig extends $dara.Model {
735
766
  export class SendChatMessageRequest extends $dara.Model {
736
767
  /**
737
768
  * @remarks
738
- * **[Deprecated]** This field is now automatically obtained by the backend. You do not need to specify this field.
769
+ * **[Optimized]** This field is now automatically obtained by the backend. You do not need to specify this field.
739
770
  *
740
771
  * @example
741
772
  * agent_***
@@ -743,7 +774,7 @@ export class SendChatMessageRequest extends $dara.Model {
743
774
  agentId?: string;
744
775
  /**
745
776
  * @remarks
746
- * **[Deprecated]** This field is now automatically obtained by the backend. You do not need to specify this field when calling the API.
777
+ * **[Optimized]** This field is now automatically obtained by the backend. You do not need to specify this field when calling the API.
747
778
  *
748
779
  * @example
749
780
  * cn-hangzhou
@@ -764,7 +795,7 @@ export class SendChatMessageRequest extends $dara.Model {
764
795
  dataSources?: SendChatMessageRequestDataSources[];
765
796
  /**
766
797
  * @remarks
767
- * The content of the message to send to the Agent.
798
+ * The message content to send to the Agent.
768
799
  *
769
800
  * This parameter is required.
770
801
  *
@@ -778,11 +809,11 @@ export class SendChatMessageRequest extends $dara.Model {
778
809
  *
779
810
  * - For regular interactions with the Agent, set the message type to `[primary]`.
780
811
  *
781
- * - When the message is a response to the Agent\\"s human-in-the-loop question, set the type to `[additional]`.
812
+ * - When the message is a response to the Agent\\"s Human-in-Loop question, set the type to `[additional]`.
782
813
  *
783
- * - When the message triggers a report generation, set the type to `[report]`.
814
+ * - When the message is intended to trigger report generation, set the type to `[report]`.
784
815
  *
785
- * - When the message cancels the current session, set the type to `[cancel]`.
816
+ * - When the message is intended to cancel the current session, set the type to `[cancel]`.
786
817
  *
787
818
  * @example
788
819
  * primary
@@ -798,7 +829,7 @@ export class SendChatMessageRequest extends $dara.Model {
798
829
  parentSessionId?: string;
799
830
  /**
800
831
  * @remarks
801
- * This field is required when the message type is `additional`. Specify the specific question that the Agent asks the user through the human-in-the-loop mechanism.
832
+ * This field is required when the message type is `additional`. Specify the specific question that the Agent asks the user through Human-in-Loop.
802
833
  *
803
834
  * @example
804
835
  * Provide the criteria for calculating GMV
@@ -816,9 +847,9 @@ export class SendChatMessageRequest extends $dara.Model {
816
847
  * @remarks
817
848
  * **Important**
818
849
  *
819
- * When this message is a reply to an Agent message (for example, the Agent asks a clarifying question through ASK_HUMAN), set reply_to to the exact Checkpoint sequence number carried in that Agent message. If this message is not a targeted reply, such as requesting the Agent to perform further in-depth analysis after the analysis is complete, leave reply_to empty or set it to "0".
850
+ * When this message is a reply to an Agent message (for example, the Agent asks a clarifying question through ASK_HUMAN), set reply_to to the exact Checkpoint sequence number carried in that Agent message. If this message is not a targeted reply, such as requesting the Agent to perform further in-depth analysis after analysis is complete, you can leave reply_to empty or set it to "0".
820
851
  *
821
- * This field affects how the Agent decides to process the message. Passing an incorrect value may cause the analysis results to be less effective than expected.
852
+ * This field affects how the Agent decides to process the message. Incorrect values may lead to analysis results that do not meet expectations.
822
853
  *
823
854
  * @example
824
855
  * 0
@@ -834,10 +865,10 @@ export class SendChatMessageRequest extends $dara.Model {
834
865
  sessionConfig?: SendChatMessageRequestSessionConfig;
835
866
  /**
836
867
  * @remarks
837
- * The session ID. This is an optional field used for multi-turn conversations.
838
- * - You can start a session without specifying this field. The response includes the SessionID for the current session.
868
+ * The session ID. This is an optional field used for multi-turn sessions.
869
+ * - You can start a session without specifying this field. The response includes the SessionID of the current session.
839
870
  * - You can also manually create a session ID by calling the CreateDataAgentSession operation and include the ID when initiating a session.
840
- * - If you need multi-turn conversations (such as follow-up questions or confirming execution plans), include the SessionID returned by the previous SendChatMessage call.
871
+ * - For multi-turn conversations (such as follow-up questions or confirming execution plans), specify the SessionID returned by the previous SendChatMessage call.
841
872
  *
842
873
  * @example
843
874
  * sess_***
@@ -850,7 +881,7 @@ export class SendChatMessageRequest extends $dara.Model {
850
881
  taskConfig?: SendChatMessageRequestTaskConfig;
851
882
  /**
852
883
  * @remarks
853
- * The OSS bucket of the user. If this field is left empty, the analysis data is securely stored in the built-in storage.
884
+ * The OSS bucket of the user. If this parameter is not specified, the analysis data is securely stored in built-in storage.
854
885
  *
855
886
  * @example
856
887
  * my-bucket
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class SendChatMessageShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * **[Deprecated]** This field is now automatically obtained by the backend. You do not need to specify this field.
8
+ * **[Optimized]** This field is now automatically obtained by the backend. You do not need to specify this field.
9
9
  *
10
10
  * @example
11
11
  * agent_***
@@ -13,7 +13,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
13
13
  agentId?: string;
14
14
  /**
15
15
  * @remarks
16
- * **[Deprecated]** This field is now automatically obtained by the backend. You do not need to specify this field when calling the API.
16
+ * **[Optimized]** This field is now automatically obtained by the backend. You do not need to specify this field when calling the API.
17
17
  *
18
18
  * @example
19
19
  * cn-hangzhou
@@ -34,7 +34,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
34
34
  dataSourcesShrink?: string;
35
35
  /**
36
36
  * @remarks
37
- * The content of the message to send to the Agent.
37
+ * The message content to send to the Agent.
38
38
  *
39
39
  * This parameter is required.
40
40
  *
@@ -48,11 +48,11 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
48
48
  *
49
49
  * - For regular interactions with the Agent, set the message type to `[primary]`.
50
50
  *
51
- * - When the message is a response to the Agent\\"s human-in-the-loop question, set the type to `[additional]`.
51
+ * - When the message is a response to the Agent\\"s Human-in-Loop question, set the type to `[additional]`.
52
52
  *
53
- * - When the message triggers a report generation, set the type to `[report]`.
53
+ * - When the message is intended to trigger report generation, set the type to `[report]`.
54
54
  *
55
- * - When the message cancels the current session, set the type to `[cancel]`.
55
+ * - When the message is intended to cancel the current session, set the type to `[cancel]`.
56
56
  *
57
57
  * @example
58
58
  * primary
@@ -68,7 +68,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
68
68
  parentSessionId?: string;
69
69
  /**
70
70
  * @remarks
71
- * This field is required when the message type is `additional`. Specify the specific question that the Agent asks the user through the human-in-the-loop mechanism.
71
+ * This field is required when the message type is `additional`. Specify the specific question that the Agent asks the user through Human-in-Loop.
72
72
  *
73
73
  * @example
74
74
  * Provide the criteria for calculating GMV
@@ -86,9 +86,9 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
86
86
  * @remarks
87
87
  * **Important**
88
88
  *
89
- * When this message is a reply to an Agent message (for example, the Agent asks a clarifying question through ASK_HUMAN), set reply_to to the exact Checkpoint sequence number carried in that Agent message. If this message is not a targeted reply, such as requesting the Agent to perform further in-depth analysis after the analysis is complete, leave reply_to empty or set it to "0".
89
+ * When this message is a reply to an Agent message (for example, the Agent asks a clarifying question through ASK_HUMAN), set reply_to to the exact Checkpoint sequence number carried in that Agent message. If this message is not a targeted reply, such as requesting the Agent to perform further in-depth analysis after analysis is complete, you can leave reply_to empty or set it to "0".
90
90
  *
91
- * This field affects how the Agent decides to process the message. Passing an incorrect value may cause the analysis results to be less effective than expected.
91
+ * This field affects how the Agent decides to process the message. Incorrect values may lead to analysis results that do not meet expectations.
92
92
  *
93
93
  * @example
94
94
  * 0
@@ -104,10 +104,10 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
104
104
  sessionConfigShrink?: string;
105
105
  /**
106
106
  * @remarks
107
- * The session ID. This is an optional field used for multi-turn conversations.
108
- * - You can start a session without specifying this field. The response includes the SessionID for the current session.
107
+ * The session ID. This is an optional field used for multi-turn sessions.
108
+ * - You can start a session without specifying this field. The response includes the SessionID of the current session.
109
109
  * - You can also manually create a session ID by calling the CreateDataAgentSession operation and include the ID when initiating a session.
110
- * - If you need multi-turn conversations (such as follow-up questions or confirming execution plans), include the SessionID returned by the previous SendChatMessage call.
110
+ * - For multi-turn conversations (such as follow-up questions or confirming execution plans), specify the SessionID returned by the previous SendChatMessage call.
111
111
  *
112
112
  * @example
113
113
  * sess_***
@@ -120,7 +120,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
120
120
  taskConfigShrink?: string;
121
121
  /**
122
122
  * @remarks
123
- * The OSS bucket of the user. If this field is left empty, the analysis data is securely stored in the built-in storage.
123
+ * The OSS bucket of the user. If this parameter is not specified, the analysis data is securely stored in built-in storage.
124
124
  *
125
125
  * @example
126
126
  * my-bucket