@alicloud/dms20250414 2.0.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.
- package/dist/client.d.ts +25 -10
- package/dist/client.js +64 -10
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAgentRequest.d.ts +47 -0
- package/dist/models/CreateAgentRequest.js +64 -0
- package/dist/models/CreateAgentRequest.js.map +1 -0
- package/dist/models/CreateAgentResponse.d.ts +19 -0
- package/dist/models/CreateAgentResponse.js +69 -0
- package/dist/models/CreateAgentResponse.js.map +1 -0
- package/dist/models/CreateAgentResponseBody.d.ts +257 -0
- package/dist/models/CreateAgentResponseBody.js +154 -0
- package/dist/models/CreateAgentResponseBody.js.map +1 -0
- package/dist/models/CreateDataAgentSessionRequest.d.ts +102 -21
- package/dist/models/CreateDataAgentSessionRequest.js +51 -1
- package/dist/models/CreateDataAgentSessionRequest.js.map +1 -1
- package/dist/models/CreateDataAgentSessionResponseBody.d.ts +51 -29
- package/dist/models/CreateDataAgentSessionResponseBody.js.map +1 -1
- package/dist/models/CreateDataAgentSessionShrinkRequest.d.ts +2 -2
- package/dist/models/CreateDataAgentThemeRequest.d.ts +16 -8
- package/dist/models/CreateDataAgentThemeRequest.js +2 -0
- package/dist/models/CreateDataAgentThemeRequest.js.map +1 -1
- package/dist/models/CreateDataAgentThemeResponseBody.d.ts +2 -2
- package/dist/models/DescribeDataAgentSessionRequest.d.ts +1 -1
- package/dist/models/DescribeDataAgentSessionResponseBody.d.ts +19 -20
- package/dist/models/DescribeDataAgentSessionResponseBody.js.map +1 -1
- package/dist/models/DescribeDataAgentThemeResponseBody.d.ts +9 -13
- package/dist/models/DescribeDataAgentThemeResponseBody.js.map +1 -1
- package/dist/models/GetDataAgentThemeUploadSignatureRequest.d.ts +1 -1
- package/dist/models/GetDataAgentThemeUploadSignatureResponseBody.d.ts +5 -5
- package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.d.ts +9 -2
- package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.js.map +1 -1
- package/dist/models/ListDataAgentThemeRequest.d.ts +15 -7
- package/dist/models/ListDataAgentThemeRequest.js +2 -0
- package/dist/models/ListDataAgentThemeRequest.js.map +1 -1
- package/dist/models/ListDataAgentThemeResponseBody.d.ts +8 -8
- package/dist/models/ModifyDataAgentThemeRequest.d.ts +3 -3
- package/dist/models/ModifyDataAgentThemeResponseBody.d.ts +2 -2
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +30 -16
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +72 -10
- package/src/models/CreateAgentRequest.ts +66 -0
- package/src/models/CreateAgentResponse.ts +40 -0
- package/src/models/CreateAgentResponseBody.ts +348 -0
- package/src/models/CreateDataAgentSessionRequest.ts +134 -21
- package/src/models/CreateDataAgentSessionResponseBody.ts +51 -29
- package/src/models/CreateDataAgentSessionShrinkRequest.ts +2 -2
- package/src/models/CreateDataAgentThemeRequest.ts +18 -8
- package/src/models/CreateDataAgentThemeResponseBody.ts +2 -2
- package/src/models/DescribeDataAgentSessionRequest.ts +1 -1
- package/src/models/DescribeDataAgentSessionResponseBody.ts +19 -20
- package/src/models/DescribeDataAgentThemeResponseBody.ts +9 -13
- package/src/models/GetDataAgentThemeUploadSignatureRequest.ts +1 -1
- package/src/models/GetDataAgentThemeUploadSignatureResponseBody.ts +5 -5
- package/src/models/ListDataAgentAccuracyTestInstancesResponseBody.ts +9 -2
- package/src/models/ListDataAgentThemeRequest.ts +17 -7
- package/src/models/ListDataAgentThemeResponseBody.ts +8 -8
- package/src/models/ModifyDataAgentThemeRequest.ts +3 -3
- package/src/models/ModifyDataAgentThemeResponseBody.ts +2 -2
- package/src/models/model.ts +7 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
45
|
+
creatorId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The name of the user who created the API key.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* John Doe
|
|
52
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
69
|
+
expireTime?: string;
|
|
70
|
+
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* The primary key ID of the API key.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* 1001
|
|
76
|
+
*/
|
|
77
|
+
id?: number;
|
|
78
|
+
/**
|
|
79
|
+
* @remarks
|
|
80
|
+
* Indicates whether the API key has been revoked.
|
|
81
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
98
|
+
lastUsedTime?: string;
|
|
99
|
+
/**
|
|
100
|
+
* @remarks
|
|
101
|
+
* The name of the API key.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* order-analysis-agent-default
|
|
105
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
122
|
+
source?: string;
|
|
123
|
+
static names(): { [key: string]: string } {
|
|
124
|
+
return {
|
|
125
|
+
agentId: 'AgentId',
|
|
126
|
+
agentName: 'AgentName',
|
|
127
|
+
agentType: 'AgentType',
|
|
128
|
+
createdAt: 'CreatedAt',
|
|
129
|
+
creatorId: 'CreatorId',
|
|
130
|
+
creatorName: 'CreatorName',
|
|
131
|
+
description: 'Description',
|
|
132
|
+
expireTime: 'ExpireTime',
|
|
133
|
+
id: 'Id',
|
|
134
|
+
isRevoked: 'IsRevoked',
|
|
135
|
+
keyPrefix: 'KeyPrefix',
|
|
136
|
+
lastUsedTime: 'LastUsedTime',
|
|
137
|
+
name: 'Name',
|
|
138
|
+
secret: 'Secret',
|
|
139
|
+
source: 'Source',
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
static types(): { [key: string]: any } {
|
|
144
|
+
return {
|
|
145
|
+
agentId: 'string',
|
|
146
|
+
agentName: 'string',
|
|
147
|
+
agentType: 'string',
|
|
148
|
+
createdAt: 'string',
|
|
149
|
+
creatorId: 'string',
|
|
150
|
+
creatorName: 'string',
|
|
151
|
+
description: 'string',
|
|
152
|
+
expireTime: 'string',
|
|
153
|
+
id: 'number',
|
|
154
|
+
isRevoked: 'boolean',
|
|
155
|
+
keyPrefix: 'string',
|
|
156
|
+
lastUsedTime: 'string',
|
|
157
|
+
name: 'string',
|
|
158
|
+
secret: 'string',
|
|
159
|
+
source: 'string',
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
validate() {
|
|
164
|
+
super.validate();
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
constructor(map?: { [key: string]: any }) {
|
|
168
|
+
super(map);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
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
|
+
*/
|
|
180
|
+
agentId?: string;
|
|
181
|
+
/**
|
|
182
|
+
* @remarks
|
|
183
|
+
* The agent name.
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* order-analysis-agent
|
|
187
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
241
|
+
status?: string;
|
|
242
|
+
static names(): { [key: string]: string } {
|
|
243
|
+
return {
|
|
244
|
+
agentId: 'AgentId',
|
|
245
|
+
agentName: 'AgentName',
|
|
246
|
+
agentType: 'AgentType',
|
|
247
|
+
apiKey: 'ApiKey',
|
|
248
|
+
createdAt: 'CreatedAt',
|
|
249
|
+
creationType: 'CreationType',
|
|
250
|
+
description: 'Description',
|
|
251
|
+
ownerId: 'OwnerId',
|
|
252
|
+
status: 'Status',
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
static types(): { [key: string]: any } {
|
|
257
|
+
return {
|
|
258
|
+
agentId: 'string',
|
|
259
|
+
agentName: 'string',
|
|
260
|
+
agentType: 'string',
|
|
261
|
+
apiKey: CreateAgentResponseBodyDataApiKey,
|
|
262
|
+
createdAt: 'string',
|
|
263
|
+
creationType: 'string',
|
|
264
|
+
description: 'string',
|
|
265
|
+
ownerId: 'string',
|
|
266
|
+
status: 'string',
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
validate() {
|
|
271
|
+
if(this.apiKey && typeof (this.apiKey as any).validate === 'function') {
|
|
272
|
+
(this.apiKey as any).validate();
|
|
273
|
+
}
|
|
274
|
+
super.validate();
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
constructor(map?: { [key: string]: any }) {
|
|
278
|
+
super(map);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
311
|
+
requestId?: string;
|
|
312
|
+
/**
|
|
313
|
+
* @remarks
|
|
314
|
+
* Indicates whether the request was successful.
|
|
315
|
+
*/
|
|
316
|
+
success?: boolean;
|
|
317
|
+
static names(): { [key: string]: string } {
|
|
318
|
+
return {
|
|
319
|
+
data: 'Data',
|
|
320
|
+
errorCode: 'ErrorCode',
|
|
321
|
+
errorMessage: 'ErrorMessage',
|
|
322
|
+
requestId: 'RequestId',
|
|
323
|
+
success: 'Success',
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
static types(): { [key: string]: any } {
|
|
328
|
+
return {
|
|
329
|
+
data: CreateAgentResponseBodyData,
|
|
330
|
+
errorCode: 'string',
|
|
331
|
+
errorMessage: 'string',
|
|
332
|
+
requestId: 'string',
|
|
333
|
+
success: 'boolean',
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
validate() {
|
|
338
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
339
|
+
(this.data as any).validate();
|
|
340
|
+
}
|
|
341
|
+
super.validate();
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
constructor(map?: { [key: string]: any }) {
|
|
345
|
+
super(map);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
@@ -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
|
|
@@ -13,11 +93,9 @@ export class CreateDataAgentSessionRequestSessionConfig extends $dara.Model {
|
|
|
13
93
|
customAgentId?: string;
|
|
14
94
|
/**
|
|
15
95
|
* @remarks
|
|
16
|
-
* The custom agent
|
|
17
|
-
*
|
|
18
|
-
* - **
|
|
19
|
-
*
|
|
20
|
-
* - **prod**: Production stage.
|
|
96
|
+
* The stage of the custom agent. Valid values:
|
|
97
|
+
* - **debug**: the debugging stage.
|
|
98
|
+
* - **prod**: the production stage.
|
|
21
99
|
*
|
|
22
100
|
* @example
|
|
23
101
|
* debug
|
|
@@ -31,16 +109,32 @@ export class CreateDataAgentSessionRequestSessionConfig extends $dara.Model {
|
|
|
31
109
|
* false
|
|
32
110
|
*/
|
|
33
111
|
enableSearch?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* @remarks
|
|
114
|
+
* The encryption key.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* null
|
|
118
|
+
*/
|
|
34
119
|
encryptKey?: string;
|
|
120
|
+
/**
|
|
121
|
+
* @remarks
|
|
122
|
+
* The encryption type.
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* null
|
|
126
|
+
*/
|
|
35
127
|
encryptType?: string;
|
|
128
|
+
/**
|
|
129
|
+
* @remarks
|
|
130
|
+
* The list of knowledge base IDs.
|
|
131
|
+
*/
|
|
36
132
|
kbUuidList?: string[];
|
|
37
133
|
/**
|
|
38
134
|
* @remarks
|
|
39
135
|
* The language. Valid values:
|
|
40
|
-
*
|
|
41
|
-
* - **
|
|
42
|
-
*
|
|
43
|
-
* - **ENGLISH**: English
|
|
136
|
+
* - **CHINESE**: Chinese.
|
|
137
|
+
* - **ENGLISH**: English.
|
|
44
138
|
*
|
|
45
139
|
* @example
|
|
46
140
|
* CHINESE
|
|
@@ -48,30 +142,44 @@ export class CreateDataAgentSessionRequestSessionConfig extends $dara.Model {
|
|
|
48
142
|
language?: string;
|
|
49
143
|
/**
|
|
50
144
|
* @remarks
|
|
51
|
-
*
|
|
145
|
+
* The list of MCP header configurations.
|
|
146
|
+
*/
|
|
147
|
+
mcpHeaders?: CreateDataAgentSessionRequestSessionConfigMcpHeaders[];
|
|
148
|
+
/**
|
|
149
|
+
* @remarks
|
|
150
|
+
* The list of MCP server IDs in the session configuration.
|
|
52
151
|
*/
|
|
53
152
|
mcpServerIds?: string[];
|
|
54
153
|
/**
|
|
55
154
|
* @remarks
|
|
56
155
|
* The mode. Valid values:
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* - **ANALYSIS**: Analysis mode.
|
|
61
|
-
*
|
|
62
|
-
* - **INSIGHT**: Insight mode.
|
|
156
|
+
* - **ASK_DATA**: the data query mode.
|
|
157
|
+
* - **ANALYSIS**: the analysis mode.
|
|
158
|
+
* - **INSIGHT**: the insight mode.
|
|
63
159
|
*
|
|
64
160
|
* @example
|
|
65
161
|
* ANALYSIS
|
|
66
162
|
*/
|
|
67
163
|
mode?: string;
|
|
164
|
+
/**
|
|
165
|
+
* @remarks
|
|
166
|
+
* The report page width.
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* 0
|
|
170
|
+
*/
|
|
68
171
|
reportPageWidth?: number;
|
|
69
|
-
reportWaterMark?: string;
|
|
70
172
|
/**
|
|
71
173
|
* @remarks
|
|
72
|
-
* The
|
|
174
|
+
* The report watermark.
|
|
73
175
|
*
|
|
74
|
-
*
|
|
176
|
+
* @example
|
|
177
|
+
* null
|
|
178
|
+
*/
|
|
179
|
+
reportWaterMark?: string;
|
|
180
|
+
/**
|
|
181
|
+
* @remarks
|
|
182
|
+
* The name of the user OSS bucket. Analysis process files and report artifacts can be uploaded to the specified OSS bucket.
|
|
75
183
|
*
|
|
76
184
|
* @example
|
|
77
185
|
* user-oss-bucket
|
|
@@ -86,6 +194,7 @@ export class CreateDataAgentSessionRequestSessionConfig extends $dara.Model {
|
|
|
86
194
|
encryptType: 'EncryptType',
|
|
87
195
|
kbUuidList: 'KbUuidList',
|
|
88
196
|
language: 'Language',
|
|
197
|
+
mcpHeaders: 'McpHeaders',
|
|
89
198
|
mcpServerIds: 'McpServerIds',
|
|
90
199
|
mode: 'Mode',
|
|
91
200
|
reportPageWidth: 'ReportPageWidth',
|
|
@@ -103,6 +212,7 @@ export class CreateDataAgentSessionRequestSessionConfig extends $dara.Model {
|
|
|
103
212
|
encryptType: 'string',
|
|
104
213
|
kbUuidList: { 'type': 'array', 'itemType': 'string' },
|
|
105
214
|
language: 'string',
|
|
215
|
+
mcpHeaders: { 'type': 'array', 'itemType': CreateDataAgentSessionRequestSessionConfigMcpHeaders },
|
|
106
216
|
mcpServerIds: { 'type': 'array', 'itemType': 'string' },
|
|
107
217
|
mode: 'string',
|
|
108
218
|
reportPageWidth: 'number',
|
|
@@ -115,6 +225,9 @@ export class CreateDataAgentSessionRequestSessionConfig extends $dara.Model {
|
|
|
115
225
|
if(Array.isArray(this.kbUuidList)) {
|
|
116
226
|
$dara.Model.validateArray(this.kbUuidList);
|
|
117
227
|
}
|
|
228
|
+
if(Array.isArray(this.mcpHeaders)) {
|
|
229
|
+
$dara.Model.validateArray(this.mcpHeaders);
|
|
230
|
+
}
|
|
118
231
|
if(Array.isArray(this.mcpServerIds)) {
|
|
119
232
|
$dara.Model.validateArray(this.mcpServerIds);
|
|
120
233
|
}
|
|
@@ -150,10 +263,10 @@ export class CreateDataAgentSessionRequest extends $dara.Model {
|
|
|
150
263
|
sessionConfig?: CreateDataAgentSessionRequestSessionConfig;
|
|
151
264
|
/**
|
|
152
265
|
* @remarks
|
|
153
|
-
* The
|
|
266
|
+
* The title. Chinese and English characters are supported. Maximum length: 128 characters.
|
|
154
267
|
*
|
|
155
268
|
* @example
|
|
156
|
-
*
|
|
269
|
+
* Help me analyze this data and generate a report
|
|
157
270
|
*/
|
|
158
271
|
title?: string;
|
|
159
272
|
/**
|