@alicloud/dms20250414 4.0.0 → 4.1.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.
Files changed (71) hide show
  1. package/dist/client.d.ts +38 -8
  2. package/dist/client.js +119 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateCustomAgentRequest.d.ts +71 -43
  5. package/dist/models/CreateCustomAgentRequest.js.map +1 -1
  6. package/dist/models/CreateCustomAgentResponseBody.d.ts +58 -29
  7. package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
  8. package/dist/models/CreateCustomAgentShrinkRequest.d.ts +51 -37
  9. package/dist/models/CreateCustomAgentShrinkRequest.js.map +1 -1
  10. package/dist/models/DescribeCustomAgentMonitorMetricsRequest.d.ts +69 -0
  11. package/dist/models/DescribeCustomAgentMonitorMetricsRequest.js +68 -0
  12. package/dist/models/DescribeCustomAgentMonitorMetricsRequest.js.map +1 -0
  13. package/dist/models/DescribeCustomAgentMonitorMetricsResponse.d.ts +19 -0
  14. package/dist/models/DescribeCustomAgentMonitorMetricsResponse.js +69 -0
  15. package/dist/models/DescribeCustomAgentMonitorMetricsResponse.js.map +1 -0
  16. package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.d.ts +194 -0
  17. package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.js +136 -0
  18. package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.js.map +1 -0
  19. package/dist/models/DescribeCustomAgentResponseBody.d.ts +84 -25
  20. package/dist/models/DescribeCustomAgentResponseBody.js.map +1 -1
  21. package/dist/models/DescribeDataAgentSessionRequest.d.ts +1 -1
  22. package/dist/models/DescribeDataAgentSessionResponseBody.d.ts +94 -54
  23. package/dist/models/DescribeDataAgentSessionResponseBody.js +31 -1
  24. package/dist/models/DescribeDataAgentSessionResponseBody.js.map +1 -1
  25. package/dist/models/ListCustomAgentMonitorSessionsRequest.d.ts +75 -0
  26. package/dist/models/ListCustomAgentMonitorSessionsRequest.js +70 -0
  27. package/dist/models/ListCustomAgentMonitorSessionsRequest.js.map +1 -0
  28. package/dist/models/ListCustomAgentMonitorSessionsResponse.d.ts +19 -0
  29. package/dist/models/ListCustomAgentMonitorSessionsResponse.js +69 -0
  30. package/dist/models/ListCustomAgentMonitorSessionsResponse.js.map +1 -0
  31. package/dist/models/ListCustomAgentMonitorSessionsResponseBody.d.ts +208 -0
  32. package/dist/models/ListCustomAgentMonitorSessionsResponseBody.js +138 -0
  33. package/dist/models/ListCustomAgentMonitorSessionsResponseBody.js.map +1 -0
  34. package/dist/models/ListCustomAgentRequest.d.ts +4 -4
  35. package/dist/models/ListCustomAgentResponseBody.d.ts +138 -28
  36. package/dist/models/ListCustomAgentResponseBody.js.map +1 -1
  37. package/dist/models/ListDataAgentWorkspaceRequest.d.ts +13 -6
  38. package/dist/models/ListDataAgentWorkspaceRequest.js.map +1 -1
  39. package/dist/models/ListDataAgentWorkspaceResponseBody.d.ts +28 -7
  40. package/dist/models/ListDataAgentWorkspaceResponseBody.js.map +1 -1
  41. package/dist/models/ModifyCustomAgentRequest.d.ts +71 -38
  42. package/dist/models/ModifyCustomAgentRequest.js.map +1 -1
  43. package/dist/models/ModifyCustomAgentResponseBody.d.ts +63 -30
  44. package/dist/models/ModifyCustomAgentResponseBody.js.map +1 -1
  45. package/dist/models/ModifyCustomAgentShrinkRequest.d.ts +51 -32
  46. package/dist/models/ModifyCustomAgentShrinkRequest.js.map +1 -1
  47. package/dist/models/model.d.ts +11 -0
  48. package/dist/models/model.js +39 -17
  49. package/dist/models/model.js.map +1 -1
  50. package/package.json +1 -1
  51. package/src/client.ts +136 -8
  52. package/src/models/CreateCustomAgentRequest.ts +71 -43
  53. package/src/models/CreateCustomAgentResponseBody.ts +58 -29
  54. package/src/models/CreateCustomAgentShrinkRequest.ts +51 -37
  55. package/src/models/DescribeCustomAgentMonitorMetricsRequest.ts +92 -0
  56. package/src/models/DescribeCustomAgentMonitorMetricsResponse.ts +40 -0
  57. package/src/models/DescribeCustomAgentMonitorMetricsResponseBody.ts +267 -0
  58. package/src/models/DescribeCustomAgentResponseBody.ts +84 -25
  59. package/src/models/DescribeDataAgentSessionRequest.ts +1 -1
  60. package/src/models/DescribeDataAgentSessionResponseBody.ts +115 -54
  61. package/src/models/ListCustomAgentMonitorSessionsRequest.ts +100 -0
  62. package/src/models/ListCustomAgentMonitorSessionsResponse.ts +40 -0
  63. package/src/models/ListCustomAgentMonitorSessionsResponseBody.ts +283 -0
  64. package/src/models/ListCustomAgentRequest.ts +4 -4
  65. package/src/models/ListCustomAgentResponseBody.ts +138 -28
  66. package/src/models/ListDataAgentWorkspaceRequest.ts +13 -6
  67. package/src/models/ListDataAgentWorkspaceResponseBody.ts +28 -7
  68. package/src/models/ModifyCustomAgentRequest.ts +71 -38
  69. package/src/models/ModifyCustomAgentResponseBody.ts +63 -30
  70. package/src/models/ModifyCustomAgentShrinkRequest.ts +51 -32
  71. package/src/models/model.ts +11 -0
@@ -0,0 +1,100 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListCustomAgentMonitorSessionsRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The custom agent ID.
9
+ * - Required only when QueryType is set to CustomAgent.
10
+ *
11
+ * @example
12
+ * ca-4y3ca4khkcu**********ysf
13
+ */
14
+ customAgentId?: string;
15
+ /**
16
+ * @remarks
17
+ * The end time for statistics (epoch millis).
18
+ * - Note: The maximum time range is 3 months.
19
+ *
20
+ * @example
21
+ * 1756742400000
22
+ */
23
+ endTime?: number;
24
+ /**
25
+ * @remarks
26
+ * The page number, starting from 1. Default value: 1.
27
+ *
28
+ * @example
29
+ * 1
30
+ */
31
+ pageNumber?: number;
32
+ /**
33
+ * @remarks
34
+ * The number of entries per page. Valid values: 1 to 200. Default value: 20.
35
+ *
36
+ * @example
37
+ * 20
38
+ */
39
+ pageSize?: number;
40
+ /**
41
+ * @remarks
42
+ * The query scope. Default value: All. Valid values:
43
+ * - Default: default DataAgent sessions.
44
+ * - CustomAgent: specified custom agent sessions.
45
+ * - All: all sessions in the workspace.
46
+ *
47
+ * @example
48
+ * All
49
+ */
50
+ queryType?: string;
51
+ /**
52
+ * @remarks
53
+ * The start time for statistics (epoch millis).
54
+ * - Note: The maximum time range is 3 months.
55
+ *
56
+ * @example
57
+ * 1756656000000
58
+ */
59
+ startTime?: number;
60
+ /**
61
+ * @remarks
62
+ * The workspace ID.
63
+ *
64
+ * @example
65
+ * 56kv1pvl9uvt9**********bb
66
+ */
67
+ workspaceId?: string;
68
+ static names(): { [key: string]: string } {
69
+ return {
70
+ customAgentId: 'CustomAgentId',
71
+ endTime: 'EndTime',
72
+ pageNumber: 'PageNumber',
73
+ pageSize: 'PageSize',
74
+ queryType: 'QueryType',
75
+ startTime: 'StartTime',
76
+ workspaceId: 'WorkspaceId',
77
+ };
78
+ }
79
+
80
+ static types(): { [key: string]: any } {
81
+ return {
82
+ customAgentId: 'string',
83
+ endTime: 'number',
84
+ pageNumber: 'number',
85
+ pageSize: 'number',
86
+ queryType: 'string',
87
+ startTime: 'number',
88
+ workspaceId: 'string',
89
+ };
90
+ }
91
+
92
+ validate() {
93
+ super.validate();
94
+ }
95
+
96
+ constructor(map?: { [key: string]: any }) {
97
+ super(map);
98
+ }
99
+ }
100
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListCustomAgentMonitorSessionsResponseBody } from "./ListCustomAgentMonitorSessionsResponseBody";
4
+
5
+
6
+ export class ListCustomAgentMonitorSessionsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListCustomAgentMonitorSessionsResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: ListCustomAgentMonitorSessionsResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,283 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListCustomAgentMonitorSessionsResponseBodyDataContent extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The Alibaba Cloud UID of the creator.
9
+ *
10
+ * @example
11
+ * 20372822********
12
+ */
13
+ aliyunUid?: string;
14
+ /**
15
+ * @remarks
16
+ * The display name of the creator.
17
+ *
18
+ * @example
19
+ * HaoY***
20
+ */
21
+ creatorUserName?: string;
22
+ /**
23
+ * @remarks
24
+ * The custom agent ID.
25
+ *
26
+ * @example
27
+ * ca-4y3ca4khkcu**********ysf
28
+ */
29
+ customAgentId?: string;
30
+ /**
31
+ * @remarks
32
+ * The number of dislikes for the session.
33
+ *
34
+ * @example
35
+ * 0
36
+ */
37
+ dislikeCount?: number;
38
+ /**
39
+ * @remarks
40
+ * The creation time.
41
+ *
42
+ * @example
43
+ * 2026-03-18T10:02:04+08:00
44
+ */
45
+ gmtCreated?: string;
46
+ /**
47
+ * @remarks
48
+ * The modification time.
49
+ *
50
+ * @example
51
+ * 2025-12-11T14:04:32.000+00:00
52
+ */
53
+ gmtModified?: string;
54
+ /**
55
+ * @remarks
56
+ * The number of likes for the session.
57
+ *
58
+ * @example
59
+ * 2
60
+ */
61
+ likeCount?: number;
62
+ /**
63
+ * @remarks
64
+ * The session ID.
65
+ *
66
+ * @example
67
+ * 2gum46f149******ndfxxo
68
+ */
69
+ sessionId?: string;
70
+ /**
71
+ * @remarks
72
+ * The session status. Valid values:
73
+ * - init: The session is in the initial state.
74
+ * - INITIALIZING: The session is being initialized.
75
+ * - RUNNING: The session is running.
76
+ * - IDLE: The session is idle.
77
+ * - RECOVERABLE: The session is completed and can accept further questions.
78
+ * - UNAVAILABLE: The session is completed and cannot accept further questions.
79
+ *
80
+ * @example
81
+ * RUNNING
82
+ */
83
+ state?: string;
84
+ /**
85
+ * @remarks
86
+ * The session name.
87
+ *
88
+ * @example
89
+ * Please analyze this data
90
+ */
91
+ title?: string;
92
+ /**
93
+ * @remarks
94
+ * The total number of turns in the session.
95
+ *
96
+ * @example
97
+ * 10
98
+ */
99
+ turnCount?: number;
100
+ static names(): { [key: string]: string } {
101
+ return {
102
+ aliyunUid: 'AliyunUid',
103
+ creatorUserName: 'CreatorUserName',
104
+ customAgentId: 'CustomAgentId',
105
+ dislikeCount: 'DislikeCount',
106
+ gmtCreated: 'GmtCreated',
107
+ gmtModified: 'GmtModified',
108
+ likeCount: 'LikeCount',
109
+ sessionId: 'SessionId',
110
+ state: 'State',
111
+ title: 'Title',
112
+ turnCount: 'TurnCount',
113
+ };
114
+ }
115
+
116
+ static types(): { [key: string]: any } {
117
+ return {
118
+ aliyunUid: 'string',
119
+ creatorUserName: 'string',
120
+ customAgentId: 'string',
121
+ dislikeCount: 'number',
122
+ gmtCreated: 'string',
123
+ gmtModified: 'string',
124
+ likeCount: 'number',
125
+ sessionId: 'string',
126
+ state: 'string',
127
+ title: 'string',
128
+ turnCount: 'number',
129
+ };
130
+ }
131
+
132
+ validate() {
133
+ super.validate();
134
+ }
135
+
136
+ constructor(map?: { [key: string]: any }) {
137
+ super(map);
138
+ }
139
+ }
140
+
141
+ export class ListCustomAgentMonitorSessionsResponseBodyData extends $dara.Model {
142
+ /**
143
+ * @remarks
144
+ * The session details list for the current page, sorted by creation time in descending order.
145
+ */
146
+ content?: ListCustomAgentMonitorSessionsResponseBodyDataContent[];
147
+ /**
148
+ * @remarks
149
+ * The current page number.
150
+ *
151
+ * @example
152
+ * 1
153
+ */
154
+ pageNumber?: number;
155
+ /**
156
+ * @remarks
157
+ * The number of entries per page.
158
+ *
159
+ * @example
160
+ * 20
161
+ */
162
+ pageSize?: number;
163
+ /**
164
+ * @remarks
165
+ * The total number of sessions within the filter scope.
166
+ *
167
+ * @example
168
+ * 5
169
+ */
170
+ totalElements?: number;
171
+ /**
172
+ * @remarks
173
+ * The total number of pages.
174
+ *
175
+ * @example
176
+ * 1
177
+ */
178
+ totalPages?: number;
179
+ static names(): { [key: string]: string } {
180
+ return {
181
+ content: 'Content',
182
+ pageNumber: 'PageNumber',
183
+ pageSize: 'PageSize',
184
+ totalElements: 'TotalElements',
185
+ totalPages: 'TotalPages',
186
+ };
187
+ }
188
+
189
+ static types(): { [key: string]: any } {
190
+ return {
191
+ content: { 'type': 'array', 'itemType': ListCustomAgentMonitorSessionsResponseBodyDataContent },
192
+ pageNumber: 'number',
193
+ pageSize: 'number',
194
+ totalElements: 'number',
195
+ totalPages: 'number',
196
+ };
197
+ }
198
+
199
+ validate() {
200
+ if(Array.isArray(this.content)) {
201
+ $dara.Model.validateArray(this.content);
202
+ }
203
+ super.validate();
204
+ }
205
+
206
+ constructor(map?: { [key: string]: any }) {
207
+ super(map);
208
+ }
209
+ }
210
+
211
+ export class ListCustomAgentMonitorSessionsResponseBody extends $dara.Model {
212
+ /**
213
+ * @remarks
214
+ * The response struct.
215
+ */
216
+ data?: ListCustomAgentMonitorSessionsResponseBodyData;
217
+ /**
218
+ * @remarks
219
+ * The error code returned if the call fails.
220
+ *
221
+ * @example
222
+ * InvalidTid
223
+ */
224
+ errorCode?: string;
225
+ /**
226
+ * @remarks
227
+ * The error message returned if the call fails.
228
+ *
229
+ * @example
230
+ * Specified parameter Tid is not valid.
231
+ */
232
+ errorMessage?: string;
233
+ /**
234
+ * @remarks
235
+ * Id of the request
236
+ *
237
+ * @example
238
+ * E0D21075-CD3E-4D98-8264-FD8AD04A63B6
239
+ */
240
+ requestId?: string;
241
+ /**
242
+ * @remarks
243
+ * Indicates whether the request was successful. Valid values:
244
+ *
245
+ * - **true**: The request was successful.
246
+ * - **false**: The request failed.
247
+ *
248
+ * @example
249
+ * true
250
+ */
251
+ success?: boolean;
252
+ static names(): { [key: string]: string } {
253
+ return {
254
+ data: 'Data',
255
+ errorCode: 'ErrorCode',
256
+ errorMessage: 'ErrorMessage',
257
+ requestId: 'RequestId',
258
+ success: 'Success',
259
+ };
260
+ }
261
+
262
+ static types(): { [key: string]: any } {
263
+ return {
264
+ data: ListCustomAgentMonitorSessionsResponseBodyData,
265
+ errorCode: 'string',
266
+ errorMessage: 'string',
267
+ requestId: 'string',
268
+ success: 'boolean',
269
+ };
270
+ }
271
+
272
+ validate() {
273
+ if(this.data && typeof (this.data as any).validate === 'function') {
274
+ (this.data as any).validate();
275
+ }
276
+ super.validate();
277
+ }
278
+
279
+ constructor(map?: { [key: string]: any }) {
280
+ super(map);
281
+ }
282
+ }
283
+
@@ -13,7 +13,7 @@ export class ListCustomAgentRequest extends $dara.Model {
13
13
  pageNumber?: number;
14
14
  /**
15
15
  * @remarks
16
- * The number of records per page. Default value: 20.
16
+ * The number of entries per page. Default value: 20.
17
17
  *
18
18
  * @example
19
19
  * 20
@@ -21,7 +21,7 @@ export class ListCustomAgentRequest extends $dara.Model {
21
21
  pageSize?: number;
22
22
  /**
23
23
  * @remarks
24
- * Specifies whether to query all custom agents in the published state. Default value: false.
24
+ * Specifies whether to query all published custom agents. Default value: false.
25
25
  *
26
26
  * @example
27
27
  * true
@@ -29,10 +29,10 @@ export class ListCustomAgentRequest extends $dara.Model {
29
29
  queryAllReleased?: boolean;
30
30
  /**
31
31
  * @remarks
32
- * The search keyword. Supports fuzzy search by custom agent name and description.
32
+ * The search keyword. Fuzzy search is supported for custom agent names and descriptions.
33
33
  *
34
34
  * @example
35
- * TestAgent
35
+ * Test Agent
36
36
  */
37
37
  searchKey?: string;
38
38
  /**