@alicloud/agentcore20260804 2.1.1 → 2.2.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 (107) hide show
  1. package/dist/client.d.ts +88 -22
  2. package/dist/client.js +175 -22
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateManagedAgentRequest.d.ts +95 -20
  5. package/dist/models/CreateManagedAgentRequest.js +59 -1
  6. package/dist/models/CreateManagedAgentRequest.js.map +1 -1
  7. package/dist/models/CreateManagedAgentResponseBody.d.ts +171 -25
  8. package/dist/models/CreateManagedAgentResponseBody.js +119 -1
  9. package/dist/models/CreateManagedAgentResponseBody.js.map +1 -1
  10. package/dist/models/DataResourceValue.d.ts +15 -15
  11. package/dist/models/DataResourceValue.js +4 -4
  12. package/dist/models/DataResourceValue.js.map +1 -1
  13. package/dist/models/ForcePublishSkillVersionRequest.d.ts +8 -0
  14. package/dist/models/ForcePublishSkillVersionRequest.js +2 -0
  15. package/dist/models/ForcePublishSkillVersionRequest.js.map +1 -1
  16. package/dist/models/GetAgentSpecLatestResponseBody.d.ts +28 -0
  17. package/dist/models/GetAgentSpecLatestResponseBody.js +29 -1
  18. package/dist/models/GetAgentSpecLatestResponseBody.js.map +1 -1
  19. package/dist/models/GetManagedAgentResponseBody.d.ts +176 -30
  20. package/dist/models/GetManagedAgentResponseBody.js +119 -1
  21. package/dist/models/GetManagedAgentResponseBody.js.map +1 -1
  22. package/dist/models/GetSkillDetailResponseBody.d.ts +20 -4
  23. package/dist/models/GetSkillDetailResponseBody.js +4 -0
  24. package/dist/models/GetSkillDetailResponseBody.js.map +1 -1
  25. package/dist/models/GetSkillVersionDetailResponseBody.d.ts +1 -1
  26. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlRequest.d.ts +43 -0
  27. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlRequest.js +62 -0
  28. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlRequest.js.map +1 -0
  29. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponse.d.ts +19 -0
  30. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponse.js +69 -0
  31. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponse.js.map +1 -0
  32. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBody.d.ts +78 -0
  33. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBody.js +90 -0
  34. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBody.js.map +1 -0
  35. package/dist/models/ListAgentSpecsRequest.d.ts +4 -4
  36. package/dist/models/ListAgentSpecsResponseBody.d.ts +49 -2
  37. package/dist/models/ListAgentSpecsResponseBody.js +29 -1
  38. package/dist/models/ListAgentSpecsResponseBody.js.map +1 -1
  39. package/dist/models/ListSkillReferencesRequest.d.ts +45 -0
  40. package/dist/models/ListSkillReferencesRequest.js +64 -0
  41. package/dist/models/ListSkillReferencesRequest.js.map +1 -0
  42. package/dist/models/ListSkillReferencesResponse.d.ts +19 -0
  43. package/dist/models/ListSkillReferencesResponse.js +69 -0
  44. package/dist/models/ListSkillReferencesResponse.js.map +1 -0
  45. package/dist/models/ListSkillReferencesResponseBody.d.ts +135 -0
  46. package/dist/models/ListSkillReferencesResponseBody.js +122 -0
  47. package/dist/models/ListSkillReferencesResponseBody.js.map +1 -0
  48. package/dist/models/ListSkillsResponseBody.d.ts +5 -0
  49. package/dist/models/ListSkillsResponseBody.js +2 -0
  50. package/dist/models/ListSkillsResponseBody.js.map +1 -1
  51. package/dist/models/PrecheckSkillUploadViaOssResponseBody.d.ts +26 -2
  52. package/dist/models/PrecheckSkillUploadViaOssResponseBody.js +6 -0
  53. package/dist/models/PrecheckSkillUploadViaOssResponseBody.js.map +1 -1
  54. package/dist/models/PublishSkillVersionRequest.d.ts +8 -0
  55. package/dist/models/PublishSkillVersionRequest.js +2 -0
  56. package/dist/models/PublishSkillVersionRequest.js.map +1 -1
  57. package/dist/models/UpdateManagedAgentRequest.d.ts +121 -29
  58. package/dist/models/UpdateManagedAgentRequest.js +59 -1
  59. package/dist/models/UpdateManagedAgentRequest.js.map +1 -1
  60. package/dist/models/UpdateManagedAgentResponseBody.d.ts +231 -37
  61. package/dist/models/UpdateManagedAgentResponseBody.js +119 -1
  62. package/dist/models/UpdateManagedAgentResponseBody.js.map +1 -1
  63. package/dist/models/UpdateManagedAgentShrinkRequest.d.ts +1 -1
  64. package/dist/models/UpdateSkillLabelsRequest.d.ts +1 -1
  65. package/dist/models/UploadSkillViaOssRequest.d.ts +1 -1
  66. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationRequest.d.ts +23 -0
  67. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationRequest.js +58 -0
  68. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationRequest.js.map +1 -0
  69. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponse.d.ts +19 -0
  70. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponse.js +69 -0
  71. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponse.js.map +1 -0
  72. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponseBody.d.ts +78 -0
  73. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponseBody.js +90 -0
  74. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponseBody.js.map +1 -0
  75. package/dist/models/model.d.ts +31 -0
  76. package/dist/models/model.js +206 -143
  77. package/dist/models/model.js.map +1 -1
  78. package/package.json +1 -1
  79. package/src/client.ts +189 -22
  80. package/src/models/CreateManagedAgentRequest.ts +135 -20
  81. package/src/models/CreateManagedAgentResponseBody.ts +253 -25
  82. package/src/models/DataResourceValue.ts +17 -17
  83. package/src/models/ForcePublishSkillVersionRequest.ts +10 -0
  84. package/src/models/GetAgentSpecLatestResponseBody.ts +47 -0
  85. package/src/models/GetManagedAgentResponseBody.ts +258 -30
  86. package/src/models/GetSkillDetailResponseBody.ts +24 -4
  87. package/src/models/GetSkillVersionDetailResponseBody.ts +1 -1
  88. package/src/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlRequest.ts +60 -0
  89. package/src/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponse.ts +40 -0
  90. package/src/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBody.ts +114 -0
  91. package/src/models/ListAgentSpecsRequest.ts +4 -4
  92. package/src/models/ListAgentSpecsResponseBody.ts +68 -2
  93. package/src/models/ListSkillReferencesRequest.ts +64 -0
  94. package/src/models/ListSkillReferencesResponse.ts +40 -0
  95. package/src/models/ListSkillReferencesResponseBody.ts +194 -0
  96. package/src/models/ListSkillsResponseBody.ts +7 -0
  97. package/src/models/PrecheckSkillUploadViaOssResponseBody.ts +32 -2
  98. package/src/models/PublishSkillVersionRequest.ts +10 -0
  99. package/src/models/UpdateManagedAgentRequest.ts +161 -29
  100. package/src/models/UpdateManagedAgentResponseBody.ts +313 -37
  101. package/src/models/UpdateManagedAgentShrinkRequest.ts +1 -1
  102. package/src/models/UpdateSkillLabelsRequest.ts +1 -1
  103. package/src/models/UploadSkillViaOssRequest.ts +1 -1
  104. package/src/models/VerifyWorkspaceAgenticFsMountRamAuthorizationRequest.ts +36 -0
  105. package/src/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponse.ts +40 -0
  106. package/src/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponseBody.ts +114 -0
  107. package/src/models/model.ts +31 -0
@@ -2,6 +2,66 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class CreateManagedAgentRequestBodyAgenticFsMounts extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The subdirectory under /mnt/agenticfs/ in the container. This field is validated as required by the backend for each mount entry. Mount targets must not be duplicated or have parent-child overlaps.
9
+ *
10
+ * @example
11
+ * /mnt/agenticfs/data
12
+ */
13
+ mountPath?: string;
14
+ /**
15
+ * @remarks
16
+ * A non-empty relative directory that exists under the AccessPoint. This field is validated as required by the backend for each mount entry. Root directories, absolute paths, and parent directory segments are not allowed.
17
+ *
18
+ * @example
19
+ * workspace/data
20
+ */
21
+ path?: string;
22
+ /**
23
+ * @remarks
24
+ * Specifies whether to mount in read-only mode. Default value: false. This is not a RAM role read-only policy.
25
+ *
26
+ * @example
27
+ * false
28
+ */
29
+ readOnly?: boolean;
30
+ /**
31
+ * @remarks
32
+ * The AccessPoint domain name. This field is validated as required by the backend for each mount entry. Do not include the protocol, port, or path. Use the DomainName value from the NAS ListAccessPoints response.
33
+ *
34
+ * @example
35
+ * ap-0123456789abcdef0.0123456789-vlm36.cn-hangzhou.nas.aliyuncs.com
36
+ */
37
+ server?: string;
38
+ static names(): { [key: string]: string } {
39
+ return {
40
+ mountPath: 'mountPath',
41
+ path: 'path',
42
+ readOnly: 'readOnly',
43
+ server: 'server',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ mountPath: 'string',
50
+ path: 'string',
51
+ readOnly: 'boolean',
52
+ server: 'string',
53
+ };
54
+ }
55
+
56
+ validate() {
57
+ super.validate();
58
+ }
59
+
60
+ constructor(map?: { [key: string]: any }) {
61
+ super(map);
62
+ }
63
+ }
64
+
5
65
  export class CreateManagedAgentRequestBodyEnvironmentCredentialReferences extends $dara.Model {
6
66
  /**
7
67
  * @remarks
@@ -161,12 +221,12 @@ export class CreateManagedAgentRequestBodyHarnessConfiguration extends $dara.Mod
161
221
  export class CreateManagedAgentRequestBodyHarness extends $dara.Model {
162
222
  /**
163
223
  * @remarks
164
- * The harness configuration.
224
+ * The runtime harness configuration.
165
225
  */
166
226
  configuration?: CreateManagedAgentRequestBodyHarnessConfiguration;
167
227
  /**
168
228
  * @remarks
169
- * The harness type.
229
+ * The runtime harness type.
170
230
  *
171
231
  * @example
172
232
  * qodercli
@@ -201,7 +261,7 @@ export class CreateManagedAgentRequestBodyHarness extends $dara.Model {
201
261
  export class CreateManagedAgentRequestBodyModelQuota extends $dara.Model {
202
262
  /**
203
263
  * @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.
264
+ * Specifies whether to enable the token quota. Default value: true. Set to false to disable and delete existing quota rules.
205
265
  *
206
266
  * @example
207
267
  * true
@@ -209,7 +269,7 @@ export class CreateManagedAgentRequestBodyModelQuota extends $dara.Model {
209
269
  enabled?: boolean;
210
270
  /**
211
271
  * @remarks
212
- * The quota limit type. This parameter is required by backend validation when the quota is enabled. Fixed value: token.
272
+ * The quota limit type. This field is validated as required by the backend when the quota is enabled. Fixed value: token.
213
273
  *
214
274
  * @example
215
275
  * token
@@ -217,7 +277,7 @@ export class CreateManagedAgentRequestBodyModelQuota extends $dara.Model {
217
277
  limitType?: string;
218
278
  /**
219
279
  * @remarks
220
- * The quota statistical period. This parameter is required by backend validation when the quota is enabled. Valid values:
280
+ * The statistical period of the quota. This field is validated as required by the backend when the quota is enabled. Valid values:
221
281
  * - day: daily.
222
282
  * - month: monthly.
223
283
  *
@@ -227,7 +287,7 @@ export class CreateManagedAgentRequestBodyModelQuota extends $dara.Model {
227
287
  periodType?: string;
228
288
  /**
229
289
  * @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.
290
+ * The maximum number of tokens that can be consumed within a single period. This field is validated as required by the backend when the quota is enabled. The value must be greater than 0.
231
291
  *
232
292
  * @example
233
293
  * 1000000
@@ -415,7 +475,7 @@ export class CreateManagedAgentRequestBodyNetwork extends $dara.Model {
415
475
  export class CreateManagedAgentRequestBodyOssMounts extends $dara.Model {
416
476
  /**
417
477
  * @remarks
418
- * The OSS bucket name. This parameter is required by backend validation for each mount entry.
478
+ * The OSS bucket name. This field is validated as required by the backend for each mount entry.
419
479
  *
420
480
  * @example
421
481
  * bucket-001
@@ -423,7 +483,7 @@ export class CreateManagedAgentRequestBodyOssMounts extends $dara.Model {
423
483
  bucketName?: string;
424
484
  /**
425
485
  * @remarks
426
- * The absolute mount path in the container. This parameter is required by backend validation for each mount entry.
486
+ * The absolute mount path in the container. This field is validated as required by the backend for each mount entry.
427
487
  *
428
488
  * @example
429
489
  * /mnt/oss/datasets
@@ -431,7 +491,7 @@ export class CreateManagedAgentRequestBodyOssMounts extends $dara.Model {
431
491
  mountPath?: string;
432
492
  /**
433
493
  * @remarks
434
- * The relative object prefix in the bucket. If not specified, the entire bucket is mounted.
494
+ * The relative object prefix within the bucket. If not specified, the entire bucket is mounted.
435
495
  *
436
496
  * @example
437
497
  * datasets
@@ -472,7 +532,7 @@ export class CreateManagedAgentRequestBodyOssMounts extends $dara.Model {
472
532
  export class CreateManagedAgentRequestBodyRuntimeCompute extends $dara.Model {
473
533
  /**
474
534
  * @remarks
475
- * The compute specification.
535
+ * The compute class.
476
536
  *
477
537
  * This parameter is required.
478
538
  *
@@ -504,12 +564,12 @@ export class CreateManagedAgentRequestBodyRuntimeCompute extends $dara.Model {
504
564
  export class CreateManagedAgentRequestBodyRuntimeHpa extends $dara.Model {
505
565
  /**
506
566
  * @remarks
507
- * Specifies whether to enable auto scaling. This parameter is required by backend validation when hpa is present.
567
+ * Specifies whether to enable auto-scaling. This field is validated as required by the backend when hpa is present.
508
568
  */
509
569
  enabled?: boolean;
510
570
  /**
511
571
  * @remarks
512
- * The maximum number of active sessions per sandbox. This parameter is required by backend validation when hpa is present.
572
+ * The maximum number of active sessions per sandbox. This field is validated as required by the backend when hpa is present.
513
573
  *
514
574
  * @example
515
575
  * 5
@@ -517,7 +577,7 @@ export class CreateManagedAgentRequestBodyRuntimeHpa extends $dara.Model {
517
577
  maxConcurrentSessionsPerSandbox?: number;
518
578
  /**
519
579
  * @remarks
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.
580
+ * The maximum number of sandboxes. Required when HPA is enabled. The value must be greater than or equal to the minimum value.
521
581
  *
522
582
  * @example
523
583
  * 3
@@ -525,7 +585,7 @@ export class CreateManagedAgentRequestBodyRuntimeHpa extends $dara.Model {
525
585
  maxSandboxCount?: number;
526
586
  /**
527
587
  * @remarks
528
- * The minimum number of sandboxes. This parameter is required when HPA is enabled.
588
+ * The minimum number of sandboxes. Required when HPA is enabled.
529
589
  *
530
590
  * @example
531
591
  * 1
@@ -533,7 +593,7 @@ export class CreateManagedAgentRequestBodyRuntimeHpa extends $dara.Model {
533
593
  minSandboxCount?: number;
534
594
  /**
535
595
  * @remarks
536
- * The time in seconds before an inactive session is reclaimed. This parameter is required by backend validation when hpa is present.
596
+ * The time-to-live (TTL) for a session after inactivity, in seconds. This field is validated as required by the backend when hpa is present.
537
597
  *
538
598
  * @example
539
599
  * 3600
@@ -620,7 +680,7 @@ export class CreateManagedAgentRequestBodyRuntime extends $dara.Model {
620
680
  compute?: CreateManagedAgentRequestBodyRuntimeCompute;
621
681
  /**
622
682
  * @remarks
623
- * The sandbox auto scaling and session configuration.
683
+ * The sandbox auto-scaling and session configuration.
624
684
  */
625
685
  hpa?: CreateManagedAgentRequestBodyRuntimeHpa;
626
686
  /**
@@ -664,6 +724,40 @@ export class CreateManagedAgentRequestBodyRuntime extends $dara.Model {
664
724
  }
665
725
  }
666
726
 
727
+ export class CreateManagedAgentRequestBodySkillsVersionSelector extends $dara.Model {
728
+ /**
729
+ * @example
730
+ * LABEL
731
+ */
732
+ type?: string;
733
+ /**
734
+ * @example
735
+ * latest
736
+ */
737
+ value?: string;
738
+ static names(): { [key: string]: string } {
739
+ return {
740
+ type: 'type',
741
+ value: 'value',
742
+ };
743
+ }
744
+
745
+ static types(): { [key: string]: any } {
746
+ return {
747
+ type: 'string',
748
+ value: 'string',
749
+ };
750
+ }
751
+
752
+ validate() {
753
+ super.validate();
754
+ }
755
+
756
+ constructor(map?: { [key: string]: any }) {
757
+ super(map);
758
+ }
759
+ }
760
+
667
761
  export class CreateManagedAgentRequestBodySkills extends $dara.Model {
668
762
  /**
669
763
  * @remarks
@@ -675,6 +769,11 @@ export class CreateManagedAgentRequestBodySkills extends $dara.Model {
675
769
  * code-analysis
676
770
  */
677
771
  name?: string;
772
+ /**
773
+ * @example
774
+ * REFERENCE
775
+ */
776
+ sourceType?: string;
678
777
  /**
679
778
  * @remarks
680
779
  * The skill version.
@@ -683,21 +782,29 @@ export class CreateManagedAgentRequestBodySkills extends $dara.Model {
683
782
  * 1.0.0
684
783
  */
685
784
  version?: string;
785
+ versionSelector?: CreateManagedAgentRequestBodySkillsVersionSelector;
686
786
  static names(): { [key: string]: string } {
687
787
  return {
688
788
  name: 'name',
789
+ sourceType: 'sourceType',
689
790
  version: 'version',
791
+ versionSelector: 'versionSelector',
690
792
  };
691
793
  }
692
794
 
693
795
  static types(): { [key: string]: any } {
694
796
  return {
695
797
  name: 'string',
798
+ sourceType: 'string',
696
799
  version: 'string',
800
+ versionSelector: CreateManagedAgentRequestBodySkillsVersionSelector,
697
801
  };
698
802
  }
699
803
 
700
804
  validate() {
805
+ if(this.versionSelector && typeof (this.versionSelector as any).validate === 'function') {
806
+ (this.versionSelector as any).validate();
807
+ }
701
808
  super.validate();
702
809
  }
703
810
 
@@ -765,8 +872,6 @@ export class CreateManagedAgentRequestBodyTemplateAiRegistry extends $dara.Model
765
872
  * @remarks
766
873
  * The version of the template in the AI registry.
767
874
  *
768
- * This parameter is required.
769
- *
770
875
  * @example
771
876
  * 1.0.0
772
877
  */
@@ -869,6 +974,11 @@ export class CreateManagedAgentRequestBodyTools extends $dara.Model {
869
974
  }
870
975
 
871
976
  export class CreateManagedAgentRequestBody extends $dara.Model {
977
+ /**
978
+ * @remarks
979
+ * Omit or set to [] during creation to indicate no AFS mounts. Set to null to reject. The total number of AFS and OSS mounts cannot exceed 10.
980
+ */
981
+ agenticFsMounts?: CreateManagedAgentRequestBodyAgenticFsMounts[];
872
982
  /**
873
983
  * @remarks
874
984
  * The description of the managed agent.
@@ -884,7 +994,7 @@ export class CreateManagedAgentRequestBody extends $dara.Model {
884
994
  environment?: CreateManagedAgentRequestBodyEnvironment;
885
995
  /**
886
996
  * @remarks
887
- * The agent harness.
997
+ * The agent runtime harness.
888
998
  */
889
999
  harness?: CreateManagedAgentRequestBodyHarness;
890
1000
  /**
@@ -919,7 +1029,7 @@ export class CreateManagedAgentRequestBody extends $dara.Model {
919
1029
  network?: CreateManagedAgentRequestBodyNetwork;
920
1030
  /**
921
1031
  * @remarks
922
- * The OSS mount list. A maximum of 10 entries are supported.
1032
+ * The OSS mount list. A maximum of 10 entries are allowed.
923
1033
  */
924
1034
  ossMounts?: CreateManagedAgentRequestBodyOssMounts[];
925
1035
  /**
@@ -951,6 +1061,7 @@ export class CreateManagedAgentRequestBody extends $dara.Model {
951
1061
  tools?: CreateManagedAgentRequestBodyTools[];
952
1062
  static names(): { [key: string]: string } {
953
1063
  return {
1064
+ agenticFsMounts: 'agenticFsMounts',
954
1065
  description: 'description',
955
1066
  environment: 'environment',
956
1067
  harness: 'harness',
@@ -969,6 +1080,7 @@ export class CreateManagedAgentRequestBody extends $dara.Model {
969
1080
 
970
1081
  static types(): { [key: string]: any } {
971
1082
  return {
1083
+ agenticFsMounts: { 'type': 'array', 'itemType': CreateManagedAgentRequestBodyAgenticFsMounts },
972
1084
  description: 'string',
973
1085
  environment: CreateManagedAgentRequestBodyEnvironment,
974
1086
  harness: CreateManagedAgentRequestBodyHarness,
@@ -986,6 +1098,9 @@ export class CreateManagedAgentRequestBody extends $dara.Model {
986
1098
  }
987
1099
 
988
1100
  validate() {
1101
+ if(Array.isArray(this.agenticFsMounts)) {
1102
+ $dara.Model.validateArray(this.agenticFsMounts);
1103
+ }
989
1104
  if(this.environment && typeof (this.environment as any).validate === 'function') {
990
1105
  (this.environment as any).validate();
991
1106
  }