@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.
- package/dist/client.d.ts +144 -24
- package/dist/client.js +335 -24
- package/dist/client.js.map +1 -1
- package/dist/models/CreateCustomAgentRequest.d.ts +63 -33
- package/dist/models/CreateCustomAgentRequest.js +27 -1
- package/dist/models/CreateCustomAgentRequest.js.map +1 -1
- package/dist/models/CreateCustomAgentResponseBody.d.ts +193 -41
- package/dist/models/CreateCustomAgentResponseBody.js +59 -1
- package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/CreateCustomAgentShrinkRequest.d.ts +1 -1
- package/dist/models/CreateImageCacheRequest.d.ts +122 -0
- package/dist/models/CreateImageCacheRequest.js +96 -0
- package/dist/models/CreateImageCacheRequest.js.map +1 -0
- package/dist/models/CreateImageCacheResponse.d.ts +19 -0
- package/dist/models/CreateImageCacheResponse.js +69 -0
- package/dist/models/CreateImageCacheResponse.js.map +1 -0
- package/dist/models/CreateImageCacheResponseBody.d.ts +260 -0
- package/dist/models/CreateImageCacheResponseBody.js +140 -0
- package/dist/models/CreateImageCacheResponseBody.js.map +1 -0
- package/dist/models/CreateImageCacheShrinkRequest.d.ts +50 -0
- package/dist/models/CreateImageCacheShrinkRequest.js +64 -0
- package/dist/models/CreateImageCacheShrinkRequest.js.map +1 -0
- package/dist/models/DeleteImageCacheRequest.d.ts +33 -0
- package/dist/models/DeleteImageCacheRequest.js +60 -0
- package/dist/models/DeleteImageCacheRequest.js.map +1 -0
- package/dist/models/DeleteImageCacheResponse.d.ts +19 -0
- package/dist/models/DeleteImageCacheResponse.js +69 -0
- package/dist/models/DeleteImageCacheResponse.js.map +1 -0
- package/dist/models/DeleteImageCacheResponseBody.d.ts +102 -0
- package/dist/models/DeleteImageCacheResponseBody.js +92 -0
- package/dist/models/DeleteImageCacheResponseBody.js.map +1 -0
- package/dist/models/GetCustomAgentResponseBody.d.ts +130 -66
- package/dist/models/GetCustomAgentResponseBody.js +31 -1
- package/dist/models/GetCustomAgentResponseBody.js.map +1 -1
- package/dist/models/GetImageCacheRequest.d.ts +33 -0
- package/dist/models/GetImageCacheRequest.js +60 -0
- package/dist/models/GetImageCacheRequest.js.map +1 -0
- package/dist/models/GetImageCacheResponse.d.ts +19 -0
- package/dist/models/GetImageCacheResponse.js +69 -0
- package/dist/models/GetImageCacheResponse.js.map +1 -0
- package/dist/models/GetImageCacheResponseBody.d.ts +264 -0
- package/dist/models/GetImageCacheResponseBody.js +140 -0
- package/dist/models/GetImageCacheResponseBody.js.map +1 -0
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlRequest.d.ts +2 -2
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.d.ts +23 -1
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.js.map +1 -1
- package/dist/models/ListImageCachesRequest.d.ts +113 -0
- package/dist/models/ListImageCachesRequest.js +80 -0
- package/dist/models/ListImageCachesRequest.js.map +1 -0
- package/dist/models/ListImageCachesResponse.d.ts +19 -0
- package/dist/models/ListImageCachesResponse.js +69 -0
- package/dist/models/ListImageCachesResponse.js.map +1 -0
- package/dist/models/ListImageCachesResponseBody.d.ts +290 -0
- package/dist/models/ListImageCachesResponseBody.js +146 -0
- package/dist/models/ListImageCachesResponseBody.js.map +1 -0
- package/dist/models/RetryImageCacheRequest.d.ts +60 -0
- package/dist/models/RetryImageCacheRequest.js +82 -0
- package/dist/models/RetryImageCacheRequest.js.map +1 -0
- package/dist/models/RetryImageCacheResponse.d.ts +19 -0
- package/dist/models/RetryImageCacheResponse.js +69 -0
- package/dist/models/RetryImageCacheResponse.js.map +1 -0
- package/dist/models/RetryImageCacheResponseBody.d.ts +264 -0
- package/dist/models/RetryImageCacheResponseBody.js +140 -0
- package/dist/models/RetryImageCacheResponseBody.js.map +1 -0
- package/dist/models/RetryImageCacheShrinkRequest.d.ts +48 -0
- package/dist/models/RetryImageCacheShrinkRequest.js +64 -0
- package/dist/models/RetryImageCacheShrinkRequest.js.map +1 -0
- package/dist/models/UpdateCustomAgentRequest.d.ts +68 -35
- package/dist/models/UpdateCustomAgentRequest.js +27 -1
- package/dist/models/UpdateCustomAgentRequest.js.map +1 -1
- package/dist/models/UpdateCustomAgentResponseBody.d.ts +184 -49
- package/dist/models/UpdateCustomAgentResponseBody.js +59 -1
- package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +2 -2
- package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.d.ts +33 -3
- package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +35 -0
- package/dist/models/model.js +157 -86
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +371 -24
- package/src/models/CreateCustomAgentRequest.ts +80 -33
- package/src/models/CreateCustomAgentResponseBody.ts +233 -41
- package/src/models/CreateCustomAgentShrinkRequest.ts +1 -1
- package/src/models/CreateImageCacheRequest.ts +164 -0
- package/src/models/CreateImageCacheResponse.ts +40 -0
- package/src/models/CreateImageCacheResponseBody.ts +337 -0
- package/src/models/CreateImageCacheShrinkRequest.ts +69 -0
- package/src/models/DeleteImageCacheRequest.ts +48 -0
- package/src/models/DeleteImageCacheResponse.ts +40 -0
- package/src/models/DeleteImageCacheResponseBody.ts +140 -0
- package/src/models/GetCustomAgentResponseBody.ts +151 -66
- package/src/models/GetImageCacheRequest.ts +48 -0
- package/src/models/GetImageCacheResponse.ts +40 -0
- package/src/models/GetImageCacheResponseBody.ts +341 -0
- package/src/models/GetWorkspaceAcrRamAuthorizeUrlRequest.ts +2 -2
- package/src/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.ts +23 -1
- package/src/models/ListImageCachesRequest.ts +148 -0
- package/src/models/ListImageCachesResponse.ts +40 -0
- package/src/models/ListImageCachesResponseBody.ts +373 -0
- package/src/models/RetryImageCacheRequest.ts +90 -0
- package/src/models/RetryImageCacheResponse.ts +40 -0
- package/src/models/RetryImageCacheResponseBody.ts +341 -0
- package/src/models/RetryImageCacheShrinkRequest.ts +67 -0
- package/src/models/UpdateCustomAgentRequest.ts +85 -35
- package/src/models/UpdateCustomAgentResponseBody.ts +224 -49
- package/src/models/UpdateCustomAgentShrinkRequest.ts +2 -2
- package/src/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.ts +33 -3
- package/src/models/model.ts +35 -0
package/dist/client.d.ts
CHANGED
|
@@ -206,8 +206,8 @@ export default class Client extends OpenApi {
|
|
|
206
206
|
* @remarks
|
|
207
207
|
* Before you call this operation, prepare a writable workspace, a RAM role ARN, an ACR container image, and a runtime configuration. You must specify name, artifact, roleArn, and runtime. The runtime parameter must include both compute and sessionPolicy.
|
|
208
208
|
* Currently, only ACR container image deployment is supported. Use artifact.container and specify the service listening port in artifact.port. Omit artifact.code. The image must have the required access permissions and be accessible over the network allowed by the workspace.
|
|
209
|
-
* The creation is an asynchronous process. A successful response indicates that the request is accepted. Use the returned agentId to call GetCustomAgent and check latestVersionStatus, latestExecutionError, and status for the corresponding latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure
|
|
210
|
-
* The clientToken parameter does not currently provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not take effect. Omit this parameter.
|
|
209
|
+
* The creation is an asynchronous process. A successful response indicates that the request is accepted. Use the returned agentId to call GetCustomAgent and check latestVersionStatus, latestExecutionError, and status for the corresponding latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure an access endpoint.
|
|
210
|
+
* The clientToken parameter does not currently provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not currently take effect. Omit this parameter.
|
|
211
211
|
*
|
|
212
212
|
* @param tmpReq - CreateCustomAgentRequest
|
|
213
213
|
* @param headers - map
|
|
@@ -223,8 +223,8 @@ export default class Client extends OpenApi {
|
|
|
223
223
|
* @remarks
|
|
224
224
|
* Before you call this operation, prepare a writable workspace, a RAM role ARN, an ACR container image, and a runtime configuration. You must specify name, artifact, roleArn, and runtime. The runtime parameter must include both compute and sessionPolicy.
|
|
225
225
|
* Currently, only ACR container image deployment is supported. Use artifact.container and specify the service listening port in artifact.port. Omit artifact.code. The image must have the required access permissions and be accessible over the network allowed by the workspace.
|
|
226
|
-
* The creation is an asynchronous process. A successful response indicates that the request is accepted. Use the returned agentId to call GetCustomAgent and check latestVersionStatus, latestExecutionError, and status for the corresponding latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure
|
|
227
|
-
* The clientToken parameter does not currently provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not take effect. Omit this parameter.
|
|
226
|
+
* The creation is an asynchronous process. A successful response indicates that the request is accepted. Use the returned agentId to call GetCustomAgent and check latestVersionStatus, latestExecutionError, and status for the corresponding latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure an access endpoint.
|
|
227
|
+
* The clientToken parameter does not currently provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not currently take effect. Omit this parameter.
|
|
228
228
|
*
|
|
229
229
|
* @param request - CreateCustomAgentRequest
|
|
230
230
|
* @returns CreateCustomAgentResponse
|
|
@@ -296,6 +296,30 @@ export default class Client extends OpenApi {
|
|
|
296
296
|
* @returns CreateIdentityProviderResponse
|
|
297
297
|
*/
|
|
298
298
|
createIdentityProvider(workspaceId: string, request: $_model.CreateIdentityProviderRequest): Promise<$_model.CreateIdentityProviderResponse>;
|
|
299
|
+
/**
|
|
300
|
+
* Creates an image cache.
|
|
301
|
+
*
|
|
302
|
+
* @remarks
|
|
303
|
+
* Creates or reuses an image cache in the current workspace based on the image source and tag. Both public and private images uniformly reuse the workspace\\"s source image pull authorization and resource roles. The resource manager parses the tag during the transfer node and performs image replication based on the parsed summary. The digest is empty before parsing is complete. For regular tags, the saved summary is reused after parsing. For the latest tag, it is parsed again when registered after reaching the desired state, and duplicate registrations in progress reuse the node. The logical imageId remains stable. accessInternet and accessVpc only determine the source reading and transfer for the current request and do not modify the agent network. An HTTP 200 response returns an acceptance snapshot of PENDING, READY, or FAILED, which does not indicate that the creation is complete. ClientToken does not guarantee to deduplicate requests or recover the original result. If the result is unconfirmed, query the query cache status first before deciding whether to recommit.
|
|
304
|
+
*
|
|
305
|
+
* @param tmpReq - CreateImageCacheRequest
|
|
306
|
+
* @param headers - map
|
|
307
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
308
|
+
* @returns CreateImageCacheResponse
|
|
309
|
+
*/
|
|
310
|
+
createImageCacheWithOptions(tmpReq: $_model.CreateImageCacheRequest, headers: {
|
|
311
|
+
[key: string]: string;
|
|
312
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateImageCacheResponse>;
|
|
313
|
+
/**
|
|
314
|
+
* Creates an image cache.
|
|
315
|
+
*
|
|
316
|
+
* @remarks
|
|
317
|
+
* Creates or reuses an image cache in the current workspace based on the image source and tag. Both public and private images uniformly reuse the workspace\\"s source image pull authorization and resource roles. The resource manager parses the tag during the transfer node and performs image replication based on the parsed summary. The digest is empty before parsing is complete. For regular tags, the saved summary is reused after parsing. For the latest tag, it is parsed again when registered after reaching the desired state, and duplicate registrations in progress reuse the node. The logical imageId remains stable. accessInternet and accessVpc only determine the source reading and transfer for the current request and do not modify the agent network. An HTTP 200 response returns an acceptance snapshot of PENDING, READY, or FAILED, which does not indicate that the creation is complete. ClientToken does not guarantee to deduplicate requests or recover the original result. If the result is unconfirmed, query the query cache status first before deciding whether to recommit.
|
|
318
|
+
*
|
|
319
|
+
* @param request - CreateImageCacheRequest
|
|
320
|
+
* @returns CreateImageCacheResponse
|
|
321
|
+
*/
|
|
322
|
+
createImageCache(request: $_model.CreateImageCacheRequest): Promise<$_model.CreateImageCacheResponse>;
|
|
299
323
|
/**
|
|
300
324
|
* Creates a managed agent in a specified workspace.
|
|
301
325
|
*
|
|
@@ -674,6 +698,30 @@ export default class Client extends OpenApi {
|
|
|
674
698
|
* @returns DeleteIdentityProviderResponse
|
|
675
699
|
*/
|
|
676
700
|
deleteIdentityProvider(workspaceId: string, identityProviderType: string, request: $_model.DeleteIdentityProviderRequest): Promise<$_model.DeleteIdentityProviderResponse>;
|
|
701
|
+
/**
|
|
702
|
+
* Deletes an image cache.
|
|
703
|
+
*
|
|
704
|
+
* @remarks
|
|
705
|
+
* Deletes the logical image cache of the current workspace. The deletion requires that no enabled agent configurations reference the cache and no active instances are using it. Concurrency is rechecked upon submission. Caches in the PENDING or FAILED state can still be deleted, and the backend handles the cleanup. An HTTP 200 response returns an imageId that matches the request. If deletionPending is true, the current workspace is still undergoing deletion, and a Get request returns DELETING until ImageCacheNotFound is explicitly returned. If false, the deletion is complete or the current workspace no longer exists. Usage by other workspaces does not block the deletion for the current workspace. The physical content is reclaimed only after all workspaces in the same region have removed their associations and no active instances are using it.
|
|
706
|
+
*
|
|
707
|
+
* @param request - DeleteImageCacheRequest
|
|
708
|
+
* @param headers - map
|
|
709
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
710
|
+
* @returns DeleteImageCacheResponse
|
|
711
|
+
*/
|
|
712
|
+
deleteImageCacheWithOptions(imageId: string, request: $_model.DeleteImageCacheRequest, headers: {
|
|
713
|
+
[key: string]: string;
|
|
714
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteImageCacheResponse>;
|
|
715
|
+
/**
|
|
716
|
+
* Deletes an image cache.
|
|
717
|
+
*
|
|
718
|
+
* @remarks
|
|
719
|
+
* Deletes the logical image cache of the current workspace. The deletion requires that no enabled agent configurations reference the cache and no active instances are using it. Concurrency is rechecked upon submission. Caches in the PENDING or FAILED state can still be deleted, and the backend handles the cleanup. An HTTP 200 response returns an imageId that matches the request. If deletionPending is true, the current workspace is still undergoing deletion, and a Get request returns DELETING until ImageCacheNotFound is explicitly returned. If false, the deletion is complete or the current workspace no longer exists. Usage by other workspaces does not block the deletion for the current workspace. The physical content is reclaimed only after all workspaces in the same region have removed their associations and no active instances are using it.
|
|
720
|
+
*
|
|
721
|
+
* @param request - DeleteImageCacheRequest
|
|
722
|
+
* @returns DeleteImageCacheResponse
|
|
723
|
+
*/
|
|
724
|
+
deleteImageCache(imageId: string, request: $_model.DeleteImageCacheRequest): Promise<$_model.DeleteImageCacheResponse>;
|
|
677
725
|
/**
|
|
678
726
|
* Deletes a specified managed agent.
|
|
679
727
|
*
|
|
@@ -1193,12 +1241,12 @@ export default class Client extends OpenApi {
|
|
|
1193
1241
|
*/
|
|
1194
1242
|
getCredential(workspaceId: string, credentialId: string, request: $_model.GetCredentialRequest): Promise<$_model.GetCredentialResponse>;
|
|
1195
1243
|
/**
|
|
1196
|
-
* Queries the details of a custom agent in a specified workspace, including
|
|
1244
|
+
* Queries the details of a custom agent in a specified workspace, including deployment configurations, the execute status of the latest configuration version, and the running instance status statistics.
|
|
1197
1245
|
*
|
|
1198
1246
|
* @remarks
|
|
1199
|
-
* After
|
|
1200
|
-
* The returned configuration is the
|
|
1201
|
-
* If
|
|
1247
|
+
* After you create or update a custom agent, you can poll this operation to query the execution result of the latest configuration version. `latestVersionStatus` corresponds to `latestSpecVersion`. `latestExecutionError` indicates the cause of the pending or failed status for this version. If `retryable` is true, you can query again later.
|
|
1248
|
+
* The returned configuration is the most recently submitted configuration and may not have taken effect. Verify the deployment and running status by checking `latestVersionStatus`, the overall agent status `status`, and the running instance statistics `sandboxPhaseCounts`.
|
|
1249
|
+
* If the queried custom agent does not exist, has been deleted, or does not belong to the specified workspace, a resource not found error is returned.
|
|
1202
1250
|
*
|
|
1203
1251
|
* @param request - GetCustomAgentRequest
|
|
1204
1252
|
* @param headers - map
|
|
@@ -1209,12 +1257,12 @@ export default class Client extends OpenApi {
|
|
|
1209
1257
|
[key: string]: string;
|
|
1210
1258
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetCustomAgentResponse>;
|
|
1211
1259
|
/**
|
|
1212
|
-
* Queries the details of a custom agent in a specified workspace, including
|
|
1260
|
+
* Queries the details of a custom agent in a specified workspace, including deployment configurations, the execute status of the latest configuration version, and the running instance status statistics.
|
|
1213
1261
|
*
|
|
1214
1262
|
* @remarks
|
|
1215
|
-
* After
|
|
1216
|
-
* The returned configuration is the
|
|
1217
|
-
* If
|
|
1263
|
+
* After you create or update a custom agent, you can poll this operation to query the execution result of the latest configuration version. `latestVersionStatus` corresponds to `latestSpecVersion`. `latestExecutionError` indicates the cause of the pending or failed status for this version. If `retryable` is true, you can query again later.
|
|
1264
|
+
* The returned configuration is the most recently submitted configuration and may not have taken effect. Verify the deployment and running status by checking `latestVersionStatus`, the overall agent status `status`, and the running instance statistics `sandboxPhaseCounts`.
|
|
1265
|
+
* If the queried custom agent does not exist, has been deleted, or does not belong to the specified workspace, a resource not found error is returned.
|
|
1218
1266
|
*
|
|
1219
1267
|
* @param request - GetCustomAgentRequest
|
|
1220
1268
|
* @returns GetCustomAgentResponse
|
|
@@ -1286,6 +1334,30 @@ export default class Client extends OpenApi {
|
|
|
1286
1334
|
* @returns GetIdentityProviderResponse
|
|
1287
1335
|
*/
|
|
1288
1336
|
getIdentityProvider(workspaceId: string, identityProviderType: string, request: $_model.GetIdentityProviderRequest): Promise<$_model.GetIdentityProviderResponse>;
|
|
1337
|
+
/**
|
|
1338
|
+
* Queries the details of an image cache.
|
|
1339
|
+
*
|
|
1340
|
+
* @remarks
|
|
1341
|
+
* Queries the details of the logical image cache in the current workspace. Returns the complete source, current digest, actual size, creation time, status, and secure error messages. AgentCount counts configuration references with the switch enabled. CanDelete verifies both configuration references and instance usage. If the switch is disabled, the count is 0, but deletion is still prohibited if old instances are not released. If the resource does not belong to the current workspace, resources with the same content from other workspaces are not returned.
|
|
1342
|
+
*
|
|
1343
|
+
* @param request - GetImageCacheRequest
|
|
1344
|
+
* @param headers - map
|
|
1345
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1346
|
+
* @returns GetImageCacheResponse
|
|
1347
|
+
*/
|
|
1348
|
+
getImageCacheWithOptions(imageId: string, request: $_model.GetImageCacheRequest, headers: {
|
|
1349
|
+
[key: string]: string;
|
|
1350
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetImageCacheResponse>;
|
|
1351
|
+
/**
|
|
1352
|
+
* Queries the details of an image cache.
|
|
1353
|
+
*
|
|
1354
|
+
* @remarks
|
|
1355
|
+
* Queries the details of the logical image cache in the current workspace. Returns the complete source, current digest, actual size, creation time, status, and secure error messages. AgentCount counts configuration references with the switch enabled. CanDelete verifies both configuration references and instance usage. If the switch is disabled, the count is 0, but deletion is still prohibited if old instances are not released. If the resource does not belong to the current workspace, resources with the same content from other workspaces are not returned.
|
|
1356
|
+
*
|
|
1357
|
+
* @param request - GetImageCacheRequest
|
|
1358
|
+
* @returns GetImageCacheResponse
|
|
1359
|
+
*/
|
|
1360
|
+
getImageCache(imageId: string, request: $_model.GetImageCacheRequest): Promise<$_model.GetImageCacheResponse>;
|
|
1289
1361
|
/**
|
|
1290
1362
|
* Queries the details of a specified managed agent.
|
|
1291
1363
|
*
|
|
@@ -1649,10 +1721,10 @@ export default class Client extends OpenApi {
|
|
|
1649
1721
|
*/
|
|
1650
1722
|
getWorkspace(workspaceId: string, request: $_model.GetWorkspaceRequest): Promise<$_model.GetWorkspaceResponse>;
|
|
1651
1723
|
/**
|
|
1652
|
-
* Queries the RAM authorization URL
|
|
1724
|
+
* Queries the ACR RAM authorization URL of a workspace.
|
|
1653
1725
|
*
|
|
1654
1726
|
* @remarks
|
|
1655
|
-
* ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is
|
|
1727
|
+
* ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is reused and permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. The acrInstanceId, namespace, and repository parameters are required. The region and account are derived from the workspace context. Returns the role resolved by the backend and the authorization URL for the target repository. This operation does not create ACR or agent execution versions, nor does it deliver runtime configurations. After authorization is complete, you can call Verify before creating or updating an agent, without the need to call an independent Ensure operation.
|
|
1656
1728
|
*
|
|
1657
1729
|
* @param request - GetWorkspaceAcrRamAuthorizeUrlRequest
|
|
1658
1730
|
* @param headers - map
|
|
@@ -1663,10 +1735,10 @@ export default class Client extends OpenApi {
|
|
|
1663
1735
|
[key: string]: string;
|
|
1664
1736
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetWorkspaceAcrRamAuthorizeUrlResponse>;
|
|
1665
1737
|
/**
|
|
1666
|
-
* Queries the RAM authorization URL
|
|
1738
|
+
* Queries the ACR RAM authorization URL of a workspace.
|
|
1667
1739
|
*
|
|
1668
1740
|
* @remarks
|
|
1669
|
-
* ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is
|
|
1741
|
+
* ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is reused and permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. The acrInstanceId, namespace, and repository parameters are required. The region and account are derived from the workspace context. Returns the role resolved by the backend and the authorization URL for the target repository. This operation does not create ACR or agent execution versions, nor does it deliver runtime configurations. After authorization is complete, you can call Verify before creating or updating an agent, without the need to call an independent Ensure operation.
|
|
1670
1742
|
*
|
|
1671
1743
|
* @param request - GetWorkspaceAcrRamAuthorizeUrlRequest
|
|
1672
1744
|
* @returns GetWorkspaceAcrRamAuthorizeUrlResponse
|
|
@@ -1978,6 +2050,30 @@ export default class Client extends OpenApi {
|
|
|
1978
2050
|
* @returns ListIdentityProvidersResponse
|
|
1979
2051
|
*/
|
|
1980
2052
|
listIdentityProviders(workspaceId: string, request: $_model.ListIdentityProvidersRequest): Promise<$_model.ListIdentityProvidersResponse>;
|
|
2053
|
+
/**
|
|
2054
|
+
* Queries image caches.
|
|
2055
|
+
*
|
|
2056
|
+
* @remarks
|
|
2057
|
+
* Queries the logical image caches within the current account, region, and workspace. WorkspaceId is required, and caches are not visible across workspaces. All conditions filter the full set using the AND operator before pagination is calculated. Results are sorted in descending order of logical resource creation time and ascending order of ImageId. The cursor is bound to the account, region, workspace, all filters, and the sort order. Returns the complete cache objects, the AgentCount based on the configuration switch, and the actual deletion eligibility. Query failures do not return a disguised empty list, and the nextToken on the last page is an empty string.
|
|
2058
|
+
*
|
|
2059
|
+
* @param request - ListImageCachesRequest
|
|
2060
|
+
* @param headers - map
|
|
2061
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2062
|
+
* @returns ListImageCachesResponse
|
|
2063
|
+
*/
|
|
2064
|
+
listImageCachesWithOptions(request: $_model.ListImageCachesRequest, headers: {
|
|
2065
|
+
[key: string]: string;
|
|
2066
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListImageCachesResponse>;
|
|
2067
|
+
/**
|
|
2068
|
+
* Queries image caches.
|
|
2069
|
+
*
|
|
2070
|
+
* @remarks
|
|
2071
|
+
* Queries the logical image caches within the current account, region, and workspace. WorkspaceId is required, and caches are not visible across workspaces. All conditions filter the full set using the AND operator before pagination is calculated. Results are sorted in descending order of logical resource creation time and ascending order of ImageId. The cursor is bound to the account, region, workspace, all filters, and the sort order. Returns the complete cache objects, the AgentCount based on the configuration switch, and the actual deletion eligibility. Query failures do not return a disguised empty list, and the nextToken on the last page is an empty string.
|
|
2072
|
+
*
|
|
2073
|
+
* @param request - ListImageCachesRequest
|
|
2074
|
+
* @returns ListImageCachesResponse
|
|
2075
|
+
*/
|
|
2076
|
+
listImageCaches(request: $_model.ListImageCachesRequest): Promise<$_model.ListImageCachesResponse>;
|
|
1981
2077
|
/**
|
|
1982
2078
|
* Queries the list of managed agents in a specified workspace.
|
|
1983
2079
|
*
|
|
@@ -2576,6 +2672,30 @@ export default class Client extends OpenApi {
|
|
|
2576
2672
|
* @returns ResetUserPasswordResponse
|
|
2577
2673
|
*/
|
|
2578
2674
|
resetUserPassword(workspaceId: string, request: $_model.ResetUserPasswordRequest): Promise<$_model.ResetUserPasswordResponse>;
|
|
2675
|
+
/**
|
|
2676
|
+
* Retries the image cache.
|
|
2677
|
+
*
|
|
2678
|
+
* @remarks
|
|
2679
|
+
* Retries the image cache for the original ImageId in the current workspace. WorkspaceId is required. The business request body is not required and can be omitted or provided as an empty object. The source authorization and transfer network reuse the trusted context of the original registration. If a digest exists, the retry uses the original digest. If no digest exists, the original tag is resolved again. A new request for a FAILED status can start a new production round. PENDING and READY statuses are reused. DELETING status is rejected, and deleted resources are not recreated. PUBLIC and PRIVATE statuses reuse the pull authorization of the original workspace. Returns a complete acceptance snapshot and retains the original ImageId and CreatedAt. ClientToken does not guarantee request deduplication. If the result is not confirmed, query the real-time status first before deciding whether to resubmit.
|
|
2680
|
+
*
|
|
2681
|
+
* @param tmpReq - RetryImageCacheRequest
|
|
2682
|
+
* @param headers - map
|
|
2683
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2684
|
+
* @returns RetryImageCacheResponse
|
|
2685
|
+
*/
|
|
2686
|
+
retryImageCacheWithOptions(imageId: string, tmpReq: $_model.RetryImageCacheRequest, headers: {
|
|
2687
|
+
[key: string]: string;
|
|
2688
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.RetryImageCacheResponse>;
|
|
2689
|
+
/**
|
|
2690
|
+
* Retries the image cache.
|
|
2691
|
+
*
|
|
2692
|
+
* @remarks
|
|
2693
|
+
* Retries the image cache for the original ImageId in the current workspace. WorkspaceId is required. The business request body is not required and can be omitted or provided as an empty object. The source authorization and transfer network reuse the trusted context of the original registration. If a digest exists, the retry uses the original digest. If no digest exists, the original tag is resolved again. A new request for a FAILED status can start a new production round. PENDING and READY statuses are reused. DELETING status is rejected, and deleted resources are not recreated. PUBLIC and PRIVATE statuses reuse the pull authorization of the original workspace. Returns a complete acceptance snapshot and retains the original ImageId and CreatedAt. ClientToken does not guarantee request deduplication. If the result is not confirmed, query the real-time status first before deciding whether to resubmit.
|
|
2694
|
+
*
|
|
2695
|
+
* @param request - RetryImageCacheRequest
|
|
2696
|
+
* @returns RetryImageCacheResponse
|
|
2697
|
+
*/
|
|
2698
|
+
retryImageCache(imageId: string, request: $_model.RetryImageCacheRequest): Promise<$_model.RetryImageCacheResponse>;
|
|
2579
2699
|
/**
|
|
2580
2700
|
* Retrieves long-term memory from a MemoryStore based on semantics queries.
|
|
2581
2701
|
*
|
|
@@ -2778,9 +2898,9 @@ export default class Client extends OpenApi {
|
|
|
2778
2898
|
* Updates the configuration of a specified custom agent in a workspace and executes the update asynchronously. Omitted top-level fields retain their original configurations. You can call the GetCustomAgent operation to query the update result.
|
|
2779
2899
|
*
|
|
2780
2900
|
* @remarks
|
|
2781
|
-
*
|
|
2782
|
-
* When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field. Currently, only
|
|
2783
|
-
* When providing the runtime field, both compute and sessionPolicy must be present. If you omit hpa or
|
|
2901
|
+
* Specify at least one top-level field to update. Omitted top-level fields retain their original configurations. When providing a configuration object, specify its required subfields and include any optional configurations that you want to retain. Arrays are replaced as a whole. Pass an empty array [] to clear a list. The agenticFsMounts field does not accept null. Pass null for the description field to clear the description, and pass null for the healthCheck field to remove the health check.
|
|
2902
|
+
* When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field. Currently, only ACR container image deployment is supported. Omit the artifact.code field.
|
|
2903
|
+
* When providing the runtime field, both compute and sessionPolicy must be present. If you omit hpa or any of its fields, unspecified elastic configurations use default values. To retain the original elastic configurations, provide them all. When providing the network field, omitted access items are treated as allowed, but actual access is still subject to the workspace network restrictions. To retain the original restrictions, provide both accessInternet and accessVpc. When providing healthCheck, you must specify the port field, and other unspecified items use default values. When providing logging.sls, you must specify both project and logstore.
|
|
2784
2904
|
* The update is an asynchronous process. A successful response indicates that the request is accepted. You can call the GetCustomAgent operation to query latestSpecVersion, latestVersionStatus, and latestExecutionError, and check the status field to confirm the update result.
|
|
2785
2905
|
* The clientToken field currently does not provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold field for health checks currently does not take effect. Omit this field.
|
|
2786
2906
|
*
|
|
@@ -2796,9 +2916,9 @@ export default class Client extends OpenApi {
|
|
|
2796
2916
|
* Updates the configuration of a specified custom agent in a workspace and executes the update asynchronously. Omitted top-level fields retain their original configurations. You can call the GetCustomAgent operation to query the update result.
|
|
2797
2917
|
*
|
|
2798
2918
|
* @remarks
|
|
2799
|
-
*
|
|
2800
|
-
* When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field. Currently, only
|
|
2801
|
-
* When providing the runtime field, both compute and sessionPolicy must be present. If you omit hpa or
|
|
2919
|
+
* Specify at least one top-level field to update. Omitted top-level fields retain their original configurations. When providing a configuration object, specify its required subfields and include any optional configurations that you want to retain. Arrays are replaced as a whole. Pass an empty array [] to clear a list. The agenticFsMounts field does not accept null. Pass null for the description field to clear the description, and pass null for the healthCheck field to remove the health check.
|
|
2920
|
+
* When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field. Currently, only ACR container image deployment is supported. Omit the artifact.code field.
|
|
2921
|
+
* When providing the runtime field, both compute and sessionPolicy must be present. If you omit hpa or any of its fields, unspecified elastic configurations use default values. To retain the original elastic configurations, provide them all. When providing the network field, omitted access items are treated as allowed, but actual access is still subject to the workspace network restrictions. To retain the original restrictions, provide both accessInternet and accessVpc. When providing healthCheck, you must specify the port field, and other unspecified items use default values. When providing logging.sls, you must specify both project and logstore.
|
|
2802
2922
|
* The update is an asynchronous process. A successful response indicates that the request is accepted. You can call the GetCustomAgent operation to query latestSpecVersion, latestVersionStatus, and latestExecutionError, and check the status field to confirm the update result.
|
|
2803
2923
|
* The clientToken field currently does not provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold field for health checks currently does not take effect. Omit this field.
|
|
2804
2924
|
*
|
|
@@ -3228,7 +3348,7 @@ export default class Client extends OpenApi {
|
|
|
3228
3348
|
* Verifies the ACR RAM authorization for a workspace.
|
|
3229
3349
|
*
|
|
3230
3350
|
* @remarks
|
|
3231
|
-
* ACR and user OSS mounts share the workspace role. If no existing role is
|
|
3351
|
+
* ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is retained and only new permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. This operation performs a read-only check to verify whether the custom policies corresponding to the target instance, namespace, and repository are attached to the shared role, and checks the workspace prerequisites. It does not create execution versions or trigger configuration delivery. AUTHORIZED only indicates that the custom policy for the target name is attached, without parsing the policy content or simulating the final permissions. ELIGIBLE does not mean that RuntimeManager capacity or template admission is complete, nor does it require ACR configuration to be delivered. Creating or updating an agent re-verifies permissions and processes ACR dependencies on the backend. Configuration waiting, failures, and retries are reported through agent details.
|
|
3232
3352
|
*
|
|
3233
3353
|
* @param request - VerifyWorkspaceAcrRamAuthorizationRequest
|
|
3234
3354
|
* @param headers - map
|
|
@@ -3242,7 +3362,7 @@ export default class Client extends OpenApi {
|
|
|
3242
3362
|
* Verifies the ACR RAM authorization for a workspace.
|
|
3243
3363
|
*
|
|
3244
3364
|
* @remarks
|
|
3245
|
-
* ACR and user OSS mounts share the workspace role. If no existing role is
|
|
3365
|
+
* ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is retained and only new permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. This operation performs a read-only check to verify whether the custom policies corresponding to the target instance, namespace, and repository are attached to the shared role, and checks the workspace prerequisites. It does not create execution versions or trigger configuration delivery. AUTHORIZED only indicates that the custom policy for the target name is attached, without parsing the policy content or simulating the final permissions. ELIGIBLE does not mean that RuntimeManager capacity or template admission is complete, nor does it require ACR configuration to be delivered. Creating or updating an agent re-verifies permissions and processes ACR dependencies on the backend. Configuration waiting, failures, and retries are reported through agent details.
|
|
3246
3366
|
*
|
|
3247
3367
|
* @param request - VerifyWorkspaceAcrRamAuthorizationRequest
|
|
3248
3368
|
* @returns VerifyWorkspaceAcrRamAuthorizationResponse
|