@alicloud/agentcore20260804 2.5.0 → 2.6.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 +762 -70
- package/dist/client.js +1001 -70
- package/dist/client.js.map +1 -1
- package/dist/models/AddMemoriesRequest.d.ts +10 -10
- package/dist/models/AddMemoriesResponseBody.d.ts +4 -4
- package/dist/models/AddMemoriesShrinkRequest.d.ts +1 -1
- package/dist/models/CreateCustomAgentRequest.d.ts +43 -43
- package/dist/models/CreateCustomAgentResponseBody.d.ts +118 -61
- package/dist/models/CreateCustomAgentResponseBody.js +33 -1
- package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/CreateIdentityProviderRequest.d.ts +50 -9
- package/dist/models/CreateIdentityProviderRequest.js +32 -1
- package/dist/models/CreateIdentityProviderRequest.js.map +1 -1
- package/dist/models/CreateIdentityProviderResponseBody.d.ts +183 -9
- package/dist/models/CreateIdentityProviderResponseBody.js +103 -1
- package/dist/models/CreateIdentityProviderResponseBody.js.map +1 -1
- package/dist/models/CreateIdentityProviderShrinkRequest.d.ts +1 -1
- package/dist/models/CreateIdentityProviderSyncJobRequest.d.ts +13 -0
- package/dist/models/CreateIdentityProviderSyncJobRequest.js +54 -0
- package/dist/models/CreateIdentityProviderSyncJobRequest.js.map +1 -0
- package/dist/models/CreateIdentityProviderSyncJobResponse.d.ts +19 -0
- package/dist/models/CreateIdentityProviderSyncJobResponse.js +69 -0
- package/dist/models/CreateIdentityProviderSyncJobResponse.js.map +1 -0
- package/dist/models/CreateIdentityProviderSyncJobResponseBody.d.ts +121 -0
- package/dist/models/CreateIdentityProviderSyncJobResponseBody.js +100 -0
- package/dist/models/CreateIdentityProviderSyncJobResponseBody.js.map +1 -0
- package/dist/models/CreateMemoryStoreRequest.d.ts +6 -6
- package/dist/models/CreateMemoryStoreResponseBody.d.ts +7 -7
- package/dist/models/CreateMemoryStoreShrinkRequest.d.ts +2 -2
- package/dist/models/DeleteIdentityProviderResponseBody.d.ts +144 -19
- package/dist/models/DeleteIdentityProviderResponseBody.js +74 -1
- package/dist/models/DeleteIdentityProviderResponseBody.js.map +1 -1
- package/dist/models/DeleteMemoryStoreResponseBody.d.ts +3 -3
- package/dist/models/GetAgentCodePackageDownloadUrlRequest.d.ts +13 -0
- package/dist/models/GetAgentCodePackageDownloadUrlRequest.js +54 -0
- package/dist/models/GetAgentCodePackageDownloadUrlRequest.js.map +1 -0
- package/dist/models/GetAgentCodePackageDownloadUrlResponse.d.ts +19 -0
- package/dist/models/GetAgentCodePackageDownloadUrlResponse.js +69 -0
- package/dist/models/GetAgentCodePackageDownloadUrlResponse.js.map +1 -0
- package/dist/models/GetAgentCodePackageDownloadUrlResponseBody.d.ts +131 -0
- package/dist/models/GetAgentCodePackageDownloadUrlResponseBody.js +104 -0
- package/dist/models/GetAgentCodePackageDownloadUrlResponseBody.js.map +1 -0
- package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlRequest.d.ts +23 -0
- package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlRequest.js +58 -0
- package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlRequest.js.map +1 -0
- package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponse.d.ts +19 -0
- package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponse.js +69 -0
- package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponse.js.map +1 -0
- package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponseBody.d.ts +99 -0
- package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponseBody.js +96 -0
- package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponseBody.js.map +1 -0
- package/dist/models/GetAgentCodePackageUploadUrlRequest.d.ts +62 -0
- package/dist/models/GetAgentCodePackageUploadUrlRequest.js +84 -0
- package/dist/models/GetAgentCodePackageUploadUrlRequest.js.map +1 -0
- package/dist/models/GetAgentCodePackageUploadUrlResponse.d.ts +19 -0
- package/dist/models/GetAgentCodePackageUploadUrlResponse.js +69 -0
- package/dist/models/GetAgentCodePackageUploadUrlResponse.js.map +1 -0
- package/dist/models/GetAgentCodePackageUploadUrlResponseBody.d.ts +114 -0
- package/dist/models/GetAgentCodePackageUploadUrlResponseBody.js +103 -0
- package/dist/models/GetAgentCodePackageUploadUrlResponseBody.js.map +1 -0
- package/dist/models/GetAgentCodePackageUploadUrlShrinkRequest.d.ts +20 -0
- package/dist/models/GetAgentCodePackageUploadUrlShrinkRequest.js +58 -0
- package/dist/models/GetAgentCodePackageUploadUrlShrinkRequest.js.map +1 -0
- package/dist/models/GetCustomAgentResponseBody.d.ts +105 -48
- package/dist/models/GetCustomAgentResponseBody.js +33 -1
- package/dist/models/GetCustomAgentResponseBody.js.map +1 -1
- package/dist/models/GetIdentityProviderResponseBody.d.ts +217 -11
- package/dist/models/GetIdentityProviderResponseBody.js +111 -1
- package/dist/models/GetIdentityProviderResponseBody.js.map +1 -1
- package/dist/models/GetIdentityProviderSyncJobRequest.d.ts +13 -0
- package/dist/models/GetIdentityProviderSyncJobRequest.js +54 -0
- package/dist/models/GetIdentityProviderSyncJobRequest.js.map +1 -0
- package/dist/models/GetIdentityProviderSyncJobResponse.d.ts +19 -0
- package/dist/models/GetIdentityProviderSyncJobResponse.js +69 -0
- package/dist/models/GetIdentityProviderSyncJobResponse.js.map +1 -0
- package/dist/models/GetIdentityProviderSyncJobResponseBody.d.ts +128 -0
- package/dist/models/GetIdentityProviderSyncJobResponseBody.js +100 -0
- package/dist/models/GetIdentityProviderSyncJobResponseBody.js.map +1 -0
- package/dist/models/GetIdentityProviderSyncScopeRequest.d.ts +13 -0
- package/dist/models/GetIdentityProviderSyncScopeRequest.js +54 -0
- package/dist/models/GetIdentityProviderSyncScopeRequest.js.map +1 -0
- package/dist/models/GetIdentityProviderSyncScopeResponse.d.ts +19 -0
- package/dist/models/GetIdentityProviderSyncScopeResponse.js +69 -0
- package/dist/models/GetIdentityProviderSyncScopeResponse.js.map +1 -0
- package/dist/models/GetIdentityProviderSyncScopeResponseBody.d.ts +177 -0
- package/dist/models/GetIdentityProviderSyncScopeResponseBody.js +151 -0
- package/dist/models/GetIdentityProviderSyncScopeResponseBody.js.map +1 -0
- package/dist/models/GetMemoryResponseBody.d.ts +4 -4
- package/dist/models/GetMemoryStoreResponseBody.d.ts +3 -3
- package/dist/models/ListAgentCodeRuntimesRequest.d.ts +29 -0
- package/dist/models/ListAgentCodeRuntimesRequest.js +60 -0
- package/dist/models/ListAgentCodeRuntimesRequest.js.map +1 -0
- package/dist/models/ListAgentCodeRuntimesResponse.d.ts +19 -0
- package/dist/models/ListAgentCodeRuntimesResponse.js +69 -0
- package/dist/models/ListAgentCodeRuntimesResponse.js.map +1 -0
- package/dist/models/ListAgentCodeRuntimesResponseBody.d.ts +115 -0
- package/dist/models/ListAgentCodeRuntimesResponseBody.js +100 -0
- package/dist/models/ListAgentCodeRuntimesResponseBody.js.map +1 -0
- package/dist/models/ListCustomAgentsRequest.d.ts +2 -2
- package/dist/models/ListCustomAgentsResponseBody.d.ts +221 -25
- package/dist/models/ListCustomAgentsResponseBody.js +119 -1
- package/dist/models/ListCustomAgentsResponseBody.js.map +1 -1
- package/dist/models/ListIdentityProviderDepartmentsRequest.d.ts +37 -0
- package/dist/models/ListIdentityProviderDepartmentsRequest.js +62 -0
- package/dist/models/ListIdentityProviderDepartmentsRequest.js.map +1 -0
- package/dist/models/ListIdentityProviderDepartmentsResponse.d.ts +19 -0
- package/dist/models/ListIdentityProviderDepartmentsResponse.js +69 -0
- package/dist/models/ListIdentityProviderDepartmentsResponse.js.map +1 -0
- package/dist/models/ListIdentityProviderDepartmentsResponseBody.d.ts +137 -0
- package/dist/models/ListIdentityProviderDepartmentsResponseBody.js +104 -0
- package/dist/models/ListIdentityProviderDepartmentsResponseBody.js.map +1 -0
- package/dist/models/ListIdentityProvidersRequest.d.ts +2 -2
- package/dist/models/ListIdentityProvidersResponseBody.d.ts +226 -20
- package/dist/models/ListIdentityProvidersResponseBody.js +111 -1
- package/dist/models/ListIdentityProvidersResponseBody.js.map +1 -1
- package/dist/models/ListMemoriesResponseBody.d.ts +1 -1
- package/dist/models/ListMemorySessionMessagesRequest.d.ts +3 -3
- package/dist/models/ListMemorySessionsRequest.d.ts +2 -2
- package/dist/models/ListMemorySessionsResponseBody.d.ts +1 -1
- package/dist/models/ListMemoryStoresResponseBody.d.ts +2 -2
- package/dist/models/SearchMemoriesRequest.d.ts +3 -3
- package/dist/models/SearchMemoriesResponseBody.d.ts +3 -3
- package/dist/models/UpdateCustomAgentRequest.d.ts +49 -49
- package/dist/models/UpdateCustomAgentResponseBody.d.ts +124 -77
- package/dist/models/UpdateCustomAgentResponseBody.js +33 -1
- package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +1 -1
- package/dist/models/UpdateIdentityProviderRequest.d.ts +128 -8
- package/dist/models/UpdateIdentityProviderRequest.js +71 -1
- package/dist/models/UpdateIdentityProviderRequest.js.map +1 -1
- package/dist/models/UpdateIdentityProviderResponseBody.d.ts +181 -16
- package/dist/models/UpdateIdentityProviderResponseBody.js +103 -1
- package/dist/models/UpdateIdentityProviderResponseBody.js.map +1 -1
- package/dist/models/UpdateIdentityProviderShrinkRequest.d.ts +1 -1
- package/dist/models/UpdateMemoryRequest.d.ts +3 -3
- package/dist/models/UpdateMemoryShrinkRequest.d.ts +1 -1
- package/dist/models/UpdateMemoryStoreRequest.d.ts +2 -2
- package/dist/models/UpdateMemoryStoreResponseBody.d.ts +1 -1
- package/dist/models/ValidateAgentCodePackageFromOssRequest.d.ts +52 -0
- package/dist/models/ValidateAgentCodePackageFromOssRequest.js +82 -0
- package/dist/models/ValidateAgentCodePackageFromOssRequest.js.map +1 -0
- package/dist/models/ValidateAgentCodePackageFromOssResponse.d.ts +19 -0
- package/dist/models/ValidateAgentCodePackageFromOssResponse.js +69 -0
- package/dist/models/ValidateAgentCodePackageFromOssResponse.js.map +1 -0
- package/dist/models/ValidateAgentCodePackageFromOssResponseBody.d.ts +99 -0
- package/dist/models/ValidateAgentCodePackageFromOssResponseBody.js +96 -0
- package/dist/models/ValidateAgentCodePackageFromOssResponseBody.js.map +1 -0
- package/dist/models/ValidateAgentCodePackageFromOssShrinkRequest.d.ts +20 -0
- package/dist/models/ValidateAgentCodePackageFromOssShrinkRequest.js +58 -0
- package/dist/models/ValidateAgentCodePackageFromOssShrinkRequest.js.map +1 -0
- package/dist/models/VerifyAgentCodePackageOssRamAuthorizationRequest.d.ts +23 -0
- package/dist/models/VerifyAgentCodePackageOssRamAuthorizationRequest.js +58 -0
- package/dist/models/VerifyAgentCodePackageOssRamAuthorizationRequest.js.map +1 -0
- package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponse.d.ts +19 -0
- package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponse.js +69 -0
- package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponse.js.map +1 -0
- package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponseBody.d.ts +73 -0
- package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponseBody.js +96 -0
- package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +70 -0
- package/dist/models/model.js +256 -115
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1032 -70
- package/src/models/AddMemoriesRequest.ts +10 -10
- package/src/models/AddMemoriesResponseBody.ts +4 -4
- package/src/models/AddMemoriesShrinkRequest.ts +1 -1
- package/src/models/CreateCustomAgentRequest.ts +43 -43
- package/src/models/CreateCustomAgentResponseBody.ts +141 -61
- package/src/models/CreateIdentityProviderRequest.ts +72 -9
- package/src/models/CreateIdentityProviderResponseBody.ts +258 -9
- package/src/models/CreateIdentityProviderShrinkRequest.ts +1 -1
- package/src/models/CreateIdentityProviderSyncJobRequest.ts +24 -0
- package/src/models/CreateIdentityProviderSyncJobResponse.ts +40 -0
- package/src/models/CreateIdentityProviderSyncJobResponseBody.ts +167 -0
- package/src/models/CreateMemoryStoreRequest.ts +6 -6
- package/src/models/CreateMemoryStoreResponseBody.ts +7 -7
- package/src/models/CreateMemoryStoreShrinkRequest.ts +2 -2
- package/src/models/DeleteIdentityProviderResponseBody.ts +199 -19
- package/src/models/DeleteMemoryStoreResponseBody.ts +3 -3
- package/src/models/GetAgentCodePackageDownloadUrlRequest.ts +24 -0
- package/src/models/GetAgentCodePackageDownloadUrlResponse.ts +40 -0
- package/src/models/GetAgentCodePackageDownloadUrlResponseBody.ts +181 -0
- package/src/models/GetAgentCodePackageOssRamAuthorizeUrlRequest.ts +36 -0
- package/src/models/GetAgentCodePackageOssRamAuthorizeUrlResponse.ts +40 -0
- package/src/models/GetAgentCodePackageOssRamAuthorizeUrlResponseBody.ts +141 -0
- package/src/models/GetAgentCodePackageUploadUrlRequest.ts +92 -0
- package/src/models/GetAgentCodePackageUploadUrlResponse.ts +40 -0
- package/src/models/GetAgentCodePackageUploadUrlResponseBody.ts +161 -0
- package/src/models/GetAgentCodePackageUploadUrlShrinkRequest.ts +33 -0
- package/src/models/GetCustomAgentResponseBody.ts +128 -48
- package/src/models/GetIdentityProviderResponseBody.ts +300 -11
- package/src/models/GetIdentityProviderSyncJobRequest.ts +24 -0
- package/src/models/GetIdentityProviderSyncJobResponse.ts +40 -0
- package/src/models/GetIdentityProviderSyncJobResponseBody.ts +174 -0
- package/src/models/GetIdentityProviderSyncScopeRequest.ts +24 -0
- package/src/models/GetIdentityProviderSyncScopeResponse.ts +40 -0
- package/src/models/GetIdentityProviderSyncScopeResponseBody.ts +256 -0
- package/src/models/GetMemoryResponseBody.ts +4 -4
- package/src/models/GetMemoryStoreResponseBody.ts +3 -3
- package/src/models/ListAgentCodeRuntimesRequest.ts +44 -0
- package/src/models/ListAgentCodeRuntimesResponse.ts +40 -0
- package/src/models/ListAgentCodeRuntimesResponseBody.ts +161 -0
- package/src/models/ListCustomAgentsRequest.ts +2 -2
- package/src/models/ListCustomAgentsResponseBody.ts +303 -25
- package/src/models/ListIdentityProviderDepartmentsRequest.ts +54 -0
- package/src/models/ListIdentityProviderDepartmentsResponse.ts +40 -0
- package/src/models/ListIdentityProviderDepartmentsResponseBody.ts +187 -0
- package/src/models/ListIdentityProvidersRequest.ts +2 -2
- package/src/models/ListIdentityProvidersResponseBody.ts +309 -20
- package/src/models/ListMemoriesResponseBody.ts +1 -1
- package/src/models/ListMemorySessionMessagesRequest.ts +3 -3
- package/src/models/ListMemorySessionsRequest.ts +2 -2
- package/src/models/ListMemorySessionsResponseBody.ts +1 -1
- package/src/models/ListMemoryStoresResponseBody.ts +2 -2
- package/src/models/SearchMemoriesRequest.ts +3 -3
- package/src/models/SearchMemoriesResponseBody.ts +3 -3
- package/src/models/UpdateCustomAgentRequest.ts +49 -49
- package/src/models/UpdateCustomAgentResponseBody.ts +147 -77
- package/src/models/UpdateCustomAgentShrinkRequest.ts +1 -1
- package/src/models/UpdateIdentityProviderRequest.ts +180 -8
- package/src/models/UpdateIdentityProviderResponseBody.ts +256 -16
- package/src/models/UpdateIdentityProviderShrinkRequest.ts +1 -1
- package/src/models/UpdateMemoryRequest.ts +3 -3
- package/src/models/UpdateMemoryShrinkRequest.ts +1 -1
- package/src/models/UpdateMemoryStoreRequest.ts +2 -2
- package/src/models/UpdateMemoryStoreResponseBody.ts +1 -1
- package/src/models/ValidateAgentCodePackageFromOssRequest.ts +80 -0
- package/src/models/ValidateAgentCodePackageFromOssResponse.ts +40 -0
- package/src/models/ValidateAgentCodePackageFromOssResponseBody.ts +141 -0
- package/src/models/ValidateAgentCodePackageFromOssShrinkRequest.ts +33 -0
- package/src/models/VerifyAgentCodePackageOssRamAuthorizationRequest.ts +36 -0
- package/src/models/VerifyAgentCodePackageOssRamAuthorizationResponse.ts +40 -0
- package/src/models/VerifyAgentCodePackageOssRamAuthorizationResponseBody.ts +115 -0
- package/src/models/model.ts +70 -0
package/dist/client.js
CHANGED
|
@@ -62,10 +62,10 @@ class Client extends openapi_core_1.default {
|
|
|
62
62
|
return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
* Writes messages or text to a memory store. By default, sync is set to true, which synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId
|
|
65
|
+
* Writes messages or text to a memory store. By default, sync is set to true, which means the operation synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId, which you can query by calling GetMemoryTask.
|
|
66
66
|
*
|
|
67
67
|
* @remarks
|
|
68
|
-
* Writes messages or text to a memory store. By default, sync is set to true, which synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId
|
|
68
|
+
* Writes messages or text to a memory store. By default, sync is set to true, which means the operation synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId, which you can query by calling GetMemoryTask.
|
|
69
69
|
*
|
|
70
70
|
* @param tmpReq - AddMemoriesRequest
|
|
71
71
|
* @param headers - map
|
|
@@ -101,10 +101,10 @@ class Client extends openapi_core_1.default {
|
|
|
101
101
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddMemoriesResponse({}));
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
* Writes messages or text to a memory store. By default, sync is set to true, which synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId
|
|
104
|
+
* Writes messages or text to a memory store. By default, sync is set to true, which means the operation synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId, which you can query by calling GetMemoryTask.
|
|
105
105
|
*
|
|
106
106
|
* @remarks
|
|
107
|
-
* Writes messages or text to a memory store. By default, sync is set to true, which synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId
|
|
107
|
+
* Writes messages or text to a memory store. By default, sync is set to true, which means the operation synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId, which you can query by calling GetMemoryTask.
|
|
108
108
|
*
|
|
109
109
|
* @param request - AddMemoriesRequest
|
|
110
110
|
* @returns AddMemoriesResponse
|
|
@@ -496,13 +496,15 @@ class Client extends openapi_core_1.default {
|
|
|
496
496
|
return await this.createCredentialWithOptions(workspaceId, request, headers, runtime);
|
|
497
497
|
}
|
|
498
498
|
/**
|
|
499
|
-
* Creates a custom agent in a specified workspace and
|
|
499
|
+
* Creates a custom agent in a specified workspace. Container image and code package deployments are supported. The creation process is asynchronous. You can call GetCustomAgent to query the deployment result.
|
|
500
500
|
*
|
|
501
501
|
* @remarks
|
|
502
|
-
* Before you call this operation, prepare a writable workspace, a RAM role ARN,
|
|
503
|
-
*
|
|
504
|
-
*
|
|
505
|
-
* The
|
|
502
|
+
* Before you call this operation, prepare a writable workspace, a RAM role ARN, a container image or code package, and runtime configurations. You must specify name, artifact, roleArn, and runtime. The runtime parameter must include both compute and sessionPolicy.
|
|
503
|
+
* In container mode, use artifact.container and specify artifact.port. The image must have the required access permissions and be accessible over the network allowed by the workspace.
|
|
504
|
+
* In code package pattern, specify artifact.port, and the sourceUri, languageRuntime, and entrypoint of artifact.code. Do not specify container at the same time. Dependencies must be packaged by the user. ZIP and TAR.GZ formats are supported. The compressed package size cannot exceed 500,000,000 bytes. You can call ListAgentCodeRuntimes to query the runtime environment identity. The sourceUri parameter supports oss:// addresses or HTTPS object addresses of standard OSS public domain names, including signed URLs. For local files, call GetAgentCodePackageUploadUrl to obtain an upload URL, upload the file directly, and then commit the returned sourceUri.
|
|
505
|
+
* When you submit a new code package source, the backend rechecks the read permissions, object, and size. The configuration is saved only after the transfer succeeds. If the transfer fails, the configuration is not saved. Saved fixed packages can be reused. Set the client timeout to 210 seconds for code package requests. Archive integrity and secure decompression are checked at startup. A successful acceptance does not mean that the agent is ready to run.
|
|
506
|
+
* The creation process is asynchronous. A successful response indicates that the request is accepted. You can use the returned agentId to call GetCustomAgent and check the latestVersionStatus, latestExecutionError, and status corresponding to latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure the access endpoint.
|
|
507
|
+
* The clientToken parameter does not 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.
|
|
506
508
|
*
|
|
507
509
|
* @param tmpReq - CreateCustomAgentRequest
|
|
508
510
|
* @param headers - map
|
|
@@ -543,13 +545,15 @@ class Client extends openapi_core_1.default {
|
|
|
543
545
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateCustomAgentResponse({}));
|
|
544
546
|
}
|
|
545
547
|
/**
|
|
546
|
-
* Creates a custom agent in a specified workspace and
|
|
548
|
+
* Creates a custom agent in a specified workspace. Container image and code package deployments are supported. The creation process is asynchronous. You can call GetCustomAgent to query the deployment result.
|
|
547
549
|
*
|
|
548
550
|
* @remarks
|
|
549
|
-
* Before you call this operation, prepare a writable workspace, a RAM role ARN,
|
|
550
|
-
*
|
|
551
|
-
*
|
|
552
|
-
* The
|
|
551
|
+
* Before you call this operation, prepare a writable workspace, a RAM role ARN, a container image or code package, and runtime configurations. You must specify name, artifact, roleArn, and runtime. The runtime parameter must include both compute and sessionPolicy.
|
|
552
|
+
* In container mode, use artifact.container and specify artifact.port. The image must have the required access permissions and be accessible over the network allowed by the workspace.
|
|
553
|
+
* In code package pattern, specify artifact.port, and the sourceUri, languageRuntime, and entrypoint of artifact.code. Do not specify container at the same time. Dependencies must be packaged by the user. ZIP and TAR.GZ formats are supported. The compressed package size cannot exceed 500,000,000 bytes. You can call ListAgentCodeRuntimes to query the runtime environment identity. The sourceUri parameter supports oss:// addresses or HTTPS object addresses of standard OSS public domain names, including signed URLs. For local files, call GetAgentCodePackageUploadUrl to obtain an upload URL, upload the file directly, and then commit the returned sourceUri.
|
|
554
|
+
* When you submit a new code package source, the backend rechecks the read permissions, object, and size. The configuration is saved only after the transfer succeeds. If the transfer fails, the configuration is not saved. Saved fixed packages can be reused. Set the client timeout to 210 seconds for code package requests. Archive integrity and secure decompression are checked at startup. A successful acceptance does not mean that the agent is ready to run.
|
|
555
|
+
* The creation process is asynchronous. A successful response indicates that the request is accepted. You can use the returned agentId to call GetCustomAgent and check the latestVersionStatus, latestExecutionError, and status corresponding to latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure the access endpoint.
|
|
556
|
+
* The clientToken parameter does not 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.
|
|
553
557
|
*
|
|
554
558
|
* @param request - CreateCustomAgentRequest
|
|
555
559
|
* @returns CreateCustomAgentResponse
|
|
@@ -666,7 +670,34 @@ class Client extends openapi_core_1.default {
|
|
|
666
670
|
return await this.createExternalAgentBootstrapTokenWithOptions(workspaceId, agentId, request, headers, runtime);
|
|
667
671
|
}
|
|
668
672
|
/**
|
|
669
|
-
* Binds an external identity provider to a specified workspace
|
|
673
|
+
* Binds an external identity provider to a specified workspace for single sign-on and organization member synchronization of workspace users. You can bind up to one external identity provider to each workspace. The binding is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
|
|
674
|
+
*
|
|
675
|
+
* @remarks
|
|
676
|
+
* ## Features and prerequisites
|
|
677
|
+
* A workspace can be bound to only one external identity provider. The identityProviderType parameter supports DingTalk, Feishu, and CustomSSO. CustomSSO only initializes the shared user pool. Do not pass non-empty metadata, and do not pass true for loginEnabled or syncEnabled. By default, both switches are turned off. Protocols and SAML configurations are saved by calling UpdateIdentityProvider. SCIM is configured through a separate API. You do not need to save SAML first. After the request is accepted and CONFIGURED is returned, call GetIdentityProvider and wait for the user pool initialization to complete. READY only indicates that the resource is ready, not that SAML is configured. If the same CustomSSO binding is in the CONFIGURED or READY state, the existing binding can be returned. You cannot treat all states as repeatable creations.
|
|
678
|
+
* For DingTalk, the metadata parameter requires appKey, appSecret, and corpId. For Feishu, appId and appSecret are required. The vendor logon switch is enabled by default, and the synchronization switch is disabled by default. When synchronization is enabled, encryptKey and verificationToken are also required. The vendor syncOnBind and syncScope parameters retain the existing department-based synchronization definitions. Do not use these vendor pull parameters to replace SCIM configurations during CustomSSO initialization.
|
|
679
|
+
* ## Requests and examples
|
|
680
|
+
* POST /workspaces/{workspaceId}/identity-providers
|
|
681
|
+
* Call conventions: Call the API based on the region of the target workspace. Use an AccessKey pair or STS token that has permissions on the identity provider resources of the corresponding workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example represents the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example only shows the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not record keys. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
|
|
682
|
+
* ```text
|
|
683
|
+
* POST /workspaces/ws-example/identity-providers
|
|
684
|
+
* {"identityProviderType": "CustomSSO"}
|
|
685
|
+
* ```
|
|
686
|
+
* ## Response example
|
|
687
|
+
* ```json
|
|
688
|
+
* {
|
|
689
|
+
* "data": {
|
|
690
|
+
* "workspaceId": "ws-example",
|
|
691
|
+
* "identityProviderType": "CustomSSO",
|
|
692
|
+
* "loginEnabled": false,
|
|
693
|
+
* "syncEnabled": false,
|
|
694
|
+
* "status": "CONFIGURED"
|
|
695
|
+
* }
|
|
696
|
+
* }
|
|
697
|
+
* ```
|
|
698
|
+
* ## Errors and handling
|
|
699
|
+
* Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. A synchronous call to the upstream service may return 503 IdentityProviderProvisioningUnavailable if it fails. Keep the request ID for troubleshooting and do not interpret a read failure as unconfigured. Actual authentication and workspace non-existence errors follow the common error handling.
|
|
700
|
+
* 409 IdentityProviderAlreadyBound: An external binding already exists. Query and reuse the correct binding first. Do not automatically unbind the entire binding. Asynchronous initialization failure does not equal HTTP request failure. You must continue to query the status.
|
|
670
701
|
*
|
|
671
702
|
* @param tmpReq - CreateIdentityProviderRequest
|
|
672
703
|
* @param headers - map
|
|
@@ -702,7 +733,34 @@ class Client extends openapi_core_1.default {
|
|
|
702
733
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateIdentityProviderResponse({}));
|
|
703
734
|
}
|
|
704
735
|
/**
|
|
705
|
-
* Binds an external identity provider to a specified workspace
|
|
736
|
+
* Binds an external identity provider to a specified workspace for single sign-on and organization member synchronization of workspace users. You can bind up to one external identity provider to each workspace. The binding is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
|
|
737
|
+
*
|
|
738
|
+
* @remarks
|
|
739
|
+
* ## Features and prerequisites
|
|
740
|
+
* A workspace can be bound to only one external identity provider. The identityProviderType parameter supports DingTalk, Feishu, and CustomSSO. CustomSSO only initializes the shared user pool. Do not pass non-empty metadata, and do not pass true for loginEnabled or syncEnabled. By default, both switches are turned off. Protocols and SAML configurations are saved by calling UpdateIdentityProvider. SCIM is configured through a separate API. You do not need to save SAML first. After the request is accepted and CONFIGURED is returned, call GetIdentityProvider and wait for the user pool initialization to complete. READY only indicates that the resource is ready, not that SAML is configured. If the same CustomSSO binding is in the CONFIGURED or READY state, the existing binding can be returned. You cannot treat all states as repeatable creations.
|
|
741
|
+
* For DingTalk, the metadata parameter requires appKey, appSecret, and corpId. For Feishu, appId and appSecret are required. The vendor logon switch is enabled by default, and the synchronization switch is disabled by default. When synchronization is enabled, encryptKey and verificationToken are also required. The vendor syncOnBind and syncScope parameters retain the existing department-based synchronization definitions. Do not use these vendor pull parameters to replace SCIM configurations during CustomSSO initialization.
|
|
742
|
+
* ## Requests and examples
|
|
743
|
+
* POST /workspaces/{workspaceId}/identity-providers
|
|
744
|
+
* Call conventions: Call the API based on the region of the target workspace. Use an AccessKey pair or STS token that has permissions on the identity provider resources of the corresponding workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example represents the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example only shows the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not record keys. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
|
|
745
|
+
* ```text
|
|
746
|
+
* POST /workspaces/ws-example/identity-providers
|
|
747
|
+
* {"identityProviderType": "CustomSSO"}
|
|
748
|
+
* ```
|
|
749
|
+
* ## Response example
|
|
750
|
+
* ```json
|
|
751
|
+
* {
|
|
752
|
+
* "data": {
|
|
753
|
+
* "workspaceId": "ws-example",
|
|
754
|
+
* "identityProviderType": "CustomSSO",
|
|
755
|
+
* "loginEnabled": false,
|
|
756
|
+
* "syncEnabled": false,
|
|
757
|
+
* "status": "CONFIGURED"
|
|
758
|
+
* }
|
|
759
|
+
* }
|
|
760
|
+
* ```
|
|
761
|
+
* ## Errors and handling
|
|
762
|
+
* Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. A synchronous call to the upstream service may return 503 IdentityProviderProvisioningUnavailable if it fails. Keep the request ID for troubleshooting and do not interpret a read failure as unconfigured. Actual authentication and workspace non-existence errors follow the common error handling.
|
|
763
|
+
* 409 IdentityProviderAlreadyBound: An external binding already exists. Query and reuse the correct binding first. Do not automatically unbind the entire binding. Asynchronous initialization failure does not equal HTTP request failure. You must continue to query the status.
|
|
706
764
|
*
|
|
707
765
|
* @param request - CreateIdentityProviderRequest
|
|
708
766
|
* @returns CreateIdentityProviderResponse
|
|
@@ -712,6 +770,85 @@ class Client extends openapi_core_1.default {
|
|
|
712
770
|
let headers = {};
|
|
713
771
|
return await this.createIdentityProviderWithOptions(workspaceId, request, headers, runtime);
|
|
714
772
|
}
|
|
773
|
+
/**
|
|
774
|
+
* Initiates a manual synchronization of an identity provider.
|
|
775
|
+
*
|
|
776
|
+
* @remarks
|
|
777
|
+
* Initiates a one-time user synchronization based on the saved scope without saving the configuration or requiring syncEnabled=true. Prerequisites: the identity provider is in the READY or SYNC_FAILED state, a user pool exists, and no other pending identity provider operations are in progress. The returned taskId only indicates that the request is accepted. Call GetIdentityProviderSyncJob to poll the status until it reaches SUCCESS, FAILED, or CANCELED. If the task fails, check the failureReason. The workspace user quota still applies, and previously synchronized users are not automatically deleted if the scope is reduced.
|
|
778
|
+
* Authorization information: RAM action agentcore:CreateIdentityProviderSyncJob, access level Write, resource ARN: acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is required for authorization.
|
|
779
|
+
* Idempotency and retry: This operation does not provide a ClientToken parameter for conditional idempotency. Repeated submissions do not guarantee the same task is returned. If an operation is already in progress, an operation conflict is returned. Submitting again after the task ends creates a new synchronization task. If a submission times out, query the identity provider status first to avoid blindly resubmitting the request.
|
|
780
|
+
* Calling this API is free of charge, and operation records support ActionTrail auditing.
|
|
781
|
+
* Initial selective synchronization process: CreateIdentityProvider (syncOnBind=false, it is recommended to keep syncEnabled=false initially) → GetIdentityProvider and wait for READY → ListIdentityProviderDepartments to select departments → UpdateIdentityProvider to save syncScope and wait for READY → CreateIdentityProviderSyncJob → GetIdentityProviderSyncJob to query the terminal state. If incremental synchronization is required, configure callbacks and event subscriptions, and then update syncEnabled=true.
|
|
782
|
+
* Response example:
|
|
783
|
+
* ```json
|
|
784
|
+
* {
|
|
785
|
+
* "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
|
|
786
|
+
* "message": "success",
|
|
787
|
+
* "httpStatusCode": 200,
|
|
788
|
+
* "code": "SUCCESS",
|
|
789
|
+
* "success": true,
|
|
790
|
+
* "data": {
|
|
791
|
+
* "taskId": "12345678-1234-4234-8234-123456789abc",
|
|
792
|
+
* "status": "PENDING"
|
|
793
|
+
* }
|
|
794
|
+
* }
|
|
795
|
+
* ```
|
|
796
|
+
*
|
|
797
|
+
* @param request - CreateIdentityProviderSyncJobRequest
|
|
798
|
+
* @param headers - map
|
|
799
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
800
|
+
* @returns CreateIdentityProviderSyncJobResponse
|
|
801
|
+
*/
|
|
802
|
+
async createIdentityProviderSyncJobWithOptions(workspaceId, identityProviderType, request, headers, runtime) {
|
|
803
|
+
request.validate();
|
|
804
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
805
|
+
headers: headers,
|
|
806
|
+
});
|
|
807
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
808
|
+
action: "CreateIdentityProviderSyncJob",
|
|
809
|
+
version: "2026-08-04",
|
|
810
|
+
protocol: "HTTPS",
|
|
811
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/identity-providers/${$dara.URL.percentEncode(identityProviderType)}/sync-jobs`,
|
|
812
|
+
method: "POST",
|
|
813
|
+
authType: "AK",
|
|
814
|
+
style: "ROA",
|
|
815
|
+
reqBodyType: "json",
|
|
816
|
+
bodyType: "json",
|
|
817
|
+
});
|
|
818
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateIdentityProviderSyncJobResponse({}));
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* Initiates a manual synchronization of an identity provider.
|
|
822
|
+
*
|
|
823
|
+
* @remarks
|
|
824
|
+
* Initiates a one-time user synchronization based on the saved scope without saving the configuration or requiring syncEnabled=true. Prerequisites: the identity provider is in the READY or SYNC_FAILED state, a user pool exists, and no other pending identity provider operations are in progress. The returned taskId only indicates that the request is accepted. Call GetIdentityProviderSyncJob to poll the status until it reaches SUCCESS, FAILED, or CANCELED. If the task fails, check the failureReason. The workspace user quota still applies, and previously synchronized users are not automatically deleted if the scope is reduced.
|
|
825
|
+
* Authorization information: RAM action agentcore:CreateIdentityProviderSyncJob, access level Write, resource ARN: acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is required for authorization.
|
|
826
|
+
* Idempotency and retry: This operation does not provide a ClientToken parameter for conditional idempotency. Repeated submissions do not guarantee the same task is returned. If an operation is already in progress, an operation conflict is returned. Submitting again after the task ends creates a new synchronization task. If a submission times out, query the identity provider status first to avoid blindly resubmitting the request.
|
|
827
|
+
* Calling this API is free of charge, and operation records support ActionTrail auditing.
|
|
828
|
+
* Initial selective synchronization process: CreateIdentityProvider (syncOnBind=false, it is recommended to keep syncEnabled=false initially) → GetIdentityProvider and wait for READY → ListIdentityProviderDepartments to select departments → UpdateIdentityProvider to save syncScope and wait for READY → CreateIdentityProviderSyncJob → GetIdentityProviderSyncJob to query the terminal state. If incremental synchronization is required, configure callbacks and event subscriptions, and then update syncEnabled=true.
|
|
829
|
+
* Response example:
|
|
830
|
+
* ```json
|
|
831
|
+
* {
|
|
832
|
+
* "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
|
|
833
|
+
* "message": "success",
|
|
834
|
+
* "httpStatusCode": 200,
|
|
835
|
+
* "code": "SUCCESS",
|
|
836
|
+
* "success": true,
|
|
837
|
+
* "data": {
|
|
838
|
+
* "taskId": "12345678-1234-4234-8234-123456789abc",
|
|
839
|
+
* "status": "PENDING"
|
|
840
|
+
* }
|
|
841
|
+
* }
|
|
842
|
+
* ```
|
|
843
|
+
*
|
|
844
|
+
* @param request - CreateIdentityProviderSyncJobRequest
|
|
845
|
+
* @returns CreateIdentityProviderSyncJobResponse
|
|
846
|
+
*/
|
|
847
|
+
async createIdentityProviderSyncJob(workspaceId, identityProviderType, request) {
|
|
848
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
849
|
+
let headers = {};
|
|
850
|
+
return await this.createIdentityProviderSyncJobWithOptions(workspaceId, identityProviderType, request, headers, runtime);
|
|
851
|
+
}
|
|
715
852
|
/**
|
|
716
853
|
* Creates an image cache.
|
|
717
854
|
*
|
|
@@ -1591,7 +1728,31 @@ class Client extends openapi_core_1.default {
|
|
|
1591
1728
|
return await this.deleteExternalAgentWithOptions(workspaceId, agentId, request, headers, runtime);
|
|
1592
1729
|
}
|
|
1593
1730
|
/**
|
|
1594
|
-
*
|
|
1731
|
+
* Disconnects the external identity provider from a specified workspace and cleans up the users synchronized by the identity provider. The disconnection is an asynchronous operation. After the API returns a response, you can call GetIdentityProvider to query the status and track the progress.
|
|
1732
|
+
*
|
|
1733
|
+
* @remarks
|
|
1734
|
+
* ## Features and prerequisites
|
|
1735
|
+
* This is a complete disconnection, not just disabling logon. Disconnecting CustomSSO cleans up the AC users imported from this identity source, remote shared user pools and related resources, logon publishing configurations, and bindings. Therefore, both SAML and SCIM are affected. It does not delete the enterprise applications created by users on external platforms such as Azure. The system first checks the references between users and Teams. If references exist, the disconnection is rejected.
|
|
1736
|
+
* After the request is accepted, the system returns DISCONNECTING. You can call GetIdentityProvider to query the status. The cleanup is complete only when the binding does not exist (IdentityProviderNotFound). The binding should also no longer appear in the list. DISCONNECT_FAILED indicates that a partial cleanup may have occurred and the state cannot be restored to a brand new unconfigured state. You can retry based on the returned status. If the binding does not exist in the first place, the API returns a placeholder result indicating no binding without creating new resources. An ongoing disconnection task may return the current binding. Do not use this API as a substitute for setting loginEnabled=false, syncEnabled=false, or deleting a single token.
|
|
1737
|
+
* ## Requests and examples
|
|
1738
|
+
* DELETE /workspaces/{workspaceId}/identity-providers/{identityProviderType}
|
|
1739
|
+
* Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or STS credential that has permissions on the identity source resources of the workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example represents the body parameter content of the public API, not the extra body wrapper of the backend direct connection API. The response example only shows the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not record keys. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
|
|
1740
|
+
* ```text
|
|
1741
|
+
* DELETE /workspaces/ws-example/identity-providers/CustomSSO
|
|
1742
|
+
* ```
|
|
1743
|
+
* ## Response examples
|
|
1744
|
+
* ```json
|
|
1745
|
+
* {
|
|
1746
|
+
* "data": {
|
|
1747
|
+
* "workspaceId": "ws-example",
|
|
1748
|
+
* "identityProviderType": "CustomSSO",
|
|
1749
|
+
* "status": "DISCONNECTING"
|
|
1750
|
+
* }
|
|
1751
|
+
* }
|
|
1752
|
+
* ```
|
|
1753
|
+
* ## Errors and handling
|
|
1754
|
+
* Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. A synchronous call failure to the upstream may return 503 IdentityProviderProvisioningUnavailable. Keep the request ID for troubleshooting and do not interpret a read failure as unconfigured. Actual authentication and workspace non-existence errors follow the common error handling.
|
|
1755
|
+
* 409 IdentityProvider.Disconnect.Conflict: Users of this identity source still belong to a Team. Remove the references first. 409 IdentityProviderOperationConflict: The current status does not allow disconnection. 404 IdentityProviderNotFound: An external binding exists but the type does not match. An asynchronous failure may result in a partial cleanup. You cannot claim completion based solely on the first response.
|
|
1595
1756
|
*
|
|
1596
1757
|
* @param request - DeleteIdentityProviderRequest
|
|
1597
1758
|
* @param headers - map
|
|
@@ -1622,7 +1783,31 @@ class Client extends openapi_core_1.default {
|
|
|
1622
1783
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteIdentityProviderResponse({}));
|
|
1623
1784
|
}
|
|
1624
1785
|
/**
|
|
1625
|
-
*
|
|
1786
|
+
* Disconnects the external identity provider from a specified workspace and cleans up the users synchronized by the identity provider. The disconnection is an asynchronous operation. After the API returns a response, you can call GetIdentityProvider to query the status and track the progress.
|
|
1787
|
+
*
|
|
1788
|
+
* @remarks
|
|
1789
|
+
* ## Features and prerequisites
|
|
1790
|
+
* This is a complete disconnection, not just disabling logon. Disconnecting CustomSSO cleans up the AC users imported from this identity source, remote shared user pools and related resources, logon publishing configurations, and bindings. Therefore, both SAML and SCIM are affected. It does not delete the enterprise applications created by users on external platforms such as Azure. The system first checks the references between users and Teams. If references exist, the disconnection is rejected.
|
|
1791
|
+
* After the request is accepted, the system returns DISCONNECTING. You can call GetIdentityProvider to query the status. The cleanup is complete only when the binding does not exist (IdentityProviderNotFound). The binding should also no longer appear in the list. DISCONNECT_FAILED indicates that a partial cleanup may have occurred and the state cannot be restored to a brand new unconfigured state. You can retry based on the returned status. If the binding does not exist in the first place, the API returns a placeholder result indicating no binding without creating new resources. An ongoing disconnection task may return the current binding. Do not use this API as a substitute for setting loginEnabled=false, syncEnabled=false, or deleting a single token.
|
|
1792
|
+
* ## Requests and examples
|
|
1793
|
+
* DELETE /workspaces/{workspaceId}/identity-providers/{identityProviderType}
|
|
1794
|
+
* Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or STS credential that has permissions on the identity source resources of the workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example represents the body parameter content of the public API, not the extra body wrapper of the backend direct connection API. The response example only shows the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not record keys. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
|
|
1795
|
+
* ```text
|
|
1796
|
+
* DELETE /workspaces/ws-example/identity-providers/CustomSSO
|
|
1797
|
+
* ```
|
|
1798
|
+
* ## Response examples
|
|
1799
|
+
* ```json
|
|
1800
|
+
* {
|
|
1801
|
+
* "data": {
|
|
1802
|
+
* "workspaceId": "ws-example",
|
|
1803
|
+
* "identityProviderType": "CustomSSO",
|
|
1804
|
+
* "status": "DISCONNECTING"
|
|
1805
|
+
* }
|
|
1806
|
+
* }
|
|
1807
|
+
* ```
|
|
1808
|
+
* ## Errors and handling
|
|
1809
|
+
* Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. A synchronous call failure to the upstream may return 503 IdentityProviderProvisioningUnavailable. Keep the request ID for troubleshooting and do not interpret a read failure as unconfigured. Actual authentication and workspace non-existence errors follow the common error handling.
|
|
1810
|
+
* 409 IdentityProvider.Disconnect.Conflict: Users of this identity source still belong to a Team. Remove the references first. 409 IdentityProviderOperationConflict: The current status does not allow disconnection. 404 IdentityProviderNotFound: An external binding exists but the type does not match. An asynchronous failure may result in a partial cleanup. You cannot claim completion based solely on the first response.
|
|
1626
1811
|
*
|
|
1627
1812
|
* @param request - DeleteIdentityProviderRequest
|
|
1628
1813
|
* @returns DeleteIdentityProviderResponse
|
|
@@ -1809,10 +1994,10 @@ class Client extends openapi_core_1.default {
|
|
|
1809
1994
|
return await this.deleteMemoryWithOptions(workspaceId, memoryStoreName, memoryId, request, headers, runtime);
|
|
1810
1995
|
}
|
|
1811
1996
|
/**
|
|
1812
|
-
* Asynchronously deletes a MemoryStore and all
|
|
1997
|
+
* Asynchronously deletes a MemoryStore and all long-term memory within it.
|
|
1813
1998
|
*
|
|
1814
1999
|
* @remarks
|
|
1815
|
-
* Asynchronously deletes a MemoryStore and all
|
|
2000
|
+
* Asynchronously deletes a MemoryStore and all long-term memory within it.
|
|
1816
2001
|
*
|
|
1817
2002
|
* @param request - DeleteMemoryStoreRequest
|
|
1818
2003
|
* @param headers - map
|
|
@@ -1838,10 +2023,10 @@ class Client extends openapi_core_1.default {
|
|
|
1838
2023
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteMemoryStoreResponse({}));
|
|
1839
2024
|
}
|
|
1840
2025
|
/**
|
|
1841
|
-
* Asynchronously deletes a MemoryStore and all
|
|
2026
|
+
* Asynchronously deletes a MemoryStore and all long-term memory within it.
|
|
1842
2027
|
*
|
|
1843
2028
|
* @remarks
|
|
1844
|
-
* Asynchronously deletes a MemoryStore and all
|
|
2029
|
+
* Asynchronously deletes a MemoryStore and all long-term memory within it.
|
|
1845
2030
|
*
|
|
1846
2031
|
* @param request - DeleteMemoryStoreRequest
|
|
1847
2032
|
* @returns DeleteMemoryStoreResponse
|
|
@@ -2398,6 +2583,154 @@ class Client extends openapi_core_1.default {
|
|
|
2398
2583
|
let headers = {};
|
|
2399
2584
|
return await this.forcePublishSkillVersionWithOptions(workspaceId, skillName, skillVersion, request, headers, runtime);
|
|
2400
2585
|
}
|
|
2586
|
+
/**
|
|
2587
|
+
* Retrieves the download URL for the saved code package of an agent.
|
|
2588
|
+
*
|
|
2589
|
+
* @remarks
|
|
2590
|
+
* Generates a time-limited, read-only download URL for the code package referenced by the currently saved agent configuration. This applies to code packages uploaded locally or imported from Object Storage Service (OSS). The operation uses workspaceId and agentId for locating and does not accept arbitrary bucket, object key, or historical version parameters. The current configuration must reference an available, fixed code package, and does not require waiting for a running instance to be ready. An error is returned if the code package does not exist, has changed, or is unreadable. The link is valid for up to 10 minutes and does not exceed the underlying credential expiration time. Call the operation again after it expires. The resourceVersionId indicates the saved configuration version corresponding to this download. The sample download link is redacted. Use the downloadUrl in the response.
|
|
2591
|
+
*
|
|
2592
|
+
* @param request - GetAgentCodePackageDownloadUrlRequest
|
|
2593
|
+
* @param headers - map
|
|
2594
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2595
|
+
* @returns GetAgentCodePackageDownloadUrlResponse
|
|
2596
|
+
*/
|
|
2597
|
+
async getAgentCodePackageDownloadUrlWithOptions(workspaceId, agentId, request, headers, runtime) {
|
|
2598
|
+
request.validate();
|
|
2599
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2600
|
+
headers: headers,
|
|
2601
|
+
});
|
|
2602
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2603
|
+
action: "GetAgentCodePackageDownloadUrl",
|
|
2604
|
+
version: "2026-08-04",
|
|
2605
|
+
protocol: "HTTPS",
|
|
2606
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/custom-agents/${$dara.URL.percentEncode(agentId)}/code-package/download-url`,
|
|
2607
|
+
method: "GET",
|
|
2608
|
+
authType: "AK",
|
|
2609
|
+
style: "ROA",
|
|
2610
|
+
reqBodyType: "json",
|
|
2611
|
+
bodyType: "json",
|
|
2612
|
+
});
|
|
2613
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAgentCodePackageDownloadUrlResponse({}));
|
|
2614
|
+
}
|
|
2615
|
+
/**
|
|
2616
|
+
* Retrieves the download URL for the saved code package of an agent.
|
|
2617
|
+
*
|
|
2618
|
+
* @remarks
|
|
2619
|
+
* Generates a time-limited, read-only download URL for the code package referenced by the currently saved agent configuration. This applies to code packages uploaded locally or imported from Object Storage Service (OSS). The operation uses workspaceId and agentId for locating and does not accept arbitrary bucket, object key, or historical version parameters. The current configuration must reference an available, fixed code package, and does not require waiting for a running instance to be ready. An error is returned if the code package does not exist, has changed, or is unreadable. The link is valid for up to 10 minutes and does not exceed the underlying credential expiration time. Call the operation again after it expires. The resourceVersionId indicates the saved configuration version corresponding to this download. The sample download link is redacted. Use the downloadUrl in the response.
|
|
2620
|
+
*
|
|
2621
|
+
* @param request - GetAgentCodePackageDownloadUrlRequest
|
|
2622
|
+
* @returns GetAgentCodePackageDownloadUrlResponse
|
|
2623
|
+
*/
|
|
2624
|
+
async getAgentCodePackageDownloadUrl(workspaceId, agentId, request) {
|
|
2625
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2626
|
+
let headers = {};
|
|
2627
|
+
return await this.getAgentCodePackageDownloadUrlWithOptions(workspaceId, agentId, request, headers, runtime);
|
|
2628
|
+
}
|
|
2629
|
+
/**
|
|
2630
|
+
* Retrieves the OSS RAM authorization URL for the agent code package.
|
|
2631
|
+
*
|
|
2632
|
+
* @remarks
|
|
2633
|
+
* Generates a RAM authorization URL for the resource role of the current workspace for a specified source bucket. The client cannot specify or override the role. After you open the authorizeUrl and confirm the authorization, call VerifyAgentCodePackageOssRamAuthorization to check the policy binding, and call ValidateAgentCodePackageFromOss to check specific objects.
|
|
2634
|
+
* This authorization reuses the OSSObjectRestoreCustom template, which includes permissions to read, write, and delete objects, and is not a read-only authorization. Retrieving the URL itself does not complete the authorization, transfer the code package, or modify the default OSS binding of the workspace. Existing authorizations for the same role and bucket can be reused. The example URL is provided to demonstrate the format. Use the actual authorization URL returned by the API operation.
|
|
2635
|
+
*
|
|
2636
|
+
* @param request - GetAgentCodePackageOssRamAuthorizeUrlRequest
|
|
2637
|
+
* @param headers - map
|
|
2638
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2639
|
+
* @returns GetAgentCodePackageOssRamAuthorizeUrlResponse
|
|
2640
|
+
*/
|
|
2641
|
+
async getAgentCodePackageOssRamAuthorizeUrlWithOptions(workspaceId, request, headers, runtime) {
|
|
2642
|
+
request.validate();
|
|
2643
|
+
let query = {};
|
|
2644
|
+
if (!$dara.isNull(request.ossBucketName)) {
|
|
2645
|
+
query["ossBucketName"] = request.ossBucketName;
|
|
2646
|
+
}
|
|
2647
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2648
|
+
headers: headers,
|
|
2649
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2650
|
+
});
|
|
2651
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2652
|
+
action: "GetAgentCodePackageOssRamAuthorizeUrl",
|
|
2653
|
+
version: "2026-08-04",
|
|
2654
|
+
protocol: "HTTPS",
|
|
2655
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/agent-code-packages/oss/authorize`,
|
|
2656
|
+
method: "GET",
|
|
2657
|
+
authType: "AK",
|
|
2658
|
+
style: "ROA",
|
|
2659
|
+
reqBodyType: "json",
|
|
2660
|
+
bodyType: "json",
|
|
2661
|
+
});
|
|
2662
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAgentCodePackageOssRamAuthorizeUrlResponse({}));
|
|
2663
|
+
}
|
|
2664
|
+
/**
|
|
2665
|
+
* Retrieves the OSS RAM authorization URL for the agent code package.
|
|
2666
|
+
*
|
|
2667
|
+
* @remarks
|
|
2668
|
+
* Generates a RAM authorization URL for the resource role of the current workspace for a specified source bucket. The client cannot specify or override the role. After you open the authorizeUrl and confirm the authorization, call VerifyAgentCodePackageOssRamAuthorization to check the policy binding, and call ValidateAgentCodePackageFromOss to check specific objects.
|
|
2669
|
+
* This authorization reuses the OSSObjectRestoreCustom template, which includes permissions to read, write, and delete objects, and is not a read-only authorization. Retrieving the URL itself does not complete the authorization, transfer the code package, or modify the default OSS binding of the workspace. Existing authorizations for the same role and bucket can be reused. The example URL is provided to demonstrate the format. Use the actual authorization URL returned by the API operation.
|
|
2670
|
+
*
|
|
2671
|
+
* @param request - GetAgentCodePackageOssRamAuthorizeUrlRequest
|
|
2672
|
+
* @returns GetAgentCodePackageOssRamAuthorizeUrlResponse
|
|
2673
|
+
*/
|
|
2674
|
+
async getAgentCodePackageOssRamAuthorizeUrl(workspaceId, request) {
|
|
2675
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2676
|
+
let headers = {};
|
|
2677
|
+
return await this.getAgentCodePackageOssRamAuthorizeUrlWithOptions(workspaceId, request, headers, runtime);
|
|
2678
|
+
}
|
|
2679
|
+
/**
|
|
2680
|
+
* Retrieves the upload URL for an agent code package.
|
|
2681
|
+
*
|
|
2682
|
+
* @remarks
|
|
2683
|
+
* Retrieves a time-limited upload URL for a code package without uploading the file content. The fileName must be a ZIP or TAR.GZ filename without directories. The format must match the file extension. The fileSize is in bytes, with valid values ranging from 1 to 500,000,000.
|
|
2684
|
+
* Use the uploadMethod, uploadUrl, and headers from the response to upload the file directly. After the upload is complete, pass the sourceUri to the artifact.code.sourceUri parameter of CreateCustomAgent or UpdateCustomAgent. The actual object and size are verified and a fixed copy is saved during creation or update. The upload URL is valid for up to 10 minutes and does not exceed the expiration time of the underlying temporary credentials. Retrieve a new URL after it expires. The example URL is desensitized and cannot be used for actual uploads. Use the original URL and request headers from this response.
|
|
2685
|
+
*
|
|
2686
|
+
* @param tmpReq - GetAgentCodePackageUploadUrlRequest
|
|
2687
|
+
* @param headers - map
|
|
2688
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2689
|
+
* @returns GetAgentCodePackageUploadUrlResponse
|
|
2690
|
+
*/
|
|
2691
|
+
async getAgentCodePackageUploadUrlWithOptions(workspaceId, tmpReq, headers, runtime) {
|
|
2692
|
+
tmpReq.validate();
|
|
2693
|
+
let request = new $_model.GetAgentCodePackageUploadUrlShrinkRequest({});
|
|
2694
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
2695
|
+
if (!$dara.isNull(tmpReq.body)) {
|
|
2696
|
+
request.bodyShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.body, "body", "json");
|
|
2697
|
+
}
|
|
2698
|
+
let body = {};
|
|
2699
|
+
if (!$dara.isNull(request.bodyShrink)) {
|
|
2700
|
+
body["body"] = request.bodyShrink;
|
|
2701
|
+
}
|
|
2702
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2703
|
+
headers: headers,
|
|
2704
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
2705
|
+
});
|
|
2706
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2707
|
+
action: "GetAgentCodePackageUploadUrl",
|
|
2708
|
+
version: "2026-08-04",
|
|
2709
|
+
protocol: "HTTPS",
|
|
2710
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/agent-code-packages/upload-url`,
|
|
2711
|
+
method: "POST",
|
|
2712
|
+
authType: "AK",
|
|
2713
|
+
style: "ROA",
|
|
2714
|
+
reqBodyType: "formData",
|
|
2715
|
+
bodyType: "json",
|
|
2716
|
+
});
|
|
2717
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAgentCodePackageUploadUrlResponse({}));
|
|
2718
|
+
}
|
|
2719
|
+
/**
|
|
2720
|
+
* Retrieves the upload URL for an agent code package.
|
|
2721
|
+
*
|
|
2722
|
+
* @remarks
|
|
2723
|
+
* Retrieves a time-limited upload URL for a code package without uploading the file content. The fileName must be a ZIP or TAR.GZ filename without directories. The format must match the file extension. The fileSize is in bytes, with valid values ranging from 1 to 500,000,000.
|
|
2724
|
+
* Use the uploadMethod, uploadUrl, and headers from the response to upload the file directly. After the upload is complete, pass the sourceUri to the artifact.code.sourceUri parameter of CreateCustomAgent or UpdateCustomAgent. The actual object and size are verified and a fixed copy is saved during creation or update. The upload URL is valid for up to 10 minutes and does not exceed the expiration time of the underlying temporary credentials. Retrieve a new URL after it expires. The example URL is desensitized and cannot be used for actual uploads. Use the original URL and request headers from this response.
|
|
2725
|
+
*
|
|
2726
|
+
* @param request - GetAgentCodePackageUploadUrlRequest
|
|
2727
|
+
* @returns GetAgentCodePackageUploadUrlResponse
|
|
2728
|
+
*/
|
|
2729
|
+
async getAgentCodePackageUploadUrl(workspaceId, request) {
|
|
2730
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2731
|
+
let headers = {};
|
|
2732
|
+
return await this.getAgentCodePackageUploadUrlWithOptions(workspaceId, request, headers, runtime);
|
|
2733
|
+
}
|
|
2401
2734
|
/**
|
|
2402
2735
|
* Queries the details of a specified agent IM channel.
|
|
2403
2736
|
*
|
|
@@ -2673,8 +3006,8 @@ class Client extends openapi_core_1.default {
|
|
|
2673
3006
|
* 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.
|
|
2674
3007
|
*
|
|
2675
3008
|
* @remarks
|
|
2676
|
-
* After
|
|
2677
|
-
* The returned configuration is the
|
|
3009
|
+
* After creating or updating 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.
|
|
3010
|
+
* The returned configuration is the latest submitted configuration and may not have taken effect. Verify the deployment and running status by checking latestVersionStatus, the overall agent status, and the running instance statistics sandboxPhaseCounts.
|
|
2678
3011
|
* 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.
|
|
2679
3012
|
*
|
|
2680
3013
|
* @param request - GetCustomAgentRequest
|
|
@@ -2704,8 +3037,8 @@ class Client extends openapi_core_1.default {
|
|
|
2704
3037
|
* 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.
|
|
2705
3038
|
*
|
|
2706
3039
|
* @remarks
|
|
2707
|
-
* After
|
|
2708
|
-
* The returned configuration is the
|
|
3040
|
+
* After creating or updating 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.
|
|
3041
|
+
* The returned configuration is the latest submitted configuration and may not have taken effect. Verify the deployment and running status by checking latestVersionStatus, the overall agent status, and the running instance statistics sandboxPhaseCounts.
|
|
2709
3042
|
* 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.
|
|
2710
3043
|
*
|
|
2711
3044
|
* @param request - GetCustomAgentRequest
|
|
@@ -2803,7 +3136,33 @@ class Client extends openapi_core_1.default {
|
|
|
2803
3136
|
return await this.getExternalAgentBootstrapOptionsWithOptions(workspaceId, agentId, request, headers, runtime);
|
|
2804
3137
|
}
|
|
2805
3138
|
/**
|
|
2806
|
-
* Queries the binding details of
|
|
3139
|
+
* Queries the binding details of an external identity provider for a specified workspace, including the binding status, application configurations, and the callback URL to be configured on the identity provider side. Application secret configurations are not returned.
|
|
3140
|
+
*
|
|
3141
|
+
* @remarks
|
|
3142
|
+
* ## Features and prerequisites
|
|
3143
|
+
* Reads existing bindings by type. For CustomSSO, the API returns the saved protocol, standardized SAML, expected loginEnabled, syncEnabled, and shared binding status. If SAML is not configured, the saml and configuration fields may not be returned. If SAML is configured, the API additionally queries AgentIdentity, and the configuration field represents the actual SSO/JIT configuration. The saml field serves as the data source for the edit form. The status switches in the configuration field are Enabled and Disabled. If the upstream query fails, an error is returned. This failure must not be treated as an unconfigured state.
|
|
3144
|
+
* Only this API reads back the actual SAML configuration. The list and write APIs do not guarantee that the configuration field is returned. A READY user pool does not indicate that SAML is configured. The UPDATING and UPDATE_FAILED statuses describe logon configuration tasks, not SCIM tasks. The vendor callback URL for CustomSSO is empty. Use GetIdentityProviderSCIM.operationStatus to query SCIM operation results.
|
|
3145
|
+
* ## Requests and examples
|
|
3146
|
+
* GET /workspaces/{workspaceId}/identity-providers/{identityProviderType}
|
|
3147
|
+
* Calling convention: Call this API in the region of the target workspace by using an AccessKey pair or STS token that has permissions on the identity source resources of the workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, rather than the extra body wrapper of the backend direct-connection API. The response example shows only the business data. The outer layer also includes requestId, success, code, message, and httpStatusCode. Retain the requestId for troubleshooting and do not log secrets. Asynchronous business tasks do not imply that the HTTP request uses a persistent connection to wait for completion.
|
|
3148
|
+
* ```text
|
|
3149
|
+
* GET /workspaces/ws-example/identity-providers/CustomSSO
|
|
3150
|
+
* ```
|
|
3151
|
+
* ## Response example
|
|
3152
|
+
* ```json
|
|
3153
|
+
* {
|
|
3154
|
+
* "data": {
|
|
3155
|
+
* "workspaceId": "ws-example",
|
|
3156
|
+
* "identityProviderType": "CustomSSO",
|
|
3157
|
+
* "status": "READY",
|
|
3158
|
+
* "loginEnabled": false,
|
|
3159
|
+
* "syncEnabled": false
|
|
3160
|
+
* }
|
|
3161
|
+
* }
|
|
3162
|
+
* ```
|
|
3163
|
+
* ## Errors and handling
|
|
3164
|
+
* Error handling: A 400 InvalidParameter error indicates that the parameters or current configuration prerequisites are not met. A 404 IdentityProviderNotFound error indicates that no binding of the specified type exists. Synchronous calls to the upstream service may return a 503 IdentityProviderProvisioningUnavailable error if they fail. Retain the request ID for troubleshooting and do not interpret read failures as an unconfigured state. Authentication errors and workspace-not-found errors follow common error handling procedures.
|
|
3165
|
+
* 404 IdentityProviderNotFound: No binding exists, or the specified type is inconsistent with the current binding. If SAML is already configured, an upstream read failure does not degrade to a successful empty configuration.
|
|
2807
3166
|
*
|
|
2808
3167
|
* @param request - GetIdentityProviderRequest
|
|
2809
3168
|
* @param headers - map
|
|
@@ -2829,7 +3188,33 @@ class Client extends openapi_core_1.default {
|
|
|
2829
3188
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetIdentityProviderResponse({}));
|
|
2830
3189
|
}
|
|
2831
3190
|
/**
|
|
2832
|
-
* Queries the binding details of
|
|
3191
|
+
* Queries the binding details of an external identity provider for a specified workspace, including the binding status, application configurations, and the callback URL to be configured on the identity provider side. Application secret configurations are not returned.
|
|
3192
|
+
*
|
|
3193
|
+
* @remarks
|
|
3194
|
+
* ## Features and prerequisites
|
|
3195
|
+
* Reads existing bindings by type. For CustomSSO, the API returns the saved protocol, standardized SAML, expected loginEnabled, syncEnabled, and shared binding status. If SAML is not configured, the saml and configuration fields may not be returned. If SAML is configured, the API additionally queries AgentIdentity, and the configuration field represents the actual SSO/JIT configuration. The saml field serves as the data source for the edit form. The status switches in the configuration field are Enabled and Disabled. If the upstream query fails, an error is returned. This failure must not be treated as an unconfigured state.
|
|
3196
|
+
* Only this API reads back the actual SAML configuration. The list and write APIs do not guarantee that the configuration field is returned. A READY user pool does not indicate that SAML is configured. The UPDATING and UPDATE_FAILED statuses describe logon configuration tasks, not SCIM tasks. The vendor callback URL for CustomSSO is empty. Use GetIdentityProviderSCIM.operationStatus to query SCIM operation results.
|
|
3197
|
+
* ## Requests and examples
|
|
3198
|
+
* GET /workspaces/{workspaceId}/identity-providers/{identityProviderType}
|
|
3199
|
+
* Calling convention: Call this API in the region of the target workspace by using an AccessKey pair or STS token that has permissions on the identity source resources of the workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, rather than the extra body wrapper of the backend direct-connection API. The response example shows only the business data. The outer layer also includes requestId, success, code, message, and httpStatusCode. Retain the requestId for troubleshooting and do not log secrets. Asynchronous business tasks do not imply that the HTTP request uses a persistent connection to wait for completion.
|
|
3200
|
+
* ```text
|
|
3201
|
+
* GET /workspaces/ws-example/identity-providers/CustomSSO
|
|
3202
|
+
* ```
|
|
3203
|
+
* ## Response example
|
|
3204
|
+
* ```json
|
|
3205
|
+
* {
|
|
3206
|
+
* "data": {
|
|
3207
|
+
* "workspaceId": "ws-example",
|
|
3208
|
+
* "identityProviderType": "CustomSSO",
|
|
3209
|
+
* "status": "READY",
|
|
3210
|
+
* "loginEnabled": false,
|
|
3211
|
+
* "syncEnabled": false
|
|
3212
|
+
* }
|
|
3213
|
+
* }
|
|
3214
|
+
* ```
|
|
3215
|
+
* ## Errors and handling
|
|
3216
|
+
* Error handling: A 400 InvalidParameter error indicates that the parameters or current configuration prerequisites are not met. A 404 IdentityProviderNotFound error indicates that no binding of the specified type exists. Synchronous calls to the upstream service may return a 503 IdentityProviderProvisioningUnavailable error if they fail. Retain the request ID for troubleshooting and do not interpret read failures as an unconfigured state. Authentication errors and workspace-not-found errors follow common error handling procedures.
|
|
3217
|
+
* 404 IdentityProviderNotFound: No binding exists, or the specified type is inconsistent with the current binding. If SAML is already configured, an upstream read failure does not degrade to a successful empty configuration.
|
|
2833
3218
|
*
|
|
2834
3219
|
* @param request - GetIdentityProviderRequest
|
|
2835
3220
|
* @returns GetIdentityProviderResponse
|
|
@@ -2839,6 +3224,194 @@ class Client extends openapi_core_1.default {
|
|
|
2839
3224
|
let headers = {};
|
|
2840
3225
|
return await this.getIdentityProviderWithOptions(workspaceId, identityProviderType, request, headers, runtime);
|
|
2841
3226
|
}
|
|
3227
|
+
/**
|
|
3228
|
+
* Queries an identity provider synchronization task.
|
|
3229
|
+
*
|
|
3230
|
+
* @remarks
|
|
3231
|
+
* Queries the status, current step, number of processed users, and failure cause of a manual synchronization task by using the local taskId of AgentCore. The taskId must be obtained from CreateIdentityProviderSyncJob in the same workspace and identity provider. It is not the synchronizationJobId of AgentIdentity. Poll the task until the status is SUCCESS, FAILED, or CANCELED. The PENDING, RUNNING, and PAUSED statuses do not indicate completion. The syncedUserCount includes updated existing users and does not equal the number of newly added users or the progress percentage.
|
|
3232
|
+
* Authorization information: The RAM operation is agentcore:GetIdentityProviderSyncJob, the access level is Read, and the resource ARN is acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is a required authorization resource.
|
|
3233
|
+
* Idempotence and retry: This operation is read-only and can be repeatedly queried.
|
|
3234
|
+
* Calling this API operation is free of charge, and operation records support ActionTrail auditing.
|
|
3235
|
+
* Response example:
|
|
3236
|
+
* ```json
|
|
3237
|
+
* {
|
|
3238
|
+
* "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
|
|
3239
|
+
* "message": "success",
|
|
3240
|
+
* "httpStatusCode": 200,
|
|
3241
|
+
* "code": "SUCCESS",
|
|
3242
|
+
* "success": true,
|
|
3243
|
+
* "data": {
|
|
3244
|
+
* "taskId": "12345678-1234-4234-8234-123456789abc",
|
|
3245
|
+
* "status": "SUCCESS",
|
|
3246
|
+
* "currentStep": "SYNC",
|
|
3247
|
+
* "synchronizationJobId": "syncjob_0123456789abcdef0123456789abcdef",
|
|
3248
|
+
* "syncedUserCount": 12
|
|
3249
|
+
* }
|
|
3250
|
+
* }
|
|
3251
|
+
* ```
|
|
3252
|
+
*
|
|
3253
|
+
* @param request - GetIdentityProviderSyncJobRequest
|
|
3254
|
+
* @param headers - map
|
|
3255
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3256
|
+
* @returns GetIdentityProviderSyncJobResponse
|
|
3257
|
+
*/
|
|
3258
|
+
async getIdentityProviderSyncJobWithOptions(workspaceId, identityProviderType, taskId, request, headers, runtime) {
|
|
3259
|
+
request.validate();
|
|
3260
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3261
|
+
headers: headers,
|
|
3262
|
+
});
|
|
3263
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3264
|
+
action: "GetIdentityProviderSyncJob",
|
|
3265
|
+
version: "2026-08-04",
|
|
3266
|
+
protocol: "HTTPS",
|
|
3267
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/identity-providers/${$dara.URL.percentEncode(identityProviderType)}/sync-jobs/${$dara.URL.percentEncode(taskId)}`,
|
|
3268
|
+
method: "GET",
|
|
3269
|
+
authType: "AK",
|
|
3270
|
+
style: "ROA",
|
|
3271
|
+
reqBodyType: "json",
|
|
3272
|
+
bodyType: "json",
|
|
3273
|
+
});
|
|
3274
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetIdentityProviderSyncJobResponse({}));
|
|
3275
|
+
}
|
|
3276
|
+
/**
|
|
3277
|
+
* Queries an identity provider synchronization task.
|
|
3278
|
+
*
|
|
3279
|
+
* @remarks
|
|
3280
|
+
* Queries the status, current step, number of processed users, and failure cause of a manual synchronization task by using the local taskId of AgentCore. The taskId must be obtained from CreateIdentityProviderSyncJob in the same workspace and identity provider. It is not the synchronizationJobId of AgentIdentity. Poll the task until the status is SUCCESS, FAILED, or CANCELED. The PENDING, RUNNING, and PAUSED statuses do not indicate completion. The syncedUserCount includes updated existing users and does not equal the number of newly added users or the progress percentage.
|
|
3281
|
+
* Authorization information: The RAM operation is agentcore:GetIdentityProviderSyncJob, the access level is Read, and the resource ARN is acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is a required authorization resource.
|
|
3282
|
+
* Idempotence and retry: This operation is read-only and can be repeatedly queried.
|
|
3283
|
+
* Calling this API operation is free of charge, and operation records support ActionTrail auditing.
|
|
3284
|
+
* Response example:
|
|
3285
|
+
* ```json
|
|
3286
|
+
* {
|
|
3287
|
+
* "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
|
|
3288
|
+
* "message": "success",
|
|
3289
|
+
* "httpStatusCode": 200,
|
|
3290
|
+
* "code": "SUCCESS",
|
|
3291
|
+
* "success": true,
|
|
3292
|
+
* "data": {
|
|
3293
|
+
* "taskId": "12345678-1234-4234-8234-123456789abc",
|
|
3294
|
+
* "status": "SUCCESS",
|
|
3295
|
+
* "currentStep": "SYNC",
|
|
3296
|
+
* "synchronizationJobId": "syncjob_0123456789abcdef0123456789abcdef",
|
|
3297
|
+
* "syncedUserCount": 12
|
|
3298
|
+
* }
|
|
3299
|
+
* }
|
|
3300
|
+
* ```
|
|
3301
|
+
*
|
|
3302
|
+
* @param request - GetIdentityProviderSyncJobRequest
|
|
3303
|
+
* @returns GetIdentityProviderSyncJobResponse
|
|
3304
|
+
*/
|
|
3305
|
+
async getIdentityProviderSyncJob(workspaceId, identityProviderType, taskId, request) {
|
|
3306
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3307
|
+
let headers = {};
|
|
3308
|
+
return await this.getIdentityProviderSyncJobWithOptions(workspaceId, identityProviderType, taskId, request, headers, runtime);
|
|
3309
|
+
}
|
|
3310
|
+
/**
|
|
3311
|
+
* Queries the synchronization scope of an identity provider.
|
|
3312
|
+
*
|
|
3313
|
+
* @remarks
|
|
3314
|
+
* Queries the saved synchronization scope, the validity of selected departments, and the estimated user count downstream of the identity provider. This operation is not used for real-time estimation of unsaved selections. AllAuthorized indicates the address book scope authorized for the application, which is not equivalent to the entire enterprise organization. An empty selectedDepartments array does not prove that the organization has no sub-departments. The estimation can be used only when estimateStatus is Ready and a count is returned. A missing count does not indicate 0.
|
|
3315
|
+
* Authorization information: RAM operation agentcore:GetIdentityProviderSyncScope, access level Read, resource ARN: acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is a required authorization resource.
|
|
3316
|
+
* Idempotence and retry: This operation is read-only and can be queried repeatedly.
|
|
3317
|
+
* Calling this API operation is free of charge. Operation records support ActionTrail auditing.
|
|
3318
|
+
* Sample response:
|
|
3319
|
+
* ```json
|
|
3320
|
+
* {
|
|
3321
|
+
* "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
|
|
3322
|
+
* "message": "success",
|
|
3323
|
+
* "httpStatusCode": 200,
|
|
3324
|
+
* "code": "SUCCESS",
|
|
3325
|
+
* "success": true,
|
|
3326
|
+
* "data": {
|
|
3327
|
+
* "syncScope": {
|
|
3328
|
+
* "mode": "SelectedDepartments",
|
|
3329
|
+
* "departmentIds": [
|
|
3330
|
+
* "10001"
|
|
3331
|
+
* ]
|
|
3332
|
+
* },
|
|
3333
|
+
* "selectedDepartments": [
|
|
3334
|
+
* {
|
|
3335
|
+
* "id": "10001",
|
|
3336
|
+
* "name": "R&D Department",
|
|
3337
|
+
* "exists": true
|
|
3338
|
+
* }
|
|
3339
|
+
* ],
|
|
3340
|
+
* "estimateStatus": "Ready",
|
|
3341
|
+
* "expandedDepartmentCount": 2,
|
|
3342
|
+
* "estimatedUserCount": 12
|
|
3343
|
+
* }
|
|
3344
|
+
* }
|
|
3345
|
+
* ```
|
|
3346
|
+
*
|
|
3347
|
+
* @param request - GetIdentityProviderSyncScopeRequest
|
|
3348
|
+
* @param headers - map
|
|
3349
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3350
|
+
* @returns GetIdentityProviderSyncScopeResponse
|
|
3351
|
+
*/
|
|
3352
|
+
async getIdentityProviderSyncScopeWithOptions(workspaceId, identityProviderType, request, headers, runtime) {
|
|
3353
|
+
request.validate();
|
|
3354
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3355
|
+
headers: headers,
|
|
3356
|
+
});
|
|
3357
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3358
|
+
action: "GetIdentityProviderSyncScope",
|
|
3359
|
+
version: "2026-08-04",
|
|
3360
|
+
protocol: "HTTPS",
|
|
3361
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/identity-providers/${$dara.URL.percentEncode(identityProviderType)}/sync-scope`,
|
|
3362
|
+
method: "GET",
|
|
3363
|
+
authType: "AK",
|
|
3364
|
+
style: "ROA",
|
|
3365
|
+
reqBodyType: "json",
|
|
3366
|
+
bodyType: "json",
|
|
3367
|
+
});
|
|
3368
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetIdentityProviderSyncScopeResponse({}));
|
|
3369
|
+
}
|
|
3370
|
+
/**
|
|
3371
|
+
* Queries the synchronization scope of an identity provider.
|
|
3372
|
+
*
|
|
3373
|
+
* @remarks
|
|
3374
|
+
* Queries the saved synchronization scope, the validity of selected departments, and the estimated user count downstream of the identity provider. This operation is not used for real-time estimation of unsaved selections. AllAuthorized indicates the address book scope authorized for the application, which is not equivalent to the entire enterprise organization. An empty selectedDepartments array does not prove that the organization has no sub-departments. The estimation can be used only when estimateStatus is Ready and a count is returned. A missing count does not indicate 0.
|
|
3375
|
+
* Authorization information: RAM operation agentcore:GetIdentityProviderSyncScope, access level Read, resource ARN: acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is a required authorization resource.
|
|
3376
|
+
* Idempotence and retry: This operation is read-only and can be queried repeatedly.
|
|
3377
|
+
* Calling this API operation is free of charge. Operation records support ActionTrail auditing.
|
|
3378
|
+
* Sample response:
|
|
3379
|
+
* ```json
|
|
3380
|
+
* {
|
|
3381
|
+
* "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
|
|
3382
|
+
* "message": "success",
|
|
3383
|
+
* "httpStatusCode": 200,
|
|
3384
|
+
* "code": "SUCCESS",
|
|
3385
|
+
* "success": true,
|
|
3386
|
+
* "data": {
|
|
3387
|
+
* "syncScope": {
|
|
3388
|
+
* "mode": "SelectedDepartments",
|
|
3389
|
+
* "departmentIds": [
|
|
3390
|
+
* "10001"
|
|
3391
|
+
* ]
|
|
3392
|
+
* },
|
|
3393
|
+
* "selectedDepartments": [
|
|
3394
|
+
* {
|
|
3395
|
+
* "id": "10001",
|
|
3396
|
+
* "name": "R&D Department",
|
|
3397
|
+
* "exists": true
|
|
3398
|
+
* }
|
|
3399
|
+
* ],
|
|
3400
|
+
* "estimateStatus": "Ready",
|
|
3401
|
+
* "expandedDepartmentCount": 2,
|
|
3402
|
+
* "estimatedUserCount": 12
|
|
3403
|
+
* }
|
|
3404
|
+
* }
|
|
3405
|
+
* ```
|
|
3406
|
+
*
|
|
3407
|
+
* @param request - GetIdentityProviderSyncScopeRequest
|
|
3408
|
+
* @returns GetIdentityProviderSyncScopeResponse
|
|
3409
|
+
*/
|
|
3410
|
+
async getIdentityProviderSyncScope(workspaceId, identityProviderType, request) {
|
|
3411
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3412
|
+
let headers = {};
|
|
3413
|
+
return await this.getIdentityProviderSyncScopeWithOptions(workspaceId, identityProviderType, request, headers, runtime);
|
|
3414
|
+
}
|
|
2842
3415
|
/**
|
|
2843
3416
|
* Queries the details of an image cache.
|
|
2844
3417
|
*
|
|
@@ -3831,6 +4404,59 @@ class Client extends openapi_core_1.default {
|
|
|
3831
4404
|
let headers = {};
|
|
3832
4405
|
return await this.installWorkspacePluginWithOptions(workspaceId, pluginName, request, headers, runtime);
|
|
3833
4406
|
}
|
|
4407
|
+
/**
|
|
4408
|
+
* Queries the runtime environments supported for code deployment.
|
|
4409
|
+
*
|
|
4410
|
+
* @remarks
|
|
4411
|
+
* Queries the directories in the current workspace that can be used to create code package agents or switch runtime environments. Runtime environments are dynamically provided based on the current version configuration, and internal image addresses are not returned.
|
|
4412
|
+
* If maxResults is omitted or set to 0, the default value is 10. If the value is greater than 100, it is processed as 100. Omit nextToken in the first request. For subsequent requests, use the token returned in the previous response as is, and keep the workspace unchanged. If a directory change invalidates the token, query from the first page again. An empty nextToken indicates that there are no more pages. Existing agents continue to use the saved images for restarts, scaling, and regular updates.
|
|
4413
|
+
*
|
|
4414
|
+
* @param request - ListAgentCodeRuntimesRequest
|
|
4415
|
+
* @param headers - map
|
|
4416
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4417
|
+
* @returns ListAgentCodeRuntimesResponse
|
|
4418
|
+
*/
|
|
4419
|
+
async listAgentCodeRuntimesWithOptions(workspaceId, request, headers, runtime) {
|
|
4420
|
+
request.validate();
|
|
4421
|
+
let query = {};
|
|
4422
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
4423
|
+
query["maxResults"] = request.maxResults;
|
|
4424
|
+
}
|
|
4425
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
4426
|
+
query["nextToken"] = request.nextToken;
|
|
4427
|
+
}
|
|
4428
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4429
|
+
headers: headers,
|
|
4430
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4431
|
+
});
|
|
4432
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4433
|
+
action: "ListAgentCodeRuntimes",
|
|
4434
|
+
version: "2026-08-04",
|
|
4435
|
+
protocol: "HTTPS",
|
|
4436
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/agent-code-runtimes`,
|
|
4437
|
+
method: "GET",
|
|
4438
|
+
authType: "AK",
|
|
4439
|
+
style: "ROA",
|
|
4440
|
+
reqBodyType: "json",
|
|
4441
|
+
bodyType: "json",
|
|
4442
|
+
});
|
|
4443
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAgentCodeRuntimesResponse({}));
|
|
4444
|
+
}
|
|
4445
|
+
/**
|
|
4446
|
+
* Queries the runtime environments supported for code deployment.
|
|
4447
|
+
*
|
|
4448
|
+
* @remarks
|
|
4449
|
+
* Queries the directories in the current workspace that can be used to create code package agents or switch runtime environments. Runtime environments are dynamically provided based on the current version configuration, and internal image addresses are not returned.
|
|
4450
|
+
* If maxResults is omitted or set to 0, the default value is 10. If the value is greater than 100, it is processed as 100. Omit nextToken in the first request. For subsequent requests, use the token returned in the previous response as is, and keep the workspace unchanged. If a directory change invalidates the token, query from the first page again. An empty nextToken indicates that there are no more pages. Existing agents continue to use the saved images for restarts, scaling, and regular updates.
|
|
4451
|
+
*
|
|
4452
|
+
* @param request - ListAgentCodeRuntimesRequest
|
|
4453
|
+
* @returns ListAgentCodeRuntimesResponse
|
|
4454
|
+
*/
|
|
4455
|
+
async listAgentCodeRuntimes(workspaceId, request) {
|
|
4456
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4457
|
+
let headers = {};
|
|
4458
|
+
return await this.listAgentCodeRuntimesWithOptions(workspaceId, request, headers, runtime);
|
|
4459
|
+
}
|
|
3834
4460
|
/**
|
|
3835
4461
|
* Queries the list of IM channels for a specified agent.
|
|
3836
4462
|
*
|
|
@@ -4175,12 +4801,12 @@ class Client extends openapi_core_1.default {
|
|
|
4175
4801
|
return await this.listCredentialsWithOptions(workspaceId, request, headers, runtime);
|
|
4176
4802
|
}
|
|
4177
4803
|
/**
|
|
4178
|
-
*
|
|
4804
|
+
* Performs a paged query for paging through the custom agent summary in a specified workspace. For the complete configuration and the latest execute results, call GetCustomAgent.
|
|
4179
4805
|
*
|
|
4180
4806
|
* @remarks
|
|
4181
|
-
* The default value of maxResults is 20
|
|
4182
|
-
* Omit nextToken in the first request.
|
|
4183
|
-
* This operation returns the summaries of the current page and does not return the complete deployment
|
|
4807
|
+
* The default value of maxResults is 20 and the maximum value is 100. If this parameter is omitted or set to 0, the default value is used.
|
|
4808
|
+
* Omit nextToken in the first request. For subsequent requests, pass the nextToken returned in the previous response as is and keep the same workspace. The nextToken is an opaque token. Do not parse or construct it. An empty token in the response indicates that there are no more pages.
|
|
4809
|
+
* This operation returns the summaries of the current page and does not return the complete deployment configurations or the execution errors of the latest version. To obtain this information, call GetCustomAgent by using the agentId in items.
|
|
4184
4810
|
*
|
|
4185
4811
|
* @param request - ListCustomAgentsRequest
|
|
4186
4812
|
* @param headers - map
|
|
@@ -4214,12 +4840,12 @@ class Client extends openapi_core_1.default {
|
|
|
4214
4840
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCustomAgentsResponse({}));
|
|
4215
4841
|
}
|
|
4216
4842
|
/**
|
|
4217
|
-
*
|
|
4843
|
+
* Performs a paged query for paging through the custom agent summary in a specified workspace. For the complete configuration and the latest execute results, call GetCustomAgent.
|
|
4218
4844
|
*
|
|
4219
4845
|
* @remarks
|
|
4220
|
-
* The default value of maxResults is 20
|
|
4221
|
-
* Omit nextToken in the first request.
|
|
4222
|
-
* This operation returns the summaries of the current page and does not return the complete deployment
|
|
4846
|
+
* The default value of maxResults is 20 and the maximum value is 100. If this parameter is omitted or set to 0, the default value is used.
|
|
4847
|
+
* Omit nextToken in the first request. For subsequent requests, pass the nextToken returned in the previous response as is and keep the same workspace. The nextToken is an opaque token. Do not parse or construct it. An empty token in the response indicates that there are no more pages.
|
|
4848
|
+
* This operation returns the summaries of the current page and does not return the complete deployment configurations or the execution errors of the latest version. To obtain this information, call GetCustomAgent by using the agentId in items.
|
|
4223
4849
|
*
|
|
4224
4850
|
* @param request - ListCustomAgentsRequest
|
|
4225
4851
|
* @returns ListCustomAgentsResponse
|
|
@@ -4280,9 +4906,93 @@ class Client extends openapi_core_1.default {
|
|
|
4280
4906
|
let headers = {};
|
|
4281
4907
|
return await this.listExternalAgentsWithOptions(workspaceId, request, headers, runtime);
|
|
4282
4908
|
}
|
|
4909
|
+
/**
|
|
4910
|
+
* Queries the departments of an identity provider by page.
|
|
4911
|
+
*
|
|
4912
|
+
* @remarks
|
|
4913
|
+
* Queries DingTalk or Feishu departments by hierarchy and page. Prerequisites include a bound identity provider, a user pool, valid application credentials, and address book read authorization. If you do not specify parentDepartmentId, the root hierarchy is queried. When expanding a node, specify the ID of the node to query its direct child departments. The hasChildren field indicates whether the node can be expanded and does not mean that child nodes are returned. The nextToken field is used only to query the next page of child departments under the current parent department. This query only reads the directory. It does not save the synchronization scope or import users. If a new department is added to a DingTalk or Feishu organization, re-query the corresponding parent department because the previous list does not reflect the latest directory.\\n\\nAuthorization information: The RAM action is agentcore:ListIdentityProviderDepartments, the access level is List, and the resource ARN is acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is required for authorization.\\n\\nIdempotency and retry: This operation is read-only and can be called repeatedly.\\n\\nCalling this API is free of charge. Operation records support ActionTrail auditing.\\n\\nResponse example:\\n```json\\n{\\n "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",\\n "message": "success",\\n "httpStatusCode": 200,\\n "code": "SUCCESS",\\n "success": true,\\n "maxResults": 50,\\n "nextToken": "",\\n "items": [\\n {\\n "id": "10001",\\n "name": "R&D Department",\\n "parentId": "1",\\n "memberCount": 12,\\n "hasChildren": true\\n }\\n ]\\n}\\n```
|
|
4914
|
+
*
|
|
4915
|
+
* @param request - ListIdentityProviderDepartmentsRequest
|
|
4916
|
+
* @param headers - map
|
|
4917
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4918
|
+
* @returns ListIdentityProviderDepartmentsResponse
|
|
4919
|
+
*/
|
|
4920
|
+
async listIdentityProviderDepartmentsWithOptions(workspaceId, identityProviderType, request, headers, runtime) {
|
|
4921
|
+
request.validate();
|
|
4922
|
+
let query = {};
|
|
4923
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
4924
|
+
query["maxResults"] = request.maxResults;
|
|
4925
|
+
}
|
|
4926
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
4927
|
+
query["nextToken"] = request.nextToken;
|
|
4928
|
+
}
|
|
4929
|
+
if (!$dara.isNull(request.parentDepartmentId)) {
|
|
4930
|
+
query["parentDepartmentId"] = request.parentDepartmentId;
|
|
4931
|
+
}
|
|
4932
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4933
|
+
headers: headers,
|
|
4934
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4935
|
+
});
|
|
4936
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4937
|
+
action: "ListIdentityProviderDepartments",
|
|
4938
|
+
version: "2026-08-04",
|
|
4939
|
+
protocol: "HTTPS",
|
|
4940
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/identity-providers/${$dara.URL.percentEncode(identityProviderType)}/departments`,
|
|
4941
|
+
method: "GET",
|
|
4942
|
+
authType: "AK",
|
|
4943
|
+
style: "ROA",
|
|
4944
|
+
reqBodyType: "json",
|
|
4945
|
+
bodyType: "json",
|
|
4946
|
+
});
|
|
4947
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListIdentityProviderDepartmentsResponse({}));
|
|
4948
|
+
}
|
|
4949
|
+
/**
|
|
4950
|
+
* Queries the departments of an identity provider by page.
|
|
4951
|
+
*
|
|
4952
|
+
* @remarks
|
|
4953
|
+
* Queries DingTalk or Feishu departments by hierarchy and page. Prerequisites include a bound identity provider, a user pool, valid application credentials, and address book read authorization. If you do not specify parentDepartmentId, the root hierarchy is queried. When expanding a node, specify the ID of the node to query its direct child departments. The hasChildren field indicates whether the node can be expanded and does not mean that child nodes are returned. The nextToken field is used only to query the next page of child departments under the current parent department. This query only reads the directory. It does not save the synchronization scope or import users. If a new department is added to a DingTalk or Feishu organization, re-query the corresponding parent department because the previous list does not reflect the latest directory.\\n\\nAuthorization information: The RAM action is agentcore:ListIdentityProviderDepartments, the access level is List, and the resource ARN is acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is required for authorization.\\n\\nIdempotency and retry: This operation is read-only and can be called repeatedly.\\n\\nCalling this API is free of charge. Operation records support ActionTrail auditing.\\n\\nResponse example:\\n```json\\n{\\n "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",\\n "message": "success",\\n "httpStatusCode": 200,\\n "code": "SUCCESS",\\n "success": true,\\n "maxResults": 50,\\n "nextToken": "",\\n "items": [\\n {\\n "id": "10001",\\n "name": "R&D Department",\\n "parentId": "1",\\n "memberCount": 12,\\n "hasChildren": true\\n }\\n ]\\n}\\n```
|
|
4954
|
+
*
|
|
4955
|
+
* @param request - ListIdentityProviderDepartmentsRequest
|
|
4956
|
+
* @returns ListIdentityProviderDepartmentsResponse
|
|
4957
|
+
*/
|
|
4958
|
+
async listIdentityProviderDepartments(workspaceId, identityProviderType, request) {
|
|
4959
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4960
|
+
let headers = {};
|
|
4961
|
+
return await this.listIdentityProviderDepartmentsWithOptions(workspaceId, identityProviderType, request, headers, runtime);
|
|
4962
|
+
}
|
|
4283
4963
|
/**
|
|
4284
4964
|
* Queries the external identity providers bound to a specified workspace. Each workspace can be bound to at most one external identity provider, so the response returns at most one record. Application secret configurations are not returned.
|
|
4285
4965
|
*
|
|
4966
|
+
* @remarks
|
|
4967
|
+
* ## Features and prerequisites
|
|
4968
|
+
* Returns the local binding summary without querying the actual SAML or SCIM configurations of AgentIdentity. If no binding exists, items is an empty array. A workspace currently supports only one external binding. The default value of maxResults is 10, and the valid range is 1 to 100. Currently, nextToken must be omitted or left empty. A non-empty value returns InvalidParameter, and fictitious multi-page results are not supported.
|
|
4969
|
+
* The status of CustomSSO indicates the task status of shared resources and logon configurations. You must check protocol and saml to determine whether SAML is configured. To query SCIM configurations, independently call GetIdentityProviderSCIM. The list operation does not issue tokens and does not return the vendor appSecret, encryptKey, or verificationToken.
|
|
4970
|
+
* ## Requests and examples
|
|
4971
|
+
* GET /workspaces/{workspaceId}/identity-providers
|
|
4972
|
+
* Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or Security Token Service (STS) token that has the required permissions on the identity source resources of the workspace. In the following examples, ws-example, URLs, certificates, and tokens are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example shows only the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Retain the requestId for troubleshooting and do not record secrets. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
|
|
4973
|
+
* ```text
|
|
4974
|
+
* GET /workspaces/ws-example/identity-providers?maxResults=10
|
|
4975
|
+
* ```
|
|
4976
|
+
* ## Response examples
|
|
4977
|
+
* ```json
|
|
4978
|
+
* {
|
|
4979
|
+
* "items": [
|
|
4980
|
+
* {
|
|
4981
|
+
* "workspaceId": "ws-example",
|
|
4982
|
+
* "identityProviderType": "CustomSSO",
|
|
4983
|
+
* "status": "READY",
|
|
4984
|
+
* "loginEnabled": false,
|
|
4985
|
+
* "syncEnabled": false
|
|
4986
|
+
* }
|
|
4987
|
+
* ],
|
|
4988
|
+
* "maxResults": 10,
|
|
4989
|
+
* "totalCount": 1
|
|
4990
|
+
* }
|
|
4991
|
+
* ```
|
|
4992
|
+
* ## Errors and handling
|
|
4993
|
+
* Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. Synchronous calls to upstream services that fail may return 503 IdentityProviderProvisioningUnavailable. Retain the request ID for troubleshooting and do not interpret read failures as unconfigured. Actual authentication and workspace non-existence errors follow common error handling.
|
|
4994
|
+
* 400 InvalidParameter: maxResults is out of bounds, or nextToken is not empty, which is currently not supported. If a query fails, an error is displayed instead of resetting the status to unconfigured.
|
|
4995
|
+
*
|
|
4286
4996
|
* @param request - ListIdentityProvidersRequest
|
|
4287
4997
|
* @param headers - map
|
|
4288
4998
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4317,6 +5027,36 @@ class Client extends openapi_core_1.default {
|
|
|
4317
5027
|
/**
|
|
4318
5028
|
* Queries the external identity providers bound to a specified workspace. Each workspace can be bound to at most one external identity provider, so the response returns at most one record. Application secret configurations are not returned.
|
|
4319
5029
|
*
|
|
5030
|
+
* @remarks
|
|
5031
|
+
* ## Features and prerequisites
|
|
5032
|
+
* Returns the local binding summary without querying the actual SAML or SCIM configurations of AgentIdentity. If no binding exists, items is an empty array. A workspace currently supports only one external binding. The default value of maxResults is 10, and the valid range is 1 to 100. Currently, nextToken must be omitted or left empty. A non-empty value returns InvalidParameter, and fictitious multi-page results are not supported.
|
|
5033
|
+
* The status of CustomSSO indicates the task status of shared resources and logon configurations. You must check protocol and saml to determine whether SAML is configured. To query SCIM configurations, independently call GetIdentityProviderSCIM. The list operation does not issue tokens and does not return the vendor appSecret, encryptKey, or verificationToken.
|
|
5034
|
+
* ## Requests and examples
|
|
5035
|
+
* GET /workspaces/{workspaceId}/identity-providers
|
|
5036
|
+
* Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or Security Token Service (STS) token that has the required permissions on the identity source resources of the workspace. In the following examples, ws-example, URLs, certificates, and tokens are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example shows only the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Retain the requestId for troubleshooting and do not record secrets. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
|
|
5037
|
+
* ```text
|
|
5038
|
+
* GET /workspaces/ws-example/identity-providers?maxResults=10
|
|
5039
|
+
* ```
|
|
5040
|
+
* ## Response examples
|
|
5041
|
+
* ```json
|
|
5042
|
+
* {
|
|
5043
|
+
* "items": [
|
|
5044
|
+
* {
|
|
5045
|
+
* "workspaceId": "ws-example",
|
|
5046
|
+
* "identityProviderType": "CustomSSO",
|
|
5047
|
+
* "status": "READY",
|
|
5048
|
+
* "loginEnabled": false,
|
|
5049
|
+
* "syncEnabled": false
|
|
5050
|
+
* }
|
|
5051
|
+
* ],
|
|
5052
|
+
* "maxResults": 10,
|
|
5053
|
+
* "totalCount": 1
|
|
5054
|
+
* }
|
|
5055
|
+
* ```
|
|
5056
|
+
* ## Errors and handling
|
|
5057
|
+
* Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. Synchronous calls to upstream services that fail may return 503 IdentityProviderProvisioningUnavailable. Retain the request ID for troubleshooting and do not interpret read failures as unconfigured. Actual authentication and workspace non-existence errors follow common error handling.
|
|
5058
|
+
* 400 InvalidParameter: maxResults is out of bounds, or nextToken is not empty, which is currently not supported. If a query fails, an error is displayed instead of resetting the status to unconfigured.
|
|
5059
|
+
*
|
|
4320
5060
|
* @param request - ListIdentityProvidersRequest
|
|
4321
5061
|
* @returns ListIdentityProvidersResponse
|
|
4322
5062
|
*/
|
|
@@ -4639,10 +5379,10 @@ class Client extends openapi_core_1.default {
|
|
|
4639
5379
|
return await this.listMcpsWithOptions(workspaceId, request, headers, runtime);
|
|
4640
5380
|
}
|
|
4641
5381
|
/**
|
|
4642
|
-
* Performs a paged query on long-term memory.
|
|
5382
|
+
* Performs a paged query on long-term memory records. The results can be filtered independently by user ID, agent ID, and session ID. Paging is supported.
|
|
4643
5383
|
*
|
|
4644
5384
|
* @remarks
|
|
4645
|
-
* Performs a paged query on long-term memory.
|
|
5385
|
+
* Performs a paged query on long-term memory records. The results can be filtered independently by user ID, agent ID, and session ID. Paging is supported.
|
|
4646
5386
|
*
|
|
4647
5387
|
* @param request - ListMemoriesRequest
|
|
4648
5388
|
* @param headers - map
|
|
@@ -4685,10 +5425,10 @@ class Client extends openapi_core_1.default {
|
|
|
4685
5425
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMemoriesResponse({}));
|
|
4686
5426
|
}
|
|
4687
5427
|
/**
|
|
4688
|
-
* Performs a paged query on long-term memory.
|
|
5428
|
+
* Performs a paged query on long-term memory records. The results can be filtered independently by user ID, agent ID, and session ID. Paging is supported.
|
|
4689
5429
|
*
|
|
4690
5430
|
* @remarks
|
|
4691
|
-
* Performs a paged query on long-term memory.
|
|
5431
|
+
* Performs a paged query on long-term memory records. The results can be filtered independently by user ID, agent ID, and session ID. Paging is supported.
|
|
4692
5432
|
*
|
|
4693
5433
|
* @param request - ListMemoriesRequest
|
|
4694
5434
|
* @returns ListMemoriesResponse
|
|
@@ -4699,10 +5439,10 @@ class Client extends openapi_core_1.default {
|
|
|
4699
5439
|
return await this.listMemoriesWithOptions(workspaceId, memoryStoreName, request, headers, runtime);
|
|
4700
5440
|
}
|
|
4701
5441
|
/**
|
|
4702
|
-
* Performs a
|
|
5442
|
+
* Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
|
|
4703
5443
|
*
|
|
4704
5444
|
* @remarks
|
|
4705
|
-
* Performs a
|
|
5445
|
+
* Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
|
|
4706
5446
|
*
|
|
4707
5447
|
* @param request - ListMemorySessionMessagesRequest
|
|
4708
5448
|
* @param headers - map
|
|
@@ -4745,10 +5485,10 @@ class Client extends openapi_core_1.default {
|
|
|
4745
5485
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMemorySessionMessagesResponse({}));
|
|
4746
5486
|
}
|
|
4747
5487
|
/**
|
|
4748
|
-
* Performs a
|
|
5488
|
+
* Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
|
|
4749
5489
|
*
|
|
4750
5490
|
* @remarks
|
|
4751
|
-
* Performs a
|
|
5491
|
+
* Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
|
|
4752
5492
|
*
|
|
4753
5493
|
* @param request - ListMemorySessionMessagesRequest
|
|
4754
5494
|
* @returns ListMemorySessionMessagesResponse
|
|
@@ -4759,10 +5499,10 @@ class Client extends openapi_core_1.default {
|
|
|
4759
5499
|
return await this.listMemorySessionMessagesWithOptions(workspaceId, memoryStoreName, request, headers, runtime);
|
|
4760
5500
|
}
|
|
4761
5501
|
/**
|
|
4762
|
-
* Performs a paging query for sessions in a MemoryStore
|
|
5502
|
+
* Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
|
|
4763
5503
|
*
|
|
4764
5504
|
* @remarks
|
|
4765
|
-
* Performs a paging query for sessions in a MemoryStore
|
|
5505
|
+
* Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
|
|
4766
5506
|
*
|
|
4767
5507
|
* @param request - ListMemorySessionsRequest
|
|
4768
5508
|
* @param headers - map
|
|
@@ -4802,10 +5542,10 @@ class Client extends openapi_core_1.default {
|
|
|
4802
5542
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMemorySessionsResponse({}));
|
|
4803
5543
|
}
|
|
4804
5544
|
/**
|
|
4805
|
-
* Performs a paging query for sessions in a MemoryStore
|
|
5545
|
+
* Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
|
|
4806
5546
|
*
|
|
4807
5547
|
* @remarks
|
|
4808
|
-
* Performs a paging query for sessions in a MemoryStore
|
|
5548
|
+
* Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
|
|
4809
5549
|
*
|
|
4810
5550
|
* @param request - ListMemorySessionsRequest
|
|
4811
5551
|
* @returns ListMemorySessionsResponse
|
|
@@ -4816,10 +5556,10 @@ class Client extends openapi_core_1.default {
|
|
|
4816
5556
|
return await this.listMemorySessionsWithOptions(workspaceId, memoryStoreName, request, headers, runtime);
|
|
4817
5557
|
}
|
|
4818
5558
|
/**
|
|
4819
|
-
*
|
|
5559
|
+
* Performs a paged query for MemoryStores in a specified workspace with paging.
|
|
4820
5560
|
*
|
|
4821
5561
|
* @remarks
|
|
4822
|
-
*
|
|
5562
|
+
* Performs a paged query for MemoryStores in a specified workspace with paging.
|
|
4823
5563
|
*
|
|
4824
5564
|
* @param request - ListMemoryStoresRequest
|
|
4825
5565
|
* @param headers - map
|
|
@@ -4853,10 +5593,10 @@ class Client extends openapi_core_1.default {
|
|
|
4853
5593
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMemoryStoresResponse({}));
|
|
4854
5594
|
}
|
|
4855
5595
|
/**
|
|
4856
|
-
*
|
|
5596
|
+
* Performs a paged query for MemoryStores in a specified workspace with paging.
|
|
4857
5597
|
*
|
|
4858
5598
|
* @remarks
|
|
4859
|
-
*
|
|
5599
|
+
* Performs a paged query for MemoryStores in a specified workspace with paging.
|
|
4860
5600
|
*
|
|
4861
5601
|
* @param request - ListMemoryStoresRequest
|
|
4862
5602
|
* @returns ListMemoryStoresResponse
|
|
@@ -5902,10 +6642,10 @@ class Client extends openapi_core_1.default {
|
|
|
5902
6642
|
return await this.retryImageCacheWithOptions(imageId, request, headers, runtime);
|
|
5903
6643
|
}
|
|
5904
6644
|
/**
|
|
5905
|
-
* Retrieves long-term memory from a MemoryStore based on semantics
|
|
6645
|
+
* Retrieves long-term memory from a MemoryStore based on semantics.
|
|
5906
6646
|
*
|
|
5907
6647
|
* @remarks
|
|
5908
|
-
* Retrieves long-term memory from a MemoryStore based on semantics
|
|
6648
|
+
* Retrieves long-term memory from a MemoryStore based on semantics.
|
|
5909
6649
|
*
|
|
5910
6650
|
* @param tmpReq - SearchMemoriesRequest
|
|
5911
6651
|
* @param headers - map
|
|
@@ -5941,10 +6681,10 @@ class Client extends openapi_core_1.default {
|
|
|
5941
6681
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SearchMemoriesResponse({}));
|
|
5942
6682
|
}
|
|
5943
6683
|
/**
|
|
5944
|
-
* Retrieves long-term memory from a MemoryStore based on semantics
|
|
6684
|
+
* Retrieves long-term memory from a MemoryStore based on semantics.
|
|
5945
6685
|
*
|
|
5946
6686
|
* @remarks
|
|
5947
|
-
* Retrieves long-term memory from a MemoryStore based on semantics
|
|
6687
|
+
* Retrieves long-term memory from a MemoryStore based on semantics.
|
|
5948
6688
|
*
|
|
5949
6689
|
* @param request - SearchMemoriesRequest
|
|
5950
6690
|
* @returns SearchMemoriesResponse
|
|
@@ -6350,10 +7090,12 @@ class Client extends openapi_core_1.default {
|
|
|
6350
7090
|
* 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.
|
|
6351
7091
|
*
|
|
6352
7092
|
* @remarks
|
|
6353
|
-
*
|
|
6354
|
-
* 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.
|
|
6355
|
-
*
|
|
6356
|
-
* The
|
|
7093
|
+
* Provide 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.
|
|
7094
|
+
* 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.
|
|
7095
|
+
* In code package pattern, specify artifact.port and the sourceUri, languageRuntime, and entrypoint fields of artifact.code. Do not specify the container field at the same time. Dependencies must be packaged by the user. ZIP and TAR.GZ formats are supported, and the compressed package size cannot exceed 500,000,000 bytes. Query the runtime environment identity by calling the ListAgentCodeRuntimes operation. The sourceUri field supports oss:// addresses or HTTPS object addresses of standard OSS public domain names, including signed URLs. For local files, first call the GetAgentCodePackageUploadUrl operation to obtain an upload URL, upload the file directly, and then commit the returned sourceUri.
|
|
7096
|
+
* When submitting a new code package source, the backend rechecks read permissions, objects, and sizes. The configuration is saved only after the transfer succeeds. If the transfer fails, the current configuration is not saved. Saved fixed packages can be reused. Set the client timeout to 210 seconds for code package requests. Archive integrity and secure decompression are checked at startup. A successful acceptance does not indicate that the agent is ready to run.
|
|
7097
|
+
* When providing the runtime field, the compute and sessionPolicy fields must be provided at the same time. If the hpa field or its subfields are omitted, unspecified elastic configurations use default values. To retain the original elastic configurations, provide them together. When providing the network field, omitted access items are treated as allowed, but actual access is still restricted by the workspace network configurations. To retain the original restrictions, provide both accessInternet and accessVpc. When providing the healthCheck field, the port field is required, and other unspecified items use default values. When providing the logging.sls field, both project and logstore must be specified.
|
|
7098
|
+
* The update is an asynchronous process. A successful response indicates that the request is accepted. Call the GetCustomAgent operation to query latestSpecVersion, latestVersionStatus, and latestExecutionError, and check the status field to confirm the update result.
|
|
6357
7099
|
* 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.
|
|
6358
7100
|
*
|
|
6359
7101
|
* @param tmpReq - UpdateCustomAgentRequest
|
|
@@ -6398,10 +7140,12 @@ class Client extends openapi_core_1.default {
|
|
|
6398
7140
|
* 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.
|
|
6399
7141
|
*
|
|
6400
7142
|
* @remarks
|
|
6401
|
-
*
|
|
6402
|
-
* 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.
|
|
6403
|
-
*
|
|
6404
|
-
* The
|
|
7143
|
+
* Provide 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.
|
|
7144
|
+
* 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.
|
|
7145
|
+
* In code package pattern, specify artifact.port and the sourceUri, languageRuntime, and entrypoint fields of artifact.code. Do not specify the container field at the same time. Dependencies must be packaged by the user. ZIP and TAR.GZ formats are supported, and the compressed package size cannot exceed 500,000,000 bytes. Query the runtime environment identity by calling the ListAgentCodeRuntimes operation. The sourceUri field supports oss:// addresses or HTTPS object addresses of standard OSS public domain names, including signed URLs. For local files, first call the GetAgentCodePackageUploadUrl operation to obtain an upload URL, upload the file directly, and then commit the returned sourceUri.
|
|
7146
|
+
* When submitting a new code package source, the backend rechecks read permissions, objects, and sizes. The configuration is saved only after the transfer succeeds. If the transfer fails, the current configuration is not saved. Saved fixed packages can be reused. Set the client timeout to 210 seconds for code package requests. Archive integrity and secure decompression are checked at startup. A successful acceptance does not indicate that the agent is ready to run.
|
|
7147
|
+
* When providing the runtime field, the compute and sessionPolicy fields must be provided at the same time. If the hpa field or its subfields are omitted, unspecified elastic configurations use default values. To retain the original elastic configurations, provide them together. When providing the network field, omitted access items are treated as allowed, but actual access is still restricted by the workspace network configurations. To retain the original restrictions, provide both accessInternet and accessVpc. When providing the healthCheck field, the port field is required, and other unspecified items use default values. When providing the logging.sls field, both project and logstore must be specified.
|
|
7148
|
+
* The update is an asynchronous process. A successful response indicates that the request is accepted. Call the GetCustomAgent operation to query latestSpecVersion, latestVersionStatus, and latestExecutionError, and check the status field to confirm the update result.
|
|
6405
7149
|
* 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.
|
|
6406
7150
|
*
|
|
6407
7151
|
* @param request - UpdateCustomAgentRequest
|
|
@@ -6471,7 +7215,49 @@ class Client extends openapi_core_1.default {
|
|
|
6471
7215
|
return await this.updateExternalAgentWithOptions(workspaceId, agentId, request, headers, runtime);
|
|
6472
7216
|
}
|
|
6473
7217
|
/**
|
|
6474
|
-
* Updates the
|
|
7218
|
+
* Updates the logon switch, member synchronization switch, or application configuration of a specified external identity provider for a workspace. Unspecified properties remain unchanged. The update is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
|
|
7219
|
+
*
|
|
7220
|
+
* @remarks
|
|
7221
|
+
* ## Features and prerequisites
|
|
7222
|
+
* CustomSSO uses protocol=SAML and saml to save logon configurations. It does not accept legacy metadata or syncEnabled. To toggle the SCIM switch, you must call UpdateIdentityProviderSCIM. OIDC is not supported. You can either import XML or manually enter fields. If you import XML, metadataXml must be a single IdP EntityDescriptor XML text of up to 1 MiB. URLs or file paths are not accepted, and DTDs or external entities are prohibited. If you manually enter fields, you must provide entityId, loginUrl, bindingType, and a non-empty x509Certificates array at the same time. The entityId must be non-empty and up to 2,048 characters in length, and cannot be replaced after configuration. The loginUrl must be an absolute HTTPS URL without user credentials or fragments. The bindingType must be HTTP-Redirect or HTTP-POST. Signing certificates must be valid X.509 certificates, and up to 10 certificates are supported.
|
|
7223
|
+
* Saving the configuration does not automatically enable logon. A valid SAML configuration must exist before you enable logon. Setting loginEnabled=false only disables logon and does not clear SAML or SCIM configurations. You can independently pass Boolean values for jitProvisionEnabled and jitUpdateEnabled. If omitted, the existing values are retained. If omitted for the first time, the default value is false. Updating only the JIT switches also requires a valid SAML configuration. If the request is unchanged, the current binding may be returned directly without generating a new task. A successful update returns UPDATING. You can call GetIdentityProvider and wait for READY or UPDATE_FAILED. If the update fails, you can resubmit the request. An HTTP success response does not indicate that the upstream configuration has taken effect.
|
|
7224
|
+
* DingTalk and Feishu continue to use vendor metadata and logon or synchronization switches. They do not accept protocol or saml. Updating vendor metadata supports partial updates. You only need to submit the fields to be modified. Unsubmitted fields and saved credentials remain unchanged. The server merges the new and old values and then validates the complete configuration. Explicitly submitted fields cannot be null, empty strings, or blank strings. For example, you can submit only appSecret to update the secret. The existing vendor semantics of syncScope are retained. Saving the scope does not automatically trigger full synchronization.
|
|
7225
|
+
* ## Request and examples
|
|
7226
|
+
* PUT /workspaces/{workspaceId}/identity-providers/{identityProviderType}
|
|
7227
|
+
* Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or STS token that has permissions on the identity provider resources of the workspace. In the following examples, ws-example, URLs, certificates, and tokens are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example shows only the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not log secrets. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
|
|
7228
|
+
* ```text
|
|
7229
|
+
* PUT /workspaces/ws-example/identity-providers/CustomSSO
|
|
7230
|
+
* {
|
|
7231
|
+
* "protocol": "SAML",
|
|
7232
|
+
* "saml": {
|
|
7233
|
+
* "entityId": "https://idp.example.com/entity",
|
|
7234
|
+
* "loginUrl": "https://idp.example.com/sso",
|
|
7235
|
+
* "bindingType": "HTTP-Redirect",
|
|
7236
|
+
* "x509Certificates": [
|
|
7237
|
+
* "<Valid PEM X.509 certificate text>"
|
|
7238
|
+
* ],
|
|
7239
|
+
* "jitProvisionEnabled": false,
|
|
7240
|
+
* "jitUpdateEnabled": false
|
|
7241
|
+
* }
|
|
7242
|
+
* }
|
|
7243
|
+
* Toggle logon only: {"loginEnabled": true}
|
|
7244
|
+
* ```
|
|
7245
|
+
* ## Response example
|
|
7246
|
+
* ```json
|
|
7247
|
+
* {
|
|
7248
|
+
* "data": {
|
|
7249
|
+
* "workspaceId": "ws-example",
|
|
7250
|
+
* "identityProviderType": "CustomSSO",
|
|
7251
|
+
* "protocol": "SAML",
|
|
7252
|
+
* "loginEnabled": false,
|
|
7253
|
+
* "syncEnabled": false,
|
|
7254
|
+
* "status": "UPDATING"
|
|
7255
|
+
* }
|
|
7256
|
+
* }
|
|
7257
|
+
* ```
|
|
7258
|
+
* ## Errors and handling
|
|
7259
|
+
* Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. Synchronous calls to the upstream may return 503 IdentityProviderProvisioningUnavailable if they fail. Keep the request ID for troubleshooting and do not interpret read failures as unconfigured. Actual authentication and workspace non-existence errors follow common error handling.
|
|
7260
|
+
* 400 InvalidParameter: XML and manual entry are mixed, manual entry items are missing, certificates are invalid, the protocol is not supported, entityId is changed, logon is enabled without configuration, or CustomSSO submits metadata or syncEnabled. 409 IdentityProviderOperationConflict: The current binding does not allow updates. CustomSSO supports resubmitting configurations from UPDATE_FAILED.
|
|
6475
7261
|
*
|
|
6476
7262
|
* @param tmpReq - UpdateIdentityProviderRequest
|
|
6477
7263
|
* @param headers - map
|
|
@@ -6507,7 +7293,49 @@ class Client extends openapi_core_1.default {
|
|
|
6507
7293
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateIdentityProviderResponse({}));
|
|
6508
7294
|
}
|
|
6509
7295
|
/**
|
|
6510
|
-
* Updates the
|
|
7296
|
+
* Updates the logon switch, member synchronization switch, or application configuration of a specified external identity provider for a workspace. Unspecified properties remain unchanged. The update is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
|
|
7297
|
+
*
|
|
7298
|
+
* @remarks
|
|
7299
|
+
* ## Features and prerequisites
|
|
7300
|
+
* CustomSSO uses protocol=SAML and saml to save logon configurations. It does not accept legacy metadata or syncEnabled. To toggle the SCIM switch, you must call UpdateIdentityProviderSCIM. OIDC is not supported. You can either import XML or manually enter fields. If you import XML, metadataXml must be a single IdP EntityDescriptor XML text of up to 1 MiB. URLs or file paths are not accepted, and DTDs or external entities are prohibited. If you manually enter fields, you must provide entityId, loginUrl, bindingType, and a non-empty x509Certificates array at the same time. The entityId must be non-empty and up to 2,048 characters in length, and cannot be replaced after configuration. The loginUrl must be an absolute HTTPS URL without user credentials or fragments. The bindingType must be HTTP-Redirect or HTTP-POST. Signing certificates must be valid X.509 certificates, and up to 10 certificates are supported.
|
|
7301
|
+
* Saving the configuration does not automatically enable logon. A valid SAML configuration must exist before you enable logon. Setting loginEnabled=false only disables logon and does not clear SAML or SCIM configurations. You can independently pass Boolean values for jitProvisionEnabled and jitUpdateEnabled. If omitted, the existing values are retained. If omitted for the first time, the default value is false. Updating only the JIT switches also requires a valid SAML configuration. If the request is unchanged, the current binding may be returned directly without generating a new task. A successful update returns UPDATING. You can call GetIdentityProvider and wait for READY or UPDATE_FAILED. If the update fails, you can resubmit the request. An HTTP success response does not indicate that the upstream configuration has taken effect.
|
|
7302
|
+
* DingTalk and Feishu continue to use vendor metadata and logon or synchronization switches. They do not accept protocol or saml. Updating vendor metadata supports partial updates. You only need to submit the fields to be modified. Unsubmitted fields and saved credentials remain unchanged. The server merges the new and old values and then validates the complete configuration. Explicitly submitted fields cannot be null, empty strings, or blank strings. For example, you can submit only appSecret to update the secret. The existing vendor semantics of syncScope are retained. Saving the scope does not automatically trigger full synchronization.
|
|
7303
|
+
* ## Request and examples
|
|
7304
|
+
* PUT /workspaces/{workspaceId}/identity-providers/{identityProviderType}
|
|
7305
|
+
* Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or STS token that has permissions on the identity provider resources of the workspace. In the following examples, ws-example, URLs, certificates, and tokens are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example shows only the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not log secrets. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
|
|
7306
|
+
* ```text
|
|
7307
|
+
* PUT /workspaces/ws-example/identity-providers/CustomSSO
|
|
7308
|
+
* {
|
|
7309
|
+
* "protocol": "SAML",
|
|
7310
|
+
* "saml": {
|
|
7311
|
+
* "entityId": "https://idp.example.com/entity",
|
|
7312
|
+
* "loginUrl": "https://idp.example.com/sso",
|
|
7313
|
+
* "bindingType": "HTTP-Redirect",
|
|
7314
|
+
* "x509Certificates": [
|
|
7315
|
+
* "<Valid PEM X.509 certificate text>"
|
|
7316
|
+
* ],
|
|
7317
|
+
* "jitProvisionEnabled": false,
|
|
7318
|
+
* "jitUpdateEnabled": false
|
|
7319
|
+
* }
|
|
7320
|
+
* }
|
|
7321
|
+
* Toggle logon only: {"loginEnabled": true}
|
|
7322
|
+
* ```
|
|
7323
|
+
* ## Response example
|
|
7324
|
+
* ```json
|
|
7325
|
+
* {
|
|
7326
|
+
* "data": {
|
|
7327
|
+
* "workspaceId": "ws-example",
|
|
7328
|
+
* "identityProviderType": "CustomSSO",
|
|
7329
|
+
* "protocol": "SAML",
|
|
7330
|
+
* "loginEnabled": false,
|
|
7331
|
+
* "syncEnabled": false,
|
|
7332
|
+
* "status": "UPDATING"
|
|
7333
|
+
* }
|
|
7334
|
+
* }
|
|
7335
|
+
* ```
|
|
7336
|
+
* ## Errors and handling
|
|
7337
|
+
* Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. Synchronous calls to the upstream may return 503 IdentityProviderProvisioningUnavailable if they fail. Keep the request ID for troubleshooting and do not interpret read failures as unconfigured. Actual authentication and workspace non-existence errors follow common error handling.
|
|
7338
|
+
* 400 InvalidParameter: XML and manual entry are mixed, manual entry items are missing, certificates are invalid, the protocol is not supported, entityId is changed, logon is enabled without configuration, or CustomSSO submits metadata or syncEnabled. 409 IdentityProviderOperationConflict: The current binding does not allow updates. CustomSSO supports resubmitting configurations from UPDATE_FAILED.
|
|
6511
7339
|
*
|
|
6512
7340
|
* @param request - UpdateIdentityProviderRequest
|
|
6513
7341
|
* @returns UpdateIdentityProviderResponse
|
|
@@ -6691,10 +7519,10 @@ class Client extends openapi_core_1.default {
|
|
|
6691
7519
|
return await this.updateMcpTemplateConfigWithOptions(workspaceId, mcpServerId, request, headers, runtime);
|
|
6692
7520
|
}
|
|
6693
7521
|
/**
|
|
6694
|
-
* Updates the long-term memory
|
|
7522
|
+
* Updates the text or metadata of a long-term memory based on the memory ID.
|
|
6695
7523
|
*
|
|
6696
7524
|
* @remarks
|
|
6697
|
-
* Updates the long-term memory
|
|
7525
|
+
* Updates the text or metadata of a long-term memory based on the memory ID.
|
|
6698
7526
|
*
|
|
6699
7527
|
* @param tmpReq - UpdateMemoryRequest
|
|
6700
7528
|
* @param headers - map
|
|
@@ -6730,10 +7558,10 @@ class Client extends openapi_core_1.default {
|
|
|
6730
7558
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateMemoryResponse({}));
|
|
6731
7559
|
}
|
|
6732
7560
|
/**
|
|
6733
|
-
* Updates the long-term memory
|
|
7561
|
+
* Updates the text or metadata of a long-term memory based on the memory ID.
|
|
6734
7562
|
*
|
|
6735
7563
|
* @remarks
|
|
6736
|
-
* Updates the long-term memory
|
|
7564
|
+
* Updates the text or metadata of a long-term memory based on the memory ID.
|
|
6737
7565
|
*
|
|
6738
7566
|
* @param request - UpdateMemoryRequest
|
|
6739
7567
|
* @returns UpdateMemoryResponse
|
|
@@ -7352,6 +8180,109 @@ class Client extends openapi_core_1.default {
|
|
|
7352
8180
|
let headers = {};
|
|
7353
8181
|
return await this.uploadSkillViaOssWithOptions(workspaceId, request, headers, runtime);
|
|
7354
8182
|
}
|
|
8183
|
+
/**
|
|
8184
|
+
* Validates the OSS code package source for an agent.
|
|
8185
|
+
*
|
|
8186
|
+
* @remarks
|
|
8187
|
+
* Uses the current workspace role to check whether the customer\\"s OSS object exists and is readable, and checks the file name extension and compressed size. Returns the sourceUri, file name, size, and format read in this request. The bucket and object key are passed separately, and HTTPS download URLs are not accepted.
|
|
8188
|
+
* The validation uses object metadata and read probing. It does not perform full downloads, transfers, or decompression, nor does it generate a SHA-256 hash. Passing the validation does not mean that the archive content is complete or can be started. When you submit a CreateCustomAgent or UpdateCustomAgent request, the system re-validates and transfers the package. You do not need to invoke this operation in advance as a prerequisite for submission.
|
|
8189
|
+
*
|
|
8190
|
+
* @param tmpReq - ValidateAgentCodePackageFromOssRequest
|
|
8191
|
+
* @param headers - map
|
|
8192
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
8193
|
+
* @returns ValidateAgentCodePackageFromOssResponse
|
|
8194
|
+
*/
|
|
8195
|
+
async validateAgentCodePackageFromOssWithOptions(workspaceId, tmpReq, headers, runtime) {
|
|
8196
|
+
tmpReq.validate();
|
|
8197
|
+
let request = new $_model.ValidateAgentCodePackageFromOssShrinkRequest({});
|
|
8198
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
8199
|
+
if (!$dara.isNull(tmpReq.body)) {
|
|
8200
|
+
request.bodyShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.body, "body", "json");
|
|
8201
|
+
}
|
|
8202
|
+
let body = {};
|
|
8203
|
+
if (!$dara.isNull(request.bodyShrink)) {
|
|
8204
|
+
body["body"] = request.bodyShrink;
|
|
8205
|
+
}
|
|
8206
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
8207
|
+
headers: headers,
|
|
8208
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
8209
|
+
});
|
|
8210
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
8211
|
+
action: "ValidateAgentCodePackageFromOss",
|
|
8212
|
+
version: "2026-08-04",
|
|
8213
|
+
protocol: "HTTPS",
|
|
8214
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/agent-code-packages/validate-from-oss`,
|
|
8215
|
+
method: "POST",
|
|
8216
|
+
authType: "AK",
|
|
8217
|
+
style: "ROA",
|
|
8218
|
+
reqBodyType: "formData",
|
|
8219
|
+
bodyType: "json",
|
|
8220
|
+
});
|
|
8221
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ValidateAgentCodePackageFromOssResponse({}));
|
|
8222
|
+
}
|
|
8223
|
+
/**
|
|
8224
|
+
* Validates the OSS code package source for an agent.
|
|
8225
|
+
*
|
|
8226
|
+
* @remarks
|
|
8227
|
+
* Uses the current workspace role to check whether the customer\\"s OSS object exists and is readable, and checks the file name extension and compressed size. Returns the sourceUri, file name, size, and format read in this request. The bucket and object key are passed separately, and HTTPS download URLs are not accepted.
|
|
8228
|
+
* The validation uses object metadata and read probing. It does not perform full downloads, transfers, or decompression, nor does it generate a SHA-256 hash. Passing the validation does not mean that the archive content is complete or can be started. When you submit a CreateCustomAgent or UpdateCustomAgent request, the system re-validates and transfers the package. You do not need to invoke this operation in advance as a prerequisite for submission.
|
|
8229
|
+
*
|
|
8230
|
+
* @param request - ValidateAgentCodePackageFromOssRequest
|
|
8231
|
+
* @returns ValidateAgentCodePackageFromOssResponse
|
|
8232
|
+
*/
|
|
8233
|
+
async validateAgentCodePackageFromOss(workspaceId, request) {
|
|
8234
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
8235
|
+
let headers = {};
|
|
8236
|
+
return await this.validateAgentCodePackageFromOssWithOptions(workspaceId, request, headers, runtime);
|
|
8237
|
+
}
|
|
8238
|
+
/**
|
|
8239
|
+
* 检查智能体代码包 OSS RAM 授权状态
|
|
8240
|
+
*
|
|
8241
|
+
* @remarks
|
|
8242
|
+
* 检查当前 Workspace 角色是否绑定所选源 Bucket 对应的自定义 RAM 策略,复用已有挂载授权。仅返回策略绑定状态,不验证代码包存在或可读、不修改默认桶。授权状态不能替代 ValidateAgentCodePackageFromOss 的实际对象读取校验。
|
|
8243
|
+
*
|
|
8244
|
+
* @param request - VerifyAgentCodePackageOssRamAuthorizationRequest
|
|
8245
|
+
* @param headers - map
|
|
8246
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
8247
|
+
* @returns VerifyAgentCodePackageOssRamAuthorizationResponse
|
|
8248
|
+
*/
|
|
8249
|
+
async verifyAgentCodePackageOssRamAuthorizationWithOptions(workspaceId, request, headers, runtime) {
|
|
8250
|
+
request.validate();
|
|
8251
|
+
let query = {};
|
|
8252
|
+
if (!$dara.isNull(request.ossBucketName)) {
|
|
8253
|
+
query["ossBucketName"] = request.ossBucketName;
|
|
8254
|
+
}
|
|
8255
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
8256
|
+
headers: headers,
|
|
8257
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
8258
|
+
});
|
|
8259
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
8260
|
+
action: "VerifyAgentCodePackageOssRamAuthorization",
|
|
8261
|
+
version: "2026-08-04",
|
|
8262
|
+
protocol: "HTTPS",
|
|
8263
|
+
pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/agent-code-packages/oss/authorize/verify`,
|
|
8264
|
+
method: "POST",
|
|
8265
|
+
authType: "AK",
|
|
8266
|
+
style: "ROA",
|
|
8267
|
+
reqBodyType: "json",
|
|
8268
|
+
bodyType: "json",
|
|
8269
|
+
});
|
|
8270
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.VerifyAgentCodePackageOssRamAuthorizationResponse({}));
|
|
8271
|
+
}
|
|
8272
|
+
/**
|
|
8273
|
+
* 检查智能体代码包 OSS RAM 授权状态
|
|
8274
|
+
*
|
|
8275
|
+
* @remarks
|
|
8276
|
+
* 检查当前 Workspace 角色是否绑定所选源 Bucket 对应的自定义 RAM 策略,复用已有挂载授权。仅返回策略绑定状态,不验证代码包存在或可读、不修改默认桶。授权状态不能替代 ValidateAgentCodePackageFromOss 的实际对象读取校验。
|
|
8277
|
+
*
|
|
8278
|
+
* @param request - VerifyAgentCodePackageOssRamAuthorizationRequest
|
|
8279
|
+
* @returns VerifyAgentCodePackageOssRamAuthorizationResponse
|
|
8280
|
+
*/
|
|
8281
|
+
async verifyAgentCodePackageOssRamAuthorization(workspaceId, request) {
|
|
8282
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
8283
|
+
let headers = {};
|
|
8284
|
+
return await this.verifyAgentCodePackageOssRamAuthorizationWithOptions(workspaceId, request, headers, runtime);
|
|
8285
|
+
}
|
|
7355
8286
|
/**
|
|
7356
8287
|
* Validates whether one or more Qoder Service Account Keys are available at a specified site. This operation does not save keys or modify the Connector status.
|
|
7357
8288
|
*
|