@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.d.ts CHANGED
@@ -9,10 +9,10 @@ export default class Client extends OpenApi {
9
9
  [key: string]: string;
10
10
  }, endpoint: string): string;
11
11
  /**
12
- * Writes messages or text to a memory store. By default, sync is set to true, which synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId that can be queried by using GetMemoryTask.
12
+ * Writes messages or text to a memory store. By default, sync is set to true, which means the operation synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId, which you can query by calling GetMemoryTask.
13
13
  *
14
14
  * @remarks
15
- * Writes messages or text to a memory store. By default, sync is set to true, which synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId that can be queried by using GetMemoryTask.
15
+ * Writes messages or text to a memory store. By default, sync is set to true, which means the operation synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId, which you can query by calling GetMemoryTask.
16
16
  *
17
17
  * @param tmpReq - AddMemoriesRequest
18
18
  * @param headers - map
@@ -23,10 +23,10 @@ export default class Client extends OpenApi {
23
23
  [key: string]: string;
24
24
  }, runtime: $dara.RuntimeOptions): Promise<$_model.AddMemoriesResponse>;
25
25
  /**
26
- * Writes messages or text to a memory store. By default, sync is set to true, which synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId that can be queried by using GetMemoryTask.
26
+ * Writes messages or text to a memory store. By default, sync is set to true, which means the operation synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId, which you can query by calling GetMemoryTask.
27
27
  *
28
28
  * @remarks
29
- * Writes messages or text to a memory store. By default, sync is set to true, which synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId that can be queried by using GetMemoryTask.
29
+ * Writes messages or text to a memory store. By default, sync is set to true, which means the operation synchronously waits for extraction and returns only memories (an empty array is allowed). If sync is set to false, the operation returns only a taskId, which you can query by calling GetMemoryTask.
30
30
  *
31
31
  * @param request - AddMemoriesRequest
32
32
  * @returns AddMemoriesResponse
@@ -201,13 +201,15 @@ export default class Client extends OpenApi {
201
201
  */
202
202
  createCredential(workspaceId: string, request: $_model.CreateCredentialRequest): Promise<$_model.CreateCredentialResponse>;
203
203
  /**
204
- * Creates a custom agent in a specified workspace and submits a container image deployment configuration. The creation is an asynchronous process. You can call GetCustomAgent to query the deployment result.
204
+ * Creates a custom agent in a specified workspace. Container image and code package deployments are supported. The creation process is asynchronous. You can call GetCustomAgent to query the deployment result.
205
205
  *
206
206
  * @remarks
207
- * Before you call this operation, prepare a writable workspace, a RAM role ARN, an ACR container image, and a runtime configuration. You must specify name, artifact, roleArn, and runtime. The runtime parameter must include both compute and sessionPolicy.
208
- * Currently, only ACR container image deployment is supported. Use artifact.container and specify the service listening port in artifact.port. Omit artifact.code. The image must have the required access permissions and be accessible over the network allowed by the workspace.
209
- * The creation is an asynchronous process. A successful response indicates that the request is accepted. Use the returned agentId to call GetCustomAgent and check latestVersionStatus, latestExecutionError, and status for the corresponding latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure the access endpoint.
210
- * The clientToken parameter does not currently provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not take effect. Omit this parameter.
207
+ * Before you call this operation, prepare a writable workspace, a RAM role ARN, a container image or code package, and runtime configurations. You must specify name, artifact, roleArn, and runtime. The runtime parameter must include both compute and sessionPolicy.
208
+ * In container mode, use artifact.container and specify artifact.port. The image must have the required access permissions and be accessible over the network allowed by the workspace.
209
+ * In code package pattern, specify artifact.port, and the sourceUri, languageRuntime, and entrypoint of artifact.code. Do not specify container at the same time. Dependencies must be packaged by the user. ZIP and TAR.GZ formats are supported. The compressed package size cannot exceed 500,000,000 bytes. You can call ListAgentCodeRuntimes to query the runtime environment identity. The sourceUri parameter supports oss:// addresses or HTTPS object addresses of standard OSS public domain names, including signed URLs. For local files, call GetAgentCodePackageUploadUrl to obtain an upload URL, upload the file directly, and then commit the returned sourceUri.
210
+ * When you submit a new code package source, the backend rechecks the read permissions, object, and size. The configuration is saved only after the transfer succeeds. If the transfer fails, the configuration is not saved. Saved fixed packages can be reused. Set the client timeout to 210 seconds for code package requests. Archive integrity and secure decompression are checked at startup. A successful acceptance does not mean that the agent is ready to run.
211
+ * The creation process is asynchronous. A successful response indicates that the request is accepted. You can use the returned agentId to call GetCustomAgent and check the latestVersionStatus, latestExecutionError, and status corresponding to latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure the access endpoint.
212
+ * The clientToken parameter does not provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not take effect. Omit this parameter.
211
213
  *
212
214
  * @param tmpReq - CreateCustomAgentRequest
213
215
  * @param headers - map
@@ -218,13 +220,15 @@ export default class Client extends OpenApi {
218
220
  [key: string]: string;
219
221
  }, runtime: $dara.RuntimeOptions): Promise<$_model.CreateCustomAgentResponse>;
220
222
  /**
221
- * Creates a custom agent in a specified workspace and submits a container image deployment configuration. The creation is an asynchronous process. You can call GetCustomAgent to query the deployment result.
223
+ * Creates a custom agent in a specified workspace. Container image and code package deployments are supported. The creation process is asynchronous. You can call GetCustomAgent to query the deployment result.
222
224
  *
223
225
  * @remarks
224
- * Before you call this operation, prepare a writable workspace, a RAM role ARN, an ACR container image, and a runtime configuration. You must specify name, artifact, roleArn, and runtime. The runtime parameter must include both compute and sessionPolicy.
225
- * Currently, only ACR container image deployment is supported. Use artifact.container and specify the service listening port in artifact.port. Omit artifact.code. The image must have the required access permissions and be accessible over the network allowed by the workspace.
226
- * The creation is an asynchronous process. A successful response indicates that the request is accepted. Use the returned agentId to call GetCustomAgent and check latestVersionStatus, latestExecutionError, and status for the corresponding latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure the access endpoint.
227
- * The clientToken parameter does not currently provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not take effect. Omit this parameter.
226
+ * Before you call this operation, prepare a writable workspace, a RAM role ARN, a container image or code package, and runtime configurations. You must specify name, artifact, roleArn, and runtime. The runtime parameter must include both compute and sessionPolicy.
227
+ * In container mode, use artifact.container and specify artifact.port. The image must have the required access permissions and be accessible over the network allowed by the workspace.
228
+ * In code package pattern, specify artifact.port, and the sourceUri, languageRuntime, and entrypoint of artifact.code. Do not specify container at the same time. Dependencies must be packaged by the user. ZIP and TAR.GZ formats are supported. The compressed package size cannot exceed 500,000,000 bytes. You can call ListAgentCodeRuntimes to query the runtime environment identity. The sourceUri parameter supports oss:// addresses or HTTPS object addresses of standard OSS public domain names, including signed URLs. For local files, call GetAgentCodePackageUploadUrl to obtain an upload URL, upload the file directly, and then commit the returned sourceUri.
229
+ * When you submit a new code package source, the backend rechecks the read permissions, object, and size. The configuration is saved only after the transfer succeeds. If the transfer fails, the configuration is not saved. Saved fixed packages can be reused. Set the client timeout to 210 seconds for code package requests. Archive integrity and secure decompression are checked at startup. A successful acceptance does not mean that the agent is ready to run.
230
+ * The creation process is asynchronous. A successful response indicates that the request is accepted. You can use the returned agentId to call GetCustomAgent and check the latestVersionStatus, latestExecutionError, and status corresponding to latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure the access endpoint.
231
+ * The clientToken parameter does not provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not take effect. Omit this parameter.
228
232
  *
229
233
  * @param request - CreateCustomAgentRequest
230
234
  * @returns CreateCustomAgentResponse
@@ -279,7 +283,34 @@ export default class Client extends OpenApi {
279
283
  */
280
284
  createExternalAgentBootstrapToken(workspaceId: string, agentId: string, request: $_model.CreateExternalAgentBootstrapTokenRequest): Promise<$_model.CreateExternalAgentBootstrapTokenResponse>;
281
285
  /**
282
- * Binds an external identity provider to a specified workspace to enable single sign-on and organization member synchronization for workspace users. Each workspace can be bound to a maximum of one external identity provider. This is an asynchronous operation. After the API call returns, you can call GetIdentityProvider to query the status and track the progress.
286
+ * Binds an external identity provider to a specified workspace for single sign-on and organization member synchronization of workspace users. You can bind up to one external identity provider to each workspace. The binding is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
287
+ *
288
+ * @remarks
289
+ * ## Features and prerequisites
290
+ * A workspace can be bound to only one external identity provider. The identityProviderType parameter supports DingTalk, Feishu, and CustomSSO. CustomSSO only initializes the shared user pool. Do not pass non-empty metadata, and do not pass true for loginEnabled or syncEnabled. By default, both switches are turned off. Protocols and SAML configurations are saved by calling UpdateIdentityProvider. SCIM is configured through a separate API. You do not need to save SAML first. After the request is accepted and CONFIGURED is returned, call GetIdentityProvider and wait for the user pool initialization to complete. READY only indicates that the resource is ready, not that SAML is configured. If the same CustomSSO binding is in the CONFIGURED or READY state, the existing binding can be returned. You cannot treat all states as repeatable creations.
291
+ * For DingTalk, the metadata parameter requires appKey, appSecret, and corpId. For Feishu, appId and appSecret are required. The vendor logon switch is enabled by default, and the synchronization switch is disabled by default. When synchronization is enabled, encryptKey and verificationToken are also required. The vendor syncOnBind and syncScope parameters retain the existing department-based synchronization definitions. Do not use these vendor pull parameters to replace SCIM configurations during CustomSSO initialization.
292
+ * ## Requests and examples
293
+ * POST /workspaces/{workspaceId}/identity-providers
294
+ * Call conventions: Call the API based on the region of the target workspace. Use an AccessKey pair or STS token that has permissions on the identity provider resources of the corresponding workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example represents the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example only shows the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not record keys. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
295
+ * ```text
296
+ * POST /workspaces/ws-example/identity-providers
297
+ * {"identityProviderType": "CustomSSO"}
298
+ * ```
299
+ * ## Response example
300
+ * ```json
301
+ * {
302
+ * "data": {
303
+ * "workspaceId": "ws-example",
304
+ * "identityProviderType": "CustomSSO",
305
+ * "loginEnabled": false,
306
+ * "syncEnabled": false,
307
+ * "status": "CONFIGURED"
308
+ * }
309
+ * }
310
+ * ```
311
+ * ## Errors and handling
312
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. A synchronous call to the upstream service may return 503 IdentityProviderProvisioningUnavailable if it fails. Keep the request ID for troubleshooting and do not interpret a read failure as unconfigured. Actual authentication and workspace non-existence errors follow the common error handling.
313
+ * 409 IdentityProviderAlreadyBound: An external binding already exists. Query and reuse the correct binding first. Do not automatically unbind the entire binding. Asynchronous initialization failure does not equal HTTP request failure. You must continue to query the status.
283
314
  *
284
315
  * @param tmpReq - CreateIdentityProviderRequest
285
316
  * @param headers - map
@@ -290,12 +321,123 @@ export default class Client extends OpenApi {
290
321
  [key: string]: string;
291
322
  }, runtime: $dara.RuntimeOptions): Promise<$_model.CreateIdentityProviderResponse>;
292
323
  /**
293
- * Binds an external identity provider to a specified workspace to enable single sign-on and organization member synchronization for workspace users. Each workspace can be bound to a maximum of one external identity provider. This is an asynchronous operation. After the API call returns, you can call GetIdentityProvider to query the status and track the progress.
324
+ * Binds an external identity provider to a specified workspace for single sign-on and organization member synchronization of workspace users. You can bind up to one external identity provider to each workspace. The binding is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
325
+ *
326
+ * @remarks
327
+ * ## Features and prerequisites
328
+ * A workspace can be bound to only one external identity provider. The identityProviderType parameter supports DingTalk, Feishu, and CustomSSO. CustomSSO only initializes the shared user pool. Do not pass non-empty metadata, and do not pass true for loginEnabled or syncEnabled. By default, both switches are turned off. Protocols and SAML configurations are saved by calling UpdateIdentityProvider. SCIM is configured through a separate API. You do not need to save SAML first. After the request is accepted and CONFIGURED is returned, call GetIdentityProvider and wait for the user pool initialization to complete. READY only indicates that the resource is ready, not that SAML is configured. If the same CustomSSO binding is in the CONFIGURED or READY state, the existing binding can be returned. You cannot treat all states as repeatable creations.
329
+ * For DingTalk, the metadata parameter requires appKey, appSecret, and corpId. For Feishu, appId and appSecret are required. The vendor logon switch is enabled by default, and the synchronization switch is disabled by default. When synchronization is enabled, encryptKey and verificationToken are also required. The vendor syncOnBind and syncScope parameters retain the existing department-based synchronization definitions. Do not use these vendor pull parameters to replace SCIM configurations during CustomSSO initialization.
330
+ * ## Requests and examples
331
+ * POST /workspaces/{workspaceId}/identity-providers
332
+ * Call conventions: Call the API based on the region of the target workspace. Use an AccessKey pair or STS token that has permissions on the identity provider resources of the corresponding workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example represents the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example only shows the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not record keys. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
333
+ * ```text
334
+ * POST /workspaces/ws-example/identity-providers
335
+ * {"identityProviderType": "CustomSSO"}
336
+ * ```
337
+ * ## Response example
338
+ * ```json
339
+ * {
340
+ * "data": {
341
+ * "workspaceId": "ws-example",
342
+ * "identityProviderType": "CustomSSO",
343
+ * "loginEnabled": false,
344
+ * "syncEnabled": false,
345
+ * "status": "CONFIGURED"
346
+ * }
347
+ * }
348
+ * ```
349
+ * ## Errors and handling
350
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. A synchronous call to the upstream service may return 503 IdentityProviderProvisioningUnavailable if it fails. Keep the request ID for troubleshooting and do not interpret a read failure as unconfigured. Actual authentication and workspace non-existence errors follow the common error handling.
351
+ * 409 IdentityProviderAlreadyBound: An external binding already exists. Query and reuse the correct binding first. Do not automatically unbind the entire binding. Asynchronous initialization failure does not equal HTTP request failure. You must continue to query the status.
294
352
  *
295
353
  * @param request - CreateIdentityProviderRequest
296
354
  * @returns CreateIdentityProviderResponse
297
355
  */
298
356
  createIdentityProvider(workspaceId: string, request: $_model.CreateIdentityProviderRequest): Promise<$_model.CreateIdentityProviderResponse>;
357
+ /**
358
+ * Initiates a manual synchronization of an identity provider.
359
+ *
360
+ * @remarks
361
+ * Initiates a one-time user synchronization based on the saved scope without saving the configuration or requiring syncEnabled=true. Prerequisites: the identity provider is in the READY or SYNC_FAILED state, a user pool exists, and no other pending identity provider operations are in progress. The returned taskId only indicates that the request is accepted. Call GetIdentityProviderSyncJob to poll the status until it reaches SUCCESS, FAILED, or CANCELED. If the task fails, check the failureReason. The workspace user quota still applies, and previously synchronized users are not automatically deleted if the scope is reduced.
362
+ * Authorization information: RAM action agentcore:CreateIdentityProviderSyncJob, access level Write, resource ARN: acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is required for authorization.
363
+ * Idempotency and retry: This operation does not provide a ClientToken parameter for conditional idempotency. Repeated submissions do not guarantee the same task is returned. If an operation is already in progress, an operation conflict is returned. Submitting again after the task ends creates a new synchronization task. If a submission times out, query the identity provider status first to avoid blindly resubmitting the request.
364
+ * Calling this API is free of charge, and operation records support ActionTrail auditing.
365
+ * Initial selective synchronization process: CreateIdentityProvider (syncOnBind=false, it is recommended to keep syncEnabled=false initially) → GetIdentityProvider and wait for READY → ListIdentityProviderDepartments to select departments → UpdateIdentityProvider to save syncScope and wait for READY → CreateIdentityProviderSyncJob → GetIdentityProviderSyncJob to query the terminal state. If incremental synchronization is required, configure callbacks and event subscriptions, and then update syncEnabled=true.
366
+ * Response example:
367
+ * ```json
368
+ * {
369
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
370
+ * "message": "success",
371
+ * "httpStatusCode": 200,
372
+ * "code": "SUCCESS",
373
+ * "success": true,
374
+ * "data": {
375
+ * "taskId": "12345678-1234-4234-8234-123456789abc",
376
+ * "status": "PENDING"
377
+ * }
378
+ * }
379
+ * ```
380
+ *
381
+ * @param request - CreateIdentityProviderSyncJobRequest
382
+ * @param headers - map
383
+ * @param runtime - runtime options for this request RuntimeOptions
384
+ * @returns CreateIdentityProviderSyncJobResponse
385
+ */
386
+ createIdentityProviderSyncJobWithOptions(workspaceId: string, identityProviderType: string, request: $_model.CreateIdentityProviderSyncJobRequest, headers: {
387
+ [key: string]: string;
388
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.CreateIdentityProviderSyncJobResponse>;
389
+ /**
390
+ * Initiates a manual synchronization of an identity provider.
391
+ *
392
+ * @remarks
393
+ * Initiates a one-time user synchronization based on the saved scope without saving the configuration or requiring syncEnabled=true. Prerequisites: the identity provider is in the READY or SYNC_FAILED state, a user pool exists, and no other pending identity provider operations are in progress. The returned taskId only indicates that the request is accepted. Call GetIdentityProviderSyncJob to poll the status until it reaches SUCCESS, FAILED, or CANCELED. If the task fails, check the failureReason. The workspace user quota still applies, and previously synchronized users are not automatically deleted if the scope is reduced.
394
+ * Authorization information: RAM action agentcore:CreateIdentityProviderSyncJob, access level Write, resource ARN: acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is required for authorization.
395
+ * Idempotency and retry: This operation does not provide a ClientToken parameter for conditional idempotency. Repeated submissions do not guarantee the same task is returned. If an operation is already in progress, an operation conflict is returned. Submitting again after the task ends creates a new synchronization task. If a submission times out, query the identity provider status first to avoid blindly resubmitting the request.
396
+ * Calling this API is free of charge, and operation records support ActionTrail auditing.
397
+ * Initial selective synchronization process: CreateIdentityProvider (syncOnBind=false, it is recommended to keep syncEnabled=false initially) → GetIdentityProvider and wait for READY → ListIdentityProviderDepartments to select departments → UpdateIdentityProvider to save syncScope and wait for READY → CreateIdentityProviderSyncJob → GetIdentityProviderSyncJob to query the terminal state. If incremental synchronization is required, configure callbacks and event subscriptions, and then update syncEnabled=true.
398
+ * Response example:
399
+ * ```json
400
+ * {
401
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
402
+ * "message": "success",
403
+ * "httpStatusCode": 200,
404
+ * "code": "SUCCESS",
405
+ * "success": true,
406
+ * "data": {
407
+ * "taskId": "12345678-1234-4234-8234-123456789abc",
408
+ * "status": "PENDING"
409
+ * }
410
+ * }
411
+ * ```
412
+ *
413
+ * @param request - CreateIdentityProviderSyncJobRequest
414
+ * @returns CreateIdentityProviderSyncJobResponse
415
+ */
416
+ createIdentityProviderSyncJob(workspaceId: string, identityProviderType: string, request: $_model.CreateIdentityProviderSyncJobRequest): Promise<$_model.CreateIdentityProviderSyncJobResponse>;
417
+ /**
418
+ * Creates an image cache.
419
+ *
420
+ * @remarks
421
+ * 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.
422
+ *
423
+ * @param tmpReq - CreateImageCacheRequest
424
+ * @param headers - map
425
+ * @param runtime - runtime options for this request RuntimeOptions
426
+ * @returns CreateImageCacheResponse
427
+ */
428
+ createImageCacheWithOptions(tmpReq: $_model.CreateImageCacheRequest, headers: {
429
+ [key: string]: string;
430
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.CreateImageCacheResponse>;
431
+ /**
432
+ * Creates an image cache.
433
+ *
434
+ * @remarks
435
+ * 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.
436
+ *
437
+ * @param request - CreateImageCacheRequest
438
+ * @returns CreateImageCacheResponse
439
+ */
440
+ createImageCache(request: $_model.CreateImageCacheRequest): Promise<$_model.CreateImageCacheResponse>;
299
441
  /**
300
442
  * Creates a managed agent in a specified workspace.
301
443
  *
@@ -657,7 +799,31 @@ export default class Client extends OpenApi {
657
799
  */
658
800
  deleteExternalAgent(workspaceId: string, agentId: string, request: $_model.DeleteExternalAgentRequest): Promise<$_model.DeleteExternalAgentResponse>;
659
801
  /**
660
- * Unbinds the external identity provider from a specified workspace and cleans up users synchronized by that identity provider. The unbinding is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
802
+ * Disconnects the external identity provider from a specified workspace and cleans up the users synchronized by the identity provider. The disconnection is an asynchronous operation. After the API returns a response, you can call GetIdentityProvider to query the status and track the progress.
803
+ *
804
+ * @remarks
805
+ * ## Features and prerequisites
806
+ * This is a complete disconnection, not just disabling logon. Disconnecting CustomSSO cleans up the AC users imported from this identity source, remote shared user pools and related resources, logon publishing configurations, and bindings. Therefore, both SAML and SCIM are affected. It does not delete the enterprise applications created by users on external platforms such as Azure. The system first checks the references between users and Teams. If references exist, the disconnection is rejected.
807
+ * After the request is accepted, the system returns DISCONNECTING. You can call GetIdentityProvider to query the status. The cleanup is complete only when the binding does not exist (IdentityProviderNotFound). The binding should also no longer appear in the list. DISCONNECT_FAILED indicates that a partial cleanup may have occurred and the state cannot be restored to a brand new unconfigured state. You can retry based on the returned status. If the binding does not exist in the first place, the API returns a placeholder result indicating no binding without creating new resources. An ongoing disconnection task may return the current binding. Do not use this API as a substitute for setting loginEnabled=false, syncEnabled=false, or deleting a single token.
808
+ * ## Requests and examples
809
+ * DELETE /workspaces/{workspaceId}/identity-providers/{identityProviderType}
810
+ * Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or STS credential that has permissions on the identity source resources of the workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example represents the body parameter content of the public API, not the extra body wrapper of the backend direct connection API. The response example only shows the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not record keys. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
811
+ * ```text
812
+ * DELETE /workspaces/ws-example/identity-providers/CustomSSO
813
+ * ```
814
+ * ## Response examples
815
+ * ```json
816
+ * {
817
+ * "data": {
818
+ * "workspaceId": "ws-example",
819
+ * "identityProviderType": "CustomSSO",
820
+ * "status": "DISCONNECTING"
821
+ * }
822
+ * }
823
+ * ```
824
+ * ## Errors and handling
825
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. A synchronous call failure to the upstream may return 503 IdentityProviderProvisioningUnavailable. Keep the request ID for troubleshooting and do not interpret a read failure as unconfigured. Actual authentication and workspace non-existence errors follow the common error handling.
826
+ * 409 IdentityProvider.Disconnect.Conflict: Users of this identity source still belong to a Team. Remove the references first. 409 IdentityProviderOperationConflict: The current status does not allow disconnection. 404 IdentityProviderNotFound: An external binding exists but the type does not match. An asynchronous failure may result in a partial cleanup. You cannot claim completion based solely on the first response.
661
827
  *
662
828
  * @param request - DeleteIdentityProviderRequest
663
829
  * @param headers - map
@@ -668,12 +834,60 @@ export default class Client extends OpenApi {
668
834
  [key: string]: string;
669
835
  }, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteIdentityProviderResponse>;
670
836
  /**
671
- * Unbinds the external identity provider from a specified workspace and cleans up users synchronized by that identity provider. The unbinding is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
837
+ * Disconnects the external identity provider from a specified workspace and cleans up the users synchronized by the identity provider. The disconnection is an asynchronous operation. After the API returns a response, you can call GetIdentityProvider to query the status and track the progress.
838
+ *
839
+ * @remarks
840
+ * ## Features and prerequisites
841
+ * This is a complete disconnection, not just disabling logon. Disconnecting CustomSSO cleans up the AC users imported from this identity source, remote shared user pools and related resources, logon publishing configurations, and bindings. Therefore, both SAML and SCIM are affected. It does not delete the enterprise applications created by users on external platforms such as Azure. The system first checks the references between users and Teams. If references exist, the disconnection is rejected.
842
+ * After the request is accepted, the system returns DISCONNECTING. You can call GetIdentityProvider to query the status. The cleanup is complete only when the binding does not exist (IdentityProviderNotFound). The binding should also no longer appear in the list. DISCONNECT_FAILED indicates that a partial cleanup may have occurred and the state cannot be restored to a brand new unconfigured state. You can retry based on the returned status. If the binding does not exist in the first place, the API returns a placeholder result indicating no binding without creating new resources. An ongoing disconnection task may return the current binding. Do not use this API as a substitute for setting loginEnabled=false, syncEnabled=false, or deleting a single token.
843
+ * ## Requests and examples
844
+ * DELETE /workspaces/{workspaceId}/identity-providers/{identityProviderType}
845
+ * Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or STS credential that has permissions on the identity source resources of the workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example represents the body parameter content of the public API, not the extra body wrapper of the backend direct connection API. The response example only shows the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not record keys. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
846
+ * ```text
847
+ * DELETE /workspaces/ws-example/identity-providers/CustomSSO
848
+ * ```
849
+ * ## Response examples
850
+ * ```json
851
+ * {
852
+ * "data": {
853
+ * "workspaceId": "ws-example",
854
+ * "identityProviderType": "CustomSSO",
855
+ * "status": "DISCONNECTING"
856
+ * }
857
+ * }
858
+ * ```
859
+ * ## Errors and handling
860
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. A synchronous call failure to the upstream may return 503 IdentityProviderProvisioningUnavailable. Keep the request ID for troubleshooting and do not interpret a read failure as unconfigured. Actual authentication and workspace non-existence errors follow the common error handling.
861
+ * 409 IdentityProvider.Disconnect.Conflict: Users of this identity source still belong to a Team. Remove the references first. 409 IdentityProviderOperationConflict: The current status does not allow disconnection. 404 IdentityProviderNotFound: An external binding exists but the type does not match. An asynchronous failure may result in a partial cleanup. You cannot claim completion based solely on the first response.
672
862
  *
673
863
  * @param request - DeleteIdentityProviderRequest
674
864
  * @returns DeleteIdentityProviderResponse
675
865
  */
676
866
  deleteIdentityProvider(workspaceId: string, identityProviderType: string, request: $_model.DeleteIdentityProviderRequest): Promise<$_model.DeleteIdentityProviderResponse>;
867
+ /**
868
+ * Deletes an image cache.
869
+ *
870
+ * @remarks
871
+ * 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.
872
+ *
873
+ * @param request - DeleteImageCacheRequest
874
+ * @param headers - map
875
+ * @param runtime - runtime options for this request RuntimeOptions
876
+ * @returns DeleteImageCacheResponse
877
+ */
878
+ deleteImageCacheWithOptions(imageId: string, request: $_model.DeleteImageCacheRequest, headers: {
879
+ [key: string]: string;
880
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteImageCacheResponse>;
881
+ /**
882
+ * Deletes an image cache.
883
+ *
884
+ * @remarks
885
+ * 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.
886
+ *
887
+ * @param request - DeleteImageCacheRequest
888
+ * @returns DeleteImageCacheResponse
889
+ */
890
+ deleteImageCache(imageId: string, request: $_model.DeleteImageCacheRequest): Promise<$_model.DeleteImageCacheResponse>;
677
891
  /**
678
892
  * Deletes a specified managed agent.
679
893
  *
@@ -743,10 +957,10 @@ export default class Client extends OpenApi {
743
957
  */
744
958
  deleteMemory(workspaceId: string, memoryStoreName: string, memoryId: string, request: $_model.DeleteMemoryRequest): Promise<$_model.DeleteMemoryResponse>;
745
959
  /**
746
- * Asynchronously deletes a MemoryStore and all its long-term memory.
960
+ * Asynchronously deletes a MemoryStore and all long-term memory within it.
747
961
  *
748
962
  * @remarks
749
- * Asynchronously deletes a MemoryStore and all its long-term memory.
963
+ * Asynchronously deletes a MemoryStore and all long-term memory within it.
750
964
  *
751
965
  * @param request - DeleteMemoryStoreRequest
752
966
  * @param headers - map
@@ -757,10 +971,10 @@ export default class Client extends OpenApi {
757
971
  [key: string]: string;
758
972
  }, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMemoryStoreResponse>;
759
973
  /**
760
- * Asynchronously deletes a MemoryStore and all its long-term memory.
974
+ * Asynchronously deletes a MemoryStore and all long-term memory within it.
761
975
  *
762
976
  * @remarks
763
- * Asynchronously deletes a MemoryStore and all its long-term memory.
977
+ * Asynchronously deletes a MemoryStore and all long-term memory within it.
764
978
  *
765
979
  * @param request - DeleteMemoryStoreRequest
766
980
  * @returns DeleteMemoryStoreResponse
@@ -1040,6 +1254,82 @@ export default class Client extends OpenApi {
1040
1254
  * @returns ForcePublishSkillVersionResponse
1041
1255
  */
1042
1256
  forcePublishSkillVersion(workspaceId: string, skillName: string, skillVersion: string, request: $_model.ForcePublishSkillVersionRequest): Promise<$_model.ForcePublishSkillVersionResponse>;
1257
+ /**
1258
+ * Retrieves the download URL for the saved code package of an agent.
1259
+ *
1260
+ * @remarks
1261
+ * Generates a time-limited, read-only download URL for the code package referenced by the currently saved agent configuration. This applies to code packages uploaded locally or imported from Object Storage Service (OSS). The operation uses workspaceId and agentId for locating and does not accept arbitrary bucket, object key, or historical version parameters. The current configuration must reference an available, fixed code package, and does not require waiting for a running instance to be ready. An error is returned if the code package does not exist, has changed, or is unreadable. The link is valid for up to 10 minutes and does not exceed the underlying credential expiration time. Call the operation again after it expires. The resourceVersionId indicates the saved configuration version corresponding to this download. The sample download link is redacted. Use the downloadUrl in the response.
1262
+ *
1263
+ * @param request - GetAgentCodePackageDownloadUrlRequest
1264
+ * @param headers - map
1265
+ * @param runtime - runtime options for this request RuntimeOptions
1266
+ * @returns GetAgentCodePackageDownloadUrlResponse
1267
+ */
1268
+ getAgentCodePackageDownloadUrlWithOptions(workspaceId: string, agentId: string, request: $_model.GetAgentCodePackageDownloadUrlRequest, headers: {
1269
+ [key: string]: string;
1270
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetAgentCodePackageDownloadUrlResponse>;
1271
+ /**
1272
+ * Retrieves the download URL for the saved code package of an agent.
1273
+ *
1274
+ * @remarks
1275
+ * Generates a time-limited, read-only download URL for the code package referenced by the currently saved agent configuration. This applies to code packages uploaded locally or imported from Object Storage Service (OSS). The operation uses workspaceId and agentId for locating and does not accept arbitrary bucket, object key, or historical version parameters. The current configuration must reference an available, fixed code package, and does not require waiting for a running instance to be ready. An error is returned if the code package does not exist, has changed, or is unreadable. The link is valid for up to 10 minutes and does not exceed the underlying credential expiration time. Call the operation again after it expires. The resourceVersionId indicates the saved configuration version corresponding to this download. The sample download link is redacted. Use the downloadUrl in the response.
1276
+ *
1277
+ * @param request - GetAgentCodePackageDownloadUrlRequest
1278
+ * @returns GetAgentCodePackageDownloadUrlResponse
1279
+ */
1280
+ getAgentCodePackageDownloadUrl(workspaceId: string, agentId: string, request: $_model.GetAgentCodePackageDownloadUrlRequest): Promise<$_model.GetAgentCodePackageDownloadUrlResponse>;
1281
+ /**
1282
+ * Retrieves the OSS RAM authorization URL for the agent code package.
1283
+ *
1284
+ * @remarks
1285
+ * Generates a RAM authorization URL for the resource role of the current workspace for a specified source bucket. The client cannot specify or override the role. After you open the authorizeUrl and confirm the authorization, call VerifyAgentCodePackageOssRamAuthorization to check the policy binding, and call ValidateAgentCodePackageFromOss to check specific objects.
1286
+ * This authorization reuses the OSSObjectRestoreCustom template, which includes permissions to read, write, and delete objects, and is not a read-only authorization. Retrieving the URL itself does not complete the authorization, transfer the code package, or modify the default OSS binding of the workspace. Existing authorizations for the same role and bucket can be reused. The example URL is provided to demonstrate the format. Use the actual authorization URL returned by the API operation.
1287
+ *
1288
+ * @param request - GetAgentCodePackageOssRamAuthorizeUrlRequest
1289
+ * @param headers - map
1290
+ * @param runtime - runtime options for this request RuntimeOptions
1291
+ * @returns GetAgentCodePackageOssRamAuthorizeUrlResponse
1292
+ */
1293
+ getAgentCodePackageOssRamAuthorizeUrlWithOptions(workspaceId: string, request: $_model.GetAgentCodePackageOssRamAuthorizeUrlRequest, headers: {
1294
+ [key: string]: string;
1295
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetAgentCodePackageOssRamAuthorizeUrlResponse>;
1296
+ /**
1297
+ * Retrieves the OSS RAM authorization URL for the agent code package.
1298
+ *
1299
+ * @remarks
1300
+ * Generates a RAM authorization URL for the resource role of the current workspace for a specified source bucket. The client cannot specify or override the role. After you open the authorizeUrl and confirm the authorization, call VerifyAgentCodePackageOssRamAuthorization to check the policy binding, and call ValidateAgentCodePackageFromOss to check specific objects.
1301
+ * This authorization reuses the OSSObjectRestoreCustom template, which includes permissions to read, write, and delete objects, and is not a read-only authorization. Retrieving the URL itself does not complete the authorization, transfer the code package, or modify the default OSS binding of the workspace. Existing authorizations for the same role and bucket can be reused. The example URL is provided to demonstrate the format. Use the actual authorization URL returned by the API operation.
1302
+ *
1303
+ * @param request - GetAgentCodePackageOssRamAuthorizeUrlRequest
1304
+ * @returns GetAgentCodePackageOssRamAuthorizeUrlResponse
1305
+ */
1306
+ getAgentCodePackageOssRamAuthorizeUrl(workspaceId: string, request: $_model.GetAgentCodePackageOssRamAuthorizeUrlRequest): Promise<$_model.GetAgentCodePackageOssRamAuthorizeUrlResponse>;
1307
+ /**
1308
+ * Retrieves the upload URL for an agent code package.
1309
+ *
1310
+ * @remarks
1311
+ * Retrieves a time-limited upload URL for a code package without uploading the file content. The fileName must be a ZIP or TAR.GZ filename without directories. The format must match the file extension. The fileSize is in bytes, with valid values ranging from 1 to 500,000,000.
1312
+ * Use the uploadMethod, uploadUrl, and headers from the response to upload the file directly. After the upload is complete, pass the sourceUri to the artifact.code.sourceUri parameter of CreateCustomAgent or UpdateCustomAgent. The actual object and size are verified and a fixed copy is saved during creation or update. The upload URL is valid for up to 10 minutes and does not exceed the expiration time of the underlying temporary credentials. Retrieve a new URL after it expires. The example URL is desensitized and cannot be used for actual uploads. Use the original URL and request headers from this response.
1313
+ *
1314
+ * @param tmpReq - GetAgentCodePackageUploadUrlRequest
1315
+ * @param headers - map
1316
+ * @param runtime - runtime options for this request RuntimeOptions
1317
+ * @returns GetAgentCodePackageUploadUrlResponse
1318
+ */
1319
+ getAgentCodePackageUploadUrlWithOptions(workspaceId: string, tmpReq: $_model.GetAgentCodePackageUploadUrlRequest, headers: {
1320
+ [key: string]: string;
1321
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetAgentCodePackageUploadUrlResponse>;
1322
+ /**
1323
+ * Retrieves the upload URL for an agent code package.
1324
+ *
1325
+ * @remarks
1326
+ * Retrieves a time-limited upload URL for a code package without uploading the file content. The fileName must be a ZIP or TAR.GZ filename without directories. The format must match the file extension. The fileSize is in bytes, with valid values ranging from 1 to 500,000,000.
1327
+ * Use the uploadMethod, uploadUrl, and headers from the response to upload the file directly. After the upload is complete, pass the sourceUri to the artifact.code.sourceUri parameter of CreateCustomAgent or UpdateCustomAgent. The actual object and size are verified and a fixed copy is saved during creation or update. The upload URL is valid for up to 10 minutes and does not exceed the expiration time of the underlying temporary credentials. Retrieve a new URL after it expires. The example URL is desensitized and cannot be used for actual uploads. Use the original URL and request headers from this response.
1328
+ *
1329
+ * @param request - GetAgentCodePackageUploadUrlRequest
1330
+ * @returns GetAgentCodePackageUploadUrlResponse
1331
+ */
1332
+ getAgentCodePackageUploadUrl(workspaceId: string, request: $_model.GetAgentCodePackageUploadUrlRequest): Promise<$_model.GetAgentCodePackageUploadUrlResponse>;
1043
1333
  /**
1044
1334
  * Queries the details of a specified agent IM channel.
1045
1335
  *
@@ -1193,12 +1483,12 @@ export default class Client extends OpenApi {
1193
1483
  */
1194
1484
  getCredential(workspaceId: string, credentialId: string, request: $_model.GetCredentialRequest): Promise<$_model.GetCredentialResponse>;
1195
1485
  /**
1196
- * 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.
1486
+ * Queries the details of a custom agent in a specified workspace, including deployment configurations, the execute status of the latest configuration version, and the running instance status statistics.
1197
1487
  *
1198
1488
  * @remarks
1199
1489
  * After creating or updating a custom agent, you can poll this operation to query the execution result of the latest configuration version. latestVersionStatus corresponds to latestSpecVersion. latestExecutionError indicates the cause of the pending or failed status for this version. If retryable is true, you can query again later.
1200
- * 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.
1201
- * 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.
1490
+ * The returned configuration is the latest submitted configuration and may not have taken effect. Verify the deployment and running status by checking latestVersionStatus, the overall agent status, and the running instance statistics sandboxPhaseCounts.
1491
+ * If the queried custom agent does not exist, has been deleted, or does not belong to the specified workspace, a resource not found error is returned.
1202
1492
  *
1203
1493
  * @param request - GetCustomAgentRequest
1204
1494
  * @param headers - map
@@ -1209,12 +1499,12 @@ export default class Client extends OpenApi {
1209
1499
  [key: string]: string;
1210
1500
  }, runtime: $dara.RuntimeOptions): Promise<$_model.GetCustomAgentResponse>;
1211
1501
  /**
1212
- * 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.
1502
+ * Queries the details of a custom agent in a specified workspace, including deployment configurations, the execute status of the latest configuration version, and the running instance status statistics.
1213
1503
  *
1214
1504
  * @remarks
1215
1505
  * After creating or updating a custom agent, you can poll this operation to query the execution result of the latest configuration version. latestVersionStatus corresponds to latestSpecVersion. latestExecutionError indicates the cause of the pending or failed status for this version. If retryable is true, you can query again later.
1216
- * 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.
1217
- * 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.
1506
+ * The returned configuration is the latest submitted configuration and may not have taken effect. Verify the deployment and running status by checking latestVersionStatus, the overall agent status, and the running instance statistics sandboxPhaseCounts.
1507
+ * If the queried custom agent does not exist, has been deleted, or does not belong to the specified workspace, a resource not found error is returned.
1218
1508
  *
1219
1509
  * @param request - GetCustomAgentRequest
1220
1510
  * @returns GetCustomAgentResponse
@@ -1269,7 +1559,33 @@ export default class Client extends OpenApi {
1269
1559
  */
1270
1560
  getExternalAgentBootstrapOptions(workspaceId: string, agentId: string, request: $_model.GetExternalAgentBootstrapOptionsRequest): Promise<$_model.GetExternalAgentBootstrapOptionsResponse>;
1271
1561
  /**
1272
- * Queries the binding details of the external identity provider for a specified workspace, including the binding status, application configurations, and callback URLs to be configured on the identity provider side. Application secret configurations are not returned.
1562
+ * Queries the binding details of an external identity provider for a specified workspace, including the binding status, application configurations, and the callback URL to be configured on the identity provider side. Application secret configurations are not returned.
1563
+ *
1564
+ * @remarks
1565
+ * ## Features and prerequisites
1566
+ * Reads existing bindings by type. For CustomSSO, the API returns the saved protocol, standardized SAML, expected loginEnabled, syncEnabled, and shared binding status. If SAML is not configured, the saml and configuration fields may not be returned. If SAML is configured, the API additionally queries AgentIdentity, and the configuration field represents the actual SSO/JIT configuration. The saml field serves as the data source for the edit form. The status switches in the configuration field are Enabled and Disabled. If the upstream query fails, an error is returned. This failure must not be treated as an unconfigured state.
1567
+ * Only this API reads back the actual SAML configuration. The list and write APIs do not guarantee that the configuration field is returned. A READY user pool does not indicate that SAML is configured. The UPDATING and UPDATE_FAILED statuses describe logon configuration tasks, not SCIM tasks. The vendor callback URL for CustomSSO is empty. Use GetIdentityProviderSCIM.operationStatus to query SCIM operation results.
1568
+ * ## Requests and examples
1569
+ * GET /workspaces/{workspaceId}/identity-providers/{identityProviderType}
1570
+ * Calling convention: Call this API in the region of the target workspace by using an AccessKey pair or STS token that has permissions on the identity source resources of the workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, rather than the extra body wrapper of the backend direct-connection API. The response example shows only the business data. The outer layer also includes requestId, success, code, message, and httpStatusCode. Retain the requestId for troubleshooting and do not log secrets. Asynchronous business tasks do not imply that the HTTP request uses a persistent connection to wait for completion.
1571
+ * ```text
1572
+ * GET /workspaces/ws-example/identity-providers/CustomSSO
1573
+ * ```
1574
+ * ## Response example
1575
+ * ```json
1576
+ * {
1577
+ * "data": {
1578
+ * "workspaceId": "ws-example",
1579
+ * "identityProviderType": "CustomSSO",
1580
+ * "status": "READY",
1581
+ * "loginEnabled": false,
1582
+ * "syncEnabled": false
1583
+ * }
1584
+ * }
1585
+ * ```
1586
+ * ## Errors and handling
1587
+ * Error handling: A 400 InvalidParameter error indicates that the parameters or current configuration prerequisites are not met. A 404 IdentityProviderNotFound error indicates that no binding of the specified type exists. Synchronous calls to the upstream service may return a 503 IdentityProviderProvisioningUnavailable error if they fail. Retain the request ID for troubleshooting and do not interpret read failures as an unconfigured state. Authentication errors and workspace-not-found errors follow common error handling procedures.
1588
+ * 404 IdentityProviderNotFound: No binding exists, or the specified type is inconsistent with the current binding. If SAML is already configured, an upstream read failure does not degrade to a successful empty configuration.
1273
1589
  *
1274
1590
  * @param request - GetIdentityProviderRequest
1275
1591
  * @param headers - map
@@ -1280,12 +1596,212 @@ export default class Client extends OpenApi {
1280
1596
  [key: string]: string;
1281
1597
  }, runtime: $dara.RuntimeOptions): Promise<$_model.GetIdentityProviderResponse>;
1282
1598
  /**
1283
- * Queries the binding details of the external identity provider for a specified workspace, including the binding status, application configurations, and callback URLs to be configured on the identity provider side. Application secret configurations are not returned.
1599
+ * Queries the binding details of an external identity provider for a specified workspace, including the binding status, application configurations, and the callback URL to be configured on the identity provider side. Application secret configurations are not returned.
1600
+ *
1601
+ * @remarks
1602
+ * ## Features and prerequisites
1603
+ * Reads existing bindings by type. For CustomSSO, the API returns the saved protocol, standardized SAML, expected loginEnabled, syncEnabled, and shared binding status. If SAML is not configured, the saml and configuration fields may not be returned. If SAML is configured, the API additionally queries AgentIdentity, and the configuration field represents the actual SSO/JIT configuration. The saml field serves as the data source for the edit form. The status switches in the configuration field are Enabled and Disabled. If the upstream query fails, an error is returned. This failure must not be treated as an unconfigured state.
1604
+ * Only this API reads back the actual SAML configuration. The list and write APIs do not guarantee that the configuration field is returned. A READY user pool does not indicate that SAML is configured. The UPDATING and UPDATE_FAILED statuses describe logon configuration tasks, not SCIM tasks. The vendor callback URL for CustomSSO is empty. Use GetIdentityProviderSCIM.operationStatus to query SCIM operation results.
1605
+ * ## Requests and examples
1606
+ * GET /workspaces/{workspaceId}/identity-providers/{identityProviderType}
1607
+ * Calling convention: Call this API in the region of the target workspace by using an AccessKey pair or STS token that has permissions on the identity source resources of the workspace. The ws-example, URLs, certificates, and tokens in the following examples are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, rather than the extra body wrapper of the backend direct-connection API. The response example shows only the business data. The outer layer also includes requestId, success, code, message, and httpStatusCode. Retain the requestId for troubleshooting and do not log secrets. Asynchronous business tasks do not imply that the HTTP request uses a persistent connection to wait for completion.
1608
+ * ```text
1609
+ * GET /workspaces/ws-example/identity-providers/CustomSSO
1610
+ * ```
1611
+ * ## Response example
1612
+ * ```json
1613
+ * {
1614
+ * "data": {
1615
+ * "workspaceId": "ws-example",
1616
+ * "identityProviderType": "CustomSSO",
1617
+ * "status": "READY",
1618
+ * "loginEnabled": false,
1619
+ * "syncEnabled": false
1620
+ * }
1621
+ * }
1622
+ * ```
1623
+ * ## Errors and handling
1624
+ * Error handling: A 400 InvalidParameter error indicates that the parameters or current configuration prerequisites are not met. A 404 IdentityProviderNotFound error indicates that no binding of the specified type exists. Synchronous calls to the upstream service may return a 503 IdentityProviderProvisioningUnavailable error if they fail. Retain the request ID for troubleshooting and do not interpret read failures as an unconfigured state. Authentication errors and workspace-not-found errors follow common error handling procedures.
1625
+ * 404 IdentityProviderNotFound: No binding exists, or the specified type is inconsistent with the current binding. If SAML is already configured, an upstream read failure does not degrade to a successful empty configuration.
1284
1626
  *
1285
1627
  * @param request - GetIdentityProviderRequest
1286
1628
  * @returns GetIdentityProviderResponse
1287
1629
  */
1288
1630
  getIdentityProvider(workspaceId: string, identityProviderType: string, request: $_model.GetIdentityProviderRequest): Promise<$_model.GetIdentityProviderResponse>;
1631
+ /**
1632
+ * Queries an identity provider synchronization task.
1633
+ *
1634
+ * @remarks
1635
+ * Queries the status, current step, number of processed users, and failure cause of a manual synchronization task by using the local taskId of AgentCore. The taskId must be obtained from CreateIdentityProviderSyncJob in the same workspace and identity provider. It is not the synchronizationJobId of AgentIdentity. Poll the task until the status is SUCCESS, FAILED, or CANCELED. The PENDING, RUNNING, and PAUSED statuses do not indicate completion. The syncedUserCount includes updated existing users and does not equal the number of newly added users or the progress percentage.
1636
+ * Authorization information: The RAM operation is agentcore:GetIdentityProviderSyncJob, the access level is Read, and the resource ARN is acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is a required authorization resource.
1637
+ * Idempotence and retry: This operation is read-only and can be repeatedly queried.
1638
+ * Calling this API operation is free of charge, and operation records support ActionTrail auditing.
1639
+ * Response example:
1640
+ * ```json
1641
+ * {
1642
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
1643
+ * "message": "success",
1644
+ * "httpStatusCode": 200,
1645
+ * "code": "SUCCESS",
1646
+ * "success": true,
1647
+ * "data": {
1648
+ * "taskId": "12345678-1234-4234-8234-123456789abc",
1649
+ * "status": "SUCCESS",
1650
+ * "currentStep": "SYNC",
1651
+ * "synchronizationJobId": "syncjob_0123456789abcdef0123456789abcdef",
1652
+ * "syncedUserCount": 12
1653
+ * }
1654
+ * }
1655
+ * ```
1656
+ *
1657
+ * @param request - GetIdentityProviderSyncJobRequest
1658
+ * @param headers - map
1659
+ * @param runtime - runtime options for this request RuntimeOptions
1660
+ * @returns GetIdentityProviderSyncJobResponse
1661
+ */
1662
+ getIdentityProviderSyncJobWithOptions(workspaceId: string, identityProviderType: string, taskId: string, request: $_model.GetIdentityProviderSyncJobRequest, headers: {
1663
+ [key: string]: string;
1664
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetIdentityProviderSyncJobResponse>;
1665
+ /**
1666
+ * Queries an identity provider synchronization task.
1667
+ *
1668
+ * @remarks
1669
+ * Queries the status, current step, number of processed users, and failure cause of a manual synchronization task by using the local taskId of AgentCore. The taskId must be obtained from CreateIdentityProviderSyncJob in the same workspace and identity provider. It is not the synchronizationJobId of AgentIdentity. Poll the task until the status is SUCCESS, FAILED, or CANCELED. The PENDING, RUNNING, and PAUSED statuses do not indicate completion. The syncedUserCount includes updated existing users and does not equal the number of newly added users or the progress percentage.
1670
+ * Authorization information: The RAM operation is agentcore:GetIdentityProviderSyncJob, the access level is Read, and the resource ARN is acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is a required authorization resource.
1671
+ * Idempotence and retry: This operation is read-only and can be repeatedly queried.
1672
+ * Calling this API operation is free of charge, and operation records support ActionTrail auditing.
1673
+ * Response example:
1674
+ * ```json
1675
+ * {
1676
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
1677
+ * "message": "success",
1678
+ * "httpStatusCode": 200,
1679
+ * "code": "SUCCESS",
1680
+ * "success": true,
1681
+ * "data": {
1682
+ * "taskId": "12345678-1234-4234-8234-123456789abc",
1683
+ * "status": "SUCCESS",
1684
+ * "currentStep": "SYNC",
1685
+ * "synchronizationJobId": "syncjob_0123456789abcdef0123456789abcdef",
1686
+ * "syncedUserCount": 12
1687
+ * }
1688
+ * }
1689
+ * ```
1690
+ *
1691
+ * @param request - GetIdentityProviderSyncJobRequest
1692
+ * @returns GetIdentityProviderSyncJobResponse
1693
+ */
1694
+ getIdentityProviderSyncJob(workspaceId: string, identityProviderType: string, taskId: string, request: $_model.GetIdentityProviderSyncJobRequest): Promise<$_model.GetIdentityProviderSyncJobResponse>;
1695
+ /**
1696
+ * Queries the synchronization scope of an identity provider.
1697
+ *
1698
+ * @remarks
1699
+ * Queries the saved synchronization scope, the validity of selected departments, and the estimated user count downstream of the identity provider. This operation is not used for real-time estimation of unsaved selections. AllAuthorized indicates the address book scope authorized for the application, which is not equivalent to the entire enterprise organization. An empty selectedDepartments array does not prove that the organization has no sub-departments. The estimation can be used only when estimateStatus is Ready and a count is returned. A missing count does not indicate 0.
1700
+ * Authorization information: RAM operation agentcore:GetIdentityProviderSyncScope, access level Read, resource ARN: acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is a required authorization resource.
1701
+ * Idempotence and retry: This operation is read-only and can be queried repeatedly.
1702
+ * Calling this API operation is free of charge. Operation records support ActionTrail auditing.
1703
+ * Sample response:
1704
+ * ```json
1705
+ * {
1706
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
1707
+ * "message": "success",
1708
+ * "httpStatusCode": 200,
1709
+ * "code": "SUCCESS",
1710
+ * "success": true,
1711
+ * "data": {
1712
+ * "syncScope": {
1713
+ * "mode": "SelectedDepartments",
1714
+ * "departmentIds": [
1715
+ * "10001"
1716
+ * ]
1717
+ * },
1718
+ * "selectedDepartments": [
1719
+ * {
1720
+ * "id": "10001",
1721
+ * "name": "R&D Department",
1722
+ * "exists": true
1723
+ * }
1724
+ * ],
1725
+ * "estimateStatus": "Ready",
1726
+ * "expandedDepartmentCount": 2,
1727
+ * "estimatedUserCount": 12
1728
+ * }
1729
+ * }
1730
+ * ```
1731
+ *
1732
+ * @param request - GetIdentityProviderSyncScopeRequest
1733
+ * @param headers - map
1734
+ * @param runtime - runtime options for this request RuntimeOptions
1735
+ * @returns GetIdentityProviderSyncScopeResponse
1736
+ */
1737
+ getIdentityProviderSyncScopeWithOptions(workspaceId: string, identityProviderType: string, request: $_model.GetIdentityProviderSyncScopeRequest, headers: {
1738
+ [key: string]: string;
1739
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetIdentityProviderSyncScopeResponse>;
1740
+ /**
1741
+ * Queries the synchronization scope of an identity provider.
1742
+ *
1743
+ * @remarks
1744
+ * Queries the saved synchronization scope, the validity of selected departments, and the estimated user count downstream of the identity provider. This operation is not used for real-time estimation of unsaved selections. AllAuthorized indicates the address book scope authorized for the application, which is not equivalent to the entire enterprise organization. An empty selectedDepartments array does not prove that the organization has no sub-departments. The estimation can be used only when estimateStatus is Ready and a count is returned. A missing count does not indicate 0.
1745
+ * Authorization information: RAM operation agentcore:GetIdentityProviderSyncScope, access level Read, resource ARN: acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is a required authorization resource.
1746
+ * Idempotence and retry: This operation is read-only and can be queried repeatedly.
1747
+ * Calling this API operation is free of charge. Operation records support ActionTrail auditing.
1748
+ * Sample response:
1749
+ * ```json
1750
+ * {
1751
+ * "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",
1752
+ * "message": "success",
1753
+ * "httpStatusCode": 200,
1754
+ * "code": "SUCCESS",
1755
+ * "success": true,
1756
+ * "data": {
1757
+ * "syncScope": {
1758
+ * "mode": "SelectedDepartments",
1759
+ * "departmentIds": [
1760
+ * "10001"
1761
+ * ]
1762
+ * },
1763
+ * "selectedDepartments": [
1764
+ * {
1765
+ * "id": "10001",
1766
+ * "name": "R&D Department",
1767
+ * "exists": true
1768
+ * }
1769
+ * ],
1770
+ * "estimateStatus": "Ready",
1771
+ * "expandedDepartmentCount": 2,
1772
+ * "estimatedUserCount": 12
1773
+ * }
1774
+ * }
1775
+ * ```
1776
+ *
1777
+ * @param request - GetIdentityProviderSyncScopeRequest
1778
+ * @returns GetIdentityProviderSyncScopeResponse
1779
+ */
1780
+ getIdentityProviderSyncScope(workspaceId: string, identityProviderType: string, request: $_model.GetIdentityProviderSyncScopeRequest): Promise<$_model.GetIdentityProviderSyncScopeResponse>;
1781
+ /**
1782
+ * Queries the details of an image cache.
1783
+ *
1784
+ * @remarks
1785
+ * 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.
1786
+ *
1787
+ * @param request - GetImageCacheRequest
1788
+ * @param headers - map
1789
+ * @param runtime - runtime options for this request RuntimeOptions
1790
+ * @returns GetImageCacheResponse
1791
+ */
1792
+ getImageCacheWithOptions(imageId: string, request: $_model.GetImageCacheRequest, headers: {
1793
+ [key: string]: string;
1794
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetImageCacheResponse>;
1795
+ /**
1796
+ * Queries the details of an image cache.
1797
+ *
1798
+ * @remarks
1799
+ * 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.
1800
+ *
1801
+ * @param request - GetImageCacheRequest
1802
+ * @returns GetImageCacheResponse
1803
+ */
1804
+ getImageCache(imageId: string, request: $_model.GetImageCacheRequest): Promise<$_model.GetImageCacheResponse>;
1289
1805
  /**
1290
1806
  * Queries the details of a specified managed agent.
1291
1807
  *
@@ -1649,10 +2165,10 @@ export default class Client extends OpenApi {
1649
2165
  */
1650
2166
  getWorkspace(workspaceId: string, request: $_model.GetWorkspaceRequest): Promise<$_model.GetWorkspaceResponse>;
1651
2167
  /**
1652
- * Queries the RAM authorization URL for ACR in a workspace.
2168
+ * Queries the ACR RAM authorization URL of a workspace.
1653
2169
  *
1654
2170
  * @remarks
1655
- * ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is 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.
2171
+ * ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is reused and permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. The acrInstanceId, namespace, and repository parameters are required. The region and account are derived from the workspace context. Returns the role resolved by the backend and the authorization URL for the target repository. This operation does not create ACR or agent execution versions, nor does it deliver runtime configurations. After authorization is complete, you can call Verify before creating or updating an agent, without the need to call an independent Ensure operation.
1656
2172
  *
1657
2173
  * @param request - GetWorkspaceAcrRamAuthorizeUrlRequest
1658
2174
  * @param headers - map
@@ -1663,10 +2179,10 @@ export default class Client extends OpenApi {
1663
2179
  [key: string]: string;
1664
2180
  }, runtime: $dara.RuntimeOptions): Promise<$_model.GetWorkspaceAcrRamAuthorizeUrlResponse>;
1665
2181
  /**
1666
- * Queries the RAM authorization URL for ACR in a workspace.
2182
+ * Queries the ACR RAM authorization URL of a workspace.
1667
2183
  *
1668
2184
  * @remarks
1669
- * ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is 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.
2185
+ * ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is reused and permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. The acrInstanceId, namespace, and repository parameters are required. The region and account are derived from the workspace context. Returns the role resolved by the backend and the authorization URL for the target repository. This operation does not create ACR or agent execution versions, nor does it deliver runtime configurations. After authorization is complete, you can call Verify before creating or updating an agent, without the need to call an independent Ensure operation.
1670
2186
  *
1671
2187
  * @param request - GetWorkspaceAcrRamAuthorizeUrlRequest
1672
2188
  * @returns GetWorkspaceAcrRamAuthorizeUrlResponse
@@ -1768,6 +2284,32 @@ export default class Client extends OpenApi {
1768
2284
  * @returns InstallWorkspacePluginResponse
1769
2285
  */
1770
2286
  installWorkspacePlugin(workspaceId: string, pluginName: string, request: $_model.InstallWorkspacePluginRequest): Promise<$_model.InstallWorkspacePluginResponse>;
2287
+ /**
2288
+ * Queries the runtime environments supported for code deployment.
2289
+ *
2290
+ * @remarks
2291
+ * Queries the directories in the current workspace that can be used to create code package agents or switch runtime environments. Runtime environments are dynamically provided based on the current version configuration, and internal image addresses are not returned.
2292
+ * If maxResults is omitted or set to 0, the default value is 10. If the value is greater than 100, it is processed as 100. Omit nextToken in the first request. For subsequent requests, use the token returned in the previous response as is, and keep the workspace unchanged. If a directory change invalidates the token, query from the first page again. An empty nextToken indicates that there are no more pages. Existing agents continue to use the saved images for restarts, scaling, and regular updates.
2293
+ *
2294
+ * @param request - ListAgentCodeRuntimesRequest
2295
+ * @param headers - map
2296
+ * @param runtime - runtime options for this request RuntimeOptions
2297
+ * @returns ListAgentCodeRuntimesResponse
2298
+ */
2299
+ listAgentCodeRuntimesWithOptions(workspaceId: string, request: $_model.ListAgentCodeRuntimesRequest, headers: {
2300
+ [key: string]: string;
2301
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.ListAgentCodeRuntimesResponse>;
2302
+ /**
2303
+ * Queries the runtime environments supported for code deployment.
2304
+ *
2305
+ * @remarks
2306
+ * Queries the directories in the current workspace that can be used to create code package agents or switch runtime environments. Runtime environments are dynamically provided based on the current version configuration, and internal image addresses are not returned.
2307
+ * If maxResults is omitted or set to 0, the default value is 10. If the value is greater than 100, it is processed as 100. Omit nextToken in the first request. For subsequent requests, use the token returned in the previous response as is, and keep the workspace unchanged. If a directory change invalidates the token, query from the first page again. An empty nextToken indicates that there are no more pages. Existing agents continue to use the saved images for restarts, scaling, and regular updates.
2308
+ *
2309
+ * @param request - ListAgentCodeRuntimesRequest
2310
+ * @returns ListAgentCodeRuntimesResponse
2311
+ */
2312
+ listAgentCodeRuntimes(workspaceId: string, request: $_model.ListAgentCodeRuntimesRequest): Promise<$_model.ListAgentCodeRuntimesResponse>;
1771
2313
  /**
1772
2314
  * Queries the list of IM channels for a specified agent.
1773
2315
  *
@@ -1909,12 +2451,12 @@ export default class Client extends OpenApi {
1909
2451
  */
1910
2452
  listCredentials(workspaceId: string, request: $_model.ListCredentialsRequest): Promise<$_model.ListCredentialsResponse>;
1911
2453
  /**
1912
- * Queries the summaries of custom agents in a specified workspace by using paging. For the complete configuration and the execution results of the latest version, call GetCustomAgent.
2454
+ * Performs a paged query for paging through the custom agent summary in a specified workspace. For the complete configuration and the latest execute results, call GetCustomAgent.
1913
2455
  *
1914
2456
  * @remarks
1915
- * 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.
1916
- * 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.
1917
- * This operation returns the summaries of the current page and does not return the complete deployment configuration or the execution errors of the latest version. To obtain this information, call GetCustomAgent by using the agentId in items.
2457
+ * The default value of maxResults is 20 and the maximum value is 100. If this parameter is omitted or set to 0, the default value is used.
2458
+ * Omit nextToken in the first request. For subsequent requests, pass the nextToken returned in the previous response as is and keep the same workspace. The nextToken is an opaque token. Do not parse or construct it. An empty token in the response indicates that there are no more pages.
2459
+ * This operation returns the summaries of the current page and does not return the complete deployment configurations or the execution errors of the latest version. To obtain this information, call GetCustomAgent by using the agentId in items.
1918
2460
  *
1919
2461
  * @param request - ListCustomAgentsRequest
1920
2462
  * @param headers - map
@@ -1925,12 +2467,12 @@ export default class Client extends OpenApi {
1925
2467
  [key: string]: string;
1926
2468
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListCustomAgentsResponse>;
1927
2469
  /**
1928
- * Queries the summaries of custom agents in a specified workspace by using paging. For the complete configuration and the execution results of the latest version, call GetCustomAgent.
2470
+ * Performs a paged query for paging through the custom agent summary in a specified workspace. For the complete configuration and the latest execute results, call GetCustomAgent.
1929
2471
  *
1930
2472
  * @remarks
1931
- * 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.
1932
- * 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.
1933
- * This operation returns the summaries of the current page and does not return the complete deployment configuration or the execution errors of the latest version. To obtain this information, call GetCustomAgent by using the agentId in items.
2473
+ * The default value of maxResults is 20 and the maximum value is 100. If this parameter is omitted or set to 0, the default value is used.
2474
+ * Omit nextToken in the first request. For subsequent requests, pass the nextToken returned in the previous response as is and keep the same workspace. The nextToken is an opaque token. Do not parse or construct it. An empty token in the response indicates that there are no more pages.
2475
+ * This operation returns the summaries of the current page and does not return the complete deployment configurations or the execution errors of the latest version. To obtain this information, call GetCustomAgent by using the agentId in items.
1934
2476
  *
1935
2477
  * @param request - ListCustomAgentsRequest
1936
2478
  * @returns ListCustomAgentsResponse
@@ -1960,9 +2502,63 @@ export default class Client extends OpenApi {
1960
2502
  * @returns ListExternalAgentsResponse
1961
2503
  */
1962
2504
  listExternalAgents(workspaceId: string, request: $_model.ListExternalAgentsRequest): Promise<$_model.ListExternalAgentsResponse>;
2505
+ /**
2506
+ * Queries the departments of an identity provider by page.
2507
+ *
2508
+ * @remarks
2509
+ * Queries DingTalk or Feishu departments by hierarchy and page. Prerequisites include a bound identity provider, a user pool, valid application credentials, and address book read authorization. If you do not specify parentDepartmentId, the root hierarchy is queried. When expanding a node, specify the ID of the node to query its direct child departments. The hasChildren field indicates whether the node can be expanded and does not mean that child nodes are returned. The nextToken field is used only to query the next page of child departments under the current parent department. This query only reads the directory. It does not save the synchronization scope or import users. If a new department is added to a DingTalk or Feishu organization, re-query the corresponding parent department because the previous list does not reflect the latest directory.\\n\\nAuthorization information: The RAM action is agentcore:ListIdentityProviderDepartments, the access level is List, and the resource ARN is acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is required for authorization.\\n\\nIdempotency and retry: This operation is read-only and can be called repeatedly.\\n\\nCalling this API is free of charge. Operation records support ActionTrail auditing.\\n\\nResponse example:\\n```json\\n{\\n "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",\\n "message": "success",\\n "httpStatusCode": 200,\\n "code": "SUCCESS",\\n "success": true,\\n "maxResults": 50,\\n "nextToken": "",\\n "items": [\\n {\\n "id": "10001",\\n "name": "R&D Department",\\n "parentId": "1",\\n "memberCount": 12,\\n "hasChildren": true\\n }\\n ]\\n}\\n```
2510
+ *
2511
+ * @param request - ListIdentityProviderDepartmentsRequest
2512
+ * @param headers - map
2513
+ * @param runtime - runtime options for this request RuntimeOptions
2514
+ * @returns ListIdentityProviderDepartmentsResponse
2515
+ */
2516
+ listIdentityProviderDepartmentsWithOptions(workspaceId: string, identityProviderType: string, request: $_model.ListIdentityProviderDepartmentsRequest, headers: {
2517
+ [key: string]: string;
2518
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.ListIdentityProviderDepartmentsResponse>;
2519
+ /**
2520
+ * Queries the departments of an identity provider by page.
2521
+ *
2522
+ * @remarks
2523
+ * Queries DingTalk or Feishu departments by hierarchy and page. Prerequisites include a bound identity provider, a user pool, valid application credentials, and address book read authorization. If you do not specify parentDepartmentId, the root hierarchy is queried. When expanding a node, specify the ID of the node to query its direct child departments. The hasChildren field indicates whether the node can be expanded and does not mean that child nodes are returned. The nextToken field is used only to query the next page of child departments under the current parent department. This query only reads the directory. It does not save the synchronization scope or import users. If a new department is added to a DingTalk or Feishu organization, re-query the corresponding parent department because the previous list does not reflect the latest directory.\\n\\nAuthorization information: The RAM action is agentcore:ListIdentityProviderDepartments, the access level is List, and the resource ARN is acs:agentcore:{regionId}:{accountId}:workspace/{workspaceId}/identityProvider/{identityProviderType}. This resource is required for authorization.\\n\\nIdempotency and retry: This operation is read-only and can be called repeatedly.\\n\\nCalling this API is free of charge. Operation records support ActionTrail auditing.\\n\\nResponse example:\\n```json\\n{\\n "requestId": "01234567-89AB-CDEF-0123-456789ABCDEF",\\n "message": "success",\\n "httpStatusCode": 200,\\n "code": "SUCCESS",\\n "success": true,\\n "maxResults": 50,\\n "nextToken": "",\\n "items": [\\n {\\n "id": "10001",\\n "name": "R&D Department",\\n "parentId": "1",\\n "memberCount": 12,\\n "hasChildren": true\\n }\\n ]\\n}\\n```
2524
+ *
2525
+ * @param request - ListIdentityProviderDepartmentsRequest
2526
+ * @returns ListIdentityProviderDepartmentsResponse
2527
+ */
2528
+ listIdentityProviderDepartments(workspaceId: string, identityProviderType: string, request: $_model.ListIdentityProviderDepartmentsRequest): Promise<$_model.ListIdentityProviderDepartmentsResponse>;
1963
2529
  /**
1964
2530
  * Queries the external identity providers bound to a specified workspace. Each workspace can be bound to at most one external identity provider, so the response returns at most one record. Application secret configurations are not returned.
1965
2531
  *
2532
+ * @remarks
2533
+ * ## Features and prerequisites
2534
+ * Returns the local binding summary without querying the actual SAML or SCIM configurations of AgentIdentity. If no binding exists, items is an empty array. A workspace currently supports only one external binding. The default value of maxResults is 10, and the valid range is 1 to 100. Currently, nextToken must be omitted or left empty. A non-empty value returns InvalidParameter, and fictitious multi-page results are not supported.
2535
+ * The status of CustomSSO indicates the task status of shared resources and logon configurations. You must check protocol and saml to determine whether SAML is configured. To query SCIM configurations, independently call GetIdentityProviderSCIM. The list operation does not issue tokens and does not return the vendor appSecret, encryptKey, or verificationToken.
2536
+ * ## Requests and examples
2537
+ * GET /workspaces/{workspaceId}/identity-providers
2538
+ * Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or Security Token Service (STS) token that has the required permissions on the identity source resources of the workspace. In the following examples, ws-example, URLs, certificates, and tokens are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example shows only the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Retain the requestId for troubleshooting and do not record secrets. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
2539
+ * ```text
2540
+ * GET /workspaces/ws-example/identity-providers?maxResults=10
2541
+ * ```
2542
+ * ## Response examples
2543
+ * ```json
2544
+ * {
2545
+ * "items": [
2546
+ * {
2547
+ * "workspaceId": "ws-example",
2548
+ * "identityProviderType": "CustomSSO",
2549
+ * "status": "READY",
2550
+ * "loginEnabled": false,
2551
+ * "syncEnabled": false
2552
+ * }
2553
+ * ],
2554
+ * "maxResults": 10,
2555
+ * "totalCount": 1
2556
+ * }
2557
+ * ```
2558
+ * ## Errors and handling
2559
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. Synchronous calls to upstream services that fail may return 503 IdentityProviderProvisioningUnavailable. Retain the request ID for troubleshooting and do not interpret read failures as unconfigured. Actual authentication and workspace non-existence errors follow common error handling.
2560
+ * 400 InvalidParameter: maxResults is out of bounds, or nextToken is not empty, which is currently not supported. If a query fails, an error is displayed instead of resetting the status to unconfigured.
2561
+ *
1966
2562
  * @param request - ListIdentityProvidersRequest
1967
2563
  * @param headers - map
1968
2564
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1974,10 +2570,64 @@ export default class Client extends OpenApi {
1974
2570
  /**
1975
2571
  * Queries the external identity providers bound to a specified workspace. Each workspace can be bound to at most one external identity provider, so the response returns at most one record. Application secret configurations are not returned.
1976
2572
  *
2573
+ * @remarks
2574
+ * ## Features and prerequisites
2575
+ * Returns the local binding summary without querying the actual SAML or SCIM configurations of AgentIdentity. If no binding exists, items is an empty array. A workspace currently supports only one external binding. The default value of maxResults is 10, and the valid range is 1 to 100. Currently, nextToken must be omitted or left empty. A non-empty value returns InvalidParameter, and fictitious multi-page results are not supported.
2576
+ * The status of CustomSSO indicates the task status of shared resources and logon configurations. You must check protocol and saml to determine whether SAML is configured. To query SCIM configurations, independently call GetIdentityProviderSCIM. The list operation does not issue tokens and does not return the vendor appSecret, encryptKey, or verificationToken.
2577
+ * ## Requests and examples
2578
+ * GET /workspaces/{workspaceId}/identity-providers
2579
+ * Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or Security Token Service (STS) token that has the required permissions on the identity source resources of the workspace. In the following examples, ws-example, URLs, certificates, and tokens are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example shows only the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Retain the requestId for troubleshooting and do not record secrets. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
2580
+ * ```text
2581
+ * GET /workspaces/ws-example/identity-providers?maxResults=10
2582
+ * ```
2583
+ * ## Response examples
2584
+ * ```json
2585
+ * {
2586
+ * "items": [
2587
+ * {
2588
+ * "workspaceId": "ws-example",
2589
+ * "identityProviderType": "CustomSSO",
2590
+ * "status": "READY",
2591
+ * "loginEnabled": false,
2592
+ * "syncEnabled": false
2593
+ * }
2594
+ * ],
2595
+ * "maxResults": 10,
2596
+ * "totalCount": 1
2597
+ * }
2598
+ * ```
2599
+ * ## Errors and handling
2600
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. Synchronous calls to upstream services that fail may return 503 IdentityProviderProvisioningUnavailable. Retain the request ID for troubleshooting and do not interpret read failures as unconfigured. Actual authentication and workspace non-existence errors follow common error handling.
2601
+ * 400 InvalidParameter: maxResults is out of bounds, or nextToken is not empty, which is currently not supported. If a query fails, an error is displayed instead of resetting the status to unconfigured.
2602
+ *
1977
2603
  * @param request - ListIdentityProvidersRequest
1978
2604
  * @returns ListIdentityProvidersResponse
1979
2605
  */
1980
2606
  listIdentityProviders(workspaceId: string, request: $_model.ListIdentityProvidersRequest): Promise<$_model.ListIdentityProvidersResponse>;
2607
+ /**
2608
+ * Queries image caches.
2609
+ *
2610
+ * @remarks
2611
+ * 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.
2612
+ *
2613
+ * @param request - ListImageCachesRequest
2614
+ * @param headers - map
2615
+ * @param runtime - runtime options for this request RuntimeOptions
2616
+ * @returns ListImageCachesResponse
2617
+ */
2618
+ listImageCachesWithOptions(request: $_model.ListImageCachesRequest, headers: {
2619
+ [key: string]: string;
2620
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.ListImageCachesResponse>;
2621
+ /**
2622
+ * Queries image caches.
2623
+ *
2624
+ * @remarks
2625
+ * 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.
2626
+ *
2627
+ * @param request - ListImageCachesRequest
2628
+ * @returns ListImageCachesResponse
2629
+ */
2630
+ listImageCaches(request: $_model.ListImageCachesRequest): Promise<$_model.ListImageCachesResponse>;
1981
2631
  /**
1982
2632
  * Queries the list of managed agents in a specified workspace.
1983
2633
  *
@@ -2079,10 +2729,10 @@ export default class Client extends OpenApi {
2079
2729
  */
2080
2730
  listMcps(workspaceId: string, request: $_model.ListMcpsRequest): Promise<$_model.ListMcpsResponse>;
2081
2731
  /**
2082
- * Performs a paged query on long-term memory. Paging is supported, and you can filter the results independently by user ID, agent ID, and session ID.
2732
+ * Performs a paged query on long-term memory records. The results can be filtered independently by user ID, agent ID, and session ID. Paging is supported.
2083
2733
  *
2084
2734
  * @remarks
2085
- * Performs a paged query on long-term memory. Paging is supported, and you can filter the results independently by user ID, agent ID, and session ID.
2735
+ * Performs a paged query on long-term memory records. The results can be filtered independently by user ID, agent ID, and session ID. Paging is supported.
2086
2736
  *
2087
2737
  * @param request - ListMemoriesRequest
2088
2738
  * @param headers - map
@@ -2093,20 +2743,20 @@ export default class Client extends OpenApi {
2093
2743
  [key: string]: string;
2094
2744
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListMemoriesResponse>;
2095
2745
  /**
2096
- * Performs a paged query on long-term memory. Paging is supported, and you can filter the results independently by user ID, agent ID, and session ID.
2746
+ * Performs a paged query on long-term memory records. The results can be filtered independently by user ID, agent ID, and session ID. Paging is supported.
2097
2747
  *
2098
2748
  * @remarks
2099
- * Performs a paged query on long-term memory. Paging is supported, and you can filter the results independently by user ID, agent ID, and session ID.
2749
+ * Performs a paged query on long-term memory records. The results can be filtered independently by user ID, agent ID, and session ID. Paging is supported.
2100
2750
  *
2101
2751
  * @param request - ListMemoriesRequest
2102
2752
  * @returns ListMemoriesResponse
2103
2753
  */
2104
2754
  listMemories(workspaceId: string, memoryStoreName: string, request: $_model.ListMemoriesRequest): Promise<$_model.ListMemoriesResponse>;
2105
2755
  /**
2106
- * Performs a paged query for raw messages by exact scope with paging. SessionId is required, and at least one of UserId and AgentId must be provided.
2756
+ * Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
2107
2757
  *
2108
2758
  * @remarks
2109
- * Performs a paged query for raw messages by exact scope with paging. SessionId is required, and at least one of UserId and AgentId must be provided.
2759
+ * Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
2110
2760
  *
2111
2761
  * @param request - ListMemorySessionMessagesRequest
2112
2762
  * @param headers - map
@@ -2117,20 +2767,20 @@ export default class Client extends OpenApi {
2117
2767
  [key: string]: string;
2118
2768
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListMemorySessionMessagesResponse>;
2119
2769
  /**
2120
- * Performs a paged query for raw messages by exact scope with paging. SessionId is required, and at least one of UserId and AgentId must be provided.
2770
+ * Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
2121
2771
  *
2122
2772
  * @remarks
2123
- * Performs a paged query for raw messages by exact scope with paging. SessionId is required, and at least one of UserId and AgentId must be provided.
2773
+ * Performs a paging query for raw messages by exact scope. SessionId is required, and at least one of UserId and AgentId must be provided.
2124
2774
  *
2125
2775
  * @param request - ListMemorySessionMessagesRequest
2126
2776
  * @returns ListMemorySessionMessagesResponse
2127
2777
  */
2128
2778
  listMemorySessionMessages(workspaceId: string, memoryStoreName: string, request: $_model.ListMemorySessionMessagesRequest): Promise<$_model.ListMemorySessionMessagesResponse>;
2129
2779
  /**
2130
- * Performs a paging query for sessions in a MemoryStore, and allows independent filtering by user ID and agent ID.
2780
+ * Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
2131
2781
  *
2132
2782
  * @remarks
2133
- * Performs a paging query for sessions in a MemoryStore, and allows independent filtering by user ID and agent ID.
2783
+ * Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
2134
2784
  *
2135
2785
  * @param request - ListMemorySessionsRequest
2136
2786
  * @param headers - map
@@ -2141,20 +2791,20 @@ export default class Client extends OpenApi {
2141
2791
  [key: string]: string;
2142
2792
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListMemorySessionsResponse>;
2143
2793
  /**
2144
- * Performs a paging query for sessions in a MemoryStore, and allows independent filtering by user ID and agent ID.
2794
+ * Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
2145
2795
  *
2146
2796
  * @remarks
2147
- * Performs a paging query for sessions in a MemoryStore, and allows independent filtering by user ID and agent ID.
2797
+ * Performs a paging query for sessions in a MemoryStore. You can filter the sessions independently by user ID and agent ID.
2148
2798
  *
2149
2799
  * @param request - ListMemorySessionsRequest
2150
2800
  * @returns ListMemorySessionsResponse
2151
2801
  */
2152
2802
  listMemorySessions(workspaceId: string, memoryStoreName: string, request: $_model.ListMemorySessionsRequest): Promise<$_model.ListMemorySessionsResponse>;
2153
2803
  /**
2154
- * Queries MemoryStores in a specified workspace by using paging.
2804
+ * Performs a paged query for MemoryStores in a specified workspace with paging.
2155
2805
  *
2156
2806
  * @remarks
2157
- * Queries MemoryStores in a specified workspace by using paging.
2807
+ * Performs a paged query for MemoryStores in a specified workspace with paging.
2158
2808
  *
2159
2809
  * @param request - ListMemoryStoresRequest
2160
2810
  * @param headers - map
@@ -2165,10 +2815,10 @@ export default class Client extends OpenApi {
2165
2815
  [key: string]: string;
2166
2816
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListMemoryStoresResponse>;
2167
2817
  /**
2168
- * Queries MemoryStores in a specified workspace by using paging.
2818
+ * Performs a paged query for MemoryStores in a specified workspace with paging.
2169
2819
  *
2170
2820
  * @remarks
2171
- * Queries MemoryStores in a specified workspace by using paging.
2821
+ * Performs a paged query for MemoryStores in a specified workspace with paging.
2172
2822
  *
2173
2823
  * @param request - ListMemoryStoresRequest
2174
2824
  * @returns ListMemoryStoresResponse
@@ -2577,10 +3227,34 @@ export default class Client extends OpenApi {
2577
3227
  */
2578
3228
  resetUserPassword(workspaceId: string, request: $_model.ResetUserPasswordRequest): Promise<$_model.ResetUserPasswordResponse>;
2579
3229
  /**
2580
- * Retrieves long-term memory from a MemoryStore based on semantics queries.
3230
+ * Retries the image cache.
2581
3231
  *
2582
3232
  * @remarks
2583
- * Retrieves long-term memory from a MemoryStore based on semantics queries.
3233
+ * 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.
3234
+ *
3235
+ * @param tmpReq - RetryImageCacheRequest
3236
+ * @param headers - map
3237
+ * @param runtime - runtime options for this request RuntimeOptions
3238
+ * @returns RetryImageCacheResponse
3239
+ */
3240
+ retryImageCacheWithOptions(imageId: string, tmpReq: $_model.RetryImageCacheRequest, headers: {
3241
+ [key: string]: string;
3242
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.RetryImageCacheResponse>;
3243
+ /**
3244
+ * Retries the image cache.
3245
+ *
3246
+ * @remarks
3247
+ * 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.
3248
+ *
3249
+ * @param request - RetryImageCacheRequest
3250
+ * @returns RetryImageCacheResponse
3251
+ */
3252
+ retryImageCache(imageId: string, request: $_model.RetryImageCacheRequest): Promise<$_model.RetryImageCacheResponse>;
3253
+ /**
3254
+ * Retrieves long-term memory from a MemoryStore based on semantics.
3255
+ *
3256
+ * @remarks
3257
+ * Retrieves long-term memory from a MemoryStore based on semantics.
2584
3258
  *
2585
3259
  * @param tmpReq - SearchMemoriesRequest
2586
3260
  * @param headers - map
@@ -2591,10 +3265,10 @@ export default class Client extends OpenApi {
2591
3265
  [key: string]: string;
2592
3266
  }, runtime: $dara.RuntimeOptions): Promise<$_model.SearchMemoriesResponse>;
2593
3267
  /**
2594
- * Retrieves long-term memory from a MemoryStore based on semantics queries.
3268
+ * Retrieves long-term memory from a MemoryStore based on semantics.
2595
3269
  *
2596
3270
  * @remarks
2597
- * Retrieves long-term memory from a MemoryStore based on semantics queries.
3271
+ * Retrieves long-term memory from a MemoryStore based on semantics.
2598
3272
  *
2599
3273
  * @param request - SearchMemoriesRequest
2600
3274
  * @returns SearchMemoriesResponse
@@ -2779,9 +3453,11 @@ export default class Client extends OpenApi {
2779
3453
  *
2780
3454
  * @remarks
2781
3455
  * Provide at least one top-level field to update. Omitted top-level fields retain their original configurations. When providing a configuration object, specify its required subfields and include any optional configurations that you want to retain. Arrays are replaced as a whole. Pass an empty array [] to clear a list. The agenticFsMounts field does not accept null. Pass null for the description field to clear the description, and pass null for the healthCheck field to remove the health check.
2782
- * When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field. Currently, only Alibaba Cloud Container Registry (ACR) container image deployment is supported. Omit the artifact.code field.
2783
- * 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.
2784
- * 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.
3456
+ * When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field.
3457
+ * In code package pattern, specify artifact.port and the sourceUri, languageRuntime, and entrypoint fields of artifact.code. Do not specify the container field at the same time. Dependencies must be packaged by the user. ZIP and TAR.GZ formats are supported, and the compressed package size cannot exceed 500,000,000 bytes. Query the runtime environment identity by calling the ListAgentCodeRuntimes operation. The sourceUri field supports oss:// addresses or HTTPS object addresses of standard OSS public domain names, including signed URLs. For local files, first call the GetAgentCodePackageUploadUrl operation to obtain an upload URL, upload the file directly, and then commit the returned sourceUri.
3458
+ * When submitting a new code package source, the backend rechecks read permissions, objects, and sizes. The configuration is saved only after the transfer succeeds. If the transfer fails, the current configuration is not saved. Saved fixed packages can be reused. Set the client timeout to 210 seconds for code package requests. Archive integrity and secure decompression are checked at startup. A successful acceptance does not indicate that the agent is ready to run.
3459
+ * When providing the runtime field, the compute and sessionPolicy fields must be provided at the same time. If the hpa field or its subfields are omitted, unspecified elastic configurations use default values. To retain the original elastic configurations, provide them together. When providing the network field, omitted access items are treated as allowed, but actual access is still restricted by the workspace network configurations. To retain the original restrictions, provide both accessInternet and accessVpc. When providing the healthCheck field, the port field is required, and other unspecified items use default values. When providing the logging.sls field, both project and logstore must be specified.
3460
+ * The update is an asynchronous process. A successful response indicates that the request is accepted. Call the GetCustomAgent operation to query latestSpecVersion, latestVersionStatus, and latestExecutionError, and check the status field to confirm the update result.
2785
3461
  * The clientToken field currently does not provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold field for health checks currently does not take effect. Omit this field.
2786
3462
  *
2787
3463
  * @param tmpReq - UpdateCustomAgentRequest
@@ -2797,9 +3473,11 @@ export default class Client extends OpenApi {
2797
3473
  *
2798
3474
  * @remarks
2799
3475
  * Provide at least one top-level field to update. Omitted top-level fields retain their original configurations. When providing a configuration object, specify its required subfields and include any optional configurations that you want to retain. Arrays are replaced as a whole. Pass an empty array [] to clear a list. The agenticFsMounts field does not accept null. Pass null for the description field to clear the description, and pass null for the healthCheck field to remove the health check.
2800
- * When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field. Currently, only Alibaba Cloud Container Registry (ACR) container image deployment is supported. Omit the artifact.code field.
2801
- * 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.
2802
- * 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.
3476
+ * When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field.
3477
+ * In code package pattern, specify artifact.port and the sourceUri, languageRuntime, and entrypoint fields of artifact.code. Do not specify the container field at the same time. Dependencies must be packaged by the user. ZIP and TAR.GZ formats are supported, and the compressed package size cannot exceed 500,000,000 bytes. Query the runtime environment identity by calling the ListAgentCodeRuntimes operation. The sourceUri field supports oss:// addresses or HTTPS object addresses of standard OSS public domain names, including signed URLs. For local files, first call the GetAgentCodePackageUploadUrl operation to obtain an upload URL, upload the file directly, and then commit the returned sourceUri.
3478
+ * When submitting a new code package source, the backend rechecks read permissions, objects, and sizes. The configuration is saved only after the transfer succeeds. If the transfer fails, the current configuration is not saved. Saved fixed packages can be reused. Set the client timeout to 210 seconds for code package requests. Archive integrity and secure decompression are checked at startup. A successful acceptance does not indicate that the agent is ready to run.
3479
+ * When providing the runtime field, the compute and sessionPolicy fields must be provided at the same time. If the hpa field or its subfields are omitted, unspecified elastic configurations use default values. To retain the original elastic configurations, provide them together. When providing the network field, omitted access items are treated as allowed, but actual access is still restricted by the workspace network configurations. To retain the original restrictions, provide both accessInternet and accessVpc. When providing the healthCheck field, the port field is required, and other unspecified items use default values. When providing the logging.sls field, both project and logstore must be specified.
3480
+ * The update is an asynchronous process. A successful response indicates that the request is accepted. Call the GetCustomAgent operation to query latestSpecVersion, latestVersionStatus, and latestExecutionError, and check the status field to confirm the update result.
2803
3481
  * The clientToken field currently does not provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold field for health checks currently does not take effect. Omit this field.
2804
3482
  *
2805
3483
  * @param request - UpdateCustomAgentRequest
@@ -2831,7 +3509,49 @@ export default class Client extends OpenApi {
2831
3509
  */
2832
3510
  updateExternalAgent(workspaceId: string, agentId: string, request: $_model.UpdateExternalAgentRequest): Promise<$_model.UpdateExternalAgentResponse>;
2833
3511
  /**
2834
- * Updates the login toggle, member synchronization toggle, or application configuration of a specified external identity provider in a workspace. Unspecified properties remain unchanged. The update is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track progress.
3512
+ * Updates the logon switch, member synchronization switch, or application configuration of a specified external identity provider for a workspace. Unspecified properties remain unchanged. The update is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
3513
+ *
3514
+ * @remarks
3515
+ * ## Features and prerequisites
3516
+ * CustomSSO uses protocol=SAML and saml to save logon configurations. It does not accept legacy metadata or syncEnabled. To toggle the SCIM switch, you must call UpdateIdentityProviderSCIM. OIDC is not supported. You can either import XML or manually enter fields. If you import XML, metadataXml must be a single IdP EntityDescriptor XML text of up to 1 MiB. URLs or file paths are not accepted, and DTDs or external entities are prohibited. If you manually enter fields, you must provide entityId, loginUrl, bindingType, and a non-empty x509Certificates array at the same time. The entityId must be non-empty and up to 2,048 characters in length, and cannot be replaced after configuration. The loginUrl must be an absolute HTTPS URL without user credentials or fragments. The bindingType must be HTTP-Redirect or HTTP-POST. Signing certificates must be valid X.509 certificates, and up to 10 certificates are supported.
3517
+ * Saving the configuration does not automatically enable logon. A valid SAML configuration must exist before you enable logon. Setting loginEnabled=false only disables logon and does not clear SAML or SCIM configurations. You can independently pass Boolean values for jitProvisionEnabled and jitUpdateEnabled. If omitted, the existing values are retained. If omitted for the first time, the default value is false. Updating only the JIT switches also requires a valid SAML configuration. If the request is unchanged, the current binding may be returned directly without generating a new task. A successful update returns UPDATING. You can call GetIdentityProvider and wait for READY or UPDATE_FAILED. If the update fails, you can resubmit the request. An HTTP success response does not indicate that the upstream configuration has taken effect.
3518
+ * DingTalk and Feishu continue to use vendor metadata and logon or synchronization switches. They do not accept protocol or saml. Updating vendor metadata supports partial updates. You only need to submit the fields to be modified. Unsubmitted fields and saved credentials remain unchanged. The server merges the new and old values and then validates the complete configuration. Explicitly submitted fields cannot be null, empty strings, or blank strings. For example, you can submit only appSecret to update the secret. The existing vendor semantics of syncScope are retained. Saving the scope does not automatically trigger full synchronization.
3519
+ * ## Request and examples
3520
+ * PUT /workspaces/{workspaceId}/identity-providers/{identityProviderType}
3521
+ * Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or STS token that has permissions on the identity provider resources of the workspace. In the following examples, ws-example, URLs, certificates, and tokens are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example shows only the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not log secrets. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
3522
+ * ```text
3523
+ * PUT /workspaces/ws-example/identity-providers/CustomSSO
3524
+ * {
3525
+ * "protocol": "SAML",
3526
+ * "saml": {
3527
+ * "entityId": "https://idp.example.com/entity",
3528
+ * "loginUrl": "https://idp.example.com/sso",
3529
+ * "bindingType": "HTTP-Redirect",
3530
+ * "x509Certificates": [
3531
+ * "<Valid PEM X.509 certificate text>"
3532
+ * ],
3533
+ * "jitProvisionEnabled": false,
3534
+ * "jitUpdateEnabled": false
3535
+ * }
3536
+ * }
3537
+ * Toggle logon only: {"loginEnabled": true}
3538
+ * ```
3539
+ * ## Response example
3540
+ * ```json
3541
+ * {
3542
+ * "data": {
3543
+ * "workspaceId": "ws-example",
3544
+ * "identityProviderType": "CustomSSO",
3545
+ * "protocol": "SAML",
3546
+ * "loginEnabled": false,
3547
+ * "syncEnabled": false,
3548
+ * "status": "UPDATING"
3549
+ * }
3550
+ * }
3551
+ * ```
3552
+ * ## Errors and handling
3553
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. Synchronous calls to the upstream may return 503 IdentityProviderProvisioningUnavailable if they fail. Keep the request ID for troubleshooting and do not interpret read failures as unconfigured. Actual authentication and workspace non-existence errors follow common error handling.
3554
+ * 400 InvalidParameter: XML and manual entry are mixed, manual entry items are missing, certificates are invalid, the protocol is not supported, entityId is changed, logon is enabled without configuration, or CustomSSO submits metadata or syncEnabled. 409 IdentityProviderOperationConflict: The current binding does not allow updates. CustomSSO supports resubmitting configurations from UPDATE_FAILED.
2835
3555
  *
2836
3556
  * @param tmpReq - UpdateIdentityProviderRequest
2837
3557
  * @param headers - map
@@ -2842,7 +3562,49 @@ export default class Client extends OpenApi {
2842
3562
  [key: string]: string;
2843
3563
  }, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateIdentityProviderResponse>;
2844
3564
  /**
2845
- * Updates the login toggle, member synchronization toggle, or application configuration of a specified external identity provider in a workspace. Unspecified properties remain unchanged. The update is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track progress.
3565
+ * Updates the logon switch, member synchronization switch, or application configuration of a specified external identity provider for a workspace. Unspecified properties remain unchanged. The update is an asynchronous operation. After the API returns, you can call GetIdentityProvider to query the status and track the progress.
3566
+ *
3567
+ * @remarks
3568
+ * ## Features and prerequisites
3569
+ * CustomSSO uses protocol=SAML and saml to save logon configurations. It does not accept legacy metadata or syncEnabled. To toggle the SCIM switch, you must call UpdateIdentityProviderSCIM. OIDC is not supported. You can either import XML or manually enter fields. If you import XML, metadataXml must be a single IdP EntityDescriptor XML text of up to 1 MiB. URLs or file paths are not accepted, and DTDs or external entities are prohibited. If you manually enter fields, you must provide entityId, loginUrl, bindingType, and a non-empty x509Certificates array at the same time. The entityId must be non-empty and up to 2,048 characters in length, and cannot be replaced after configuration. The loginUrl must be an absolute HTTPS URL without user credentials or fragments. The bindingType must be HTTP-Redirect or HTTP-POST. Signing certificates must be valid X.509 certificates, and up to 10 certificates are supported.
3570
+ * Saving the configuration does not automatically enable logon. A valid SAML configuration must exist before you enable logon. Setting loginEnabled=false only disables logon and does not clear SAML or SCIM configurations. You can independently pass Boolean values for jitProvisionEnabled and jitUpdateEnabled. If omitted, the existing values are retained. If omitted for the first time, the default value is false. Updating only the JIT switches also requires a valid SAML configuration. If the request is unchanged, the current binding may be returned directly without generating a new task. A successful update returns UPDATING. You can call GetIdentityProvider and wait for READY or UPDATE_FAILED. If the update fails, you can resubmit the request. An HTTP success response does not indicate that the upstream configuration has taken effect.
3571
+ * DingTalk and Feishu continue to use vendor metadata and logon or synchronization switches. They do not accept protocol or saml. Updating vendor metadata supports partial updates. You only need to submit the fields to be modified. Unsubmitted fields and saved credentials remain unchanged. The server merges the new and old values and then validates the complete configuration. Explicitly submitted fields cannot be null, empty strings, or blank strings. For example, you can submit only appSecret to update the secret. The existing vendor semantics of syncScope are retained. Saving the scope does not automatically trigger full synchronization.
3572
+ * ## Request and examples
3573
+ * PUT /workspaces/{workspaceId}/identity-providers/{identityProviderType}
3574
+ * Call conventions: Call the API in the region of the target workspace by using an AccessKey pair or STS token that has permissions on the identity provider resources of the workspace. In the following examples, ws-example, URLs, certificates, and tokens are placeholder values and must be replaced with actual values. The request body example shows the body parameters of the public API, not the extra body wrapper of the backend direct connection API. The response example shows only the business part. The outer layer also includes requestId, success, code, message, and httpStatusCode. Keep the requestId for troubleshooting and do not log secrets. Asynchronous business tasks do not mean that the HTTP request uses a long connection to wait for completion.
3575
+ * ```text
3576
+ * PUT /workspaces/ws-example/identity-providers/CustomSSO
3577
+ * {
3578
+ * "protocol": "SAML",
3579
+ * "saml": {
3580
+ * "entityId": "https://idp.example.com/entity",
3581
+ * "loginUrl": "https://idp.example.com/sso",
3582
+ * "bindingType": "HTTP-Redirect",
3583
+ * "x509Certificates": [
3584
+ * "<Valid PEM X.509 certificate text>"
3585
+ * ],
3586
+ * "jitProvisionEnabled": false,
3587
+ * "jitUpdateEnabled": false
3588
+ * }
3589
+ * }
3590
+ * Toggle logon only: {"loginEnabled": true}
3591
+ * ```
3592
+ * ## Response example
3593
+ * ```json
3594
+ * {
3595
+ * "data": {
3596
+ * "workspaceId": "ws-example",
3597
+ * "identityProviderType": "CustomSSO",
3598
+ * "protocol": "SAML",
3599
+ * "loginEnabled": false,
3600
+ * "syncEnabled": false,
3601
+ * "status": "UPDATING"
3602
+ * }
3603
+ * }
3604
+ * ```
3605
+ * ## Errors and handling
3606
+ * Error handling: 400 InvalidParameter indicates that the parameters or current configuration prerequisites are not met. 404 IdentityProviderNotFound indicates that no binding of the matching type exists. Synchronous calls to the upstream may return 503 IdentityProviderProvisioningUnavailable if they fail. Keep the request ID for troubleshooting and do not interpret read failures as unconfigured. Actual authentication and workspace non-existence errors follow common error handling.
3607
+ * 400 InvalidParameter: XML and manual entry are mixed, manual entry items are missing, certificates are invalid, the protocol is not supported, entityId is changed, logon is enabled without configuration, or CustomSSO submits metadata or syncEnabled. 409 IdentityProviderOperationConflict: The current binding does not allow updates. CustomSSO supports resubmitting configurations from UPDATE_FAILED.
2846
3608
  *
2847
3609
  * @param request - UpdateIdentityProviderRequest
2848
3610
  * @returns UpdateIdentityProviderResponse
@@ -2917,10 +3679,10 @@ export default class Client extends OpenApi {
2917
3679
  */
2918
3680
  updateMcpTemplateConfig(workspaceId: string, mcpServerId: string, request: $_model.UpdateMcpTemplateConfigRequest): Promise<$_model.UpdateMcpTemplateConfigResponse>;
2919
3681
  /**
2920
- * Updates the long-term memory text or metadata based on the memory ID.
3682
+ * Updates the text or metadata of a long-term memory based on the memory ID.
2921
3683
  *
2922
3684
  * @remarks
2923
- * Updates the long-term memory text or metadata based on the memory ID.
3685
+ * Updates the text or metadata of a long-term memory based on the memory ID.
2924
3686
  *
2925
3687
  * @param tmpReq - UpdateMemoryRequest
2926
3688
  * @param headers - map
@@ -2931,10 +3693,10 @@ export default class Client extends OpenApi {
2931
3693
  [key: string]: string;
2932
3694
  }, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateMemoryResponse>;
2933
3695
  /**
2934
- * Updates the long-term memory text or metadata based on the memory ID.
3696
+ * Updates the text or metadata of a long-term memory based on the memory ID.
2935
3697
  *
2936
3698
  * @remarks
2937
- * Updates the long-term memory text or metadata based on the memory ID.
3699
+ * Updates the text or metadata of a long-term memory based on the memory ID.
2938
3700
  *
2939
3701
  * @param request - UpdateMemoryRequest
2940
3702
  * @returns UpdateMemoryResponse
@@ -3200,6 +3962,56 @@ export default class Client extends OpenApi {
3200
3962
  * @returns UploadSkillViaOssResponse
3201
3963
  */
3202
3964
  uploadSkillViaOss(workspaceId: string, request: $_model.UploadSkillViaOssRequest): Promise<$_model.UploadSkillViaOssResponse>;
3965
+ /**
3966
+ * Validates the OSS code package source for an agent.
3967
+ *
3968
+ * @remarks
3969
+ * Uses the current workspace role to check whether the customer\\"s OSS object exists and is readable, and checks the file name extension and compressed size. Returns the sourceUri, file name, size, and format read in this request. The bucket and object key are passed separately, and HTTPS download URLs are not accepted.
3970
+ * The validation uses object metadata and read probing. It does not perform full downloads, transfers, or decompression, nor does it generate a SHA-256 hash. Passing the validation does not mean that the archive content is complete or can be started. When you submit a CreateCustomAgent or UpdateCustomAgent request, the system re-validates and transfers the package. You do not need to invoke this operation in advance as a prerequisite for submission.
3971
+ *
3972
+ * @param tmpReq - ValidateAgentCodePackageFromOssRequest
3973
+ * @param headers - map
3974
+ * @param runtime - runtime options for this request RuntimeOptions
3975
+ * @returns ValidateAgentCodePackageFromOssResponse
3976
+ */
3977
+ validateAgentCodePackageFromOssWithOptions(workspaceId: string, tmpReq: $_model.ValidateAgentCodePackageFromOssRequest, headers: {
3978
+ [key: string]: string;
3979
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.ValidateAgentCodePackageFromOssResponse>;
3980
+ /**
3981
+ * Validates the OSS code package source for an agent.
3982
+ *
3983
+ * @remarks
3984
+ * Uses the current workspace role to check whether the customer\\"s OSS object exists and is readable, and checks the file name extension and compressed size. Returns the sourceUri, file name, size, and format read in this request. The bucket and object key are passed separately, and HTTPS download URLs are not accepted.
3985
+ * The validation uses object metadata and read probing. It does not perform full downloads, transfers, or decompression, nor does it generate a SHA-256 hash. Passing the validation does not mean that the archive content is complete or can be started. When you submit a CreateCustomAgent or UpdateCustomAgent request, the system re-validates and transfers the package. You do not need to invoke this operation in advance as a prerequisite for submission.
3986
+ *
3987
+ * @param request - ValidateAgentCodePackageFromOssRequest
3988
+ * @returns ValidateAgentCodePackageFromOssResponse
3989
+ */
3990
+ validateAgentCodePackageFromOss(workspaceId: string, request: $_model.ValidateAgentCodePackageFromOssRequest): Promise<$_model.ValidateAgentCodePackageFromOssResponse>;
3991
+ /**
3992
+ * 检查智能体代码包 OSS RAM 授权状态
3993
+ *
3994
+ * @remarks
3995
+ * 检查当前 Workspace 角色是否绑定所选源 Bucket 对应的自定义 RAM 策略,复用已有挂载授权。仅返回策略绑定状态,不验证代码包存在或可读、不修改默认桶。授权状态不能替代 ValidateAgentCodePackageFromOss 的实际对象读取校验。
3996
+ *
3997
+ * @param request - VerifyAgentCodePackageOssRamAuthorizationRequest
3998
+ * @param headers - map
3999
+ * @param runtime - runtime options for this request RuntimeOptions
4000
+ * @returns VerifyAgentCodePackageOssRamAuthorizationResponse
4001
+ */
4002
+ verifyAgentCodePackageOssRamAuthorizationWithOptions(workspaceId: string, request: $_model.VerifyAgentCodePackageOssRamAuthorizationRequest, headers: {
4003
+ [key: string]: string;
4004
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.VerifyAgentCodePackageOssRamAuthorizationResponse>;
4005
+ /**
4006
+ * 检查智能体代码包 OSS RAM 授权状态
4007
+ *
4008
+ * @remarks
4009
+ * 检查当前 Workspace 角色是否绑定所选源 Bucket 对应的自定义 RAM 策略,复用已有挂载授权。仅返回策略绑定状态,不验证代码包存在或可读、不修改默认桶。授权状态不能替代 ValidateAgentCodePackageFromOss 的实际对象读取校验。
4010
+ *
4011
+ * @param request - VerifyAgentCodePackageOssRamAuthorizationRequest
4012
+ * @returns VerifyAgentCodePackageOssRamAuthorizationResponse
4013
+ */
4014
+ verifyAgentCodePackageOssRamAuthorization(workspaceId: string, request: $_model.VerifyAgentCodePackageOssRamAuthorizationRequest): Promise<$_model.VerifyAgentCodePackageOssRamAuthorizationResponse>;
3203
4015
  /**
3204
4016
  * Validates whether one or more Qoder Service Account Keys are available at a specified site. This operation does not save keys or modify the Connector status.
3205
4017
  *
@@ -3228,7 +4040,7 @@ export default class Client extends OpenApi {
3228
4040
  * Verifies the ACR RAM authorization for a workspace.
3229
4041
  *
3230
4042
  * @remarks
3231
- * 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.
4043
+ * ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is retained and only new permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. This operation performs a read-only check to verify whether the custom policies corresponding to the target instance, namespace, and repository are attached to the shared role, and checks the workspace prerequisites. It does not create execution versions or trigger configuration delivery. AUTHORIZED only indicates that the custom policy for the target name is attached, without parsing the policy content or simulating the final permissions. ELIGIBLE does not mean that RuntimeManager capacity or template admission is complete, nor does it require ACR configuration to be delivered. Creating or updating an agent re-verifies permissions and processes ACR dependencies on the backend. Configuration waiting, failures, and retries are reported through agent details.
3232
4044
  *
3233
4045
  * @param request - VerifyWorkspaceAcrRamAuthorizationRequest
3234
4046
  * @param headers - map
@@ -3242,7 +4054,7 @@ export default class Client extends OpenApi {
3242
4054
  * Verifies the ACR RAM authorization for a workspace.
3243
4055
  *
3244
4056
  * @remarks
3245
- * 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.
4057
+ * ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is retained and only new permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. This operation performs a read-only check to verify whether the custom policies corresponding to the target instance, namespace, and repository are attached to the shared role, and checks the workspace prerequisites. It does not create execution versions or trigger configuration delivery. AUTHORIZED only indicates that the custom policy for the target name is attached, without parsing the policy content or simulating the final permissions. ELIGIBLE does not mean that RuntimeManager capacity or template admission is complete, nor does it require ACR configuration to be delivered. Creating or updating an agent re-verifies permissions and processes ACR dependencies on the backend. Configuration waiting, failures, and retries are reported through agent details.
3246
4058
  *
3247
4059
  * @param request - VerifyWorkspaceAcrRamAuthorizationRequest
3248
4060
  * @returns VerifyWorkspaceAcrRamAuthorizationResponse