@alicloud/agentcore20260804 2.0.0 → 2.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 (206) hide show
  1. package/dist/client.d.ts +118 -70
  2. package/dist/client.js +178 -70
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAgentImchannelRequest.d.ts +4 -5
  5. package/dist/models/CreateAgentImchannelRequest.js.map +1 -1
  6. package/dist/models/CreateAgentImchannelResponseBody.d.ts +5 -7
  7. package/dist/models/CreateAgentImchannelResponseBody.js.map +1 -1
  8. package/dist/models/CreateAgentImchannelShrinkRequest.d.ts +1 -1
  9. package/dist/models/CreateAgentSpecVersionRequest.d.ts +2 -2
  10. package/dist/models/CreateExternalAgentBootstrapTokenResponseBody.d.ts +6 -6
  11. package/dist/models/CreateExternalAgentRequest.d.ts +53 -6
  12. package/dist/models/CreateExternalAgentRequest.js +31 -1
  13. package/dist/models/CreateExternalAgentRequest.js.map +1 -1
  14. package/dist/models/CreateExternalAgentResponseBody.d.ts +79 -12
  15. package/dist/models/CreateExternalAgentResponseBody.js +37 -1
  16. package/dist/models/CreateExternalAgentResponseBody.js.map +1 -1
  17. package/dist/models/CreateExternalAgentShrinkRequest.d.ts +1 -1
  18. package/dist/models/CreateIdentityProviderRequest.d.ts +7 -5
  19. package/dist/models/CreateIdentityProviderRequest.js.map +1 -1
  20. package/dist/models/CreateIdentityProviderResponseBody.d.ts +4 -2
  21. package/dist/models/CreateIdentityProviderResponseBody.js.map +1 -1
  22. package/dist/models/CreateManagedAgentRequest.d.ts +89 -17
  23. package/dist/models/CreateManagedAgentRequest.js +31 -1
  24. package/dist/models/CreateManagedAgentRequest.js.map +1 -1
  25. package/dist/models/CreateManagedAgentResponseBody.d.ts +116 -24
  26. package/dist/models/CreateManagedAgentResponseBody.js +37 -1
  27. package/dist/models/CreateManagedAgentResponseBody.js.map +1 -1
  28. package/dist/models/CreateManagedAgentShrinkRequest.d.ts +1 -1
  29. package/dist/models/CreateUserRequest.d.ts +4 -4
  30. package/dist/models/CreateUserResponseBody.d.ts +7 -7
  31. package/dist/models/CreateWorkspaceRequest.d.ts +9 -0
  32. package/dist/models/CreateWorkspaceRequest.js.map +1 -1
  33. package/dist/models/CreateWorkspaceResponseBody.d.ts +13 -4
  34. package/dist/models/CreateWorkspaceResponseBody.js.map +1 -1
  35. package/dist/models/DeleteAgentImchannelRequest.d.ts +1 -1
  36. package/dist/models/DisableConnectorResponseBody.d.ts +2 -2
  37. package/dist/models/DownloadAgentSpecViaOssRequest.d.ts +1 -1
  38. package/dist/models/DownloadAgentSpecViaOssResponseBody.d.ts +1 -1
  39. package/dist/models/EnableConnectorRequest.d.ts +1 -1
  40. package/dist/models/EnableConnectorResponseBody.d.ts +4 -4
  41. package/dist/models/GetExternalAgentResponseBody.d.ts +79 -10
  42. package/dist/models/GetExternalAgentResponseBody.js +37 -1
  43. package/dist/models/GetExternalAgentResponseBody.js.map +1 -1
  44. package/dist/models/GetManagedAgentResponseBody.d.ts +112 -20
  45. package/dist/models/GetManagedAgentResponseBody.js +37 -1
  46. package/dist/models/GetManagedAgentResponseBody.js.map +1 -1
  47. package/dist/models/GetServiceEndpointResponseBody.d.ts +8 -12
  48. package/dist/models/GetServiceEndpointResponseBody.js.map +1 -1
  49. package/dist/models/GetUserResponseBody.d.ts +15 -9
  50. package/dist/models/GetUserResponseBody.js.map +1 -1
  51. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlRequest.d.ts +43 -0
  52. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlRequest.js +62 -0
  53. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlRequest.js.map +1 -0
  54. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponse.d.ts +19 -0
  55. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponse.js +69 -0
  56. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponse.js.map +1 -0
  57. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.d.ts +110 -0
  58. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.js +98 -0
  59. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.js.map +1 -0
  60. package/dist/models/GetWorkspaceResponseBody.d.ts +16 -12
  61. package/dist/models/GetWorkspaceResponseBody.js.map +1 -1
  62. package/dist/models/ListAgentImchannelsRequest.d.ts +6 -6
  63. package/dist/models/ListAgentImchannelsResponseBody.d.ts +13 -13
  64. package/dist/models/ListAgentTeamsResponseBody.d.ts +3 -3
  65. package/dist/models/ListConnectorModelsRequest.d.ts +3 -3
  66. package/dist/models/ListConnectorModelsResponseBody.d.ts +7 -9
  67. package/dist/models/ListConnectorModelsResponseBody.js.map +1 -1
  68. package/dist/models/ListConnectorsRequest.d.ts +2 -2
  69. package/dist/models/ListConnectorsResponseBody.d.ts +6 -6
  70. package/dist/models/ListCredentialsResponseBody.d.ts +2 -2
  71. package/dist/models/ListIdentityProvidersResponseBody.d.ts +12 -23
  72. package/dist/models/ListIdentityProvidersResponseBody.js.map +1 -1
  73. package/dist/models/ListManagedAgentsResponseBody.d.ts +3 -9
  74. package/dist/models/ListManagedAgentsResponseBody.js.map +1 -1
  75. package/dist/models/ListSandboxSessionsRequest.d.ts +4 -1
  76. package/dist/models/ListSandboxSessionsRequest.js.map +1 -1
  77. package/dist/models/ListSandboxSessionsResponseBody.d.ts +80 -0
  78. package/dist/models/ListSandboxSessionsResponseBody.js.map +1 -1
  79. package/dist/models/ListSandboxesRequest.d.ts +6 -3
  80. package/dist/models/ListSandboxesRequest.js.map +1 -1
  81. package/dist/models/ListSandboxesResponseBody.d.ts +108 -0
  82. package/dist/models/ListSandboxesResponseBody.js.map +1 -1
  83. package/dist/models/ListServiceEndpointsRequest.d.ts +1 -1
  84. package/dist/models/ListServiceEndpointsResponseBody.d.ts +9 -9
  85. package/dist/models/ListTeamsRequest.d.ts +2 -2
  86. package/dist/models/ListTeamsResponseBody.d.ts +5 -5
  87. package/dist/models/ListUsersRequest.d.ts +12 -0
  88. package/dist/models/ListUsersRequest.js.map +1 -1
  89. package/dist/models/ListUsersResponseBody.d.ts +64 -2
  90. package/dist/models/ListUsersResponseBody.js.map +1 -1
  91. package/dist/models/ResetUserPasswordResponseBody.d.ts +1 -1
  92. package/dist/models/UpdateAgentSpecResponseBody.d.ts +1 -1
  93. package/dist/models/UpdateConnectorRequest.d.ts +1 -1
  94. package/dist/models/UpdateConnectorResponseBody.d.ts +3 -3
  95. package/dist/models/UpdateCredentialResponseBody.d.ts +1 -1
  96. package/dist/models/UpdateExternalAgentRequest.d.ts +53 -4
  97. package/dist/models/UpdateExternalAgentRequest.js +31 -1
  98. package/dist/models/UpdateExternalAgentRequest.js.map +1 -1
  99. package/dist/models/UpdateExternalAgentResponseBody.d.ts +77 -8
  100. package/dist/models/UpdateExternalAgentResponseBody.js +37 -1
  101. package/dist/models/UpdateExternalAgentResponseBody.js.map +1 -1
  102. package/dist/models/UpdateExternalAgentShrinkRequest.d.ts +1 -1
  103. package/dist/models/UpdateManagedAgentRequest.d.ts +92 -20
  104. package/dist/models/UpdateManagedAgentRequest.js +31 -1
  105. package/dist/models/UpdateManagedAgentRequest.js.map +1 -1
  106. package/dist/models/UpdateManagedAgentResponseBody.d.ts +121 -29
  107. package/dist/models/UpdateManagedAgentResponseBody.js +37 -1
  108. package/dist/models/UpdateManagedAgentResponseBody.js.map +1 -1
  109. package/dist/models/UpdateManagedAgentShrinkRequest.d.ts +1 -1
  110. package/dist/models/UpdateUserResponseBody.d.ts +1 -1
  111. package/dist/models/UpdateWorkspaceRequest.d.ts +2 -2
  112. package/dist/models/UpdateWorkspaceResponseBody.d.ts +13 -4
  113. package/dist/models/UpdateWorkspaceResponseBody.js.map +1 -1
  114. package/dist/models/VerifyConnectorRequest.d.ts +1 -1
  115. package/dist/models/VerifyConnectorResponseBody.d.ts +2 -2
  116. package/dist/models/VerifyWorkspaceAcrRamAuthorizationRequest.d.ts +43 -0
  117. package/dist/models/VerifyWorkspaceAcrRamAuthorizationRequest.js +62 -0
  118. package/dist/models/VerifyWorkspaceAcrRamAuthorizationRequest.js.map +1 -0
  119. package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponse.d.ts +19 -0
  120. package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponse.js +69 -0
  121. package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponse.js.map +1 -0
  122. package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.d.ts +134 -0
  123. package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.js +104 -0
  124. package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.js.map +1 -0
  125. package/dist/models/VerifyWorkspaceOssMountRamAuthorizationRequest.d.ts +4 -1
  126. package/dist/models/VerifyWorkspaceOssMountRamAuthorizationRequest.js.map +1 -1
  127. package/dist/models/VerifyWorkspaceOssMountRamAuthorizationResponseBody.d.ts +15 -0
  128. package/dist/models/VerifyWorkspaceOssMountRamAuthorizationResponseBody.js.map +1 -1
  129. package/dist/models/model.d.ts +18 -0
  130. package/dist/models/model.js +181 -145
  131. package/dist/models/model.js.map +1 -1
  132. package/package.json +1 -1
  133. package/src/client.ts +188 -70
  134. package/src/models/CreateAgentImchannelRequest.ts +4 -5
  135. package/src/models/CreateAgentImchannelResponseBody.ts +5 -7
  136. package/src/models/CreateAgentImchannelShrinkRequest.ts +1 -1
  137. package/src/models/CreateAgentSpecVersionRequest.ts +2 -2
  138. package/src/models/CreateExternalAgentBootstrapTokenResponseBody.ts +6 -6
  139. package/src/models/CreateExternalAgentRequest.ts +74 -6
  140. package/src/models/CreateExternalAgentResponseBody.ts +106 -12
  141. package/src/models/CreateExternalAgentShrinkRequest.ts +1 -1
  142. package/src/models/CreateIdentityProviderRequest.ts +7 -5
  143. package/src/models/CreateIdentityProviderResponseBody.ts +4 -2
  144. package/src/models/CreateManagedAgentRequest.ts +110 -17
  145. package/src/models/CreateManagedAgentResponseBody.ts +143 -24
  146. package/src/models/CreateManagedAgentShrinkRequest.ts +1 -1
  147. package/src/models/CreateUserRequest.ts +4 -4
  148. package/src/models/CreateUserResponseBody.ts +7 -7
  149. package/src/models/CreateWorkspaceRequest.ts +9 -0
  150. package/src/models/CreateWorkspaceResponseBody.ts +13 -4
  151. package/src/models/DeleteAgentImchannelRequest.ts +1 -1
  152. package/src/models/DisableConnectorResponseBody.ts +2 -2
  153. package/src/models/DownloadAgentSpecViaOssRequest.ts +1 -1
  154. package/src/models/DownloadAgentSpecViaOssResponseBody.ts +1 -1
  155. package/src/models/EnableConnectorRequest.ts +1 -1
  156. package/src/models/EnableConnectorResponseBody.ts +4 -4
  157. package/src/models/GetExternalAgentResponseBody.ts +106 -10
  158. package/src/models/GetManagedAgentResponseBody.ts +139 -20
  159. package/src/models/GetServiceEndpointResponseBody.ts +8 -12
  160. package/src/models/GetUserResponseBody.ts +15 -9
  161. package/src/models/GetWorkspaceAcrRamAuthorizeUrlRequest.ts +60 -0
  162. package/src/models/GetWorkspaceAcrRamAuthorizeUrlResponse.ts +40 -0
  163. package/src/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.ts +154 -0
  164. package/src/models/GetWorkspaceResponseBody.ts +16 -12
  165. package/src/models/ListAgentImchannelsRequest.ts +6 -6
  166. package/src/models/ListAgentImchannelsResponseBody.ts +13 -13
  167. package/src/models/ListAgentTeamsResponseBody.ts +3 -3
  168. package/src/models/ListConnectorModelsRequest.ts +3 -3
  169. package/src/models/ListConnectorModelsResponseBody.ts +7 -9
  170. package/src/models/ListConnectorsRequest.ts +2 -2
  171. package/src/models/ListConnectorsResponseBody.ts +6 -6
  172. package/src/models/ListCredentialsResponseBody.ts +2 -2
  173. package/src/models/ListIdentityProvidersResponseBody.ts +12 -23
  174. package/src/models/ListManagedAgentsResponseBody.ts +3 -9
  175. package/src/models/ListSandboxSessionsRequest.ts +4 -1
  176. package/src/models/ListSandboxSessionsResponseBody.ts +80 -0
  177. package/src/models/ListSandboxesRequest.ts +6 -3
  178. package/src/models/ListSandboxesResponseBody.ts +108 -0
  179. package/src/models/ListServiceEndpointsRequest.ts +1 -1
  180. package/src/models/ListServiceEndpointsResponseBody.ts +9 -9
  181. package/src/models/ListTeamsRequest.ts +2 -2
  182. package/src/models/ListTeamsResponseBody.ts +5 -5
  183. package/src/models/ListUsersRequest.ts +12 -0
  184. package/src/models/ListUsersResponseBody.ts +64 -2
  185. package/src/models/ResetUserPasswordResponseBody.ts +1 -1
  186. package/src/models/UpdateAgentSpecResponseBody.ts +1 -1
  187. package/src/models/UpdateConnectorRequest.ts +1 -1
  188. package/src/models/UpdateConnectorResponseBody.ts +3 -3
  189. package/src/models/UpdateCredentialResponseBody.ts +1 -1
  190. package/src/models/UpdateExternalAgentRequest.ts +74 -4
  191. package/src/models/UpdateExternalAgentResponseBody.ts +104 -8
  192. package/src/models/UpdateExternalAgentShrinkRequest.ts +1 -1
  193. package/src/models/UpdateManagedAgentRequest.ts +113 -20
  194. package/src/models/UpdateManagedAgentResponseBody.ts +148 -29
  195. package/src/models/UpdateManagedAgentShrinkRequest.ts +1 -1
  196. package/src/models/UpdateUserResponseBody.ts +1 -1
  197. package/src/models/UpdateWorkspaceRequest.ts +2 -2
  198. package/src/models/UpdateWorkspaceResponseBody.ts +13 -4
  199. package/src/models/VerifyConnectorRequest.ts +1 -1
  200. package/src/models/VerifyConnectorResponseBody.ts +2 -2
  201. package/src/models/VerifyWorkspaceAcrRamAuthorizationRequest.ts +60 -0
  202. package/src/models/VerifyWorkspaceAcrRamAuthorizationResponse.ts +40 -0
  203. package/src/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.ts +184 -0
  204. package/src/models/VerifyWorkspaceOssMountRamAuthorizationRequest.ts +4 -1
  205. package/src/models/VerifyWorkspaceOssMountRamAuthorizationResponseBody.ts +15 -0
  206. package/src/models/model.ts +18 -0
@@ -121,7 +121,7 @@ export class CreateManagedAgentRequestBodyEnvironment extends $dara.Model {
121
121
  export class CreateManagedAgentRequestBodyHarnessConfiguration extends $dara.Model {
122
122
  /**
123
123
  * @remarks
124
- * The Key ID used to bind a Service Account Key of the QoderCLI Connector. This parameter is optional when only one key exists, but required when multiple keys exist.
124
+ * The connector service account key.
125
125
  *
126
126
  * @example
127
127
  * key-xxxx
@@ -129,7 +129,7 @@ export class CreateManagedAgentRequestBodyHarnessConfiguration extends $dara.Mod
129
129
  connectorServiceAccountKey?: string;
130
130
  /**
131
131
  * @remarks
132
- * The Connector Key name that is populated during queries. This parameter is not used as a binding reference during writes.
132
+ * The connector service account name.
133
133
  *
134
134
  * @example
135
135
  * my-connector-key
@@ -161,12 +161,12 @@ export class CreateManagedAgentRequestBodyHarnessConfiguration extends $dara.Mod
161
161
  export class CreateManagedAgentRequestBodyHarness extends $dara.Model {
162
162
  /**
163
163
  * @remarks
164
- * The Connector binding configuration for the qodercli harness.
164
+ * The harness configuration.
165
165
  */
166
166
  configuration?: CreateManagedAgentRequestBodyHarnessConfiguration;
167
167
  /**
168
168
  * @remarks
169
- * The runtime harness type. Valid values: qwenpaw and qodercli. When the type is qodercli, binding is performed based on configuration.connectorServiceAccountKey, and the name is also populated during queries.
169
+ * The harness type.
170
170
  *
171
171
  * @example
172
172
  * qodercli
@@ -198,6 +198,68 @@ export class CreateManagedAgentRequestBodyHarness extends $dara.Model {
198
198
  }
199
199
  }
200
200
 
201
+ export class CreateManagedAgentRequestBodyModelQuota extends $dara.Model {
202
+ /**
203
+ * @remarks
204
+ * Specifies whether to enable the token quota. Default value: true. If you set this parameter to false, the token quota is disabled and existing quota rules are deleted.
205
+ *
206
+ * @example
207
+ * true
208
+ */
209
+ enabled?: boolean;
210
+ /**
211
+ * @remarks
212
+ * The quota limit type. This parameter is required by backend validation when the quota is enabled. Fixed value: token.
213
+ *
214
+ * @example
215
+ * token
216
+ */
217
+ limitType?: string;
218
+ /**
219
+ * @remarks
220
+ * The quota statistical period. This parameter is required by backend validation when the quota is enabled. Valid values:
221
+ * - day: daily.
222
+ * - month: monthly.
223
+ *
224
+ * @example
225
+ * day
226
+ */
227
+ periodType?: string;
228
+ /**
229
+ * @remarks
230
+ * The maximum number of tokens that can be consumed within a single period. This parameter is required by backend validation when the quota is enabled. The value must be greater than 0.
231
+ *
232
+ * @example
233
+ * 1000000
234
+ */
235
+ usageLimit?: number;
236
+ static names(): { [key: string]: string } {
237
+ return {
238
+ enabled: 'enabled',
239
+ limitType: 'limitType',
240
+ periodType: 'periodType',
241
+ usageLimit: 'usageLimit',
242
+ };
243
+ }
244
+
245
+ static types(): { [key: string]: any } {
246
+ return {
247
+ enabled: 'boolean',
248
+ limitType: 'string',
249
+ periodType: 'string',
250
+ usageLimit: 'number',
251
+ };
252
+ }
253
+
254
+ validate() {
255
+ super.validate();
256
+ }
257
+
258
+ constructor(map?: { [key: string]: any }) {
259
+ super(map);
260
+ }
261
+ }
262
+
201
263
  export class CreateManagedAgentRequestBodyModel extends $dara.Model {
202
264
  /**
203
265
  * @remarks
@@ -217,10 +279,16 @@ export class CreateManagedAgentRequestBodyModel extends $dara.Model {
217
279
  * qwen-max
218
280
  */
219
281
  modelName?: string;
282
+ /**
283
+ * @remarks
284
+ * The model token quota configuration. If not specified, no quota is configured.
285
+ */
286
+ quota?: CreateManagedAgentRequestBodyModelQuota;
220
287
  static names(): { [key: string]: string } {
221
288
  return {
222
289
  modelConnectionId: 'modelConnectionId',
223
290
  modelName: 'modelName',
291
+ quota: 'quota',
224
292
  };
225
293
  }
226
294
 
@@ -228,10 +296,14 @@ export class CreateManagedAgentRequestBodyModel extends $dara.Model {
228
296
  return {
229
297
  modelConnectionId: 'string',
230
298
  modelName: 'string',
299
+ quota: CreateManagedAgentRequestBodyModelQuota,
231
300
  };
232
301
  }
233
302
 
234
303
  validate() {
304
+ if(this.quota && typeof (this.quota as any).validate === 'function') {
305
+ (this.quota as any).validate();
306
+ }
235
307
  super.validate();
236
308
  }
237
309
 
@@ -343,22 +415,31 @@ export class CreateManagedAgentRequestBodyNetwork extends $dara.Model {
343
415
  export class CreateManagedAgentRequestBodyOssMounts extends $dara.Model {
344
416
  /**
345
417
  * @remarks
346
- * The OSS bucket name. This parameter is required for each mount entry as validated by the backend.
418
+ * The OSS bucket name. This parameter is required by backend validation for each mount entry.
419
+ *
420
+ * @example
421
+ * bucket-001
347
422
  */
348
423
  bucketName?: string;
349
424
  /**
350
425
  * @remarks
351
- * The absolute mount path in the container. This parameter is required for each mount entry as validated by the backend.
426
+ * The absolute mount path in the container. This parameter is required by backend validation for each mount entry.
427
+ *
428
+ * @example
429
+ * /mnt/oss/datasets
352
430
  */
353
431
  mountPath?: string;
354
432
  /**
355
433
  * @remarks
356
- * The relative object prefix in the bucket. If this parameter is not specified, the entire bucket is mounted.
434
+ * The relative object prefix in the bucket. If not specified, the entire bucket is mounted.
435
+ *
436
+ * @example
437
+ * datasets
357
438
  */
358
439
  path?: string;
359
440
  /**
360
441
  * @remarks
361
- * Specifies whether to mount as read-only. Default value: false.
442
+ * Specifies whether to mount in read-only mode. Default value: false.
362
443
  */
363
444
  readOnly?: boolean;
364
445
  static names(): { [key: string]: string } {
@@ -423,27 +504,39 @@ export class CreateManagedAgentRequestBodyRuntimeCompute extends $dara.Model {
423
504
  export class CreateManagedAgentRequestBodyRuntimeHpa extends $dara.Model {
424
505
  /**
425
506
  * @remarks
426
- * Specifies whether to enable auto-scaling. This parameter is required when hpa is present as validated by the backend.
507
+ * Specifies whether to enable auto scaling. This parameter is required by backend validation when hpa is present.
427
508
  */
428
509
  enabled?: boolean;
429
510
  /**
430
511
  * @remarks
431
- * The maximum number of active sessions per Sandbox. This parameter is required when hpa is present as validated by the backend.
512
+ * The maximum number of active sessions per sandbox. This parameter is required by backend validation when hpa is present.
513
+ *
514
+ * @example
515
+ * 5
432
516
  */
433
517
  maxConcurrentSessionsPerSandbox?: number;
434
518
  /**
435
519
  * @remarks
436
- * The maximum number of Sandboxes. This parameter is required when HPA is enabled and must be no less than the minimum value.
520
+ * The maximum number of sandboxes. This parameter is required when HPA is enabled and the value must be no less than the minimum value.
521
+ *
522
+ * @example
523
+ * 3
437
524
  */
438
525
  maxSandboxCount?: number;
439
526
  /**
440
527
  * @remarks
441
- * The minimum number of Sandboxes. This parameter is required when HPA is enabled.
528
+ * The minimum number of sandboxes. This parameter is required when HPA is enabled.
529
+ *
530
+ * @example
531
+ * 1
442
532
  */
443
533
  minSandboxCount?: number;
444
534
  /**
445
535
  * @remarks
446
- * The session reclamation time after inactivity, in seconds. This parameter is required when hpa is present as validated by the backend.
536
+ * The time in seconds before an inactive session is reclaimed. This parameter is required by backend validation when hpa is present.
537
+ *
538
+ * @example
539
+ * 3600
447
540
  */
448
541
  sessionTtlSeconds?: number;
449
542
  static names(): { [key: string]: string } {
@@ -478,7 +571,7 @@ export class CreateManagedAgentRequestBodyRuntimeHpa extends $dara.Model {
478
571
  export class CreateManagedAgentRequestBodyRuntimeSessionPolicy extends $dara.Model {
479
572
  /**
480
573
  * @remarks
481
- * The HTTP header name used for session affinity. This parameter takes effect when sessionPolicy.type is set to ISOLATED_HEADER_FIELD.
574
+ * The name of the HTTP header used for session affinity. This parameter takes effect when sessionPolicy.type is set to ISOLATED_HEADER_FIELD.
482
575
  *
483
576
  * @example
484
577
  * X-Session-Id
@@ -527,7 +620,7 @@ export class CreateManagedAgentRequestBodyRuntime extends $dara.Model {
527
620
  compute?: CreateManagedAgentRequestBodyRuntimeCompute;
528
621
  /**
529
622
  * @remarks
530
- * The Sandbox auto-scaling and session configuration.
623
+ * The sandbox auto scaling and session configuration.
531
624
  */
532
625
  hpa?: CreateManagedAgentRequestBodyRuntimeHpa;
533
626
  /**
@@ -791,7 +884,7 @@ export class CreateManagedAgentRequestBody extends $dara.Model {
791
884
  environment?: CreateManagedAgentRequestBodyEnvironment;
792
885
  /**
793
886
  * @remarks
794
- * The runtime harness of the managed agent. Valid values: qwenpaw and qodercli.
887
+ * The agent harness.
795
888
  */
796
889
  harness?: CreateManagedAgentRequestBodyHarness;
797
890
  /**
@@ -939,7 +1032,7 @@ export class CreateManagedAgentRequest extends $dara.Model {
939
1032
  body?: CreateManagedAgentRequestBody;
940
1033
  /**
941
1034
  * @remarks
942
- * The reserved idempotency token. The backend does not provide idempotency guarantees in the current phase.
1035
+ * The reserved idempotency token. The backend does not provide idempotency guarantees in the current version.
943
1036
  *
944
1037
  * @example
945
1038
  * client-token-1
@@ -121,7 +121,7 @@ export class CreateManagedAgentResponseBodyDataEnvironment extends $dara.Model {
121
121
  export class CreateManagedAgentResponseBodyDataHarnessConfiguration extends $dara.Model {
122
122
  /**
123
123
  * @remarks
124
- * The Key ID used to bind a Service Account Key of the QoderCLI Connector. This parameter is optional when only one key exists, but required when multiple keys exist.
124
+ * The connector service account key.
125
125
  *
126
126
  * @example
127
127
  * key-xxxx
@@ -129,7 +129,7 @@ export class CreateManagedAgentResponseBodyDataHarnessConfiguration extends $dar
129
129
  connectorServiceAccountKey?: string;
130
130
  /**
131
131
  * @remarks
132
- * The Connector Key name that is populated during queries. This parameter is not used as a binding reference during writes.
132
+ * The connector service account name.
133
133
  *
134
134
  * @example
135
135
  * my-connector-key
@@ -161,12 +161,12 @@ export class CreateManagedAgentResponseBodyDataHarnessConfiguration extends $dar
161
161
  export class CreateManagedAgentResponseBodyDataHarness extends $dara.Model {
162
162
  /**
163
163
  * @remarks
164
- * The Connector binding configuration for the qodercli harness.
164
+ * The harness configuration.
165
165
  */
166
166
  configuration?: CreateManagedAgentResponseBodyDataHarnessConfiguration;
167
167
  /**
168
168
  * @remarks
169
- * The runtime harness type. Valid values: qwenpaw and qodercli. When the type is qodercli, binding is performed based on configuration.connectorServiceAccountKey, and the name is also populated during queries.
169
+ * The harness type.
170
170
  *
171
171
  * @example
172
172
  * qodercli
@@ -198,13 +198,101 @@ export class CreateManagedAgentResponseBodyDataHarness extends $dara.Model {
198
198
  }
199
199
  }
200
200
 
201
+ export class CreateManagedAgentResponseBodyDataModelQuota extends $dara.Model {
202
+ /**
203
+ * @remarks
204
+ * Indicates whether the quota is enabled. This field is not returned if no quota is configured.
205
+ *
206
+ * @example
207
+ * true
208
+ */
209
+ enabled?: boolean;
210
+ /**
211
+ * @remarks
212
+ * The quota limit type. Currently, only token is supported.
213
+ *
214
+ * @example
215
+ * token
216
+ */
217
+ limitType?: string;
218
+ /**
219
+ * @remarks
220
+ * Indicates whether the quota has been exceeded in the current period. This field is read-only and returned by the backend.
221
+ *
222
+ * @example
223
+ * false
224
+ */
225
+ overLimit?: boolean;
226
+ /**
227
+ * @remarks
228
+ * The quota statistical period. The value day indicates a daily period, and the value month indicates a monthly period.
229
+ *
230
+ * @example
231
+ * day
232
+ */
233
+ periodType?: string;
234
+ /**
235
+ * @remarks
236
+ * The gateway quota rule status. This field is read-only and returned by the backend.
237
+ *
238
+ * @example
239
+ * ACTIVE
240
+ */
241
+ ruleStatus?: string;
242
+ /**
243
+ * @remarks
244
+ * The maximum number of tokens that can be consumed within a single period.
245
+ *
246
+ * @example
247
+ * 1000000
248
+ */
249
+ usageLimit?: number;
250
+ /**
251
+ * @remarks
252
+ * The number of tokens consumed in the current period. This field is read-only and returned by the backend.
253
+ *
254
+ * @example
255
+ * 12345
256
+ */
257
+ usedAmount?: number;
258
+ static names(): { [key: string]: string } {
259
+ return {
260
+ enabled: 'enabled',
261
+ limitType: 'limitType',
262
+ overLimit: 'overLimit',
263
+ periodType: 'periodType',
264
+ ruleStatus: 'ruleStatus',
265
+ usageLimit: 'usageLimit',
266
+ usedAmount: 'usedAmount',
267
+ };
268
+ }
269
+
270
+ static types(): { [key: string]: any } {
271
+ return {
272
+ enabled: 'boolean',
273
+ limitType: 'string',
274
+ overLimit: 'boolean',
275
+ periodType: 'string',
276
+ ruleStatus: 'string',
277
+ usageLimit: 'number',
278
+ usedAmount: 'number',
279
+ };
280
+ }
281
+
282
+ validate() {
283
+ super.validate();
284
+ }
285
+
286
+ constructor(map?: { [key: string]: any }) {
287
+ super(map);
288
+ }
289
+ }
290
+
201
291
  export class CreateManagedAgentResponseBodyDataModel extends $dara.Model {
202
292
  /**
203
293
  * @remarks
204
294
  * The model connection ID.
205
295
  *
206
- * This parameter is required.
207
- *
208
296
  * @example
209
297
  * mc-1
210
298
  */
@@ -217,10 +305,16 @@ export class CreateManagedAgentResponseBodyDataModel extends $dara.Model {
217
305
  * qwen-max
218
306
  */
219
307
  modelName?: string;
308
+ /**
309
+ * @remarks
310
+ * The model token quota configuration and the quota usage status in the current period. This field is empty if no quota is configured.
311
+ */
312
+ quota?: CreateManagedAgentResponseBodyDataModelQuota;
220
313
  static names(): { [key: string]: string } {
221
314
  return {
222
315
  modelConnectionId: 'modelConnectionId',
223
316
  modelName: 'modelName',
317
+ quota: 'quota',
224
318
  };
225
319
  }
226
320
 
@@ -228,10 +322,14 @@ export class CreateManagedAgentResponseBodyDataModel extends $dara.Model {
228
322
  return {
229
323
  modelConnectionId: 'string',
230
324
  modelName: 'string',
325
+ quota: CreateManagedAgentResponseBodyDataModelQuota,
231
326
  };
232
327
  }
233
328
 
234
329
  validate() {
330
+ if(this.quota && typeof (this.quota as any).validate === 'function') {
331
+ (this.quota as any).validate();
332
+ }
235
333
  super.validate();
236
334
  }
237
335
 
@@ -343,22 +441,31 @@ export class CreateManagedAgentResponseBodyDataNetwork extends $dara.Model {
343
441
  export class CreateManagedAgentResponseBodyDataOssMounts extends $dara.Model {
344
442
  /**
345
443
  * @remarks
346
- * The OSS bucket name. This parameter is required for each mount entry as validated by the backend.
444
+ * The OSS bucket name. This parameter is required by backend validation for each mount entry.
445
+ *
446
+ * @example
447
+ * bucket-001
347
448
  */
348
449
  bucketName?: string;
349
450
  /**
350
451
  * @remarks
351
- * The absolute mount path in the container. This parameter is required for each mount entry as validated by the backend.
452
+ * The absolute mount path in the container. This parameter is required by backend validation for each mount entry.
453
+ *
454
+ * @example
455
+ * /mnt/oss/datasets
352
456
  */
353
457
  mountPath?: string;
354
458
  /**
355
459
  * @remarks
356
- * The relative object prefix in the bucket. If this parameter is not specified, the entire bucket is mounted.
460
+ * The relative object prefix in the bucket. If not specified, the entire bucket is mounted.
461
+ *
462
+ * @example
463
+ * datasets
357
464
  */
358
465
  path?: string;
359
466
  /**
360
467
  * @remarks
361
- * Specifies whether to mount as read-only. Default value: false.
468
+ * Specifies whether to mount in read-only mode. Default value: false.
362
469
  */
363
470
  readOnly?: boolean;
364
471
  static names(): { [key: string]: string } {
@@ -423,27 +530,39 @@ export class CreateManagedAgentResponseBodyDataRuntimeCompute extends $dara.Mode
423
530
  export class CreateManagedAgentResponseBodyDataRuntimeHpa extends $dara.Model {
424
531
  /**
425
532
  * @remarks
426
- * Specifies whether to enable auto-scaling. This parameter is required when hpa is present as validated by the backend.
533
+ * Specifies whether to enable auto scaling. This parameter is required by backend validation when hpa is present.
427
534
  */
428
535
  enabled?: boolean;
429
536
  /**
430
537
  * @remarks
431
- * The maximum number of active sessions per Sandbox. This parameter is required when hpa is present as validated by the backend.
538
+ * The maximum number of active sessions per sandbox. This parameter is required by backend validation when hpa is present.
539
+ *
540
+ * @example
541
+ * 5
432
542
  */
433
543
  maxConcurrentSessionsPerSandbox?: number;
434
544
  /**
435
545
  * @remarks
436
- * The maximum number of Sandboxes. This parameter is required when HPA is enabled and must be no less than the minimum value.
546
+ * The maximum number of sandboxes. This parameter is required when HPA is enabled and the value must be no less than the minimum value.
547
+ *
548
+ * @example
549
+ * 3
437
550
  */
438
551
  maxSandboxCount?: number;
439
552
  /**
440
553
  * @remarks
441
- * The minimum number of Sandboxes. This parameter is required when HPA is enabled.
554
+ * The minimum number of sandboxes. This parameter is required when HPA is enabled.
555
+ *
556
+ * @example
557
+ * 1
442
558
  */
443
559
  minSandboxCount?: number;
444
560
  /**
445
561
  * @remarks
446
- * The session reclamation time after inactivity, in seconds. This parameter is required when hpa is present as validated by the backend.
562
+ * The time in seconds before an inactive session is reclaimed. This parameter is required by backend validation when hpa is present.
563
+ *
564
+ * @example
565
+ * 3600
447
566
  */
448
567
  sessionTtlSeconds?: number;
449
568
  static names(): { [key: string]: string } {
@@ -478,7 +597,7 @@ export class CreateManagedAgentResponseBodyDataRuntimeHpa extends $dara.Model {
478
597
  export class CreateManagedAgentResponseBodyDataRuntimeSessionPolicy extends $dara.Model {
479
598
  /**
480
599
  * @remarks
481
- * The HTTP header name used for session affinity. This parameter takes effect when sessionPolicy.type is set to ISOLATED_HEADER_FIELD.
600
+ * The name of the HTTP header used for session affinity. This parameter takes effect when sessionPolicy.type is set to ISOLATED_HEADER_FIELD.
482
601
  *
483
602
  * @example
484
603
  * X-Session-Id
@@ -527,7 +646,7 @@ export class CreateManagedAgentResponseBodyDataRuntime extends $dara.Model {
527
646
  compute?: CreateManagedAgentResponseBodyDataRuntimeCompute;
528
647
  /**
529
648
  * @remarks
530
- * The Sandbox auto-scaling and session configuration.
649
+ * The sandbox auto scaling and session configuration.
531
650
  */
532
651
  hpa?: CreateManagedAgentResponseBodyDataRuntimeHpa;
533
652
  /**
@@ -823,7 +942,7 @@ export class CreateManagedAgentResponseBodyData extends $dara.Model {
823
942
  environment?: CreateManagedAgentResponseBodyDataEnvironment;
824
943
  /**
825
944
  * @remarks
826
- * The runtime harness of the managed agent. Valid values: qwenpaw and qodercli.
945
+ * The agent harness.
827
946
  */
828
947
  harness?: CreateManagedAgentResponseBodyDataHarness;
829
948
  /**
@@ -888,7 +1007,7 @@ export class CreateManagedAgentResponseBodyData extends $dara.Model {
888
1007
  runtime?: CreateManagedAgentResponseBodyDataRuntime;
889
1008
  /**
890
1009
  * @remarks
891
- * The instance count of the managed agent grouped by sandbox phase. Current keys: PENDING (being created or initialized), RUNNING (running), HIBERNATING (entering hibernation), HIBERNATED (hibernated), RESUMING (resuming), TERMINATING (being terminated), and FAILED (runtime failure). Only phases that actually occur are returned. A missing key is treated as 0. This field is a dynamic map and new keys may be added in the future. You can use FAILED > 0 on the frontend to determine whether abnormal instances exist.
1010
+ * The number of managed agent instances grouped by sandbox phase. Current keys: PENDING (being created or initialized), RUNNING (running), HIBERNATING (entering hibernation), HIBERNATED (hibernated), RESUMING (resuming), TERMINATING (being terminated), and FAILED (runtime failure). Only phases that actually occur are returned. Missing keys should be treated as 0. This field is a dynamic map, and new keys may be added in the future. You can use FAILED > 0 to determine whether any instances have failed.
892
1011
  */
893
1012
  sandboxPhaseCounts?: { [key: string]: number };
894
1013
  /**
@@ -898,7 +1017,7 @@ export class CreateManagedAgentResponseBodyData extends $dara.Model {
898
1017
  skills?: CreateManagedAgentResponseBodyDataSkills[];
899
1018
  /**
900
1019
  * @remarks
901
- * The managed agent status.
1020
+ * The status of the managed agent.
902
1021
  *
903
1022
  * @example
904
1023
  * Running
@@ -911,7 +1030,7 @@ export class CreateManagedAgentResponseBodyData extends $dara.Model {
911
1030
  subAgents?: CreateManagedAgentResponseBodyDataSubAgents[];
912
1031
  /**
913
1032
  * @remarks
914
- * The template configuration information.
1033
+ * The template configuration.
915
1034
  */
916
1035
  template?: CreateManagedAgentResponseBodyDataTemplate;
917
1036
  /**
@@ -921,7 +1040,7 @@ export class CreateManagedAgentResponseBodyData extends $dara.Model {
921
1040
  tools?: CreateManagedAgentResponseBodyDataTools[];
922
1041
  /**
923
1042
  * @remarks
924
- * The update time in RFC 3339 format.
1043
+ * The time when the managed agent was last updated, in RFC 3339 format.
925
1044
  *
926
1045
  * @example
927
1046
  * 2026-01-01T00:00:00Z
@@ -1038,7 +1157,7 @@ export class CreateManagedAgentResponseBodyData extends $dara.Model {
1038
1157
  export class CreateManagedAgentResponseBody extends $dara.Model {
1039
1158
  /**
1040
1159
  * @remarks
1041
- * The business status code. The value is SUCCESS if the operation is successful.
1160
+ * The business status code. The value SUCCESS is returned if the operation is successful.
1042
1161
  *
1043
1162
  * @example
1044
1163
  * SUCCESS
@@ -1059,7 +1178,7 @@ export class CreateManagedAgentResponseBody extends $dara.Model {
1059
1178
  httpStatusCode?: number;
1060
1179
  /**
1061
1180
  * @remarks
1062
- * The message returned for the request.
1181
+ * The result message of the request.
1063
1182
  *
1064
1183
  * @example
1065
1184
  * success
@@ -10,7 +10,7 @@ export class CreateManagedAgentShrinkRequest extends $dara.Model {
10
10
  bodyShrink?: string;
11
11
  /**
12
12
  * @remarks
13
- * The reserved idempotency token. The backend does not provide idempotency guarantees in the current phase.
13
+ * The reserved idempotency token. The backend does not provide idempotency guarantees in the current version.
14
14
  *
15
15
  * @example
16
16
  * client-token-1
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class CreateUserRequestBody extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The display name of the user. The display name must be 1 to 32 characters in length.
8
+ * The display name of the user. The name must be 1 to 32 characters in length.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -15,7 +15,7 @@ export class CreateUserRequestBody extends $dara.Model {
15
15
  displayName?: string;
16
16
  /**
17
17
  * @remarks
18
- * The email address of the user. The email address can be up to 256 characters in length.
18
+ * The email address of the user. The address can be up to 256 characters in length.
19
19
  *
20
20
  * @example
21
21
  * user-01@example.com
@@ -23,7 +23,7 @@ export class CreateUserRequestBody extends $dara.Model {
23
23
  email?: string;
24
24
  /**
25
25
  * @remarks
26
- * The username. The username must be unique within the workspace and can contain only lowercase letters, digits, and hyphens. It must start and end with a lowercase letter or digit and be 1 to 32 characters in length. Reserved names such as manager, admin, or names starting with worker- cannot be used.
26
+ * The username. The name must be unique within the workspace and can contain only lowercase letters, digits, and hyphens. It must start and end with a lowercase letter or digit and must be 1 to 32 characters in length. Reserved names such as manager, admin, or names starting with worker- cannot be used.
27
27
  *
28
28
  * This parameter is required.
29
29
  *
@@ -41,7 +41,7 @@ export class CreateUserRequestBody extends $dara.Model {
41
41
  note?: string;
42
42
  /**
43
43
  * @remarks
44
- * The initial password of the user. The password must be 8 to 32 characters in length and contain uppercase letters, lowercase letters, digits, and special characters. The password cannot contain the username. If this parameter is not specified, the server generates a random password and returns it in the initialPassword field of the response.
44
+ * The initial password of the user. The password must be 8 to 32 characters in length and must contain uppercase letters, lowercase letters, digits, and special characters. The password cannot contain the username. If this parameter is not specified, the server generates a random password and returns it in the initialPassword field of the response.
45
45
  *
46
46
  * @example
47
47
  * Example@2026
@@ -13,7 +13,7 @@ export class CreateUserResponseBodyData extends $dara.Model {
13
13
  agentCoreUserId?: string;
14
14
  /**
15
15
  * @remarks
16
- * The authentication method of the user. A value of password indicates local password authentication within the workspace. Values of dingtalk and feishu indicate that the user is synchronized and authenticated by the corresponding external identity provider.
16
+ * The authentication method of the user. password indicates local password authentication within the workspace. dingtalk and feishu indicate that the user is synchronized and authenticated by the corresponding external identity provider.
17
17
  *
18
18
  * @example
19
19
  * password
@@ -21,7 +21,7 @@ export class CreateUserResponseBodyData extends $dara.Model {
21
21
  authMethod?: string;
22
22
  /**
23
23
  * @remarks
24
- * The time when the user was created, in UTC and RFC 3339 format.
24
+ * The creation time in UTC, formatted in RFC 3339.
25
25
  *
26
26
  * @example
27
27
  * 2026-08-12T03:04:05Z
@@ -29,7 +29,7 @@ export class CreateUserResponseBodyData extends $dara.Model {
29
29
  createdAt?: string;
30
30
  /**
31
31
  * @remarks
32
- * The display name of the user. The display name must be 1 to 32 characters in length.
32
+ * The display name of the user. The name must be 1 to 32 characters in length.
33
33
  *
34
34
  * @example
35
35
  * John Smith
@@ -37,7 +37,7 @@ export class CreateUserResponseBodyData extends $dara.Model {
37
37
  displayName?: string;
38
38
  /**
39
39
  * @remarks
40
- * The email address of the user. The email address can be up to 256 characters in length.
40
+ * The email address of the user. The address can be up to 256 characters in length.
41
41
  *
42
42
  * @example
43
43
  * user-01@example.com
@@ -45,7 +45,7 @@ export class CreateUserResponseBodyData extends $dara.Model {
45
45
  email?: string;
46
46
  /**
47
47
  * @remarks
48
- * The initial password of the user. If password was specified during creation, the specified password is returned. If password was not specified, a random password generated by the server is returned.
48
+ * The initial password of the user. If password was specified during creation, the specified password is returned. Otherwise, the server-generated random password is returned.
49
49
  *
50
50
  * @example
51
51
  * Example@2026
@@ -53,7 +53,7 @@ export class CreateUserResponseBodyData extends $dara.Model {
53
53
  initialPassword?: string;
54
54
  /**
55
55
  * @remarks
56
- * The username. The username is unique within the workspace and can contain only lowercase letters, digits, and hyphens. It must start and end with a lowercase letter or digit and be 1 to 32 characters in length.
56
+ * The username. The name is unique within the workspace and can contain only lowercase letters, digits, and hyphens. It must start and end with a lowercase letter or digit and must be 1 to 32 characters in length.
57
57
  *
58
58
  * @example
59
59
  * user-01
@@ -85,7 +85,7 @@ export class CreateUserResponseBodyData extends $dara.Model {
85
85
  status?: string;
86
86
  /**
87
87
  * @remarks
88
- * The time when the user was last modified, in UTC and RFC 3339 format.
88
+ * The time of the last modification in UTC, formatted in RFC 3339.
89
89
  *
90
90
  * @example
91
91
  * 2026-08-12T03:04:05Z