@alicloud/agentloop20260520 2.4.5 → 2.5.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 (61) hide show
  1. package/dist/client.d.ts +56 -2
  2. package/dist/client.js +143 -3
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateDatasetVersionRequest.d.ts +39 -0
  5. package/dist/models/CreateDatasetVersionRequest.js +62 -0
  6. package/dist/models/CreateDatasetVersionRequest.js.map +1 -0
  7. package/dist/models/CreateDatasetVersionResponse.d.ts +19 -0
  8. package/dist/models/CreateDatasetVersionResponse.js +69 -0
  9. package/dist/models/CreateDatasetVersionResponse.js.map +1 -0
  10. package/dist/models/CreateDatasetVersionResponseBody.d.ts +21 -0
  11. package/dist/models/CreateDatasetVersionResponseBody.js +58 -0
  12. package/dist/models/CreateDatasetVersionResponseBody.js.map +1 -0
  13. package/dist/models/DeleteDatasetVersionRequest.d.ts +13 -0
  14. package/dist/models/DeleteDatasetVersionRequest.js +54 -0
  15. package/dist/models/DeleteDatasetVersionRequest.js.map +1 -0
  16. package/dist/models/DeleteDatasetVersionResponse.d.ts +19 -0
  17. package/dist/models/DeleteDatasetVersionResponse.js +69 -0
  18. package/dist/models/DeleteDatasetVersionResponse.js.map +1 -0
  19. package/dist/models/DeleteDatasetVersionResponseBody.d.ts +21 -0
  20. package/dist/models/DeleteDatasetVersionResponseBody.js +58 -0
  21. package/dist/models/DeleteDatasetVersionResponseBody.js.map +1 -0
  22. package/dist/models/GetAgentSpaceResponseBody.d.ts +27 -0
  23. package/dist/models/GetAgentSpaceResponseBody.js +27 -1
  24. package/dist/models/GetAgentSpaceResponseBody.js.map +1 -1
  25. package/dist/models/ListAgentSpacesRequest.d.ts +36 -0
  26. package/dist/models/ListAgentSpacesRequest.js +27 -1
  27. package/dist/models/ListAgentSpacesRequest.js.map +1 -1
  28. package/dist/models/ListAgentSpacesResponseBody.d.ts +39 -3
  29. package/dist/models/ListAgentSpacesResponseBody.js +27 -1
  30. package/dist/models/ListAgentSpacesResponseBody.js.map +1 -1
  31. package/dist/models/ListAgentSpacesShrinkRequest.d.ts +53 -0
  32. package/dist/models/ListAgentSpacesShrinkRequest.js +66 -0
  33. package/dist/models/ListAgentSpacesShrinkRequest.js.map +1 -0
  34. package/dist/models/ListDatasetVersionsRequest.d.ts +29 -0
  35. package/dist/models/ListDatasetVersionsRequest.js +60 -0
  36. package/dist/models/ListDatasetVersionsRequest.js.map +1 -0
  37. package/dist/models/ListDatasetVersionsResponse.d.ts +19 -0
  38. package/dist/models/ListDatasetVersionsResponse.js +69 -0
  39. package/dist/models/ListDatasetVersionsResponse.js.map +1 -0
  40. package/dist/models/ListDatasetVersionsResponseBody.d.ts +86 -0
  41. package/dist/models/ListDatasetVersionsResponseBody.js +92 -0
  42. package/dist/models/ListDatasetVersionsResponseBody.js.map +1 -0
  43. package/dist/models/model.d.ts +14 -0
  44. package/dist/models/model.js +44 -16
  45. package/dist/models/model.js.map +1 -1
  46. package/package.json +1 -1
  47. package/src/client.ts +156 -3
  48. package/src/models/CreateDatasetVersionRequest.ts +56 -0
  49. package/src/models/CreateDatasetVersionResponse.ts +40 -0
  50. package/src/models/CreateDatasetVersionResponseBody.ts +34 -0
  51. package/src/models/DeleteDatasetVersionRequest.ts +24 -0
  52. package/src/models/DeleteDatasetVersionResponse.ts +40 -0
  53. package/src/models/DeleteDatasetVersionResponseBody.ts +34 -0
  54. package/src/models/GetAgentSpaceResponseBody.ts +44 -0
  55. package/src/models/ListAgentSpacesRequest.ts +53 -0
  56. package/src/models/ListAgentSpacesResponseBody.ts +56 -3
  57. package/src/models/ListAgentSpacesShrinkRequest.ts +74 -0
  58. package/src/models/ListDatasetVersionsRequest.ts +44 -0
  59. package/src/models/ListDatasetVersionsResponse.ts +40 -0
  60. package/src/models/ListDatasetVersionsResponseBody.ts +124 -0
  61. package/src/models/model.ts +14 -0
package/src/client.ts CHANGED
@@ -367,6 +367,61 @@ export default class Client extends OpenApi {
367
367
  return await this.createDatasetWithOptions(agentSpace, request, headers, runtime);
368
368
  }
369
369
 
370
+ /**
371
+ * Creates a named historical version for a dataset in a specified agent workspace to preserve the historical state of the dataset. You can call ListDatasetVersions to query version information. If a version is no longer needed, you can call DeleteDatasetVersion to delete the version.
372
+ *
373
+ * @param request - CreateDatasetVersionRequest
374
+ * @param headers - map
375
+ * @param runtime - runtime options for this request RuntimeOptions
376
+ * @returns CreateDatasetVersionResponse
377
+ */
378
+ async createDatasetVersionWithOptions(agentSpace: string, datasetName: string, request: $_model.CreateDatasetVersionRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateDatasetVersionResponse> {
379
+ request.validate();
380
+ let query : {[key: string ]: any} = { };
381
+ if (!$dara.isNull(request.clientToken)) {
382
+ query["clientToken"] = request.clientToken;
383
+ }
384
+
385
+ let body : {[key: string ]: any} = { };
386
+ if (!$dara.isNull(request.description)) {
387
+ body["description"] = request.description;
388
+ }
389
+
390
+ if (!$dara.isNull(request.version)) {
391
+ body["version"] = request.version;
392
+ }
393
+
394
+ let req = new $OpenApiUtil.OpenApiRequest({
395
+ headers: headers,
396
+ query: OpenApiUtil.query(query),
397
+ body: OpenApiUtil.parseToMap(body),
398
+ });
399
+ let params = new $OpenApiUtil.Params({
400
+ action: "CreateDatasetVersion",
401
+ version: "2026-05-20",
402
+ protocol: "HTTPS",
403
+ pathname: `/agentspace/${$dara.URL.percentEncode(agentSpace)}/dataset/${$dara.URL.percentEncode(datasetName)}/version`,
404
+ method: "POST",
405
+ authType: "AK",
406
+ style: "ROA",
407
+ reqBodyType: "json",
408
+ bodyType: "json",
409
+ });
410
+ return $dara.cast<$_model.CreateDatasetVersionResponse>(await this.callApi(params, req, runtime), new $_model.CreateDatasetVersionResponse({}));
411
+ }
412
+
413
+ /**
414
+ * Creates a named historical version for a dataset in a specified agent workspace to preserve the historical state of the dataset. You can call ListDatasetVersions to query version information. If a version is no longer needed, you can call DeleteDatasetVersion to delete the version.
415
+ *
416
+ * @param request - CreateDatasetVersionRequest
417
+ * @returns CreateDatasetVersionResponse
418
+ */
419
+ async createDatasetVersion(agentSpace: string, datasetName: string, request: $_model.CreateDatasetVersionRequest): Promise<$_model.CreateDatasetVersionResponse> {
420
+ let runtime = new $dara.RuntimeOptions({ });
421
+ let headers : {[key: string ]: string} = { };
422
+ return await this.createDatasetVersionWithOptions(agentSpace, datasetName, request, headers, runtime);
423
+ }
424
+
370
425
  /**
371
426
  * Creates an evaluation task.
372
427
  *
@@ -1161,6 +1216,45 @@ export default class Client extends OpenApi {
1161
1216
  return await this.deleteDatasetWithOptions(agentSpace, datasetName, request, headers, runtime);
1162
1217
  }
1163
1218
 
1219
+ /**
1220
+ * Deletes a historical version of a dataset in a specified agent workspace. After deletion, the version no longer appears in the list returned by ListDatasetVersions. This operation does not delete the dataset itself, the current data, or other historical versions.
1221
+ *
1222
+ * @param request - DeleteDatasetVersionRequest
1223
+ * @param headers - map
1224
+ * @param runtime - runtime options for this request RuntimeOptions
1225
+ * @returns DeleteDatasetVersionResponse
1226
+ */
1227
+ async deleteDatasetVersionWithOptions(agentSpace: string, datasetName: string, version: string, request: $_model.DeleteDatasetVersionRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteDatasetVersionResponse> {
1228
+ request.validate();
1229
+ let req = new $OpenApiUtil.OpenApiRequest({
1230
+ headers: headers,
1231
+ });
1232
+ let params = new $OpenApiUtil.Params({
1233
+ action: "DeleteDatasetVersion",
1234
+ version: "2026-05-20",
1235
+ protocol: "HTTPS",
1236
+ pathname: `/agentspace/${$dara.URL.percentEncode(agentSpace)}/dataset/${$dara.URL.percentEncode(datasetName)}/version/${$dara.URL.percentEncode(version)}`,
1237
+ method: "DELETE",
1238
+ authType: "AK",
1239
+ style: "ROA",
1240
+ reqBodyType: "json",
1241
+ bodyType: "json",
1242
+ });
1243
+ return $dara.cast<$_model.DeleteDatasetVersionResponse>(await this.callApi(params, req, runtime), new $_model.DeleteDatasetVersionResponse({}));
1244
+ }
1245
+
1246
+ /**
1247
+ * Deletes a historical version of a dataset in a specified agent workspace. After deletion, the version no longer appears in the list returned by ListDatasetVersions. This operation does not delete the dataset itself, the current data, or other historical versions.
1248
+ *
1249
+ * @param request - DeleteDatasetVersionRequest
1250
+ * @returns DeleteDatasetVersionResponse
1251
+ */
1252
+ async deleteDatasetVersion(agentSpace: string, datasetName: string, version: string, request: $_model.DeleteDatasetVersionRequest): Promise<$_model.DeleteDatasetVersionResponse> {
1253
+ let runtime = new $dara.RuntimeOptions({ });
1254
+ let headers : {[key: string ]: string} = { };
1255
+ return await this.deleteDatasetVersionWithOptions(agentSpace, datasetName, version, request, headers, runtime);
1256
+ }
1257
+
1164
1258
  /**
1165
1259
  * Deletes an evaluation run.
1166
1260
  *
@@ -2280,13 +2374,19 @@ export default class Client extends OpenApi {
2280
2374
  * @remarks
2281
2375
  * Supports filtering by region.
2282
2376
  *
2283
- * @param request - ListAgentSpacesRequest
2377
+ * @param tmpReq - ListAgentSpacesRequest
2284
2378
  * @param headers - map
2285
2379
  * @param runtime - runtime options for this request RuntimeOptions
2286
2380
  * @returns ListAgentSpacesResponse
2287
2381
  */
2288
- async listAgentSpacesWithOptions(request: $_model.ListAgentSpacesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAgentSpacesResponse> {
2289
- request.validate();
2382
+ async listAgentSpacesWithOptions(tmpReq: $_model.ListAgentSpacesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAgentSpacesResponse> {
2383
+ tmpReq.validate();
2384
+ let request = new $_model.ListAgentSpacesShrinkRequest({ });
2385
+ OpenApiUtil.convert(tmpReq, request);
2386
+ if (!$dara.isNull(tmpReq.tag)) {
2387
+ request.tagShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "tag", "json");
2388
+ }
2389
+
2290
2390
  let query : {[key: string ]: any} = { };
2291
2391
  if (!$dara.isNull(request.agentSpace)) {
2292
2392
  query["agentSpace"] = request.agentSpace;
@@ -2304,6 +2404,10 @@ export default class Client extends OpenApi {
2304
2404
  query["regionId"] = request.regionId;
2305
2405
  }
2306
2406
 
2407
+ if (!$dara.isNull(request.tagShrink)) {
2408
+ query["tag"] = request.tagShrink;
2409
+ }
2410
+
2307
2411
  let req = new $OpenApiUtil.OpenApiRequest({
2308
2412
  headers: headers,
2309
2413
  query: OpenApiUtil.query(query),
@@ -2447,6 +2551,55 @@ export default class Client extends OpenApi {
2447
2551
  return await this.listContextStoresWithOptions(agentSpace, request, headers, runtime);
2448
2552
  }
2449
2553
 
2554
+ /**
2555
+ * Performs a paged query to retrieve the historical versions of a dataset in a specified agent workspace and returns the version names, descriptions, and creation time. Deleted versions are not included in the list. Do not specify nextToken in the first request. For subsequent requests, use the nextToken value from the previous response for paging to retrieve the next page.
2556
+ *
2557
+ * @param request - ListDatasetVersionsRequest
2558
+ * @param headers - map
2559
+ * @param runtime - runtime options for this request RuntimeOptions
2560
+ * @returns ListDatasetVersionsResponse
2561
+ */
2562
+ async listDatasetVersionsWithOptions(agentSpace: string, datasetName: string, request: $_model.ListDatasetVersionsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListDatasetVersionsResponse> {
2563
+ request.validate();
2564
+ let query : {[key: string ]: any} = { };
2565
+ if (!$dara.isNull(request.maxResults)) {
2566
+ query["maxResults"] = request.maxResults;
2567
+ }
2568
+
2569
+ if (!$dara.isNull(request.nextToken)) {
2570
+ query["nextToken"] = request.nextToken;
2571
+ }
2572
+
2573
+ let req = new $OpenApiUtil.OpenApiRequest({
2574
+ headers: headers,
2575
+ query: OpenApiUtil.query(query),
2576
+ });
2577
+ let params = new $OpenApiUtil.Params({
2578
+ action: "ListDatasetVersions",
2579
+ version: "2026-05-20",
2580
+ protocol: "HTTPS",
2581
+ pathname: `/agentspace/${$dara.URL.percentEncode(agentSpace)}/dataset/${$dara.URL.percentEncode(datasetName)}/version`,
2582
+ method: "GET",
2583
+ authType: "AK",
2584
+ style: "ROA",
2585
+ reqBodyType: "json",
2586
+ bodyType: "json",
2587
+ });
2588
+ return $dara.cast<$_model.ListDatasetVersionsResponse>(await this.callApi(params, req, runtime), new $_model.ListDatasetVersionsResponse({}));
2589
+ }
2590
+
2591
+ /**
2592
+ * Performs a paged query to retrieve the historical versions of a dataset in a specified agent workspace and returns the version names, descriptions, and creation time. Deleted versions are not included in the list. Do not specify nextToken in the first request. For subsequent requests, use the nextToken value from the previous response for paging to retrieve the next page.
2593
+ *
2594
+ * @param request - ListDatasetVersionsRequest
2595
+ * @returns ListDatasetVersionsResponse
2596
+ */
2597
+ async listDatasetVersions(agentSpace: string, datasetName: string, request: $_model.ListDatasetVersionsRequest): Promise<$_model.ListDatasetVersionsResponse> {
2598
+ let runtime = new $dara.RuntimeOptions({ });
2599
+ let headers : {[key: string ]: string} = { };
2600
+ return await this.listDatasetVersionsWithOptions(agentSpace, datasetName, request, headers, runtime);
2601
+ }
2602
+
2450
2603
  /**
2451
2604
  * Queries a list of datasets.
2452
2605
  *
@@ -0,0 +1,56 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateDatasetVersionRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The description of the version. This parameter is optional. If this parameter is not specified, an empty string is used.
9
+ *
10
+ * @example
11
+ * Dataset version used for the first evaluation
12
+ */
13
+ description?: string;
14
+ /**
15
+ * @remarks
16
+ * The name of the version to be created, which is used to identify the version within the current dataset. The name cannot be empty after leading and trailing whitespaces are removed. The length of the UTF-8 encoded name cannot exceed 128 bytes, and the name cannot contain forward slashes (/).
17
+ *
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * v1
22
+ */
23
+ version?: string;
24
+ /**
25
+ * @remarks
26
+ * The optional client token that is generated and passed by the client. Do not use this token to determine whether the version is created. You can call ListDatasetVersions to query the version.
27
+ *
28
+ * @example
29
+ * a1b2c3d4-1234-5678-90ab-cdef12345678
30
+ */
31
+ clientToken?: string;
32
+ static names(): { [key: string]: string } {
33
+ return {
34
+ description: 'description',
35
+ version: 'version',
36
+ clientToken: 'clientToken',
37
+ };
38
+ }
39
+
40
+ static types(): { [key: string]: any } {
41
+ return {
42
+ description: 'string',
43
+ version: 'string',
44
+ clientToken: 'string',
45
+ };
46
+ }
47
+
48
+ validate() {
49
+ super.validate();
50
+ }
51
+
52
+ constructor(map?: { [key: string]: any }) {
53
+ super(map);
54
+ }
55
+ }
56
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateDatasetVersionResponseBody } from "./CreateDatasetVersionResponseBody";
4
+
5
+
6
+ export class CreateDatasetVersionResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreateDatasetVersionResponseBody;
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: CreateDatasetVersionResponseBody,
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,34 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateDatasetVersionResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The unique identifier of the request, which is used to locate and troubleshoot issues.
9
+ *
10
+ * @example
11
+ * D17DE39E-6C62-50E3-9EB7-FDE41BB0D43D
12
+ */
13
+ requestId?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ requestId: 'requestId',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ requestId: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
@@ -0,0 +1,24 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DeleteDatasetVersionRequest extends $dara.Model {
6
+ static names(): { [key: string]: string } {
7
+ return {
8
+ };
9
+ }
10
+
11
+ static types(): { [key: string]: any } {
12
+ return {
13
+ };
14
+ }
15
+
16
+ validate() {
17
+ super.validate();
18
+ }
19
+
20
+ constructor(map?: { [key: string]: any }) {
21
+ super(map);
22
+ }
23
+ }
24
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DeleteDatasetVersionResponseBody } from "./DeleteDatasetVersionResponseBody";
4
+
5
+
6
+ export class DeleteDatasetVersionResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DeleteDatasetVersionResponseBody;
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: DeleteDatasetVersionResponseBody,
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,34 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DeleteDatasetVersionResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The unique identifier of the request, which is used to locate and troubleshoot issues.
9
+ *
10
+ * @example
11
+ * D17DE39E-6C62-50E3-9EB7-FDE41BB0D43D
12
+ */
13
+ requestId?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ requestId: 'requestId',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ requestId: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
@@ -52,6 +52,40 @@ export class GetAgentSpaceResponseBodyMseNamespace extends $dara.Model {
52
52
  }
53
53
  }
54
54
 
55
+ export class GetAgentSpaceResponseBodyTags extends $dara.Model {
56
+ /**
57
+ * @example
58
+ * env
59
+ */
60
+ key?: string;
61
+ /**
62
+ * @example
63
+ * test
64
+ */
65
+ value?: string;
66
+ static names(): { [key: string]: string } {
67
+ return {
68
+ key: 'key',
69
+ value: 'value',
70
+ };
71
+ }
72
+
73
+ static types(): { [key: string]: any } {
74
+ return {
75
+ key: 'string',
76
+ value: 'string',
77
+ };
78
+ }
79
+
80
+ validate() {
81
+ super.validate();
82
+ }
83
+
84
+ constructor(map?: { [key: string]: any }) {
85
+ super(map);
86
+ }
87
+ }
88
+
55
89
  export class GetAgentSpaceResponseBody extends $dara.Model {
56
90
  /**
57
91
  * @remarks
@@ -124,6 +158,11 @@ export class GetAgentSpaceResponseBody extends $dara.Model {
124
158
  * default-cms-1837787111545040-cn-beijing
125
159
  */
126
160
  slsProject?: string;
161
+ /**
162
+ * @example
163
+ * [{\\"key\\": \\"env\\", \\"value\\": \\"test\\"}]
164
+ */
165
+ tags?: GetAgentSpaceResponseBodyTags[];
127
166
  /**
128
167
  * @remarks
129
168
  * The update time.
@@ -145,6 +184,7 @@ export class GetAgentSpaceResponseBody extends $dara.Model {
145
184
  regionId: 'regionId',
146
185
  requestId: 'requestId',
147
186
  slsProject: 'slsProject',
187
+ tags: 'tags',
148
188
  updateTime: 'updateTime',
149
189
  };
150
190
  }
@@ -160,6 +200,7 @@ export class GetAgentSpaceResponseBody extends $dara.Model {
160
200
  regionId: 'string',
161
201
  requestId: 'string',
162
202
  slsProject: 'string',
203
+ tags: { 'type': 'array', 'itemType': GetAgentSpaceResponseBodyTags },
163
204
  updateTime: 'string',
164
205
  };
165
206
  }
@@ -168,6 +209,9 @@ export class GetAgentSpaceResponseBody extends $dara.Model {
168
209
  if(this.mseNamespace && typeof (this.mseNamespace as any).validate === 'function') {
169
210
  (this.mseNamespace as any).validate();
170
211
  }
212
+ if(Array.isArray(this.tags)) {
213
+ $dara.Model.validateArray(this.tags);
214
+ }
171
215
  super.validate();
172
216
  }
173
217
 
@@ -2,6 +2,46 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class ListAgentSpacesRequestTag extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The tag key.
9
+ *
10
+ * @example
11
+ * env
12
+ */
13
+ key?: string;
14
+ /**
15
+ * @remarks
16
+ * The tag value.
17
+ *
18
+ * @example
19
+ * test
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
+
5
45
  export class ListAgentSpacesRequest extends $dara.Model {
6
46
  /**
7
47
  * @remarks
@@ -35,12 +75,21 @@ export class ListAgentSpacesRequest extends $dara.Model {
35
75
  * cn-hangzhou
36
76
  */
37
77
  regionId?: string;
78
+ /**
79
+ * @remarks
80
+ * Filters only active AgentSpaces in the current region. Multiple conditions use the AND operator, and keys must be unique. Omitting the value matches the existence of the key, and an empty character string is an exact match for an empty value. An empty array is equivalent to not using label filtering and retains the original cross-region resources.
81
+ *
82
+ * @example
83
+ * [{\\"key\\": \\"env\\", \\"value\\": \\"test\\"}]
84
+ */
85
+ tag?: ListAgentSpacesRequestTag[];
38
86
  static names(): { [key: string]: string } {
39
87
  return {
40
88
  agentSpace: 'agentSpace',
41
89
  maxResults: 'maxResults',
42
90
  nextToken: 'nextToken',
43
91
  regionId: 'regionId',
92
+ tag: 'tag',
44
93
  };
45
94
  }
46
95
 
@@ -50,10 +99,14 @@ export class ListAgentSpacesRequest extends $dara.Model {
50
99
  maxResults: 'number',
51
100
  nextToken: 'string',
52
101
  regionId: 'string',
102
+ tag: { 'type': 'array', 'itemType': ListAgentSpacesRequestTag },
53
103
  };
54
104
  }
55
105
 
56
106
  validate() {
107
+ if(Array.isArray(this.tag)) {
108
+ $dara.Model.validateArray(this.tag);
109
+ }
57
110
  super.validate();
58
111
  }
59
112