@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,758 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateManagedAgentRequestBodyEnvironmentCredentialReferences 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 UpdateManagedAgentRequestBodyEnvironmentVariables 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 UpdateManagedAgentRequestBodyEnvironment extends $dara.Model {
82
+ /**
83
+ * @remarks
84
+ * The list of credential references.
85
+ */
86
+ credentialReferences?: UpdateManagedAgentRequestBodyEnvironmentCredentialReferences[];
87
+ /**
88
+ * @remarks
89
+ * The list of environment variables.
90
+ */
91
+ variables?: UpdateManagedAgentRequestBodyEnvironmentVariables[];
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': UpdateManagedAgentRequestBodyEnvironmentCredentialReferences },
102
+ variables: { 'type': 'array', 'itemType': UpdateManagedAgentRequestBodyEnvironmentVariables },
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 UpdateManagedAgentRequestBodyModel 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 UpdateManagedAgentRequestBodyNetworkAccessInternet 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 UpdateManagedAgentRequestBodyNetworkAccessVpc 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 UpdateManagedAgentRequestBodyNetwork extends $dara.Model {
230
+ /**
231
+ * @remarks
232
+ * The public network access configuration.
233
+ */
234
+ accessInternet?: UpdateManagedAgentRequestBodyNetworkAccessInternet;
235
+ /**
236
+ * @remarks
237
+ * The VPC access configuration.
238
+ */
239
+ accessVpc?: UpdateManagedAgentRequestBodyNetworkAccessVpc;
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: UpdateManagedAgentRequestBodyNetworkAccessInternet,
250
+ accessVpc: UpdateManagedAgentRequestBodyNetworkAccessVpc,
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 UpdateManagedAgentRequestBodyRuntimeCompute 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 UpdateManagedAgentRequestBodyRuntimeSessionPolicy 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 UpdateManagedAgentRequestBodyRuntime extends $dara.Model {
344
+ /**
345
+ * @remarks
346
+ * The compute configuration.
347
+ *
348
+ * This parameter is required.
349
+ */
350
+ compute?: UpdateManagedAgentRequestBodyRuntimeCompute;
351
+ /**
352
+ * @remarks
353
+ * The session policy configuration.
354
+ *
355
+ * This parameter is required.
356
+ */
357
+ sessionPolicy?: UpdateManagedAgentRequestBodyRuntimeSessionPolicy;
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: UpdateManagedAgentRequestBodyRuntimeCompute,
368
+ sessionPolicy: UpdateManagedAgentRequestBodyRuntimeSessionPolicy,
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 UpdateManagedAgentRequestBodySkills 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 UpdateManagedAgentRequestBodySubAgents 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 UpdateManagedAgentRequestBodyTemplateAiRegistry 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 UpdateManagedAgentRequestBodyTemplate extends $dara.Model {
516
+ /**
517
+ * @remarks
518
+ * The AI registry template configuration.
519
+ */
520
+ aiRegistry?: UpdateManagedAgentRequestBodyTemplateAiRegistry;
521
+ static names(): { [key: string]: string } {
522
+ return {
523
+ aiRegistry: 'aiRegistry',
524
+ };
525
+ }
526
+
527
+ static types(): { [key: string]: any } {
528
+ return {
529
+ aiRegistry: UpdateManagedAgentRequestBodyTemplateAiRegistry,
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 UpdateManagedAgentRequestBodyTools 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 UpdateManagedAgentRequestBody extends $dara.Model {
590
+ /**
591
+ * @remarks
592
+ * The description of the managed agent.
593
+ *
594
+ * @example
595
+ * An agent for code review
596
+ */
597
+ description?: string;
598
+ /**
599
+ * @remarks
600
+ * The environment configuration.
601
+ */
602
+ environment?: UpdateManagedAgentRequestBodyEnvironment;
603
+ /**
604
+ * @remarks
605
+ * The agent instruction that guides the behavior of the agent.
606
+ *
607
+ * @example
608
+ * You are a code review assistant
609
+ */
610
+ instruction?: string;
611
+ /**
612
+ * @remarks
613
+ * The model configuration.
614
+ */
615
+ model?: UpdateManagedAgentRequestBodyModel;
616
+ /**
617
+ * @remarks
618
+ * The name of the managed agent.
619
+ *
620
+ * @example
621
+ * my-agent
622
+ */
623
+ name?: string;
624
+ /**
625
+ * @remarks
626
+ * The network configuration.
627
+ */
628
+ network?: UpdateManagedAgentRequestBodyNetwork;
629
+ /**
630
+ * @remarks
631
+ * The runtime configuration.
632
+ */
633
+ runtime?: UpdateManagedAgentRequestBodyRuntime;
634
+ /**
635
+ * @remarks
636
+ * The list of skill configurations.
637
+ */
638
+ skills?: UpdateManagedAgentRequestBodySkills[];
639
+ /**
640
+ * @remarks
641
+ * The list of sub-agent configurations.
642
+ */
643
+ subAgents?: UpdateManagedAgentRequestBodySubAgents[];
644
+ /**
645
+ * @remarks
646
+ * The agent template configuration.
647
+ */
648
+ template?: UpdateManagedAgentRequestBodyTemplate;
649
+ /**
650
+ * @remarks
651
+ * The list of tool configurations.
652
+ */
653
+ tools?: UpdateManagedAgentRequestBodyTools[];
654
+ static names(): { [key: string]: string } {
655
+ return {
656
+ description: 'description',
657
+ environment: 'environment',
658
+ instruction: 'instruction',
659
+ model: 'model',
660
+ name: 'name',
661
+ network: 'network',
662
+ runtime: 'runtime',
663
+ skills: 'skills',
664
+ subAgents: 'subAgents',
665
+ template: 'template',
666
+ tools: 'tools',
667
+ };
668
+ }
669
+
670
+ static types(): { [key: string]: any } {
671
+ return {
672
+ description: 'string',
673
+ environment: UpdateManagedAgentRequestBodyEnvironment,
674
+ instruction: 'string',
675
+ model: UpdateManagedAgentRequestBodyModel,
676
+ name: 'string',
677
+ network: UpdateManagedAgentRequestBodyNetwork,
678
+ runtime: UpdateManagedAgentRequestBodyRuntime,
679
+ skills: { 'type': 'array', 'itemType': UpdateManagedAgentRequestBodySkills },
680
+ subAgents: { 'type': 'array', 'itemType': UpdateManagedAgentRequestBodySubAgents },
681
+ template: UpdateManagedAgentRequestBodyTemplate,
682
+ tools: { 'type': 'array', 'itemType': UpdateManagedAgentRequestBodyTools },
683
+ };
684
+ }
685
+
686
+ validate() {
687
+ if(this.environment && typeof (this.environment as any).validate === 'function') {
688
+ (this.environment as any).validate();
689
+ }
690
+ if(this.model && typeof (this.model as any).validate === 'function') {
691
+ (this.model as any).validate();
692
+ }
693
+ if(this.network && typeof (this.network as any).validate === 'function') {
694
+ (this.network as any).validate();
695
+ }
696
+ if(this.runtime && typeof (this.runtime as any).validate === 'function') {
697
+ (this.runtime as any).validate();
698
+ }
699
+ if(Array.isArray(this.skills)) {
700
+ $dara.Model.validateArray(this.skills);
701
+ }
702
+ if(Array.isArray(this.subAgents)) {
703
+ $dara.Model.validateArray(this.subAgents);
704
+ }
705
+ if(this.template && typeof (this.template as any).validate === 'function') {
706
+ (this.template as any).validate();
707
+ }
708
+ if(Array.isArray(this.tools)) {
709
+ $dara.Model.validateArray(this.tools);
710
+ }
711
+ super.validate();
712
+ }
713
+
714
+ constructor(map?: { [key: string]: any }) {
715
+ super(map);
716
+ }
717
+ }
718
+
719
+ export class UpdateManagedAgentRequest extends $dara.Model {
720
+ /**
721
+ * @remarks
722
+ * The request body.
723
+ */
724
+ body?: UpdateManagedAgentRequestBody;
725
+ /**
726
+ * @remarks
727
+ * The reserved idempotency token. The backend does not provide idempotency guarantees in the current version.
728
+ *
729
+ * @example
730
+ * client-token-1
731
+ */
732
+ clientToken?: string;
733
+ static names(): { [key: string]: string } {
734
+ return {
735
+ body: 'body',
736
+ clientToken: 'clientToken',
737
+ };
738
+ }
739
+
740
+ static types(): { [key: string]: any } {
741
+ return {
742
+ body: UpdateManagedAgentRequestBody,
743
+ clientToken: 'string',
744
+ };
745
+ }
746
+
747
+ validate() {
748
+ if(this.body && typeof (this.body as any).validate === 'function') {
749
+ (this.body as any).validate();
750
+ }
751
+ super.validate();
752
+ }
753
+
754
+ constructor(map?: { [key: string]: any }) {
755
+ super(map);
756
+ }
757
+ }
758
+