@alicloud/dms20250414 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/client.d.ts +6 -6
  2. package/dist/client.js +6 -6
  3. package/dist/models/CreateAgentRequest.d.ts +26 -0
  4. package/dist/models/CreateAgentRequest.js.map +1 -1
  5. package/dist/models/CreateAgentResponseBody.d.ts +191 -0
  6. package/dist/models/CreateAgentResponseBody.js.map +1 -1
  7. package/dist/models/CreateDataAgentSessionRequest.d.ts +64 -7
  8. package/dist/models/CreateDataAgentSessionRequest.js +51 -1
  9. package/dist/models/CreateDataAgentSessionRequest.js.map +1 -1
  10. package/dist/models/CreateDataAgentSessionResponseBody.d.ts +9 -10
  11. package/dist/models/CreateDataAgentSessionResponseBody.js.map +1 -1
  12. package/dist/models/GetDataAgentThemeUploadSignatureRequest.d.ts +1 -1
  13. package/dist/models/GetDataAgentThemeUploadSignatureResponseBody.d.ts +5 -5
  14. package/dist/models/ModifyDataAgentThemeRequest.d.ts +3 -3
  15. package/dist/models/ModifyDataAgentThemeResponseBody.d.ts +2 -2
  16. package/dist/models/model.d.ts +2 -0
  17. package/dist/models/model.js +20 -16
  18. package/dist/models/model.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/client.ts +6 -6
  21. package/src/models/CreateAgentRequest.ts +26 -0
  22. package/src/models/CreateAgentResponseBody.ts +191 -0
  23. package/src/models/CreateDataAgentSessionRequest.ts +96 -7
  24. package/src/models/CreateDataAgentSessionResponseBody.ts +9 -10
  25. package/src/models/GetDataAgentThemeUploadSignatureRequest.ts +1 -1
  26. package/src/models/GetDataAgentThemeUploadSignatureResponseBody.ts +5 -5
  27. package/src/models/ModifyDataAgentThemeRequest.ts +3 -3
  28. package/src/models/ModifyDataAgentThemeResponseBody.ts +2 -2
  29. package/src/models/model.ts +2 -0
@@ -3,20 +3,122 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class CreateAgentResponseBodyDataApiKey extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the agent to which the API key belongs.
9
+ *
10
+ * @example
11
+ * agt-1a2b3c4d5e6f
12
+ */
6
13
  agentId?: string;
14
+ /**
15
+ * @remarks
16
+ * The name of the agent to which the API key belongs.
17
+ *
18
+ * @example
19
+ * order-analysis-agent
20
+ */
7
21
  agentName?: string;
22
+ /**
23
+ * @remarks
24
+ * The permission inheritance type of the agent to which the API key belongs.
25
+ *
26
+ * @example
27
+ * HUMAN_BOUND
28
+ */
8
29
  agentType?: string;
30
+ /**
31
+ * @remarks
32
+ * The time when the API key was created. The value is a time string in RFC 3339 format.
33
+ *
34
+ * @example
35
+ * 2025-12-11T14:04:32Z
36
+ */
9
37
  createdAt?: string;
38
+ /**
39
+ * @remarks
40
+ * The user ID of the user who created the API key.
41
+ *
42
+ * @example
43
+ * usr-1a2b3c4d
44
+ */
10
45
  creatorId?: string;
46
+ /**
47
+ * @remarks
48
+ * The name of the user who created the API key.
49
+ *
50
+ * @example
51
+ * John Doe
52
+ */
11
53
  creatorName?: string;
54
+ /**
55
+ * @remarks
56
+ * The description of the API key.
57
+ *
58
+ * @example
59
+ * Access Token automatically issued when the Agent is created
60
+ */
12
61
  description?: string;
62
+ /**
63
+ * @remarks
64
+ * The expiration time of the API key. The value is a time string in RFC 3339 format.
65
+ *
66
+ * @example
67
+ * 2026-12-11T14:04:32Z
68
+ */
13
69
  expireTime?: string;
70
+ /**
71
+ * @remarks
72
+ * The primary key ID of the API key.
73
+ *
74
+ * @example
75
+ * 1001
76
+ */
14
77
  id?: number;
78
+ /**
79
+ * @remarks
80
+ * Indicates whether the API key has been revoked.
81
+ */
15
82
  isRevoked?: boolean;
83
+ /**
84
+ * @remarks
85
+ * The non-sensitive visible prefix of the API key plaintext, used to identify the credential. The plaintext secret is not returned again.
86
+ *
87
+ * @example
88
+ * dms_sk_1a2b
89
+ */
16
90
  keyPrefix?: string;
91
+ /**
92
+ * @remarks
93
+ * The time when the API key was last used. The value is a time string in RFC 3339 format. This parameter is empty if the API key has never been used.
94
+ *
95
+ * @example
96
+ * 2025-12-12T09:30:00Z
97
+ */
17
98
  lastUsedTime?: string;
99
+ /**
100
+ * @remarks
101
+ * The name of the API key.
102
+ *
103
+ * @example
104
+ * order-analysis-agent-default
105
+ */
18
106
  name?: string;
107
+ /**
108
+ * @remarks
109
+ * The plaintext secret of the API key. This value is returned only once in this creation response. Store it securely. Subsequent API calls do not return the plaintext secret again.
110
+ *
111
+ * @example
112
+ * dms_sk_1a2b3c4d****
113
+ */
19
114
  secret?: string;
115
+ /**
116
+ * @remarks
117
+ * The credential source. Valid values: console (issued from the console), oauth (issued through the OAuth flow), install_token (issued through the install-and-authenticate flow). The API key automatically issued by this operation is always console.
118
+ *
119
+ * @example
120
+ * console
121
+ */
20
122
  source?: string;
21
123
  static names(): { [key: string]: string } {
22
124
  return {
@@ -68,14 +170,74 @@ export class CreateAgentResponseBodyDataApiKey extends $dara.Model {
68
170
  }
69
171
 
70
172
  export class CreateAgentResponseBodyData extends $dara.Model {
173
+ /**
174
+ * @remarks
175
+ * The globally unique ID of the agent.
176
+ *
177
+ * @example
178
+ * agt-1a2b3c4d5e6f
179
+ */
71
180
  agentId?: string;
181
+ /**
182
+ * @remarks
183
+ * The agent name.
184
+ *
185
+ * @example
186
+ * order-analysis-agent
187
+ */
72
188
  agentName?: string;
189
+ /**
190
+ * @remarks
191
+ * The permission inheritance type of the agent. Valid values: HUMAN_BOUND (inherits user permissions), PERMISSION_NARROW (narrows permissions), STANDALONE (operates as an independent identity principal without inheriting permissions from other principals).
192
+ *
193
+ * @example
194
+ * HUMAN_BOUND
195
+ */
73
196
  agentType?: string;
197
+ /**
198
+ * @remarks
199
+ * The automatically issued API key for the new agent. The plaintext secret is returned only once in this response.
200
+ */
74
201
  apiKey?: CreateAgentResponseBodyDataApiKey;
202
+ /**
203
+ * @remarks
204
+ * The time when the agent was created. The value is a time string in RFC 3339 format.
205
+ *
206
+ * @example
207
+ * 2025-12-11T14:04:32Z
208
+ */
75
209
  createdAt?: string;
210
+ /**
211
+ * @remarks
212
+ * The creation method of the agent. Valid values: manual (manually created in the console), auto (automatic creation by the system). Agents created by this operation are always manual.
213
+ *
214
+ * @example
215
+ * manual
216
+ */
76
217
  creationType?: string;
218
+ /**
219
+ * @remarks
220
+ * The description of the agent.
221
+ *
222
+ * @example
223
+ * An agent for querying and analyzing order data
224
+ */
77
225
  description?: string;
226
+ /**
227
+ * @remarks
228
+ * The user ID of the agent owner, which is the current user who initiated the creation request.
229
+ *
230
+ * @example
231
+ * usr-1a2b3c4d
232
+ */
78
233
  ownerId?: string;
234
+ /**
235
+ * @remarks
236
+ * The status of the agent. Valid values: active (enabled), disabled (disabled), deleted (deleted). A newly created agent is always active.
237
+ *
238
+ * @example
239
+ * active
240
+ */
79
241
  status?: string;
80
242
  static names(): { [key: string]: string } {
81
243
  return {
@@ -118,10 +280,39 @@ export class CreateAgentResponseBodyData extends $dara.Model {
118
280
  }
119
281
 
120
282
  export class CreateAgentResponseBody extends $dara.Model {
283
+ /**
284
+ * @remarks
285
+ * The agent information and the automatically issued API key returned after the agent is created.
286
+ */
121
287
  data?: CreateAgentResponseBodyData;
288
+ /**
289
+ * @remarks
290
+ * The status code of the request result. A value of success indicates success. A specific error code is returned upon failure.
291
+ *
292
+ * @example
293
+ * success
294
+ */
122
295
  errorCode?: string;
296
+ /**
297
+ * @remarks
298
+ * The error message returned when the request fails. This parameter is empty when the request succeeds.
299
+ *
300
+ * @example
301
+ * agentName must not be blank
302
+ */
123
303
  errorMessage?: string;
304
+ /**
305
+ * @remarks
306
+ * The unique ID of the request. You can use this ID for troubleshooting and tracing.
307
+ *
308
+ * @example
309
+ * 67E910F2-4B62-5B0C-ACA3-7547695C****
310
+ */
124
311
  requestId?: string;
312
+ /**
313
+ * @remarks
314
+ * Indicates whether the request was successful.
315
+ */
125
316
  success?: boolean;
126
317
  static names(): { [key: string]: string } {
127
318
  return {
@@ -2,6 +2,86 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class CreateDataAgentSessionRequestSessionConfigMcpHeadersMcpHeader extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The key to add to the header.
9
+ *
10
+ * @example
11
+ * UserId
12
+ */
13
+ key?: string;
14
+ /**
15
+ * @remarks
16
+ * The value to add to the header.
17
+ *
18
+ * @example
19
+ * 421****571
20
+ */
21
+ value?: string;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ key: 'Key',
25
+ value: 'Value',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ key: 'string',
32
+ value: 'string',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class CreateDataAgentSessionRequestSessionConfigMcpHeaders extends $dara.Model {
46
+ /**
47
+ * @remarks
48
+ * The MCP header configuration.
49
+ */
50
+ mcpHeader?: CreateDataAgentSessionRequestSessionConfigMcpHeadersMcpHeader[];
51
+ /**
52
+ * @remarks
53
+ * The ID of the MCP server.
54
+ *
55
+ * @example
56
+ * 1fl4r*****1qi
57
+ */
58
+ mcpServerId?: string;
59
+ static names(): { [key: string]: string } {
60
+ return {
61
+ mcpHeader: 'McpHeader',
62
+ mcpServerId: 'McpServerId',
63
+ };
64
+ }
65
+
66
+ static types(): { [key: string]: any } {
67
+ return {
68
+ mcpHeader: { 'type': 'array', 'itemType': CreateDataAgentSessionRequestSessionConfigMcpHeadersMcpHeader },
69
+ mcpServerId: 'string',
70
+ };
71
+ }
72
+
73
+ validate() {
74
+ if(Array.isArray(this.mcpHeader)) {
75
+ $dara.Model.validateArray(this.mcpHeader);
76
+ }
77
+ super.validate();
78
+ }
79
+
80
+ constructor(map?: { [key: string]: any }) {
81
+ super(map);
82
+ }
83
+ }
84
+
5
85
  export class CreateDataAgentSessionRequestSessionConfig extends $dara.Model {
6
86
  /**
7
87
  * @remarks
@@ -14,8 +94,8 @@ export class CreateDataAgentSessionRequestSessionConfig extends $dara.Model {
14
94
  /**
15
95
  * @remarks
16
96
  * The stage of the custom agent. Valid values:
17
- * - **debug**: Debug stage.
18
- * - **prod**: Production stage.
97
+ * - **debug**: the debugging stage.
98
+ * - **prod**: the production stage.
19
99
  *
20
100
  * @example
21
101
  * debug
@@ -60,6 +140,11 @@ export class CreateDataAgentSessionRequestSessionConfig extends $dara.Model {
60
140
  * CHINESE
61
141
  */
62
142
  language?: string;
143
+ /**
144
+ * @remarks
145
+ * The list of MCP header configurations.
146
+ */
147
+ mcpHeaders?: CreateDataAgentSessionRequestSessionConfigMcpHeaders[];
63
148
  /**
64
149
  * @remarks
65
150
  * The list of MCP server IDs in the session configuration.
@@ -68,9 +153,9 @@ export class CreateDataAgentSessionRequestSessionConfig extends $dara.Model {
68
153
  /**
69
154
  * @remarks
70
155
  * The mode. Valid values:
71
- * - **ASK_DATA**: Ask data mode.
72
- * - **ANALYSIS**: Analysis mode.
73
- * - **INSIGHT**: Insight mode.
156
+ * - **ASK_DATA**: the data query mode.
157
+ * - **ANALYSIS**: the analysis mode.
158
+ * - **INSIGHT**: the insight mode.
74
159
  *
75
160
  * @example
76
161
  * ANALYSIS
@@ -94,8 +179,7 @@ export class CreateDataAgentSessionRequestSessionConfig extends $dara.Model {
94
179
  reportWaterMark?: string;
95
180
  /**
96
181
  * @remarks
97
- * The name of the user OSS bucket.
98
- * - Analysis process files and report artifacts can be uploaded to the specified OSS bucket.
182
+ * The name of the user OSS bucket. Analysis process files and report artifacts can be uploaded to the specified OSS bucket.
99
183
  *
100
184
  * @example
101
185
  * user-oss-bucket
@@ -110,6 +194,7 @@ export class CreateDataAgentSessionRequestSessionConfig extends $dara.Model {
110
194
  encryptType: 'EncryptType',
111
195
  kbUuidList: 'KbUuidList',
112
196
  language: 'Language',
197
+ mcpHeaders: 'McpHeaders',
113
198
  mcpServerIds: 'McpServerIds',
114
199
  mode: 'Mode',
115
200
  reportPageWidth: 'ReportPageWidth',
@@ -127,6 +212,7 @@ export class CreateDataAgentSessionRequestSessionConfig extends $dara.Model {
127
212
  encryptType: 'string',
128
213
  kbUuidList: { 'type': 'array', 'itemType': 'string' },
129
214
  language: 'string',
215
+ mcpHeaders: { 'type': 'array', 'itemType': CreateDataAgentSessionRequestSessionConfigMcpHeaders },
130
216
  mcpServerIds: { 'type': 'array', 'itemType': 'string' },
131
217
  mode: 'string',
132
218
  reportPageWidth: 'number',
@@ -139,6 +225,9 @@ export class CreateDataAgentSessionRequestSessionConfig extends $dara.Model {
139
225
  if(Array.isArray(this.kbUuidList)) {
140
226
  $dara.Model.validateArray(this.kbUuidList);
141
227
  }
228
+ if(Array.isArray(this.mcpHeaders)) {
229
+ $dara.Model.validateArray(this.mcpHeaders);
230
+ }
142
231
  if(Array.isArray(this.mcpServerIds)) {
143
232
  $dara.Model.validateArray(this.mcpServerIds);
144
233
  }
@@ -14,8 +14,8 @@ export class CreateDataAgentSessionResponseBodyDataSessionConfig extends $dara.M
14
14
  /**
15
15
  * @remarks
16
16
  * The stage of the custom agent. Valid values:
17
- * - **debug**: Debug stage.
18
- * - **prod**: Production stage.
17
+ * - **debug**: the debugging stage.
18
+ * - **prod**: the production stage.
19
19
  *
20
20
  * @example
21
21
  * debug
@@ -68,9 +68,9 @@ export class CreateDataAgentSessionResponseBodyDataSessionConfig extends $dara.M
68
68
  /**
69
69
  * @remarks
70
70
  * The mode. Valid values:
71
- * - **ASK_DATA**: Ask data mode.
72
- * - **ANALYSIS**: Analysis mode.
73
- * - **INSIGHT**: Insight mode.
71
+ * - **ASK_DATA**: the data query mode.
72
+ * - **ANALYSIS**: the analysis mode.
73
+ * - **INSIGHT**: the insight mode.
74
74
  *
75
75
  * @example
76
76
  * ANALYSIS
@@ -94,8 +94,7 @@ export class CreateDataAgentSessionResponseBodyDataSessionConfig extends $dara.M
94
94
  reportWaterMark?: string;
95
95
  /**
96
96
  * @remarks
97
- * The name of the user OSS bucket.
98
- * - Analysis process files and report artifacts can be uploaded to the specified OSS bucket.
97
+ * The name of the user OSS bucket. Analysis process files and report artifacts can be uploaded to the specified OSS bucket.
99
98
  *
100
99
  * @example
101
100
  * user-oss-bucket
@@ -169,7 +168,7 @@ export class CreateDataAgentSessionResponseBodyData extends $dara.Model {
169
168
  agentStatus?: string;
170
169
  /**
171
170
  * @remarks
172
- * The time when the session was created.
171
+ * The creation time of the session.
173
172
  *
174
173
  * @example
175
174
  * 1765262307992
@@ -177,7 +176,7 @@ export class CreateDataAgentSessionResponseBodyData extends $dara.Model {
177
176
  createTime?: number;
178
177
  /**
179
178
  * @remarks
180
- * The basic information about the file.
179
+ * The basic information of the file.
181
180
  *
182
181
  * @example
183
182
  * f-8*******01m
@@ -276,7 +275,7 @@ export class CreateDataAgentSessionResponseBody extends $dara.Model {
276
275
  errorCode?: string;
277
276
  /**
278
277
  * @remarks
279
- * The error message returned when the request failed.
278
+ * The error message returned if the request failed.
280
279
  *
281
280
  * @example
282
281
  * UnknownError
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class GetDataAgentThemeUploadSignatureRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The theme UUID. By default, you do not need to specify this parameter because the backend automatically generates and returns a UUID. Specify this parameter to regenerate a signature only when the previous signature has expired.
8
+ * The UUID of the theme. By default, you do not need to specify this parameter because the backend automatically generates and returns a UUID. Specify this parameter to regenerate the signature only when the previous signature has expired.
9
9
  *
10
10
  * @example
11
11
  * 0f8b2c1d-****-****-****-9a3e5f7b1c2d
@@ -13,7 +13,7 @@ export class GetDataAgentThemeUploadSignatureResponseBodyData extends $dara.Mode
13
13
  expireTime?: string;
14
14
  /**
15
15
  * @remarks
16
- * The target object key, which is exactly locked by the policy.
16
+ * The target object key that is exactly locked by the policy.
17
17
  */
18
18
  objectKey?: string;
19
19
  /**
@@ -63,7 +63,7 @@ export class GetDataAgentThemeUploadSignatureResponseBodyData extends $dara.Mode
63
63
  policy?: string;
64
64
  /**
65
65
  * @remarks
66
- * The theme business identifier generated or reused for this request. Pass this identifier to the CreateDataAgentTheme operation after the upload is complete to register the metadata.
66
+ * The theme business ID generated or reused for this request. After the upload is complete, pass this ID to the CreateDataAgentTheme operation to register the metadata.
67
67
  *
68
68
  * @example
69
69
  * 0f8b2c1d****a3e5f7b1c2d
@@ -76,7 +76,7 @@ export class GetDataAgentThemeUploadSignatureResponseBodyData extends $dara.Mode
76
76
  uploadDir?: string;
77
77
  /**
78
78
  * @remarks
79
- * The PostObject destination address over the public network.
79
+ * The PostObject target address over the public network.
80
80
  *
81
81
  * @example
82
82
  * https://**********.oss-cn-hangzhou.aliyuncs.com
@@ -131,7 +131,7 @@ export class GetDataAgentThemeUploadSignatureResponseBody extends $dara.Model {
131
131
  data?: GetDataAgentThemeUploadSignatureResponseBodyData;
132
132
  /**
133
133
  * @remarks
134
- * The error code returned when the request fails.
134
+ * The error code. This parameter is returned only if the request fails.
135
135
  *
136
136
  * @example
137
137
  * UnknownError
@@ -139,7 +139,7 @@ export class GetDataAgentThemeUploadSignatureResponseBody extends $dara.Model {
139
139
  errorCode?: string;
140
140
  /**
141
141
  * @remarks
142
- * The error message returned when the call fails.
142
+ * The error message returned if the request fails.
143
143
  *
144
144
  * @example
145
145
  * UnknownError
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ModifyDataAgentThemeRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The description of the theme. Maximum length: 255 characters. A value of null indicates that the field is not modified. An empty string clears the field.
8
+ * The description. Maximum length: 255 characters. A null value indicates that the field is not modified, and an empty string clears the field.
9
9
  *
10
10
  * @example
11
11
  * weekly report
@@ -13,7 +13,7 @@ export class ModifyDataAgentThemeRequest extends $dara.Model {
13
13
  description?: string;
14
14
  /**
15
15
  * @remarks
16
- * The business identifier of the theme.
16
+ * The business ID of the theme.
17
17
  *
18
18
  * @example
19
19
  * 0f8b2c1d-****-****-****-9a3e5f7b1c2d
@@ -21,7 +21,7 @@ export class ModifyDataAgentThemeRequest extends $dara.Model {
21
21
  themeId?: string;
22
22
  /**
23
23
  * @remarks
24
- * The display name of the theme. Maximum length: 64 characters. A value of null indicates that the field is not modified. An empty string clears the field.
24
+ * The display name. Maximum length: 64 characters. A null value indicates that the field is not modified, and an empty string clears the field.
25
25
  *
26
26
  * @example
27
27
  * weekly report
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ModifyDataAgentThemeResponseBody extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The error code returned when the request is abnormal.
8
+ * The error code returned if the request failed.
9
9
  *
10
10
  * @example
11
11
  * UnknownError
@@ -13,7 +13,7 @@ export class ModifyDataAgentThemeResponseBody extends $dara.Model {
13
13
  errorCode?: string;
14
14
  /**
15
15
  * @remarks
16
- * The error message returned when the call fails.
16
+ * The error message returned if the request failed.
17
17
  *
18
18
  * @example
19
19
  * UnknownError
@@ -23,6 +23,8 @@ export { CreateCustomAgentResponseBodyData } from './CreateCustomAgentResponseBo
23
23
  export { CreateDataAgentAccuracyTestResponseBodyData } from './CreateDataAgentAccuracyTestResponseBody';
24
24
  export { CreateDataAgentFeedbackResponseBodyData } from './CreateDataAgentFeedbackResponseBody';
25
25
  export { CreateDataAgentKnowledgeBaseResponseBodyData } from './CreateDataAgentKnowledgeBaseResponseBody';
26
+ export { CreateDataAgentSessionRequestSessionConfigMcpHeadersMcpHeader } from './CreateDataAgentSessionRequest';
27
+ export { CreateDataAgentSessionRequestSessionConfigMcpHeaders } from './CreateDataAgentSessionRequest';
26
28
  export { CreateDataAgentSessionRequestSessionConfig } from './CreateDataAgentSessionRequest';
27
29
  export { CreateDataAgentSessionResponseBodyDataSessionConfig } from './CreateDataAgentSessionResponseBody';
28
30
  export { CreateDataAgentSessionResponseBodyData } from './CreateDataAgentSessionResponseBody';