@alicloud/agentcore20260804 1.0.0 → 1.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 (154) hide show
  1. package/dist/client.d.ts +218 -2
  2. package/dist/client.js +487 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateManagedAgentRequest.d.ts +501 -0
  5. package/dist/models/CreateManagedAgentRequest.js +452 -0
  6. package/dist/models/CreateManagedAgentRequest.js.map +1 -0
  7. package/dist/models/CreateManagedAgentResponse.d.ts +19 -0
  8. package/dist/models/CreateManagedAgentResponse.js +69 -0
  9. package/dist/models/CreateManagedAgentResponse.js.map +1 -0
  10. package/dist/models/CreateManagedAgentResponseBody.d.ts +607 -0
  11. package/dist/models/CreateManagedAgentResponseBody.js +480 -0
  12. package/dist/models/CreateManagedAgentResponseBody.js.map +1 -0
  13. package/dist/models/CreateManagedAgentShrinkRequest.d.ts +26 -0
  14. package/dist/models/CreateManagedAgentShrinkRequest.js +60 -0
  15. package/dist/models/CreateManagedAgentShrinkRequest.js.map +1 -0
  16. package/dist/models/CreateWorkspaceRequest.d.ts +105 -0
  17. package/dist/models/CreateWorkspaceRequest.js +135 -0
  18. package/dist/models/CreateWorkspaceRequest.js.map +1 -0
  19. package/dist/models/CreateWorkspaceResponse.d.ts +19 -0
  20. package/dist/models/CreateWorkspaceResponse.js +69 -0
  21. package/dist/models/CreateWorkspaceResponse.js.map +1 -0
  22. package/dist/models/CreateWorkspaceResponseBody.d.ts +165 -0
  23. package/dist/models/CreateWorkspaceResponseBody.js +151 -0
  24. package/dist/models/CreateWorkspaceResponseBody.js.map +1 -0
  25. package/dist/models/CreateWorkspaceShrinkRequest.d.ts +26 -0
  26. package/dist/models/CreateWorkspaceShrinkRequest.js +60 -0
  27. package/dist/models/CreateWorkspaceShrinkRequest.js.map +1 -0
  28. package/dist/models/DeleteManagedAgentRequest.d.ts +13 -0
  29. package/dist/models/DeleteManagedAgentRequest.js +54 -0
  30. package/dist/models/DeleteManagedAgentRequest.js.map +1 -0
  31. package/dist/models/DeleteManagedAgentResponse.d.ts +19 -0
  32. package/dist/models/DeleteManagedAgentResponse.js +69 -0
  33. package/dist/models/DeleteManagedAgentResponse.js.map +1 -0
  34. package/dist/models/DeleteManagedAgentResponseBody.d.ts +166 -0
  35. package/dist/models/DeleteManagedAgentResponseBody.js +112 -0
  36. package/dist/models/DeleteManagedAgentResponseBody.js.map +1 -0
  37. package/dist/models/DeleteWorkspaceRequest.d.ts +13 -0
  38. package/dist/models/DeleteWorkspaceRequest.js +54 -0
  39. package/dist/models/DeleteWorkspaceRequest.js.map +1 -0
  40. package/dist/models/DeleteWorkspaceResponse.d.ts +19 -0
  41. package/dist/models/DeleteWorkspaceResponse.js +69 -0
  42. package/dist/models/DeleteWorkspaceResponse.js.map +1 -0
  43. package/dist/models/DeleteWorkspaceResponseBody.d.ts +78 -0
  44. package/dist/models/DeleteWorkspaceResponseBody.js +90 -0
  45. package/dist/models/DeleteWorkspaceResponseBody.js.map +1 -0
  46. package/dist/models/GetManagedAgentRequest.d.ts +13 -0
  47. package/dist/models/GetManagedAgentRequest.js +54 -0
  48. package/dist/models/GetManagedAgentRequest.js.map +1 -0
  49. package/dist/models/GetManagedAgentResponse.d.ts +19 -0
  50. package/dist/models/GetManagedAgentResponse.js +69 -0
  51. package/dist/models/GetManagedAgentResponse.js.map +1 -0
  52. package/dist/models/GetManagedAgentResponseBody.d.ts +607 -0
  53. package/dist/models/GetManagedAgentResponseBody.js +480 -0
  54. package/dist/models/GetManagedAgentResponseBody.js.map +1 -0
  55. package/dist/models/GetWorkspaceRequest.d.ts +13 -0
  56. package/dist/models/GetWorkspaceRequest.js +54 -0
  57. package/dist/models/GetWorkspaceRequest.js.map +1 -0
  58. package/dist/models/GetWorkspaceResponse.d.ts +19 -0
  59. package/dist/models/GetWorkspaceResponse.js +69 -0
  60. package/dist/models/GetWorkspaceResponse.js.map +1 -0
  61. package/dist/models/GetWorkspaceResponseBody.d.ts +181 -0
  62. package/dist/models/GetWorkspaceResponseBody.js +155 -0
  63. package/dist/models/GetWorkspaceResponseBody.js.map +1 -0
  64. package/dist/models/ListManagedAgentsRequest.d.ts +29 -0
  65. package/dist/models/ListManagedAgentsRequest.js +60 -0
  66. package/dist/models/ListManagedAgentsRequest.js.map +1 -0
  67. package/dist/models/ListManagedAgentsResponse.d.ts +19 -0
  68. package/dist/models/ListManagedAgentsResponse.js +69 -0
  69. package/dist/models/ListManagedAgentsResponse.js.map +1 -0
  70. package/dist/models/ListManagedAgentsResponseBody.d.ts +193 -0
  71. package/dist/models/ListManagedAgentsResponseBody.js +118 -0
  72. package/dist/models/ListManagedAgentsResponseBody.js.map +1 -0
  73. package/dist/models/ListWorkspacesRequest.d.ts +37 -0
  74. package/dist/models/ListWorkspacesRequest.js +62 -0
  75. package/dist/models/ListWorkspacesRequest.js.map +1 -0
  76. package/dist/models/ListWorkspacesResponse.d.ts +19 -0
  77. package/dist/models/ListWorkspacesResponse.js +69 -0
  78. package/dist/models/ListWorkspacesResponse.js.map +1 -0
  79. package/dist/models/ListWorkspacesResponseBody.d.ts +201 -0
  80. package/dist/models/ListWorkspacesResponseBody.js +159 -0
  81. package/dist/models/ListWorkspacesResponseBody.js.map +1 -0
  82. package/dist/models/UpdateManagedAgentRequest.d.ts +495 -0
  83. package/dist/models/UpdateManagedAgentRequest.js +452 -0
  84. package/dist/models/UpdateManagedAgentRequest.js.map +1 -0
  85. package/dist/models/UpdateManagedAgentResponse.d.ts +19 -0
  86. package/dist/models/UpdateManagedAgentResponse.js +69 -0
  87. package/dist/models/UpdateManagedAgentResponse.js.map +1 -0
  88. package/dist/models/UpdateManagedAgentResponseBody.d.ts +607 -0
  89. package/dist/models/UpdateManagedAgentResponseBody.js +480 -0
  90. package/dist/models/UpdateManagedAgentResponseBody.js.map +1 -0
  91. package/dist/models/UpdateManagedAgentShrinkRequest.d.ts +26 -0
  92. package/dist/models/UpdateManagedAgentShrinkRequest.js +60 -0
  93. package/dist/models/UpdateManagedAgentShrinkRequest.js.map +1 -0
  94. package/dist/models/UpdateModelRequest.d.ts +9 -0
  95. package/dist/models/UpdateModelRequest.js.map +1 -1
  96. package/dist/models/UpdateModelResponseBody.d.ts +83 -0
  97. package/dist/models/UpdateModelResponseBody.js.map +1 -1
  98. package/dist/models/UpdateModelShrinkRequest.d.ts +7 -0
  99. package/dist/models/UpdateModelShrinkRequest.js.map +1 -1
  100. package/dist/models/UpdateWorkspaceRequest.d.ts +103 -0
  101. package/dist/models/UpdateWorkspaceRequest.js +135 -0
  102. package/dist/models/UpdateWorkspaceRequest.js.map +1 -0
  103. package/dist/models/UpdateWorkspaceResponse.d.ts +19 -0
  104. package/dist/models/UpdateWorkspaceResponse.js +69 -0
  105. package/dist/models/UpdateWorkspaceResponse.js.map +1 -0
  106. package/dist/models/UpdateWorkspaceResponseBody.d.ts +165 -0
  107. package/dist/models/UpdateWorkspaceResponseBody.js +151 -0
  108. package/dist/models/UpdateWorkspaceResponseBody.js.map +1 -0
  109. package/dist/models/UpdateWorkspaceShrinkRequest.d.ts +26 -0
  110. package/dist/models/UpdateWorkspaceShrinkRequest.js +60 -0
  111. package/dist/models/UpdateWorkspaceShrinkRequest.js.map +1 -0
  112. package/dist/models/model.d.ts +135 -0
  113. package/dist/models/model.js +277 -4
  114. package/dist/models/model.js.map +1 -1
  115. package/package.json +1 -1
  116. package/src/client.ts +524 -2
  117. package/src/models/CreateManagedAgentRequest.ts +764 -0
  118. package/src/models/CreateManagedAgentResponse.ts +40 -0
  119. package/src/models/CreateManagedAgentResponseBody.ts +898 -0
  120. package/src/models/CreateManagedAgentShrinkRequest.ts +41 -0
  121. package/src/models/CreateWorkspaceRequest.ts +168 -0
  122. package/src/models/CreateWorkspaceResponse.ts +40 -0
  123. package/src/models/CreateWorkspaceResponseBody.ts +244 -0
  124. package/src/models/CreateWorkspaceShrinkRequest.ts +41 -0
  125. package/src/models/DeleteManagedAgentRequest.ts +24 -0
  126. package/src/models/DeleteManagedAgentResponse.ts +40 -0
  127. package/src/models/DeleteManagedAgentResponseBody.ts +224 -0
  128. package/src/models/DeleteWorkspaceRequest.ts +24 -0
  129. package/src/models/DeleteWorkspaceResponse.ts +40 -0
  130. package/src/models/DeleteWorkspaceResponseBody.ts +114 -0
  131. package/src/models/GetManagedAgentRequest.ts +24 -0
  132. package/src/models/GetManagedAgentResponse.ts +40 -0
  133. package/src/models/GetManagedAgentResponseBody.ts +898 -0
  134. package/src/models/GetWorkspaceRequest.ts +24 -0
  135. package/src/models/GetWorkspaceResponse.ts +40 -0
  136. package/src/models/GetWorkspaceResponseBody.ts +264 -0
  137. package/src/models/ListManagedAgentsRequest.ts +44 -0
  138. package/src/models/ListManagedAgentsResponse.ts +40 -0
  139. package/src/models/ListManagedAgentsResponseBody.ts +257 -0
  140. package/src/models/ListWorkspacesRequest.ts +54 -0
  141. package/src/models/ListWorkspacesResponse.ts +40 -0
  142. package/src/models/ListWorkspacesResponseBody.ts +288 -0
  143. package/src/models/UpdateManagedAgentRequest.ts +758 -0
  144. package/src/models/UpdateManagedAgentResponse.ts +40 -0
  145. package/src/models/UpdateManagedAgentResponseBody.ts +898 -0
  146. package/src/models/UpdateManagedAgentShrinkRequest.ts +41 -0
  147. package/src/models/UpdateModelRequest.ts +9 -0
  148. package/src/models/UpdateModelResponseBody.ts +83 -0
  149. package/src/models/UpdateModelShrinkRequest.ts +7 -0
  150. package/src/models/UpdateWorkspaceRequest.ts +166 -0
  151. package/src/models/UpdateWorkspaceResponse.ts +40 -0
  152. package/src/models/UpdateWorkspaceResponseBody.ts +244 -0
  153. package/src/models/UpdateWorkspaceShrinkRequest.ts +41 -0
  154. package/src/models/model.ts +135 -0
@@ -0,0 +1,898 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateManagedAgentResponseBodyDataEnvironmentCredentialReferences extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The credential ID.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * cred-1
14
+ */
15
+ credentialId?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ credentialId: 'credentialId',
19
+ };
20
+ }
21
+
22
+ static types(): { [key: string]: any } {
23
+ return {
24
+ credentialId: 'string',
25
+ };
26
+ }
27
+
28
+ validate() {
29
+ super.validate();
30
+ }
31
+
32
+ constructor(map?: { [key: string]: any }) {
33
+ super(map);
34
+ }
35
+ }
36
+
37
+ export class UpdateManagedAgentResponseBodyDataEnvironmentVariables extends $dara.Model {
38
+ /**
39
+ * @remarks
40
+ * The environment variable name.
41
+ *
42
+ * This parameter is required.
43
+ *
44
+ * @example
45
+ * API_KEY
46
+ */
47
+ name?: string;
48
+ /**
49
+ * @remarks
50
+ * The environment variable value.
51
+ *
52
+ * This parameter is required.
53
+ *
54
+ * @example
55
+ * sk-xxxx
56
+ */
57
+ value?: string;
58
+ static names(): { [key: string]: string } {
59
+ return {
60
+ name: 'name',
61
+ value: 'value',
62
+ };
63
+ }
64
+
65
+ static types(): { [key: string]: any } {
66
+ return {
67
+ name: 'string',
68
+ value: 'string',
69
+ };
70
+ }
71
+
72
+ validate() {
73
+ super.validate();
74
+ }
75
+
76
+ constructor(map?: { [key: string]: any }) {
77
+ super(map);
78
+ }
79
+ }
80
+
81
+ export class UpdateManagedAgentResponseBodyDataEnvironment extends $dara.Model {
82
+ /**
83
+ * @remarks
84
+ * The list of credential references.
85
+ */
86
+ credentialReferences?: UpdateManagedAgentResponseBodyDataEnvironmentCredentialReferences[];
87
+ /**
88
+ * @remarks
89
+ * The list of environment variables.
90
+ */
91
+ variables?: UpdateManagedAgentResponseBodyDataEnvironmentVariables[];
92
+ static names(): { [key: string]: string } {
93
+ return {
94
+ credentialReferences: 'credentialReferences',
95
+ variables: 'variables',
96
+ };
97
+ }
98
+
99
+ static types(): { [key: string]: any } {
100
+ return {
101
+ credentialReferences: { 'type': 'array', 'itemType': UpdateManagedAgentResponseBodyDataEnvironmentCredentialReferences },
102
+ variables: { 'type': 'array', 'itemType': UpdateManagedAgentResponseBodyDataEnvironmentVariables },
103
+ };
104
+ }
105
+
106
+ validate() {
107
+ if(Array.isArray(this.credentialReferences)) {
108
+ $dara.Model.validateArray(this.credentialReferences);
109
+ }
110
+ if(Array.isArray(this.variables)) {
111
+ $dara.Model.validateArray(this.variables);
112
+ }
113
+ super.validate();
114
+ }
115
+
116
+ constructor(map?: { [key: string]: any }) {
117
+ super(map);
118
+ }
119
+ }
120
+
121
+ export class UpdateManagedAgentResponseBodyDataModel extends $dara.Model {
122
+ /**
123
+ * @remarks
124
+ * The model connection ID.
125
+ *
126
+ * This parameter is required.
127
+ *
128
+ * @example
129
+ * mc-1
130
+ */
131
+ modelConnectionId?: string;
132
+ /**
133
+ * @remarks
134
+ * The upstream model name.
135
+ *
136
+ * This parameter is required.
137
+ *
138
+ * @example
139
+ * qwen-max
140
+ */
141
+ modelName?: string;
142
+ static names(): { [key: string]: string } {
143
+ return {
144
+ modelConnectionId: 'modelConnectionId',
145
+ modelName: 'modelName',
146
+ };
147
+ }
148
+
149
+ static types(): { [key: string]: any } {
150
+ return {
151
+ modelConnectionId: 'string',
152
+ modelName: 'string',
153
+ };
154
+ }
155
+
156
+ validate() {
157
+ super.validate();
158
+ }
159
+
160
+ constructor(map?: { [key: string]: any }) {
161
+ super(map);
162
+ }
163
+ }
164
+
165
+ export class UpdateManagedAgentResponseBodyDataNetworkAccessInternet extends $dara.Model {
166
+ /**
167
+ * @remarks
168
+ * Specifies whether to allow access to the Internet.
169
+ *
170
+ * This parameter is required.
171
+ *
172
+ * @example
173
+ * false
174
+ */
175
+ enabled?: boolean;
176
+ static names(): { [key: string]: string } {
177
+ return {
178
+ enabled: 'enabled',
179
+ };
180
+ }
181
+
182
+ static types(): { [key: string]: any } {
183
+ return {
184
+ enabled: 'boolean',
185
+ };
186
+ }
187
+
188
+ validate() {
189
+ super.validate();
190
+ }
191
+
192
+ constructor(map?: { [key: string]: any }) {
193
+ super(map);
194
+ }
195
+ }
196
+
197
+ export class UpdateManagedAgentResponseBodyDataNetworkAccessVpc extends $dara.Model {
198
+ /**
199
+ * @remarks
200
+ * Specifies whether to allow access to the VPC.
201
+ *
202
+ * This parameter is required.
203
+ *
204
+ * @example
205
+ * true
206
+ */
207
+ enabled?: boolean;
208
+ static names(): { [key: string]: string } {
209
+ return {
210
+ enabled: 'enabled',
211
+ };
212
+ }
213
+
214
+ static types(): { [key: string]: any } {
215
+ return {
216
+ enabled: 'boolean',
217
+ };
218
+ }
219
+
220
+ validate() {
221
+ super.validate();
222
+ }
223
+
224
+ constructor(map?: { [key: string]: any }) {
225
+ super(map);
226
+ }
227
+ }
228
+
229
+ export class UpdateManagedAgentResponseBodyDataNetwork extends $dara.Model {
230
+ /**
231
+ * @remarks
232
+ * The public network access configuration.
233
+ */
234
+ accessInternet?: UpdateManagedAgentResponseBodyDataNetworkAccessInternet;
235
+ /**
236
+ * @remarks
237
+ * The VPC access configuration.
238
+ */
239
+ accessVpc?: UpdateManagedAgentResponseBodyDataNetworkAccessVpc;
240
+ static names(): { [key: string]: string } {
241
+ return {
242
+ accessInternet: 'accessInternet',
243
+ accessVpc: 'accessVpc',
244
+ };
245
+ }
246
+
247
+ static types(): { [key: string]: any } {
248
+ return {
249
+ accessInternet: UpdateManagedAgentResponseBodyDataNetworkAccessInternet,
250
+ accessVpc: UpdateManagedAgentResponseBodyDataNetworkAccessVpc,
251
+ };
252
+ }
253
+
254
+ validate() {
255
+ if(this.accessInternet && typeof (this.accessInternet as any).validate === 'function') {
256
+ (this.accessInternet as any).validate();
257
+ }
258
+ if(this.accessVpc && typeof (this.accessVpc as any).validate === 'function') {
259
+ (this.accessVpc as any).validate();
260
+ }
261
+ super.validate();
262
+ }
263
+
264
+ constructor(map?: { [key: string]: any }) {
265
+ super(map);
266
+ }
267
+ }
268
+
269
+ export class UpdateManagedAgentResponseBodyDataRuntimeCompute extends $dara.Model {
270
+ /**
271
+ * @remarks
272
+ * The compute specification.
273
+ *
274
+ * This parameter is required.
275
+ *
276
+ * @example
277
+ * STANDARD
278
+ */
279
+ computeClass?: string;
280
+ static names(): { [key: string]: string } {
281
+ return {
282
+ computeClass: 'computeClass',
283
+ };
284
+ }
285
+
286
+ static types(): { [key: string]: any } {
287
+ return {
288
+ computeClass: 'string',
289
+ };
290
+ }
291
+
292
+ validate() {
293
+ super.validate();
294
+ }
295
+
296
+ constructor(map?: { [key: string]: any }) {
297
+ super(map);
298
+ }
299
+ }
300
+
301
+ export class UpdateManagedAgentResponseBodyDataRuntimeSessionPolicy extends $dara.Model {
302
+ /**
303
+ * @remarks
304
+ * The HTTP header name used for session affinity. This parameter takes effect only when sessionPolicy.type is set to ISOLATED_HEADER_FIELD.
305
+ *
306
+ * @example
307
+ * X-Session-Id
308
+ */
309
+ headerName?: string;
310
+ /**
311
+ * @remarks
312
+ * The session policy type.
313
+ *
314
+ * This parameter is required.
315
+ *
316
+ * @example
317
+ * DISABLED
318
+ */
319
+ type?: string;
320
+ static names(): { [key: string]: string } {
321
+ return {
322
+ headerName: 'headerName',
323
+ type: 'type',
324
+ };
325
+ }
326
+
327
+ static types(): { [key: string]: any } {
328
+ return {
329
+ headerName: 'string',
330
+ type: 'string',
331
+ };
332
+ }
333
+
334
+ validate() {
335
+ super.validate();
336
+ }
337
+
338
+ constructor(map?: { [key: string]: any }) {
339
+ super(map);
340
+ }
341
+ }
342
+
343
+ export class UpdateManagedAgentResponseBodyDataRuntime extends $dara.Model {
344
+ /**
345
+ * @remarks
346
+ * The compute configuration.
347
+ *
348
+ * This parameter is required.
349
+ */
350
+ compute?: UpdateManagedAgentResponseBodyDataRuntimeCompute;
351
+ /**
352
+ * @remarks
353
+ * The session policy configuration.
354
+ *
355
+ * This parameter is required.
356
+ */
357
+ sessionPolicy?: UpdateManagedAgentResponseBodyDataRuntimeSessionPolicy;
358
+ static names(): { [key: string]: string } {
359
+ return {
360
+ compute: 'compute',
361
+ sessionPolicy: 'sessionPolicy',
362
+ };
363
+ }
364
+
365
+ static types(): { [key: string]: any } {
366
+ return {
367
+ compute: UpdateManagedAgentResponseBodyDataRuntimeCompute,
368
+ sessionPolicy: UpdateManagedAgentResponseBodyDataRuntimeSessionPolicy,
369
+ };
370
+ }
371
+
372
+ validate() {
373
+ if(this.compute && typeof (this.compute as any).validate === 'function') {
374
+ (this.compute as any).validate();
375
+ }
376
+ if(this.sessionPolicy && typeof (this.sessionPolicy as any).validate === 'function') {
377
+ (this.sessionPolicy as any).validate();
378
+ }
379
+ super.validate();
380
+ }
381
+
382
+ constructor(map?: { [key: string]: any }) {
383
+ super(map);
384
+ }
385
+ }
386
+
387
+ export class UpdateManagedAgentResponseBodyDataSkills extends $dara.Model {
388
+ /**
389
+ * @remarks
390
+ * The skill name.
391
+ *
392
+ * This parameter is required.
393
+ *
394
+ * @example
395
+ * code-analysis
396
+ */
397
+ name?: string;
398
+ /**
399
+ * @remarks
400
+ * The skill version.
401
+ *
402
+ * @example
403
+ * 1.0.0
404
+ */
405
+ version?: string;
406
+ static names(): { [key: string]: string } {
407
+ return {
408
+ name: 'name',
409
+ version: 'version',
410
+ };
411
+ }
412
+
413
+ static types(): { [key: string]: any } {
414
+ return {
415
+ name: 'string',
416
+ version: 'string',
417
+ };
418
+ }
419
+
420
+ validate() {
421
+ super.validate();
422
+ }
423
+
424
+ constructor(map?: { [key: string]: any }) {
425
+ super(map);
426
+ }
427
+ }
428
+
429
+ export class UpdateManagedAgentResponseBodyDataSubAgents extends $dara.Model {
430
+ /**
431
+ * @remarks
432
+ * The sub-agent instruction.
433
+ *
434
+ * This parameter is required.
435
+ *
436
+ * @example
437
+ * Please review the code
438
+ */
439
+ instruction?: string;
440
+ /**
441
+ * @remarks
442
+ * The sub-agent name.
443
+ *
444
+ * This parameter is required.
445
+ *
446
+ * @example
447
+ * reviewer-agent
448
+ */
449
+ name?: string;
450
+ static names(): { [key: string]: string } {
451
+ return {
452
+ instruction: 'instruction',
453
+ name: 'name',
454
+ };
455
+ }
456
+
457
+ static types(): { [key: string]: any } {
458
+ return {
459
+ instruction: 'string',
460
+ name: 'string',
461
+ };
462
+ }
463
+
464
+ validate() {
465
+ super.validate();
466
+ }
467
+
468
+ constructor(map?: { [key: string]: any }) {
469
+ super(map);
470
+ }
471
+ }
472
+
473
+ export class UpdateManagedAgentResponseBodyDataTemplateAiRegistry extends $dara.Model {
474
+ /**
475
+ * @remarks
476
+ * The name of the template in the AI registry.
477
+ *
478
+ * This parameter is required.
479
+ *
480
+ * @example
481
+ * code-review-template
482
+ */
483
+ name?: string;
484
+ /**
485
+ * @remarks
486
+ * The version of the template in the AI registry.
487
+ *
488
+ * @example
489
+ * 1.0.0
490
+ */
491
+ version?: string;
492
+ static names(): { [key: string]: string } {
493
+ return {
494
+ name: 'name',
495
+ version: 'version',
496
+ };
497
+ }
498
+
499
+ static types(): { [key: string]: any } {
500
+ return {
501
+ name: 'string',
502
+ version: 'string',
503
+ };
504
+ }
505
+
506
+ validate() {
507
+ super.validate();
508
+ }
509
+
510
+ constructor(map?: { [key: string]: any }) {
511
+ super(map);
512
+ }
513
+ }
514
+
515
+ export class UpdateManagedAgentResponseBodyDataTemplate extends $dara.Model {
516
+ /**
517
+ * @remarks
518
+ * The AI registry template configuration.
519
+ */
520
+ aiRegistry?: UpdateManagedAgentResponseBodyDataTemplateAiRegistry;
521
+ static names(): { [key: string]: string } {
522
+ return {
523
+ aiRegistry: 'aiRegistry',
524
+ };
525
+ }
526
+
527
+ static types(): { [key: string]: any } {
528
+ return {
529
+ aiRegistry: UpdateManagedAgentResponseBodyDataTemplateAiRegistry,
530
+ };
531
+ }
532
+
533
+ validate() {
534
+ if(this.aiRegistry && typeof (this.aiRegistry as any).validate === 'function') {
535
+ (this.aiRegistry as any).validate();
536
+ }
537
+ super.validate();
538
+ }
539
+
540
+ constructor(map?: { [key: string]: any }) {
541
+ super(map);
542
+ }
543
+ }
544
+
545
+ export class UpdateManagedAgentResponseBodyDataTools extends $dara.Model {
546
+ /**
547
+ * @remarks
548
+ * The tool name.
549
+ *
550
+ * This parameter is required.
551
+ *
552
+ * @example
553
+ * code-reviewer
554
+ */
555
+ name?: string;
556
+ /**
557
+ * @remarks
558
+ * The tool type.
559
+ *
560
+ * This parameter is required.
561
+ *
562
+ * @example
563
+ * MCP
564
+ */
565
+ type?: string;
566
+ static names(): { [key: string]: string } {
567
+ return {
568
+ name: 'name',
569
+ type: 'type',
570
+ };
571
+ }
572
+
573
+ static types(): { [key: string]: any } {
574
+ return {
575
+ name: 'string',
576
+ type: 'string',
577
+ };
578
+ }
579
+
580
+ validate() {
581
+ super.validate();
582
+ }
583
+
584
+ constructor(map?: { [key: string]: any }) {
585
+ super(map);
586
+ }
587
+ }
588
+
589
+ export class UpdateManagedAgentResponseBodyData extends $dara.Model {
590
+ /**
591
+ * @remarks
592
+ * The managed agent ID.
593
+ *
594
+ * @example
595
+ * agent-1
596
+ */
597
+ agentId?: string;
598
+ /**
599
+ * @remarks
600
+ * The creation mode.
601
+ *
602
+ * @example
603
+ * Managed
604
+ */
605
+ createMode?: string;
606
+ /**
607
+ * @remarks
608
+ * The creation time in RFC 3339 format.
609
+ *
610
+ * @example
611
+ * 2026-01-01T00:00:00Z
612
+ */
613
+ createdAt?: string;
614
+ /**
615
+ * @remarks
616
+ * The deployment type.
617
+ *
618
+ * @example
619
+ * Managed
620
+ */
621
+ deployType?: string;
622
+ /**
623
+ * @remarks
624
+ * The description of the managed agent.
625
+ *
626
+ * @example
627
+ * An agent for code review
628
+ */
629
+ description?: string;
630
+ /**
631
+ * @remarks
632
+ * The environment configuration information.
633
+ */
634
+ environment?: UpdateManagedAgentResponseBodyDataEnvironment;
635
+ /**
636
+ * @remarks
637
+ * The agent instruction that guides the behavior of the agent.
638
+ *
639
+ * @example
640
+ * You are a code review assistant
641
+ */
642
+ instruction?: string;
643
+ /**
644
+ * @remarks
645
+ * The latest specification version number.
646
+ *
647
+ * @example
648
+ * 1
649
+ */
650
+ latestSpecVersion?: number;
651
+ /**
652
+ * @remarks
653
+ * The latest version status.
654
+ *
655
+ * @example
656
+ * succeeded
657
+ */
658
+ latestVersionStatus?: string;
659
+ /**
660
+ * @remarks
661
+ * The model configuration information.
662
+ */
663
+ model?: UpdateManagedAgentResponseBodyDataModel;
664
+ /**
665
+ * @remarks
666
+ * The name of the managed agent.
667
+ *
668
+ * @example
669
+ * my-agent
670
+ */
671
+ name?: string;
672
+ /**
673
+ * @remarks
674
+ * The network configuration information.
675
+ */
676
+ network?: UpdateManagedAgentResponseBodyDataNetwork;
677
+ /**
678
+ * @remarks
679
+ * The region ID.
680
+ *
681
+ * @example
682
+ * cn-hangzhou
683
+ */
684
+ regionId?: string;
685
+ /**
686
+ * @remarks
687
+ * The runtime configuration information.
688
+ */
689
+ runtime?: UpdateManagedAgentResponseBodyDataRuntime;
690
+ /**
691
+ * @remarks
692
+ * The list of skill configurations.
693
+ */
694
+ skills?: UpdateManagedAgentResponseBodyDataSkills[];
695
+ /**
696
+ * @remarks
697
+ * The status of the managed agent.
698
+ *
699
+ * @example
700
+ * Running
701
+ */
702
+ status?: string;
703
+ /**
704
+ * @remarks
705
+ * The list of sub-agent configurations.
706
+ */
707
+ subAgents?: UpdateManagedAgentResponseBodyDataSubAgents[];
708
+ /**
709
+ * @remarks
710
+ * The template configuration information.
711
+ */
712
+ template?: UpdateManagedAgentResponseBodyDataTemplate;
713
+ /**
714
+ * @remarks
715
+ * The list of tool configurations.
716
+ */
717
+ tools?: UpdateManagedAgentResponseBodyDataTools[];
718
+ /**
719
+ * @remarks
720
+ * The update time in RFC 3339 format.
721
+ *
722
+ * @example
723
+ * 2026-01-01T00:00:00Z
724
+ */
725
+ updatedAt?: string;
726
+ /**
727
+ * @remarks
728
+ * The workspace ID.
729
+ *
730
+ * @example
731
+ * ws-1
732
+ */
733
+ workspaceId?: string;
734
+ static names(): { [key: string]: string } {
735
+ return {
736
+ agentId: 'agentId',
737
+ createMode: 'createMode',
738
+ createdAt: 'createdAt',
739
+ deployType: 'deployType',
740
+ description: 'description',
741
+ environment: 'environment',
742
+ instruction: 'instruction',
743
+ latestSpecVersion: 'latestSpecVersion',
744
+ latestVersionStatus: 'latestVersionStatus',
745
+ model: 'model',
746
+ name: 'name',
747
+ network: 'network',
748
+ regionId: 'regionId',
749
+ runtime: 'runtime',
750
+ skills: 'skills',
751
+ status: 'status',
752
+ subAgents: 'subAgents',
753
+ template: 'template',
754
+ tools: 'tools',
755
+ updatedAt: 'updatedAt',
756
+ workspaceId: 'workspaceId',
757
+ };
758
+ }
759
+
760
+ static types(): { [key: string]: any } {
761
+ return {
762
+ agentId: 'string',
763
+ createMode: 'string',
764
+ createdAt: 'string',
765
+ deployType: 'string',
766
+ description: 'string',
767
+ environment: UpdateManagedAgentResponseBodyDataEnvironment,
768
+ instruction: 'string',
769
+ latestSpecVersion: 'number',
770
+ latestVersionStatus: 'string',
771
+ model: UpdateManagedAgentResponseBodyDataModel,
772
+ name: 'string',
773
+ network: UpdateManagedAgentResponseBodyDataNetwork,
774
+ regionId: 'string',
775
+ runtime: UpdateManagedAgentResponseBodyDataRuntime,
776
+ skills: { 'type': 'array', 'itemType': UpdateManagedAgentResponseBodyDataSkills },
777
+ status: 'string',
778
+ subAgents: { 'type': 'array', 'itemType': UpdateManagedAgentResponseBodyDataSubAgents },
779
+ template: UpdateManagedAgentResponseBodyDataTemplate,
780
+ tools: { 'type': 'array', 'itemType': UpdateManagedAgentResponseBodyDataTools },
781
+ updatedAt: 'string',
782
+ workspaceId: 'string',
783
+ };
784
+ }
785
+
786
+ validate() {
787
+ if(this.environment && typeof (this.environment as any).validate === 'function') {
788
+ (this.environment as any).validate();
789
+ }
790
+ if(this.model && typeof (this.model as any).validate === 'function') {
791
+ (this.model as any).validate();
792
+ }
793
+ if(this.network && typeof (this.network as any).validate === 'function') {
794
+ (this.network as any).validate();
795
+ }
796
+ if(this.runtime && typeof (this.runtime as any).validate === 'function') {
797
+ (this.runtime as any).validate();
798
+ }
799
+ if(Array.isArray(this.skills)) {
800
+ $dara.Model.validateArray(this.skills);
801
+ }
802
+ if(Array.isArray(this.subAgents)) {
803
+ $dara.Model.validateArray(this.subAgents);
804
+ }
805
+ if(this.template && typeof (this.template as any).validate === 'function') {
806
+ (this.template as any).validate();
807
+ }
808
+ if(Array.isArray(this.tools)) {
809
+ $dara.Model.validateArray(this.tools);
810
+ }
811
+ super.validate();
812
+ }
813
+
814
+ constructor(map?: { [key: string]: any }) {
815
+ super(map);
816
+ }
817
+ }
818
+
819
+ export class UpdateManagedAgentResponseBody extends $dara.Model {
820
+ /**
821
+ * @remarks
822
+ * The business status code. The value SUCCESS indicates success.
823
+ *
824
+ * @example
825
+ * SUCCESS
826
+ */
827
+ code?: string;
828
+ /**
829
+ * @remarks
830
+ * The details of the managed agent.
831
+ */
832
+ data?: UpdateManagedAgentResponseBodyData;
833
+ /**
834
+ * @remarks
835
+ * The HTTP status code. The value 200 indicates success.
836
+ *
837
+ * @example
838
+ * 200
839
+ */
840
+ httpStatusCode?: number;
841
+ /**
842
+ * @remarks
843
+ * The result message of the request.
844
+ *
845
+ * @example
846
+ * success
847
+ */
848
+ message?: string;
849
+ /**
850
+ * @remarks
851
+ * The request ID.
852
+ *
853
+ * @example
854
+ * 1a2b3c4d-xxxx-xxxx-xxxx-xxxxxxxxxxxx
855
+ */
856
+ requestId?: string;
857
+ /**
858
+ * @remarks
859
+ * Indicates whether the request was successful.
860
+ *
861
+ * @example
862
+ * true
863
+ */
864
+ success?: boolean;
865
+ static names(): { [key: string]: string } {
866
+ return {
867
+ code: 'code',
868
+ data: 'data',
869
+ httpStatusCode: 'httpStatusCode',
870
+ message: 'message',
871
+ requestId: 'requestId',
872
+ success: 'success',
873
+ };
874
+ }
875
+
876
+ static types(): { [key: string]: any } {
877
+ return {
878
+ code: 'string',
879
+ data: UpdateManagedAgentResponseBodyData,
880
+ httpStatusCode: 'number',
881
+ message: 'string',
882
+ requestId: 'string',
883
+ success: 'boolean',
884
+ };
885
+ }
886
+
887
+ validate() {
888
+ if(this.data && typeof (this.data as any).validate === 'function') {
889
+ (this.data as any).validate();
890
+ }
891
+ super.validate();
892
+ }
893
+
894
+ constructor(map?: { [key: string]: any }) {
895
+ super(map);
896
+ }
897
+ }
898
+