@aws-sdk/client-bedrock-agentcore-control 3.847.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 (343) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +616 -0
  3. package/dist-cjs/BedrockAgentCoreControl.js +113 -0
  4. package/dist-cjs/BedrockAgentCoreControlClient.js +52 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CreateAgentRuntimeCommand.js +27 -0
  8. package/dist-cjs/commands/CreateAgentRuntimeEndpointCommand.js +27 -0
  9. package/dist-cjs/commands/CreateApiKeyCredentialProviderCommand.js +27 -0
  10. package/dist-cjs/commands/CreateBrowserCommand.js +27 -0
  11. package/dist-cjs/commands/CreateCodeInterpreterCommand.js +27 -0
  12. package/dist-cjs/commands/CreateGatewayCommand.js +27 -0
  13. package/dist-cjs/commands/CreateGatewayTargetCommand.js +27 -0
  14. package/dist-cjs/commands/CreateMemoryCommand.js +27 -0
  15. package/dist-cjs/commands/CreateOauth2CredentialProviderCommand.js +27 -0
  16. package/dist-cjs/commands/CreateWorkloadIdentityCommand.js +26 -0
  17. package/dist-cjs/commands/DeleteAgentRuntimeCommand.js +26 -0
  18. package/dist-cjs/commands/DeleteAgentRuntimeEndpointCommand.js +27 -0
  19. package/dist-cjs/commands/DeleteApiKeyCredentialProviderCommand.js +26 -0
  20. package/dist-cjs/commands/DeleteBrowserCommand.js +26 -0
  21. package/dist-cjs/commands/DeleteCodeInterpreterCommand.js +26 -0
  22. package/dist-cjs/commands/DeleteGatewayCommand.js +26 -0
  23. package/dist-cjs/commands/DeleteGatewayTargetCommand.js +26 -0
  24. package/dist-cjs/commands/DeleteMemoryCommand.js +26 -0
  25. package/dist-cjs/commands/DeleteOauth2CredentialProviderCommand.js +26 -0
  26. package/dist-cjs/commands/DeleteWorkloadIdentityCommand.js +26 -0
  27. package/dist-cjs/commands/GetAgentRuntimeCommand.js +27 -0
  28. package/dist-cjs/commands/GetAgentRuntimeEndpointCommand.js +27 -0
  29. package/dist-cjs/commands/GetApiKeyCredentialProviderCommand.js +26 -0
  30. package/dist-cjs/commands/GetBrowserCommand.js +27 -0
  31. package/dist-cjs/commands/GetCodeInterpreterCommand.js +27 -0
  32. package/dist-cjs/commands/GetGatewayCommand.js +27 -0
  33. package/dist-cjs/commands/GetGatewayTargetCommand.js +27 -0
  34. package/dist-cjs/commands/GetMemoryCommand.js +27 -0
  35. package/dist-cjs/commands/GetOauth2CredentialProviderCommand.js +26 -0
  36. package/dist-cjs/commands/GetTokenVaultCommand.js +26 -0
  37. package/dist-cjs/commands/GetWorkloadIdentityCommand.js +26 -0
  38. package/dist-cjs/commands/ListAgentRuntimeEndpointsCommand.js +27 -0
  39. package/dist-cjs/commands/ListAgentRuntimeVersionsCommand.js +27 -0
  40. package/dist-cjs/commands/ListAgentRuntimesCommand.js +27 -0
  41. package/dist-cjs/commands/ListApiKeyCredentialProvidersCommand.js +26 -0
  42. package/dist-cjs/commands/ListBrowsersCommand.js +27 -0
  43. package/dist-cjs/commands/ListCodeInterpretersCommand.js +27 -0
  44. package/dist-cjs/commands/ListGatewayTargetsCommand.js +27 -0
  45. package/dist-cjs/commands/ListGatewaysCommand.js +27 -0
  46. package/dist-cjs/commands/ListMemoriesCommand.js +26 -0
  47. package/dist-cjs/commands/ListOauth2CredentialProvidersCommand.js +26 -0
  48. package/dist-cjs/commands/ListWorkloadIdentitiesCommand.js +26 -0
  49. package/dist-cjs/commands/SetTokenVaultCMKCommand.js +26 -0
  50. package/dist-cjs/commands/UpdateAgentRuntimeCommand.js +27 -0
  51. package/dist-cjs/commands/UpdateAgentRuntimeEndpointCommand.js +27 -0
  52. package/dist-cjs/commands/UpdateApiKeyCredentialProviderCommand.js +27 -0
  53. package/dist-cjs/commands/UpdateGatewayCommand.js +27 -0
  54. package/dist-cjs/commands/UpdateGatewayTargetCommand.js +27 -0
  55. package/dist-cjs/commands/UpdateMemoryCommand.js +27 -0
  56. package/dist-cjs/commands/UpdateOauth2CredentialProviderCommand.js +27 -0
  57. package/dist-cjs/commands/UpdateWorkloadIdentityCommand.js +26 -0
  58. package/dist-cjs/commands/index.js +54 -0
  59. package/dist-cjs/endpoint/EndpointParameters.js +17 -0
  60. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  61. package/dist-cjs/endpoint/ruleset.js +7 -0
  62. package/dist-cjs/extensionConfiguration.js +2 -0
  63. package/dist-cjs/index.js +12 -0
  64. package/dist-cjs/models/BedrockAgentCoreControlServiceException.js +12 -0
  65. package/dist-cjs/models/index.js +4 -0
  66. package/dist-cjs/models/models_0.js +1213 -0
  67. package/dist-cjs/pagination/Interfaces.js +2 -0
  68. package/dist-cjs/pagination/ListAgentRuntimeEndpointsPaginator.js +7 -0
  69. package/dist-cjs/pagination/ListAgentRuntimeVersionsPaginator.js +7 -0
  70. package/dist-cjs/pagination/ListAgentRuntimesPaginator.js +7 -0
  71. package/dist-cjs/pagination/ListApiKeyCredentialProvidersPaginator.js +7 -0
  72. package/dist-cjs/pagination/ListBrowsersPaginator.js +7 -0
  73. package/dist-cjs/pagination/ListCodeInterpretersPaginator.js +7 -0
  74. package/dist-cjs/pagination/ListGatewayTargetsPaginator.js +7 -0
  75. package/dist-cjs/pagination/ListGatewaysPaginator.js +7 -0
  76. package/dist-cjs/pagination/ListMemoriesPaginator.js +7 -0
  77. package/dist-cjs/pagination/ListOauth2CredentialProvidersPaginator.js +7 -0
  78. package/dist-cjs/pagination/ListWorkloadIdentitiesPaginator.js +7 -0
  79. package/dist-cjs/pagination/index.js +15 -0
  80. package/dist-cjs/protocols/Aws_restJson1.js +2325 -0
  81. package/dist-cjs/runtimeConfig.browser.js +39 -0
  82. package/dist-cjs/runtimeConfig.js +56 -0
  83. package/dist-cjs/runtimeConfig.native.js +15 -0
  84. package/dist-cjs/runtimeConfig.shared.js +34 -0
  85. package/dist-cjs/runtimeExtensions.js +13 -0
  86. package/dist-cjs/waiters/index.js +4 -0
  87. package/dist-cjs/waiters/waitForMemoryCreated.js +54 -0
  88. package/dist-es/BedrockAgentCoreControl.js +109 -0
  89. package/dist-es/BedrockAgentCoreControlClient.js +48 -0
  90. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  91. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  92. package/dist-es/commands/CreateAgentRuntimeCommand.js +23 -0
  93. package/dist-es/commands/CreateAgentRuntimeEndpointCommand.js +23 -0
  94. package/dist-es/commands/CreateApiKeyCredentialProviderCommand.js +23 -0
  95. package/dist-es/commands/CreateBrowserCommand.js +23 -0
  96. package/dist-es/commands/CreateCodeInterpreterCommand.js +23 -0
  97. package/dist-es/commands/CreateGatewayCommand.js +23 -0
  98. package/dist-es/commands/CreateGatewayTargetCommand.js +23 -0
  99. package/dist-es/commands/CreateMemoryCommand.js +23 -0
  100. package/dist-es/commands/CreateOauth2CredentialProviderCommand.js +23 -0
  101. package/dist-es/commands/CreateWorkloadIdentityCommand.js +22 -0
  102. package/dist-es/commands/DeleteAgentRuntimeCommand.js +22 -0
  103. package/dist-es/commands/DeleteAgentRuntimeEndpointCommand.js +23 -0
  104. package/dist-es/commands/DeleteApiKeyCredentialProviderCommand.js +22 -0
  105. package/dist-es/commands/DeleteBrowserCommand.js +22 -0
  106. package/dist-es/commands/DeleteCodeInterpreterCommand.js +22 -0
  107. package/dist-es/commands/DeleteGatewayCommand.js +22 -0
  108. package/dist-es/commands/DeleteGatewayTargetCommand.js +22 -0
  109. package/dist-es/commands/DeleteMemoryCommand.js +22 -0
  110. package/dist-es/commands/DeleteOauth2CredentialProviderCommand.js +22 -0
  111. package/dist-es/commands/DeleteWorkloadIdentityCommand.js +22 -0
  112. package/dist-es/commands/GetAgentRuntimeCommand.js +23 -0
  113. package/dist-es/commands/GetAgentRuntimeEndpointCommand.js +23 -0
  114. package/dist-es/commands/GetApiKeyCredentialProviderCommand.js +22 -0
  115. package/dist-es/commands/GetBrowserCommand.js +23 -0
  116. package/dist-es/commands/GetCodeInterpreterCommand.js +23 -0
  117. package/dist-es/commands/GetGatewayCommand.js +23 -0
  118. package/dist-es/commands/GetGatewayTargetCommand.js +23 -0
  119. package/dist-es/commands/GetMemoryCommand.js +23 -0
  120. package/dist-es/commands/GetOauth2CredentialProviderCommand.js +22 -0
  121. package/dist-es/commands/GetTokenVaultCommand.js +22 -0
  122. package/dist-es/commands/GetWorkloadIdentityCommand.js +22 -0
  123. package/dist-es/commands/ListAgentRuntimeEndpointsCommand.js +23 -0
  124. package/dist-es/commands/ListAgentRuntimeVersionsCommand.js +23 -0
  125. package/dist-es/commands/ListAgentRuntimesCommand.js +23 -0
  126. package/dist-es/commands/ListApiKeyCredentialProvidersCommand.js +22 -0
  127. package/dist-es/commands/ListBrowsersCommand.js +23 -0
  128. package/dist-es/commands/ListCodeInterpretersCommand.js +23 -0
  129. package/dist-es/commands/ListGatewayTargetsCommand.js +23 -0
  130. package/dist-es/commands/ListGatewaysCommand.js +23 -0
  131. package/dist-es/commands/ListMemoriesCommand.js +22 -0
  132. package/dist-es/commands/ListOauth2CredentialProvidersCommand.js +22 -0
  133. package/dist-es/commands/ListWorkloadIdentitiesCommand.js +22 -0
  134. package/dist-es/commands/SetTokenVaultCMKCommand.js +22 -0
  135. package/dist-es/commands/UpdateAgentRuntimeCommand.js +23 -0
  136. package/dist-es/commands/UpdateAgentRuntimeEndpointCommand.js +23 -0
  137. package/dist-es/commands/UpdateApiKeyCredentialProviderCommand.js +23 -0
  138. package/dist-es/commands/UpdateGatewayCommand.js +23 -0
  139. package/dist-es/commands/UpdateGatewayTargetCommand.js +23 -0
  140. package/dist-es/commands/UpdateMemoryCommand.js +23 -0
  141. package/dist-es/commands/UpdateOauth2CredentialProviderCommand.js +23 -0
  142. package/dist-es/commands/UpdateWorkloadIdentityCommand.js +22 -0
  143. package/dist-es/commands/index.js +51 -0
  144. package/dist-es/endpoint/EndpointParameters.js +13 -0
  145. package/dist-es/endpoint/endpointResolver.js +14 -0
  146. package/dist-es/endpoint/ruleset.js +4 -0
  147. package/dist-es/extensionConfiguration.js +1 -0
  148. package/dist-es/index.js +7 -0
  149. package/dist-es/models/BedrockAgentCoreControlServiceException.js +8 -0
  150. package/dist-es/models/index.js +1 -0
  151. package/dist-es/models/models_0.js +1104 -0
  152. package/dist-es/pagination/Interfaces.js +1 -0
  153. package/dist-es/pagination/ListAgentRuntimeEndpointsPaginator.js +4 -0
  154. package/dist-es/pagination/ListAgentRuntimeVersionsPaginator.js +4 -0
  155. package/dist-es/pagination/ListAgentRuntimesPaginator.js +4 -0
  156. package/dist-es/pagination/ListApiKeyCredentialProvidersPaginator.js +4 -0
  157. package/dist-es/pagination/ListBrowsersPaginator.js +4 -0
  158. package/dist-es/pagination/ListCodeInterpretersPaginator.js +4 -0
  159. package/dist-es/pagination/ListGatewayTargetsPaginator.js +4 -0
  160. package/dist-es/pagination/ListGatewaysPaginator.js +4 -0
  161. package/dist-es/pagination/ListMemoriesPaginator.js +4 -0
  162. package/dist-es/pagination/ListOauth2CredentialProvidersPaginator.js +4 -0
  163. package/dist-es/pagination/ListWorkloadIdentitiesPaginator.js +4 -0
  164. package/dist-es/pagination/index.js +12 -0
  165. package/dist-es/protocols/Aws_restJson1.js +2218 -0
  166. package/dist-es/runtimeConfig.browser.js +34 -0
  167. package/dist-es/runtimeConfig.js +51 -0
  168. package/dist-es/runtimeConfig.native.js +11 -0
  169. package/dist-es/runtimeConfig.shared.js +30 -0
  170. package/dist-es/runtimeExtensions.js +9 -0
  171. package/dist-es/waiters/index.js +1 -0
  172. package/dist-es/waiters/waitForMemoryCreated.js +49 -0
  173. package/dist-types/BedrockAgentCoreControl.d.ts +376 -0
  174. package/dist-types/BedrockAgentCoreControlClient.d.ts +238 -0
  175. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  176. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  177. package/dist-types/commands/CreateAgentRuntimeCommand.d.ts +125 -0
  178. package/dist-types/commands/CreateAgentRuntimeEndpointCommand.d.ts +101 -0
  179. package/dist-types/commands/CreateApiKeyCredentialProviderCommand.d.ts +110 -0
  180. package/dist-types/commands/CreateBrowserCommand.d.ts +106 -0
  181. package/dist-types/commands/CreateCodeInterpreterCommand.d.ts +99 -0
  182. package/dist-types/commands/CreateGatewayCommand.d.ts +155 -0
  183. package/dist-types/commands/CreateGatewayTargetCommand.d.ts +259 -0
  184. package/dist-types/commands/CreateMemoryCommand.d.ts +215 -0
  185. package/dist-types/commands/CreateOauth2CredentialProviderCommand.d.ts +147 -0
  186. package/dist-types/commands/CreateWorkloadIdentityCommand.d.ts +97 -0
  187. package/dist-types/commands/DeleteAgentRuntimeCommand.d.ts +87 -0
  188. package/dist-types/commands/DeleteAgentRuntimeEndpointCommand.d.ts +89 -0
  189. package/dist-types/commands/DeleteApiKeyCredentialProviderCommand.d.ts +88 -0
  190. package/dist-types/commands/DeleteBrowserCommand.d.ts +96 -0
  191. package/dist-types/commands/DeleteCodeInterpreterCommand.d.ts +96 -0
  192. package/dist-types/commands/DeleteGatewayCommand.d.ts +94 -0
  193. package/dist-types/commands/DeleteGatewayTargetCommand.d.ts +96 -0
  194. package/dist-types/commands/DeleteMemoryCommand.d.ts +89 -0
  195. package/dist-types/commands/DeleteOauth2CredentialProviderCommand.d.ts +88 -0
  196. package/dist-types/commands/DeleteWorkloadIdentityCommand.d.ts +88 -0
  197. package/dist-types/commands/GetAgentRuntimeCommand.d.ts +124 -0
  198. package/dist-types/commands/GetAgentRuntimeEndpointCommand.d.ts +98 -0
  199. package/dist-types/commands/GetApiKeyCredentialProviderCommand.d.ts +99 -0
  200. package/dist-types/commands/GetBrowserCommand.d.ts +104 -0
  201. package/dist-types/commands/GetCodeInterpreterCommand.d.ts +97 -0
  202. package/dist-types/commands/GetGatewayCommand.d.ts +125 -0
  203. package/dist-types/commands/GetGatewayTargetCommand.d.ts +174 -0
  204. package/dist-types/commands/GetMemoryCommand.d.ts +144 -0
  205. package/dist-types/commands/GetOauth2CredentialProviderCommand.d.ts +170 -0
  206. package/dist-types/commands/GetTokenVaultCommand.d.ts +95 -0
  207. package/dist-types/commands/GetWorkloadIdentityCommand.d.ts +96 -0
  208. package/dist-types/commands/ListAgentRuntimeEndpointsCommand.d.ts +100 -0
  209. package/dist-types/commands/ListAgentRuntimeVersionsCommand.d.ts +100 -0
  210. package/dist-types/commands/ListAgentRuntimesCommand.d.ts +96 -0
  211. package/dist-types/commands/ListApiKeyCredentialProvidersCommand.d.ts +99 -0
  212. package/dist-types/commands/ListBrowsersCommand.d.ts +97 -0
  213. package/dist-types/commands/ListCodeInterpretersCommand.d.ts +97 -0
  214. package/dist-types/commands/ListGatewayTargetsCommand.d.ts +96 -0
  215. package/dist-types/commands/ListGatewaysCommand.d.ts +97 -0
  216. package/dist-types/commands/ListMemoriesCommand.d.ts +97 -0
  217. package/dist-types/commands/ListOauth2CredentialProvidersCommand.d.ts +100 -0
  218. package/dist-types/commands/ListWorkloadIdentitiesCommand.d.ts +97 -0
  219. package/dist-types/commands/SetTokenVaultCMKCommand.d.ts +102 -0
  220. package/dist-types/commands/UpdateAgentRuntimeCommand.d.ts +129 -0
  221. package/dist-types/commands/UpdateAgentRuntimeEndpointCommand.d.ts +103 -0
  222. package/dist-types/commands/UpdateApiKeyCredentialProviderCommand.d.ts +109 -0
  223. package/dist-types/commands/UpdateGatewayCommand.d.ts +158 -0
  224. package/dist-types/commands/UpdateGatewayTargetCommand.d.ts +259 -0
  225. package/dist-types/commands/UpdateMemoryCommand.d.ts +260 -0
  226. package/dist-types/commands/UpdateOauth2CredentialProviderCommand.d.ts +217 -0
  227. package/dist-types/commands/UpdateWorkloadIdentityCommand.d.ts +99 -0
  228. package/dist-types/commands/index.d.ts +51 -0
  229. package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
  230. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  231. package/dist-types/endpoint/ruleset.d.ts +2 -0
  232. package/dist-types/extensionConfiguration.d.ts +9 -0
  233. package/dist-types/index.d.ts +15 -0
  234. package/dist-types/models/BedrockAgentCoreControlServiceException.d.ts +14 -0
  235. package/dist-types/models/index.d.ts +1 -0
  236. package/dist-types/models/models_0.d.ts +5821 -0
  237. package/dist-types/pagination/Interfaces.d.ts +8 -0
  238. package/dist-types/pagination/ListAgentRuntimeEndpointsPaginator.d.ts +7 -0
  239. package/dist-types/pagination/ListAgentRuntimeVersionsPaginator.d.ts +7 -0
  240. package/dist-types/pagination/ListAgentRuntimesPaginator.d.ts +7 -0
  241. package/dist-types/pagination/ListApiKeyCredentialProvidersPaginator.d.ts +7 -0
  242. package/dist-types/pagination/ListBrowsersPaginator.d.ts +7 -0
  243. package/dist-types/pagination/ListCodeInterpretersPaginator.d.ts +7 -0
  244. package/dist-types/pagination/ListGatewayTargetsPaginator.d.ts +7 -0
  245. package/dist-types/pagination/ListGatewaysPaginator.d.ts +7 -0
  246. package/dist-types/pagination/ListMemoriesPaginator.d.ts +7 -0
  247. package/dist-types/pagination/ListOauth2CredentialProvidersPaginator.d.ts +7 -0
  248. package/dist-types/pagination/ListWorkloadIdentitiesPaginator.d.ts +7 -0
  249. package/dist-types/pagination/index.d.ts +12 -0
  250. package/dist-types/protocols/Aws_restJson1.d.ts +461 -0
  251. package/dist-types/runtimeConfig.browser.d.ts +50 -0
  252. package/dist-types/runtimeConfig.d.ts +50 -0
  253. package/dist-types/runtimeConfig.native.d.ts +49 -0
  254. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  255. package/dist-types/runtimeExtensions.d.ts +17 -0
  256. package/dist-types/ts3.4/BedrockAgentCoreControl.d.ts +883 -0
  257. package/dist-types/ts3.4/BedrockAgentCoreControlClient.d.ts +428 -0
  258. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  259. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  260. package/dist-types/ts3.4/commands/CreateAgentRuntimeCommand.d.ts +51 -0
  261. package/dist-types/ts3.4/commands/CreateAgentRuntimeEndpointCommand.d.ts +51 -0
  262. package/dist-types/ts3.4/commands/CreateApiKeyCredentialProviderCommand.d.ts +51 -0
  263. package/dist-types/ts3.4/commands/CreateBrowserCommand.d.ts +50 -0
  264. package/dist-types/ts3.4/commands/CreateCodeInterpreterCommand.d.ts +51 -0
  265. package/dist-types/ts3.4/commands/CreateGatewayCommand.d.ts +50 -0
  266. package/dist-types/ts3.4/commands/CreateGatewayTargetCommand.d.ts +51 -0
  267. package/dist-types/ts3.4/commands/CreateMemoryCommand.d.ts +47 -0
  268. package/dist-types/ts3.4/commands/CreateOauth2CredentialProviderCommand.d.ts +51 -0
  269. package/dist-types/ts3.4/commands/CreateWorkloadIdentityCommand.d.ts +51 -0
  270. package/dist-types/ts3.4/commands/DeleteAgentRuntimeCommand.d.ts +51 -0
  271. package/dist-types/ts3.4/commands/DeleteAgentRuntimeEndpointCommand.d.ts +51 -0
  272. package/dist-types/ts3.4/commands/DeleteApiKeyCredentialProviderCommand.d.ts +51 -0
  273. package/dist-types/ts3.4/commands/DeleteBrowserCommand.d.ts +50 -0
  274. package/dist-types/ts3.4/commands/DeleteCodeInterpreterCommand.d.ts +51 -0
  275. package/dist-types/ts3.4/commands/DeleteGatewayCommand.d.ts +50 -0
  276. package/dist-types/ts3.4/commands/DeleteGatewayTargetCommand.d.ts +51 -0
  277. package/dist-types/ts3.4/commands/DeleteMemoryCommand.d.ts +47 -0
  278. package/dist-types/ts3.4/commands/DeleteOauth2CredentialProviderCommand.d.ts +51 -0
  279. package/dist-types/ts3.4/commands/DeleteWorkloadIdentityCommand.d.ts +51 -0
  280. package/dist-types/ts3.4/commands/GetAgentRuntimeCommand.d.ts +50 -0
  281. package/dist-types/ts3.4/commands/GetAgentRuntimeEndpointCommand.d.ts +51 -0
  282. package/dist-types/ts3.4/commands/GetApiKeyCredentialProviderCommand.d.ts +51 -0
  283. package/dist-types/ts3.4/commands/GetBrowserCommand.d.ts +47 -0
  284. package/dist-types/ts3.4/commands/GetCodeInterpreterCommand.d.ts +51 -0
  285. package/dist-types/ts3.4/commands/GetGatewayCommand.d.ts +47 -0
  286. package/dist-types/ts3.4/commands/GetGatewayTargetCommand.d.ts +50 -0
  287. package/dist-types/ts3.4/commands/GetMemoryCommand.d.ts +47 -0
  288. package/dist-types/ts3.4/commands/GetOauth2CredentialProviderCommand.d.ts +51 -0
  289. package/dist-types/ts3.4/commands/GetTokenVaultCommand.d.ts +50 -0
  290. package/dist-types/ts3.4/commands/GetWorkloadIdentityCommand.d.ts +51 -0
  291. package/dist-types/ts3.4/commands/ListAgentRuntimeEndpointsCommand.d.ts +51 -0
  292. package/dist-types/ts3.4/commands/ListAgentRuntimeVersionsCommand.d.ts +51 -0
  293. package/dist-types/ts3.4/commands/ListAgentRuntimesCommand.d.ts +51 -0
  294. package/dist-types/ts3.4/commands/ListApiKeyCredentialProvidersCommand.d.ts +51 -0
  295. package/dist-types/ts3.4/commands/ListBrowsersCommand.d.ts +47 -0
  296. package/dist-types/ts3.4/commands/ListCodeInterpretersCommand.d.ts +51 -0
  297. package/dist-types/ts3.4/commands/ListGatewayTargetsCommand.d.ts +51 -0
  298. package/dist-types/ts3.4/commands/ListGatewaysCommand.d.ts +47 -0
  299. package/dist-types/ts3.4/commands/ListMemoriesCommand.d.ts +47 -0
  300. package/dist-types/ts3.4/commands/ListOauth2CredentialProvidersCommand.d.ts +51 -0
  301. package/dist-types/ts3.4/commands/ListWorkloadIdentitiesCommand.d.ts +51 -0
  302. package/dist-types/ts3.4/commands/SetTokenVaultCMKCommand.d.ts +50 -0
  303. package/dist-types/ts3.4/commands/UpdateAgentRuntimeCommand.d.ts +51 -0
  304. package/dist-types/ts3.4/commands/UpdateAgentRuntimeEndpointCommand.d.ts +51 -0
  305. package/dist-types/ts3.4/commands/UpdateApiKeyCredentialProviderCommand.d.ts +51 -0
  306. package/dist-types/ts3.4/commands/UpdateGatewayCommand.d.ts +50 -0
  307. package/dist-types/ts3.4/commands/UpdateGatewayTargetCommand.d.ts +51 -0
  308. package/dist-types/ts3.4/commands/UpdateMemoryCommand.d.ts +47 -0
  309. package/dist-types/ts3.4/commands/UpdateOauth2CredentialProviderCommand.d.ts +51 -0
  310. package/dist-types/ts3.4/commands/UpdateWorkloadIdentityCommand.d.ts +51 -0
  311. package/dist-types/ts3.4/commands/index.d.ts +51 -0
  312. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  313. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  314. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  315. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  316. package/dist-types/ts3.4/index.d.ts +10 -0
  317. package/dist-types/ts3.4/models/BedrockAgentCoreControlServiceException.d.ts +9 -0
  318. package/dist-types/ts3.4/models/index.d.ts +1 -0
  319. package/dist-types/ts3.4/models/models_0.d.ts +2222 -0
  320. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  321. package/dist-types/ts3.4/pagination/ListAgentRuntimeEndpointsPaginator.d.ts +11 -0
  322. package/dist-types/ts3.4/pagination/ListAgentRuntimeVersionsPaginator.d.ts +11 -0
  323. package/dist-types/ts3.4/pagination/ListAgentRuntimesPaginator.d.ts +11 -0
  324. package/dist-types/ts3.4/pagination/ListApiKeyCredentialProvidersPaginator.d.ts +11 -0
  325. package/dist-types/ts3.4/pagination/ListBrowsersPaginator.d.ts +11 -0
  326. package/dist-types/ts3.4/pagination/ListCodeInterpretersPaginator.d.ts +11 -0
  327. package/dist-types/ts3.4/pagination/ListGatewayTargetsPaginator.d.ts +11 -0
  328. package/dist-types/ts3.4/pagination/ListGatewaysPaginator.d.ts +11 -0
  329. package/dist-types/ts3.4/pagination/ListMemoriesPaginator.d.ts +11 -0
  330. package/dist-types/ts3.4/pagination/ListOauth2CredentialProvidersPaginator.d.ts +11 -0
  331. package/dist-types/ts3.4/pagination/ListWorkloadIdentitiesPaginator.d.ts +11 -0
  332. package/dist-types/ts3.4/pagination/index.d.ts +12 -0
  333. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +617 -0
  334. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +94 -0
  335. package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
  336. package/dist-types/ts3.4/runtimeConfig.native.d.ts +98 -0
  337. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
  338. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  339. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  340. package/dist-types/ts3.4/waiters/waitForMemoryCreated.d.ts +11 -0
  341. package/dist-types/waiters/index.d.ts +1 -0
  342. package/dist-types/waiters/waitForMemoryCreated.d.ts +14 -0
  343. package/package.json +102 -0
@@ -0,0 +1,2325 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.se_UpdateOauth2CredentialProviderCommand = exports.se_UpdateMemoryCommand = exports.se_UpdateGatewayTargetCommand = exports.se_UpdateGatewayCommand = exports.se_UpdateApiKeyCredentialProviderCommand = exports.se_UpdateAgentRuntimeEndpointCommand = exports.se_UpdateAgentRuntimeCommand = exports.se_SetTokenVaultCMKCommand = exports.se_ListWorkloadIdentitiesCommand = exports.se_ListOauth2CredentialProvidersCommand = exports.se_ListMemoriesCommand = exports.se_ListGatewayTargetsCommand = exports.se_ListGatewaysCommand = exports.se_ListCodeInterpretersCommand = exports.se_ListBrowsersCommand = exports.se_ListApiKeyCredentialProvidersCommand = exports.se_ListAgentRuntimeVersionsCommand = exports.se_ListAgentRuntimesCommand = exports.se_ListAgentRuntimeEndpointsCommand = exports.se_GetWorkloadIdentityCommand = exports.se_GetTokenVaultCommand = exports.se_GetOauth2CredentialProviderCommand = exports.se_GetMemoryCommand = exports.se_GetGatewayTargetCommand = exports.se_GetGatewayCommand = exports.se_GetCodeInterpreterCommand = exports.se_GetBrowserCommand = exports.se_GetApiKeyCredentialProviderCommand = exports.se_GetAgentRuntimeEndpointCommand = exports.se_GetAgentRuntimeCommand = exports.se_DeleteWorkloadIdentityCommand = exports.se_DeleteOauth2CredentialProviderCommand = exports.se_DeleteMemoryCommand = exports.se_DeleteGatewayTargetCommand = exports.se_DeleteGatewayCommand = exports.se_DeleteCodeInterpreterCommand = exports.se_DeleteBrowserCommand = exports.se_DeleteApiKeyCredentialProviderCommand = exports.se_DeleteAgentRuntimeEndpointCommand = exports.se_DeleteAgentRuntimeCommand = exports.se_CreateWorkloadIdentityCommand = exports.se_CreateOauth2CredentialProviderCommand = exports.se_CreateMemoryCommand = exports.se_CreateGatewayTargetCommand = exports.se_CreateGatewayCommand = exports.se_CreateCodeInterpreterCommand = exports.se_CreateBrowserCommand = exports.se_CreateApiKeyCredentialProviderCommand = exports.se_CreateAgentRuntimeEndpointCommand = exports.se_CreateAgentRuntimeCommand = void 0;
4
+ exports.de_UpdateMemoryCommand = exports.de_UpdateGatewayTargetCommand = exports.de_UpdateGatewayCommand = exports.de_UpdateApiKeyCredentialProviderCommand = exports.de_UpdateAgentRuntimeEndpointCommand = exports.de_UpdateAgentRuntimeCommand = exports.de_SetTokenVaultCMKCommand = exports.de_ListWorkloadIdentitiesCommand = exports.de_ListOauth2CredentialProvidersCommand = exports.de_ListMemoriesCommand = exports.de_ListGatewayTargetsCommand = exports.de_ListGatewaysCommand = exports.de_ListCodeInterpretersCommand = exports.de_ListBrowsersCommand = exports.de_ListApiKeyCredentialProvidersCommand = exports.de_ListAgentRuntimeVersionsCommand = exports.de_ListAgentRuntimesCommand = exports.de_ListAgentRuntimeEndpointsCommand = exports.de_GetWorkloadIdentityCommand = exports.de_GetTokenVaultCommand = exports.de_GetOauth2CredentialProviderCommand = exports.de_GetMemoryCommand = exports.de_GetGatewayTargetCommand = exports.de_GetGatewayCommand = exports.de_GetCodeInterpreterCommand = exports.de_GetBrowserCommand = exports.de_GetApiKeyCredentialProviderCommand = exports.de_GetAgentRuntimeEndpointCommand = exports.de_GetAgentRuntimeCommand = exports.de_DeleteWorkloadIdentityCommand = exports.de_DeleteOauth2CredentialProviderCommand = exports.de_DeleteMemoryCommand = exports.de_DeleteGatewayTargetCommand = exports.de_DeleteGatewayCommand = exports.de_DeleteCodeInterpreterCommand = exports.de_DeleteBrowserCommand = exports.de_DeleteApiKeyCredentialProviderCommand = exports.de_DeleteAgentRuntimeEndpointCommand = exports.de_DeleteAgentRuntimeCommand = exports.de_CreateWorkloadIdentityCommand = exports.de_CreateOauth2CredentialProviderCommand = exports.de_CreateMemoryCommand = exports.de_CreateGatewayTargetCommand = exports.de_CreateGatewayCommand = exports.de_CreateCodeInterpreterCommand = exports.de_CreateBrowserCommand = exports.de_CreateApiKeyCredentialProviderCommand = exports.de_CreateAgentRuntimeEndpointCommand = exports.de_CreateAgentRuntimeCommand = exports.se_UpdateWorkloadIdentityCommand = void 0;
5
+ exports.de_UpdateWorkloadIdentityCommand = exports.de_UpdateOauth2CredentialProviderCommand = void 0;
6
+ const core_1 = require("@aws-sdk/core");
7
+ const core_2 = require("@smithy/core");
8
+ const smithy_client_1 = require("@smithy/smithy-client");
9
+ const uuid_1 = require("uuid");
10
+ const BedrockAgentCoreControlServiceException_1 = require("../models/BedrockAgentCoreControlServiceException");
11
+ const models_0_1 = require("../models/models_0");
12
+ const se_CreateAgentRuntimeCommand = async (input, context) => {
13
+ const b = (0, core_2.requestBuilder)(input, context);
14
+ const headers = {
15
+ "content-type": "application/json",
16
+ };
17
+ b.bp("/runtimes");
18
+ let body;
19
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
20
+ agentRuntimeArtifact: (_) => (0, smithy_client_1._json)(_),
21
+ agentRuntimeName: [],
22
+ authorizerConfiguration: (_) => (0, smithy_client_1._json)(_),
23
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
24
+ description: [],
25
+ environmentVariables: (_) => (0, smithy_client_1._json)(_),
26
+ networkConfiguration: (_) => (0, smithy_client_1._json)(_),
27
+ protocolConfiguration: (_) => (0, smithy_client_1._json)(_),
28
+ roleArn: [],
29
+ }));
30
+ b.m("PUT").h(headers).b(body);
31
+ return b.build();
32
+ };
33
+ exports.se_CreateAgentRuntimeCommand = se_CreateAgentRuntimeCommand;
34
+ const se_CreateAgentRuntimeEndpointCommand = async (input, context) => {
35
+ const b = (0, core_2.requestBuilder)(input, context);
36
+ const headers = {
37
+ "content-type": "application/json",
38
+ };
39
+ b.bp("/runtimes/{agentRuntimeId}/runtime-endpoints");
40
+ b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
41
+ let body;
42
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
43
+ agentRuntimeVersion: [],
44
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
45
+ description: [],
46
+ name: [],
47
+ }));
48
+ b.m("PUT").h(headers).b(body);
49
+ return b.build();
50
+ };
51
+ exports.se_CreateAgentRuntimeEndpointCommand = se_CreateAgentRuntimeEndpointCommand;
52
+ const se_CreateApiKeyCredentialProviderCommand = async (input, context) => {
53
+ const b = (0, core_2.requestBuilder)(input, context);
54
+ const headers = {
55
+ "content-type": "application/json",
56
+ };
57
+ b.bp("/identities/CreateApiKeyCredentialProvider");
58
+ let body;
59
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
60
+ apiKey: [],
61
+ name: [],
62
+ }));
63
+ b.m("POST").h(headers).b(body);
64
+ return b.build();
65
+ };
66
+ exports.se_CreateApiKeyCredentialProviderCommand = se_CreateApiKeyCredentialProviderCommand;
67
+ const se_CreateBrowserCommand = async (input, context) => {
68
+ const b = (0, core_2.requestBuilder)(input, context);
69
+ const headers = {
70
+ "content-type": "application/json",
71
+ };
72
+ b.bp("/browsers");
73
+ let body;
74
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
75
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
76
+ description: [],
77
+ executionRoleArn: [],
78
+ name: [],
79
+ networkConfiguration: (_) => (0, smithy_client_1._json)(_),
80
+ recording: (_) => (0, smithy_client_1._json)(_),
81
+ }));
82
+ b.m("PUT").h(headers).b(body);
83
+ return b.build();
84
+ };
85
+ exports.se_CreateBrowserCommand = se_CreateBrowserCommand;
86
+ const se_CreateCodeInterpreterCommand = async (input, context) => {
87
+ const b = (0, core_2.requestBuilder)(input, context);
88
+ const headers = {
89
+ "content-type": "application/json",
90
+ };
91
+ b.bp("/code-interpreters");
92
+ let body;
93
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
94
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
95
+ description: [],
96
+ executionRoleArn: [],
97
+ name: [],
98
+ networkConfiguration: (_) => (0, smithy_client_1._json)(_),
99
+ }));
100
+ b.m("PUT").h(headers).b(body);
101
+ return b.build();
102
+ };
103
+ exports.se_CreateCodeInterpreterCommand = se_CreateCodeInterpreterCommand;
104
+ const se_CreateGatewayCommand = async (input, context) => {
105
+ const b = (0, core_2.requestBuilder)(input, context);
106
+ const headers = {
107
+ "content-type": "application/json",
108
+ };
109
+ b.bp("/gateways");
110
+ let body;
111
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
112
+ authorizerConfiguration: (_) => (0, smithy_client_1._json)(_),
113
+ authorizerType: [],
114
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
115
+ description: [],
116
+ exceptionLevel: [],
117
+ kmsKeyArn: [],
118
+ name: [],
119
+ protocolConfiguration: (_) => (0, smithy_client_1._json)(_),
120
+ protocolType: [],
121
+ roleArn: [],
122
+ }));
123
+ b.m("POST").h(headers).b(body);
124
+ return b.build();
125
+ };
126
+ exports.se_CreateGatewayCommand = se_CreateGatewayCommand;
127
+ const se_CreateGatewayTargetCommand = async (input, context) => {
128
+ const b = (0, core_2.requestBuilder)(input, context);
129
+ const headers = {
130
+ "content-type": "application/json",
131
+ };
132
+ b.bp("/gateways/{gatewayIdentifier}/targets");
133
+ b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
134
+ let body;
135
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
136
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
137
+ credentialProviderConfigurations: (_) => (0, smithy_client_1._json)(_),
138
+ description: [],
139
+ name: [],
140
+ targetConfiguration: (_) => se_TargetConfiguration(_, context),
141
+ }));
142
+ b.m("POST").h(headers).b(body);
143
+ return b.build();
144
+ };
145
+ exports.se_CreateGatewayTargetCommand = se_CreateGatewayTargetCommand;
146
+ const se_CreateMemoryCommand = async (input, context) => {
147
+ const b = (0, core_2.requestBuilder)(input, context);
148
+ const headers = {
149
+ "content-type": "application/json",
150
+ };
151
+ b.bp("/memories/create");
152
+ let body;
153
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
154
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
155
+ description: [],
156
+ encryptionKeyArn: [],
157
+ eventExpiryDuration: [],
158
+ memoryExecutionRoleArn: [],
159
+ memoryStrategies: (_) => (0, smithy_client_1._json)(_),
160
+ name: [],
161
+ }));
162
+ b.m("POST").h(headers).b(body);
163
+ return b.build();
164
+ };
165
+ exports.se_CreateMemoryCommand = se_CreateMemoryCommand;
166
+ const se_CreateOauth2CredentialProviderCommand = async (input, context) => {
167
+ const b = (0, core_2.requestBuilder)(input, context);
168
+ const headers = {
169
+ "content-type": "application/json",
170
+ };
171
+ b.bp("/identities/CreateOauth2CredentialProvider");
172
+ let body;
173
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
174
+ credentialProviderVendor: [],
175
+ name: [],
176
+ oauth2ProviderConfigInput: (_) => (0, smithy_client_1._json)(_),
177
+ }));
178
+ b.m("POST").h(headers).b(body);
179
+ return b.build();
180
+ };
181
+ exports.se_CreateOauth2CredentialProviderCommand = se_CreateOauth2CredentialProviderCommand;
182
+ const se_CreateWorkloadIdentityCommand = async (input, context) => {
183
+ const b = (0, core_2.requestBuilder)(input, context);
184
+ const headers = {
185
+ "content-type": "application/json",
186
+ };
187
+ b.bp("/identities/CreateWorkloadIdentity");
188
+ let body;
189
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
190
+ allowedResourceOauth2ReturnUrls: (_) => (0, smithy_client_1._json)(_),
191
+ name: [],
192
+ }));
193
+ b.m("POST").h(headers).b(body);
194
+ return b.build();
195
+ };
196
+ exports.se_CreateWorkloadIdentityCommand = se_CreateWorkloadIdentityCommand;
197
+ const se_DeleteAgentRuntimeCommand = async (input, context) => {
198
+ const b = (0, core_2.requestBuilder)(input, context);
199
+ const headers = {};
200
+ b.bp("/runtimes/{agentRuntimeId}");
201
+ b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
202
+ let body;
203
+ b.m("DELETE").h(headers).b(body);
204
+ return b.build();
205
+ };
206
+ exports.se_DeleteAgentRuntimeCommand = se_DeleteAgentRuntimeCommand;
207
+ const se_DeleteAgentRuntimeEndpointCommand = async (input, context) => {
208
+ const b = (0, core_2.requestBuilder)(input, context);
209
+ const headers = {};
210
+ b.bp("/runtimes/{agentRuntimeId}/runtime-endpoints/{endpointName}");
211
+ b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
212
+ b.p("endpointName", () => input.endpointName, "{endpointName}", false);
213
+ const query = (0, smithy_client_1.map)({
214
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
215
+ });
216
+ let body;
217
+ b.m("DELETE").h(headers).q(query).b(body);
218
+ return b.build();
219
+ };
220
+ exports.se_DeleteAgentRuntimeEndpointCommand = se_DeleteAgentRuntimeEndpointCommand;
221
+ const se_DeleteApiKeyCredentialProviderCommand = async (input, context) => {
222
+ const b = (0, core_2.requestBuilder)(input, context);
223
+ const headers = {
224
+ "content-type": "application/json",
225
+ };
226
+ b.bp("/identities/DeleteApiKeyCredentialProvider");
227
+ let body;
228
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
229
+ name: [],
230
+ }));
231
+ b.m("POST").h(headers).b(body);
232
+ return b.build();
233
+ };
234
+ exports.se_DeleteApiKeyCredentialProviderCommand = se_DeleteApiKeyCredentialProviderCommand;
235
+ const se_DeleteBrowserCommand = async (input, context) => {
236
+ const b = (0, core_2.requestBuilder)(input, context);
237
+ const headers = {};
238
+ b.bp("/browsers/{browserId}");
239
+ b.p("browserId", () => input.browserId, "{browserId}", false);
240
+ const query = (0, smithy_client_1.map)({
241
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
242
+ });
243
+ let body;
244
+ b.m("DELETE").h(headers).q(query).b(body);
245
+ return b.build();
246
+ };
247
+ exports.se_DeleteBrowserCommand = se_DeleteBrowserCommand;
248
+ const se_DeleteCodeInterpreterCommand = async (input, context) => {
249
+ const b = (0, core_2.requestBuilder)(input, context);
250
+ const headers = {};
251
+ b.bp("/code-interpreters/{codeInterpreterId}");
252
+ b.p("codeInterpreterId", () => input.codeInterpreterId, "{codeInterpreterId}", false);
253
+ const query = (0, smithy_client_1.map)({
254
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
255
+ });
256
+ let body;
257
+ b.m("DELETE").h(headers).q(query).b(body);
258
+ return b.build();
259
+ };
260
+ exports.se_DeleteCodeInterpreterCommand = se_DeleteCodeInterpreterCommand;
261
+ const se_DeleteGatewayCommand = async (input, context) => {
262
+ const b = (0, core_2.requestBuilder)(input, context);
263
+ const headers = {};
264
+ b.bp("/gateways/{gatewayIdentifier}");
265
+ b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
266
+ let body;
267
+ b.m("DELETE").h(headers).b(body);
268
+ return b.build();
269
+ };
270
+ exports.se_DeleteGatewayCommand = se_DeleteGatewayCommand;
271
+ const se_DeleteGatewayTargetCommand = async (input, context) => {
272
+ const b = (0, core_2.requestBuilder)(input, context);
273
+ const headers = {};
274
+ b.bp("/gateways/{gatewayIdentifier}/targets/{targetId}");
275
+ b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
276
+ b.p("targetId", () => input.targetId, "{targetId}", false);
277
+ let body;
278
+ b.m("DELETE").h(headers).b(body);
279
+ return b.build();
280
+ };
281
+ exports.se_DeleteGatewayTargetCommand = se_DeleteGatewayTargetCommand;
282
+ const se_DeleteMemoryCommand = async (input, context) => {
283
+ const b = (0, core_2.requestBuilder)(input, context);
284
+ const headers = {};
285
+ b.bp("/memories/{memoryId}/delete");
286
+ b.p("memoryId", () => input.memoryId, "{memoryId}", false);
287
+ const query = (0, smithy_client_1.map)({
288
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
289
+ });
290
+ let body;
291
+ b.m("DELETE").h(headers).q(query).b(body);
292
+ return b.build();
293
+ };
294
+ exports.se_DeleteMemoryCommand = se_DeleteMemoryCommand;
295
+ const se_DeleteOauth2CredentialProviderCommand = async (input, context) => {
296
+ const b = (0, core_2.requestBuilder)(input, context);
297
+ const headers = {
298
+ "content-type": "application/json",
299
+ };
300
+ b.bp("/identities/DeleteOauth2CredentialProvider");
301
+ let body;
302
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
303
+ name: [],
304
+ }));
305
+ b.m("POST").h(headers).b(body);
306
+ return b.build();
307
+ };
308
+ exports.se_DeleteOauth2CredentialProviderCommand = se_DeleteOauth2CredentialProviderCommand;
309
+ const se_DeleteWorkloadIdentityCommand = async (input, context) => {
310
+ const b = (0, core_2.requestBuilder)(input, context);
311
+ const headers = {
312
+ "content-type": "application/json",
313
+ };
314
+ b.bp("/identities/DeleteWorkloadIdentity");
315
+ let body;
316
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
317
+ name: [],
318
+ }));
319
+ b.m("POST").h(headers).b(body);
320
+ return b.build();
321
+ };
322
+ exports.se_DeleteWorkloadIdentityCommand = se_DeleteWorkloadIdentityCommand;
323
+ const se_GetAgentRuntimeCommand = async (input, context) => {
324
+ const b = (0, core_2.requestBuilder)(input, context);
325
+ const headers = {};
326
+ b.bp("/runtimes/{agentRuntimeId}");
327
+ b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
328
+ const query = (0, smithy_client_1.map)({
329
+ [_v]: [, input[_aRV]],
330
+ });
331
+ let body;
332
+ b.m("GET").h(headers).q(query).b(body);
333
+ return b.build();
334
+ };
335
+ exports.se_GetAgentRuntimeCommand = se_GetAgentRuntimeCommand;
336
+ const se_GetAgentRuntimeEndpointCommand = async (input, context) => {
337
+ const b = (0, core_2.requestBuilder)(input, context);
338
+ const headers = {};
339
+ b.bp("/runtimes/{agentRuntimeId}/runtime-endpoints/{endpointName}");
340
+ b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
341
+ b.p("endpointName", () => input.endpointName, "{endpointName}", false);
342
+ let body;
343
+ b.m("GET").h(headers).b(body);
344
+ return b.build();
345
+ };
346
+ exports.se_GetAgentRuntimeEndpointCommand = se_GetAgentRuntimeEndpointCommand;
347
+ const se_GetApiKeyCredentialProviderCommand = async (input, context) => {
348
+ const b = (0, core_2.requestBuilder)(input, context);
349
+ const headers = {
350
+ "content-type": "application/json",
351
+ };
352
+ b.bp("/identities/GetApiKeyCredentialProvider");
353
+ let body;
354
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
355
+ name: [],
356
+ }));
357
+ b.m("POST").h(headers).b(body);
358
+ return b.build();
359
+ };
360
+ exports.se_GetApiKeyCredentialProviderCommand = se_GetApiKeyCredentialProviderCommand;
361
+ const se_GetBrowserCommand = async (input, context) => {
362
+ const b = (0, core_2.requestBuilder)(input, context);
363
+ const headers = {};
364
+ b.bp("/browsers/{browserId}");
365
+ b.p("browserId", () => input.browserId, "{browserId}", false);
366
+ let body;
367
+ b.m("GET").h(headers).b(body);
368
+ return b.build();
369
+ };
370
+ exports.se_GetBrowserCommand = se_GetBrowserCommand;
371
+ const se_GetCodeInterpreterCommand = async (input, context) => {
372
+ const b = (0, core_2.requestBuilder)(input, context);
373
+ const headers = {};
374
+ b.bp("/code-interpreters/{codeInterpreterId}");
375
+ b.p("codeInterpreterId", () => input.codeInterpreterId, "{codeInterpreterId}", false);
376
+ let body;
377
+ b.m("GET").h(headers).b(body);
378
+ return b.build();
379
+ };
380
+ exports.se_GetCodeInterpreterCommand = se_GetCodeInterpreterCommand;
381
+ const se_GetGatewayCommand = async (input, context) => {
382
+ const b = (0, core_2.requestBuilder)(input, context);
383
+ const headers = {};
384
+ b.bp("/gateways/{gatewayIdentifier}");
385
+ b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
386
+ let body;
387
+ b.m("GET").h(headers).b(body);
388
+ return b.build();
389
+ };
390
+ exports.se_GetGatewayCommand = se_GetGatewayCommand;
391
+ const se_GetGatewayTargetCommand = async (input, context) => {
392
+ const b = (0, core_2.requestBuilder)(input, context);
393
+ const headers = {};
394
+ b.bp("/gateways/{gatewayIdentifier}/targets/{targetId}");
395
+ b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
396
+ b.p("targetId", () => input.targetId, "{targetId}", false);
397
+ let body;
398
+ b.m("GET").h(headers).b(body);
399
+ return b.build();
400
+ };
401
+ exports.se_GetGatewayTargetCommand = se_GetGatewayTargetCommand;
402
+ const se_GetMemoryCommand = async (input, context) => {
403
+ const b = (0, core_2.requestBuilder)(input, context);
404
+ const headers = {};
405
+ b.bp("/memories/{memoryId}/details");
406
+ b.p("memoryId", () => input.memoryId, "{memoryId}", false);
407
+ let body;
408
+ b.m("GET").h(headers).b(body);
409
+ return b.build();
410
+ };
411
+ exports.se_GetMemoryCommand = se_GetMemoryCommand;
412
+ const se_GetOauth2CredentialProviderCommand = async (input, context) => {
413
+ const b = (0, core_2.requestBuilder)(input, context);
414
+ const headers = {
415
+ "content-type": "application/json",
416
+ };
417
+ b.bp("/identities/GetOauth2CredentialProvider");
418
+ let body;
419
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
420
+ name: [],
421
+ }));
422
+ b.m("POST").h(headers).b(body);
423
+ return b.build();
424
+ };
425
+ exports.se_GetOauth2CredentialProviderCommand = se_GetOauth2CredentialProviderCommand;
426
+ const se_GetTokenVaultCommand = async (input, context) => {
427
+ const b = (0, core_2.requestBuilder)(input, context);
428
+ const headers = {
429
+ "content-type": "application/json",
430
+ };
431
+ b.bp("/identities/get-token-vault");
432
+ let body;
433
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
434
+ tokenVaultId: [],
435
+ }));
436
+ b.m("POST").h(headers).b(body);
437
+ return b.build();
438
+ };
439
+ exports.se_GetTokenVaultCommand = se_GetTokenVaultCommand;
440
+ const se_GetWorkloadIdentityCommand = async (input, context) => {
441
+ const b = (0, core_2.requestBuilder)(input, context);
442
+ const headers = {
443
+ "content-type": "application/json",
444
+ };
445
+ b.bp("/identities/GetWorkloadIdentity");
446
+ let body;
447
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
448
+ name: [],
449
+ }));
450
+ b.m("POST").h(headers).b(body);
451
+ return b.build();
452
+ };
453
+ exports.se_GetWorkloadIdentityCommand = se_GetWorkloadIdentityCommand;
454
+ const se_ListAgentRuntimeEndpointsCommand = async (input, context) => {
455
+ const b = (0, core_2.requestBuilder)(input, context);
456
+ const headers = {};
457
+ b.bp("/runtimes/{agentRuntimeId}/runtime-endpoints");
458
+ b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
459
+ const query = (0, smithy_client_1.map)({
460
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
461
+ [_nT]: [, input[_nT]],
462
+ });
463
+ let body;
464
+ b.m("POST").h(headers).q(query).b(body);
465
+ return b.build();
466
+ };
467
+ exports.se_ListAgentRuntimeEndpointsCommand = se_ListAgentRuntimeEndpointsCommand;
468
+ const se_ListAgentRuntimesCommand = async (input, context) => {
469
+ const b = (0, core_2.requestBuilder)(input, context);
470
+ const headers = {};
471
+ b.bp("/runtimes");
472
+ const query = (0, smithy_client_1.map)({
473
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
474
+ [_nT]: [, input[_nT]],
475
+ });
476
+ let body;
477
+ b.m("POST").h(headers).q(query).b(body);
478
+ return b.build();
479
+ };
480
+ exports.se_ListAgentRuntimesCommand = se_ListAgentRuntimesCommand;
481
+ const se_ListAgentRuntimeVersionsCommand = async (input, context) => {
482
+ const b = (0, core_2.requestBuilder)(input, context);
483
+ const headers = {};
484
+ b.bp("/runtimes/{agentRuntimeId}/versions");
485
+ b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
486
+ const query = (0, smithy_client_1.map)({
487
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
488
+ [_nT]: [, input[_nT]],
489
+ });
490
+ let body;
491
+ b.m("POST").h(headers).q(query).b(body);
492
+ return b.build();
493
+ };
494
+ exports.se_ListAgentRuntimeVersionsCommand = se_ListAgentRuntimeVersionsCommand;
495
+ const se_ListApiKeyCredentialProvidersCommand = async (input, context) => {
496
+ const b = (0, core_2.requestBuilder)(input, context);
497
+ const headers = {
498
+ "content-type": "application/json",
499
+ };
500
+ b.bp("/identities/ListApiKeyCredentialProviders");
501
+ let body;
502
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
503
+ maxResults: [],
504
+ nextToken: [],
505
+ }));
506
+ b.m("POST").h(headers).b(body);
507
+ return b.build();
508
+ };
509
+ exports.se_ListApiKeyCredentialProvidersCommand = se_ListApiKeyCredentialProvidersCommand;
510
+ const se_ListBrowsersCommand = async (input, context) => {
511
+ const b = (0, core_2.requestBuilder)(input, context);
512
+ const headers = {};
513
+ b.bp("/browsers");
514
+ const query = (0, smithy_client_1.map)({
515
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
516
+ [_nT]: [, input[_nT]],
517
+ [_t]: [, input[_t]],
518
+ });
519
+ let body;
520
+ b.m("POST").h(headers).q(query).b(body);
521
+ return b.build();
522
+ };
523
+ exports.se_ListBrowsersCommand = se_ListBrowsersCommand;
524
+ const se_ListCodeInterpretersCommand = async (input, context) => {
525
+ const b = (0, core_2.requestBuilder)(input, context);
526
+ const headers = {};
527
+ b.bp("/code-interpreters");
528
+ const query = (0, smithy_client_1.map)({
529
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
530
+ [_nT]: [, input[_nT]],
531
+ [_t]: [, input[_t]],
532
+ });
533
+ let body;
534
+ b.m("POST").h(headers).q(query).b(body);
535
+ return b.build();
536
+ };
537
+ exports.se_ListCodeInterpretersCommand = se_ListCodeInterpretersCommand;
538
+ const se_ListGatewaysCommand = async (input, context) => {
539
+ const b = (0, core_2.requestBuilder)(input, context);
540
+ const headers = {};
541
+ b.bp("/gateways");
542
+ const query = (0, smithy_client_1.map)({
543
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
544
+ [_nT]: [, input[_nT]],
545
+ });
546
+ let body;
547
+ b.m("GET").h(headers).q(query).b(body);
548
+ return b.build();
549
+ };
550
+ exports.se_ListGatewaysCommand = se_ListGatewaysCommand;
551
+ const se_ListGatewayTargetsCommand = async (input, context) => {
552
+ const b = (0, core_2.requestBuilder)(input, context);
553
+ const headers = {};
554
+ b.bp("/gateways/{gatewayIdentifier}/targets");
555
+ b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
556
+ const query = (0, smithy_client_1.map)({
557
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
558
+ [_nT]: [, input[_nT]],
559
+ });
560
+ let body;
561
+ b.m("GET").h(headers).q(query).b(body);
562
+ return b.build();
563
+ };
564
+ exports.se_ListGatewayTargetsCommand = se_ListGatewayTargetsCommand;
565
+ const se_ListMemoriesCommand = async (input, context) => {
566
+ const b = (0, core_2.requestBuilder)(input, context);
567
+ const headers = {
568
+ "content-type": "application/json",
569
+ };
570
+ b.bp("/memories");
571
+ let body;
572
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
573
+ maxResults: [],
574
+ nextToken: [],
575
+ }));
576
+ b.m("POST").h(headers).b(body);
577
+ return b.build();
578
+ };
579
+ exports.se_ListMemoriesCommand = se_ListMemoriesCommand;
580
+ const se_ListOauth2CredentialProvidersCommand = async (input, context) => {
581
+ const b = (0, core_2.requestBuilder)(input, context);
582
+ const headers = {
583
+ "content-type": "application/json",
584
+ };
585
+ b.bp("/identities/ListOauth2CredentialProviders");
586
+ let body;
587
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
588
+ maxResults: [],
589
+ nextToken: [],
590
+ }));
591
+ b.m("POST").h(headers).b(body);
592
+ return b.build();
593
+ };
594
+ exports.se_ListOauth2CredentialProvidersCommand = se_ListOauth2CredentialProvidersCommand;
595
+ const se_ListWorkloadIdentitiesCommand = async (input, context) => {
596
+ const b = (0, core_2.requestBuilder)(input, context);
597
+ const headers = {
598
+ "content-type": "application/json",
599
+ };
600
+ b.bp("/identities/ListWorkloadIdentities");
601
+ let body;
602
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
603
+ maxResults: [],
604
+ nextToken: [],
605
+ }));
606
+ b.m("POST").h(headers).b(body);
607
+ return b.build();
608
+ };
609
+ exports.se_ListWorkloadIdentitiesCommand = se_ListWorkloadIdentitiesCommand;
610
+ const se_SetTokenVaultCMKCommand = async (input, context) => {
611
+ const b = (0, core_2.requestBuilder)(input, context);
612
+ const headers = {
613
+ "content-type": "application/json",
614
+ };
615
+ b.bp("/identities/set-token-vault-cmk");
616
+ let body;
617
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
618
+ kmsConfiguration: (_) => (0, smithy_client_1._json)(_),
619
+ tokenVaultId: [],
620
+ }));
621
+ b.m("POST").h(headers).b(body);
622
+ return b.build();
623
+ };
624
+ exports.se_SetTokenVaultCMKCommand = se_SetTokenVaultCMKCommand;
625
+ const se_UpdateAgentRuntimeCommand = async (input, context) => {
626
+ const b = (0, core_2.requestBuilder)(input, context);
627
+ const headers = {
628
+ "content-type": "application/json",
629
+ };
630
+ b.bp("/runtimes/{agentRuntimeId}");
631
+ b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
632
+ let body;
633
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
634
+ agentRuntimeArtifact: (_) => (0, smithy_client_1._json)(_),
635
+ authorizerConfiguration: (_) => (0, smithy_client_1._json)(_),
636
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
637
+ description: [],
638
+ environmentVariables: (_) => (0, smithy_client_1._json)(_),
639
+ networkConfiguration: (_) => (0, smithy_client_1._json)(_),
640
+ protocolConfiguration: (_) => (0, smithy_client_1._json)(_),
641
+ roleArn: [],
642
+ }));
643
+ b.m("PUT").h(headers).b(body);
644
+ return b.build();
645
+ };
646
+ exports.se_UpdateAgentRuntimeCommand = se_UpdateAgentRuntimeCommand;
647
+ const se_UpdateAgentRuntimeEndpointCommand = async (input, context) => {
648
+ const b = (0, core_2.requestBuilder)(input, context);
649
+ const headers = {
650
+ "content-type": "application/json",
651
+ };
652
+ b.bp("/runtimes/{agentRuntimeId}/runtime-endpoints/{endpointName}");
653
+ b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
654
+ b.p("endpointName", () => input.endpointName, "{endpointName}", false);
655
+ let body;
656
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
657
+ agentRuntimeVersion: [],
658
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
659
+ description: [],
660
+ }));
661
+ b.m("PUT").h(headers).b(body);
662
+ return b.build();
663
+ };
664
+ exports.se_UpdateAgentRuntimeEndpointCommand = se_UpdateAgentRuntimeEndpointCommand;
665
+ const se_UpdateApiKeyCredentialProviderCommand = async (input, context) => {
666
+ const b = (0, core_2.requestBuilder)(input, context);
667
+ const headers = {
668
+ "content-type": "application/json",
669
+ };
670
+ b.bp("/identities/UpdateApiKeyCredentialProvider");
671
+ let body;
672
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
673
+ apiKey: [],
674
+ name: [],
675
+ }));
676
+ b.m("POST").h(headers).b(body);
677
+ return b.build();
678
+ };
679
+ exports.se_UpdateApiKeyCredentialProviderCommand = se_UpdateApiKeyCredentialProviderCommand;
680
+ const se_UpdateGatewayCommand = async (input, context) => {
681
+ const b = (0, core_2.requestBuilder)(input, context);
682
+ const headers = {
683
+ "content-type": "application/json",
684
+ };
685
+ b.bp("/gateways/{gatewayIdentifier}");
686
+ b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
687
+ let body;
688
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
689
+ authorizerConfiguration: (_) => (0, smithy_client_1._json)(_),
690
+ authorizerType: [],
691
+ description: [],
692
+ exceptionLevel: [],
693
+ kmsKeyArn: [],
694
+ name: [],
695
+ protocolConfiguration: (_) => (0, smithy_client_1._json)(_),
696
+ protocolType: [],
697
+ roleArn: [],
698
+ }));
699
+ b.m("PUT").h(headers).b(body);
700
+ return b.build();
701
+ };
702
+ exports.se_UpdateGatewayCommand = se_UpdateGatewayCommand;
703
+ const se_UpdateGatewayTargetCommand = async (input, context) => {
704
+ const b = (0, core_2.requestBuilder)(input, context);
705
+ const headers = {
706
+ "content-type": "application/json",
707
+ };
708
+ b.bp("/gateways/{gatewayIdentifier}/targets/{targetId}");
709
+ b.p("gatewayIdentifier", () => input.gatewayIdentifier, "{gatewayIdentifier}", false);
710
+ b.p("targetId", () => input.targetId, "{targetId}", false);
711
+ let body;
712
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
713
+ credentialProviderConfigurations: (_) => (0, smithy_client_1._json)(_),
714
+ description: [],
715
+ name: [],
716
+ targetConfiguration: (_) => se_TargetConfiguration(_, context),
717
+ }));
718
+ b.m("PUT").h(headers).b(body);
719
+ return b.build();
720
+ };
721
+ exports.se_UpdateGatewayTargetCommand = se_UpdateGatewayTargetCommand;
722
+ const se_UpdateMemoryCommand = async (input, context) => {
723
+ const b = (0, core_2.requestBuilder)(input, context);
724
+ const headers = {
725
+ "content-type": "application/json",
726
+ };
727
+ b.bp("/memories/{memoryId}/update");
728
+ b.p("memoryId", () => input.memoryId, "{memoryId}", false);
729
+ let body;
730
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
731
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
732
+ description: [],
733
+ eventExpiryDuration: [],
734
+ memoryExecutionRoleArn: [],
735
+ memoryStrategies: (_) => (0, smithy_client_1._json)(_),
736
+ }));
737
+ b.m("PUT").h(headers).b(body);
738
+ return b.build();
739
+ };
740
+ exports.se_UpdateMemoryCommand = se_UpdateMemoryCommand;
741
+ const se_UpdateOauth2CredentialProviderCommand = async (input, context) => {
742
+ const b = (0, core_2.requestBuilder)(input, context);
743
+ const headers = {
744
+ "content-type": "application/json",
745
+ };
746
+ b.bp("/identities/UpdateOauth2CredentialProvider");
747
+ let body;
748
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
749
+ credentialProviderVendor: [],
750
+ name: [],
751
+ oauth2ProviderConfigInput: (_) => (0, smithy_client_1._json)(_),
752
+ }));
753
+ b.m("POST").h(headers).b(body);
754
+ return b.build();
755
+ };
756
+ exports.se_UpdateOauth2CredentialProviderCommand = se_UpdateOauth2CredentialProviderCommand;
757
+ const se_UpdateWorkloadIdentityCommand = async (input, context) => {
758
+ const b = (0, core_2.requestBuilder)(input, context);
759
+ const headers = {
760
+ "content-type": "application/json",
761
+ };
762
+ b.bp("/identities/UpdateWorkloadIdentity");
763
+ let body;
764
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
765
+ allowedResourceOauth2ReturnUrls: (_) => (0, smithy_client_1._json)(_),
766
+ name: [],
767
+ }));
768
+ b.m("POST").h(headers).b(body);
769
+ return b.build();
770
+ };
771
+ exports.se_UpdateWorkloadIdentityCommand = se_UpdateWorkloadIdentityCommand;
772
+ const de_CreateAgentRuntimeCommand = async (output, context) => {
773
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
774
+ return de_CommandError(output, context);
775
+ }
776
+ const contents = (0, smithy_client_1.map)({
777
+ $metadata: deserializeMetadata(output),
778
+ });
779
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
780
+ const doc = (0, smithy_client_1.take)(data, {
781
+ agentRuntimeArn: smithy_client_1.expectString,
782
+ agentRuntimeId: smithy_client_1.expectString,
783
+ agentRuntimeVersion: smithy_client_1.expectString,
784
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
785
+ status: smithy_client_1.expectString,
786
+ workloadIdentityDetails: smithy_client_1._json,
787
+ });
788
+ Object.assign(contents, doc);
789
+ return contents;
790
+ };
791
+ exports.de_CreateAgentRuntimeCommand = de_CreateAgentRuntimeCommand;
792
+ const de_CreateAgentRuntimeEndpointCommand = async (output, context) => {
793
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
794
+ return de_CommandError(output, context);
795
+ }
796
+ const contents = (0, smithy_client_1.map)({
797
+ $metadata: deserializeMetadata(output),
798
+ });
799
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
800
+ const doc = (0, smithy_client_1.take)(data, {
801
+ agentRuntimeArn: smithy_client_1.expectString,
802
+ agentRuntimeEndpointArn: smithy_client_1.expectString,
803
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
804
+ status: smithy_client_1.expectString,
805
+ targetVersion: smithy_client_1.expectString,
806
+ });
807
+ Object.assign(contents, doc);
808
+ return contents;
809
+ };
810
+ exports.de_CreateAgentRuntimeEndpointCommand = de_CreateAgentRuntimeEndpointCommand;
811
+ const de_CreateApiKeyCredentialProviderCommand = async (output, context) => {
812
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
813
+ return de_CommandError(output, context);
814
+ }
815
+ const contents = (0, smithy_client_1.map)({
816
+ $metadata: deserializeMetadata(output),
817
+ });
818
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
819
+ const doc = (0, smithy_client_1.take)(data, {
820
+ apiKeySecretArn: smithy_client_1._json,
821
+ credentialProviderArn: smithy_client_1.expectString,
822
+ name: smithy_client_1.expectString,
823
+ });
824
+ Object.assign(contents, doc);
825
+ return contents;
826
+ };
827
+ exports.de_CreateApiKeyCredentialProviderCommand = de_CreateApiKeyCredentialProviderCommand;
828
+ const de_CreateBrowserCommand = async (output, context) => {
829
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
830
+ return de_CommandError(output, context);
831
+ }
832
+ const contents = (0, smithy_client_1.map)({
833
+ $metadata: deserializeMetadata(output),
834
+ });
835
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
836
+ const doc = (0, smithy_client_1.take)(data, {
837
+ browserArn: smithy_client_1.expectString,
838
+ browserId: smithy_client_1.expectString,
839
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
840
+ status: smithy_client_1.expectString,
841
+ });
842
+ Object.assign(contents, doc);
843
+ return contents;
844
+ };
845
+ exports.de_CreateBrowserCommand = de_CreateBrowserCommand;
846
+ const de_CreateCodeInterpreterCommand = async (output, context) => {
847
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
848
+ return de_CommandError(output, context);
849
+ }
850
+ const contents = (0, smithy_client_1.map)({
851
+ $metadata: deserializeMetadata(output),
852
+ });
853
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
854
+ const doc = (0, smithy_client_1.take)(data, {
855
+ codeInterpreterArn: smithy_client_1.expectString,
856
+ codeInterpreterId: smithy_client_1.expectString,
857
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
858
+ status: smithy_client_1.expectString,
859
+ });
860
+ Object.assign(contents, doc);
861
+ return contents;
862
+ };
863
+ exports.de_CreateCodeInterpreterCommand = de_CreateCodeInterpreterCommand;
864
+ const de_CreateGatewayCommand = async (output, context) => {
865
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
866
+ return de_CommandError(output, context);
867
+ }
868
+ const contents = (0, smithy_client_1.map)({
869
+ $metadata: deserializeMetadata(output),
870
+ });
871
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
872
+ const doc = (0, smithy_client_1.take)(data, {
873
+ authorizerConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
874
+ authorizerType: smithy_client_1.expectString,
875
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
876
+ description: smithy_client_1.expectString,
877
+ exceptionLevel: smithy_client_1.expectString,
878
+ gatewayArn: smithy_client_1.expectString,
879
+ gatewayId: smithy_client_1.expectString,
880
+ gatewayUrl: smithy_client_1.expectString,
881
+ kmsKeyArn: smithy_client_1.expectString,
882
+ name: smithy_client_1.expectString,
883
+ protocolConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
884
+ protocolType: smithy_client_1.expectString,
885
+ roleArn: smithy_client_1.expectString,
886
+ status: smithy_client_1.expectString,
887
+ statusReasons: smithy_client_1._json,
888
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
889
+ workloadIdentityDetails: smithy_client_1._json,
890
+ });
891
+ Object.assign(contents, doc);
892
+ return contents;
893
+ };
894
+ exports.de_CreateGatewayCommand = de_CreateGatewayCommand;
895
+ const de_CreateGatewayTargetCommand = async (output, context) => {
896
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
897
+ return de_CommandError(output, context);
898
+ }
899
+ const contents = (0, smithy_client_1.map)({
900
+ $metadata: deserializeMetadata(output),
901
+ });
902
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
903
+ const doc = (0, smithy_client_1.take)(data, {
904
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
905
+ credentialProviderConfigurations: smithy_client_1._json,
906
+ description: smithy_client_1.expectString,
907
+ gatewayArn: smithy_client_1.expectString,
908
+ name: smithy_client_1.expectString,
909
+ status: smithy_client_1.expectString,
910
+ statusReasons: smithy_client_1._json,
911
+ targetConfiguration: (_) => de_TargetConfiguration((0, core_1.awsExpectUnion)(_), context),
912
+ targetId: smithy_client_1.expectString,
913
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
914
+ });
915
+ Object.assign(contents, doc);
916
+ return contents;
917
+ };
918
+ exports.de_CreateGatewayTargetCommand = de_CreateGatewayTargetCommand;
919
+ const de_CreateMemoryCommand = async (output, context) => {
920
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
921
+ return de_CommandError(output, context);
922
+ }
923
+ const contents = (0, smithy_client_1.map)({
924
+ $metadata: deserializeMetadata(output),
925
+ });
926
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
927
+ const doc = (0, smithy_client_1.take)(data, {
928
+ memory: (_) => de_Memory(_, context),
929
+ });
930
+ Object.assign(contents, doc);
931
+ return contents;
932
+ };
933
+ exports.de_CreateMemoryCommand = de_CreateMemoryCommand;
934
+ const de_CreateOauth2CredentialProviderCommand = async (output, context) => {
935
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
936
+ return de_CommandError(output, context);
937
+ }
938
+ const contents = (0, smithy_client_1.map)({
939
+ $metadata: deserializeMetadata(output),
940
+ });
941
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
942
+ const doc = (0, smithy_client_1.take)(data, {
943
+ clientSecretArn: smithy_client_1._json,
944
+ credentialProviderArn: smithy_client_1.expectString,
945
+ name: smithy_client_1.expectString,
946
+ });
947
+ Object.assign(contents, doc);
948
+ return contents;
949
+ };
950
+ exports.de_CreateOauth2CredentialProviderCommand = de_CreateOauth2CredentialProviderCommand;
951
+ const de_CreateWorkloadIdentityCommand = async (output, context) => {
952
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
953
+ return de_CommandError(output, context);
954
+ }
955
+ const contents = (0, smithy_client_1.map)({
956
+ $metadata: deserializeMetadata(output),
957
+ });
958
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
959
+ const doc = (0, smithy_client_1.take)(data, {
960
+ allowedResourceOauth2ReturnUrls: smithy_client_1._json,
961
+ name: smithy_client_1.expectString,
962
+ workloadIdentityArn: smithy_client_1.expectString,
963
+ });
964
+ Object.assign(contents, doc);
965
+ return contents;
966
+ };
967
+ exports.de_CreateWorkloadIdentityCommand = de_CreateWorkloadIdentityCommand;
968
+ const de_DeleteAgentRuntimeCommand = async (output, context) => {
969
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
970
+ return de_CommandError(output, context);
971
+ }
972
+ const contents = (0, smithy_client_1.map)({
973
+ $metadata: deserializeMetadata(output),
974
+ });
975
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
976
+ const doc = (0, smithy_client_1.take)(data, {
977
+ status: smithy_client_1.expectString,
978
+ });
979
+ Object.assign(contents, doc);
980
+ return contents;
981
+ };
982
+ exports.de_DeleteAgentRuntimeCommand = de_DeleteAgentRuntimeCommand;
983
+ const de_DeleteAgentRuntimeEndpointCommand = async (output, context) => {
984
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
985
+ return de_CommandError(output, context);
986
+ }
987
+ const contents = (0, smithy_client_1.map)({
988
+ $metadata: deserializeMetadata(output),
989
+ });
990
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
991
+ const doc = (0, smithy_client_1.take)(data, {
992
+ status: smithy_client_1.expectString,
993
+ });
994
+ Object.assign(contents, doc);
995
+ return contents;
996
+ };
997
+ exports.de_DeleteAgentRuntimeEndpointCommand = de_DeleteAgentRuntimeEndpointCommand;
998
+ const de_DeleteApiKeyCredentialProviderCommand = async (output, context) => {
999
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1000
+ return de_CommandError(output, context);
1001
+ }
1002
+ const contents = (0, smithy_client_1.map)({
1003
+ $metadata: deserializeMetadata(output),
1004
+ });
1005
+ await (0, smithy_client_1.collectBody)(output.body, context);
1006
+ return contents;
1007
+ };
1008
+ exports.de_DeleteApiKeyCredentialProviderCommand = de_DeleteApiKeyCredentialProviderCommand;
1009
+ const de_DeleteBrowserCommand = async (output, context) => {
1010
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1011
+ return de_CommandError(output, context);
1012
+ }
1013
+ const contents = (0, smithy_client_1.map)({
1014
+ $metadata: deserializeMetadata(output),
1015
+ });
1016
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1017
+ const doc = (0, smithy_client_1.take)(data, {
1018
+ browserId: smithy_client_1.expectString,
1019
+ lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1020
+ status: smithy_client_1.expectString,
1021
+ });
1022
+ Object.assign(contents, doc);
1023
+ return contents;
1024
+ };
1025
+ exports.de_DeleteBrowserCommand = de_DeleteBrowserCommand;
1026
+ const de_DeleteCodeInterpreterCommand = async (output, context) => {
1027
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1028
+ return de_CommandError(output, context);
1029
+ }
1030
+ const contents = (0, smithy_client_1.map)({
1031
+ $metadata: deserializeMetadata(output),
1032
+ });
1033
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1034
+ const doc = (0, smithy_client_1.take)(data, {
1035
+ codeInterpreterId: smithy_client_1.expectString,
1036
+ lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1037
+ status: smithy_client_1.expectString,
1038
+ });
1039
+ Object.assign(contents, doc);
1040
+ return contents;
1041
+ };
1042
+ exports.de_DeleteCodeInterpreterCommand = de_DeleteCodeInterpreterCommand;
1043
+ const de_DeleteGatewayCommand = async (output, context) => {
1044
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1045
+ return de_CommandError(output, context);
1046
+ }
1047
+ const contents = (0, smithy_client_1.map)({
1048
+ $metadata: deserializeMetadata(output),
1049
+ });
1050
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1051
+ const doc = (0, smithy_client_1.take)(data, {
1052
+ gatewayId: smithy_client_1.expectString,
1053
+ status: smithy_client_1.expectString,
1054
+ statusReasons: smithy_client_1._json,
1055
+ });
1056
+ Object.assign(contents, doc);
1057
+ return contents;
1058
+ };
1059
+ exports.de_DeleteGatewayCommand = de_DeleteGatewayCommand;
1060
+ const de_DeleteGatewayTargetCommand = async (output, context) => {
1061
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1062
+ return de_CommandError(output, context);
1063
+ }
1064
+ const contents = (0, smithy_client_1.map)({
1065
+ $metadata: deserializeMetadata(output),
1066
+ });
1067
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1068
+ const doc = (0, smithy_client_1.take)(data, {
1069
+ gatewayArn: smithy_client_1.expectString,
1070
+ status: smithy_client_1.expectString,
1071
+ statusReasons: smithy_client_1._json,
1072
+ targetId: smithy_client_1.expectString,
1073
+ });
1074
+ Object.assign(contents, doc);
1075
+ return contents;
1076
+ };
1077
+ exports.de_DeleteGatewayTargetCommand = de_DeleteGatewayTargetCommand;
1078
+ const de_DeleteMemoryCommand = async (output, context) => {
1079
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1080
+ return de_CommandError(output, context);
1081
+ }
1082
+ const contents = (0, smithy_client_1.map)({
1083
+ $metadata: deserializeMetadata(output),
1084
+ });
1085
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1086
+ const doc = (0, smithy_client_1.take)(data, {
1087
+ memoryId: smithy_client_1.expectString,
1088
+ status: smithy_client_1.expectString,
1089
+ });
1090
+ Object.assign(contents, doc);
1091
+ return contents;
1092
+ };
1093
+ exports.de_DeleteMemoryCommand = de_DeleteMemoryCommand;
1094
+ const de_DeleteOauth2CredentialProviderCommand = async (output, context) => {
1095
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1096
+ return de_CommandError(output, context);
1097
+ }
1098
+ const contents = (0, smithy_client_1.map)({
1099
+ $metadata: deserializeMetadata(output),
1100
+ });
1101
+ await (0, smithy_client_1.collectBody)(output.body, context);
1102
+ return contents;
1103
+ };
1104
+ exports.de_DeleteOauth2CredentialProviderCommand = de_DeleteOauth2CredentialProviderCommand;
1105
+ const de_DeleteWorkloadIdentityCommand = async (output, context) => {
1106
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1107
+ return de_CommandError(output, context);
1108
+ }
1109
+ const contents = (0, smithy_client_1.map)({
1110
+ $metadata: deserializeMetadata(output),
1111
+ });
1112
+ await (0, smithy_client_1.collectBody)(output.body, context);
1113
+ return contents;
1114
+ };
1115
+ exports.de_DeleteWorkloadIdentityCommand = de_DeleteWorkloadIdentityCommand;
1116
+ const de_GetAgentRuntimeCommand = async (output, context) => {
1117
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1118
+ return de_CommandError(output, context);
1119
+ }
1120
+ const contents = (0, smithy_client_1.map)({
1121
+ $metadata: deserializeMetadata(output),
1122
+ });
1123
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1124
+ const doc = (0, smithy_client_1.take)(data, {
1125
+ agentRuntimeArn: smithy_client_1.expectString,
1126
+ agentRuntimeArtifact: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1127
+ agentRuntimeId: smithy_client_1.expectString,
1128
+ agentRuntimeName: smithy_client_1.expectString,
1129
+ agentRuntimeVersion: smithy_client_1.expectString,
1130
+ authorizerConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1131
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1132
+ description: smithy_client_1.expectString,
1133
+ environmentVariables: smithy_client_1._json,
1134
+ lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1135
+ networkConfiguration: smithy_client_1._json,
1136
+ protocolConfiguration: smithy_client_1._json,
1137
+ roleArn: smithy_client_1.expectString,
1138
+ status: smithy_client_1.expectString,
1139
+ workloadIdentityDetails: smithy_client_1._json,
1140
+ });
1141
+ Object.assign(contents, doc);
1142
+ return contents;
1143
+ };
1144
+ exports.de_GetAgentRuntimeCommand = de_GetAgentRuntimeCommand;
1145
+ const de_GetAgentRuntimeEndpointCommand = async (output, context) => {
1146
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1147
+ return de_CommandError(output, context);
1148
+ }
1149
+ const contents = (0, smithy_client_1.map)({
1150
+ $metadata: deserializeMetadata(output),
1151
+ });
1152
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1153
+ const doc = (0, smithy_client_1.take)(data, {
1154
+ agentRuntimeArn: smithy_client_1.expectString,
1155
+ agentRuntimeEndpointArn: smithy_client_1.expectString,
1156
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1157
+ description: smithy_client_1.expectString,
1158
+ failureReason: smithy_client_1.expectString,
1159
+ id: smithy_client_1.expectString,
1160
+ lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1161
+ liveVersion: smithy_client_1.expectString,
1162
+ name: smithy_client_1.expectString,
1163
+ status: smithy_client_1.expectString,
1164
+ targetVersion: smithy_client_1.expectString,
1165
+ });
1166
+ Object.assign(contents, doc);
1167
+ return contents;
1168
+ };
1169
+ exports.de_GetAgentRuntimeEndpointCommand = de_GetAgentRuntimeEndpointCommand;
1170
+ const de_GetApiKeyCredentialProviderCommand = async (output, context) => {
1171
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1172
+ return de_CommandError(output, context);
1173
+ }
1174
+ const contents = (0, smithy_client_1.map)({
1175
+ $metadata: deserializeMetadata(output),
1176
+ });
1177
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1178
+ const doc = (0, smithy_client_1.take)(data, {
1179
+ apiKeySecretArn: smithy_client_1._json,
1180
+ createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1181
+ credentialProviderArn: smithy_client_1.expectString,
1182
+ lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1183
+ name: smithy_client_1.expectString,
1184
+ });
1185
+ Object.assign(contents, doc);
1186
+ return contents;
1187
+ };
1188
+ exports.de_GetApiKeyCredentialProviderCommand = de_GetApiKeyCredentialProviderCommand;
1189
+ const de_GetBrowserCommand = async (output, context) => {
1190
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1191
+ return de_CommandError(output, context);
1192
+ }
1193
+ const contents = (0, smithy_client_1.map)({
1194
+ $metadata: deserializeMetadata(output),
1195
+ });
1196
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1197
+ const doc = (0, smithy_client_1.take)(data, {
1198
+ browserArn: smithy_client_1.expectString,
1199
+ browserId: smithy_client_1.expectString,
1200
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1201
+ description: smithy_client_1.expectString,
1202
+ executionRoleArn: smithy_client_1.expectString,
1203
+ lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1204
+ name: smithy_client_1.expectString,
1205
+ networkConfiguration: smithy_client_1._json,
1206
+ recording: smithy_client_1._json,
1207
+ status: smithy_client_1.expectString,
1208
+ });
1209
+ Object.assign(contents, doc);
1210
+ return contents;
1211
+ };
1212
+ exports.de_GetBrowserCommand = de_GetBrowserCommand;
1213
+ const de_GetCodeInterpreterCommand = async (output, context) => {
1214
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1215
+ return de_CommandError(output, context);
1216
+ }
1217
+ const contents = (0, smithy_client_1.map)({
1218
+ $metadata: deserializeMetadata(output),
1219
+ });
1220
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1221
+ const doc = (0, smithy_client_1.take)(data, {
1222
+ codeInterpreterArn: smithy_client_1.expectString,
1223
+ codeInterpreterId: smithy_client_1.expectString,
1224
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1225
+ description: smithy_client_1.expectString,
1226
+ executionRoleArn: smithy_client_1.expectString,
1227
+ lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1228
+ name: smithy_client_1.expectString,
1229
+ networkConfiguration: smithy_client_1._json,
1230
+ status: smithy_client_1.expectString,
1231
+ });
1232
+ Object.assign(contents, doc);
1233
+ return contents;
1234
+ };
1235
+ exports.de_GetCodeInterpreterCommand = de_GetCodeInterpreterCommand;
1236
+ const de_GetGatewayCommand = async (output, context) => {
1237
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1238
+ return de_CommandError(output, context);
1239
+ }
1240
+ const contents = (0, smithy_client_1.map)({
1241
+ $metadata: deserializeMetadata(output),
1242
+ });
1243
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1244
+ const doc = (0, smithy_client_1.take)(data, {
1245
+ authorizerConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1246
+ authorizerType: smithy_client_1.expectString,
1247
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1248
+ description: smithy_client_1.expectString,
1249
+ exceptionLevel: smithy_client_1.expectString,
1250
+ gatewayArn: smithy_client_1.expectString,
1251
+ gatewayId: smithy_client_1.expectString,
1252
+ gatewayUrl: smithy_client_1.expectString,
1253
+ kmsKeyArn: smithy_client_1.expectString,
1254
+ name: smithy_client_1.expectString,
1255
+ protocolConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1256
+ protocolType: smithy_client_1.expectString,
1257
+ roleArn: smithy_client_1.expectString,
1258
+ status: smithy_client_1.expectString,
1259
+ statusReasons: smithy_client_1._json,
1260
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1261
+ workloadIdentityDetails: smithy_client_1._json,
1262
+ });
1263
+ Object.assign(contents, doc);
1264
+ return contents;
1265
+ };
1266
+ exports.de_GetGatewayCommand = de_GetGatewayCommand;
1267
+ const de_GetGatewayTargetCommand = async (output, context) => {
1268
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1269
+ return de_CommandError(output, context);
1270
+ }
1271
+ const contents = (0, smithy_client_1.map)({
1272
+ $metadata: deserializeMetadata(output),
1273
+ });
1274
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1275
+ const doc = (0, smithy_client_1.take)(data, {
1276
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1277
+ credentialProviderConfigurations: smithy_client_1._json,
1278
+ description: smithy_client_1.expectString,
1279
+ gatewayArn: smithy_client_1.expectString,
1280
+ name: smithy_client_1.expectString,
1281
+ status: smithy_client_1.expectString,
1282
+ statusReasons: smithy_client_1._json,
1283
+ targetConfiguration: (_) => de_TargetConfiguration((0, core_1.awsExpectUnion)(_), context),
1284
+ targetId: smithy_client_1.expectString,
1285
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1286
+ });
1287
+ Object.assign(contents, doc);
1288
+ return contents;
1289
+ };
1290
+ exports.de_GetGatewayTargetCommand = de_GetGatewayTargetCommand;
1291
+ const de_GetMemoryCommand = async (output, context) => {
1292
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1293
+ return de_CommandError(output, context);
1294
+ }
1295
+ const contents = (0, smithy_client_1.map)({
1296
+ $metadata: deserializeMetadata(output),
1297
+ });
1298
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1299
+ const doc = (0, smithy_client_1.take)(data, {
1300
+ memory: (_) => de_Memory(_, context),
1301
+ });
1302
+ Object.assign(contents, doc);
1303
+ return contents;
1304
+ };
1305
+ exports.de_GetMemoryCommand = de_GetMemoryCommand;
1306
+ const de_GetOauth2CredentialProviderCommand = async (output, context) => {
1307
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1308
+ return de_CommandError(output, context);
1309
+ }
1310
+ const contents = (0, smithy_client_1.map)({
1311
+ $metadata: deserializeMetadata(output),
1312
+ });
1313
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1314
+ const doc = (0, smithy_client_1.take)(data, {
1315
+ clientSecretArn: smithy_client_1._json,
1316
+ createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1317
+ credentialProviderArn: smithy_client_1.expectString,
1318
+ credentialProviderVendor: smithy_client_1.expectString,
1319
+ lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1320
+ name: smithy_client_1.expectString,
1321
+ oauth2ProviderConfigOutput: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1322
+ });
1323
+ Object.assign(contents, doc);
1324
+ return contents;
1325
+ };
1326
+ exports.de_GetOauth2CredentialProviderCommand = de_GetOauth2CredentialProviderCommand;
1327
+ const de_GetTokenVaultCommand = async (output, context) => {
1328
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1329
+ return de_CommandError(output, context);
1330
+ }
1331
+ const contents = (0, smithy_client_1.map)({
1332
+ $metadata: deserializeMetadata(output),
1333
+ });
1334
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1335
+ const doc = (0, smithy_client_1.take)(data, {
1336
+ kmsConfiguration: smithy_client_1._json,
1337
+ lastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1338
+ tokenVaultId: smithy_client_1.expectString,
1339
+ });
1340
+ Object.assign(contents, doc);
1341
+ return contents;
1342
+ };
1343
+ exports.de_GetTokenVaultCommand = de_GetTokenVaultCommand;
1344
+ const de_GetWorkloadIdentityCommand = async (output, context) => {
1345
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1346
+ return de_CommandError(output, context);
1347
+ }
1348
+ const contents = (0, smithy_client_1.map)({
1349
+ $metadata: deserializeMetadata(output),
1350
+ });
1351
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1352
+ const doc = (0, smithy_client_1.take)(data, {
1353
+ allowedResourceOauth2ReturnUrls: smithy_client_1._json,
1354
+ createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1355
+ lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1356
+ name: smithy_client_1.expectString,
1357
+ workloadIdentityArn: smithy_client_1.expectString,
1358
+ });
1359
+ Object.assign(contents, doc);
1360
+ return contents;
1361
+ };
1362
+ exports.de_GetWorkloadIdentityCommand = de_GetWorkloadIdentityCommand;
1363
+ const de_ListAgentRuntimeEndpointsCommand = async (output, context) => {
1364
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1365
+ return de_CommandError(output, context);
1366
+ }
1367
+ const contents = (0, smithy_client_1.map)({
1368
+ $metadata: deserializeMetadata(output),
1369
+ });
1370
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1371
+ const doc = (0, smithy_client_1.take)(data, {
1372
+ nextToken: smithy_client_1.expectString,
1373
+ runtimeEndpoints: (_) => de_AgentEndpoints(_, context),
1374
+ });
1375
+ Object.assign(contents, doc);
1376
+ return contents;
1377
+ };
1378
+ exports.de_ListAgentRuntimeEndpointsCommand = de_ListAgentRuntimeEndpointsCommand;
1379
+ const de_ListAgentRuntimesCommand = async (output, context) => {
1380
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1381
+ return de_CommandError(output, context);
1382
+ }
1383
+ const contents = (0, smithy_client_1.map)({
1384
+ $metadata: deserializeMetadata(output),
1385
+ });
1386
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1387
+ const doc = (0, smithy_client_1.take)(data, {
1388
+ agentRuntimes: (_) => de_Agents(_, context),
1389
+ nextToken: smithy_client_1.expectString,
1390
+ });
1391
+ Object.assign(contents, doc);
1392
+ return contents;
1393
+ };
1394
+ exports.de_ListAgentRuntimesCommand = de_ListAgentRuntimesCommand;
1395
+ const de_ListAgentRuntimeVersionsCommand = async (output, context) => {
1396
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1397
+ return de_CommandError(output, context);
1398
+ }
1399
+ const contents = (0, smithy_client_1.map)({
1400
+ $metadata: deserializeMetadata(output),
1401
+ });
1402
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1403
+ const doc = (0, smithy_client_1.take)(data, {
1404
+ agentRuntimes: (_) => de_Agents(_, context),
1405
+ nextToken: smithy_client_1.expectString,
1406
+ });
1407
+ Object.assign(contents, doc);
1408
+ return contents;
1409
+ };
1410
+ exports.de_ListAgentRuntimeVersionsCommand = de_ListAgentRuntimeVersionsCommand;
1411
+ const de_ListApiKeyCredentialProvidersCommand = async (output, context) => {
1412
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1413
+ return de_CommandError(output, context);
1414
+ }
1415
+ const contents = (0, smithy_client_1.map)({
1416
+ $metadata: deserializeMetadata(output),
1417
+ });
1418
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1419
+ const doc = (0, smithy_client_1.take)(data, {
1420
+ credentialProviders: (_) => de_ApiKeyCredentialProviders(_, context),
1421
+ nextToken: smithy_client_1.expectString,
1422
+ });
1423
+ Object.assign(contents, doc);
1424
+ return contents;
1425
+ };
1426
+ exports.de_ListApiKeyCredentialProvidersCommand = de_ListApiKeyCredentialProvidersCommand;
1427
+ const de_ListBrowsersCommand = async (output, context) => {
1428
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1429
+ return de_CommandError(output, context);
1430
+ }
1431
+ const contents = (0, smithy_client_1.map)({
1432
+ $metadata: deserializeMetadata(output),
1433
+ });
1434
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1435
+ const doc = (0, smithy_client_1.take)(data, {
1436
+ browserSummaries: (_) => de_BrowserSummaries(_, context),
1437
+ nextToken: smithy_client_1.expectString,
1438
+ });
1439
+ Object.assign(contents, doc);
1440
+ return contents;
1441
+ };
1442
+ exports.de_ListBrowsersCommand = de_ListBrowsersCommand;
1443
+ const de_ListCodeInterpretersCommand = async (output, context) => {
1444
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1445
+ return de_CommandError(output, context);
1446
+ }
1447
+ const contents = (0, smithy_client_1.map)({
1448
+ $metadata: deserializeMetadata(output),
1449
+ });
1450
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1451
+ const doc = (0, smithy_client_1.take)(data, {
1452
+ codeInterpreterSummaries: (_) => de_CodeInterpreterSummaries(_, context),
1453
+ nextToken: smithy_client_1.expectString,
1454
+ });
1455
+ Object.assign(contents, doc);
1456
+ return contents;
1457
+ };
1458
+ exports.de_ListCodeInterpretersCommand = de_ListCodeInterpretersCommand;
1459
+ const de_ListGatewaysCommand = async (output, context) => {
1460
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1461
+ return de_CommandError(output, context);
1462
+ }
1463
+ const contents = (0, smithy_client_1.map)({
1464
+ $metadata: deserializeMetadata(output),
1465
+ });
1466
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1467
+ const doc = (0, smithy_client_1.take)(data, {
1468
+ items: (_) => de_GatewaySummaries(_, context),
1469
+ nextToken: smithy_client_1.expectString,
1470
+ });
1471
+ Object.assign(contents, doc);
1472
+ return contents;
1473
+ };
1474
+ exports.de_ListGatewaysCommand = de_ListGatewaysCommand;
1475
+ const de_ListGatewayTargetsCommand = async (output, context) => {
1476
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1477
+ return de_CommandError(output, context);
1478
+ }
1479
+ const contents = (0, smithy_client_1.map)({
1480
+ $metadata: deserializeMetadata(output),
1481
+ });
1482
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1483
+ const doc = (0, smithy_client_1.take)(data, {
1484
+ items: (_) => de_TargetSummaries(_, context),
1485
+ nextToken: smithy_client_1.expectString,
1486
+ });
1487
+ Object.assign(contents, doc);
1488
+ return contents;
1489
+ };
1490
+ exports.de_ListGatewayTargetsCommand = de_ListGatewayTargetsCommand;
1491
+ const de_ListMemoriesCommand = async (output, context) => {
1492
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1493
+ return de_CommandError(output, context);
1494
+ }
1495
+ const contents = (0, smithy_client_1.map)({
1496
+ $metadata: deserializeMetadata(output),
1497
+ });
1498
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1499
+ const doc = (0, smithy_client_1.take)(data, {
1500
+ memories: (_) => de_MemorySummaryList(_, context),
1501
+ nextToken: smithy_client_1.expectString,
1502
+ });
1503
+ Object.assign(contents, doc);
1504
+ return contents;
1505
+ };
1506
+ exports.de_ListMemoriesCommand = de_ListMemoriesCommand;
1507
+ const de_ListOauth2CredentialProvidersCommand = async (output, context) => {
1508
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1509
+ return de_CommandError(output, context);
1510
+ }
1511
+ const contents = (0, smithy_client_1.map)({
1512
+ $metadata: deserializeMetadata(output),
1513
+ });
1514
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1515
+ const doc = (0, smithy_client_1.take)(data, {
1516
+ credentialProviders: (_) => de_Oauth2CredentialProviders(_, context),
1517
+ nextToken: smithy_client_1.expectString,
1518
+ });
1519
+ Object.assign(contents, doc);
1520
+ return contents;
1521
+ };
1522
+ exports.de_ListOauth2CredentialProvidersCommand = de_ListOauth2CredentialProvidersCommand;
1523
+ const de_ListWorkloadIdentitiesCommand = async (output, context) => {
1524
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1525
+ return de_CommandError(output, context);
1526
+ }
1527
+ const contents = (0, smithy_client_1.map)({
1528
+ $metadata: deserializeMetadata(output),
1529
+ });
1530
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1531
+ const doc = (0, smithy_client_1.take)(data, {
1532
+ nextToken: smithy_client_1.expectString,
1533
+ workloadIdentities: smithy_client_1._json,
1534
+ });
1535
+ Object.assign(contents, doc);
1536
+ return contents;
1537
+ };
1538
+ exports.de_ListWorkloadIdentitiesCommand = de_ListWorkloadIdentitiesCommand;
1539
+ const de_SetTokenVaultCMKCommand = async (output, context) => {
1540
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1541
+ return de_CommandError(output, context);
1542
+ }
1543
+ const contents = (0, smithy_client_1.map)({
1544
+ $metadata: deserializeMetadata(output),
1545
+ });
1546
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1547
+ const doc = (0, smithy_client_1.take)(data, {
1548
+ kmsConfiguration: smithy_client_1._json,
1549
+ lastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1550
+ tokenVaultId: smithy_client_1.expectString,
1551
+ });
1552
+ Object.assign(contents, doc);
1553
+ return contents;
1554
+ };
1555
+ exports.de_SetTokenVaultCMKCommand = de_SetTokenVaultCMKCommand;
1556
+ const de_UpdateAgentRuntimeCommand = async (output, context) => {
1557
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1558
+ return de_CommandError(output, context);
1559
+ }
1560
+ const contents = (0, smithy_client_1.map)({
1561
+ $metadata: deserializeMetadata(output),
1562
+ });
1563
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1564
+ const doc = (0, smithy_client_1.take)(data, {
1565
+ agentRuntimeArn: smithy_client_1.expectString,
1566
+ agentRuntimeId: smithy_client_1.expectString,
1567
+ agentRuntimeVersion: smithy_client_1.expectString,
1568
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1569
+ lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1570
+ status: smithy_client_1.expectString,
1571
+ workloadIdentityDetails: smithy_client_1._json,
1572
+ });
1573
+ Object.assign(contents, doc);
1574
+ return contents;
1575
+ };
1576
+ exports.de_UpdateAgentRuntimeCommand = de_UpdateAgentRuntimeCommand;
1577
+ const de_UpdateAgentRuntimeEndpointCommand = async (output, context) => {
1578
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1579
+ return de_CommandError(output, context);
1580
+ }
1581
+ const contents = (0, smithy_client_1.map)({
1582
+ $metadata: deserializeMetadata(output),
1583
+ });
1584
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1585
+ const doc = (0, smithy_client_1.take)(data, {
1586
+ agentRuntimeArn: smithy_client_1.expectString,
1587
+ agentRuntimeEndpointArn: smithy_client_1.expectString,
1588
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1589
+ lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1590
+ liveVersion: smithy_client_1.expectString,
1591
+ status: smithy_client_1.expectString,
1592
+ targetVersion: smithy_client_1.expectString,
1593
+ });
1594
+ Object.assign(contents, doc);
1595
+ return contents;
1596
+ };
1597
+ exports.de_UpdateAgentRuntimeEndpointCommand = de_UpdateAgentRuntimeEndpointCommand;
1598
+ const de_UpdateApiKeyCredentialProviderCommand = async (output, context) => {
1599
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1600
+ return de_CommandError(output, context);
1601
+ }
1602
+ const contents = (0, smithy_client_1.map)({
1603
+ $metadata: deserializeMetadata(output),
1604
+ });
1605
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1606
+ const doc = (0, smithy_client_1.take)(data, {
1607
+ apiKeySecretArn: smithy_client_1._json,
1608
+ createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1609
+ credentialProviderArn: smithy_client_1.expectString,
1610
+ lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1611
+ name: smithy_client_1.expectString,
1612
+ });
1613
+ Object.assign(contents, doc);
1614
+ return contents;
1615
+ };
1616
+ exports.de_UpdateApiKeyCredentialProviderCommand = de_UpdateApiKeyCredentialProviderCommand;
1617
+ const de_UpdateGatewayCommand = async (output, context) => {
1618
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1619
+ return de_CommandError(output, context);
1620
+ }
1621
+ const contents = (0, smithy_client_1.map)({
1622
+ $metadata: deserializeMetadata(output),
1623
+ });
1624
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1625
+ const doc = (0, smithy_client_1.take)(data, {
1626
+ authorizerConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1627
+ authorizerType: smithy_client_1.expectString,
1628
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1629
+ description: smithy_client_1.expectString,
1630
+ exceptionLevel: smithy_client_1.expectString,
1631
+ gatewayArn: smithy_client_1.expectString,
1632
+ gatewayId: smithy_client_1.expectString,
1633
+ gatewayUrl: smithy_client_1.expectString,
1634
+ kmsKeyArn: smithy_client_1.expectString,
1635
+ name: smithy_client_1.expectString,
1636
+ protocolConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1637
+ protocolType: smithy_client_1.expectString,
1638
+ roleArn: smithy_client_1.expectString,
1639
+ status: smithy_client_1.expectString,
1640
+ statusReasons: smithy_client_1._json,
1641
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1642
+ workloadIdentityDetails: smithy_client_1._json,
1643
+ });
1644
+ Object.assign(contents, doc);
1645
+ return contents;
1646
+ };
1647
+ exports.de_UpdateGatewayCommand = de_UpdateGatewayCommand;
1648
+ const de_UpdateGatewayTargetCommand = async (output, context) => {
1649
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1650
+ return de_CommandError(output, context);
1651
+ }
1652
+ const contents = (0, smithy_client_1.map)({
1653
+ $metadata: deserializeMetadata(output),
1654
+ });
1655
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1656
+ const doc = (0, smithy_client_1.take)(data, {
1657
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1658
+ credentialProviderConfigurations: smithy_client_1._json,
1659
+ description: smithy_client_1.expectString,
1660
+ gatewayArn: smithy_client_1.expectString,
1661
+ name: smithy_client_1.expectString,
1662
+ status: smithy_client_1.expectString,
1663
+ statusReasons: smithy_client_1._json,
1664
+ targetConfiguration: (_) => de_TargetConfiguration((0, core_1.awsExpectUnion)(_), context),
1665
+ targetId: smithy_client_1.expectString,
1666
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1667
+ });
1668
+ Object.assign(contents, doc);
1669
+ return contents;
1670
+ };
1671
+ exports.de_UpdateGatewayTargetCommand = de_UpdateGatewayTargetCommand;
1672
+ const de_UpdateMemoryCommand = async (output, context) => {
1673
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1674
+ return de_CommandError(output, context);
1675
+ }
1676
+ const contents = (0, smithy_client_1.map)({
1677
+ $metadata: deserializeMetadata(output),
1678
+ });
1679
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1680
+ const doc = (0, smithy_client_1.take)(data, {
1681
+ memory: (_) => de_Memory(_, context),
1682
+ });
1683
+ Object.assign(contents, doc);
1684
+ return contents;
1685
+ };
1686
+ exports.de_UpdateMemoryCommand = de_UpdateMemoryCommand;
1687
+ const de_UpdateOauth2CredentialProviderCommand = async (output, context) => {
1688
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1689
+ return de_CommandError(output, context);
1690
+ }
1691
+ const contents = (0, smithy_client_1.map)({
1692
+ $metadata: deserializeMetadata(output),
1693
+ });
1694
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1695
+ const doc = (0, smithy_client_1.take)(data, {
1696
+ clientSecretArn: smithy_client_1._json,
1697
+ createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1698
+ credentialProviderArn: smithy_client_1.expectString,
1699
+ credentialProviderVendor: smithy_client_1.expectString,
1700
+ lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1701
+ name: smithy_client_1.expectString,
1702
+ oauth2ProviderConfigOutput: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1703
+ });
1704
+ Object.assign(contents, doc);
1705
+ return contents;
1706
+ };
1707
+ exports.de_UpdateOauth2CredentialProviderCommand = de_UpdateOauth2CredentialProviderCommand;
1708
+ const de_UpdateWorkloadIdentityCommand = async (output, context) => {
1709
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1710
+ return de_CommandError(output, context);
1711
+ }
1712
+ const contents = (0, smithy_client_1.map)({
1713
+ $metadata: deserializeMetadata(output),
1714
+ });
1715
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
1716
+ const doc = (0, smithy_client_1.take)(data, {
1717
+ allowedResourceOauth2ReturnUrls: smithy_client_1._json,
1718
+ createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1719
+ lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1720
+ name: smithy_client_1.expectString,
1721
+ workloadIdentityArn: smithy_client_1.expectString,
1722
+ });
1723
+ Object.assign(contents, doc);
1724
+ return contents;
1725
+ };
1726
+ exports.de_UpdateWorkloadIdentityCommand = de_UpdateWorkloadIdentityCommand;
1727
+ const de_CommandError = async (output, context) => {
1728
+ const parsedOutput = {
1729
+ ...output,
1730
+ body: await (0, core_1.parseJsonErrorBody)(output.body, context),
1731
+ };
1732
+ const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
1733
+ switch (errorCode) {
1734
+ case "AccessDeniedException":
1735
+ case "com.amazonaws.bedrockagentcorecontrol#AccessDeniedException":
1736
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1737
+ case "ConflictException":
1738
+ case "com.amazonaws.bedrockagentcorecontrol#ConflictException":
1739
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1740
+ case "InternalServerException":
1741
+ case "com.amazonaws.bedrockagentcorecontrol#InternalServerException":
1742
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1743
+ case "ServiceQuotaExceededException":
1744
+ case "com.amazonaws.bedrockagentcorecontrol#ServiceQuotaExceededException":
1745
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1746
+ case "ThrottlingException":
1747
+ case "com.amazonaws.bedrockagentcorecontrol#ThrottlingException":
1748
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1749
+ case "ValidationException":
1750
+ case "com.amazonaws.bedrockagentcorecontrol#ValidationException":
1751
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1752
+ case "ResourceNotFoundException":
1753
+ case "com.amazonaws.bedrockagentcorecontrol#ResourceNotFoundException":
1754
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1755
+ case "DecryptionFailure":
1756
+ case "com.amazonaws.bedrockagentcorecontrol#DecryptionFailure":
1757
+ throw await de_DecryptionFailureRes(parsedOutput, context);
1758
+ case "EncryptionFailure":
1759
+ case "com.amazonaws.bedrockagentcorecontrol#EncryptionFailure":
1760
+ throw await de_EncryptionFailureRes(parsedOutput, context);
1761
+ case "ResourceLimitExceededException":
1762
+ case "com.amazonaws.bedrockagentcorecontrol#ResourceLimitExceededException":
1763
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1764
+ case "UnauthorizedException":
1765
+ case "com.amazonaws.bedrockagentcorecontrol#UnauthorizedException":
1766
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1767
+ case "ServiceException":
1768
+ case "com.amazonaws.bedrockagentcorecontrol#ServiceException":
1769
+ throw await de_ServiceExceptionRes(parsedOutput, context);
1770
+ case "ThrottledException":
1771
+ case "com.amazonaws.bedrockagentcorecontrol#ThrottledException":
1772
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1773
+ case "ConcurrentModificationException":
1774
+ case "com.amazonaws.bedrockagentcorecontrol#ConcurrentModificationException":
1775
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1776
+ default:
1777
+ const parsedBody = parsedOutput.body;
1778
+ return throwDefaultError({
1779
+ output,
1780
+ parsedBody,
1781
+ errorCode,
1782
+ });
1783
+ }
1784
+ };
1785
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(BedrockAgentCoreControlServiceException_1.BedrockAgentCoreControlServiceException);
1786
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1787
+ const contents = (0, smithy_client_1.map)({});
1788
+ const data = parsedOutput.body;
1789
+ const doc = (0, smithy_client_1.take)(data, {
1790
+ message: smithy_client_1.expectString,
1791
+ });
1792
+ Object.assign(contents, doc);
1793
+ const exception = new models_0_1.AccessDeniedException({
1794
+ $metadata: deserializeMetadata(parsedOutput),
1795
+ ...contents,
1796
+ });
1797
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1798
+ };
1799
+ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
1800
+ const contents = (0, smithy_client_1.map)({});
1801
+ const data = parsedOutput.body;
1802
+ const doc = (0, smithy_client_1.take)(data, {
1803
+ message: smithy_client_1.expectString,
1804
+ });
1805
+ Object.assign(contents, doc);
1806
+ const exception = new models_0_1.ConcurrentModificationException({
1807
+ $metadata: deserializeMetadata(parsedOutput),
1808
+ ...contents,
1809
+ });
1810
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1811
+ };
1812
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1813
+ const contents = (0, smithy_client_1.map)({});
1814
+ const data = parsedOutput.body;
1815
+ const doc = (0, smithy_client_1.take)(data, {
1816
+ message: smithy_client_1.expectString,
1817
+ });
1818
+ Object.assign(contents, doc);
1819
+ const exception = new models_0_1.ConflictException({
1820
+ $metadata: deserializeMetadata(parsedOutput),
1821
+ ...contents,
1822
+ });
1823
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1824
+ };
1825
+ const de_DecryptionFailureRes = async (parsedOutput, context) => {
1826
+ const contents = (0, smithy_client_1.map)({});
1827
+ const data = parsedOutput.body;
1828
+ const doc = (0, smithy_client_1.take)(data, {
1829
+ message: smithy_client_1.expectString,
1830
+ });
1831
+ Object.assign(contents, doc);
1832
+ const exception = new models_0_1.DecryptionFailure({
1833
+ $metadata: deserializeMetadata(parsedOutput),
1834
+ ...contents,
1835
+ });
1836
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1837
+ };
1838
+ const de_EncryptionFailureRes = async (parsedOutput, context) => {
1839
+ const contents = (0, smithy_client_1.map)({});
1840
+ const data = parsedOutput.body;
1841
+ const doc = (0, smithy_client_1.take)(data, {
1842
+ message: smithy_client_1.expectString,
1843
+ });
1844
+ Object.assign(contents, doc);
1845
+ const exception = new models_0_1.EncryptionFailure({
1846
+ $metadata: deserializeMetadata(parsedOutput),
1847
+ ...contents,
1848
+ });
1849
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1850
+ };
1851
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1852
+ const contents = (0, smithy_client_1.map)({});
1853
+ const data = parsedOutput.body;
1854
+ const doc = (0, smithy_client_1.take)(data, {
1855
+ message: smithy_client_1.expectString,
1856
+ });
1857
+ Object.assign(contents, doc);
1858
+ const exception = new models_0_1.InternalServerException({
1859
+ $metadata: deserializeMetadata(parsedOutput),
1860
+ ...contents,
1861
+ });
1862
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1863
+ };
1864
+ const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
1865
+ const contents = (0, smithy_client_1.map)({});
1866
+ const data = parsedOutput.body;
1867
+ const doc = (0, smithy_client_1.take)(data, {
1868
+ message: smithy_client_1.expectString,
1869
+ });
1870
+ Object.assign(contents, doc);
1871
+ const exception = new models_0_1.ResourceLimitExceededException({
1872
+ $metadata: deserializeMetadata(parsedOutput),
1873
+ ...contents,
1874
+ });
1875
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1876
+ };
1877
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1878
+ const contents = (0, smithy_client_1.map)({});
1879
+ const data = parsedOutput.body;
1880
+ const doc = (0, smithy_client_1.take)(data, {
1881
+ message: smithy_client_1.expectString,
1882
+ });
1883
+ Object.assign(contents, doc);
1884
+ const exception = new models_0_1.ResourceNotFoundException({
1885
+ $metadata: deserializeMetadata(parsedOutput),
1886
+ ...contents,
1887
+ });
1888
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1889
+ };
1890
+ const de_ServiceExceptionRes = async (parsedOutput, context) => {
1891
+ const contents = (0, smithy_client_1.map)({});
1892
+ const data = parsedOutput.body;
1893
+ const doc = (0, smithy_client_1.take)(data, {
1894
+ message: smithy_client_1.expectString,
1895
+ });
1896
+ Object.assign(contents, doc);
1897
+ const exception = new models_0_1.ServiceException({
1898
+ $metadata: deserializeMetadata(parsedOutput),
1899
+ ...contents,
1900
+ });
1901
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1902
+ };
1903
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1904
+ const contents = (0, smithy_client_1.map)({});
1905
+ const data = parsedOutput.body;
1906
+ const doc = (0, smithy_client_1.take)(data, {
1907
+ message: smithy_client_1.expectString,
1908
+ });
1909
+ Object.assign(contents, doc);
1910
+ const exception = new models_0_1.ServiceQuotaExceededException({
1911
+ $metadata: deserializeMetadata(parsedOutput),
1912
+ ...contents,
1913
+ });
1914
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1915
+ };
1916
+ const de_ThrottledExceptionRes = async (parsedOutput, context) => {
1917
+ const contents = (0, smithy_client_1.map)({});
1918
+ const data = parsedOutput.body;
1919
+ const doc = (0, smithy_client_1.take)(data, {
1920
+ message: smithy_client_1.expectString,
1921
+ });
1922
+ Object.assign(contents, doc);
1923
+ const exception = new models_0_1.ThrottledException({
1924
+ $metadata: deserializeMetadata(parsedOutput),
1925
+ ...contents,
1926
+ });
1927
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1928
+ };
1929
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1930
+ const contents = (0, smithy_client_1.map)({});
1931
+ const data = parsedOutput.body;
1932
+ const doc = (0, smithy_client_1.take)(data, {
1933
+ message: smithy_client_1.expectString,
1934
+ });
1935
+ Object.assign(contents, doc);
1936
+ const exception = new models_0_1.ThrottlingException({
1937
+ $metadata: deserializeMetadata(parsedOutput),
1938
+ ...contents,
1939
+ });
1940
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1941
+ };
1942
+ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
1943
+ const contents = (0, smithy_client_1.map)({});
1944
+ const data = parsedOutput.body;
1945
+ const doc = (0, smithy_client_1.take)(data, {
1946
+ message: smithy_client_1.expectString,
1947
+ });
1948
+ Object.assign(contents, doc);
1949
+ const exception = new models_0_1.UnauthorizedException({
1950
+ $metadata: deserializeMetadata(parsedOutput),
1951
+ ...contents,
1952
+ });
1953
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1954
+ };
1955
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1956
+ const contents = (0, smithy_client_1.map)({});
1957
+ const data = parsedOutput.body;
1958
+ const doc = (0, smithy_client_1.take)(data, {
1959
+ fieldList: smithy_client_1._json,
1960
+ message: smithy_client_1.expectString,
1961
+ reason: smithy_client_1.expectString,
1962
+ });
1963
+ Object.assign(contents, doc);
1964
+ const exception = new models_0_1.ValidationException({
1965
+ $metadata: deserializeMetadata(parsedOutput),
1966
+ ...contents,
1967
+ });
1968
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1969
+ };
1970
+ const se_McpLambdaTargetConfiguration = (input, context) => {
1971
+ return (0, smithy_client_1.take)(input, {
1972
+ lambdaArn: [],
1973
+ toolSchema: (_) => se_ToolSchema(_, context),
1974
+ });
1975
+ };
1976
+ const se_McpTargetConfiguration = (input, context) => {
1977
+ return models_0_1.McpTargetConfiguration.visit(input, {
1978
+ lambda: (value) => ({ lambda: se_McpLambdaTargetConfiguration(value, context) }),
1979
+ openApiSchema: (value) => ({ openApiSchema: (0, smithy_client_1._json)(value) }),
1980
+ smithyModel: (value) => ({ smithyModel: (0, smithy_client_1._json)(value) }),
1981
+ _: (name, value) => ({ [name]: value }),
1982
+ });
1983
+ };
1984
+ const se_SchemaDefinition = (input, context) => {
1985
+ return (0, smithy_client_1.take)(input, {
1986
+ description: [],
1987
+ items: (_) => se_SchemaDefinition(_, context),
1988
+ properties: (_) => se_SchemaProperties(_, context),
1989
+ required: smithy_client_1._json,
1990
+ type: [],
1991
+ });
1992
+ };
1993
+ const se_SchemaProperties = (input, context) => {
1994
+ return Object.entries(input).reduce((acc, [key, value]) => {
1995
+ if (value === null) {
1996
+ return acc;
1997
+ }
1998
+ acc[key] = se_SchemaDefinition(value, context);
1999
+ return acc;
2000
+ }, {});
2001
+ };
2002
+ const se_TargetConfiguration = (input, context) => {
2003
+ return models_0_1.TargetConfiguration.visit(input, {
2004
+ mcp: (value) => ({ mcp: se_McpTargetConfiguration(value, context) }),
2005
+ _: (name, value) => ({ [name]: value }),
2006
+ });
2007
+ };
2008
+ const se_ToolDefinition = (input, context) => {
2009
+ return (0, smithy_client_1.take)(input, {
2010
+ description: [],
2011
+ inputSchema: (_) => se_SchemaDefinition(_, context),
2012
+ name: [],
2013
+ outputSchema: (_) => se_SchemaDefinition(_, context),
2014
+ });
2015
+ };
2016
+ const se_ToolDefinitions = (input, context) => {
2017
+ return input
2018
+ .filter((e) => e != null)
2019
+ .map((entry) => {
2020
+ return se_ToolDefinition(entry, context);
2021
+ });
2022
+ };
2023
+ const se_ToolSchema = (input, context) => {
2024
+ return models_0_1.ToolSchema.visit(input, {
2025
+ inlinePayload: (value) => ({ inlinePayload: se_ToolDefinitions(value, context) }),
2026
+ s3: (value) => ({ s3: (0, smithy_client_1._json)(value) }),
2027
+ _: (name, value) => ({ [name]: value }),
2028
+ });
2029
+ };
2030
+ const de_Agent = (output, context) => {
2031
+ return (0, smithy_client_1.take)(output, {
2032
+ agentRuntimeArn: smithy_client_1.expectString,
2033
+ agentRuntimeId: smithy_client_1.expectString,
2034
+ agentRuntimeName: smithy_client_1.expectString,
2035
+ agentRuntimeVersion: smithy_client_1.expectString,
2036
+ description: smithy_client_1.expectString,
2037
+ lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2038
+ status: smithy_client_1.expectString,
2039
+ });
2040
+ };
2041
+ const de_AgentEndpoint = (output, context) => {
2042
+ return (0, smithy_client_1.take)(output, {
2043
+ agentRuntimeArn: smithy_client_1.expectString,
2044
+ agentRuntimeEndpointArn: smithy_client_1.expectString,
2045
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2046
+ description: smithy_client_1.expectString,
2047
+ id: smithy_client_1.expectString,
2048
+ lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2049
+ liveVersion: smithy_client_1.expectString,
2050
+ name: smithy_client_1.expectString,
2051
+ status: smithy_client_1.expectString,
2052
+ targetVersion: smithy_client_1.expectString,
2053
+ });
2054
+ };
2055
+ const de_AgentEndpoints = (output, context) => {
2056
+ const retVal = (output || [])
2057
+ .filter((e) => e != null)
2058
+ .map((entry) => {
2059
+ return de_AgentEndpoint(entry, context);
2060
+ });
2061
+ return retVal;
2062
+ };
2063
+ const de_Agents = (output, context) => {
2064
+ const retVal = (output || [])
2065
+ .filter((e) => e != null)
2066
+ .map((entry) => {
2067
+ return de_Agent(entry, context);
2068
+ });
2069
+ return retVal;
2070
+ };
2071
+ const de_ApiKeyCredentialProviderItem = (output, context) => {
2072
+ return (0, smithy_client_1.take)(output, {
2073
+ createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2074
+ credentialProviderArn: smithy_client_1.expectString,
2075
+ lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2076
+ name: smithy_client_1.expectString,
2077
+ });
2078
+ };
2079
+ const de_ApiKeyCredentialProviders = (output, context) => {
2080
+ const retVal = (output || [])
2081
+ .filter((e) => e != null)
2082
+ .map((entry) => {
2083
+ return de_ApiKeyCredentialProviderItem(entry, context);
2084
+ });
2085
+ return retVal;
2086
+ };
2087
+ const de_BrowserSummaries = (output, context) => {
2088
+ const retVal = (output || [])
2089
+ .filter((e) => e != null)
2090
+ .map((entry) => {
2091
+ return de_BrowserSummary(entry, context);
2092
+ });
2093
+ return retVal;
2094
+ };
2095
+ const de_BrowserSummary = (output, context) => {
2096
+ return (0, smithy_client_1.take)(output, {
2097
+ browserArn: smithy_client_1.expectString,
2098
+ browserId: smithy_client_1.expectString,
2099
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2100
+ description: smithy_client_1.expectString,
2101
+ lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2102
+ name: smithy_client_1.expectString,
2103
+ status: smithy_client_1.expectString,
2104
+ });
2105
+ };
2106
+ const de_CodeInterpreterSummaries = (output, context) => {
2107
+ const retVal = (output || [])
2108
+ .filter((e) => e != null)
2109
+ .map((entry) => {
2110
+ return de_CodeInterpreterSummary(entry, context);
2111
+ });
2112
+ return retVal;
2113
+ };
2114
+ const de_CodeInterpreterSummary = (output, context) => {
2115
+ return (0, smithy_client_1.take)(output, {
2116
+ codeInterpreterArn: smithy_client_1.expectString,
2117
+ codeInterpreterId: smithy_client_1.expectString,
2118
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2119
+ description: smithy_client_1.expectString,
2120
+ lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2121
+ name: smithy_client_1.expectString,
2122
+ status: smithy_client_1.expectString,
2123
+ });
2124
+ };
2125
+ const de_GatewaySummaries = (output, context) => {
2126
+ const retVal = (output || [])
2127
+ .filter((e) => e != null)
2128
+ .map((entry) => {
2129
+ return de_GatewaySummary(entry, context);
2130
+ });
2131
+ return retVal;
2132
+ };
2133
+ const de_GatewaySummary = (output, context) => {
2134
+ return (0, smithy_client_1.take)(output, {
2135
+ authorizerType: smithy_client_1.expectString,
2136
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2137
+ description: smithy_client_1.expectString,
2138
+ gatewayId: smithy_client_1.expectString,
2139
+ name: smithy_client_1.expectString,
2140
+ protocolType: smithy_client_1.expectString,
2141
+ status: smithy_client_1.expectString,
2142
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2143
+ });
2144
+ };
2145
+ const de_McpLambdaTargetConfiguration = (output, context) => {
2146
+ return (0, smithy_client_1.take)(output, {
2147
+ lambdaArn: smithy_client_1.expectString,
2148
+ toolSchema: (_) => de_ToolSchema((0, core_1.awsExpectUnion)(_), context),
2149
+ });
2150
+ };
2151
+ const de_McpTargetConfiguration = (output, context) => {
2152
+ if (output.lambda != null) {
2153
+ return {
2154
+ lambda: de_McpLambdaTargetConfiguration(output.lambda, context),
2155
+ };
2156
+ }
2157
+ if (output.openApiSchema != null) {
2158
+ return {
2159
+ openApiSchema: (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(output.openApiSchema)),
2160
+ };
2161
+ }
2162
+ if (output.smithyModel != null) {
2163
+ return {
2164
+ smithyModel: (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(output.smithyModel)),
2165
+ };
2166
+ }
2167
+ return { $unknown: Object.entries(output)[0] };
2168
+ };
2169
+ const de_Memory = (output, context) => {
2170
+ return (0, smithy_client_1.take)(output, {
2171
+ arn: smithy_client_1.expectString,
2172
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2173
+ description: smithy_client_1.expectString,
2174
+ encryptionKeyArn: smithy_client_1.expectString,
2175
+ eventExpiryDuration: smithy_client_1.expectInt32,
2176
+ failureReason: smithy_client_1.expectString,
2177
+ id: smithy_client_1.expectString,
2178
+ memoryExecutionRoleArn: smithy_client_1.expectString,
2179
+ name: smithy_client_1.expectString,
2180
+ status: smithy_client_1.expectString,
2181
+ strategies: (_) => de_MemoryStrategyList(_, context),
2182
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2183
+ });
2184
+ };
2185
+ const de_MemoryStrategy = (output, context) => {
2186
+ return (0, smithy_client_1.take)(output, {
2187
+ configuration: smithy_client_1._json,
2188
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2189
+ description: smithy_client_1.expectString,
2190
+ name: smithy_client_1.expectString,
2191
+ namespaces: smithy_client_1._json,
2192
+ status: smithy_client_1.expectString,
2193
+ strategyId: smithy_client_1.expectString,
2194
+ type: smithy_client_1.expectString,
2195
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2196
+ });
2197
+ };
2198
+ const de_MemoryStrategyList = (output, context) => {
2199
+ const retVal = (output || [])
2200
+ .filter((e) => e != null)
2201
+ .map((entry) => {
2202
+ return de_MemoryStrategy(entry, context);
2203
+ });
2204
+ return retVal;
2205
+ };
2206
+ const de_MemorySummary = (output, context) => {
2207
+ return (0, smithy_client_1.take)(output, {
2208
+ arn: smithy_client_1.expectString,
2209
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2210
+ id: smithy_client_1.expectString,
2211
+ status: smithy_client_1.expectString,
2212
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2213
+ });
2214
+ };
2215
+ const de_MemorySummaryList = (output, context) => {
2216
+ const retVal = (output || [])
2217
+ .filter((e) => e != null)
2218
+ .map((entry) => {
2219
+ return de_MemorySummary(entry, context);
2220
+ });
2221
+ return retVal;
2222
+ };
2223
+ const de_Oauth2CredentialProviderItem = (output, context) => {
2224
+ return (0, smithy_client_1.take)(output, {
2225
+ createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2226
+ credentialProviderArn: smithy_client_1.expectString,
2227
+ credentialProviderVendor: smithy_client_1.expectString,
2228
+ lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2229
+ name: smithy_client_1.expectString,
2230
+ });
2231
+ };
2232
+ const de_Oauth2CredentialProviders = (output, context) => {
2233
+ const retVal = (output || [])
2234
+ .filter((e) => e != null)
2235
+ .map((entry) => {
2236
+ return de_Oauth2CredentialProviderItem(entry, context);
2237
+ });
2238
+ return retVal;
2239
+ };
2240
+ const de_SchemaDefinition = (output, context) => {
2241
+ return (0, smithy_client_1.take)(output, {
2242
+ description: smithy_client_1.expectString,
2243
+ items: (_) => de_SchemaDefinition(_, context),
2244
+ properties: (_) => de_SchemaProperties(_, context),
2245
+ required: smithy_client_1._json,
2246
+ type: smithy_client_1.expectString,
2247
+ });
2248
+ };
2249
+ const de_SchemaProperties = (output, context) => {
2250
+ return Object.entries(output).reduce((acc, [key, value]) => {
2251
+ if (value === null) {
2252
+ return acc;
2253
+ }
2254
+ acc[key] = de_SchemaDefinition(value, context);
2255
+ return acc;
2256
+ }, {});
2257
+ };
2258
+ const de_TargetConfiguration = (output, context) => {
2259
+ if (output.mcp != null) {
2260
+ return {
2261
+ mcp: de_McpTargetConfiguration((0, core_1.awsExpectUnion)(output.mcp), context),
2262
+ };
2263
+ }
2264
+ return { $unknown: Object.entries(output)[0] };
2265
+ };
2266
+ const de_TargetSummaries = (output, context) => {
2267
+ const retVal = (output || [])
2268
+ .filter((e) => e != null)
2269
+ .map((entry) => {
2270
+ return de_TargetSummary(entry, context);
2271
+ });
2272
+ return retVal;
2273
+ };
2274
+ const de_TargetSummary = (output, context) => {
2275
+ return (0, smithy_client_1.take)(output, {
2276
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2277
+ description: smithy_client_1.expectString,
2278
+ name: smithy_client_1.expectString,
2279
+ status: smithy_client_1.expectString,
2280
+ targetId: smithy_client_1.expectString,
2281
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2282
+ });
2283
+ };
2284
+ const de_ToolDefinition = (output, context) => {
2285
+ return (0, smithy_client_1.take)(output, {
2286
+ description: smithy_client_1.expectString,
2287
+ inputSchema: (_) => de_SchemaDefinition(_, context),
2288
+ name: smithy_client_1.expectString,
2289
+ outputSchema: (_) => de_SchemaDefinition(_, context),
2290
+ });
2291
+ };
2292
+ const de_ToolDefinitions = (output, context) => {
2293
+ const retVal = (output || [])
2294
+ .filter((e) => e != null)
2295
+ .map((entry) => {
2296
+ return de_ToolDefinition(entry, context);
2297
+ });
2298
+ return retVal;
2299
+ };
2300
+ const de_ToolSchema = (output, context) => {
2301
+ if (output.inlinePayload != null) {
2302
+ return {
2303
+ inlinePayload: de_ToolDefinitions(output.inlinePayload, context),
2304
+ };
2305
+ }
2306
+ if (output.s3 != null) {
2307
+ return {
2308
+ s3: (0, smithy_client_1._json)(output.s3),
2309
+ };
2310
+ }
2311
+ return { $unknown: Object.entries(output)[0] };
2312
+ };
2313
+ const deserializeMetadata = (output) => ({
2314
+ httpStatusCode: output.statusCode,
2315
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2316
+ extendedRequestId: output.headers["x-amz-id-2"],
2317
+ cfId: output.headers["x-amz-cf-id"],
2318
+ });
2319
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2320
+ const _aRV = "agentRuntimeVersion";
2321
+ const _cT = "clientToken";
2322
+ const _mR = "maxResults";
2323
+ const _nT = "nextToken";
2324
+ const _t = "type";
2325
+ const _v = "version";