@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.
Files changed (235) hide show
  1. package/dist/client.d.ts +762 -70
  2. package/dist/client.js +1001 -70
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddMemoriesRequest.d.ts +10 -10
  5. package/dist/models/AddMemoriesResponseBody.d.ts +4 -4
  6. package/dist/models/AddMemoriesShrinkRequest.d.ts +1 -1
  7. package/dist/models/CreateCustomAgentRequest.d.ts +43 -43
  8. package/dist/models/CreateCustomAgentResponseBody.d.ts +118 -61
  9. package/dist/models/CreateCustomAgentResponseBody.js +33 -1
  10. package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
  11. package/dist/models/CreateIdentityProviderRequest.d.ts +50 -9
  12. package/dist/models/CreateIdentityProviderRequest.js +32 -1
  13. package/dist/models/CreateIdentityProviderRequest.js.map +1 -1
  14. package/dist/models/CreateIdentityProviderResponseBody.d.ts +183 -9
  15. package/dist/models/CreateIdentityProviderResponseBody.js +103 -1
  16. package/dist/models/CreateIdentityProviderResponseBody.js.map +1 -1
  17. package/dist/models/CreateIdentityProviderShrinkRequest.d.ts +1 -1
  18. package/dist/models/CreateIdentityProviderSyncJobRequest.d.ts +13 -0
  19. package/dist/models/CreateIdentityProviderSyncJobRequest.js +54 -0
  20. package/dist/models/CreateIdentityProviderSyncJobRequest.js.map +1 -0
  21. package/dist/models/CreateIdentityProviderSyncJobResponse.d.ts +19 -0
  22. package/dist/models/CreateIdentityProviderSyncJobResponse.js +69 -0
  23. package/dist/models/CreateIdentityProviderSyncJobResponse.js.map +1 -0
  24. package/dist/models/CreateIdentityProviderSyncJobResponseBody.d.ts +121 -0
  25. package/dist/models/CreateIdentityProviderSyncJobResponseBody.js +100 -0
  26. package/dist/models/CreateIdentityProviderSyncJobResponseBody.js.map +1 -0
  27. package/dist/models/CreateMemoryStoreRequest.d.ts +6 -6
  28. package/dist/models/CreateMemoryStoreResponseBody.d.ts +7 -7
  29. package/dist/models/CreateMemoryStoreShrinkRequest.d.ts +2 -2
  30. package/dist/models/DeleteIdentityProviderResponseBody.d.ts +144 -19
  31. package/dist/models/DeleteIdentityProviderResponseBody.js +74 -1
  32. package/dist/models/DeleteIdentityProviderResponseBody.js.map +1 -1
  33. package/dist/models/DeleteMemoryStoreResponseBody.d.ts +3 -3
  34. package/dist/models/GetAgentCodePackageDownloadUrlRequest.d.ts +13 -0
  35. package/dist/models/GetAgentCodePackageDownloadUrlRequest.js +54 -0
  36. package/dist/models/GetAgentCodePackageDownloadUrlRequest.js.map +1 -0
  37. package/dist/models/GetAgentCodePackageDownloadUrlResponse.d.ts +19 -0
  38. package/dist/models/GetAgentCodePackageDownloadUrlResponse.js +69 -0
  39. package/dist/models/GetAgentCodePackageDownloadUrlResponse.js.map +1 -0
  40. package/dist/models/GetAgentCodePackageDownloadUrlResponseBody.d.ts +131 -0
  41. package/dist/models/GetAgentCodePackageDownloadUrlResponseBody.js +104 -0
  42. package/dist/models/GetAgentCodePackageDownloadUrlResponseBody.js.map +1 -0
  43. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlRequest.d.ts +23 -0
  44. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlRequest.js +58 -0
  45. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlRequest.js.map +1 -0
  46. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponse.d.ts +19 -0
  47. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponse.js +69 -0
  48. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponse.js.map +1 -0
  49. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponseBody.d.ts +99 -0
  50. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponseBody.js +96 -0
  51. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponseBody.js.map +1 -0
  52. package/dist/models/GetAgentCodePackageUploadUrlRequest.d.ts +62 -0
  53. package/dist/models/GetAgentCodePackageUploadUrlRequest.js +84 -0
  54. package/dist/models/GetAgentCodePackageUploadUrlRequest.js.map +1 -0
  55. package/dist/models/GetAgentCodePackageUploadUrlResponse.d.ts +19 -0
  56. package/dist/models/GetAgentCodePackageUploadUrlResponse.js +69 -0
  57. package/dist/models/GetAgentCodePackageUploadUrlResponse.js.map +1 -0
  58. package/dist/models/GetAgentCodePackageUploadUrlResponseBody.d.ts +114 -0
  59. package/dist/models/GetAgentCodePackageUploadUrlResponseBody.js +103 -0
  60. package/dist/models/GetAgentCodePackageUploadUrlResponseBody.js.map +1 -0
  61. package/dist/models/GetAgentCodePackageUploadUrlShrinkRequest.d.ts +20 -0
  62. package/dist/models/GetAgentCodePackageUploadUrlShrinkRequest.js +58 -0
  63. package/dist/models/GetAgentCodePackageUploadUrlShrinkRequest.js.map +1 -0
  64. package/dist/models/GetCustomAgentResponseBody.d.ts +105 -48
  65. package/dist/models/GetCustomAgentResponseBody.js +33 -1
  66. package/dist/models/GetCustomAgentResponseBody.js.map +1 -1
  67. package/dist/models/GetIdentityProviderResponseBody.d.ts +217 -11
  68. package/dist/models/GetIdentityProviderResponseBody.js +111 -1
  69. package/dist/models/GetIdentityProviderResponseBody.js.map +1 -1
  70. package/dist/models/GetIdentityProviderSyncJobRequest.d.ts +13 -0
  71. package/dist/models/GetIdentityProviderSyncJobRequest.js +54 -0
  72. package/dist/models/GetIdentityProviderSyncJobRequest.js.map +1 -0
  73. package/dist/models/GetIdentityProviderSyncJobResponse.d.ts +19 -0
  74. package/dist/models/GetIdentityProviderSyncJobResponse.js +69 -0
  75. package/dist/models/GetIdentityProviderSyncJobResponse.js.map +1 -0
  76. package/dist/models/GetIdentityProviderSyncJobResponseBody.d.ts +128 -0
  77. package/dist/models/GetIdentityProviderSyncJobResponseBody.js +100 -0
  78. package/dist/models/GetIdentityProviderSyncJobResponseBody.js.map +1 -0
  79. package/dist/models/GetIdentityProviderSyncScopeRequest.d.ts +13 -0
  80. package/dist/models/GetIdentityProviderSyncScopeRequest.js +54 -0
  81. package/dist/models/GetIdentityProviderSyncScopeRequest.js.map +1 -0
  82. package/dist/models/GetIdentityProviderSyncScopeResponse.d.ts +19 -0
  83. package/dist/models/GetIdentityProviderSyncScopeResponse.js +69 -0
  84. package/dist/models/GetIdentityProviderSyncScopeResponse.js.map +1 -0
  85. package/dist/models/GetIdentityProviderSyncScopeResponseBody.d.ts +177 -0
  86. package/dist/models/GetIdentityProviderSyncScopeResponseBody.js +151 -0
  87. package/dist/models/GetIdentityProviderSyncScopeResponseBody.js.map +1 -0
  88. package/dist/models/GetMemoryResponseBody.d.ts +4 -4
  89. package/dist/models/GetMemoryStoreResponseBody.d.ts +3 -3
  90. package/dist/models/ListAgentCodeRuntimesRequest.d.ts +29 -0
  91. package/dist/models/ListAgentCodeRuntimesRequest.js +60 -0
  92. package/dist/models/ListAgentCodeRuntimesRequest.js.map +1 -0
  93. package/dist/models/ListAgentCodeRuntimesResponse.d.ts +19 -0
  94. package/dist/models/ListAgentCodeRuntimesResponse.js +69 -0
  95. package/dist/models/ListAgentCodeRuntimesResponse.js.map +1 -0
  96. package/dist/models/ListAgentCodeRuntimesResponseBody.d.ts +115 -0
  97. package/dist/models/ListAgentCodeRuntimesResponseBody.js +100 -0
  98. package/dist/models/ListAgentCodeRuntimesResponseBody.js.map +1 -0
  99. package/dist/models/ListCustomAgentsRequest.d.ts +2 -2
  100. package/dist/models/ListCustomAgentsResponseBody.d.ts +221 -25
  101. package/dist/models/ListCustomAgentsResponseBody.js +119 -1
  102. package/dist/models/ListCustomAgentsResponseBody.js.map +1 -1
  103. package/dist/models/ListIdentityProviderDepartmentsRequest.d.ts +37 -0
  104. package/dist/models/ListIdentityProviderDepartmentsRequest.js +62 -0
  105. package/dist/models/ListIdentityProviderDepartmentsRequest.js.map +1 -0
  106. package/dist/models/ListIdentityProviderDepartmentsResponse.d.ts +19 -0
  107. package/dist/models/ListIdentityProviderDepartmentsResponse.js +69 -0
  108. package/dist/models/ListIdentityProviderDepartmentsResponse.js.map +1 -0
  109. package/dist/models/ListIdentityProviderDepartmentsResponseBody.d.ts +137 -0
  110. package/dist/models/ListIdentityProviderDepartmentsResponseBody.js +104 -0
  111. package/dist/models/ListIdentityProviderDepartmentsResponseBody.js.map +1 -0
  112. package/dist/models/ListIdentityProvidersRequest.d.ts +2 -2
  113. package/dist/models/ListIdentityProvidersResponseBody.d.ts +226 -20
  114. package/dist/models/ListIdentityProvidersResponseBody.js +111 -1
  115. package/dist/models/ListIdentityProvidersResponseBody.js.map +1 -1
  116. package/dist/models/ListMemoriesResponseBody.d.ts +1 -1
  117. package/dist/models/ListMemorySessionMessagesRequest.d.ts +3 -3
  118. package/dist/models/ListMemorySessionsRequest.d.ts +2 -2
  119. package/dist/models/ListMemorySessionsResponseBody.d.ts +1 -1
  120. package/dist/models/ListMemoryStoresResponseBody.d.ts +2 -2
  121. package/dist/models/SearchMemoriesRequest.d.ts +3 -3
  122. package/dist/models/SearchMemoriesResponseBody.d.ts +3 -3
  123. package/dist/models/UpdateCustomAgentRequest.d.ts +49 -49
  124. package/dist/models/UpdateCustomAgentResponseBody.d.ts +124 -77
  125. package/dist/models/UpdateCustomAgentResponseBody.js +33 -1
  126. package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -1
  127. package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +1 -1
  128. package/dist/models/UpdateIdentityProviderRequest.d.ts +128 -8
  129. package/dist/models/UpdateIdentityProviderRequest.js +71 -1
  130. package/dist/models/UpdateIdentityProviderRequest.js.map +1 -1
  131. package/dist/models/UpdateIdentityProviderResponseBody.d.ts +181 -16
  132. package/dist/models/UpdateIdentityProviderResponseBody.js +103 -1
  133. package/dist/models/UpdateIdentityProviderResponseBody.js.map +1 -1
  134. package/dist/models/UpdateIdentityProviderShrinkRequest.d.ts +1 -1
  135. package/dist/models/UpdateMemoryRequest.d.ts +3 -3
  136. package/dist/models/UpdateMemoryShrinkRequest.d.ts +1 -1
  137. package/dist/models/UpdateMemoryStoreRequest.d.ts +2 -2
  138. package/dist/models/UpdateMemoryStoreResponseBody.d.ts +1 -1
  139. package/dist/models/ValidateAgentCodePackageFromOssRequest.d.ts +52 -0
  140. package/dist/models/ValidateAgentCodePackageFromOssRequest.js +82 -0
  141. package/dist/models/ValidateAgentCodePackageFromOssRequest.js.map +1 -0
  142. package/dist/models/ValidateAgentCodePackageFromOssResponse.d.ts +19 -0
  143. package/dist/models/ValidateAgentCodePackageFromOssResponse.js +69 -0
  144. package/dist/models/ValidateAgentCodePackageFromOssResponse.js.map +1 -0
  145. package/dist/models/ValidateAgentCodePackageFromOssResponseBody.d.ts +99 -0
  146. package/dist/models/ValidateAgentCodePackageFromOssResponseBody.js +96 -0
  147. package/dist/models/ValidateAgentCodePackageFromOssResponseBody.js.map +1 -0
  148. package/dist/models/ValidateAgentCodePackageFromOssShrinkRequest.d.ts +20 -0
  149. package/dist/models/ValidateAgentCodePackageFromOssShrinkRequest.js +58 -0
  150. package/dist/models/ValidateAgentCodePackageFromOssShrinkRequest.js.map +1 -0
  151. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationRequest.d.ts +23 -0
  152. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationRequest.js +58 -0
  153. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationRequest.js.map +1 -0
  154. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponse.d.ts +19 -0
  155. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponse.js +69 -0
  156. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponse.js.map +1 -0
  157. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponseBody.d.ts +73 -0
  158. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponseBody.js +96 -0
  159. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponseBody.js.map +1 -0
  160. package/dist/models/model.d.ts +70 -0
  161. package/dist/models/model.js +256 -115
  162. package/dist/models/model.js.map +1 -1
  163. package/package.json +1 -1
  164. package/src/client.ts +1032 -70
  165. package/src/models/AddMemoriesRequest.ts +10 -10
  166. package/src/models/AddMemoriesResponseBody.ts +4 -4
  167. package/src/models/AddMemoriesShrinkRequest.ts +1 -1
  168. package/src/models/CreateCustomAgentRequest.ts +43 -43
  169. package/src/models/CreateCustomAgentResponseBody.ts +141 -61
  170. package/src/models/CreateIdentityProviderRequest.ts +72 -9
  171. package/src/models/CreateIdentityProviderResponseBody.ts +258 -9
  172. package/src/models/CreateIdentityProviderShrinkRequest.ts +1 -1
  173. package/src/models/CreateIdentityProviderSyncJobRequest.ts +24 -0
  174. package/src/models/CreateIdentityProviderSyncJobResponse.ts +40 -0
  175. package/src/models/CreateIdentityProviderSyncJobResponseBody.ts +167 -0
  176. package/src/models/CreateMemoryStoreRequest.ts +6 -6
  177. package/src/models/CreateMemoryStoreResponseBody.ts +7 -7
  178. package/src/models/CreateMemoryStoreShrinkRequest.ts +2 -2
  179. package/src/models/DeleteIdentityProviderResponseBody.ts +199 -19
  180. package/src/models/DeleteMemoryStoreResponseBody.ts +3 -3
  181. package/src/models/GetAgentCodePackageDownloadUrlRequest.ts +24 -0
  182. package/src/models/GetAgentCodePackageDownloadUrlResponse.ts +40 -0
  183. package/src/models/GetAgentCodePackageDownloadUrlResponseBody.ts +181 -0
  184. package/src/models/GetAgentCodePackageOssRamAuthorizeUrlRequest.ts +36 -0
  185. package/src/models/GetAgentCodePackageOssRamAuthorizeUrlResponse.ts +40 -0
  186. package/src/models/GetAgentCodePackageOssRamAuthorizeUrlResponseBody.ts +141 -0
  187. package/src/models/GetAgentCodePackageUploadUrlRequest.ts +92 -0
  188. package/src/models/GetAgentCodePackageUploadUrlResponse.ts +40 -0
  189. package/src/models/GetAgentCodePackageUploadUrlResponseBody.ts +161 -0
  190. package/src/models/GetAgentCodePackageUploadUrlShrinkRequest.ts +33 -0
  191. package/src/models/GetCustomAgentResponseBody.ts +128 -48
  192. package/src/models/GetIdentityProviderResponseBody.ts +300 -11
  193. package/src/models/GetIdentityProviderSyncJobRequest.ts +24 -0
  194. package/src/models/GetIdentityProviderSyncJobResponse.ts +40 -0
  195. package/src/models/GetIdentityProviderSyncJobResponseBody.ts +174 -0
  196. package/src/models/GetIdentityProviderSyncScopeRequest.ts +24 -0
  197. package/src/models/GetIdentityProviderSyncScopeResponse.ts +40 -0
  198. package/src/models/GetIdentityProviderSyncScopeResponseBody.ts +256 -0
  199. package/src/models/GetMemoryResponseBody.ts +4 -4
  200. package/src/models/GetMemoryStoreResponseBody.ts +3 -3
  201. package/src/models/ListAgentCodeRuntimesRequest.ts +44 -0
  202. package/src/models/ListAgentCodeRuntimesResponse.ts +40 -0
  203. package/src/models/ListAgentCodeRuntimesResponseBody.ts +161 -0
  204. package/src/models/ListCustomAgentsRequest.ts +2 -2
  205. package/src/models/ListCustomAgentsResponseBody.ts +303 -25
  206. package/src/models/ListIdentityProviderDepartmentsRequest.ts +54 -0
  207. package/src/models/ListIdentityProviderDepartmentsResponse.ts +40 -0
  208. package/src/models/ListIdentityProviderDepartmentsResponseBody.ts +187 -0
  209. package/src/models/ListIdentityProvidersRequest.ts +2 -2
  210. package/src/models/ListIdentityProvidersResponseBody.ts +309 -20
  211. package/src/models/ListMemoriesResponseBody.ts +1 -1
  212. package/src/models/ListMemorySessionMessagesRequest.ts +3 -3
  213. package/src/models/ListMemorySessionsRequest.ts +2 -2
  214. package/src/models/ListMemorySessionsResponseBody.ts +1 -1
  215. package/src/models/ListMemoryStoresResponseBody.ts +2 -2
  216. package/src/models/SearchMemoriesRequest.ts +3 -3
  217. package/src/models/SearchMemoriesResponseBody.ts +3 -3
  218. package/src/models/UpdateCustomAgentRequest.ts +49 -49
  219. package/src/models/UpdateCustomAgentResponseBody.ts +147 -77
  220. package/src/models/UpdateCustomAgentShrinkRequest.ts +1 -1
  221. package/src/models/UpdateIdentityProviderRequest.ts +180 -8
  222. package/src/models/UpdateIdentityProviderResponseBody.ts +256 -16
  223. package/src/models/UpdateIdentityProviderShrinkRequest.ts +1 -1
  224. package/src/models/UpdateMemoryRequest.ts +3 -3
  225. package/src/models/UpdateMemoryShrinkRequest.ts +1 -1
  226. package/src/models/UpdateMemoryStoreRequest.ts +2 -2
  227. package/src/models/UpdateMemoryStoreResponseBody.ts +1 -1
  228. package/src/models/ValidateAgentCodePackageFromOssRequest.ts +80 -0
  229. package/src/models/ValidateAgentCodePackageFromOssResponse.ts +40 -0
  230. package/src/models/ValidateAgentCodePackageFromOssResponseBody.ts +141 -0
  231. package/src/models/ValidateAgentCodePackageFromOssShrinkRequest.ts +33 -0
  232. package/src/models/VerifyAgentCodePackageOssRamAuthorizationRequest.ts +36 -0
  233. package/src/models/VerifyAgentCodePackageOssRamAuthorizationResponse.ts +40 -0
  234. package/src/models/VerifyAgentCodePackageOssRamAuthorizationResponseBody.ts +115 -0
  235. package/src/models/model.ts +70 -0
package/dist/client.d.ts CHANGED
@@ -9,10 +9,10 @@ export default class Client extends OpenApi {
9
9
  [key: string]: string;
10
10
  }, endpoint: string): string;
11
11
  /**
12
- * 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 that can be queried by using GetMemoryTask.
12
+ * 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.
13
13
  *
14
14
  * @remarks
15
- * 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 that can be queried by using GetMemoryTask.
15
+ * 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.
16
16
  *
17
17
  * @param tmpReq - AddMemoriesRequest
18
18
  * @param headers - map
@@ -23,10 +23,10 @@ export default class Client extends OpenApi {
23
23
  [key: string]: string;
24
24
  }, runtime: $dara.RuntimeOptions): Promise<$_model.AddMemoriesResponse>;
25
25
  /**
26
- * 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 that can be queried by using GetMemoryTask.
26
+ * 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.
27
27
  *
28
28
  * @remarks
29
- * 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 that can be queried by using GetMemoryTask.
29
+ * 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.
30
30
  *
31
31
  * @param request - AddMemoriesRequest
32
32
  * @returns AddMemoriesResponse
@@ -201,13 +201,15 @@ export default class Client extends OpenApi {
201
201
  */
202
202
  createCredential(workspaceId: string, request: $_model.CreateCredentialRequest): Promise<$_model.CreateCredentialResponse>;
203
203
  /**
204
- * Creates a custom agent in a specified workspace and submits a container image deployment configuration. The creation is an asynchronous process. You can call GetCustomAgent to query the deployment result.
204
+ * 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.
205
205
  *
206
206
  * @remarks
207
- * Before you call this operation, prepare a writable workspace, a RAM role ARN, an ACR container image, and a runtime configuration. You must specify name, artifact, roleArn, and runtime. The runtime parameter must include both compute and sessionPolicy.
208
- * Currently, only ACR container image deployment is supported. Use artifact.container and specify the service listening port in artifact.port. Omit artifact.code. The image must have the required access permissions and be accessible over the network allowed by the workspace.
209
- * The creation is an asynchronous process. A successful response indicates that the request is accepted. Use the returned agentId to call GetCustomAgent and check latestVersionStatus, latestExecutionError, and status for the corresponding latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure an access endpoint.
210
- * The clientToken parameter does not currently provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not currently take effect. Omit this parameter.
207
+ * 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.
208
+ * 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.
209
+ * 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.
210
+ * 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.
211
+ * 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.
212
+ * 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.
211
213
  *
212
214
  * @param tmpReq - CreateCustomAgentRequest
213
215
  * @param headers - map
@@ -218,13 +220,15 @@ export default class Client extends OpenApi {
218
220
  [key: string]: string;
219
221
  }, runtime: $dara.RuntimeOptions): Promise<$_model.CreateCustomAgentResponse>;
220
222
  /**
221
- * Creates a custom agent in a specified workspace and submits a container image deployment configuration. The creation is an asynchronous process. You can call GetCustomAgent to query the deployment result.
223
+ * 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.
222
224
  *
223
225
  * @remarks
224
- * Before you call this operation, prepare a writable workspace, a RAM role ARN, an ACR container image, and a runtime configuration. You must specify name, artifact, roleArn, and runtime. The runtime parameter must include both compute and sessionPolicy.
225
- * Currently, only ACR container image deployment is supported. Use artifact.container and specify the service listening port in artifact.port. Omit artifact.code. The image must have the required access permissions and be accessible over the network allowed by the workspace.
226
- * The creation is an asynchronous process. A successful response indicates that the request is accepted. Use the returned agentId to call GetCustomAgent and check latestVersionStatus, latestExecutionError, and status for the corresponding latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure an access endpoint.
227
- * The clientToken parameter does not currently provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not currently take effect. Omit this parameter.
226
+ * 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.
227
+ * 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.
228
+ * 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.
229
+ * 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.
230
+ * 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.
231
+ * 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.
228
232
  *
229
233
  * @param request - CreateCustomAgentRequest
230
234
  * @returns CreateCustomAgentResponse
@@ -279,7 +283,34 @@ export default class Client extends OpenApi {
279
283
  */
280
284
  createExternalAgentBootstrapToken(workspaceId: string, agentId: string, request: $_model.CreateExternalAgentBootstrapTokenRequest): Promise<$_model.CreateExternalAgentBootstrapTokenResponse>;
281
285
  /**
282
- * Binds an external identity provider to a specified workspace to enable single sign-on and organization member synchronization for workspace users. Each workspace can be bound to a maximum of one external identity provider. This is an asynchronous operation. After the API call returns, you can call GetIdentityProvider to query the status and track the progress.
286
+ * 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.
287
+ *
288
+ * @remarks
289
+ * ## Features and prerequisites
290
+ * 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.
291
+ * 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.
292
+ * ## Requests and examples
293
+ * POST /workspaces/{workspaceId}/identity-providers
294
+ * 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.
295
+ * ```text
296
+ * POST /workspaces/ws-example/identity-providers
297
+ * {"identityProviderType": "CustomSSO"}
298
+ * ```
299
+ * ## Response example
300
+ * ```json
301
+ * {
302
+ * "data": {
303
+ * "workspaceId": "ws-example",
304
+ * "identityProviderType": "CustomSSO",
305
+ * "loginEnabled": false,
306
+ * "syncEnabled": false,
307
+ * "status": "CONFIGURED"
308
+ * }
309
+ * }
310
+ * ```
311
+ * ## Errors and handling
312
+ * 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.
313
+ * 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.
283
314
  *
284
315
  * @param tmpReq - CreateIdentityProviderRequest
285
316
  * @param headers - map
@@ -290,12 +321,99 @@ export default class Client extends OpenApi {
290
321
  [key: string]: string;
291
322
  }, runtime: $dara.RuntimeOptions): Promise<$_model.CreateIdentityProviderResponse>;
292
323
  /**
293
- * Binds an external identity provider to a specified workspace to enable single sign-on and organization member synchronization for workspace users. Each workspace can be bound to a maximum of one external identity provider. This is an asynchronous operation. After the API call returns, you can call GetIdentityProvider to query the status and track the progress.
324
+ * 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.
325
+ *
326
+ * @remarks
327
+ * ## Features and prerequisites
328
+ * 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.
329
+ * 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.
330
+ * ## Requests and examples
331
+ * POST /workspaces/{workspaceId}/identity-providers
332
+ * 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.
333
+ * ```text
334
+ * POST /workspaces/ws-example/identity-providers
335
+ * {"identityProviderType": "CustomSSO"}
336
+ * ```
337
+ * ## Response example
338
+ * ```json
339
+ * {
340
+ * "data": {
341
+ * "workspaceId": "ws-example",
342
+ * "identityProviderType": "CustomSSO",
343
+ * "loginEnabled": false,
344
+ * "syncEnabled": false,
345
+ * "status": "CONFIGURED"
346
+ * }
347
+ * }
348
+ * ```
349
+ * ## Errors and handling
350
+ * 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.
351
+ * 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.
294
352
  *
295
353
  * @param request - CreateIdentityProviderRequest
296
354
  * @returns CreateIdentityProviderResponse
297
355
  */
298
356
  createIdentityProvider(workspaceId: string, request: $_model.CreateIdentityProviderRequest): Promise<$_model.CreateIdentityProviderResponse>;
357
+ /**
358
+ * Initiates a manual synchronization of an identity provider.
359
+ *
360
+ * @remarks
361
+ * 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.
362
+ * 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.
363
+ * 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.
364
+ * Calling this API is free of charge, and operation records support ActionTrail auditing.
365
+ * 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.
366
+ * Response example:
367
+ * ```json
368
+ * {
369
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
370
+ * "message": "success",
371
+ * "httpStatusCode": 200,
372
+ * "code": "SUCCESS",
373
+ * "success": true,
374
+ * "data": {
375
+ * "taskId": "12345678-1234-4234-8234-123456789abc",
376
+ * "status": "PENDING"
377
+ * }
378
+ * }
379
+ * ```
380
+ *
381
+ * @param request - CreateIdentityProviderSyncJobRequest
382
+ * @param headers - map
383
+ * @param runtime - runtime options for this request RuntimeOptions
384
+ * @returns CreateIdentityProviderSyncJobResponse
385
+ */
386
+ createIdentityProviderSyncJobWithOptions(workspaceId: string, identityProviderType: string, request: $_model.CreateIdentityProviderSyncJobRequest, headers: {
387
+ [key: string]: string;
388
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.CreateIdentityProviderSyncJobResponse>;
389
+ /**
390
+ * Initiates a manual synchronization of an identity provider.
391
+ *
392
+ * @remarks
393
+ * 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.
394
+ * 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.
395
+ * 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.
396
+ * Calling this API is free of charge, and operation records support ActionTrail auditing.
397
+ * 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.
398
+ * Response example:
399
+ * ```json
400
+ * {
401
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
402
+ * "message": "success",
403
+ * "httpStatusCode": 200,
404
+ * "code": "SUCCESS",
405
+ * "success": true,
406
+ * "data": {
407
+ * "taskId": "12345678-1234-4234-8234-123456789abc",
408
+ * "status": "PENDING"
409
+ * }
410
+ * }
411
+ * ```
412
+ *
413
+ * @param request - CreateIdentityProviderSyncJobRequest
414
+ * @returns CreateIdentityProviderSyncJobResponse
415
+ */
416
+ createIdentityProviderSyncJob(workspaceId: string, identityProviderType: string, request: $_model.CreateIdentityProviderSyncJobRequest): Promise<$_model.CreateIdentityProviderSyncJobResponse>;
299
417
  /**
300
418
  * Creates an image cache.
301
419
  *
@@ -681,7 +799,31 @@ export default class Client extends OpenApi {
681
799
  */
682
800
  deleteExternalAgent(workspaceId: string, agentId: string, request: $_model.DeleteExternalAgentRequest): Promise<$_model.DeleteExternalAgentResponse>;
683
801
  /**
684
- * Unbinds the external identity provider from a specified workspace and cleans up users synchronized by that identity provider. The unbinding is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
802
+ * 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.
803
+ *
804
+ * @remarks
805
+ * ## Features and prerequisites
806
+ * 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.
807
+ * 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.
808
+ * ## Requests and examples
809
+ * DELETE /workspaces/{workspaceId}/identity-providers/{identityProviderType}
810
+ * 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.
811
+ * ```text
812
+ * DELETE /workspaces/ws-example/identity-providers/CustomSSO
813
+ * ```
814
+ * ## Response examples
815
+ * ```json
816
+ * {
817
+ * "data": {
818
+ * "workspaceId": "ws-example",
819
+ * "identityProviderType": "CustomSSO",
820
+ * "status": "DISCONNECTING"
821
+ * }
822
+ * }
823
+ * ```
824
+ * ## Errors and handling
825
+ * 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.
826
+ * 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.
685
827
  *
686
828
  * @param request - DeleteIdentityProviderRequest
687
829
  * @param headers - map
@@ -692,7 +834,31 @@ export default class Client extends OpenApi {
692
834
  [key: string]: string;
693
835
  }, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteIdentityProviderResponse>;
694
836
  /**
695
- * Unbinds the external identity provider from a specified workspace and cleans up users synchronized by that identity provider. The unbinding is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
837
+ * 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.
838
+ *
839
+ * @remarks
840
+ * ## Features and prerequisites
841
+ * 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.
842
+ * 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.
843
+ * ## Requests and examples
844
+ * DELETE /workspaces/{workspaceId}/identity-providers/{identityProviderType}
845
+ * 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.
846
+ * ```text
847
+ * DELETE /workspaces/ws-example/identity-providers/CustomSSO
848
+ * ```
849
+ * ## Response examples
850
+ * ```json
851
+ * {
852
+ * "data": {
853
+ * "workspaceId": "ws-example",
854
+ * "identityProviderType": "CustomSSO",
855
+ * "status": "DISCONNECTING"
856
+ * }
857
+ * }
858
+ * ```
859
+ * ## Errors and handling
860
+ * 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.
861
+ * 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.
696
862
  *
697
863
  * @param request - DeleteIdentityProviderRequest
698
864
  * @returns DeleteIdentityProviderResponse
@@ -791,10 +957,10 @@ export default class Client extends OpenApi {
791
957
  */
792
958
  deleteMemory(workspaceId: string, memoryStoreName: string, memoryId: string, request: $_model.DeleteMemoryRequest): Promise<$_model.DeleteMemoryResponse>;
793
959
  /**
794
- * Asynchronously deletes a MemoryStore and all its long-term memory.
960
+ * Asynchronously deletes a MemoryStore and all long-term memory within it.
795
961
  *
796
962
  * @remarks
797
- * Asynchronously deletes a MemoryStore and all its long-term memory.
963
+ * Asynchronously deletes a MemoryStore and all long-term memory within it.
798
964
  *
799
965
  * @param request - DeleteMemoryStoreRequest
800
966
  * @param headers - map
@@ -805,10 +971,10 @@ export default class Client extends OpenApi {
805
971
  [key: string]: string;
806
972
  }, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMemoryStoreResponse>;
807
973
  /**
808
- * Asynchronously deletes a MemoryStore and all its long-term memory.
974
+ * Asynchronously deletes a MemoryStore and all long-term memory within it.
809
975
  *
810
976
  * @remarks
811
- * Asynchronously deletes a MemoryStore and all its long-term memory.
977
+ * Asynchronously deletes a MemoryStore and all long-term memory within it.
812
978
  *
813
979
  * @param request - DeleteMemoryStoreRequest
814
980
  * @returns DeleteMemoryStoreResponse
@@ -1088,6 +1254,82 @@ export default class Client extends OpenApi {
1088
1254
  * @returns ForcePublishSkillVersionResponse
1089
1255
  */
1090
1256
  forcePublishSkillVersion(workspaceId: string, skillName: string, skillVersion: string, request: $_model.ForcePublishSkillVersionRequest): Promise<$_model.ForcePublishSkillVersionResponse>;
1257
+ /**
1258
+ * Retrieves the download URL for the saved code package of an agent.
1259
+ *
1260
+ * @remarks
1261
+ * 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.
1262
+ *
1263
+ * @param request - GetAgentCodePackageDownloadUrlRequest
1264
+ * @param headers - map
1265
+ * @param runtime - runtime options for this request RuntimeOptions
1266
+ * @returns GetAgentCodePackageDownloadUrlResponse
1267
+ */
1268
+ getAgentCodePackageDownloadUrlWithOptions(workspaceId: string, agentId: string, request: $_model.GetAgentCodePackageDownloadUrlRequest, headers: {
1269
+ [key: string]: string;
1270
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetAgentCodePackageDownloadUrlResponse>;
1271
+ /**
1272
+ * Retrieves the download URL for the saved code package of an agent.
1273
+ *
1274
+ * @remarks
1275
+ * 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.
1276
+ *
1277
+ * @param request - GetAgentCodePackageDownloadUrlRequest
1278
+ * @returns GetAgentCodePackageDownloadUrlResponse
1279
+ */
1280
+ getAgentCodePackageDownloadUrl(workspaceId: string, agentId: string, request: $_model.GetAgentCodePackageDownloadUrlRequest): Promise<$_model.GetAgentCodePackageDownloadUrlResponse>;
1281
+ /**
1282
+ * Retrieves the OSS RAM authorization URL for the agent code package.
1283
+ *
1284
+ * @remarks
1285
+ * 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.
1286
+ * 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.
1287
+ *
1288
+ * @param request - GetAgentCodePackageOssRamAuthorizeUrlRequest
1289
+ * @param headers - map
1290
+ * @param runtime - runtime options for this request RuntimeOptions
1291
+ * @returns GetAgentCodePackageOssRamAuthorizeUrlResponse
1292
+ */
1293
+ getAgentCodePackageOssRamAuthorizeUrlWithOptions(workspaceId: string, request: $_model.GetAgentCodePackageOssRamAuthorizeUrlRequest, headers: {
1294
+ [key: string]: string;
1295
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetAgentCodePackageOssRamAuthorizeUrlResponse>;
1296
+ /**
1297
+ * Retrieves the OSS RAM authorization URL for the agent code package.
1298
+ *
1299
+ * @remarks
1300
+ * 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.
1301
+ * 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.
1302
+ *
1303
+ * @param request - GetAgentCodePackageOssRamAuthorizeUrlRequest
1304
+ * @returns GetAgentCodePackageOssRamAuthorizeUrlResponse
1305
+ */
1306
+ getAgentCodePackageOssRamAuthorizeUrl(workspaceId: string, request: $_model.GetAgentCodePackageOssRamAuthorizeUrlRequest): Promise<$_model.GetAgentCodePackageOssRamAuthorizeUrlResponse>;
1307
+ /**
1308
+ * Retrieves the upload URL for an agent code package.
1309
+ *
1310
+ * @remarks
1311
+ * 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.
1312
+ * 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.
1313
+ *
1314
+ * @param tmpReq - GetAgentCodePackageUploadUrlRequest
1315
+ * @param headers - map
1316
+ * @param runtime - runtime options for this request RuntimeOptions
1317
+ * @returns GetAgentCodePackageUploadUrlResponse
1318
+ */
1319
+ getAgentCodePackageUploadUrlWithOptions(workspaceId: string, tmpReq: $_model.GetAgentCodePackageUploadUrlRequest, headers: {
1320
+ [key: string]: string;
1321
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetAgentCodePackageUploadUrlResponse>;
1322
+ /**
1323
+ * Retrieves the upload URL for an agent code package.
1324
+ *
1325
+ * @remarks
1326
+ * 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.
1327
+ * 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.
1328
+ *
1329
+ * @param request - GetAgentCodePackageUploadUrlRequest
1330
+ * @returns GetAgentCodePackageUploadUrlResponse
1331
+ */
1332
+ getAgentCodePackageUploadUrl(workspaceId: string, request: $_model.GetAgentCodePackageUploadUrlRequest): Promise<$_model.GetAgentCodePackageUploadUrlResponse>;
1091
1333
  /**
1092
1334
  * Queries the details of a specified agent IM channel.
1093
1335
  *
@@ -1244,8 +1486,8 @@ export default class Client extends OpenApi {
1244
1486
  * 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.
1245
1487
  *
1246
1488
  * @remarks
1247
- * After you create or update a custom agent, you can poll this operation to query the execution result of the latest configuration version. `latestVersionStatus` corresponds to `latestSpecVersion`. `latestExecutionError` indicates the cause of the pending or failed status for this version. If `retryable` is true, you can query again later.
1248
- * The returned configuration is the most recently submitted configuration and may not have taken effect. Verify the deployment and running status by checking `latestVersionStatus`, the overall agent status `status`, and the running instance statistics `sandboxPhaseCounts`.
1489
+ * 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.
1490
+ * 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.
1249
1491
  * 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.
1250
1492
  *
1251
1493
  * @param request - GetCustomAgentRequest
@@ -1260,8 +1502,8 @@ export default class Client extends OpenApi {
1260
1502
  * 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.
1261
1503
  *
1262
1504
  * @remarks
1263
- * After you create or update a custom agent, you can poll this operation to query the execution result of the latest configuration version. `latestVersionStatus` corresponds to `latestSpecVersion`. `latestExecutionError` indicates the cause of the pending or failed status for this version. If `retryable` is true, you can query again later.
1264
- * The returned configuration is the most recently submitted configuration and may not have taken effect. Verify the deployment and running status by checking `latestVersionStatus`, the overall agent status `status`, and the running instance statistics `sandboxPhaseCounts`.
1505
+ * 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.
1506
+ * 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.
1265
1507
  * 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.
1266
1508
  *
1267
1509
  * @param request - GetCustomAgentRequest
@@ -1317,7 +1559,33 @@ export default class Client extends OpenApi {
1317
1559
  */
1318
1560
  getExternalAgentBootstrapOptions(workspaceId: string, agentId: string, request: $_model.GetExternalAgentBootstrapOptionsRequest): Promise<$_model.GetExternalAgentBootstrapOptionsResponse>;
1319
1561
  /**
1320
- * Queries the binding details of the external identity provider for a specified workspace, including the binding status, application configurations, and callback URLs to be configured on the identity provider side. Application secret configurations are not returned.
1562
+ * 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.
1563
+ *
1564
+ * @remarks
1565
+ * ## Features and prerequisites
1566
+ * 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.
1567
+ * 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.
1568
+ * ## Requests and examples
1569
+ * GET /workspaces/{workspaceId}/identity-providers/{identityProviderType}
1570
+ * 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.
1571
+ * ```text
1572
+ * GET /workspaces/ws-example/identity-providers/CustomSSO
1573
+ * ```
1574
+ * ## Response example
1575
+ * ```json
1576
+ * {
1577
+ * "data": {
1578
+ * "workspaceId": "ws-example",
1579
+ * "identityProviderType": "CustomSSO",
1580
+ * "status": "READY",
1581
+ * "loginEnabled": false,
1582
+ * "syncEnabled": false
1583
+ * }
1584
+ * }
1585
+ * ```
1586
+ * ## Errors and handling
1587
+ * 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.
1588
+ * 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.
1321
1589
  *
1322
1590
  * @param request - GetIdentityProviderRequest
1323
1591
  * @param headers - map
@@ -1328,12 +1596,188 @@ export default class Client extends OpenApi {
1328
1596
  [key: string]: string;
1329
1597
  }, runtime: $dara.RuntimeOptions): Promise<$_model.GetIdentityProviderResponse>;
1330
1598
  /**
1331
- * Queries the binding details of the external identity provider for a specified workspace, including the binding status, application configurations, and callback URLs to be configured on the identity provider side. Application secret configurations are not returned.
1599
+ * 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.
1600
+ *
1601
+ * @remarks
1602
+ * ## Features and prerequisites
1603
+ * 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.
1604
+ * 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.
1605
+ * ## Requests and examples
1606
+ * GET /workspaces/{workspaceId}/identity-providers/{identityProviderType}
1607
+ * 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.
1608
+ * ```text
1609
+ * GET /workspaces/ws-example/identity-providers/CustomSSO
1610
+ * ```
1611
+ * ## Response example
1612
+ * ```json
1613
+ * {
1614
+ * "data": {
1615
+ * "workspaceId": "ws-example",
1616
+ * "identityProviderType": "CustomSSO",
1617
+ * "status": "READY",
1618
+ * "loginEnabled": false,
1619
+ * "syncEnabled": false
1620
+ * }
1621
+ * }
1622
+ * ```
1623
+ * ## Errors and handling
1624
+ * 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.
1625
+ * 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.
1332
1626
  *
1333
1627
  * @param request - GetIdentityProviderRequest
1334
1628
  * @returns GetIdentityProviderResponse
1335
1629
  */
1336
1630
  getIdentityProvider(workspaceId: string, identityProviderType: string, request: $_model.GetIdentityProviderRequest): Promise<$_model.GetIdentityProviderResponse>;
1631
+ /**
1632
+ * Queries an identity provider synchronization task.
1633
+ *
1634
+ * @remarks
1635
+ * 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.
1636
+ * 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.
1637
+ * Idempotence and retry: This operation is read-only and can be repeatedly queried.
1638
+ * Calling this API operation is free of charge, and operation records support ActionTrail auditing.
1639
+ * Response example:
1640
+ * ```json
1641
+ * {
1642
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
1643
+ * "message": "success",
1644
+ * "httpStatusCode": 200,
1645
+ * "code": "SUCCESS",
1646
+ * "success": true,
1647
+ * "data": {
1648
+ * "taskId": "12345678-1234-4234-8234-123456789abc",
1649
+ * "status": "SUCCESS",
1650
+ * "currentStep": "SYNC",
1651
+ * "synchronizationJobId": "syncjob_0123456789abcdef0123456789abcdef",
1652
+ * "syncedUserCount": 12
1653
+ * }
1654
+ * }
1655
+ * ```
1656
+ *
1657
+ * @param request - GetIdentityProviderSyncJobRequest
1658
+ * @param headers - map
1659
+ * @param runtime - runtime options for this request RuntimeOptions
1660
+ * @returns GetIdentityProviderSyncJobResponse
1661
+ */
1662
+ getIdentityProviderSyncJobWithOptions(workspaceId: string, identityProviderType: string, taskId: string, request: $_model.GetIdentityProviderSyncJobRequest, headers: {
1663
+ [key: string]: string;
1664
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetIdentityProviderSyncJobResponse>;
1665
+ /**
1666
+ * Queries an identity provider synchronization task.
1667
+ *
1668
+ * @remarks
1669
+ * 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.
1670
+ * 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.
1671
+ * Idempotence and retry: This operation is read-only and can be repeatedly queried.
1672
+ * Calling this API operation is free of charge, and operation records support ActionTrail auditing.
1673
+ * Response example:
1674
+ * ```json
1675
+ * {
1676
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
1677
+ * "message": "success",
1678
+ * "httpStatusCode": 200,
1679
+ * "code": "SUCCESS",
1680
+ * "success": true,
1681
+ * "data": {
1682
+ * "taskId": "12345678-1234-4234-8234-123456789abc",
1683
+ * "status": "SUCCESS",
1684
+ * "currentStep": "SYNC",
1685
+ * "synchronizationJobId": "syncjob_0123456789abcdef0123456789abcdef",
1686
+ * "syncedUserCount": 12
1687
+ * }
1688
+ * }
1689
+ * ```
1690
+ *
1691
+ * @param request - GetIdentityProviderSyncJobRequest
1692
+ * @returns GetIdentityProviderSyncJobResponse
1693
+ */
1694
+ getIdentityProviderSyncJob(workspaceId: string, identityProviderType: string, taskId: string, request: $_model.GetIdentityProviderSyncJobRequest): Promise<$_model.GetIdentityProviderSyncJobResponse>;
1695
+ /**
1696
+ * Queries the synchronization scope of an identity provider.
1697
+ *
1698
+ * @remarks
1699
+ * 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.
1700
+ * 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.
1701
+ * Idempotence and retry: This operation is read-only and can be queried repeatedly.
1702
+ * Calling this API operation is free of charge. Operation records support ActionTrail auditing.
1703
+ * Sample response:
1704
+ * ```json
1705
+ * {
1706
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
1707
+ * "message": "success",
1708
+ * "httpStatusCode": 200,
1709
+ * "code": "SUCCESS",
1710
+ * "success": true,
1711
+ * "data": {
1712
+ * "syncScope": {
1713
+ * "mode": "SelectedDepartments",
1714
+ * "departmentIds": [
1715
+ * "10001"
1716
+ * ]
1717
+ * },
1718
+ * "selectedDepartments": [
1719
+ * {
1720
+ * "id": "10001",
1721
+ * "name": "R&D Department",
1722
+ * "exists": true
1723
+ * }
1724
+ * ],
1725
+ * "estimateStatus": "Ready",
1726
+ * "expandedDepartmentCount": 2,
1727
+ * "estimatedUserCount": 12
1728
+ * }
1729
+ * }
1730
+ * ```
1731
+ *
1732
+ * @param request - GetIdentityProviderSyncScopeRequest
1733
+ * @param headers - map
1734
+ * @param runtime - runtime options for this request RuntimeOptions
1735
+ * @returns GetIdentityProviderSyncScopeResponse
1736
+ */
1737
+ getIdentityProviderSyncScopeWithOptions(workspaceId: string, identityProviderType: string, request: $_model.GetIdentityProviderSyncScopeRequest, headers: {
1738
+ [key: string]: string;
1739
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetIdentityProviderSyncScopeResponse>;
1740
+ /**
1741
+ * Queries the synchronization scope of an identity provider.
1742
+ *
1743
+ * @remarks
1744
+ * 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.
1745
+ * 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.
1746
+ * Idempotence and retry: This operation is read-only and can be queried repeatedly.
1747
+ * Calling this API operation is free of charge. Operation records support ActionTrail auditing.
1748
+ * Sample response:
1749
+ * ```json
1750
+ * {
1751
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
1752
+ * "message": "success",
1753
+ * "httpStatusCode": 200,
1754
+ * "code": "SUCCESS",
1755
+ * "success": true,
1756
+ * "data": {
1757
+ * "syncScope": {
1758
+ * "mode": "SelectedDepartments",
1759
+ * "departmentIds": [
1760
+ * "10001"
1761
+ * ]
1762
+ * },
1763
+ * "selectedDepartments": [
1764
+ * {
1765
+ * "id": "10001",
1766
+ * "name": "R&D Department",
1767
+ * "exists": true
1768
+ * }
1769
+ * ],
1770
+ * "estimateStatus": "Ready",
1771
+ * "expandedDepartmentCount": 2,
1772
+ * "estimatedUserCount": 12
1773
+ * }
1774
+ * }
1775
+ * ```
1776
+ *
1777
+ * @param request - GetIdentityProviderSyncScopeRequest
1778
+ * @returns GetIdentityProviderSyncScopeResponse
1779
+ */
1780
+ getIdentityProviderSyncScope(workspaceId: string, identityProviderType: string, request: $_model.GetIdentityProviderSyncScopeRequest): Promise<$_model.GetIdentityProviderSyncScopeResponse>;
1337
1781
  /**
1338
1782
  * Queries the details of an image cache.
1339
1783
  *
@@ -1840,6 +2284,32 @@ export default class Client extends OpenApi {
1840
2284
  * @returns InstallWorkspacePluginResponse
1841
2285
  */
1842
2286
  installWorkspacePlugin(workspaceId: string, pluginName: string, request: $_model.InstallWorkspacePluginRequest): Promise<$_model.InstallWorkspacePluginResponse>;
2287
+ /**
2288
+ * Queries the runtime environments supported for code deployment.
2289
+ *
2290
+ * @remarks
2291
+ * 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.
2292
+ * 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.
2293
+ *
2294
+ * @param request - ListAgentCodeRuntimesRequest
2295
+ * @param headers - map
2296
+ * @param runtime - runtime options for this request RuntimeOptions
2297
+ * @returns ListAgentCodeRuntimesResponse
2298
+ */
2299
+ listAgentCodeRuntimesWithOptions(workspaceId: string, request: $_model.ListAgentCodeRuntimesRequest, headers: {
2300
+ [key: string]: string;
2301
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.ListAgentCodeRuntimesResponse>;
2302
+ /**
2303
+ * Queries the runtime environments supported for code deployment.
2304
+ *
2305
+ * @remarks
2306
+ * 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.
2307
+ * 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.
2308
+ *
2309
+ * @param request - ListAgentCodeRuntimesRequest
2310
+ * @returns ListAgentCodeRuntimesResponse
2311
+ */
2312
+ listAgentCodeRuntimes(workspaceId: string, request: $_model.ListAgentCodeRuntimesRequest): Promise<$_model.ListAgentCodeRuntimesResponse>;
1843
2313
  /**
1844
2314
  * Queries the list of IM channels for a specified agent.
1845
2315
  *
@@ -1981,12 +2451,12 @@ export default class Client extends OpenApi {
1981
2451
  */
1982
2452
  listCredentials(workspaceId: string, request: $_model.ListCredentialsRequest): Promise<$_model.ListCredentialsResponse>;
1983
2453
  /**
1984
- * Queries the summaries of custom agents in a specified workspace by using paging. For the complete configuration and the execution results of the latest version, call GetCustomAgent.
2454
+ * 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.
1985
2455
  *
1986
2456
  * @remarks
1987
- * 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.
1988
- * Omit nextToken in the first request. In subsequent requests, pass the nextToken value returned in the previous response as is, and keep the same workspace. The nextToken is an opaque token. Do not parse or construct it. If the token in the response is empty, it indicates that no more pages are available.
1989
- * This operation returns the summaries of the current page and does not return the complete deployment configuration or the execution errors of the latest version. To obtain this information, call GetCustomAgent by using the agentId in items.
2457
+ * 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.
2458
+ * 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.
2459
+ * 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.
1990
2460
  *
1991
2461
  * @param request - ListCustomAgentsRequest
1992
2462
  * @param headers - map
@@ -1997,12 +2467,12 @@ export default class Client extends OpenApi {
1997
2467
  [key: string]: string;
1998
2468
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListCustomAgentsResponse>;
1999
2469
  /**
2000
- * Queries the summaries of custom agents in a specified workspace by using paging. For the complete configuration and the execution results of the latest version, call GetCustomAgent.
2470
+ * 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.
2001
2471
  *
2002
2472
  * @remarks
2003
- * 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.
2004
- * Omit nextToken in the first request. In subsequent requests, pass the nextToken value returned in the previous response as is, and keep the same workspace. The nextToken is an opaque token. Do not parse or construct it. If the token in the response is empty, it indicates that no more pages are available.
2005
- * This operation returns the summaries of the current page and does not return the complete deployment configuration or the execution errors of the latest version. To obtain this information, call GetCustomAgent by using the agentId in items.
2473
+ * 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.
2474
+ * 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.
2475
+ * 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.
2006
2476
  *
2007
2477
  * @param request - ListCustomAgentsRequest
2008
2478
  * @returns ListCustomAgentsResponse
@@ -2032,9 +2502,63 @@ export default class Client extends OpenApi {
2032
2502
  * @returns ListExternalAgentsResponse
2033
2503
  */
2034
2504
  listExternalAgents(workspaceId: string, request: $_model.ListExternalAgentsRequest): Promise<$_model.ListExternalAgentsResponse>;
2505
+ /**
2506
+ * Queries the departments of an identity provider by page.
2507
+ *
2508
+ * @remarks
2509
+ * 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```
2510
+ *
2511
+ * @param request - ListIdentityProviderDepartmentsRequest
2512
+ * @param headers - map
2513
+ * @param runtime - runtime options for this request RuntimeOptions
2514
+ * @returns ListIdentityProviderDepartmentsResponse
2515
+ */
2516
+ listIdentityProviderDepartmentsWithOptions(workspaceId: string, identityProviderType: string, request: $_model.ListIdentityProviderDepartmentsRequest, headers: {
2517
+ [key: string]: string;
2518
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.ListIdentityProviderDepartmentsResponse>;
2519
+ /**
2520
+ * Queries the departments of an identity provider by page.
2521
+ *
2522
+ * @remarks
2523
+ * 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```
2524
+ *
2525
+ * @param request - ListIdentityProviderDepartmentsRequest
2526
+ * @returns ListIdentityProviderDepartmentsResponse
2527
+ */
2528
+ listIdentityProviderDepartments(workspaceId: string, identityProviderType: string, request: $_model.ListIdentityProviderDepartmentsRequest): Promise<$_model.ListIdentityProviderDepartmentsResponse>;
2035
2529
  /**
2036
2530
  * 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.
2037
2531
  *
2532
+ * @remarks
2533
+ * ## Features and prerequisites
2534
+ * 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.
2535
+ * 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.
2536
+ * ## Requests and examples
2537
+ * GET /workspaces/{workspaceId}/identity-providers
2538
+ * 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.
2539
+ * ```text
2540
+ * GET /workspaces/ws-example/identity-providers?maxResults=10
2541
+ * ```
2542
+ * ## Response examples
2543
+ * ```json
2544
+ * {
2545
+ * "items": [
2546
+ * {
2547
+ * "workspaceId": "ws-example",
2548
+ * "identityProviderType": "CustomSSO",
2549
+ * "status": "READY",
2550
+ * "loginEnabled": false,
2551
+ * "syncEnabled": false
2552
+ * }
2553
+ * ],
2554
+ * "maxResults": 10,
2555
+ * "totalCount": 1
2556
+ * }
2557
+ * ```
2558
+ * ## Errors and handling
2559
+ * 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.
2560
+ * 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.
2561
+ *
2038
2562
  * @param request - ListIdentityProvidersRequest
2039
2563
  * @param headers - map
2040
2564
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2046,6 +2570,36 @@ export default class Client extends OpenApi {
2046
2570
  /**
2047
2571
  * 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.
2048
2572
  *
2573
+ * @remarks
2574
+ * ## Features and prerequisites
2575
+ * 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.
2576
+ * 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.
2577
+ * ## Requests and examples
2578
+ * GET /workspaces/{workspaceId}/identity-providers
2579
+ * 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.
2580
+ * ```text
2581
+ * GET /workspaces/ws-example/identity-providers?maxResults=10
2582
+ * ```
2583
+ * ## Response examples
2584
+ * ```json
2585
+ * {
2586
+ * "items": [
2587
+ * {
2588
+ * "workspaceId": "ws-example",
2589
+ * "identityProviderType": "CustomSSO",
2590
+ * "status": "READY",
2591
+ * "loginEnabled": false,
2592
+ * "syncEnabled": false
2593
+ * }
2594
+ * ],
2595
+ * "maxResults": 10,
2596
+ * "totalCount": 1
2597
+ * }
2598
+ * ```
2599
+ * ## Errors and handling
2600
+ * 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.
2601
+ * 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.
2602
+ *
2049
2603
  * @param request - ListIdentityProvidersRequest
2050
2604
  * @returns ListIdentityProvidersResponse
2051
2605
  */
@@ -2175,10 +2729,10 @@ export default class Client extends OpenApi {
2175
2729
  */
2176
2730
  listMcps(workspaceId: string, request: $_model.ListMcpsRequest): Promise<$_model.ListMcpsResponse>;
2177
2731
  /**
2178
- * Performs a paged query on long-term memory. Paging is supported, and you can filter the results independently by user ID, agent ID, and session ID.
2732
+ * 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.
2179
2733
  *
2180
2734
  * @remarks
2181
- * Performs a paged query on long-term memory. Paging is supported, and you can filter the results independently by user ID, agent ID, and session ID.
2735
+ * 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.
2182
2736
  *
2183
2737
  * @param request - ListMemoriesRequest
2184
2738
  * @param headers - map
@@ -2189,20 +2743,20 @@ export default class Client extends OpenApi {
2189
2743
  [key: string]: string;
2190
2744
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListMemoriesResponse>;
2191
2745
  /**
2192
- * Performs a paged query on long-term memory. Paging is supported, and you can filter the results independently by user ID, agent ID, and session ID.
2746
+ * 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.
2193
2747
  *
2194
2748
  * @remarks
2195
- * Performs a paged query on long-term memory. Paging is supported, and you can filter the results independently by user ID, agent ID, and session ID.
2749
+ * 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.
2196
2750
  *
2197
2751
  * @param request - ListMemoriesRequest
2198
2752
  * @returns ListMemoriesResponse
2199
2753
  */
2200
2754
  listMemories(workspaceId: string, memoryStoreName: string, request: $_model.ListMemoriesRequest): Promise<$_model.ListMemoriesResponse>;
2201
2755
  /**
2202
- * Performs a paged query for raw messages by exact scope with paging. SessionId is required, and at least one of UserId and AgentId must be provided.
2756
+ * Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
2203
2757
  *
2204
2758
  * @remarks
2205
- * Performs a paged query for raw messages by exact scope with paging. SessionId is required, and at least one of UserId and AgentId must be provided.
2759
+ * Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
2206
2760
  *
2207
2761
  * @param request - ListMemorySessionMessagesRequest
2208
2762
  * @param headers - map
@@ -2213,20 +2767,20 @@ export default class Client extends OpenApi {
2213
2767
  [key: string]: string;
2214
2768
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListMemorySessionMessagesResponse>;
2215
2769
  /**
2216
- * Performs a paged query for raw messages by exact scope with paging. SessionId is required, and at least one of UserId and AgentId must be provided.
2770
+ * Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
2217
2771
  *
2218
2772
  * @remarks
2219
- * Performs a paged query for raw messages by exact scope with paging. SessionId is required, and at least one of UserId and AgentId must be provided.
2773
+ * Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
2220
2774
  *
2221
2775
  * @param request - ListMemorySessionMessagesRequest
2222
2776
  * @returns ListMemorySessionMessagesResponse
2223
2777
  */
2224
2778
  listMemorySessionMessages(workspaceId: string, memoryStoreName: string, request: $_model.ListMemorySessionMessagesRequest): Promise<$_model.ListMemorySessionMessagesResponse>;
2225
2779
  /**
2226
- * Performs a paging query for sessions in a MemoryStore, and allows independent filtering by user ID and agent ID.
2780
+ * Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
2227
2781
  *
2228
2782
  * @remarks
2229
- * Performs a paging query for sessions in a MemoryStore, and allows independent filtering by user ID and agent ID.
2783
+ * Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
2230
2784
  *
2231
2785
  * @param request - ListMemorySessionsRequest
2232
2786
  * @param headers - map
@@ -2237,20 +2791,20 @@ export default class Client extends OpenApi {
2237
2791
  [key: string]: string;
2238
2792
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListMemorySessionsResponse>;
2239
2793
  /**
2240
- * Performs a paging query for sessions in a MemoryStore, and allows independent filtering by user ID and agent ID.
2794
+ * Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
2241
2795
  *
2242
2796
  * @remarks
2243
- * Performs a paging query for sessions in a MemoryStore, and allows independent filtering by user ID and agent ID.
2797
+ * Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
2244
2798
  *
2245
2799
  * @param request - ListMemorySessionsRequest
2246
2800
  * @returns ListMemorySessionsResponse
2247
2801
  */
2248
2802
  listMemorySessions(workspaceId: string, memoryStoreName: string, request: $_model.ListMemorySessionsRequest): Promise<$_model.ListMemorySessionsResponse>;
2249
2803
  /**
2250
- * Queries MemoryStores in a specified workspace by using paging.
2804
+ * Performs a paged query for MemoryStores in a specified workspace with paging.
2251
2805
  *
2252
2806
  * @remarks
2253
- * Queries MemoryStores in a specified workspace by using paging.
2807
+ * Performs a paged query for MemoryStores in a specified workspace with paging.
2254
2808
  *
2255
2809
  * @param request - ListMemoryStoresRequest
2256
2810
  * @param headers - map
@@ -2261,10 +2815,10 @@ export default class Client extends OpenApi {
2261
2815
  [key: string]: string;
2262
2816
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListMemoryStoresResponse>;
2263
2817
  /**
2264
- * Queries MemoryStores in a specified workspace by using paging.
2818
+ * Performs a paged query for MemoryStores in a specified workspace with paging.
2265
2819
  *
2266
2820
  * @remarks
2267
- * Queries MemoryStores in a specified workspace by using paging.
2821
+ * Performs a paged query for MemoryStores in a specified workspace with paging.
2268
2822
  *
2269
2823
  * @param request - ListMemoryStoresRequest
2270
2824
  * @returns ListMemoryStoresResponse
@@ -2697,10 +3251,10 @@ export default class Client extends OpenApi {
2697
3251
  */
2698
3252
  retryImageCache(imageId: string, request: $_model.RetryImageCacheRequest): Promise<$_model.RetryImageCacheResponse>;
2699
3253
  /**
2700
- * Retrieves long-term memory from a MemoryStore based on semantics queries.
3254
+ * Retrieves long-term memory from a MemoryStore based on semantics.
2701
3255
  *
2702
3256
  * @remarks
2703
- * Retrieves long-term memory from a MemoryStore based on semantics queries.
3257
+ * Retrieves long-term memory from a MemoryStore based on semantics.
2704
3258
  *
2705
3259
  * @param tmpReq - SearchMemoriesRequest
2706
3260
  * @param headers - map
@@ -2711,10 +3265,10 @@ export default class Client extends OpenApi {
2711
3265
  [key: string]: string;
2712
3266
  }, runtime: $dara.RuntimeOptions): Promise<$_model.SearchMemoriesResponse>;
2713
3267
  /**
2714
- * Retrieves long-term memory from a MemoryStore based on semantics queries.
3268
+ * Retrieves long-term memory from a MemoryStore based on semantics.
2715
3269
  *
2716
3270
  * @remarks
2717
- * Retrieves long-term memory from a MemoryStore based on semantics queries.
3271
+ * Retrieves long-term memory from a MemoryStore based on semantics.
2718
3272
  *
2719
3273
  * @param request - SearchMemoriesRequest
2720
3274
  * @returns SearchMemoriesResponse
@@ -2898,10 +3452,12 @@ export default class Client extends OpenApi {
2898
3452
  * 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.
2899
3453
  *
2900
3454
  * @remarks
2901
- * Specify at least one top-level field to update. Omitted top-level fields retain their original configurations. When providing a configuration object, specify its required subfields and include any optional configurations that you want to retain. Arrays are replaced as a whole. Pass an empty array [] to clear a list. The agenticFsMounts field does not accept null. Pass null for the description field to clear the description, and pass null for the healthCheck field to remove the health check.
2902
- * When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field. Currently, only ACR container image deployment is supported. Omit the artifact.code field.
2903
- * When providing the runtime field, both compute and sessionPolicy must be present. If you omit hpa or any of its fields, unspecified elastic configurations use default values. To retain the original elastic configurations, provide them all. When providing the network field, omitted access items are treated as allowed, but actual access is still subject to the workspace network restrictions. To retain the original restrictions, provide both accessInternet and accessVpc. When providing healthCheck, you must specify the port field, and other unspecified items use default values. When providing logging.sls, you must specify both project and logstore.
2904
- * The update is an asynchronous process. A successful response indicates that the request is accepted. You can call the GetCustomAgent operation to query latestSpecVersion, latestVersionStatus, and latestExecutionError, and check the status field to confirm the update result.
3455
+ * 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.
3456
+ * 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.
3457
+ * 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.
3458
+ * 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.
3459
+ * 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.
3460
+ * 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.
2905
3461
  * 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.
2906
3462
  *
2907
3463
  * @param tmpReq - UpdateCustomAgentRequest
@@ -2916,10 +3472,12 @@ export default class Client extends OpenApi {
2916
3472
  * 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.
2917
3473
  *
2918
3474
  * @remarks
2919
- * Specify at least one top-level field to update. Omitted top-level fields retain their original configurations. When providing a configuration object, specify its required subfields and include any optional configurations that you want to retain. Arrays are replaced as a whole. Pass an empty array [] to clear a list. The agenticFsMounts field does not accept null. Pass null for the description field to clear the description, and pass null for the healthCheck field to remove the health check.
2920
- * When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field. Currently, only ACR container image deployment is supported. Omit the artifact.code field.
2921
- * When providing the runtime field, both compute and sessionPolicy must be present. If you omit hpa or any of its fields, unspecified elastic configurations use default values. To retain the original elastic configurations, provide them all. When providing the network field, omitted access items are treated as allowed, but actual access is still subject to the workspace network restrictions. To retain the original restrictions, provide both accessInternet and accessVpc. When providing healthCheck, you must specify the port field, and other unspecified items use default values. When providing logging.sls, you must specify both project and logstore.
2922
- * The update is an asynchronous process. A successful response indicates that the request is accepted. You can call the GetCustomAgent operation to query latestSpecVersion, latestVersionStatus, and latestExecutionError, and check the status field to confirm the update result.
3475
+ * 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.
3476
+ * 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.
3477
+ * 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.
3478
+ * 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.
3479
+ * 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.
3480
+ * 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.
2923
3481
  * 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.
2924
3482
  *
2925
3483
  * @param request - UpdateCustomAgentRequest
@@ -2951,7 +3509,49 @@ export default class Client extends OpenApi {
2951
3509
  */
2952
3510
  updateExternalAgent(workspaceId: string, agentId: string, request: $_model.UpdateExternalAgentRequest): Promise<$_model.UpdateExternalAgentResponse>;
2953
3511
  /**
2954
- * Updates the login toggle, member synchronization toggle, or application configuration of a specified external identity provider in 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 progress.
3512
+ * 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.
3513
+ *
3514
+ * @remarks
3515
+ * ## Features and prerequisites
3516
+ * 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.
3517
+ * 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.
3518
+ * 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.
3519
+ * ## Request and examples
3520
+ * PUT /workspaces/{workspaceId}/identity-providers/{identityProviderType}
3521
+ * 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.
3522
+ * ```text
3523
+ * PUT /workspaces/ws-example/identity-providers/CustomSSO
3524
+ * {
3525
+ * "protocol": "SAML",
3526
+ * "saml": {
3527
+ * "entityId": "https://idp.example.com/entity",
3528
+ * "loginUrl": "https://idp.example.com/sso",
3529
+ * "bindingType": "HTTP-Redirect",
3530
+ * "x509Certificates": [
3531
+ * "<Valid PEM X.509 certificate text>"
3532
+ * ],
3533
+ * "jitProvisionEnabled": false,
3534
+ * "jitUpdateEnabled": false
3535
+ * }
3536
+ * }
3537
+ * Toggle logon only: {"loginEnabled": true}
3538
+ * ```
3539
+ * ## Response example
3540
+ * ```json
3541
+ * {
3542
+ * "data": {
3543
+ * "workspaceId": "ws-example",
3544
+ * "identityProviderType": "CustomSSO",
3545
+ * "protocol": "SAML",
3546
+ * "loginEnabled": false,
3547
+ * "syncEnabled": false,
3548
+ * "status": "UPDATING"
3549
+ * }
3550
+ * }
3551
+ * ```
3552
+ * ## Errors and handling
3553
+ * 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.
3554
+ * 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.
2955
3555
  *
2956
3556
  * @param tmpReq - UpdateIdentityProviderRequest
2957
3557
  * @param headers - map
@@ -2962,7 +3562,49 @@ export default class Client extends OpenApi {
2962
3562
  [key: string]: string;
2963
3563
  }, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateIdentityProviderResponse>;
2964
3564
  /**
2965
- * Updates the login toggle, member synchronization toggle, or application configuration of a specified external identity provider in 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 progress.
3565
+ * 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.
3566
+ *
3567
+ * @remarks
3568
+ * ## Features and prerequisites
3569
+ * 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.
3570
+ * 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.
3571
+ * 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.
3572
+ * ## Request and examples
3573
+ * PUT /workspaces/{workspaceId}/identity-providers/{identityProviderType}
3574
+ * 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.
3575
+ * ```text
3576
+ * PUT /workspaces/ws-example/identity-providers/CustomSSO
3577
+ * {
3578
+ * "protocol": "SAML",
3579
+ * "saml": {
3580
+ * "entityId": "https://idp.example.com/entity",
3581
+ * "loginUrl": "https://idp.example.com/sso",
3582
+ * "bindingType": "HTTP-Redirect",
3583
+ * "x509Certificates": [
3584
+ * "<Valid PEM X.509 certificate text>"
3585
+ * ],
3586
+ * "jitProvisionEnabled": false,
3587
+ * "jitUpdateEnabled": false
3588
+ * }
3589
+ * }
3590
+ * Toggle logon only: {"loginEnabled": true}
3591
+ * ```
3592
+ * ## Response example
3593
+ * ```json
3594
+ * {
3595
+ * "data": {
3596
+ * "workspaceId": "ws-example",
3597
+ * "identityProviderType": "CustomSSO",
3598
+ * "protocol": "SAML",
3599
+ * "loginEnabled": false,
3600
+ * "syncEnabled": false,
3601
+ * "status": "UPDATING"
3602
+ * }
3603
+ * }
3604
+ * ```
3605
+ * ## Errors and handling
3606
+ * 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.
3607
+ * 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.
2966
3608
  *
2967
3609
  * @param request - UpdateIdentityProviderRequest
2968
3610
  * @returns UpdateIdentityProviderResponse
@@ -3037,10 +3679,10 @@ export default class Client extends OpenApi {
3037
3679
  */
3038
3680
  updateMcpTemplateConfig(workspaceId: string, mcpServerId: string, request: $_model.UpdateMcpTemplateConfigRequest): Promise<$_model.UpdateMcpTemplateConfigResponse>;
3039
3681
  /**
3040
- * Updates the long-term memory text or metadata based on the memory ID.
3682
+ * Updates the text or metadata of a long-term memory based on the memory ID.
3041
3683
  *
3042
3684
  * @remarks
3043
- * Updates the long-term memory text or metadata based on the memory ID.
3685
+ * Updates the text or metadata of a long-term memory based on the memory ID.
3044
3686
  *
3045
3687
  * @param tmpReq - UpdateMemoryRequest
3046
3688
  * @param headers - map
@@ -3051,10 +3693,10 @@ export default class Client extends OpenApi {
3051
3693
  [key: string]: string;
3052
3694
  }, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateMemoryResponse>;
3053
3695
  /**
3054
- * Updates the long-term memory text or metadata based on the memory ID.
3696
+ * Updates the text or metadata of a long-term memory based on the memory ID.
3055
3697
  *
3056
3698
  * @remarks
3057
- * Updates the long-term memory text or metadata based on the memory ID.
3699
+ * Updates the text or metadata of a long-term memory based on the memory ID.
3058
3700
  *
3059
3701
  * @param request - UpdateMemoryRequest
3060
3702
  * @returns UpdateMemoryResponse
@@ -3320,6 +3962,56 @@ export default class Client extends OpenApi {
3320
3962
  * @returns UploadSkillViaOssResponse
3321
3963
  */
3322
3964
  uploadSkillViaOss(workspaceId: string, request: $_model.UploadSkillViaOssRequest): Promise<$_model.UploadSkillViaOssResponse>;
3965
+ /**
3966
+ * Validates the OSS code package source for an agent.
3967
+ *
3968
+ * @remarks
3969
+ * 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.
3970
+ * 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.
3971
+ *
3972
+ * @param tmpReq - ValidateAgentCodePackageFromOssRequest
3973
+ * @param headers - map
3974
+ * @param runtime - runtime options for this request RuntimeOptions
3975
+ * @returns ValidateAgentCodePackageFromOssResponse
3976
+ */
3977
+ validateAgentCodePackageFromOssWithOptions(workspaceId: string, tmpReq: $_model.ValidateAgentCodePackageFromOssRequest, headers: {
3978
+ [key: string]: string;
3979
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.ValidateAgentCodePackageFromOssResponse>;
3980
+ /**
3981
+ * Validates the OSS code package source for an agent.
3982
+ *
3983
+ * @remarks
3984
+ * 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.
3985
+ * 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.
3986
+ *
3987
+ * @param request - ValidateAgentCodePackageFromOssRequest
3988
+ * @returns ValidateAgentCodePackageFromOssResponse
3989
+ */
3990
+ validateAgentCodePackageFromOss(workspaceId: string, request: $_model.ValidateAgentCodePackageFromOssRequest): Promise<$_model.ValidateAgentCodePackageFromOssResponse>;
3991
+ /**
3992
+ * 检查智能体代码包 OSS RAM 授权状态
3993
+ *
3994
+ * @remarks
3995
+ * 检查当前 Workspace 角色是否绑定所选源 Bucket 对应的自定义 RAM 策略,复用已有挂载授权。仅返回策略绑定状态,不验证代码包存在或可读、不修改默认桶。授权状态不能替代 ValidateAgentCodePackageFromOss 的实际对象读取校验。
3996
+ *
3997
+ * @param request - VerifyAgentCodePackageOssRamAuthorizationRequest
3998
+ * @param headers - map
3999
+ * @param runtime - runtime options for this request RuntimeOptions
4000
+ * @returns VerifyAgentCodePackageOssRamAuthorizationResponse
4001
+ */
4002
+ verifyAgentCodePackageOssRamAuthorizationWithOptions(workspaceId: string, request: $_model.VerifyAgentCodePackageOssRamAuthorizationRequest, headers: {
4003
+ [key: string]: string;
4004
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.VerifyAgentCodePackageOssRamAuthorizationResponse>;
4005
+ /**
4006
+ * 检查智能体代码包 OSS RAM 授权状态
4007
+ *
4008
+ * @remarks
4009
+ * 检查当前 Workspace 角色是否绑定所选源 Bucket 对应的自定义 RAM 策略,复用已有挂载授权。仅返回策略绑定状态,不验证代码包存在或可读、不修改默认桶。授权状态不能替代 ValidateAgentCodePackageFromOss 的实际对象读取校验。
4010
+ *
4011
+ * @param request - VerifyAgentCodePackageOssRamAuthorizationRequest
4012
+ * @returns VerifyAgentCodePackageOssRamAuthorizationResponse
4013
+ */
4014
+ verifyAgentCodePackageOssRamAuthorization(workspaceId: string, request: $_model.VerifyAgentCodePackageOssRamAuthorizationRequest): Promise<$_model.VerifyAgentCodePackageOssRamAuthorizationResponse>;
3323
4015
  /**
3324
4016
  * 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.
3325
4017
  *