@alicloud/agentcore20260804 2.4.0 → 2.5.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 (109) hide show
  1. package/dist/client.d.ts +144 -24
  2. package/dist/client.js +335 -24
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateCustomAgentRequest.d.ts +63 -33
  5. package/dist/models/CreateCustomAgentRequest.js +27 -1
  6. package/dist/models/CreateCustomAgentRequest.js.map +1 -1
  7. package/dist/models/CreateCustomAgentResponseBody.d.ts +193 -41
  8. package/dist/models/CreateCustomAgentResponseBody.js +59 -1
  9. package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
  10. package/dist/models/CreateCustomAgentShrinkRequest.d.ts +1 -1
  11. package/dist/models/CreateImageCacheRequest.d.ts +122 -0
  12. package/dist/models/CreateImageCacheRequest.js +96 -0
  13. package/dist/models/CreateImageCacheRequest.js.map +1 -0
  14. package/dist/models/CreateImageCacheResponse.d.ts +19 -0
  15. package/dist/models/CreateImageCacheResponse.js +69 -0
  16. package/dist/models/CreateImageCacheResponse.js.map +1 -0
  17. package/dist/models/CreateImageCacheResponseBody.d.ts +260 -0
  18. package/dist/models/CreateImageCacheResponseBody.js +140 -0
  19. package/dist/models/CreateImageCacheResponseBody.js.map +1 -0
  20. package/dist/models/CreateImageCacheShrinkRequest.d.ts +50 -0
  21. package/dist/models/CreateImageCacheShrinkRequest.js +64 -0
  22. package/dist/models/CreateImageCacheShrinkRequest.js.map +1 -0
  23. package/dist/models/DeleteImageCacheRequest.d.ts +33 -0
  24. package/dist/models/DeleteImageCacheRequest.js +60 -0
  25. package/dist/models/DeleteImageCacheRequest.js.map +1 -0
  26. package/dist/models/DeleteImageCacheResponse.d.ts +19 -0
  27. package/dist/models/DeleteImageCacheResponse.js +69 -0
  28. package/dist/models/DeleteImageCacheResponse.js.map +1 -0
  29. package/dist/models/DeleteImageCacheResponseBody.d.ts +102 -0
  30. package/dist/models/DeleteImageCacheResponseBody.js +92 -0
  31. package/dist/models/DeleteImageCacheResponseBody.js.map +1 -0
  32. package/dist/models/GetCustomAgentResponseBody.d.ts +130 -66
  33. package/dist/models/GetCustomAgentResponseBody.js +31 -1
  34. package/dist/models/GetCustomAgentResponseBody.js.map +1 -1
  35. package/dist/models/GetImageCacheRequest.d.ts +33 -0
  36. package/dist/models/GetImageCacheRequest.js +60 -0
  37. package/dist/models/GetImageCacheRequest.js.map +1 -0
  38. package/dist/models/GetImageCacheResponse.d.ts +19 -0
  39. package/dist/models/GetImageCacheResponse.js +69 -0
  40. package/dist/models/GetImageCacheResponse.js.map +1 -0
  41. package/dist/models/GetImageCacheResponseBody.d.ts +264 -0
  42. package/dist/models/GetImageCacheResponseBody.js +140 -0
  43. package/dist/models/GetImageCacheResponseBody.js.map +1 -0
  44. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlRequest.d.ts +2 -2
  45. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.d.ts +23 -1
  46. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.js.map +1 -1
  47. package/dist/models/ListImageCachesRequest.d.ts +113 -0
  48. package/dist/models/ListImageCachesRequest.js +80 -0
  49. package/dist/models/ListImageCachesRequest.js.map +1 -0
  50. package/dist/models/ListImageCachesResponse.d.ts +19 -0
  51. package/dist/models/ListImageCachesResponse.js +69 -0
  52. package/dist/models/ListImageCachesResponse.js.map +1 -0
  53. package/dist/models/ListImageCachesResponseBody.d.ts +290 -0
  54. package/dist/models/ListImageCachesResponseBody.js +146 -0
  55. package/dist/models/ListImageCachesResponseBody.js.map +1 -0
  56. package/dist/models/RetryImageCacheRequest.d.ts +60 -0
  57. package/dist/models/RetryImageCacheRequest.js +82 -0
  58. package/dist/models/RetryImageCacheRequest.js.map +1 -0
  59. package/dist/models/RetryImageCacheResponse.d.ts +19 -0
  60. package/dist/models/RetryImageCacheResponse.js +69 -0
  61. package/dist/models/RetryImageCacheResponse.js.map +1 -0
  62. package/dist/models/RetryImageCacheResponseBody.d.ts +264 -0
  63. package/dist/models/RetryImageCacheResponseBody.js +140 -0
  64. package/dist/models/RetryImageCacheResponseBody.js.map +1 -0
  65. package/dist/models/RetryImageCacheShrinkRequest.d.ts +48 -0
  66. package/dist/models/RetryImageCacheShrinkRequest.js +64 -0
  67. package/dist/models/RetryImageCacheShrinkRequest.js.map +1 -0
  68. package/dist/models/UpdateCustomAgentRequest.d.ts +68 -35
  69. package/dist/models/UpdateCustomAgentRequest.js +27 -1
  70. package/dist/models/UpdateCustomAgentRequest.js.map +1 -1
  71. package/dist/models/UpdateCustomAgentResponseBody.d.ts +184 -49
  72. package/dist/models/UpdateCustomAgentResponseBody.js +59 -1
  73. package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -1
  74. package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +2 -2
  75. package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.d.ts +33 -3
  76. package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.js.map +1 -1
  77. package/dist/models/model.d.ts +35 -0
  78. package/dist/models/model.js +157 -86
  79. package/dist/models/model.js.map +1 -1
  80. package/package.json +1 -1
  81. package/src/client.ts +371 -24
  82. package/src/models/CreateCustomAgentRequest.ts +80 -33
  83. package/src/models/CreateCustomAgentResponseBody.ts +233 -41
  84. package/src/models/CreateCustomAgentShrinkRequest.ts +1 -1
  85. package/src/models/CreateImageCacheRequest.ts +164 -0
  86. package/src/models/CreateImageCacheResponse.ts +40 -0
  87. package/src/models/CreateImageCacheResponseBody.ts +337 -0
  88. package/src/models/CreateImageCacheShrinkRequest.ts +69 -0
  89. package/src/models/DeleteImageCacheRequest.ts +48 -0
  90. package/src/models/DeleteImageCacheResponse.ts +40 -0
  91. package/src/models/DeleteImageCacheResponseBody.ts +140 -0
  92. package/src/models/GetCustomAgentResponseBody.ts +151 -66
  93. package/src/models/GetImageCacheRequest.ts +48 -0
  94. package/src/models/GetImageCacheResponse.ts +40 -0
  95. package/src/models/GetImageCacheResponseBody.ts +341 -0
  96. package/src/models/GetWorkspaceAcrRamAuthorizeUrlRequest.ts +2 -2
  97. package/src/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.ts +23 -1
  98. package/src/models/ListImageCachesRequest.ts +148 -0
  99. package/src/models/ListImageCachesResponse.ts +40 -0
  100. package/src/models/ListImageCachesResponseBody.ts +373 -0
  101. package/src/models/RetryImageCacheRequest.ts +90 -0
  102. package/src/models/RetryImageCacheResponse.ts +40 -0
  103. package/src/models/RetryImageCacheResponseBody.ts +341 -0
  104. package/src/models/RetryImageCacheShrinkRequest.ts +67 -0
  105. package/src/models/UpdateCustomAgentRequest.ts +85 -35
  106. package/src/models/UpdateCustomAgentResponseBody.ts +224 -49
  107. package/src/models/UpdateCustomAgentShrinkRequest.ts +2 -2
  108. package/src/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.ts +33 -3
  109. package/src/models/model.ts +35 -0
@@ -0,0 +1,341 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class RetryImageCacheResponseBodyDataError extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The secure and non-empty error code for the current production failure.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * ACSCacheBuildFailed
14
+ */
15
+ code?: string;
16
+ /**
17
+ * @remarks
18
+ * The secure and non-empty display reason for the production failure, excluding credentials, internal addresses, or stack traces.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * Image cache production failed. Please retry
24
+ */
25
+ message?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ code: 'code',
29
+ message: 'message',
30
+ };
31
+ }
32
+
33
+ static types(): { [key: string]: any } {
34
+ return {
35
+ code: 'string',
36
+ message: 'string',
37
+ };
38
+ }
39
+
40
+ validate() {
41
+ super.validate();
42
+ }
43
+
44
+ constructor(map?: { [key: string]: any }) {
45
+ super(map);
46
+ }
47
+ }
48
+
49
+ export class RetryImageCacheResponseBodyData extends $dara.Model {
50
+ /**
51
+ * @remarks
52
+ * The source ACR Enterprise instance ID.
53
+ *
54
+ * This parameter is required.
55
+ *
56
+ * @example
57
+ * cri-example
58
+ */
59
+ acrInstanceId?: string;
60
+ /**
61
+ * @remarks
62
+ * The deduplicated number of agents in the current workspace that have useImageCache set to true and are associated with this logical resource. The value is greater than or equal to 0. This uses the same set as the imageCacheId filter in ListAllAgents. Agents with the feature disabled are not counted, regardless of the number of occupied instances.
63
+ *
64
+ * This parameter is required.
65
+ *
66
+ * @example
67
+ * 0
68
+ */
69
+ agentCount?: number;
70
+ /**
71
+ * @remarks
72
+ * The actual cache size in bytes. Known values are greater than or equal to 0. If unknown, the value is null. The compressed size of the source image cannot be used as a substitute.
73
+ *
74
+ * This parameter is required.
75
+ *
76
+ * @example
77
+ * 1073741824
78
+ *
79
+ * **if can be null:**
80
+ * true
81
+ */
82
+ cacheSizeBytes?: number;
83
+ /**
84
+ * @remarks
85
+ * Indicates whether deletion is allowed. The value is true when the current workspace has no configuration references with the switch enabled, no valid instances are occupying the resource, and the resource is not being deleted. If the reference status is unknown, the query fails instead of allowing deletion by default.
86
+ *
87
+ * This parameter is required.
88
+ *
89
+ * @example
90
+ * false
91
+ */
92
+ canDelete?: boolean;
93
+ /**
94
+ * @remarks
95
+ * The creation time of the logical resource in the current workspace, in RFC3339 format with time zone. Content updates for the "latest" tag do not refresh this time.
96
+ *
97
+ * This parameter is required.
98
+ *
99
+ * @example
100
+ * 2026-10-10T00:00:00Z
101
+ */
102
+ createdAt?: string;
103
+ /**
104
+ * @remarks
105
+ * The reason why deletion is blocked. The value is null when canDelete is true. Otherwise, the value is returned based on the priority of DELETING, AGENT_ENABLED, and INSTANCES_RELEASING. Old instances may still occupy the resource even if the agent count is 0.
106
+ *
107
+ * This parameter is required.
108
+ *
109
+ * @example
110
+ * INSTANCES_RELEASING
111
+ *
112
+ * **if can be null:**
113
+ * true
114
+ */
115
+ deleteBlockReason?: string;
116
+ /**
117
+ * @remarks
118
+ * The current content digest in the sha256: format followed by a 64-character lowercase hexadecimal string. It only describes the currently registered content and does not prove that old instances have been switched.
119
+ *
120
+ * This parameter is required.
121
+ *
122
+ * @example
123
+ * sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
124
+ */
125
+ digest?: string;
126
+ /**
127
+ * @remarks
128
+ * The reason for cache failure. This is a non-empty object when the status is FAILED, and null for other statuses. It only describes the current content and the current production round.
129
+ *
130
+ * This parameter is required.
131
+ *
132
+ * **if can be null:**
133
+ * true
134
+ */
135
+ error?: RetryImageCacheResponseBodyDataError;
136
+ /**
137
+ * @remarks
138
+ * The logical resource ID manageable by the current workspace, not the shared physical cache ID.
139
+ *
140
+ * This parameter is required.
141
+ *
142
+ * @example
143
+ * img-example
144
+ */
145
+ imageId?: string;
146
+ /**
147
+ * @remarks
148
+ * The source image domain name, excluding the protocol, path, and credentials.
149
+ *
150
+ * This parameter is required.
151
+ *
152
+ * @example
153
+ * example-registry.cn-hangzhou.cr.aliyuncs.com
154
+ */
155
+ registry?: string;
156
+ /**
157
+ * @remarks
158
+ * The source image repository path in the namespace/repository format, which includes the namespace.
159
+ *
160
+ * This parameter is required.
161
+ *
162
+ * @example
163
+ * team/app
164
+ */
165
+ repository?: string;
166
+ /**
167
+ * @remarks
168
+ * The image cache status. Valid values:
169
+ * - PENDING: The cache is being created.
170
+ * - READY: The cache is available.
171
+ * - FAILED: An exception occurred.
172
+ * - DELETING: The cache is being deleted in the current workspace.
173
+ *
174
+ * This parameter is required.
175
+ *
176
+ * @example
177
+ * READY
178
+ */
179
+ status?: string;
180
+ /**
181
+ * @remarks
182
+ * The source image tag with case preserved. Regular tags cannot be registered with different digests, except for the exact lowercase "latest" tag.
183
+ *
184
+ * This parameter is required.
185
+ *
186
+ * @example
187
+ * v1
188
+ */
189
+ tag?: string;
190
+ /**
191
+ * @remarks
192
+ * The workspace ID, which is consistent with the requested workspace. Resources with the same content from other workspaces are not returned.
193
+ *
194
+ * This parameter is required.
195
+ *
196
+ * @example
197
+ * ws-example
198
+ */
199
+ workspaceId?: string;
200
+ static names(): { [key: string]: string } {
201
+ return {
202
+ acrInstanceId: 'acrInstanceId',
203
+ agentCount: 'agentCount',
204
+ cacheSizeBytes: 'cacheSizeBytes',
205
+ canDelete: 'canDelete',
206
+ createdAt: 'createdAt',
207
+ deleteBlockReason: 'deleteBlockReason',
208
+ digest: 'digest',
209
+ error: 'error',
210
+ imageId: 'imageId',
211
+ registry: 'registry',
212
+ repository: 'repository',
213
+ status: 'status',
214
+ tag: 'tag',
215
+ workspaceId: 'workspaceId',
216
+ };
217
+ }
218
+
219
+ static types(): { [key: string]: any } {
220
+ return {
221
+ acrInstanceId: 'string',
222
+ agentCount: 'number',
223
+ cacheSizeBytes: 'number',
224
+ canDelete: 'boolean',
225
+ createdAt: 'string',
226
+ deleteBlockReason: 'string',
227
+ digest: 'string',
228
+ error: RetryImageCacheResponseBodyDataError,
229
+ imageId: 'string',
230
+ registry: 'string',
231
+ repository: 'string',
232
+ status: 'string',
233
+ tag: 'string',
234
+ workspaceId: 'string',
235
+ };
236
+ }
237
+
238
+ validate() {
239
+ if(this.error && typeof (this.error as any).validate === 'function') {
240
+ (this.error as any).validate();
241
+ }
242
+ super.validate();
243
+ }
244
+
245
+ constructor(map?: { [key: string]: any }) {
246
+ super(map);
247
+ }
248
+ }
249
+
250
+ export class RetryImageCacheResponseBody extends $dara.Model {
251
+ /**
252
+ * @remarks
253
+ * The business response code.
254
+ *
255
+ * This parameter is required.
256
+ *
257
+ * @example
258
+ * SUCCESS
259
+ */
260
+ code?: string;
261
+ /**
262
+ * @remarks
263
+ * The retry image cache result.
264
+ *
265
+ * This parameter is required.
266
+ */
267
+ data?: RetryImageCacheResponseBodyData;
268
+ /**
269
+ * @remarks
270
+ * The HTTP status code.
271
+ *
272
+ * This parameter is required.
273
+ *
274
+ * @example
275
+ * 200
276
+ */
277
+ httpStatusCode?: number;
278
+ /**
279
+ * @remarks
280
+ * The response message.
281
+ *
282
+ * This parameter is required.
283
+ *
284
+ * @example
285
+ * success
286
+ */
287
+ message?: string;
288
+ /**
289
+ * @remarks
290
+ * The request ID, which is used for troubleshooting.
291
+ *
292
+ * This parameter is required.
293
+ *
294
+ * @example
295
+ * req-example
296
+ */
297
+ requestId?: string;
298
+ /**
299
+ * @remarks
300
+ * Indicates whether the request is successful. This does not mean that the cache production is complete.
301
+ *
302
+ * This parameter is required.
303
+ *
304
+ * @example
305
+ * true
306
+ */
307
+ success?: boolean;
308
+ static names(): { [key: string]: string } {
309
+ return {
310
+ code: 'code',
311
+ data: 'data',
312
+ httpStatusCode: 'httpStatusCode',
313
+ message: 'message',
314
+ requestId: 'requestId',
315
+ success: 'success',
316
+ };
317
+ }
318
+
319
+ static types(): { [key: string]: any } {
320
+ return {
321
+ code: 'string',
322
+ data: RetryImageCacheResponseBodyData,
323
+ httpStatusCode: 'number',
324
+ message: 'string',
325
+ requestId: 'string',
326
+ success: 'boolean',
327
+ };
328
+ }
329
+
330
+ validate() {
331
+ if(this.data && typeof (this.data as any).validate === 'function') {
332
+ (this.data as any).validate();
333
+ }
334
+ super.validate();
335
+ }
336
+
337
+ constructor(map?: { [key: string]: any }) {
338
+ super(map);
339
+ }
340
+ }
341
+
@@ -0,0 +1,67 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class RetryImageCacheShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The request body is a fixed empty object {}. WorkspaceId is passed as a query parameter. Do not pass the Pool, role, Digest, or network parameters.
9
+ */
10
+ bodyShrink?: string;
11
+ /**
12
+ * @remarks
13
+ * This parameter is required and cannot be empty. It is reserved to keep the API compatible. This field does not currently deduplicate requests or recover the original result. If a timeout occurs or the result is not confirmed, query the query cache status first before deciding whether to commit again.
14
+ *
15
+ * This parameter is required.
16
+ *
17
+ * @example
18
+ * 550e8400-e29b-41d4-a716-446655440000
19
+ */
20
+ clientToken?: string;
21
+ /**
22
+ * @remarks
23
+ * The product entry region, which is determined by the selected region endpoint.
24
+ *
25
+ * This parameter is required.
26
+ *
27
+ * @example
28
+ * cn-hangzhou
29
+ */
30
+ regionId?: string;
31
+ /**
32
+ * @remarks
33
+ * The current routed workspace. The server verifies the account, region, and resource ownership. You cannot omit this parameter or use it to access other workspaces.
34
+ *
35
+ * This parameter is required.
36
+ *
37
+ * @example
38
+ * ws-example
39
+ */
40
+ workspaceId?: string;
41
+ static names(): { [key: string]: string } {
42
+ return {
43
+ bodyShrink: 'body',
44
+ clientToken: 'clientToken',
45
+ regionId: 'regionId',
46
+ workspaceId: 'workspaceId',
47
+ };
48
+ }
49
+
50
+ static types(): { [key: string]: any } {
51
+ return {
52
+ bodyShrink: 'string',
53
+ clientToken: 'string',
54
+ regionId: 'string',
55
+ workspaceId: 'string',
56
+ };
57
+ }
58
+
59
+ validate() {
60
+ super.validate();
61
+ }
62
+
63
+ constructor(map?: { [key: string]: any }) {
64
+ super(map);
65
+ }
66
+ }
67
+