@alicloud/dms20250414 3.0.0 → 3.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 (36) hide show
  1. package/dist/client.d.ts +30 -0
  2. package/dist/client.js +111 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeCustomAgentMonitorMetricsRequest.d.ts +69 -0
  5. package/dist/models/DescribeCustomAgentMonitorMetricsRequest.js +68 -0
  6. package/dist/models/DescribeCustomAgentMonitorMetricsRequest.js.map +1 -0
  7. package/dist/models/DescribeCustomAgentMonitorMetricsResponse.d.ts +19 -0
  8. package/dist/models/DescribeCustomAgentMonitorMetricsResponse.js +69 -0
  9. package/dist/models/DescribeCustomAgentMonitorMetricsResponse.js.map +1 -0
  10. package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.d.ts +194 -0
  11. package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.js +136 -0
  12. package/dist/models/DescribeCustomAgentMonitorMetricsResponseBody.js.map +1 -0
  13. package/dist/models/Dlcatalog.d.ts +9 -0
  14. package/dist/models/Dlcatalog.js.map +1 -1
  15. package/dist/models/ListCustomAgentMonitorSessionsRequest.d.ts +75 -0
  16. package/dist/models/ListCustomAgentMonitorSessionsRequest.js +70 -0
  17. package/dist/models/ListCustomAgentMonitorSessionsRequest.js.map +1 -0
  18. package/dist/models/ListCustomAgentMonitorSessionsResponse.d.ts +19 -0
  19. package/dist/models/ListCustomAgentMonitorSessionsResponse.js +69 -0
  20. package/dist/models/ListCustomAgentMonitorSessionsResponse.js.map +1 -0
  21. package/dist/models/ListCustomAgentMonitorSessionsResponseBody.d.ts +208 -0
  22. package/dist/models/ListCustomAgentMonitorSessionsResponseBody.js +138 -0
  23. package/dist/models/ListCustomAgentMonitorSessionsResponseBody.js.map +1 -0
  24. package/dist/models/model.d.ts +10 -0
  25. package/dist/models/model.js +32 -12
  26. package/dist/models/model.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/client.ts +128 -0
  29. package/src/models/DescribeCustomAgentMonitorMetricsRequest.ts +92 -0
  30. package/src/models/DescribeCustomAgentMonitorMetricsResponse.ts +40 -0
  31. package/src/models/DescribeCustomAgentMonitorMetricsResponseBody.ts +267 -0
  32. package/src/models/Dlcatalog.ts +9 -0
  33. package/src/models/ListCustomAgentMonitorSessionsRequest.ts +100 -0
  34. package/src/models/ListCustomAgentMonitorSessionsResponse.ts +40 -0
  35. package/src/models/ListCustomAgentMonitorSessionsResponseBody.ts +283 -0
  36. package/src/models/model.ts +10 -0
@@ -0,0 +1,267 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeCustomAgentMonitorMetricsResponseBodyDataTrend extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The number of active users within the statistical period.
9
+ *
10
+ * @example
11
+ * 2
12
+ */
13
+ activeUserCount?: number;
14
+ /**
15
+ * @remarks
16
+ * The number of dislikes within the statistical period.
17
+ *
18
+ * @example
19
+ * 0
20
+ */
21
+ dislikeCount?: number;
22
+ /**
23
+ * @remarks
24
+ * The number of likes within the statistical period.
25
+ *
26
+ * @example
27
+ * 1
28
+ */
29
+ likeCount?: number;
30
+ /**
31
+ * @remarks
32
+ * The number of sessions within the statistical period.
33
+ *
34
+ * @example
35
+ * 10
36
+ */
37
+ sessionCount?: number;
38
+ /**
39
+ * @remarks
40
+ * The statistical time. For daily granularity, the format is 2026-09-01. For hourly granularity, the format is 2026-09-01 13:00.
41
+ *
42
+ * @example
43
+ * 2026-09-01
44
+ */
45
+ statTime?: string;
46
+ /**
47
+ * @remarks
48
+ * The start timestamp of the statistical period (epoch millis).
49
+ *
50
+ * @example
51
+ * 1782835200000
52
+ */
53
+ timestamp?: number;
54
+ static names(): { [key: string]: string } {
55
+ return {
56
+ activeUserCount: 'ActiveUserCount',
57
+ dislikeCount: 'DislikeCount',
58
+ likeCount: 'LikeCount',
59
+ sessionCount: 'SessionCount',
60
+ statTime: 'StatTime',
61
+ timestamp: 'Timestamp',
62
+ };
63
+ }
64
+
65
+ static types(): { [key: string]: any } {
66
+ return {
67
+ activeUserCount: 'number',
68
+ dislikeCount: 'number',
69
+ likeCount: 'number',
70
+ sessionCount: 'number',
71
+ statTime: 'string',
72
+ timestamp: 'number',
73
+ };
74
+ }
75
+
76
+ validate() {
77
+ super.validate();
78
+ }
79
+
80
+ constructor(map?: { [key: string]: any }) {
81
+ super(map);
82
+ }
83
+ }
84
+
85
+ export class DescribeCustomAgentMonitorMetricsResponseBodyData extends $dara.Model {
86
+ /**
87
+ * @remarks
88
+ * The number of active users.
89
+ *
90
+ * @example
91
+ * 6
92
+ */
93
+ activeUserCount?: number;
94
+ /**
95
+ * @remarks
96
+ * The custom agent ID.
97
+ *
98
+ * @example
99
+ * ca-4y3ca4khkcu**********ysf
100
+ */
101
+ customAgentId?: string;
102
+ /**
103
+ * @remarks
104
+ * The total number of dislikes.
105
+ *
106
+ * @example
107
+ * 0
108
+ */
109
+ dislikeCount?: number;
110
+ /**
111
+ * @remarks
112
+ * The end time of the statistical period (epoch millis).
113
+ *
114
+ * @example
115
+ * 1756742400000
116
+ */
117
+ endTime?: number;
118
+ /**
119
+ * @remarks
120
+ * The aggregation granularity: DAY / HOUR.
121
+ *
122
+ * @example
123
+ * DAY
124
+ */
125
+ granularity?: string;
126
+ /**
127
+ * @remarks
128
+ * The total number of likes.
129
+ *
130
+ * @example
131
+ * 10
132
+ */
133
+ likeCount?: number;
134
+ /**
135
+ * @remarks
136
+ * The total number of sessions.
137
+ *
138
+ * @example
139
+ * 102
140
+ */
141
+ sessionCount?: number;
142
+ /**
143
+ * @remarks
144
+ * The start time of the statistical period (epoch millis).
145
+ *
146
+ * @example
147
+ * 1782835200000
148
+ */
149
+ startTime?: number;
150
+ /**
151
+ * @remarks
152
+ * The trend data aggregated by the specified granularity. Time points without data are filled with 0. The data is sorted in chronological order.
153
+ */
154
+ trend?: DescribeCustomAgentMonitorMetricsResponseBodyDataTrend[];
155
+ static names(): { [key: string]: string } {
156
+ return {
157
+ activeUserCount: 'ActiveUserCount',
158
+ customAgentId: 'CustomAgentId',
159
+ dislikeCount: 'DislikeCount',
160
+ endTime: 'EndTime',
161
+ granularity: 'Granularity',
162
+ likeCount: 'LikeCount',
163
+ sessionCount: 'SessionCount',
164
+ startTime: 'StartTime',
165
+ trend: 'Trend',
166
+ };
167
+ }
168
+
169
+ static types(): { [key: string]: any } {
170
+ return {
171
+ activeUserCount: 'number',
172
+ customAgentId: 'string',
173
+ dislikeCount: 'number',
174
+ endTime: 'number',
175
+ granularity: 'string',
176
+ likeCount: 'number',
177
+ sessionCount: 'number',
178
+ startTime: 'number',
179
+ trend: { 'type': 'array', 'itemType': DescribeCustomAgentMonitorMetricsResponseBodyDataTrend },
180
+ };
181
+ }
182
+
183
+ validate() {
184
+ if(Array.isArray(this.trend)) {
185
+ $dara.Model.validateArray(this.trend);
186
+ }
187
+ super.validate();
188
+ }
189
+
190
+ constructor(map?: { [key: string]: any }) {
191
+ super(map);
192
+ }
193
+ }
194
+
195
+ export class DescribeCustomAgentMonitorMetricsResponseBody extends $dara.Model {
196
+ /**
197
+ * @remarks
198
+ * The response struct.
199
+ */
200
+ data?: DescribeCustomAgentMonitorMetricsResponseBodyData;
201
+ /**
202
+ * @remarks
203
+ * The error code returned when the request fails.
204
+ *
205
+ * @example
206
+ * InvalidTid
207
+ */
208
+ errorCode?: string;
209
+ /**
210
+ * @remarks
211
+ * The error message returned when the call fails.
212
+ *
213
+ * @example
214
+ * Specified parameter Tid is not valid.
215
+ */
216
+ errorMessage?: string;
217
+ /**
218
+ * @remarks
219
+ * Id of the request
220
+ *
221
+ * @example
222
+ * E0D21075-CD3E-4D98-8264-FD8AD04A63B6
223
+ */
224
+ requestId?: string;
225
+ /**
226
+ * @remarks
227
+ * Indicates whether the request is successful. Valid values:
228
+ *
229
+ * - **true**: The request is successful.
230
+ * - **false**: The request fails.
231
+ *
232
+ * @example
233
+ * true
234
+ */
235
+ success?: boolean;
236
+ static names(): { [key: string]: string } {
237
+ return {
238
+ data: 'Data',
239
+ errorCode: 'ErrorCode',
240
+ errorMessage: 'ErrorMessage',
241
+ requestId: 'RequestId',
242
+ success: 'Success',
243
+ };
244
+ }
245
+
246
+ static types(): { [key: string]: any } {
247
+ return {
248
+ data: DescribeCustomAgentMonitorMetricsResponseBodyData,
249
+ errorCode: 'string',
250
+ errorMessage: 'string',
251
+ requestId: 'string',
252
+ success: 'boolean',
253
+ };
254
+ }
255
+
256
+ validate() {
257
+ if(this.data && typeof (this.data as any).validate === 'function') {
258
+ (this.data as any).validate();
259
+ }
260
+ super.validate();
261
+ }
262
+
263
+ constructor(map?: { [key: string]: any }) {
264
+ super(map);
265
+ }
266
+ }
267
+
@@ -4,16 +4,25 @@ import * as $dara from '@darabonba/typescript';
4
4
 
5
5
  export class DLCatalog extends $dara.Model {
6
6
  /**
7
+ * @remarks
8
+ * The description of the data catalog.
9
+ *
7
10
  * @example
8
11
  * init default catalog
9
12
  */
10
13
  description?: string;
11
14
  /**
15
+ * @remarks
16
+ * The storage path of the data catalog.
17
+ *
12
18
  * @example
13
19
  * oss://xxxx
14
20
  */
15
21
  location?: string;
16
22
  /**
23
+ * @remarks
24
+ * The name of the data catalog.
25
+ *
17
26
  * @example
18
27
  * hive
19
28
  */
@@ -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
+