@alicloud/agentcore20260804 2.4.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 (317) hide show
  1. package/dist/client.d.ts +888 -76
  2. package/dist/client.js +1323 -81
  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 +74 -44
  8. package/dist/models/CreateCustomAgentRequest.js +27 -1
  9. package/dist/models/CreateCustomAgentRequest.js.map +1 -1
  10. package/dist/models/CreateCustomAgentResponseBody.d.ts +254 -45
  11. package/dist/models/CreateCustomAgentResponseBody.js +91 -1
  12. package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
  13. package/dist/models/CreateCustomAgentShrinkRequest.d.ts +1 -1
  14. package/dist/models/CreateIdentityProviderRequest.d.ts +50 -9
  15. package/dist/models/CreateIdentityProviderRequest.js +32 -1
  16. package/dist/models/CreateIdentityProviderRequest.js.map +1 -1
  17. package/dist/models/CreateIdentityProviderResponseBody.d.ts +183 -9
  18. package/dist/models/CreateIdentityProviderResponseBody.js +103 -1
  19. package/dist/models/CreateIdentityProviderResponseBody.js.map +1 -1
  20. package/dist/models/CreateIdentityProviderShrinkRequest.d.ts +1 -1
  21. package/dist/models/CreateIdentityProviderSyncJobRequest.d.ts +13 -0
  22. package/dist/models/CreateIdentityProviderSyncJobRequest.js +54 -0
  23. package/dist/models/CreateIdentityProviderSyncJobRequest.js.map +1 -0
  24. package/dist/models/CreateIdentityProviderSyncJobResponse.d.ts +19 -0
  25. package/dist/models/CreateIdentityProviderSyncJobResponse.js +69 -0
  26. package/dist/models/CreateIdentityProviderSyncJobResponse.js.map +1 -0
  27. package/dist/models/CreateIdentityProviderSyncJobResponseBody.d.ts +121 -0
  28. package/dist/models/CreateIdentityProviderSyncJobResponseBody.js +100 -0
  29. package/dist/models/CreateIdentityProviderSyncJobResponseBody.js.map +1 -0
  30. package/dist/models/CreateImageCacheRequest.d.ts +122 -0
  31. package/dist/models/CreateImageCacheRequest.js +96 -0
  32. package/dist/models/CreateImageCacheRequest.js.map +1 -0
  33. package/dist/models/CreateImageCacheResponse.d.ts +19 -0
  34. package/dist/models/CreateImageCacheResponse.js +69 -0
  35. package/dist/models/CreateImageCacheResponse.js.map +1 -0
  36. package/dist/models/CreateImageCacheResponseBody.d.ts +260 -0
  37. package/dist/models/CreateImageCacheResponseBody.js +140 -0
  38. package/dist/models/CreateImageCacheResponseBody.js.map +1 -0
  39. package/dist/models/CreateImageCacheShrinkRequest.d.ts +50 -0
  40. package/dist/models/CreateImageCacheShrinkRequest.js +64 -0
  41. package/dist/models/CreateImageCacheShrinkRequest.js.map +1 -0
  42. package/dist/models/CreateMemoryStoreRequest.d.ts +6 -6
  43. package/dist/models/CreateMemoryStoreResponseBody.d.ts +7 -7
  44. package/dist/models/CreateMemoryStoreShrinkRequest.d.ts +2 -2
  45. package/dist/models/DeleteIdentityProviderResponseBody.d.ts +144 -19
  46. package/dist/models/DeleteIdentityProviderResponseBody.js +74 -1
  47. package/dist/models/DeleteIdentityProviderResponseBody.js.map +1 -1
  48. package/dist/models/DeleteImageCacheRequest.d.ts +33 -0
  49. package/dist/models/DeleteImageCacheRequest.js +60 -0
  50. package/dist/models/DeleteImageCacheRequest.js.map +1 -0
  51. package/dist/models/DeleteImageCacheResponse.d.ts +19 -0
  52. package/dist/models/DeleteImageCacheResponse.js +69 -0
  53. package/dist/models/DeleteImageCacheResponse.js.map +1 -0
  54. package/dist/models/DeleteImageCacheResponseBody.d.ts +102 -0
  55. package/dist/models/DeleteImageCacheResponseBody.js +92 -0
  56. package/dist/models/DeleteImageCacheResponseBody.js.map +1 -0
  57. package/dist/models/DeleteMemoryStoreResponseBody.d.ts +3 -3
  58. package/dist/models/GetAgentCodePackageDownloadUrlRequest.d.ts +13 -0
  59. package/dist/models/GetAgentCodePackageDownloadUrlRequest.js +54 -0
  60. package/dist/models/GetAgentCodePackageDownloadUrlRequest.js.map +1 -0
  61. package/dist/models/GetAgentCodePackageDownloadUrlResponse.d.ts +19 -0
  62. package/dist/models/GetAgentCodePackageDownloadUrlResponse.js +69 -0
  63. package/dist/models/GetAgentCodePackageDownloadUrlResponse.js.map +1 -0
  64. package/dist/models/GetAgentCodePackageDownloadUrlResponseBody.d.ts +131 -0
  65. package/dist/models/GetAgentCodePackageDownloadUrlResponseBody.js +104 -0
  66. package/dist/models/GetAgentCodePackageDownloadUrlResponseBody.js.map +1 -0
  67. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlRequest.d.ts +23 -0
  68. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlRequest.js +58 -0
  69. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlRequest.js.map +1 -0
  70. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponse.d.ts +19 -0
  71. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponse.js +69 -0
  72. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponse.js.map +1 -0
  73. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponseBody.d.ts +99 -0
  74. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponseBody.js +96 -0
  75. package/dist/models/GetAgentCodePackageOssRamAuthorizeUrlResponseBody.js.map +1 -0
  76. package/dist/models/GetAgentCodePackageUploadUrlRequest.d.ts +62 -0
  77. package/dist/models/GetAgentCodePackageUploadUrlRequest.js +84 -0
  78. package/dist/models/GetAgentCodePackageUploadUrlRequest.js.map +1 -0
  79. package/dist/models/GetAgentCodePackageUploadUrlResponse.d.ts +19 -0
  80. package/dist/models/GetAgentCodePackageUploadUrlResponse.js +69 -0
  81. package/dist/models/GetAgentCodePackageUploadUrlResponse.js.map +1 -0
  82. package/dist/models/GetAgentCodePackageUploadUrlResponseBody.d.ts +114 -0
  83. package/dist/models/GetAgentCodePackageUploadUrlResponseBody.js +103 -0
  84. package/dist/models/GetAgentCodePackageUploadUrlResponseBody.js.map +1 -0
  85. package/dist/models/GetAgentCodePackageUploadUrlShrinkRequest.d.ts +20 -0
  86. package/dist/models/GetAgentCodePackageUploadUrlShrinkRequest.js +58 -0
  87. package/dist/models/GetAgentCodePackageUploadUrlShrinkRequest.js.map +1 -0
  88. package/dist/models/GetCustomAgentResponseBody.d.ts +192 -71
  89. package/dist/models/GetCustomAgentResponseBody.js +63 -1
  90. package/dist/models/GetCustomAgentResponseBody.js.map +1 -1
  91. package/dist/models/GetIdentityProviderResponseBody.d.ts +217 -11
  92. package/dist/models/GetIdentityProviderResponseBody.js +111 -1
  93. package/dist/models/GetIdentityProviderResponseBody.js.map +1 -1
  94. package/dist/models/GetIdentityProviderSyncJobRequest.d.ts +13 -0
  95. package/dist/models/GetIdentityProviderSyncJobRequest.js +54 -0
  96. package/dist/models/GetIdentityProviderSyncJobRequest.js.map +1 -0
  97. package/dist/models/GetIdentityProviderSyncJobResponse.d.ts +19 -0
  98. package/dist/models/GetIdentityProviderSyncJobResponse.js +69 -0
  99. package/dist/models/GetIdentityProviderSyncJobResponse.js.map +1 -0
  100. package/dist/models/GetIdentityProviderSyncJobResponseBody.d.ts +128 -0
  101. package/dist/models/GetIdentityProviderSyncJobResponseBody.js +100 -0
  102. package/dist/models/GetIdentityProviderSyncJobResponseBody.js.map +1 -0
  103. package/dist/models/GetIdentityProviderSyncScopeRequest.d.ts +13 -0
  104. package/dist/models/GetIdentityProviderSyncScopeRequest.js +54 -0
  105. package/dist/models/GetIdentityProviderSyncScopeRequest.js.map +1 -0
  106. package/dist/models/GetIdentityProviderSyncScopeResponse.d.ts +19 -0
  107. package/dist/models/GetIdentityProviderSyncScopeResponse.js +69 -0
  108. package/dist/models/GetIdentityProviderSyncScopeResponse.js.map +1 -0
  109. package/dist/models/GetIdentityProviderSyncScopeResponseBody.d.ts +177 -0
  110. package/dist/models/GetIdentityProviderSyncScopeResponseBody.js +151 -0
  111. package/dist/models/GetIdentityProviderSyncScopeResponseBody.js.map +1 -0
  112. package/dist/models/GetImageCacheRequest.d.ts +33 -0
  113. package/dist/models/GetImageCacheRequest.js +60 -0
  114. package/dist/models/GetImageCacheRequest.js.map +1 -0
  115. package/dist/models/GetImageCacheResponse.d.ts +19 -0
  116. package/dist/models/GetImageCacheResponse.js +69 -0
  117. package/dist/models/GetImageCacheResponse.js.map +1 -0
  118. package/dist/models/GetImageCacheResponseBody.d.ts +264 -0
  119. package/dist/models/GetImageCacheResponseBody.js +140 -0
  120. package/dist/models/GetImageCacheResponseBody.js.map +1 -0
  121. package/dist/models/GetMemoryResponseBody.d.ts +4 -4
  122. package/dist/models/GetMemoryStoreResponseBody.d.ts +3 -3
  123. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlRequest.d.ts +2 -2
  124. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.d.ts +23 -1
  125. package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.js.map +1 -1
  126. package/dist/models/ListAgentCodeRuntimesRequest.d.ts +29 -0
  127. package/dist/models/ListAgentCodeRuntimesRequest.js +60 -0
  128. package/dist/models/ListAgentCodeRuntimesRequest.js.map +1 -0
  129. package/dist/models/ListAgentCodeRuntimesResponse.d.ts +19 -0
  130. package/dist/models/ListAgentCodeRuntimesResponse.js +69 -0
  131. package/dist/models/ListAgentCodeRuntimesResponse.js.map +1 -0
  132. package/dist/models/ListAgentCodeRuntimesResponseBody.d.ts +115 -0
  133. package/dist/models/ListAgentCodeRuntimesResponseBody.js +100 -0
  134. package/dist/models/ListAgentCodeRuntimesResponseBody.js.map +1 -0
  135. package/dist/models/ListCustomAgentsRequest.d.ts +2 -2
  136. package/dist/models/ListCustomAgentsResponseBody.d.ts +221 -25
  137. package/dist/models/ListCustomAgentsResponseBody.js +119 -1
  138. package/dist/models/ListCustomAgentsResponseBody.js.map +1 -1
  139. package/dist/models/ListIdentityProviderDepartmentsRequest.d.ts +37 -0
  140. package/dist/models/ListIdentityProviderDepartmentsRequest.js +62 -0
  141. package/dist/models/ListIdentityProviderDepartmentsRequest.js.map +1 -0
  142. package/dist/models/ListIdentityProviderDepartmentsResponse.d.ts +19 -0
  143. package/dist/models/ListIdentityProviderDepartmentsResponse.js +69 -0
  144. package/dist/models/ListIdentityProviderDepartmentsResponse.js.map +1 -0
  145. package/dist/models/ListIdentityProviderDepartmentsResponseBody.d.ts +137 -0
  146. package/dist/models/ListIdentityProviderDepartmentsResponseBody.js +104 -0
  147. package/dist/models/ListIdentityProviderDepartmentsResponseBody.js.map +1 -0
  148. package/dist/models/ListIdentityProvidersRequest.d.ts +2 -2
  149. package/dist/models/ListIdentityProvidersResponseBody.d.ts +226 -20
  150. package/dist/models/ListIdentityProvidersResponseBody.js +111 -1
  151. package/dist/models/ListIdentityProvidersResponseBody.js.map +1 -1
  152. package/dist/models/ListImageCachesRequest.d.ts +113 -0
  153. package/dist/models/ListImageCachesRequest.js +80 -0
  154. package/dist/models/ListImageCachesRequest.js.map +1 -0
  155. package/dist/models/ListImageCachesResponse.d.ts +19 -0
  156. package/dist/models/ListImageCachesResponse.js +69 -0
  157. package/dist/models/ListImageCachesResponse.js.map +1 -0
  158. package/dist/models/ListImageCachesResponseBody.d.ts +290 -0
  159. package/dist/models/ListImageCachesResponseBody.js +146 -0
  160. package/dist/models/ListImageCachesResponseBody.js.map +1 -0
  161. package/dist/models/ListMemoriesResponseBody.d.ts +1 -1
  162. package/dist/models/ListMemorySessionMessagesRequest.d.ts +3 -3
  163. package/dist/models/ListMemorySessionsRequest.d.ts +2 -2
  164. package/dist/models/ListMemorySessionsResponseBody.d.ts +1 -1
  165. package/dist/models/ListMemoryStoresResponseBody.d.ts +2 -2
  166. package/dist/models/RetryImageCacheRequest.d.ts +60 -0
  167. package/dist/models/RetryImageCacheRequest.js +82 -0
  168. package/dist/models/RetryImageCacheRequest.js.map +1 -0
  169. package/dist/models/RetryImageCacheResponse.d.ts +19 -0
  170. package/dist/models/RetryImageCacheResponse.js +69 -0
  171. package/dist/models/RetryImageCacheResponse.js.map +1 -0
  172. package/dist/models/RetryImageCacheResponseBody.d.ts +264 -0
  173. package/dist/models/RetryImageCacheResponseBody.js +140 -0
  174. package/dist/models/RetryImageCacheResponseBody.js.map +1 -0
  175. package/dist/models/RetryImageCacheShrinkRequest.d.ts +48 -0
  176. package/dist/models/RetryImageCacheShrinkRequest.js +64 -0
  177. package/dist/models/RetryImageCacheShrinkRequest.js.map +1 -0
  178. package/dist/models/SearchMemoriesRequest.d.ts +3 -3
  179. package/dist/models/SearchMemoriesResponseBody.d.ts +3 -3
  180. package/dist/models/UpdateCustomAgentRequest.d.ts +87 -54
  181. package/dist/models/UpdateCustomAgentRequest.js +27 -1
  182. package/dist/models/UpdateCustomAgentRequest.js.map +1 -1
  183. package/dist/models/UpdateCustomAgentResponseBody.d.ts +243 -61
  184. package/dist/models/UpdateCustomAgentResponseBody.js +91 -1
  185. package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -1
  186. package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +2 -2
  187. package/dist/models/UpdateIdentityProviderRequest.d.ts +128 -8
  188. package/dist/models/UpdateIdentityProviderRequest.js +71 -1
  189. package/dist/models/UpdateIdentityProviderRequest.js.map +1 -1
  190. package/dist/models/UpdateIdentityProviderResponseBody.d.ts +181 -16
  191. package/dist/models/UpdateIdentityProviderResponseBody.js +103 -1
  192. package/dist/models/UpdateIdentityProviderResponseBody.js.map +1 -1
  193. package/dist/models/UpdateIdentityProviderShrinkRequest.d.ts +1 -1
  194. package/dist/models/UpdateMemoryRequest.d.ts +3 -3
  195. package/dist/models/UpdateMemoryShrinkRequest.d.ts +1 -1
  196. package/dist/models/UpdateMemoryStoreRequest.d.ts +2 -2
  197. package/dist/models/UpdateMemoryStoreResponseBody.d.ts +1 -1
  198. package/dist/models/ValidateAgentCodePackageFromOssRequest.d.ts +52 -0
  199. package/dist/models/ValidateAgentCodePackageFromOssRequest.js +82 -0
  200. package/dist/models/ValidateAgentCodePackageFromOssRequest.js.map +1 -0
  201. package/dist/models/ValidateAgentCodePackageFromOssResponse.d.ts +19 -0
  202. package/dist/models/ValidateAgentCodePackageFromOssResponse.js +69 -0
  203. package/dist/models/ValidateAgentCodePackageFromOssResponse.js.map +1 -0
  204. package/dist/models/ValidateAgentCodePackageFromOssResponseBody.d.ts +99 -0
  205. package/dist/models/ValidateAgentCodePackageFromOssResponseBody.js +96 -0
  206. package/dist/models/ValidateAgentCodePackageFromOssResponseBody.js.map +1 -0
  207. package/dist/models/ValidateAgentCodePackageFromOssShrinkRequest.d.ts +20 -0
  208. package/dist/models/ValidateAgentCodePackageFromOssShrinkRequest.js +58 -0
  209. package/dist/models/ValidateAgentCodePackageFromOssShrinkRequest.js.map +1 -0
  210. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationRequest.d.ts +23 -0
  211. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationRequest.js +58 -0
  212. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationRequest.js.map +1 -0
  213. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponse.d.ts +19 -0
  214. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponse.js +69 -0
  215. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponse.js.map +1 -0
  216. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponseBody.d.ts +73 -0
  217. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponseBody.js +96 -0
  218. package/dist/models/VerifyAgentCodePackageOssRamAuthorizationResponseBody.js.map +1 -0
  219. package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.d.ts +33 -3
  220. package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.js.map +1 -1
  221. package/dist/models/model.d.ts +105 -0
  222. package/dist/models/model.js +341 -129
  223. package/dist/models/model.js.map +1 -1
  224. package/package.json +1 -1
  225. package/src/client.ts +1393 -84
  226. package/src/models/AddMemoriesRequest.ts +10 -10
  227. package/src/models/AddMemoriesResponseBody.ts +4 -4
  228. package/src/models/AddMemoriesShrinkRequest.ts +1 -1
  229. package/src/models/CreateCustomAgentRequest.ts +91 -44
  230. package/src/models/CreateCustomAgentResponseBody.ts +317 -45
  231. package/src/models/CreateCustomAgentShrinkRequest.ts +1 -1
  232. package/src/models/CreateIdentityProviderRequest.ts +72 -9
  233. package/src/models/CreateIdentityProviderResponseBody.ts +258 -9
  234. package/src/models/CreateIdentityProviderShrinkRequest.ts +1 -1
  235. package/src/models/CreateIdentityProviderSyncJobRequest.ts +24 -0
  236. package/src/models/CreateIdentityProviderSyncJobResponse.ts +40 -0
  237. package/src/models/CreateIdentityProviderSyncJobResponseBody.ts +167 -0
  238. package/src/models/CreateImageCacheRequest.ts +164 -0
  239. package/src/models/CreateImageCacheResponse.ts +40 -0
  240. package/src/models/CreateImageCacheResponseBody.ts +337 -0
  241. package/src/models/CreateImageCacheShrinkRequest.ts +69 -0
  242. package/src/models/CreateMemoryStoreRequest.ts +6 -6
  243. package/src/models/CreateMemoryStoreResponseBody.ts +7 -7
  244. package/src/models/CreateMemoryStoreShrinkRequest.ts +2 -2
  245. package/src/models/DeleteIdentityProviderResponseBody.ts +199 -19
  246. package/src/models/DeleteImageCacheRequest.ts +48 -0
  247. package/src/models/DeleteImageCacheResponse.ts +40 -0
  248. package/src/models/DeleteImageCacheResponseBody.ts +140 -0
  249. package/src/models/DeleteMemoryStoreResponseBody.ts +3 -3
  250. package/src/models/GetAgentCodePackageDownloadUrlRequest.ts +24 -0
  251. package/src/models/GetAgentCodePackageDownloadUrlResponse.ts +40 -0
  252. package/src/models/GetAgentCodePackageDownloadUrlResponseBody.ts +181 -0
  253. package/src/models/GetAgentCodePackageOssRamAuthorizeUrlRequest.ts +36 -0
  254. package/src/models/GetAgentCodePackageOssRamAuthorizeUrlResponse.ts +40 -0
  255. package/src/models/GetAgentCodePackageOssRamAuthorizeUrlResponseBody.ts +141 -0
  256. package/src/models/GetAgentCodePackageUploadUrlRequest.ts +92 -0
  257. package/src/models/GetAgentCodePackageUploadUrlResponse.ts +40 -0
  258. package/src/models/GetAgentCodePackageUploadUrlResponseBody.ts +161 -0
  259. package/src/models/GetAgentCodePackageUploadUrlShrinkRequest.ts +33 -0
  260. package/src/models/GetCustomAgentResponseBody.ts +236 -71
  261. package/src/models/GetIdentityProviderResponseBody.ts +300 -11
  262. package/src/models/GetIdentityProviderSyncJobRequest.ts +24 -0
  263. package/src/models/GetIdentityProviderSyncJobResponse.ts +40 -0
  264. package/src/models/GetIdentityProviderSyncJobResponseBody.ts +174 -0
  265. package/src/models/GetIdentityProviderSyncScopeRequest.ts +24 -0
  266. package/src/models/GetIdentityProviderSyncScopeResponse.ts +40 -0
  267. package/src/models/GetIdentityProviderSyncScopeResponseBody.ts +256 -0
  268. package/src/models/GetImageCacheRequest.ts +48 -0
  269. package/src/models/GetImageCacheResponse.ts +40 -0
  270. package/src/models/GetImageCacheResponseBody.ts +341 -0
  271. package/src/models/GetMemoryResponseBody.ts +4 -4
  272. package/src/models/GetMemoryStoreResponseBody.ts +3 -3
  273. package/src/models/GetWorkspaceAcrRamAuthorizeUrlRequest.ts +2 -2
  274. package/src/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.ts +23 -1
  275. package/src/models/ListAgentCodeRuntimesRequest.ts +44 -0
  276. package/src/models/ListAgentCodeRuntimesResponse.ts +40 -0
  277. package/src/models/ListAgentCodeRuntimesResponseBody.ts +161 -0
  278. package/src/models/ListCustomAgentsRequest.ts +2 -2
  279. package/src/models/ListCustomAgentsResponseBody.ts +303 -25
  280. package/src/models/ListIdentityProviderDepartmentsRequest.ts +54 -0
  281. package/src/models/ListIdentityProviderDepartmentsResponse.ts +40 -0
  282. package/src/models/ListIdentityProviderDepartmentsResponseBody.ts +187 -0
  283. package/src/models/ListIdentityProvidersRequest.ts +2 -2
  284. package/src/models/ListIdentityProvidersResponseBody.ts +309 -20
  285. package/src/models/ListImageCachesRequest.ts +148 -0
  286. package/src/models/ListImageCachesResponse.ts +40 -0
  287. package/src/models/ListImageCachesResponseBody.ts +373 -0
  288. package/src/models/ListMemoriesResponseBody.ts +1 -1
  289. package/src/models/ListMemorySessionMessagesRequest.ts +3 -3
  290. package/src/models/ListMemorySessionsRequest.ts +2 -2
  291. package/src/models/ListMemorySessionsResponseBody.ts +1 -1
  292. package/src/models/ListMemoryStoresResponseBody.ts +2 -2
  293. package/src/models/RetryImageCacheRequest.ts +90 -0
  294. package/src/models/RetryImageCacheResponse.ts +40 -0
  295. package/src/models/RetryImageCacheResponseBody.ts +341 -0
  296. package/src/models/RetryImageCacheShrinkRequest.ts +67 -0
  297. package/src/models/SearchMemoriesRequest.ts +3 -3
  298. package/src/models/SearchMemoriesResponseBody.ts +3 -3
  299. package/src/models/UpdateCustomAgentRequest.ts +104 -54
  300. package/src/models/UpdateCustomAgentResponseBody.ts +306 -61
  301. package/src/models/UpdateCustomAgentShrinkRequest.ts +2 -2
  302. package/src/models/UpdateIdentityProviderRequest.ts +180 -8
  303. package/src/models/UpdateIdentityProviderResponseBody.ts +256 -16
  304. package/src/models/UpdateIdentityProviderShrinkRequest.ts +1 -1
  305. package/src/models/UpdateMemoryRequest.ts +3 -3
  306. package/src/models/UpdateMemoryShrinkRequest.ts +1 -1
  307. package/src/models/UpdateMemoryStoreRequest.ts +2 -2
  308. package/src/models/UpdateMemoryStoreResponseBody.ts +1 -1
  309. package/src/models/ValidateAgentCodePackageFromOssRequest.ts +80 -0
  310. package/src/models/ValidateAgentCodePackageFromOssResponse.ts +40 -0
  311. package/src/models/ValidateAgentCodePackageFromOssResponseBody.ts +141 -0
  312. package/src/models/ValidateAgentCodePackageFromOssShrinkRequest.ts +33 -0
  313. package/src/models/VerifyAgentCodePackageOssRamAuthorizationRequest.ts +36 -0
  314. package/src/models/VerifyAgentCodePackageOssRamAuthorizationResponse.ts +40 -0
  315. package/src/models/VerifyAgentCodePackageOssRamAuthorizationResponseBody.ts +115 -0
  316. package/src/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.ts +33 -3
  317. package/src/models/model.ts +105 -0
package/dist/client.js CHANGED
@@ -62,10 +62,10 @@ class Client extends openapi_core_1.default {
62
62
  return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
63
63
  }
64
64
  /**
65
- * Writes messages or text to a memory store. By default, sync is set to true, which synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId that can be queried by using GetMemoryTask.
65
+ * Writes messages or text to a memory store. By default, sync is set to true, which means the operation synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId, which you can query by calling GetMemoryTask.
66
66
  *
67
67
  * @remarks
68
- * Writes messages or text to a memory store. By default, sync is set to true, which synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId that can be queried by using GetMemoryTask.
68
+ * Writes messages or text to a memory store. By default, sync is set to true, which means the operation synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId, which you can query by calling GetMemoryTask.
69
69
  *
70
70
  * @param tmpReq - AddMemoriesRequest
71
71
  * @param headers - map
@@ -101,10 +101,10 @@ class Client extends openapi_core_1.default {
101
101
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddMemoriesResponse({}));
102
102
  }
103
103
  /**
104
- * Writes messages or text to a memory store. By default, sync is set to true, which synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId that can be queried by using GetMemoryTask.
104
+ * Writes messages or text to a memory store. By default, sync is set to true, which means the operation synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId, which you can query by calling GetMemoryTask.
105
105
  *
106
106
  * @remarks
107
- * Writes messages or text to a memory store. By default, sync is set to true, which synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId that can be queried by using GetMemoryTask.
107
+ * Writes messages or text to a memory store. By default, sync is set to true, which means the operation synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId, which you can query by calling GetMemoryTask.
108
108
  *
109
109
  * @param request - AddMemoriesRequest
110
110
  * @returns AddMemoriesResponse
@@ -496,13 +496,15 @@ class Client extends openapi_core_1.default {
496
496
  return await this.createCredentialWithOptions(workspaceId, request, headers, runtime);
497
497
  }
498
498
  /**
499
- * Creates a custom agent in a specified workspace and submits a container image deployment configuration. The creation is an asynchronous process. You can call GetCustomAgent to query the deployment result.
499
+ * Creates a custom agent in a specified workspace. Container image and code package deployments are supported. The creation process is asynchronous. You can call GetCustomAgent to query the deployment result.
500
500
  *
501
501
  * @remarks
502
- * Before you call this operation, prepare a writable workspace, a RAM role ARN, 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.
503
- * 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.
504
- * 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 the access endpoint.
505
- * The clientToken parameter does not currently provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not take effect. Omit this parameter.
502
+ * Before you call this operation, prepare a writable workspace, a RAM role ARN, a container image or code package, and runtime configurations. You must specify name, artifact, roleArn, and runtime. The runtime parameter must include both compute and sessionPolicy.
503
+ * In container mode, use artifact.container and specify artifact.port. The image must have the required access permissions and be accessible over the network allowed by the workspace.
504
+ * In code package pattern, specify artifact.port, and the sourceUri, languageRuntime, and entrypoint of artifact.code. Do not specify container at the same time. Dependencies must be packaged by the user. ZIP and TAR.GZ formats are supported. The compressed package size cannot exceed 500,000,000 bytes. You can call ListAgentCodeRuntimes to query the runtime environment identity. The sourceUri parameter supports oss:// addresses or HTTPS object addresses of standard OSS public domain names, including signed URLs. For local files, call GetAgentCodePackageUploadUrl to obtain an upload URL, upload the file directly, and then commit the returned sourceUri.
505
+ * When you submit a new code package source, the backend rechecks the read permissions, object, and size. The configuration is saved only after the transfer succeeds. If the transfer fails, the configuration is not saved. Saved fixed packages can be reused. Set the client timeout to 210 seconds for code package requests. Archive integrity and secure decompression are checked at startup. A successful acceptance does not mean that the agent is ready to run.
506
+ * The creation process is asynchronous. A successful response indicates that the request is accepted. You can use the returned agentId to call GetCustomAgent and check the latestVersionStatus, latestExecutionError, and status corresponding to latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure the access endpoint.
507
+ * The clientToken parameter does not provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not take effect. Omit this parameter.
506
508
  *
507
509
  * @param tmpReq - CreateCustomAgentRequest
508
510
  * @param headers - map
@@ -543,13 +545,15 @@ class Client extends openapi_core_1.default {
543
545
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateCustomAgentResponse({}));
544
546
  }
545
547
  /**
546
- * Creates a custom agent in a specified workspace and submits a container image deployment configuration. The creation is an asynchronous process. You can call GetCustomAgent to query the deployment result.
548
+ * Creates a custom agent in a specified workspace. Container image and code package deployments are supported. The creation process is asynchronous. You can call GetCustomAgent to query the deployment result.
547
549
  *
548
550
  * @remarks
549
- * Before you call this operation, prepare a writable workspace, a RAM role ARN, 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.
550
- * 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.
551
- * 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 the access endpoint.
552
- * The clientToken parameter does not currently provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not take effect. Omit this parameter.
551
+ * Before you call this operation, prepare a writable workspace, a RAM role ARN, a container image or code package, and runtime configurations. You must specify name, artifact, roleArn, and runtime. The runtime parameter must include both compute and sessionPolicy.
552
+ * In container mode, use artifact.container and specify artifact.port. The image must have the required access permissions and be accessible over the network allowed by the workspace.
553
+ * In code package pattern, specify artifact.port, and the sourceUri, languageRuntime, and entrypoint of artifact.code. Do not specify container at the same time. Dependencies must be packaged by the user. ZIP and TAR.GZ formats are supported. The compressed package size cannot exceed 500,000,000 bytes. You can call ListAgentCodeRuntimes to query the runtime environment identity. The sourceUri parameter supports oss:// addresses or HTTPS object addresses of standard OSS public domain names, including signed URLs. For local files, call GetAgentCodePackageUploadUrl to obtain an upload URL, upload the file directly, and then commit the returned sourceUri.
554
+ * When you submit a new code package source, the backend rechecks the read permissions, object, and size. The configuration is saved only after the transfer succeeds. If the transfer fails, the configuration is not saved. Saved fixed packages can be reused. Set the client timeout to 210 seconds for code package requests. Archive integrity and secure decompression are checked at startup. A successful acceptance does not mean that the agent is ready to run.
555
+ * The creation process is asynchronous. A successful response indicates that the request is accepted. You can use the returned agentId to call GetCustomAgent and check the latestVersionStatus, latestExecutionError, and status corresponding to latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure the access endpoint.
556
+ * The clientToken parameter does not provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not take effect. Omit this parameter.
553
557
  *
554
558
  * @param request - CreateCustomAgentRequest
555
559
  * @returns CreateCustomAgentResponse
@@ -666,7 +670,34 @@ class Client extends openapi_core_1.default {
666
670
  return await this.createExternalAgentBootstrapTokenWithOptions(workspaceId, agentId, request, headers, runtime);
667
671
  }
668
672
  /**
669
- * Binds an external identity provider to a specified workspace 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.
673
+ * Binds an external identity provider to a specified workspace for single sign-on and organization member synchronization of workspace users. You can bind up to one external identity provider to each workspace. The binding is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
674
+ *
675
+ * @remarks
676
+ * ## Features and prerequisites
677
+ * A workspace can be bound to only one external identity provider. The identityProviderType parameter supports DingTalk, Feishu, and CustomSSO. CustomSSO only initializes the shared user pool. Do not pass non-empty metadata, and do not pass true for loginEnabled or syncEnabled. By default, both switches are turned off. Protocols and SAML configurations are saved by calling UpdateIdentityProvider. SCIM is configured through a separate API. You do not need to save SAML first. After the request is accepted and CONFIGURED is returned, call GetIdentityProvider and wait for the user pool initialization to complete. READY only indicates that the resource is ready, not that SAML is configured. If the same CustomSSO binding is in the CONFIGURED or READY state, the existing binding can be returned. You cannot treat all states as repeatable creations.
678
+ * For DingTalk, the metadata parameter requires appKey, appSecret, and corpId. For Feishu, appId and appSecret are required. The vendor logon switch is enabled by default, and the synchronization switch is disabled by default. When synchronization is enabled, encryptKey and verificationToken are also required. The vendor syncOnBind and syncScope parameters retain the existing department-based synchronization definitions. Do not use these vendor pull parameters to replace SCIM configurations during CustomSSO initialization.
679
+ * ## Requests and examples
680
+ * POST /workspaces/{workspaceId}/identity-providers
681
+ * Call conventions: Call the API based on the region of the target workspace. Use an AccessKey pair or STS token that has permissions on the identity provider resources of the corresponding workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example represents the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example only shows the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not record keys. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
682
+ * ```text
683
+ * POST /workspaces/ws-example/identity-providers
684
+ * {"identityProviderType": "CustomSSO"}
685
+ * ```
686
+ * ## Response example
687
+ * ```json
688
+ * {
689
+ * "data": {
690
+ * "workspaceId": "ws-example",
691
+ * "identityProviderType": "CustomSSO",
692
+ * "loginEnabled": false,
693
+ * "syncEnabled": false,
694
+ * "status": "CONFIGURED"
695
+ * }
696
+ * }
697
+ * ```
698
+ * ## Errors and handling
699
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. A synchronous call to the upstream service may return 503 IdentityProviderProvisioningUnavailable if it fails. Keep the request ID for troubleshooting and do not interpret a read failure as unconfigured. Actual authentication and workspace non-existence errors follow the common error handling.
700
+ * 409 IdentityProviderAlreadyBound: An external binding already exists. Query and reuse the correct binding first. Do not automatically unbind the entire binding. Asynchronous initialization failure does not equal HTTP request failure. You must continue to query the status.
670
701
  *
671
702
  * @param tmpReq - CreateIdentityProviderRequest
672
703
  * @param headers - map
@@ -702,7 +733,34 @@ class Client extends openapi_core_1.default {
702
733
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateIdentityProviderResponse({}));
703
734
  }
704
735
  /**
705
- * Binds an external identity provider to a specified workspace 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.
736
+ * Binds an external identity provider to a specified workspace for single sign-on and organization member synchronization of workspace users. You can bind up to one external identity provider to each workspace. The binding is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
737
+ *
738
+ * @remarks
739
+ * ## Features and prerequisites
740
+ * A workspace can be bound to only one external identity provider. The identityProviderType parameter supports DingTalk, Feishu, and CustomSSO. CustomSSO only initializes the shared user pool. Do not pass non-empty metadata, and do not pass true for loginEnabled or syncEnabled. By default, both switches are turned off. Protocols and SAML configurations are saved by calling UpdateIdentityProvider. SCIM is configured through a separate API. You do not need to save SAML first. After the request is accepted and CONFIGURED is returned, call GetIdentityProvider and wait for the user pool initialization to complete. READY only indicates that the resource is ready, not that SAML is configured. If the same CustomSSO binding is in the CONFIGURED or READY state, the existing binding can be returned. You cannot treat all states as repeatable creations.
741
+ * For DingTalk, the metadata parameter requires appKey, appSecret, and corpId. For Feishu, appId and appSecret are required. The vendor logon switch is enabled by default, and the synchronization switch is disabled by default. When synchronization is enabled, encryptKey and verificationToken are also required. The vendor syncOnBind and syncScope parameters retain the existing department-based synchronization definitions. Do not use these vendor pull parameters to replace SCIM configurations during CustomSSO initialization.
742
+ * ## Requests and examples
743
+ * POST /workspaces/{workspaceId}/identity-providers
744
+ * Call conventions: Call the API based on the region of the target workspace. Use an AccessKey pair or STS token that has permissions on the identity provider resources of the corresponding workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example represents the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example only shows the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not record keys. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
745
+ * ```text
746
+ * POST /workspaces/ws-example/identity-providers
747
+ * {"identityProviderType": "CustomSSO"}
748
+ * ```
749
+ * ## Response example
750
+ * ```json
751
+ * {
752
+ * "data": {
753
+ * "workspaceId": "ws-example",
754
+ * "identityProviderType": "CustomSSO",
755
+ * "loginEnabled": false,
756
+ * "syncEnabled": false,
757
+ * "status": "CONFIGURED"
758
+ * }
759
+ * }
760
+ * ```
761
+ * ## Errors and handling
762
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. A synchronous call to the upstream service may return 503 IdentityProviderProvisioningUnavailable if it fails. Keep the request ID for troubleshooting and do not interpret a read failure as unconfigured. Actual authentication and workspace non-existence errors follow the common error handling.
763
+ * 409 IdentityProviderAlreadyBound: An external binding already exists. Query and reuse the correct binding first. Do not automatically unbind the entire binding. Asynchronous initialization failure does not equal HTTP request failure. You must continue to query the status.
706
764
  *
707
765
  * @param request - CreateIdentityProviderRequest
708
766
  * @returns CreateIdentityProviderResponse
@@ -712,6 +770,149 @@ class Client extends openapi_core_1.default {
712
770
  let headers = {};
713
771
  return await this.createIdentityProviderWithOptions(workspaceId, request, headers, runtime);
714
772
  }
773
+ /**
774
+ * Initiates a manual synchronization of an identity provider.
775
+ *
776
+ * @remarks
777
+ * Initiates a one-time user synchronization based on the saved scope without saving the configuration or requiring syncEnabled=true. Prerequisites: the identity provider is in the READY or SYNC_FAILED state, a user pool exists, and no other pending identity provider operations are in progress. The returned taskId only indicates that the request is accepted. Call GetIdentityProviderSyncJob to poll the status until it reaches SUCCESS, FAILED, or CANCELED. If the task fails, check the failureReason. The workspace user quota still applies, and previously synchronized users are not automatically deleted if the scope is reduced.
778
+ * Authorization information: RAM action agentcore:CreateIdentityProviderSyncJob, access level Write, resource ARN: acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is required for authorization.
779
+ * Idempotency and retry: This operation does not provide a ClientToken parameter for conditional idempotency. Repeated submissions do not guarantee the same task is returned. If an operation is already in progress, an operation conflict is returned. Submitting again after the task ends creates a new synchronization task. If a submission times out, query the identity provider status first to avoid blindly resubmitting the request.
780
+ * Calling this API is free of charge, and operation records support ActionTrail auditing.
781
+ * Initial selective synchronization process: CreateIdentityProvider (syncOnBind=false, it is recommended to keep syncEnabled=false initially) → GetIdentityProvider and wait for READY → ListIdentityProviderDepartments to select departments → UpdateIdentityProvider to save syncScope and wait for READY → CreateIdentityProviderSyncJob → GetIdentityProviderSyncJob to query the terminal state. If incremental synchronization is required, configure callbacks and event subscriptions, and then update syncEnabled=true.
782
+ * Response example:
783
+ * ```json
784
+ * {
785
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
786
+ * "message": "success",
787
+ * "httpStatusCode": 200,
788
+ * "code": "SUCCESS",
789
+ * "success": true,
790
+ * "data": {
791
+ * "taskId": "12345678-1234-4234-8234-123456789abc",
792
+ * "status": "PENDING"
793
+ * }
794
+ * }
795
+ * ```
796
+ *
797
+ * @param request - CreateIdentityProviderSyncJobRequest
798
+ * @param headers - map
799
+ * @param runtime - runtime options for this request RuntimeOptions
800
+ * @returns CreateIdentityProviderSyncJobResponse
801
+ */
802
+ async createIdentityProviderSyncJobWithOptions(workspaceId, identityProviderType, request, headers, runtime) {
803
+ request.validate();
804
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
805
+ headers: headers,
806
+ });
807
+ let params = new openapi_core_2.$OpenApiUtil.Params({
808
+ action: "CreateIdentityProviderSyncJob",
809
+ version: "2026-08-04",
810
+ protocol: "HTTPS",
811
+ pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/identity-providers/${$dara.URL.percentEncode(identityProviderType)}/sync-jobs`,
812
+ method: "POST",
813
+ authType: "AK",
814
+ style: "ROA",
815
+ reqBodyType: "json",
816
+ bodyType: "json",
817
+ });
818
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateIdentityProviderSyncJobResponse({}));
819
+ }
820
+ /**
821
+ * Initiates a manual synchronization of an identity provider.
822
+ *
823
+ * @remarks
824
+ * Initiates a one-time user synchronization based on the saved scope without saving the configuration or requiring syncEnabled=true. Prerequisites: the identity provider is in the READY or SYNC_FAILED state, a user pool exists, and no other pending identity provider operations are in progress. The returned taskId only indicates that the request is accepted. Call GetIdentityProviderSyncJob to poll the status until it reaches SUCCESS, FAILED, or CANCELED. If the task fails, check the failureReason. The workspace user quota still applies, and previously synchronized users are not automatically deleted if the scope is reduced.
825
+ * Authorization information: RAM action agentcore:CreateIdentityProviderSyncJob, access level Write, resource ARN: acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is required for authorization.
826
+ * Idempotency and retry: This operation does not provide a ClientToken parameter for conditional idempotency. Repeated submissions do not guarantee the same task is returned. If an operation is already in progress, an operation conflict is returned. Submitting again after the task ends creates a new synchronization task. If a submission times out, query the identity provider status first to avoid blindly resubmitting the request.
827
+ * Calling this API is free of charge, and operation records support ActionTrail auditing.
828
+ * Initial selective synchronization process: CreateIdentityProvider (syncOnBind=false, it is recommended to keep syncEnabled=false initially) → GetIdentityProvider and wait for READY → ListIdentityProviderDepartments to select departments → UpdateIdentityProvider to save syncScope and wait for READY → CreateIdentityProviderSyncJob → GetIdentityProviderSyncJob to query the terminal state. If incremental synchronization is required, configure callbacks and event subscriptions, and then update syncEnabled=true.
829
+ * Response example:
830
+ * ```json
831
+ * {
832
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
833
+ * "message": "success",
834
+ * "httpStatusCode": 200,
835
+ * "code": "SUCCESS",
836
+ * "success": true,
837
+ * "data": {
838
+ * "taskId": "12345678-1234-4234-8234-123456789abc",
839
+ * "status": "PENDING"
840
+ * }
841
+ * }
842
+ * ```
843
+ *
844
+ * @param request - CreateIdentityProviderSyncJobRequest
845
+ * @returns CreateIdentityProviderSyncJobResponse
846
+ */
847
+ async createIdentityProviderSyncJob(workspaceId, identityProviderType, request) {
848
+ let runtime = new $dara.RuntimeOptions({});
849
+ let headers = {};
850
+ return await this.createIdentityProviderSyncJobWithOptions(workspaceId, identityProviderType, request, headers, runtime);
851
+ }
852
+ /**
853
+ * Creates an image cache.
854
+ *
855
+ * @remarks
856
+ * Creates or reuses an image cache in the current workspace based on the image source and tag. Both public and private images uniformly reuse the workspace\\"s source image pull authorization and resource roles. The resource manager parses the tag during the transfer node and performs image replication based on the parsed summary. The digest is empty before parsing is complete. For regular tags, the saved summary is reused after parsing. For the latest tag, it is parsed again when registered after reaching the desired state, and duplicate registrations in progress reuse the node. The logical imageId remains stable. accessInternet and accessVpc only determine the source reading and transfer for the current request and do not modify the agent network. An HTTP 200 response returns an acceptance snapshot of PENDING, READY, or FAILED, which does not indicate that the creation is complete. ClientToken does not guarantee to deduplicate requests or recover the original result. If the result is unconfirmed, query the query cache status first before deciding whether to recommit.
857
+ *
858
+ * @param tmpReq - CreateImageCacheRequest
859
+ * @param headers - map
860
+ * @param runtime - runtime options for this request RuntimeOptions
861
+ * @returns CreateImageCacheResponse
862
+ */
863
+ async createImageCacheWithOptions(tmpReq, headers, runtime) {
864
+ tmpReq.validate();
865
+ let request = new $_model.CreateImageCacheShrinkRequest({});
866
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
867
+ if (!$dara.isNull(tmpReq.body)) {
868
+ request.bodyShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.body, "body", "json");
869
+ }
870
+ let query = {};
871
+ if (!$dara.isNull(request.clientToken)) {
872
+ query["clientToken"] = request.clientToken;
873
+ }
874
+ if (!$dara.isNull(request.regionId)) {
875
+ query["regionId"] = request.regionId;
876
+ }
877
+ if (!$dara.isNull(request.workspaceId)) {
878
+ query["workspaceId"] = request.workspaceId;
879
+ }
880
+ let body = {};
881
+ if (!$dara.isNull(request.bodyShrink)) {
882
+ body["body"] = request.bodyShrink;
883
+ }
884
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
885
+ headers: headers,
886
+ query: openapi_core_2.OpenApiUtil.query(query),
887
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
888
+ });
889
+ let params = new openapi_core_2.$OpenApiUtil.Params({
890
+ action: "CreateImageCache",
891
+ version: "2026-08-04",
892
+ protocol: "HTTPS",
893
+ pathname: `/image-caches`,
894
+ method: "POST",
895
+ authType: "AK",
896
+ style: "ROA",
897
+ reqBodyType: "formData",
898
+ bodyType: "json",
899
+ });
900
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateImageCacheResponse({}));
901
+ }
902
+ /**
903
+ * Creates an image cache.
904
+ *
905
+ * @remarks
906
+ * Creates or reuses an image cache in the current workspace based on the image source and tag. Both public and private images uniformly reuse the workspace\\"s source image pull authorization and resource roles. The resource manager parses the tag during the transfer node and performs image replication based on the parsed summary. The digest is empty before parsing is complete. For regular tags, the saved summary is reused after parsing. For the latest tag, it is parsed again when registered after reaching the desired state, and duplicate registrations in progress reuse the node. The logical imageId remains stable. accessInternet and accessVpc only determine the source reading and transfer for the current request and do not modify the agent network. An HTTP 200 response returns an acceptance snapshot of PENDING, READY, or FAILED, which does not indicate that the creation is complete. ClientToken does not guarantee to deduplicate requests or recover the original result. If the result is unconfirmed, query the query cache status first before deciding whether to recommit.
907
+ *
908
+ * @param request - CreateImageCacheRequest
909
+ * @returns CreateImageCacheResponse
910
+ */
911
+ async createImageCache(request) {
912
+ let runtime = new $dara.RuntimeOptions({});
913
+ let headers = {};
914
+ return await this.createImageCacheWithOptions(request, headers, runtime);
915
+ }
715
916
  /**
716
917
  * Creates a managed agent in a specified workspace.
717
918
  *
@@ -1527,7 +1728,31 @@ class Client extends openapi_core_1.default {
1527
1728
  return await this.deleteExternalAgentWithOptions(workspaceId, agentId, request, headers, runtime);
1528
1729
  }
1529
1730
  /**
1530
- * 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.
1731
+ * Disconnects the external identity provider from a specified workspace and cleans up the users synchronized by the identity provider. The disconnection is an asynchronous operation. After the API returns a response, you can call GetIdentityProvider to query the status and track the progress.
1732
+ *
1733
+ * @remarks
1734
+ * ## Features and prerequisites
1735
+ * This is a complete disconnection, not just disabling logon. Disconnecting CustomSSO cleans up the AC users imported from this identity source, remote shared user pools and related resources, logon publishing configurations, and bindings. Therefore, both SAML and SCIM are affected. It does not delete the enterprise applications created by users on external platforms such as Azure. The system first checks the references between users and Teams. If references exist, the disconnection is rejected.
1736
+ * After the request is accepted, the system returns DISCONNECTING. You can call GetIdentityProvider to query the status. The cleanup is complete only when the binding does not exist (IdentityProviderNotFound). The binding should also no longer appear in the list. DISCONNECT_FAILED indicates that a partial cleanup may have occurred and the state cannot be restored to a brand new unconfigured state. You can retry based on the returned status. If the binding does not exist in the first place, the API returns a placeholder result indicating no binding without creating new resources. An ongoing disconnection task may return the current binding. Do not use this API as a substitute for setting loginEnabled=false, syncEnabled=false, or deleting a single token.
1737
+ * ## Requests and examples
1738
+ * DELETE /workspaces/{workspaceId}/identity-providers/{identityProviderType}
1739
+ * Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or STS credential that has permissions on the identity source resources of the workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example represents the body parameter content of the public API, not the extra body wrapper of the backend direct connection API. The response example only shows the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not record keys. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
1740
+ * ```text
1741
+ * DELETE /workspaces/ws-example/identity-providers/CustomSSO
1742
+ * ```
1743
+ * ## Response examples
1744
+ * ```json
1745
+ * {
1746
+ * "data": {
1747
+ * "workspaceId": "ws-example",
1748
+ * "identityProviderType": "CustomSSO",
1749
+ * "status": "DISCONNECTING"
1750
+ * }
1751
+ * }
1752
+ * ```
1753
+ * ## Errors and handling
1754
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. A synchronous call failure to the upstream may return 503 IdentityProviderProvisioningUnavailable. Keep the request ID for troubleshooting and do not interpret a read failure as unconfigured. Actual authentication and workspace non-existence errors follow the common error handling.
1755
+ * 409 IdentityProvider.Disconnect.Conflict: Users of this identity source still belong to a Team. Remove the references first. 409 IdentityProviderOperationConflict: The current status does not allow disconnection. 404 IdentityProviderNotFound: An external binding exists but the type does not match. An asynchronous failure may result in a partial cleanup. You cannot claim completion based solely on the first response.
1531
1756
  *
1532
1757
  * @param request - DeleteIdentityProviderRequest
1533
1758
  * @param headers - map
@@ -1558,7 +1783,31 @@ class Client extends openapi_core_1.default {
1558
1783
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteIdentityProviderResponse({}));
1559
1784
  }
1560
1785
  /**
1561
- * 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.
1786
+ * Disconnects the external identity provider from a specified workspace and cleans up the users synchronized by the identity provider. The disconnection is an asynchronous operation. After the API returns a response, you can call GetIdentityProvider to query the status and track the progress.
1787
+ *
1788
+ * @remarks
1789
+ * ## Features and prerequisites
1790
+ * This is a complete disconnection, not just disabling logon. Disconnecting CustomSSO cleans up the AC users imported from this identity source, remote shared user pools and related resources, logon publishing configurations, and bindings. Therefore, both SAML and SCIM are affected. It does not delete the enterprise applications created by users on external platforms such as Azure. The system first checks the references between users and Teams. If references exist, the disconnection is rejected.
1791
+ * After the request is accepted, the system returns DISCONNECTING. You can call GetIdentityProvider to query the status. The cleanup is complete only when the binding does not exist (IdentityProviderNotFound). The binding should also no longer appear in the list. DISCONNECT_FAILED indicates that a partial cleanup may have occurred and the state cannot be restored to a brand new unconfigured state. You can retry based on the returned status. If the binding does not exist in the first place, the API returns a placeholder result indicating no binding without creating new resources. An ongoing disconnection task may return the current binding. Do not use this API as a substitute for setting loginEnabled=false, syncEnabled=false, or deleting a single token.
1792
+ * ## Requests and examples
1793
+ * DELETE /workspaces/{workspaceId}/identity-providers/{identityProviderType}
1794
+ * Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or STS credential that has permissions on the identity source resources of the workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example represents the body parameter content of the public API, not the extra body wrapper of the backend direct connection API. The response example only shows the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not record keys. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
1795
+ * ```text
1796
+ * DELETE /workspaces/ws-example/identity-providers/CustomSSO
1797
+ * ```
1798
+ * ## Response examples
1799
+ * ```json
1800
+ * {
1801
+ * "data": {
1802
+ * "workspaceId": "ws-example",
1803
+ * "identityProviderType": "CustomSSO",
1804
+ * "status": "DISCONNECTING"
1805
+ * }
1806
+ * }
1807
+ * ```
1808
+ * ## Errors and handling
1809
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. A synchronous call failure to the upstream may return 503 IdentityProviderProvisioningUnavailable. Keep the request ID for troubleshooting and do not interpret a read failure as unconfigured. Actual authentication and workspace non-existence errors follow the common error handling.
1810
+ * 409 IdentityProvider.Disconnect.Conflict: Users of this identity source still belong to a Team. Remove the references first. 409 IdentityProviderOperationConflict: The current status does not allow disconnection. 404 IdentityProviderNotFound: An external binding exists but the type does not match. An asynchronous failure may result in a partial cleanup. You cannot claim completion based solely on the first response.
1562
1811
  *
1563
1812
  * @param request - DeleteIdentityProviderRequest
1564
1813
  * @returns DeleteIdentityProviderResponse
@@ -1568,6 +1817,57 @@ class Client extends openapi_core_1.default {
1568
1817
  let headers = {};
1569
1818
  return await this.deleteIdentityProviderWithOptions(workspaceId, identityProviderType, request, headers, runtime);
1570
1819
  }
1820
+ /**
1821
+ * Deletes an image cache.
1822
+ *
1823
+ * @remarks
1824
+ * Deletes the logical image cache of the current workspace. The deletion requires that no enabled agent configurations reference the cache and no active instances are using it. Concurrency is rechecked upon submission. Caches in the PENDING or FAILED state can still be deleted, and the backend handles the cleanup. An HTTP 200 response returns an imageId that matches the request. If deletionPending is true, the current workspace is still undergoing deletion, and a Get request returns DELETING until ImageCacheNotFound is explicitly returned. If false, the deletion is complete or the current workspace no longer exists. Usage by other workspaces does not block the deletion for the current workspace. The physical content is reclaimed only after all workspaces in the same region have removed their associations and no active instances are using it.
1825
+ *
1826
+ * @param request - DeleteImageCacheRequest
1827
+ * @param headers - map
1828
+ * @param runtime - runtime options for this request RuntimeOptions
1829
+ * @returns DeleteImageCacheResponse
1830
+ */
1831
+ async deleteImageCacheWithOptions(imageId, request, headers, runtime) {
1832
+ request.validate();
1833
+ let query = {};
1834
+ if (!$dara.isNull(request.regionId)) {
1835
+ query["regionId"] = request.regionId;
1836
+ }
1837
+ if (!$dara.isNull(request.workspaceId)) {
1838
+ query["workspaceId"] = request.workspaceId;
1839
+ }
1840
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1841
+ headers: headers,
1842
+ query: openapi_core_2.OpenApiUtil.query(query),
1843
+ });
1844
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1845
+ action: "DeleteImageCache",
1846
+ version: "2026-08-04",
1847
+ protocol: "HTTPS",
1848
+ pathname: `/image-caches/${$dara.URL.percentEncode(imageId)}`,
1849
+ method: "DELETE",
1850
+ authType: "AK",
1851
+ style: "ROA",
1852
+ reqBodyType: "json",
1853
+ bodyType: "json",
1854
+ });
1855
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteImageCacheResponse({}));
1856
+ }
1857
+ /**
1858
+ * Deletes an image cache.
1859
+ *
1860
+ * @remarks
1861
+ * Deletes the logical image cache of the current workspace. The deletion requires that no enabled agent configurations reference the cache and no active instances are using it. Concurrency is rechecked upon submission. Caches in the PENDING or FAILED state can still be deleted, and the backend handles the cleanup. An HTTP 200 response returns an imageId that matches the request. If deletionPending is true, the current workspace is still undergoing deletion, and a Get request returns DELETING until ImageCacheNotFound is explicitly returned. If false, the deletion is complete or the current workspace no longer exists. Usage by other workspaces does not block the deletion for the current workspace. The physical content is reclaimed only after all workspaces in the same region have removed their associations and no active instances are using it.
1862
+ *
1863
+ * @param request - DeleteImageCacheRequest
1864
+ * @returns DeleteImageCacheResponse
1865
+ */
1866
+ async deleteImageCache(imageId, request) {
1867
+ let runtime = new $dara.RuntimeOptions({});
1868
+ let headers = {};
1869
+ return await this.deleteImageCacheWithOptions(imageId, request, headers, runtime);
1870
+ }
1571
1871
  /**
1572
1872
  * Deletes a specified managed agent.
1573
1873
  *
@@ -1694,10 +1994,10 @@ class Client extends openapi_core_1.default {
1694
1994
  return await this.deleteMemoryWithOptions(workspaceId, memoryStoreName, memoryId, request, headers, runtime);
1695
1995
  }
1696
1996
  /**
1697
- * Asynchronously deletes a MemoryStore and all its long-term memory.
1997
+ * Asynchronously deletes a MemoryStore and all long-term memory within it.
1698
1998
  *
1699
1999
  * @remarks
1700
- * Asynchronously deletes a MemoryStore and all its long-term memory.
2000
+ * Asynchronously deletes a MemoryStore and all long-term memory within it.
1701
2001
  *
1702
2002
  * @param request - DeleteMemoryStoreRequest
1703
2003
  * @param headers - map
@@ -1723,10 +2023,10 @@ class Client extends openapi_core_1.default {
1723
2023
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteMemoryStoreResponse({}));
1724
2024
  }
1725
2025
  /**
1726
- * Asynchronously deletes a MemoryStore and all its long-term memory.
2026
+ * Asynchronously deletes a MemoryStore and all long-term memory within it.
1727
2027
  *
1728
2028
  * @remarks
1729
- * Asynchronously deletes a MemoryStore and all its long-term memory.
2029
+ * Asynchronously deletes a MemoryStore and all long-term memory within it.
1730
2030
  *
1731
2031
  * @param request - DeleteMemoryStoreRequest
1732
2032
  * @returns DeleteMemoryStoreResponse
@@ -2283,6 +2583,154 @@ class Client extends openapi_core_1.default {
2283
2583
  let headers = {};
2284
2584
  return await this.forcePublishSkillVersionWithOptions(workspaceId, skillName, skillVersion, request, headers, runtime);
2285
2585
  }
2586
+ /**
2587
+ * Retrieves the download URL for the saved code package of an agent.
2588
+ *
2589
+ * @remarks
2590
+ * Generates a time-limited, read-only download URL for the code package referenced by the currently saved agent configuration. This applies to code packages uploaded locally or imported from Object Storage Service (OSS). The operation uses workspaceId and agentId for locating and does not accept arbitrary bucket, object key, or historical version parameters. The current configuration must reference an available, fixed code package, and does not require waiting for a running instance to be ready. An error is returned if the code package does not exist, has changed, or is unreadable. The link is valid for up to 10 minutes and does not exceed the underlying credential expiration time. Call the operation again after it expires. The resourceVersionId indicates the saved configuration version corresponding to this download. The sample download link is redacted. Use the downloadUrl in the response.
2591
+ *
2592
+ * @param request - GetAgentCodePackageDownloadUrlRequest
2593
+ * @param headers - map
2594
+ * @param runtime - runtime options for this request RuntimeOptions
2595
+ * @returns GetAgentCodePackageDownloadUrlResponse
2596
+ */
2597
+ async getAgentCodePackageDownloadUrlWithOptions(workspaceId, agentId, request, headers, runtime) {
2598
+ request.validate();
2599
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2600
+ headers: headers,
2601
+ });
2602
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2603
+ action: "GetAgentCodePackageDownloadUrl",
2604
+ version: "2026-08-04",
2605
+ protocol: "HTTPS",
2606
+ pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/custom-agents/${$dara.URL.percentEncode(agentId)}/code-package/download-url`,
2607
+ method: "GET",
2608
+ authType: "AK",
2609
+ style: "ROA",
2610
+ reqBodyType: "json",
2611
+ bodyType: "json",
2612
+ });
2613
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAgentCodePackageDownloadUrlResponse({}));
2614
+ }
2615
+ /**
2616
+ * Retrieves the download URL for the saved code package of an agent.
2617
+ *
2618
+ * @remarks
2619
+ * Generates a time-limited, read-only download URL for the code package referenced by the currently saved agent configuration. This applies to code packages uploaded locally or imported from Object Storage Service (OSS). The operation uses workspaceId and agentId for locating and does not accept arbitrary bucket, object key, or historical version parameters. The current configuration must reference an available, fixed code package, and does not require waiting for a running instance to be ready. An error is returned if the code package does not exist, has changed, or is unreadable. The link is valid for up to 10 minutes and does not exceed the underlying credential expiration time. Call the operation again after it expires. The resourceVersionId indicates the saved configuration version corresponding to this download. The sample download link is redacted. Use the downloadUrl in the response.
2620
+ *
2621
+ * @param request - GetAgentCodePackageDownloadUrlRequest
2622
+ * @returns GetAgentCodePackageDownloadUrlResponse
2623
+ */
2624
+ async getAgentCodePackageDownloadUrl(workspaceId, agentId, request) {
2625
+ let runtime = new $dara.RuntimeOptions({});
2626
+ let headers = {};
2627
+ return await this.getAgentCodePackageDownloadUrlWithOptions(workspaceId, agentId, request, headers, runtime);
2628
+ }
2629
+ /**
2630
+ * Retrieves the OSS RAM authorization URL for the agent code package.
2631
+ *
2632
+ * @remarks
2633
+ * Generates a RAM authorization URL for the resource role of the current workspace for a specified source bucket. The client cannot specify or override the role. After you open the authorizeUrl and confirm the authorization, call VerifyAgentCodePackageOssRamAuthorization to check the policy binding, and call ValidateAgentCodePackageFromOss to check specific objects.
2634
+ * This authorization reuses the OSSObjectRestoreCustom template, which includes permissions to read, write, and delete objects, and is not a read-only authorization. Retrieving the URL itself does not complete the authorization, transfer the code package, or modify the default OSS binding of the workspace. Existing authorizations for the same role and bucket can be reused. The example URL is provided to demonstrate the format. Use the actual authorization URL returned by the API operation.
2635
+ *
2636
+ * @param request - GetAgentCodePackageOssRamAuthorizeUrlRequest
2637
+ * @param headers - map
2638
+ * @param runtime - runtime options for this request RuntimeOptions
2639
+ * @returns GetAgentCodePackageOssRamAuthorizeUrlResponse
2640
+ */
2641
+ async getAgentCodePackageOssRamAuthorizeUrlWithOptions(workspaceId, request, headers, runtime) {
2642
+ request.validate();
2643
+ let query = {};
2644
+ if (!$dara.isNull(request.ossBucketName)) {
2645
+ query["ossBucketName"] = request.ossBucketName;
2646
+ }
2647
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2648
+ headers: headers,
2649
+ query: openapi_core_2.OpenApiUtil.query(query),
2650
+ });
2651
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2652
+ action: "GetAgentCodePackageOssRamAuthorizeUrl",
2653
+ version: "2026-08-04",
2654
+ protocol: "HTTPS",
2655
+ pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/agent-code-packages/oss/authorize`,
2656
+ method: "GET",
2657
+ authType: "AK",
2658
+ style: "ROA",
2659
+ reqBodyType: "json",
2660
+ bodyType: "json",
2661
+ });
2662
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAgentCodePackageOssRamAuthorizeUrlResponse({}));
2663
+ }
2664
+ /**
2665
+ * Retrieves the OSS RAM authorization URL for the agent code package.
2666
+ *
2667
+ * @remarks
2668
+ * Generates a RAM authorization URL for the resource role of the current workspace for a specified source bucket. The client cannot specify or override the role. After you open the authorizeUrl and confirm the authorization, call VerifyAgentCodePackageOssRamAuthorization to check the policy binding, and call ValidateAgentCodePackageFromOss to check specific objects.
2669
+ * This authorization reuses the OSSObjectRestoreCustom template, which includes permissions to read, write, and delete objects, and is not a read-only authorization. Retrieving the URL itself does not complete the authorization, transfer the code package, or modify the default OSS binding of the workspace. Existing authorizations for the same role and bucket can be reused. The example URL is provided to demonstrate the format. Use the actual authorization URL returned by the API operation.
2670
+ *
2671
+ * @param request - GetAgentCodePackageOssRamAuthorizeUrlRequest
2672
+ * @returns GetAgentCodePackageOssRamAuthorizeUrlResponse
2673
+ */
2674
+ async getAgentCodePackageOssRamAuthorizeUrl(workspaceId, request) {
2675
+ let runtime = new $dara.RuntimeOptions({});
2676
+ let headers = {};
2677
+ return await this.getAgentCodePackageOssRamAuthorizeUrlWithOptions(workspaceId, request, headers, runtime);
2678
+ }
2679
+ /**
2680
+ * Retrieves the upload URL for an agent code package.
2681
+ *
2682
+ * @remarks
2683
+ * Retrieves a time-limited upload URL for a code package without uploading the file content. The fileName must be a ZIP or TAR.GZ filename without directories. The format must match the file extension. The fileSize is in bytes, with valid values ranging from 1 to 500,000,000.
2684
+ * Use the uploadMethod, uploadUrl, and headers from the response to upload the file directly. After the upload is complete, pass the sourceUri to the artifact.code.sourceUri parameter of CreateCustomAgent or UpdateCustomAgent. The actual object and size are verified and a fixed copy is saved during creation or update. The upload URL is valid for up to 10 minutes and does not exceed the expiration time of the underlying temporary credentials. Retrieve a new URL after it expires. The example URL is desensitized and cannot be used for actual uploads. Use the original URL and request headers from this response.
2685
+ *
2686
+ * @param tmpReq - GetAgentCodePackageUploadUrlRequest
2687
+ * @param headers - map
2688
+ * @param runtime - runtime options for this request RuntimeOptions
2689
+ * @returns GetAgentCodePackageUploadUrlResponse
2690
+ */
2691
+ async getAgentCodePackageUploadUrlWithOptions(workspaceId, tmpReq, headers, runtime) {
2692
+ tmpReq.validate();
2693
+ let request = new $_model.GetAgentCodePackageUploadUrlShrinkRequest({});
2694
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
2695
+ if (!$dara.isNull(tmpReq.body)) {
2696
+ request.bodyShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.body, "body", "json");
2697
+ }
2698
+ let body = {};
2699
+ if (!$dara.isNull(request.bodyShrink)) {
2700
+ body["body"] = request.bodyShrink;
2701
+ }
2702
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2703
+ headers: headers,
2704
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
2705
+ });
2706
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2707
+ action: "GetAgentCodePackageUploadUrl",
2708
+ version: "2026-08-04",
2709
+ protocol: "HTTPS",
2710
+ pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/agent-code-packages/upload-url`,
2711
+ method: "POST",
2712
+ authType: "AK",
2713
+ style: "ROA",
2714
+ reqBodyType: "formData",
2715
+ bodyType: "json",
2716
+ });
2717
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAgentCodePackageUploadUrlResponse({}));
2718
+ }
2719
+ /**
2720
+ * Retrieves the upload URL for an agent code package.
2721
+ *
2722
+ * @remarks
2723
+ * Retrieves a time-limited upload URL for a code package without uploading the file content. The fileName must be a ZIP or TAR.GZ filename without directories. The format must match the file extension. The fileSize is in bytes, with valid values ranging from 1 to 500,000,000.
2724
+ * Use the uploadMethod, uploadUrl, and headers from the response to upload the file directly. After the upload is complete, pass the sourceUri to the artifact.code.sourceUri parameter of CreateCustomAgent or UpdateCustomAgent. The actual object and size are verified and a fixed copy is saved during creation or update. The upload URL is valid for up to 10 minutes and does not exceed the expiration time of the underlying temporary credentials. Retrieve a new URL after it expires. The example URL is desensitized and cannot be used for actual uploads. Use the original URL and request headers from this response.
2725
+ *
2726
+ * @param request - GetAgentCodePackageUploadUrlRequest
2727
+ * @returns GetAgentCodePackageUploadUrlResponse
2728
+ */
2729
+ async getAgentCodePackageUploadUrl(workspaceId, request) {
2730
+ let runtime = new $dara.RuntimeOptions({});
2731
+ let headers = {};
2732
+ return await this.getAgentCodePackageUploadUrlWithOptions(workspaceId, request, headers, runtime);
2733
+ }
2286
2734
  /**
2287
2735
  * Queries the details of a specified agent IM channel.
2288
2736
  *
@@ -2555,12 +3003,12 @@ class Client extends openapi_core_1.default {
2555
3003
  return await this.getCredentialWithOptions(workspaceId, credentialId, request, headers, runtime);
2556
3004
  }
2557
3005
  /**
2558
- * Queries the details of a custom agent in a specified workspace, including the deployment configuration, the execute status of the latest configuration version, and the running instance status statistics.
3006
+ * Queries the details of a custom agent in a specified workspace, including deployment configurations, the execute status of the latest configuration version, and the running instance status statistics.
2559
3007
  *
2560
3008
  * @remarks
2561
3009
  * After creating or updating a custom agent, you can poll this operation to query the execution result of the latest configuration version. latestVersionStatus corresponds to latestSpecVersion. latestExecutionError indicates the cause of the pending or failed status for this version. If retryable is true, you can query again later.
2562
- * The returned configuration is the latest submitted configuration and may not have taken effect. Check latestVersionStatus, the overall agent status, and the running instance statistics in sandboxPhaseCounts to confirm the deployment and running status.
2563
- * If you query a custom agent that does not exist, has been deleted, or does not belong to the specified workspace, a resource not found error is returned.
3010
+ * The returned configuration is the latest submitted configuration and may not have taken effect. Verify the deployment and running status by checking latestVersionStatus, the overall agent status, and the running instance statistics sandboxPhaseCounts.
3011
+ * If the queried custom agent does not exist, has been deleted, or does not belong to the specified workspace, a resource not found error is returned.
2564
3012
  *
2565
3013
  * @param request - GetCustomAgentRequest
2566
3014
  * @param headers - map
@@ -2586,12 +3034,12 @@ class Client extends openapi_core_1.default {
2586
3034
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetCustomAgentResponse({}));
2587
3035
  }
2588
3036
  /**
2589
- * Queries the details of a custom agent in a specified workspace, including the deployment configuration, the execute status of the latest configuration version, and the running instance status statistics.
3037
+ * Queries the details of a custom agent in a specified workspace, including deployment configurations, the execute status of the latest configuration version, and the running instance status statistics.
2590
3038
  *
2591
3039
  * @remarks
2592
3040
  * After creating or updating a custom agent, you can poll this operation to query the execution result of the latest configuration version. latestVersionStatus corresponds to latestSpecVersion. latestExecutionError indicates the cause of the pending or failed status for this version. If retryable is true, you can query again later.
2593
- * The returned configuration is the latest submitted configuration and may not have taken effect. Check latestVersionStatus, the overall agent status, and the running instance statistics in sandboxPhaseCounts to confirm the deployment and running status.
2594
- * If you query a custom agent that does not exist, has been deleted, or does not belong to the specified workspace, a resource not found error is returned.
3041
+ * The returned configuration is the latest submitted configuration and may not have taken effect. Verify the deployment and running status by checking latestVersionStatus, the overall agent status, and the running instance statistics sandboxPhaseCounts.
3042
+ * If the queried custom agent does not exist, has been deleted, or does not belong to the specified workspace, a resource not found error is returned.
2595
3043
  *
2596
3044
  * @param request - GetCustomAgentRequest
2597
3045
  * @returns GetCustomAgentResponse
@@ -2688,7 +3136,33 @@ class Client extends openapi_core_1.default {
2688
3136
  return await this.getExternalAgentBootstrapOptionsWithOptions(workspaceId, agentId, request, headers, runtime);
2689
3137
  }
2690
3138
  /**
2691
- * 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.
3139
+ * Queries the binding details of an external identity provider for a specified workspace, including the binding status, application configurations, and the callback URL to be configured on the identity provider side. Application secret configurations are not returned.
3140
+ *
3141
+ * @remarks
3142
+ * ## Features and prerequisites
3143
+ * Reads existing bindings by type. For CustomSSO, the API returns the saved protocol, standardized SAML, expected loginEnabled, syncEnabled, and shared binding status. If SAML is not configured, the saml and configuration fields may not be returned. If SAML is configured, the API additionally queries AgentIdentity, and the configuration field represents the actual SSO/JIT configuration. The saml field serves as the data source for the edit form. The status switches in the configuration field are Enabled and Disabled. If the upstream query fails, an error is returned. This failure must not be treated as an unconfigured state.
3144
+ * Only this API reads back the actual SAML configuration. The list and write APIs do not guarantee that the configuration field is returned. A READY user pool does not indicate that SAML is configured. The UPDATING and UPDATE_FAILED statuses describe logon configuration tasks, not SCIM tasks. The vendor callback URL for CustomSSO is empty. Use GetIdentityProviderSCIM.operationStatus to query SCIM operation results.
3145
+ * ## Requests and examples
3146
+ * GET /workspaces/{workspaceId}/identity-providers/{identityProviderType}
3147
+ * Calling convention: Call this API in the region of the target workspace by using an AccessKey pair or STS token that has permissions on the identity source resources of the workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, rather than the extra body wrapper of the backend direct-connection API. The response example shows only the business data. The outer layer also includes requestId, success, code, message, and httpStatusCode. Retain the requestId for troubleshooting and do not log secrets. Asynchronous business tasks do not imply that the HTTP request uses a persistent connection to wait for completion.
3148
+ * ```text
3149
+ * GET /workspaces/ws-example/identity-providers/CustomSSO
3150
+ * ```
3151
+ * ## Response example
3152
+ * ```json
3153
+ * {
3154
+ * "data": {
3155
+ * "workspaceId": "ws-example",
3156
+ * "identityProviderType": "CustomSSO",
3157
+ * "status": "READY",
3158
+ * "loginEnabled": false,
3159
+ * "syncEnabled": false
3160
+ * }
3161
+ * }
3162
+ * ```
3163
+ * ## Errors and handling
3164
+ * Error handling: A 400 InvalidParameter error indicates that the parameters or current configuration prerequisites are not met. A 404 IdentityProviderNotFound error indicates that no binding of the specified type exists. Synchronous calls to the upstream service may return a 503 IdentityProviderProvisioningUnavailable error if they fail. Retain the request ID for troubleshooting and do not interpret read failures as an unconfigured state. Authentication errors and workspace-not-found errors follow common error handling procedures.
3165
+ * 404 IdentityProviderNotFound: No binding exists, or the specified type is inconsistent with the current binding. If SAML is already configured, an upstream read failure does not degrade to a successful empty configuration.
2692
3166
  *
2693
3167
  * @param request - GetIdentityProviderRequest
2694
3168
  * @param headers - map
@@ -2711,18 +3185,283 @@ class Client extends openapi_core_1.default {
2711
3185
  reqBodyType: "json",
2712
3186
  bodyType: "json",
2713
3187
  });
2714
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetIdentityProviderResponse({}));
3188
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetIdentityProviderResponse({}));
3189
+ }
3190
+ /**
3191
+ * Queries the binding details of an external identity provider for a specified workspace, including the binding status, application configurations, and the callback URL to be configured on the identity provider side. Application secret configurations are not returned.
3192
+ *
3193
+ * @remarks
3194
+ * ## Features and prerequisites
3195
+ * Reads existing bindings by type. For CustomSSO, the API returns the saved protocol, standardized SAML, expected loginEnabled, syncEnabled, and shared binding status. If SAML is not configured, the saml and configuration fields may not be returned. If SAML is configured, the API additionally queries AgentIdentity, and the configuration field represents the actual SSO/JIT configuration. The saml field serves as the data source for the edit form. The status switches in the configuration field are Enabled and Disabled. If the upstream query fails, an error is returned. This failure must not be treated as an unconfigured state.
3196
+ * Only this API reads back the actual SAML configuration. The list and write APIs do not guarantee that the configuration field is returned. A READY user pool does not indicate that SAML is configured. The UPDATING and UPDATE_FAILED statuses describe logon configuration tasks, not SCIM tasks. The vendor callback URL for CustomSSO is empty. Use GetIdentityProviderSCIM.operationStatus to query SCIM operation results.
3197
+ * ## Requests and examples
3198
+ * GET /workspaces/{workspaceId}/identity-providers/{identityProviderType}
3199
+ * Calling convention: Call this API in the region of the target workspace by using an AccessKey pair or STS token that has permissions on the identity source resources of the workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, rather than the extra body wrapper of the backend direct-connection API. The response example shows only the business data. The outer layer also includes requestId, success, code, message, and httpStatusCode. Retain the requestId for troubleshooting and do not log secrets. Asynchronous business tasks do not imply that the HTTP request uses a persistent connection to wait for completion.
3200
+ * ```text
3201
+ * GET /workspaces/ws-example/identity-providers/CustomSSO
3202
+ * ```
3203
+ * ## Response example
3204
+ * ```json
3205
+ * {
3206
+ * "data": {
3207
+ * "workspaceId": "ws-example",
3208
+ * "identityProviderType": "CustomSSO",
3209
+ * "status": "READY",
3210
+ * "loginEnabled": false,
3211
+ * "syncEnabled": false
3212
+ * }
3213
+ * }
3214
+ * ```
3215
+ * ## Errors and handling
3216
+ * Error handling: A 400 InvalidParameter error indicates that the parameters or current configuration prerequisites are not met. A 404 IdentityProviderNotFound error indicates that no binding of the specified type exists. Synchronous calls to the upstream service may return a 503 IdentityProviderProvisioningUnavailable error if they fail. Retain the request ID for troubleshooting and do not interpret read failures as an unconfigured state. Authentication errors and workspace-not-found errors follow common error handling procedures.
3217
+ * 404 IdentityProviderNotFound: No binding exists, or the specified type is inconsistent with the current binding. If SAML is already configured, an upstream read failure does not degrade to a successful empty configuration.
3218
+ *
3219
+ * @param request - GetIdentityProviderRequest
3220
+ * @returns GetIdentityProviderResponse
3221
+ */
3222
+ async getIdentityProvider(workspaceId, identityProviderType, request) {
3223
+ let runtime = new $dara.RuntimeOptions({});
3224
+ let headers = {};
3225
+ return await this.getIdentityProviderWithOptions(workspaceId, identityProviderType, request, headers, runtime);
3226
+ }
3227
+ /**
3228
+ * Queries an identity provider synchronization task.
3229
+ *
3230
+ * @remarks
3231
+ * Queries the status, current step, number of processed users, and failure cause of a manual synchronization task by using the local taskId of AgentCore. The taskId must be obtained from CreateIdentityProviderSyncJob in the same workspace and identity provider. It is not the synchronizationJobId of AgentIdentity. Poll the task until the status is SUCCESS, FAILED, or CANCELED. The PENDING, RUNNING, and PAUSED statuses do not indicate completion. The syncedUserCount includes updated existing users and does not equal the number of newly added users or the progress percentage.
3232
+ * Authorization information: The RAM operation is agentcore:GetIdentityProviderSyncJob, the access level is Read, and the resource ARN is acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is a required authorization resource.
3233
+ * Idempotence and retry: This operation is read-only and can be repeatedly queried.
3234
+ * Calling this API operation is free of charge, and operation records support ActionTrail auditing.
3235
+ * Response example:
3236
+ * ```json
3237
+ * {
3238
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
3239
+ * "message": "success",
3240
+ * "httpStatusCode": 200,
3241
+ * "code": "SUCCESS",
3242
+ * "success": true,
3243
+ * "data": {
3244
+ * "taskId": "12345678-1234-4234-8234-123456789abc",
3245
+ * "status": "SUCCESS",
3246
+ * "currentStep": "SYNC",
3247
+ * "synchronizationJobId": "syncjob_0123456789abcdef0123456789abcdef",
3248
+ * "syncedUserCount": 12
3249
+ * }
3250
+ * }
3251
+ * ```
3252
+ *
3253
+ * @param request - GetIdentityProviderSyncJobRequest
3254
+ * @param headers - map
3255
+ * @param runtime - runtime options for this request RuntimeOptions
3256
+ * @returns GetIdentityProviderSyncJobResponse
3257
+ */
3258
+ async getIdentityProviderSyncJobWithOptions(workspaceId, identityProviderType, taskId, request, headers, runtime) {
3259
+ request.validate();
3260
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3261
+ headers: headers,
3262
+ });
3263
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3264
+ action: "GetIdentityProviderSyncJob",
3265
+ version: "2026-08-04",
3266
+ protocol: "HTTPS",
3267
+ pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/identity-providers/${$dara.URL.percentEncode(identityProviderType)}/sync-jobs/${$dara.URL.percentEncode(taskId)}`,
3268
+ method: "GET",
3269
+ authType: "AK",
3270
+ style: "ROA",
3271
+ reqBodyType: "json",
3272
+ bodyType: "json",
3273
+ });
3274
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetIdentityProviderSyncJobResponse({}));
3275
+ }
3276
+ /**
3277
+ * Queries an identity provider synchronization task.
3278
+ *
3279
+ * @remarks
3280
+ * Queries the status, current step, number of processed users, and failure cause of a manual synchronization task by using the local taskId of AgentCore. The taskId must be obtained from CreateIdentityProviderSyncJob in the same workspace and identity provider. It is not the synchronizationJobId of AgentIdentity. Poll the task until the status is SUCCESS, FAILED, or CANCELED. The PENDING, RUNNING, and PAUSED statuses do not indicate completion. The syncedUserCount includes updated existing users and does not equal the number of newly added users or the progress percentage.
3281
+ * Authorization information: The RAM operation is agentcore:GetIdentityProviderSyncJob, the access level is Read, and the resource ARN is acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is a required authorization resource.
3282
+ * Idempotence and retry: This operation is read-only and can be repeatedly queried.
3283
+ * Calling this API operation is free of charge, and operation records support ActionTrail auditing.
3284
+ * Response example:
3285
+ * ```json
3286
+ * {
3287
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
3288
+ * "message": "success",
3289
+ * "httpStatusCode": 200,
3290
+ * "code": "SUCCESS",
3291
+ * "success": true,
3292
+ * "data": {
3293
+ * "taskId": "12345678-1234-4234-8234-123456789abc",
3294
+ * "status": "SUCCESS",
3295
+ * "currentStep": "SYNC",
3296
+ * "synchronizationJobId": "syncjob_0123456789abcdef0123456789abcdef",
3297
+ * "syncedUserCount": 12
3298
+ * }
3299
+ * }
3300
+ * ```
3301
+ *
3302
+ * @param request - GetIdentityProviderSyncJobRequest
3303
+ * @returns GetIdentityProviderSyncJobResponse
3304
+ */
3305
+ async getIdentityProviderSyncJob(workspaceId, identityProviderType, taskId, request) {
3306
+ let runtime = new $dara.RuntimeOptions({});
3307
+ let headers = {};
3308
+ return await this.getIdentityProviderSyncJobWithOptions(workspaceId, identityProviderType, taskId, request, headers, runtime);
3309
+ }
3310
+ /**
3311
+ * Queries the synchronization scope of an identity provider.
3312
+ *
3313
+ * @remarks
3314
+ * Queries the saved synchronization scope, the validity of selected departments, and the estimated user count downstream of the identity provider. This operation is not used for real-time estimation of unsaved selections. AllAuthorized indicates the address book scope authorized for the application, which is not equivalent to the entire enterprise organization. An empty selectedDepartments array does not prove that the organization has no sub-departments. The estimation can be used only when estimateStatus is Ready and a count is returned. A missing count does not indicate 0.
3315
+ * Authorization information: RAM operation agentcore:GetIdentityProviderSyncScope, access level Read, resource ARN: acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is a required authorization resource.
3316
+ * Idempotence and retry: This operation is read-only and can be queried repeatedly.
3317
+ * Calling this API operation is free of charge. Operation records support ActionTrail auditing.
3318
+ * Sample response:
3319
+ * ```json
3320
+ * {
3321
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
3322
+ * "message": "success",
3323
+ * "httpStatusCode": 200,
3324
+ * "code": "SUCCESS",
3325
+ * "success": true,
3326
+ * "data": {
3327
+ * "syncScope": {
3328
+ * "mode": "SelectedDepartments",
3329
+ * "departmentIds": [
3330
+ * "10001"
3331
+ * ]
3332
+ * },
3333
+ * "selectedDepartments": [
3334
+ * {
3335
+ * "id": "10001",
3336
+ * "name": "R&D Department",
3337
+ * "exists": true
3338
+ * }
3339
+ * ],
3340
+ * "estimateStatus": "Ready",
3341
+ * "expandedDepartmentCount": 2,
3342
+ * "estimatedUserCount": 12
3343
+ * }
3344
+ * }
3345
+ * ```
3346
+ *
3347
+ * @param request - GetIdentityProviderSyncScopeRequest
3348
+ * @param headers - map
3349
+ * @param runtime - runtime options for this request RuntimeOptions
3350
+ * @returns GetIdentityProviderSyncScopeResponse
3351
+ */
3352
+ async getIdentityProviderSyncScopeWithOptions(workspaceId, identityProviderType, request, headers, runtime) {
3353
+ request.validate();
3354
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3355
+ headers: headers,
3356
+ });
3357
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3358
+ action: "GetIdentityProviderSyncScope",
3359
+ version: "2026-08-04",
3360
+ protocol: "HTTPS",
3361
+ pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/identity-providers/${$dara.URL.percentEncode(identityProviderType)}/sync-scope`,
3362
+ method: "GET",
3363
+ authType: "AK",
3364
+ style: "ROA",
3365
+ reqBodyType: "json",
3366
+ bodyType: "json",
3367
+ });
3368
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetIdentityProviderSyncScopeResponse({}));
3369
+ }
3370
+ /**
3371
+ * Queries the synchronization scope of an identity provider.
3372
+ *
3373
+ * @remarks
3374
+ * Queries the saved synchronization scope, the validity of selected departments, and the estimated user count downstream of the identity provider. This operation is not used for real-time estimation of unsaved selections. AllAuthorized indicates the address book scope authorized for the application, which is not equivalent to the entire enterprise organization. An empty selectedDepartments array does not prove that the organization has no sub-departments. The estimation can be used only when estimateStatus is Ready and a count is returned. A missing count does not indicate 0.
3375
+ * Authorization information: RAM operation agentcore:GetIdentityProviderSyncScope, access level Read, resource ARN: acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is a required authorization resource.
3376
+ * Idempotence and retry: This operation is read-only and can be queried repeatedly.
3377
+ * Calling this API operation is free of charge. Operation records support ActionTrail auditing.
3378
+ * Sample response:
3379
+ * ```json
3380
+ * {
3381
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
3382
+ * "message": "success",
3383
+ * "httpStatusCode": 200,
3384
+ * "code": "SUCCESS",
3385
+ * "success": true,
3386
+ * "data": {
3387
+ * "syncScope": {
3388
+ * "mode": "SelectedDepartments",
3389
+ * "departmentIds": [
3390
+ * "10001"
3391
+ * ]
3392
+ * },
3393
+ * "selectedDepartments": [
3394
+ * {
3395
+ * "id": "10001",
3396
+ * "name": "R&D Department",
3397
+ * "exists": true
3398
+ * }
3399
+ * ],
3400
+ * "estimateStatus": "Ready",
3401
+ * "expandedDepartmentCount": 2,
3402
+ * "estimatedUserCount": 12
3403
+ * }
3404
+ * }
3405
+ * ```
3406
+ *
3407
+ * @param request - GetIdentityProviderSyncScopeRequest
3408
+ * @returns GetIdentityProviderSyncScopeResponse
3409
+ */
3410
+ async getIdentityProviderSyncScope(workspaceId, identityProviderType, request) {
3411
+ let runtime = new $dara.RuntimeOptions({});
3412
+ let headers = {};
3413
+ return await this.getIdentityProviderSyncScopeWithOptions(workspaceId, identityProviderType, request, headers, runtime);
3414
+ }
3415
+ /**
3416
+ * Queries the details of an image cache.
3417
+ *
3418
+ * @remarks
3419
+ * Queries the details of the logical image cache in the current workspace. Returns the complete source, current digest, actual size, creation time, status, and secure error messages. AgentCount counts configuration references with the switch enabled. CanDelete verifies both configuration references and instance usage. If the switch is disabled, the count is 0, but deletion is still prohibited if old instances are not released. If the resource does not belong to the current workspace, resources with the same content from other workspaces are not returned.
3420
+ *
3421
+ * @param request - GetImageCacheRequest
3422
+ * @param headers - map
3423
+ * @param runtime - runtime options for this request RuntimeOptions
3424
+ * @returns GetImageCacheResponse
3425
+ */
3426
+ async getImageCacheWithOptions(imageId, request, headers, runtime) {
3427
+ request.validate();
3428
+ let query = {};
3429
+ if (!$dara.isNull(request.regionId)) {
3430
+ query["regionId"] = request.regionId;
3431
+ }
3432
+ if (!$dara.isNull(request.workspaceId)) {
3433
+ query["workspaceId"] = request.workspaceId;
3434
+ }
3435
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3436
+ headers: headers,
3437
+ query: openapi_core_2.OpenApiUtil.query(query),
3438
+ });
3439
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3440
+ action: "GetImageCache",
3441
+ version: "2026-08-04",
3442
+ protocol: "HTTPS",
3443
+ pathname: `/image-caches/${$dara.URL.percentEncode(imageId)}`,
3444
+ method: "GET",
3445
+ authType: "AK",
3446
+ style: "ROA",
3447
+ reqBodyType: "json",
3448
+ bodyType: "json",
3449
+ });
3450
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetImageCacheResponse({}));
2715
3451
  }
2716
3452
  /**
2717
- * 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.
3453
+ * Queries the details of an image cache.
2718
3454
  *
2719
- * @param request - GetIdentityProviderRequest
2720
- * @returns GetIdentityProviderResponse
3455
+ * @remarks
3456
+ * Queries the details of the logical image cache in the current workspace. Returns the complete source, current digest, actual size, creation time, status, and secure error messages. AgentCount counts configuration references with the switch enabled. CanDelete verifies both configuration references and instance usage. If the switch is disabled, the count is 0, but deletion is still prohibited if old instances are not released. If the resource does not belong to the current workspace, resources with the same content from other workspaces are not returned.
3457
+ *
3458
+ * @param request - GetImageCacheRequest
3459
+ * @returns GetImageCacheResponse
2721
3460
  */
2722
- async getIdentityProvider(workspaceId, identityProviderType, request) {
3461
+ async getImageCache(imageId, request) {
2723
3462
  let runtime = new $dara.RuntimeOptions({});
2724
3463
  let headers = {};
2725
- return await this.getIdentityProviderWithOptions(workspaceId, identityProviderType, request, headers, runtime);
3464
+ return await this.getImageCacheWithOptions(imageId, request, headers, runtime);
2726
3465
  }
2727
3466
  /**
2728
3467
  * Queries the details of a specified managed agent.
@@ -3396,10 +4135,10 @@ class Client extends openapi_core_1.default {
3396
4135
  return await this.getWorkspaceWithOptions(workspaceId, request, headers, runtime);
3397
4136
  }
3398
4137
  /**
3399
- * Queries the RAM authorization URL for ACR in a workspace.
4138
+ * Queries the ACR RAM authorization URL of a workspace.
3400
4139
  *
3401
4140
  * @remarks
3402
- * ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is retained and only new permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. The acrInstanceId, namespace, and repository parameters are required. The region and account are derived from the workspace context. Returns the role resolved by the backend and the authorization URL for the target repository. This operation does not create ACR or agent execution versions, nor does it deliver runtime configurations. After authorization is complete, you can verify it and then create or update the agent without calling a separate Ensure operation.
4141
+ * ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is reused and permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. The acrInstanceId, namespace, and repository parameters are required. The region and account are derived from the workspace context. Returns the role resolved by the backend and the authorization URL for the target repository. This operation does not create ACR or agent execution versions, nor does it deliver runtime configurations. After authorization is complete, you can call Verify before creating or updating an agent, without the need to call an independent Ensure operation.
3403
4142
  *
3404
4143
  * @param request - GetWorkspaceAcrRamAuthorizeUrlRequest
3405
4144
  * @param headers - map
@@ -3436,10 +4175,10 @@ class Client extends openapi_core_1.default {
3436
4175
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetWorkspaceAcrRamAuthorizeUrlResponse({}));
3437
4176
  }
3438
4177
  /**
3439
- * Queries the RAM authorization URL for ACR in a workspace.
4178
+ * Queries the ACR RAM authorization URL of a workspace.
3440
4179
  *
3441
4180
  * @remarks
3442
- * ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is retained and only new permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. The acrInstanceId, namespace, and repository parameters are required. The region and account are derived from the workspace context. Returns the role resolved by the backend and the authorization URL for the target repository. This operation does not create ACR or agent execution versions, nor does it deliver runtime configurations. After authorization is complete, you can verify it and then create or update the agent without calling a separate Ensure operation.
4181
+ * ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is reused and permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. The acrInstanceId, namespace, and repository parameters are required. The region and account are derived from the workspace context. Returns the role resolved by the backend and the authorization URL for the target repository. This operation does not create ACR or agent execution versions, nor does it deliver runtime configurations. After authorization is complete, you can call Verify before creating or updating an agent, without the need to call an independent Ensure operation.
3443
4182
  *
3444
4183
  * @param request - GetWorkspaceAcrRamAuthorizeUrlRequest
3445
4184
  * @returns GetWorkspaceAcrRamAuthorizeUrlResponse
@@ -3665,6 +4404,59 @@ class Client extends openapi_core_1.default {
3665
4404
  let headers = {};
3666
4405
  return await this.installWorkspacePluginWithOptions(workspaceId, pluginName, request, headers, runtime);
3667
4406
  }
4407
+ /**
4408
+ * Queries the runtime environments supported for code deployment.
4409
+ *
4410
+ * @remarks
4411
+ * Queries the directories in the current workspace that can be used to create code package agents or switch runtime environments. Runtime environments are dynamically provided based on the current version configuration, and internal image addresses are not returned.
4412
+ * If maxResults is omitted or set to 0, the default value is 10. If the value is greater than 100, it is processed as 100. Omit nextToken in the first request. For subsequent requests, use the token returned in the previous response as is, and keep the workspace unchanged. If a directory change invalidates the token, query from the first page again. An empty nextToken indicates that there are no more pages. Existing agents continue to use the saved images for restarts, scaling, and regular updates.
4413
+ *
4414
+ * @param request - ListAgentCodeRuntimesRequest
4415
+ * @param headers - map
4416
+ * @param runtime - runtime options for this request RuntimeOptions
4417
+ * @returns ListAgentCodeRuntimesResponse
4418
+ */
4419
+ async listAgentCodeRuntimesWithOptions(workspaceId, request, headers, runtime) {
4420
+ request.validate();
4421
+ let query = {};
4422
+ if (!$dara.isNull(request.maxResults)) {
4423
+ query["maxResults"] = request.maxResults;
4424
+ }
4425
+ if (!$dara.isNull(request.nextToken)) {
4426
+ query["nextToken"] = request.nextToken;
4427
+ }
4428
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4429
+ headers: headers,
4430
+ query: openapi_core_2.OpenApiUtil.query(query),
4431
+ });
4432
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4433
+ action: "ListAgentCodeRuntimes",
4434
+ version: "2026-08-04",
4435
+ protocol: "HTTPS",
4436
+ pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/agent-code-runtimes`,
4437
+ method: "GET",
4438
+ authType: "AK",
4439
+ style: "ROA",
4440
+ reqBodyType: "json",
4441
+ bodyType: "json",
4442
+ });
4443
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAgentCodeRuntimesResponse({}));
4444
+ }
4445
+ /**
4446
+ * Queries the runtime environments supported for code deployment.
4447
+ *
4448
+ * @remarks
4449
+ * Queries the directories in the current workspace that can be used to create code package agents or switch runtime environments. Runtime environments are dynamically provided based on the current version configuration, and internal image addresses are not returned.
4450
+ * If maxResults is omitted or set to 0, the default value is 10. If the value is greater than 100, it is processed as 100. Omit nextToken in the first request. For subsequent requests, use the token returned in the previous response as is, and keep the workspace unchanged. If a directory change invalidates the token, query from the first page again. An empty nextToken indicates that there are no more pages. Existing agents continue to use the saved images for restarts, scaling, and regular updates.
4451
+ *
4452
+ * @param request - ListAgentCodeRuntimesRequest
4453
+ * @returns ListAgentCodeRuntimesResponse
4454
+ */
4455
+ async listAgentCodeRuntimes(workspaceId, request) {
4456
+ let runtime = new $dara.RuntimeOptions({});
4457
+ let headers = {};
4458
+ return await this.listAgentCodeRuntimesWithOptions(workspaceId, request, headers, runtime);
4459
+ }
3668
4460
  /**
3669
4461
  * Queries the list of IM channels for a specified agent.
3670
4462
  *
@@ -4009,12 +4801,12 @@ class Client extends openapi_core_1.default {
4009
4801
  return await this.listCredentialsWithOptions(workspaceId, request, headers, runtime);
4010
4802
  }
4011
4803
  /**
4012
- * 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.
4804
+ * Performs a paged query for paging through the custom agent summary in a specified workspace. For the complete configuration and the latest execute results, call GetCustomAgent.
4013
4805
  *
4014
4806
  * @remarks
4015
- * 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.
4016
- * 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.
4017
- * 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.
4807
+ * The default value of maxResults is 20 and the maximum value is 100. If this parameter is omitted or set to 0, the default value is used.
4808
+ * Omit nextToken in the first request. For subsequent requests, pass the nextToken returned in the previous response as is and keep the same workspace. The nextToken is an opaque token. Do not parse or construct it. An empty token in the response indicates that there are no more pages.
4809
+ * This operation returns the summaries of the current page and does not return the complete deployment configurations or the execution errors of the latest version. To obtain this information, call GetCustomAgent by using the agentId in items.
4018
4810
  *
4019
4811
  * @param request - ListCustomAgentsRequest
4020
4812
  * @param headers - map
@@ -4048,12 +4840,12 @@ class Client extends openapi_core_1.default {
4048
4840
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCustomAgentsResponse({}));
4049
4841
  }
4050
4842
  /**
4051
- * 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.
4843
+ * Performs a paged query for paging through the custom agent summary in a specified workspace. For the complete configuration and the latest execute results, call GetCustomAgent.
4052
4844
  *
4053
4845
  * @remarks
4054
- * 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.
4055
- * 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.
4056
- * 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.
4846
+ * The default value of maxResults is 20 and the maximum value is 100. If this parameter is omitted or set to 0, the default value is used.
4847
+ * Omit nextToken in the first request. For subsequent requests, pass the nextToken returned in the previous response as is and keep the same workspace. The nextToken is an opaque token. Do not parse or construct it. An empty token in the response indicates that there are no more pages.
4848
+ * This operation returns the summaries of the current page and does not return the complete deployment configurations or the execution errors of the latest version. To obtain this information, call GetCustomAgent by using the agentId in items.
4057
4849
  *
4058
4850
  * @param request - ListCustomAgentsRequest
4059
4851
  * @returns ListCustomAgentsResponse
@@ -4114,9 +4906,93 @@ class Client extends openapi_core_1.default {
4114
4906
  let headers = {};
4115
4907
  return await this.listExternalAgentsWithOptions(workspaceId, request, headers, runtime);
4116
4908
  }
4909
+ /**
4910
+ * Queries the departments of an identity provider by page.
4911
+ *
4912
+ * @remarks
4913
+ * Queries DingTalk or Feishu departments by hierarchy and page. Prerequisites include a bound identity provider, a user pool, valid application credentials, and address book read authorization. If you do not specify parentDepartmentId, the root hierarchy is queried. When expanding a node, specify the ID of the node to query its direct child departments. The hasChildren field indicates whether the node can be expanded and does not mean that child nodes are returned. The nextToken field is used only to query the next page of child departments under the current parent department. This query only reads the directory. It does not save the synchronization scope or import users. If a new department is added to a DingTalk or Feishu organization, re-query the corresponding parent department because the previous list does not reflect the latest directory.\\n\\nAuthorization information: The RAM action is agentcore:ListIdentityProviderDepartments, the access level is List, and the resource ARN is acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is required for authorization.\\n\\nIdempotency and retry: This operation is read-only and can be called repeatedly.\\n\\nCalling this API is free of charge. Operation records support ActionTrail auditing.\\n\\nResponse example:\\n```json\\n{\\n "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",\\n "message": "success",\\n "httpStatusCode": 200,\\n "code": "SUCCESS",\\n "success": true,\\n "maxResults": 50,\\n "nextToken": "",\\n "items": [\\n {\\n "id": "10001",\\n "name": "R&D Department",\\n "parentId": "1",\\n "memberCount": 12,\\n "hasChildren": true\\n }\\n ]\\n}\\n```
4914
+ *
4915
+ * @param request - ListIdentityProviderDepartmentsRequest
4916
+ * @param headers - map
4917
+ * @param runtime - runtime options for this request RuntimeOptions
4918
+ * @returns ListIdentityProviderDepartmentsResponse
4919
+ */
4920
+ async listIdentityProviderDepartmentsWithOptions(workspaceId, identityProviderType, request, headers, runtime) {
4921
+ request.validate();
4922
+ let query = {};
4923
+ if (!$dara.isNull(request.maxResults)) {
4924
+ query["maxResults"] = request.maxResults;
4925
+ }
4926
+ if (!$dara.isNull(request.nextToken)) {
4927
+ query["nextToken"] = request.nextToken;
4928
+ }
4929
+ if (!$dara.isNull(request.parentDepartmentId)) {
4930
+ query["parentDepartmentId"] = request.parentDepartmentId;
4931
+ }
4932
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4933
+ headers: headers,
4934
+ query: openapi_core_2.OpenApiUtil.query(query),
4935
+ });
4936
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4937
+ action: "ListIdentityProviderDepartments",
4938
+ version: "2026-08-04",
4939
+ protocol: "HTTPS",
4940
+ pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/identity-providers/${$dara.URL.percentEncode(identityProviderType)}/departments`,
4941
+ method: "GET",
4942
+ authType: "AK",
4943
+ style: "ROA",
4944
+ reqBodyType: "json",
4945
+ bodyType: "json",
4946
+ });
4947
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListIdentityProviderDepartmentsResponse({}));
4948
+ }
4949
+ /**
4950
+ * Queries the departments of an identity provider by page.
4951
+ *
4952
+ * @remarks
4953
+ * Queries DingTalk or Feishu departments by hierarchy and page. Prerequisites include a bound identity provider, a user pool, valid application credentials, and address book read authorization. If you do not specify parentDepartmentId, the root hierarchy is queried. When expanding a node, specify the ID of the node to query its direct child departments. The hasChildren field indicates whether the node can be expanded and does not mean that child nodes are returned. The nextToken field is used only to query the next page of child departments under the current parent department. This query only reads the directory. It does not save the synchronization scope or import users. If a new department is added to a DingTalk or Feishu organization, re-query the corresponding parent department because the previous list does not reflect the latest directory.\\n\\nAuthorization information: The RAM action is agentcore:ListIdentityProviderDepartments, the access level is List, and the resource ARN is acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is required for authorization.\\n\\nIdempotency and retry: This operation is read-only and can be called repeatedly.\\n\\nCalling this API is free of charge. Operation records support ActionTrail auditing.\\n\\nResponse example:\\n```json\\n{\\n "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",\\n "message": "success",\\n "httpStatusCode": 200,\\n "code": "SUCCESS",\\n "success": true,\\n "maxResults": 50,\\n "nextToken": "",\\n "items": [\\n {\\n "id": "10001",\\n "name": "R&D Department",\\n "parentId": "1",\\n "memberCount": 12,\\n "hasChildren": true\\n }\\n ]\\n}\\n```
4954
+ *
4955
+ * @param request - ListIdentityProviderDepartmentsRequest
4956
+ * @returns ListIdentityProviderDepartmentsResponse
4957
+ */
4958
+ async listIdentityProviderDepartments(workspaceId, identityProviderType, request) {
4959
+ let runtime = new $dara.RuntimeOptions({});
4960
+ let headers = {};
4961
+ return await this.listIdentityProviderDepartmentsWithOptions(workspaceId, identityProviderType, request, headers, runtime);
4962
+ }
4117
4963
  /**
4118
4964
  * Queries the external identity providers bound to a specified workspace. Each workspace can be bound to at most one external identity provider, so the response returns at most one record. Application secret configurations are not returned.
4119
4965
  *
4966
+ * @remarks
4967
+ * ## Features and prerequisites
4968
+ * Returns the local binding summary without querying the actual SAML or SCIM configurations of AgentIdentity. If no binding exists, items is an empty array. A workspace currently supports only one external binding. The default value of maxResults is 10, and the valid range is 1 to 100. Currently, nextToken must be omitted or left empty. A non-empty value returns InvalidParameter, and fictitious multi-page results are not supported.
4969
+ * The status of CustomSSO indicates the task status of shared resources and logon configurations. You must check protocol and saml to determine whether SAML is configured. To query SCIM configurations, independently call GetIdentityProviderSCIM. The list operation does not issue tokens and does not return the vendor appSecret, encryptKey, or verificationToken.
4970
+ * ## Requests and examples
4971
+ * GET /workspaces/{workspaceId}/identity-providers
4972
+ * Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or Security Token Service (STS) token that has the required permissions on the identity source resources of the workspace. In the following examples, ws-example, URLs, certificates, and tokens are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example shows only the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Retain the requestId for troubleshooting and do not record secrets. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
4973
+ * ```text
4974
+ * GET /workspaces/ws-example/identity-providers?maxResults=10
4975
+ * ```
4976
+ * ## Response examples
4977
+ * ```json
4978
+ * {
4979
+ * "items": [
4980
+ * {
4981
+ * "workspaceId": "ws-example",
4982
+ * "identityProviderType": "CustomSSO",
4983
+ * "status": "READY",
4984
+ * "loginEnabled": false,
4985
+ * "syncEnabled": false
4986
+ * }
4987
+ * ],
4988
+ * "maxResults": 10,
4989
+ * "totalCount": 1
4990
+ * }
4991
+ * ```
4992
+ * ## Errors and handling
4993
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. Synchronous calls to upstream services that fail may return 503 IdentityProviderProvisioningUnavailable. Retain the request ID for troubleshooting and do not interpret read failures as unconfigured. Actual authentication and workspace non-existence errors follow common error handling.
4994
+ * 400 InvalidParameter: maxResults is out of bounds, or nextToken is not empty, which is currently not supported. If a query fails, an error is displayed instead of resetting the status to unconfigured.
4995
+ *
4120
4996
  * @param request - ListIdentityProvidersRequest
4121
4997
  * @param headers - map
4122
4998
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4151,6 +5027,36 @@ class Client extends openapi_core_1.default {
4151
5027
  /**
4152
5028
  * Queries the external identity providers bound to a specified workspace. Each workspace can be bound to at most one external identity provider, so the response returns at most one record. Application secret configurations are not returned.
4153
5029
  *
5030
+ * @remarks
5031
+ * ## Features and prerequisites
5032
+ * Returns the local binding summary without querying the actual SAML or SCIM configurations of AgentIdentity. If no binding exists, items is an empty array. A workspace currently supports only one external binding. The default value of maxResults is 10, and the valid range is 1 to 100. Currently, nextToken must be omitted or left empty. A non-empty value returns InvalidParameter, and fictitious multi-page results are not supported.
5033
+ * The status of CustomSSO indicates the task status of shared resources and logon configurations. You must check protocol and saml to determine whether SAML is configured. To query SCIM configurations, independently call GetIdentityProviderSCIM. The list operation does not issue tokens and does not return the vendor appSecret, encryptKey, or verificationToken.
5034
+ * ## Requests and examples
5035
+ * GET /workspaces/{workspaceId}/identity-providers
5036
+ * Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or Security Token Service (STS) token that has the required permissions on the identity source resources of the workspace. In the following examples, ws-example, URLs, certificates, and tokens are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example shows only the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Retain the requestId for troubleshooting and do not record secrets. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
5037
+ * ```text
5038
+ * GET /workspaces/ws-example/identity-providers?maxResults=10
5039
+ * ```
5040
+ * ## Response examples
5041
+ * ```json
5042
+ * {
5043
+ * "items": [
5044
+ * {
5045
+ * "workspaceId": "ws-example",
5046
+ * "identityProviderType": "CustomSSO",
5047
+ * "status": "READY",
5048
+ * "loginEnabled": false,
5049
+ * "syncEnabled": false
5050
+ * }
5051
+ * ],
5052
+ * "maxResults": 10,
5053
+ * "totalCount": 1
5054
+ * }
5055
+ * ```
5056
+ * ## Errors and handling
5057
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. Synchronous calls to upstream services that fail may return 503 IdentityProviderProvisioningUnavailable. Retain the request ID for troubleshooting and do not interpret read failures as unconfigured. Actual authentication and workspace non-existence errors follow common error handling.
5058
+ * 400 InvalidParameter: maxResults is out of bounds, or nextToken is not empty, which is currently not supported. If a query fails, an error is displayed instead of resetting the status to unconfigured.
5059
+ *
4154
5060
  * @param request - ListIdentityProvidersRequest
4155
5061
  * @returns ListIdentityProvidersResponse
4156
5062
  */
@@ -4159,6 +5065,87 @@ class Client extends openapi_core_1.default {
4159
5065
  let headers = {};
4160
5066
  return await this.listIdentityProvidersWithOptions(workspaceId, request, headers, runtime);
4161
5067
  }
5068
+ /**
5069
+ * Queries image caches.
5070
+ *
5071
+ * @remarks
5072
+ * Queries the logical image caches within the current account, region, and workspace. WorkspaceId is required, and caches are not visible across workspaces. All conditions filter the full set using the AND operator before pagination is calculated. Results are sorted in descending order of logical resource creation time and ascending order of ImageId. The cursor is bound to the account, region, workspace, all filters, and the sort order. Returns the complete cache objects, the AgentCount based on the configuration switch, and the actual deletion eligibility. Query failures do not return a disguised empty list, and the nextToken on the last page is an empty string.
5073
+ *
5074
+ * @param request - ListImageCachesRequest
5075
+ * @param headers - map
5076
+ * @param runtime - runtime options for this request RuntimeOptions
5077
+ * @returns ListImageCachesResponse
5078
+ */
5079
+ async listImageCachesWithOptions(request, headers, runtime) {
5080
+ request.validate();
5081
+ let query = {};
5082
+ if (!$dara.isNull(request.acrInstanceId)) {
5083
+ query["acrInstanceId"] = request.acrInstanceId;
5084
+ }
5085
+ if (!$dara.isNull(request.digest)) {
5086
+ query["digest"] = request.digest;
5087
+ }
5088
+ if (!$dara.isNull(request.imageRefContains)) {
5089
+ query["imageRefContains"] = request.imageRefContains;
5090
+ }
5091
+ if (!$dara.isNull(request.maxResults)) {
5092
+ query["maxResults"] = request.maxResults;
5093
+ }
5094
+ if (!$dara.isNull(request.namespace)) {
5095
+ query["namespace"] = request.namespace;
5096
+ }
5097
+ if (!$dara.isNull(request.nextToken)) {
5098
+ query["nextToken"] = request.nextToken;
5099
+ }
5100
+ if (!$dara.isNull(request.regionId)) {
5101
+ query["regionId"] = request.regionId;
5102
+ }
5103
+ if (!$dara.isNull(request.registry)) {
5104
+ query["registry"] = request.registry;
5105
+ }
5106
+ if (!$dara.isNull(request.repository)) {
5107
+ query["repository"] = request.repository;
5108
+ }
5109
+ if (!$dara.isNull(request.status)) {
5110
+ query["status"] = request.status;
5111
+ }
5112
+ if (!$dara.isNull(request.tag)) {
5113
+ query["tag"] = request.tag;
5114
+ }
5115
+ if (!$dara.isNull(request.workspaceId)) {
5116
+ query["workspaceId"] = request.workspaceId;
5117
+ }
5118
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5119
+ headers: headers,
5120
+ query: openapi_core_2.OpenApiUtil.query(query),
5121
+ });
5122
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5123
+ action: "ListImageCaches",
5124
+ version: "2026-08-04",
5125
+ protocol: "HTTPS",
5126
+ pathname: `/image-caches`,
5127
+ method: "GET",
5128
+ authType: "AK",
5129
+ style: "ROA",
5130
+ reqBodyType: "json",
5131
+ bodyType: "json",
5132
+ });
5133
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListImageCachesResponse({}));
5134
+ }
5135
+ /**
5136
+ * Queries image caches.
5137
+ *
5138
+ * @remarks
5139
+ * Queries the logical image caches within the current account, region, and workspace. WorkspaceId is required, and caches are not visible across workspaces. All conditions filter the full set using the AND operator before pagination is calculated. Results are sorted in descending order of logical resource creation time and ascending order of ImageId. The cursor is bound to the account, region, workspace, all filters, and the sort order. Returns the complete cache objects, the AgentCount based on the configuration switch, and the actual deletion eligibility. Query failures do not return a disguised empty list, and the nextToken on the last page is an empty string.
5140
+ *
5141
+ * @param request - ListImageCachesRequest
5142
+ * @returns ListImageCachesResponse
5143
+ */
5144
+ async listImageCaches(request) {
5145
+ let runtime = new $dara.RuntimeOptions({});
5146
+ let headers = {};
5147
+ return await this.listImageCachesWithOptions(request, headers, runtime);
5148
+ }
4162
5149
  /**
4163
5150
  * Queries the list of managed agents in a specified workspace.
4164
5151
  *
@@ -4392,10 +5379,10 @@ class Client extends openapi_core_1.default {
4392
5379
  return await this.listMcpsWithOptions(workspaceId, request, headers, runtime);
4393
5380
  }
4394
5381
  /**
4395
- * 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.
5382
+ * Performs a paged query on long-term memory records. The results can be filtered independently by user ID, agent ID, and session ID. Paging is supported.
4396
5383
  *
4397
5384
  * @remarks
4398
- * 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.
5385
+ * Performs a paged query on long-term memory records. The results can be filtered independently by user ID, agent ID, and session ID. Paging is supported.
4399
5386
  *
4400
5387
  * @param request - ListMemoriesRequest
4401
5388
  * @param headers - map
@@ -4438,10 +5425,10 @@ class Client extends openapi_core_1.default {
4438
5425
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMemoriesResponse({}));
4439
5426
  }
4440
5427
  /**
4441
- * 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.
5428
+ * Performs a paged query on long-term memory records. The results can be filtered independently by user ID, agent ID, and session ID. Paging is supported.
4442
5429
  *
4443
5430
  * @remarks
4444
- * 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.
5431
+ * Performs a paged query on long-term memory records. The results can be filtered independently by user ID, agent ID, and session ID. Paging is supported.
4445
5432
  *
4446
5433
  * @param request - ListMemoriesRequest
4447
5434
  * @returns ListMemoriesResponse
@@ -4452,10 +5439,10 @@ class Client extends openapi_core_1.default {
4452
5439
  return await this.listMemoriesWithOptions(workspaceId, memoryStoreName, request, headers, runtime);
4453
5440
  }
4454
5441
  /**
4455
- * 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.
5442
+ * Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
4456
5443
  *
4457
5444
  * @remarks
4458
- * 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.
5445
+ * Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
4459
5446
  *
4460
5447
  * @param request - ListMemorySessionMessagesRequest
4461
5448
  * @param headers - map
@@ -4498,10 +5485,10 @@ class Client extends openapi_core_1.default {
4498
5485
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMemorySessionMessagesResponse({}));
4499
5486
  }
4500
5487
  /**
4501
- * 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.
5488
+ * Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
4502
5489
  *
4503
5490
  * @remarks
4504
- * 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.
5491
+ * Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
4505
5492
  *
4506
5493
  * @param request - ListMemorySessionMessagesRequest
4507
5494
  * @returns ListMemorySessionMessagesResponse
@@ -4512,10 +5499,10 @@ class Client extends openapi_core_1.default {
4512
5499
  return await this.listMemorySessionMessagesWithOptions(workspaceId, memoryStoreName, request, headers, runtime);
4513
5500
  }
4514
5501
  /**
4515
- * Performs a paging query for sessions in a MemoryStore, and allows independent filtering by user ID and agent ID.
5502
+ * Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
4516
5503
  *
4517
5504
  * @remarks
4518
- * Performs a paging query for sessions in a MemoryStore, and allows independent filtering by user ID and agent ID.
5505
+ * Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
4519
5506
  *
4520
5507
  * @param request - ListMemorySessionsRequest
4521
5508
  * @param headers - map
@@ -4555,10 +5542,10 @@ class Client extends openapi_core_1.default {
4555
5542
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMemorySessionsResponse({}));
4556
5543
  }
4557
5544
  /**
4558
- * Performs a paging query for sessions in a MemoryStore, and allows independent filtering by user ID and agent ID.
5545
+ * Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
4559
5546
  *
4560
5547
  * @remarks
4561
- * Performs a paging query for sessions in a MemoryStore, and allows independent filtering by user ID and agent ID.
5548
+ * Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
4562
5549
  *
4563
5550
  * @param request - ListMemorySessionsRequest
4564
5551
  * @returns ListMemorySessionsResponse
@@ -4569,10 +5556,10 @@ class Client extends openapi_core_1.default {
4569
5556
  return await this.listMemorySessionsWithOptions(workspaceId, memoryStoreName, request, headers, runtime);
4570
5557
  }
4571
5558
  /**
4572
- * Queries MemoryStores in a specified workspace by using paging.
5559
+ * Performs a paged query for MemoryStores in a specified workspace with paging.
4573
5560
  *
4574
5561
  * @remarks
4575
- * Queries MemoryStores in a specified workspace by using paging.
5562
+ * Performs a paged query for MemoryStores in a specified workspace with paging.
4576
5563
  *
4577
5564
  * @param request - ListMemoryStoresRequest
4578
5565
  * @param headers - map
@@ -4606,10 +5593,10 @@ class Client extends openapi_core_1.default {
4606
5593
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMemoryStoresResponse({}));
4607
5594
  }
4608
5595
  /**
4609
- * Queries MemoryStores in a specified workspace by using paging.
5596
+ * Performs a paged query for MemoryStores in a specified workspace with paging.
4610
5597
  *
4611
5598
  * @remarks
4612
- * Queries MemoryStores in a specified workspace by using paging.
5599
+ * Performs a paged query for MemoryStores in a specified workspace with paging.
4613
5600
  *
4614
5601
  * @param request - ListMemoryStoresRequest
4615
5602
  * @returns ListMemoryStoresResponse
@@ -5591,10 +6578,74 @@ class Client extends openapi_core_1.default {
5591
6578
  return await this.resetUserPasswordWithOptions(workspaceId, request, headers, runtime);
5592
6579
  }
5593
6580
  /**
5594
- * Retrieves long-term memory from a MemoryStore based on semantics queries.
6581
+ * Retries the image cache.
6582
+ *
6583
+ * @remarks
6584
+ * Retries the image cache for the original ImageId in the current workspace. WorkspaceId is required. The business request body is not required and can be omitted or provided as an empty object. The source authorization and transfer network reuse the trusted context of the original registration. If a digest exists, the retry uses the original digest. If no digest exists, the original tag is resolved again. A new request for a FAILED status can start a new production round. PENDING and READY statuses are reused. DELETING status is rejected, and deleted resources are not recreated. PUBLIC and PRIVATE statuses reuse the pull authorization of the original workspace. Returns a complete acceptance snapshot and retains the original ImageId and CreatedAt. ClientToken does not guarantee request deduplication. If the result is not confirmed, query the real-time status first before deciding whether to resubmit.
6585
+ *
6586
+ * @param tmpReq - RetryImageCacheRequest
6587
+ * @param headers - map
6588
+ * @param runtime - runtime options for this request RuntimeOptions
6589
+ * @returns RetryImageCacheResponse
6590
+ */
6591
+ async retryImageCacheWithOptions(imageId, tmpReq, headers, runtime) {
6592
+ tmpReq.validate();
6593
+ let request = new $_model.RetryImageCacheShrinkRequest({});
6594
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
6595
+ if (!$dara.isNull(tmpReq.body)) {
6596
+ request.bodyShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.body, "body", "json");
6597
+ }
6598
+ let query = {};
6599
+ if (!$dara.isNull(request.clientToken)) {
6600
+ query["clientToken"] = request.clientToken;
6601
+ }
6602
+ if (!$dara.isNull(request.regionId)) {
6603
+ query["regionId"] = request.regionId;
6604
+ }
6605
+ if (!$dara.isNull(request.workspaceId)) {
6606
+ query["workspaceId"] = request.workspaceId;
6607
+ }
6608
+ let body = {};
6609
+ if (!$dara.isNull(request.bodyShrink)) {
6610
+ body["body"] = request.bodyShrink;
6611
+ }
6612
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6613
+ headers: headers,
6614
+ query: openapi_core_2.OpenApiUtil.query(query),
6615
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
6616
+ });
6617
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6618
+ action: "RetryImageCache",
6619
+ version: "2026-08-04",
6620
+ protocol: "HTTPS",
6621
+ pathname: `/image-caches/${$dara.URL.percentEncode(imageId)}/retry`,
6622
+ method: "POST",
6623
+ authType: "AK",
6624
+ style: "ROA",
6625
+ reqBodyType: "formData",
6626
+ bodyType: "json",
6627
+ });
6628
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RetryImageCacheResponse({}));
6629
+ }
6630
+ /**
6631
+ * Retries the image cache.
6632
+ *
6633
+ * @remarks
6634
+ * Retries the image cache for the original ImageId in the current workspace. WorkspaceId is required. The business request body is not required and can be omitted or provided as an empty object. The source authorization and transfer network reuse the trusted context of the original registration. If a digest exists, the retry uses the original digest. If no digest exists, the original tag is resolved again. A new request for a FAILED status can start a new production round. PENDING and READY statuses are reused. DELETING status is rejected, and deleted resources are not recreated. PUBLIC and PRIVATE statuses reuse the pull authorization of the original workspace. Returns a complete acceptance snapshot and retains the original ImageId and CreatedAt. ClientToken does not guarantee request deduplication. If the result is not confirmed, query the real-time status first before deciding whether to resubmit.
6635
+ *
6636
+ * @param request - RetryImageCacheRequest
6637
+ * @returns RetryImageCacheResponse
6638
+ */
6639
+ async retryImageCache(imageId, request) {
6640
+ let runtime = new $dara.RuntimeOptions({});
6641
+ let headers = {};
6642
+ return await this.retryImageCacheWithOptions(imageId, request, headers, runtime);
6643
+ }
6644
+ /**
6645
+ * Retrieves long-term memory from a MemoryStore based on semantics.
5595
6646
  *
5596
6647
  * @remarks
5597
- * Retrieves long-term memory from a MemoryStore based on semantics queries.
6648
+ * Retrieves long-term memory from a MemoryStore based on semantics.
5598
6649
  *
5599
6650
  * @param tmpReq - SearchMemoriesRequest
5600
6651
  * @param headers - map
@@ -5630,10 +6681,10 @@ class Client extends openapi_core_1.default {
5630
6681
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.SearchMemoriesResponse({}));
5631
6682
  }
5632
6683
  /**
5633
- * Retrieves long-term memory from a MemoryStore based on semantics queries.
6684
+ * Retrieves long-term memory from a MemoryStore based on semantics.
5634
6685
  *
5635
6686
  * @remarks
5636
- * Retrieves long-term memory from a MemoryStore based on semantics queries.
6687
+ * Retrieves long-term memory from a MemoryStore based on semantics.
5637
6688
  *
5638
6689
  * @param request - SearchMemoriesRequest
5639
6690
  * @returns SearchMemoriesResponse
@@ -6040,9 +7091,11 @@ class Client extends openapi_core_1.default {
6040
7091
  *
6041
7092
  * @remarks
6042
7093
  * Provide at least one top-level field to update. Omitted top-level fields retain their original configurations. When providing a configuration object, specify its required subfields and include any optional configurations that you want to retain. Arrays are replaced as a whole. Pass an empty array [] to clear a list. The agenticFsMounts field does not accept null. Pass null for the description field to clear the description, and pass null for the healthCheck field to remove the health check.
6043
- * 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 Alibaba Cloud Container Registry (ACR) container image deployment is supported. Omit the artifact.code field.
6044
- * When providing the runtime field, both compute and sessionPolicy must be present. If you omit hpa or some of its fields, unspecified elastic configurations use default values. To retain the original elastic configurations, you must 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 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.
6045
- * 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.
7094
+ * When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field.
7095
+ * In code package pattern, specify artifact.port and the sourceUri, languageRuntime, and entrypoint fields of artifact.code. Do not specify the container field at the same time. Dependencies must be packaged by the user. ZIP and TAR.GZ formats are supported, and the compressed package size cannot exceed 500,000,000 bytes. Query the runtime environment identity by calling the ListAgentCodeRuntimes operation. The sourceUri field supports oss:// addresses or HTTPS object addresses of standard OSS public domain names, including signed URLs. For local files, first call the GetAgentCodePackageUploadUrl operation to obtain an upload URL, upload the file directly, and then commit the returned sourceUri.
7096
+ * When submitting a new code package source, the backend rechecks read permissions, objects, and sizes. The configuration is saved only after the transfer succeeds. If the transfer fails, the current configuration is not saved. Saved fixed packages can be reused. Set the client timeout to 210 seconds for code package requests. Archive integrity and secure decompression are checked at startup. A successful acceptance does not indicate that the agent is ready to run.
7097
+ * When providing the runtime field, the compute and sessionPolicy fields must be provided at the same time. If the hpa field or its subfields are omitted, unspecified elastic configurations use default values. To retain the original elastic configurations, provide them together. When providing the network field, omitted access items are treated as allowed, but actual access is still restricted by the workspace network configurations. To retain the original restrictions, provide both accessInternet and accessVpc. When providing the healthCheck field, the port field is required, and other unspecified items use default values. When providing the logging.sls field, both project and logstore must be specified.
7098
+ * The update is an asynchronous process. A successful response indicates that the request is accepted. Call the GetCustomAgent operation to query latestSpecVersion, latestVersionStatus, and latestExecutionError, and check the status field to confirm the update result.
6046
7099
  * The clientToken field currently does not provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold field for health checks currently does not take effect. Omit this field.
6047
7100
  *
6048
7101
  * @param tmpReq - UpdateCustomAgentRequest
@@ -6088,9 +7141,11 @@ class Client extends openapi_core_1.default {
6088
7141
  *
6089
7142
  * @remarks
6090
7143
  * Provide at least one top-level field to update. Omitted top-level fields retain their original configurations. When providing a configuration object, specify its required subfields and include any optional configurations that you want to retain. Arrays are replaced as a whole. Pass an empty array [] to clear a list. The agenticFsMounts field does not accept null. Pass null for the description field to clear the description, and pass null for the healthCheck field to remove the health check.
6091
- * 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 Alibaba Cloud Container Registry (ACR) container image deployment is supported. Omit the artifact.code field.
6092
- * When providing the runtime field, both compute and sessionPolicy must be present. If you omit hpa or some of its fields, unspecified elastic configurations use default values. To retain the original elastic configurations, you must 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 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.
6093
- * 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.
7144
+ * When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field.
7145
+ * In code package pattern, specify artifact.port and the sourceUri, languageRuntime, and entrypoint fields of artifact.code. Do not specify the container field at the same time. Dependencies must be packaged by the user. ZIP and TAR.GZ formats are supported, and the compressed package size cannot exceed 500,000,000 bytes. Query the runtime environment identity by calling the ListAgentCodeRuntimes operation. The sourceUri field supports oss:// addresses or HTTPS object addresses of standard OSS public domain names, including signed URLs. For local files, first call the GetAgentCodePackageUploadUrl operation to obtain an upload URL, upload the file directly, and then commit the returned sourceUri.
7146
+ * When submitting a new code package source, the backend rechecks read permissions, objects, and sizes. The configuration is saved only after the transfer succeeds. If the transfer fails, the current configuration is not saved. Saved fixed packages can be reused. Set the client timeout to 210 seconds for code package requests. Archive integrity and secure decompression are checked at startup. A successful acceptance does not indicate that the agent is ready to run.
7147
+ * When providing the runtime field, the compute and sessionPolicy fields must be provided at the same time. If the hpa field or its subfields are omitted, unspecified elastic configurations use default values. To retain the original elastic configurations, provide them together. When providing the network field, omitted access items are treated as allowed, but actual access is still restricted by the workspace network configurations. To retain the original restrictions, provide both accessInternet and accessVpc. When providing the healthCheck field, the port field is required, and other unspecified items use default values. When providing the logging.sls field, both project and logstore must be specified.
7148
+ * The update is an asynchronous process. A successful response indicates that the request is accepted. Call the GetCustomAgent operation to query latestSpecVersion, latestVersionStatus, and latestExecutionError, and check the status field to confirm the update result.
6094
7149
  * The clientToken field currently does not provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold field for health checks currently does not take effect. Omit this field.
6095
7150
  *
6096
7151
  * @param request - UpdateCustomAgentRequest
@@ -6160,7 +7215,49 @@ class Client extends openapi_core_1.default {
6160
7215
  return await this.updateExternalAgentWithOptions(workspaceId, agentId, request, headers, runtime);
6161
7216
  }
6162
7217
  /**
6163
- * 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.
7218
+ * Updates the logon switch, member synchronization switch, or application configuration of a specified external identity provider for a workspace. Unspecified properties remain unchanged. The update is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
7219
+ *
7220
+ * @remarks
7221
+ * ## Features and prerequisites
7222
+ * CustomSSO uses protocol=SAML and saml to save logon configurations. It does not accept legacy metadata or syncEnabled. To toggle the SCIM switch, you must call UpdateIdentityProviderSCIM. OIDC is not supported. You can either import XML or manually enter fields. If you import XML, metadataXml must be a single IdP EntityDescriptor XML text of up to 1 MiB. URLs or file paths are not accepted, and DTDs or external entities are prohibited. If you manually enter fields, you must provide entityId, loginUrl, bindingType, and a non-empty x509Certificates array at the same time. The entityId must be non-empty and up to 2,048 characters in length, and cannot be replaced after configuration. The loginUrl must be an absolute HTTPS URL without user credentials or fragments. The bindingType must be HTTP-Redirect or HTTP-POST. Signing certificates must be valid X.509 certificates, and up to 10 certificates are supported.
7223
+ * Saving the configuration does not automatically enable logon. A valid SAML configuration must exist before you enable logon. Setting loginEnabled=false only disables logon and does not clear SAML or SCIM configurations. You can independently pass Boolean values for jitProvisionEnabled and jitUpdateEnabled. If omitted, the existing values are retained. If omitted for the first time, the default value is false. Updating only the JIT switches also requires a valid SAML configuration. If the request is unchanged, the current binding may be returned directly without generating a new task. A successful update returns UPDATING. You can call GetIdentityProvider and wait for READY or UPDATE_FAILED. If the update fails, you can resubmit the request. An HTTP success response does not indicate that the upstream configuration has taken effect.
7224
+ * DingTalk and Feishu continue to use vendor metadata and logon or synchronization switches. They do not accept protocol or saml. Updating vendor metadata supports partial updates. You only need to submit the fields to be modified. Unsubmitted fields and saved credentials remain unchanged. The server merges the new and old values and then validates the complete configuration. Explicitly submitted fields cannot be null, empty strings, or blank strings. For example, you can submit only appSecret to update the secret. The existing vendor semantics of syncScope are retained. Saving the scope does not automatically trigger full synchronization.
7225
+ * ## Request and examples
7226
+ * PUT /workspaces/{workspaceId}/identity-providers/{identityProviderType}
7227
+ * Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or STS token that has permissions on the identity provider resources of the workspace. In the following examples, ws-example, URLs, certificates, and tokens are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example shows only the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not log secrets. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
7228
+ * ```text
7229
+ * PUT /workspaces/ws-example/identity-providers/CustomSSO
7230
+ * {
7231
+ * "protocol": "SAML",
7232
+ * "saml": {
7233
+ * "entityId": "https://idp.example.com/entity",
7234
+ * "loginUrl": "https://idp.example.com/sso",
7235
+ * "bindingType": "HTTP-Redirect",
7236
+ * "x509Certificates": [
7237
+ * "<Valid PEM X.509 certificate text>"
7238
+ * ],
7239
+ * "jitProvisionEnabled": false,
7240
+ * "jitUpdateEnabled": false
7241
+ * }
7242
+ * }
7243
+ * Toggle logon only: {"loginEnabled": true}
7244
+ * ```
7245
+ * ## Response example
7246
+ * ```json
7247
+ * {
7248
+ * "data": {
7249
+ * "workspaceId": "ws-example",
7250
+ * "identityProviderType": "CustomSSO",
7251
+ * "protocol": "SAML",
7252
+ * "loginEnabled": false,
7253
+ * "syncEnabled": false,
7254
+ * "status": "UPDATING"
7255
+ * }
7256
+ * }
7257
+ * ```
7258
+ * ## Errors and handling
7259
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. Synchronous calls to the upstream may return 503 IdentityProviderProvisioningUnavailable if they fail. Keep the request ID for troubleshooting and do not interpret read failures as unconfigured. Actual authentication and workspace non-existence errors follow common error handling.
7260
+ * 400 InvalidParameter: XML and manual entry are mixed, manual entry items are missing, certificates are invalid, the protocol is not supported, entityId is changed, logon is enabled without configuration, or CustomSSO submits metadata or syncEnabled. 409 IdentityProviderOperationConflict: The current binding does not allow updates. CustomSSO supports resubmitting configurations from UPDATE_FAILED.
6164
7261
  *
6165
7262
  * @param tmpReq - UpdateIdentityProviderRequest
6166
7263
  * @param headers - map
@@ -6196,7 +7293,49 @@ class Client extends openapi_core_1.default {
6196
7293
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateIdentityProviderResponse({}));
6197
7294
  }
6198
7295
  /**
6199
- * 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.
7296
+ * Updates the logon switch, member synchronization switch, or application configuration of a specified external identity provider for a workspace. Unspecified properties remain unchanged. The update is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
7297
+ *
7298
+ * @remarks
7299
+ * ## Features and prerequisites
7300
+ * CustomSSO uses protocol=SAML and saml to save logon configurations. It does not accept legacy metadata or syncEnabled. To toggle the SCIM switch, you must call UpdateIdentityProviderSCIM. OIDC is not supported. You can either import XML or manually enter fields. If you import XML, metadataXml must be a single IdP EntityDescriptor XML text of up to 1 MiB. URLs or file paths are not accepted, and DTDs or external entities are prohibited. If you manually enter fields, you must provide entityId, loginUrl, bindingType, and a non-empty x509Certificates array at the same time. The entityId must be non-empty and up to 2,048 characters in length, and cannot be replaced after configuration. The loginUrl must be an absolute HTTPS URL without user credentials or fragments. The bindingType must be HTTP-Redirect or HTTP-POST. Signing certificates must be valid X.509 certificates, and up to 10 certificates are supported.
7301
+ * Saving the configuration does not automatically enable logon. A valid SAML configuration must exist before you enable logon. Setting loginEnabled=false only disables logon and does not clear SAML or SCIM configurations. You can independently pass Boolean values for jitProvisionEnabled and jitUpdateEnabled. If omitted, the existing values are retained. If omitted for the first time, the default value is false. Updating only the JIT switches also requires a valid SAML configuration. If the request is unchanged, the current binding may be returned directly without generating a new task. A successful update returns UPDATING. You can call GetIdentityProvider and wait for READY or UPDATE_FAILED. If the update fails, you can resubmit the request. An HTTP success response does not indicate that the upstream configuration has taken effect.
7302
+ * DingTalk and Feishu continue to use vendor metadata and logon or synchronization switches. They do not accept protocol or saml. Updating vendor metadata supports partial updates. You only need to submit the fields to be modified. Unsubmitted fields and saved credentials remain unchanged. The server merges the new and old values and then validates the complete configuration. Explicitly submitted fields cannot be null, empty strings, or blank strings. For example, you can submit only appSecret to update the secret. The existing vendor semantics of syncScope are retained. Saving the scope does not automatically trigger full synchronization.
7303
+ * ## Request and examples
7304
+ * PUT /workspaces/{workspaceId}/identity-providers/{identityProviderType}
7305
+ * Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or STS token that has permissions on the identity provider resources of the workspace. In the following examples, ws-example, URLs, certificates, and tokens are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example shows only the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not log secrets. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
7306
+ * ```text
7307
+ * PUT /workspaces/ws-example/identity-providers/CustomSSO
7308
+ * {
7309
+ * "protocol": "SAML",
7310
+ * "saml": {
7311
+ * "entityId": "https://idp.example.com/entity",
7312
+ * "loginUrl": "https://idp.example.com/sso",
7313
+ * "bindingType": "HTTP-Redirect",
7314
+ * "x509Certificates": [
7315
+ * "<Valid PEM X.509 certificate text>"
7316
+ * ],
7317
+ * "jitProvisionEnabled": false,
7318
+ * "jitUpdateEnabled": false
7319
+ * }
7320
+ * }
7321
+ * Toggle logon only: {"loginEnabled": true}
7322
+ * ```
7323
+ * ## Response example
7324
+ * ```json
7325
+ * {
7326
+ * "data": {
7327
+ * "workspaceId": "ws-example",
7328
+ * "identityProviderType": "CustomSSO",
7329
+ * "protocol": "SAML",
7330
+ * "loginEnabled": false,
7331
+ * "syncEnabled": false,
7332
+ * "status": "UPDATING"
7333
+ * }
7334
+ * }
7335
+ * ```
7336
+ * ## Errors and handling
7337
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. Synchronous calls to the upstream may return 503 IdentityProviderProvisioningUnavailable if they fail. Keep the request ID for troubleshooting and do not interpret read failures as unconfigured. Actual authentication and workspace non-existence errors follow common error handling.
7338
+ * 400 InvalidParameter: XML and manual entry are mixed, manual entry items are missing, certificates are invalid, the protocol is not supported, entityId is changed, logon is enabled without configuration, or CustomSSO submits metadata or syncEnabled. 409 IdentityProviderOperationConflict: The current binding does not allow updates. CustomSSO supports resubmitting configurations from UPDATE_FAILED.
6200
7339
  *
6201
7340
  * @param request - UpdateIdentityProviderRequest
6202
7341
  * @returns UpdateIdentityProviderResponse
@@ -6380,10 +7519,10 @@ class Client extends openapi_core_1.default {
6380
7519
  return await this.updateMcpTemplateConfigWithOptions(workspaceId, mcpServerId, request, headers, runtime);
6381
7520
  }
6382
7521
  /**
6383
- * Updates the long-term memory text or metadata based on the memory ID.
7522
+ * Updates the text or metadata of a long-term memory based on the memory ID.
6384
7523
  *
6385
7524
  * @remarks
6386
- * Updates the long-term memory text or metadata based on the memory ID.
7525
+ * Updates the text or metadata of a long-term memory based on the memory ID.
6387
7526
  *
6388
7527
  * @param tmpReq - UpdateMemoryRequest
6389
7528
  * @param headers - map
@@ -6419,10 +7558,10 @@ class Client extends openapi_core_1.default {
6419
7558
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateMemoryResponse({}));
6420
7559
  }
6421
7560
  /**
6422
- * Updates the long-term memory text or metadata based on the memory ID.
7561
+ * Updates the text or metadata of a long-term memory based on the memory ID.
6423
7562
  *
6424
7563
  * @remarks
6425
- * Updates the long-term memory text or metadata based on the memory ID.
7564
+ * Updates the text or metadata of a long-term memory based on the memory ID.
6426
7565
  *
6427
7566
  * @param request - UpdateMemoryRequest
6428
7567
  * @returns UpdateMemoryResponse
@@ -7041,6 +8180,109 @@ class Client extends openapi_core_1.default {
7041
8180
  let headers = {};
7042
8181
  return await this.uploadSkillViaOssWithOptions(workspaceId, request, headers, runtime);
7043
8182
  }
8183
+ /**
8184
+ * Validates the OSS code package source for an agent.
8185
+ *
8186
+ * @remarks
8187
+ * Uses the current workspace role to check whether the customer\\"s OSS object exists and is readable, and checks the file name extension and compressed size. Returns the sourceUri, file name, size, and format read in this request. The bucket and object key are passed separately, and HTTPS download URLs are not accepted.
8188
+ * The validation uses object metadata and read probing. It does not perform full downloads, transfers, or decompression, nor does it generate a SHA-256 hash. Passing the validation does not mean that the archive content is complete or can be started. When you submit a CreateCustomAgent or UpdateCustomAgent request, the system re-validates and transfers the package. You do not need to invoke this operation in advance as a prerequisite for submission.
8189
+ *
8190
+ * @param tmpReq - ValidateAgentCodePackageFromOssRequest
8191
+ * @param headers - map
8192
+ * @param runtime - runtime options for this request RuntimeOptions
8193
+ * @returns ValidateAgentCodePackageFromOssResponse
8194
+ */
8195
+ async validateAgentCodePackageFromOssWithOptions(workspaceId, tmpReq, headers, runtime) {
8196
+ tmpReq.validate();
8197
+ let request = new $_model.ValidateAgentCodePackageFromOssShrinkRequest({});
8198
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
8199
+ if (!$dara.isNull(tmpReq.body)) {
8200
+ request.bodyShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.body, "body", "json");
8201
+ }
8202
+ let body = {};
8203
+ if (!$dara.isNull(request.bodyShrink)) {
8204
+ body["body"] = request.bodyShrink;
8205
+ }
8206
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8207
+ headers: headers,
8208
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8209
+ });
8210
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8211
+ action: "ValidateAgentCodePackageFromOss",
8212
+ version: "2026-08-04",
8213
+ protocol: "HTTPS",
8214
+ pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/agent-code-packages/validate-from-oss`,
8215
+ method: "POST",
8216
+ authType: "AK",
8217
+ style: "ROA",
8218
+ reqBodyType: "formData",
8219
+ bodyType: "json",
8220
+ });
8221
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ValidateAgentCodePackageFromOssResponse({}));
8222
+ }
8223
+ /**
8224
+ * Validates the OSS code package source for an agent.
8225
+ *
8226
+ * @remarks
8227
+ * Uses the current workspace role to check whether the customer\\"s OSS object exists and is readable, and checks the file name extension and compressed size. Returns the sourceUri, file name, size, and format read in this request. The bucket and object key are passed separately, and HTTPS download URLs are not accepted.
8228
+ * The validation uses object metadata and read probing. It does not perform full downloads, transfers, or decompression, nor does it generate a SHA-256 hash. Passing the validation does not mean that the archive content is complete or can be started. When you submit a CreateCustomAgent or UpdateCustomAgent request, the system re-validates and transfers the package. You do not need to invoke this operation in advance as a prerequisite for submission.
8229
+ *
8230
+ * @param request - ValidateAgentCodePackageFromOssRequest
8231
+ * @returns ValidateAgentCodePackageFromOssResponse
8232
+ */
8233
+ async validateAgentCodePackageFromOss(workspaceId, request) {
8234
+ let runtime = new $dara.RuntimeOptions({});
8235
+ let headers = {};
8236
+ return await this.validateAgentCodePackageFromOssWithOptions(workspaceId, request, headers, runtime);
8237
+ }
8238
+ /**
8239
+ * 检查智能体代码包 OSS RAM 授权状态
8240
+ *
8241
+ * @remarks
8242
+ * 检查当前 Workspace 角色是否绑定所选源 Bucket 对应的自定义 RAM 策略,复用已有挂载授权。仅返回策略绑定状态,不验证代码包存在或可读、不修改默认桶。授权状态不能替代 ValidateAgentCodePackageFromOss 的实际对象读取校验。
8243
+ *
8244
+ * @param request - VerifyAgentCodePackageOssRamAuthorizationRequest
8245
+ * @param headers - map
8246
+ * @param runtime - runtime options for this request RuntimeOptions
8247
+ * @returns VerifyAgentCodePackageOssRamAuthorizationResponse
8248
+ */
8249
+ async verifyAgentCodePackageOssRamAuthorizationWithOptions(workspaceId, request, headers, runtime) {
8250
+ request.validate();
8251
+ let query = {};
8252
+ if (!$dara.isNull(request.ossBucketName)) {
8253
+ query["ossBucketName"] = request.ossBucketName;
8254
+ }
8255
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8256
+ headers: headers,
8257
+ query: openapi_core_2.OpenApiUtil.query(query),
8258
+ });
8259
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8260
+ action: "VerifyAgentCodePackageOssRamAuthorization",
8261
+ version: "2026-08-04",
8262
+ protocol: "HTTPS",
8263
+ pathname: `/workspaces/${$dara.URL.percentEncode(workspaceId)}/agent-code-packages/oss/authorize/verify`,
8264
+ method: "POST",
8265
+ authType: "AK",
8266
+ style: "ROA",
8267
+ reqBodyType: "json",
8268
+ bodyType: "json",
8269
+ });
8270
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.VerifyAgentCodePackageOssRamAuthorizationResponse({}));
8271
+ }
8272
+ /**
8273
+ * 检查智能体代码包 OSS RAM 授权状态
8274
+ *
8275
+ * @remarks
8276
+ * 检查当前 Workspace 角色是否绑定所选源 Bucket 对应的自定义 RAM 策略,复用已有挂载授权。仅返回策略绑定状态,不验证代码包存在或可读、不修改默认桶。授权状态不能替代 ValidateAgentCodePackageFromOss 的实际对象读取校验。
8277
+ *
8278
+ * @param request - VerifyAgentCodePackageOssRamAuthorizationRequest
8279
+ * @returns VerifyAgentCodePackageOssRamAuthorizationResponse
8280
+ */
8281
+ async verifyAgentCodePackageOssRamAuthorization(workspaceId, request) {
8282
+ let runtime = new $dara.RuntimeOptions({});
8283
+ let headers = {};
8284
+ return await this.verifyAgentCodePackageOssRamAuthorizationWithOptions(workspaceId, request, headers, runtime);
8285
+ }
7044
8286
  /**
7045
8287
  * Validates whether one or more Qoder Service Account Keys are available at a specified site. This operation does not save keys or modify the Connector status.
7046
8288
  *
@@ -7098,7 +8340,7 @@ class Client extends openapi_core_1.default {
7098
8340
  * Verifies the ACR RAM authorization for a workspace.
7099
8341
  *
7100
8342
  * @remarks
7101
- * ACR and user OSS mounts share the workspace role. If no existing role is available, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is retained and only new permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. This operation performs a read-only check to verify whether the custom policies corresponding to the target instance, namespace, and repository are attached to the shared role, and checks the workspace prerequisites. It does not create execution versions or trigger configuration delivery. AUTHORIZED only indicates that the custom policy for the target name is attached, without parsing the policy content or simulating the final permissions. ELIGIBLE does not indicate that RuntimeManager capacity or template admission is complete, nor does it require ACR configurations to be delivered. Creating or updating an agent re-verifies permissions and processes ACR dependencies on the backend. Configuration waiting, failures, and retries are reported through agent details.
8343
+ * ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is retained and only new permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. This operation performs a read-only check to verify whether the custom policies corresponding to the target instance, namespace, and repository are attached to the shared role, and checks the workspace prerequisites. It does not create execution versions or trigger configuration delivery. AUTHORIZED only indicates that the custom policy for the target name is attached, without parsing the policy content or simulating the final permissions. ELIGIBLE does not mean that RuntimeManager capacity or template admission is complete, nor does it require ACR configuration to be delivered. Creating or updating an agent re-verifies permissions and processes ACR dependencies on the backend. Configuration waiting, failures, and retries are reported through agent details.
7102
8344
  *
7103
8345
  * @param request - VerifyWorkspaceAcrRamAuthorizationRequest
7104
8346
  * @param headers - map
@@ -7138,7 +8380,7 @@ class Client extends openapi_core_1.default {
7138
8380
  * Verifies the ACR RAM authorization for a workspace.
7139
8381
  *
7140
8382
  * @remarks
7141
- * ACR and user OSS mounts share the workspace role. If no existing role is available, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is retained and only new permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. This operation performs a read-only check to verify whether the custom policies corresponding to the target instance, namespace, and repository are attached to the shared role, and checks the workspace prerequisites. It does not create execution versions or trigger configuration delivery. AUTHORIZED only indicates that the custom policy for the target name is attached, without parsing the policy content or simulating the final permissions. ELIGIBLE does not indicate that RuntimeManager capacity or template admission is complete, nor does it require ACR configurations to be delivered. Creating or updating an agent re-verifies permissions and processes ACR dependencies on the backend. Configuration waiting, failures, and retries are reported through agent details.
8383
+ * ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is retained and only new permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. This operation performs a read-only check to verify whether the custom policies corresponding to the target instance, namespace, and repository are attached to the shared role, and checks the workspace prerequisites. It does not create execution versions or trigger configuration delivery. AUTHORIZED only indicates that the custom policy for the target name is attached, without parsing the policy content or simulating the final permissions. ELIGIBLE does not mean that RuntimeManager capacity or template admission is complete, nor does it require ACR configuration to be delivered. Creating or updating an agent re-verifies permissions and processes ACR dependencies on the backend. Configuration waiting, failures, and retries are reported through agent details.
7142
8384
  *
7143
8385
  * @param request - VerifyWorkspaceAcrRamAuthorizationRequest
7144
8386
  * @returns VerifyWorkspaceAcrRamAuthorizationResponse