@cdk8s/awscdk-resolver 0.0.53 → 0.0.55

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 (237) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +91 -90
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +1 -2
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +1 -2
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +6 -2
  8. package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
  9. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +14 -13
  10. package/node_modules/@aws-sdk/client-sso/package.json +10 -10
  11. package/node_modules/@aws-sdk/client-sso-oidc/LICENSE +201 -0
  12. package/node_modules/@aws-sdk/client-sso-oidc/README.md +274 -0
  13. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js +1 -0
  14. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js +1 -0
  15. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js +1 -0
  16. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenWithIAMCommand.js +1 -0
  17. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js +1 -0
  18. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js +1 -0
  19. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js +1 -0
  20. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/credentialDefaultProvider.js +29 -0
  21. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js +1 -0
  22. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +12 -0
  23. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +7 -0
  24. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/extensionConfiguration.js +1 -0
  25. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +1115 -0
  26. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js +1 -0
  27. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js +1 -0
  28. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js +1 -0
  29. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js +1 -0
  30. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.browser.js +39 -0
  31. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +49 -0
  32. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.native.js +15 -0
  33. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +24 -0
  34. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeExtensions.js +1 -0
  35. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +15 -0
  36. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +38 -0
  37. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js +25 -0
  38. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +27 -0
  39. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +25 -0
  40. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +25 -0
  41. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js +4 -0
  42. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/credentialDefaultProvider.js +3 -0
  43. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/EndpointParameters.js +14 -0
  44. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js +8 -0
  45. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js +4 -0
  46. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/extensionConfiguration.js +1 -0
  47. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +6 -0
  48. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js +8 -0
  49. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/index.js +1 -0
  50. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +217 -0
  51. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +553 -0
  52. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.browser.js +34 -0
  53. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +44 -0
  54. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.native.js +11 -0
  55. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js +20 -0
  56. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js +18 -0
  57. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +75 -0
  58. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +210 -0
  59. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +161 -0
  60. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +243 -0
  61. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +107 -0
  62. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +110 -0
  63. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/index.d.ts +4 -0
  64. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/credentialDefaultProvider.d.ts +4 -0
  65. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  66. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/endpointResolver.d.ts +5 -0
  67. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/ruleset.d.ts +2 -0
  68. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/extensionConfiguration.d.ts +8 -0
  69. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +51 -0
  70. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/SSOOIDCServiceException.d.ts +13 -0
  71. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/index.d.ts +1 -0
  72. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +734 -0
  73. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +38 -0
  74. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +46 -0
  75. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +46 -0
  76. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +45 -0
  77. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +19 -0
  78. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeExtensions.d.ts +17 -0
  79. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +73 -0
  80. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +142 -0
  81. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +26 -0
  82. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +30 -0
  83. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +29 -0
  84. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +30 -0
  85. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/index.d.ts +4 -0
  86. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
  87. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  88. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  89. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  90. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  91. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +9 -0
  92. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +8 -0
  93. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/index.d.ts +1 -0
  94. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +201 -0
  95. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +53 -0
  96. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  97. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  98. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  99. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  100. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  101. package/node_modules/@aws-sdk/client-sso-oidc/package.json +103 -0
  102. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +1 -29
  103. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +1 -29
  104. package/node_modules/@aws-sdk/client-sts/dist-cjs/credentialDefaultProvider.js +29 -0
  105. package/node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js +1 -78
  106. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1423 -85
  107. package/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +1 -12
  108. package/node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js +1 -149
  109. package/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +1 -1084
  110. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +3 -4
  111. package/node_modules/@aws-sdk/client-sts/dist-es/credentialDefaultProvider.js +3 -0
  112. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +3 -4
  113. package/node_modules/@aws-sdk/client-sts/dist-types/credentialDefaultProvider.d.ts +4 -0
  114. package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +3 -0
  115. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +8 -3
  116. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
  117. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +26 -14
  118. package/node_modules/@aws-sdk/client-sts/package.json +14 -12
  119. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +5 -3
  120. package/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +2 -1
  121. package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +4 -1
  122. package/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/fromEnv.d.ts +5 -1
  123. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  124. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +69 -38
  125. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/loadSts.js +1 -0
  126. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +1 -0
  127. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/loadSts.js +2 -0
  128. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +4 -2
  129. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js +4 -6
  130. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +2 -3
  131. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +3 -3
  132. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +8 -3
  133. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js +9 -6
  134. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +2 -3
  135. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +8 -4
  136. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/loadSts.d.ts +3 -0
  137. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
  138. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +2 -1
  139. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts +1 -2
  140. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +1 -1
  141. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +5 -3
  142. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +2 -1
  143. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +8 -1
  144. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/loadSts.d.ts +3 -0
  145. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +2 -2
  146. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveCredentialSource.d.ts +4 -1
  147. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProcessCredentials.d.ts +1 -2
  148. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +2 -1
  149. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts +3 -1
  150. package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -6
  151. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +70 -19
  152. package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +35 -7
  153. package/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js +4 -2
  154. package/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts +33 -18
  155. package/node_modules/@aws-sdk/credential-provider-node/dist-types/remoteProvider.d.ts +6 -3
  156. package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts +11 -2
  157. package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/remoteProvider.d.ts +1 -1
  158. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  159. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +2 -0
  160. package/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js +1 -0
  161. package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +2 -1
  162. package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts +4 -1
  163. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  164. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +28 -7
  165. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso.js +1 -0
  166. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +7 -1
  167. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js +2 -0
  168. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +2 -3
  169. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +4 -2
  170. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/loadSso.d.ts +3 -0
  171. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +6 -2
  172. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/loadSso.d.ts +6 -0
  173. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  174. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +5 -4
  175. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +7 -5
  176. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/loadSts.js +5 -0
  177. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -0
  178. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +6 -5
  179. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/loadSts.js +2 -0
  180. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +4 -3
  181. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +14 -4
  182. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/loadSts.d.ts +3 -0
  183. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts +7 -2
  184. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +12 -6
  185. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/loadSts.d.ts +3 -0
  186. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -2
  187. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +2 -2
  188. package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
  189. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +2 -2
  190. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  191. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +2 -2
  192. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
  193. package/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +3 -3
  194. package/node_modules/@aws-sdk/middleware-signing/package.json +2 -2
  195. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +3 -3
  196. package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
  197. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +4 -4
  198. package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
  199. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +28 -25
  200. package/node_modules/@aws-sdk/token-providers/dist-cjs/loadSsoOidc.js +1 -0
  201. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +1 -0
  202. package/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +2 -1
  203. package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +3 -3
  204. package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +2 -2
  205. package/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -1
  206. package/node_modules/@aws-sdk/token-providers/dist-es/loadSsoOidc.js +2 -0
  207. package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
  208. package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +3 -3
  209. package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -1
  210. package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +2 -1
  211. package/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +0 -1
  212. package/node_modules/@aws-sdk/token-providers/dist-types/loadSsoOidc.d.ts +2 -0
  213. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +7 -2
  214. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +7 -2
  215. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +1 -1
  216. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +1 -1
  217. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +0 -1
  218. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/loadSsoOidc.d.ts +2 -0
  219. package/node_modules/@aws-sdk/token-providers/package.json +6 -43
  220. package/node_modules/@aws-sdk/types/dist-cjs/index.js +3 -171
  221. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +15 -0
  222. package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +4 -0
  223. package/node_modules/@aws-sdk/types/package.json +1 -1
  224. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +4 -24
  225. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  226. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
  227. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -1
  228. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  229. package/package.json +5 -5
  230. package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js +0 -1032
  231. package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js +0 -1038
  232. package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js +0 -1010
  233. package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js +0 -1017
  234. package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts +0 -191
  235. package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts +0 -191
  236. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-browser.d.ts +0 -235
  237. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-node.d.ts +0 -235
@@ -0,0 +1,1115 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ AuthorizationPendingException: () => AuthorizationPendingException,
26
+ CreateTokenCommand: () => CreateTokenCommand,
27
+ CreateTokenRequestFilterSensitiveLog: () => CreateTokenRequestFilterSensitiveLog,
28
+ CreateTokenResponseFilterSensitiveLog: () => CreateTokenResponseFilterSensitiveLog,
29
+ CreateTokenWithIAMCommand: () => CreateTokenWithIAMCommand,
30
+ CreateTokenWithIAMRequestFilterSensitiveLog: () => CreateTokenWithIAMRequestFilterSensitiveLog,
31
+ CreateTokenWithIAMResponseFilterSensitiveLog: () => CreateTokenWithIAMResponseFilterSensitiveLog,
32
+ ExpiredTokenException: () => ExpiredTokenException,
33
+ InternalServerException: () => InternalServerException,
34
+ InvalidClientException: () => InvalidClientException,
35
+ InvalidClientMetadataException: () => InvalidClientMetadataException,
36
+ InvalidGrantException: () => InvalidGrantException,
37
+ InvalidRequestException: () => InvalidRequestException,
38
+ InvalidRequestRegionException: () => InvalidRequestRegionException,
39
+ InvalidScopeException: () => InvalidScopeException,
40
+ RegisterClientCommand: () => RegisterClientCommand,
41
+ RegisterClientResponseFilterSensitiveLog: () => RegisterClientResponseFilterSensitiveLog,
42
+ SSOOIDC: () => SSOOIDC,
43
+ SSOOIDCClient: () => SSOOIDCClient,
44
+ SSOOIDCServiceException: () => SSOOIDCServiceException,
45
+ SlowDownException: () => SlowDownException,
46
+ StartDeviceAuthorizationCommand: () => StartDeviceAuthorizationCommand,
47
+ StartDeviceAuthorizationRequestFilterSensitiveLog: () => StartDeviceAuthorizationRequestFilterSensitiveLog,
48
+ UnauthorizedClientException: () => UnauthorizedClientException,
49
+ UnsupportedGrantTypeException: () => UnsupportedGrantTypeException,
50
+ __Client: () => import_smithy_client.Client
51
+ });
52
+ module.exports = __toCommonJS(src_exports);
53
+
54
+ // src/SSOOIDCClient.ts
55
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
56
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
57
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
58
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
59
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
60
+ var import_config_resolver = require("@smithy/config-resolver");
61
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
62
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
63
+ var import_middleware_retry = require("@smithy/middleware-retry");
64
+
65
+
66
+ // src/endpoint/EndpointParameters.ts
67
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
68
+ return {
69
+ ...options,
70
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
71
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
72
+ defaultSigningName: "sso-oauth"
73
+ };
74
+ }, "resolveClientEndpointParameters");
75
+ var commonParams = {
76
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
77
+ Endpoint: { type: "builtInParams", name: "endpoint" },
78
+ Region: { type: "builtInParams", name: "region" },
79
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
80
+ };
81
+
82
+ // src/SSOOIDCClient.ts
83
+ var import_runtimeConfig = require("././runtimeConfig");
84
+
85
+ // src/runtimeExtensions.ts
86
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
87
+ var import_protocol_http = require("@smithy/protocol-http");
88
+ var import_smithy_client = require("@smithy/smithy-client");
89
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
90
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
91
+ const extensionConfiguration = {
92
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
93
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
94
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
95
+ };
96
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
97
+ return {
98
+ ...runtimeConfig,
99
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
100
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
101
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
102
+ };
103
+ }, "resolveRuntimeExtensions");
104
+
105
+ // src/SSOOIDCClient.ts
106
+ var _SSOOIDCClient = class _SSOOIDCClient extends import_smithy_client.Client {
107
+ constructor(...[configuration]) {
108
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
109
+ const _config_1 = resolveClientEndpointParameters(_config_0);
110
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
111
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
112
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
113
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
114
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
115
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
116
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
117
+ super(_config_8);
118
+ this.config = _config_8;
119
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
120
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
121
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
122
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
123
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
124
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
125
+ }
126
+ /**
127
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
128
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
129
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
130
+ */
131
+ destroy() {
132
+ super.destroy();
133
+ }
134
+ };
135
+ __name(_SSOOIDCClient, "SSOOIDCClient");
136
+ var SSOOIDCClient = _SSOOIDCClient;
137
+
138
+ // src/SSOOIDC.ts
139
+
140
+
141
+ // src/commands/CreateTokenCommand.ts
142
+
143
+ var import_middleware_serde = require("@smithy/middleware-serde");
144
+
145
+ var import_types = require("@smithy/types");
146
+
147
+ // src/models/models_0.ts
148
+
149
+
150
+ // src/models/SSOOIDCServiceException.ts
151
+
152
+ var _SSOOIDCServiceException = class _SSOOIDCServiceException extends import_smithy_client.ServiceException {
153
+ /**
154
+ * @internal
155
+ */
156
+ constructor(options) {
157
+ super(options);
158
+ Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype);
159
+ }
160
+ };
161
+ __name(_SSOOIDCServiceException, "SSOOIDCServiceException");
162
+ var SSOOIDCServiceException = _SSOOIDCServiceException;
163
+
164
+ // src/models/models_0.ts
165
+ var _AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {
166
+ /**
167
+ * @internal
168
+ */
169
+ constructor(opts) {
170
+ super({
171
+ name: "AccessDeniedException",
172
+ $fault: "client",
173
+ ...opts
174
+ });
175
+ this.name = "AccessDeniedException";
176
+ this.$fault = "client";
177
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
178
+ this.error = opts.error;
179
+ this.error_description = opts.error_description;
180
+ }
181
+ };
182
+ __name(_AccessDeniedException, "AccessDeniedException");
183
+ var AccessDeniedException = _AccessDeniedException;
184
+ var _AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException {
185
+ /**
186
+ * @internal
187
+ */
188
+ constructor(opts) {
189
+ super({
190
+ name: "AuthorizationPendingException",
191
+ $fault: "client",
192
+ ...opts
193
+ });
194
+ this.name = "AuthorizationPendingException";
195
+ this.$fault = "client";
196
+ Object.setPrototypeOf(this, _AuthorizationPendingException.prototype);
197
+ this.error = opts.error;
198
+ this.error_description = opts.error_description;
199
+ }
200
+ };
201
+ __name(_AuthorizationPendingException, "AuthorizationPendingException");
202
+ var AuthorizationPendingException = _AuthorizationPendingException;
203
+ var _ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException {
204
+ /**
205
+ * @internal
206
+ */
207
+ constructor(opts) {
208
+ super({
209
+ name: "ExpiredTokenException",
210
+ $fault: "client",
211
+ ...opts
212
+ });
213
+ this.name = "ExpiredTokenException";
214
+ this.$fault = "client";
215
+ Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
216
+ this.error = opts.error;
217
+ this.error_description = opts.error_description;
218
+ }
219
+ };
220
+ __name(_ExpiredTokenException, "ExpiredTokenException");
221
+ var ExpiredTokenException = _ExpiredTokenException;
222
+ var _InternalServerException = class _InternalServerException extends SSOOIDCServiceException {
223
+ /**
224
+ * @internal
225
+ */
226
+ constructor(opts) {
227
+ super({
228
+ name: "InternalServerException",
229
+ $fault: "server",
230
+ ...opts
231
+ });
232
+ this.name = "InternalServerException";
233
+ this.$fault = "server";
234
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
235
+ this.error = opts.error;
236
+ this.error_description = opts.error_description;
237
+ }
238
+ };
239
+ __name(_InternalServerException, "InternalServerException");
240
+ var InternalServerException = _InternalServerException;
241
+ var _InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException {
242
+ /**
243
+ * @internal
244
+ */
245
+ constructor(opts) {
246
+ super({
247
+ name: "InvalidClientException",
248
+ $fault: "client",
249
+ ...opts
250
+ });
251
+ this.name = "InvalidClientException";
252
+ this.$fault = "client";
253
+ Object.setPrototypeOf(this, _InvalidClientException.prototype);
254
+ this.error = opts.error;
255
+ this.error_description = opts.error_description;
256
+ }
257
+ };
258
+ __name(_InvalidClientException, "InvalidClientException");
259
+ var InvalidClientException = _InvalidClientException;
260
+ var _InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException {
261
+ /**
262
+ * @internal
263
+ */
264
+ constructor(opts) {
265
+ super({
266
+ name: "InvalidGrantException",
267
+ $fault: "client",
268
+ ...opts
269
+ });
270
+ this.name = "InvalidGrantException";
271
+ this.$fault = "client";
272
+ Object.setPrototypeOf(this, _InvalidGrantException.prototype);
273
+ this.error = opts.error;
274
+ this.error_description = opts.error_description;
275
+ }
276
+ };
277
+ __name(_InvalidGrantException, "InvalidGrantException");
278
+ var InvalidGrantException = _InvalidGrantException;
279
+ var _InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException {
280
+ /**
281
+ * @internal
282
+ */
283
+ constructor(opts) {
284
+ super({
285
+ name: "InvalidRequestException",
286
+ $fault: "client",
287
+ ...opts
288
+ });
289
+ this.name = "InvalidRequestException";
290
+ this.$fault = "client";
291
+ Object.setPrototypeOf(this, _InvalidRequestException.prototype);
292
+ this.error = opts.error;
293
+ this.error_description = opts.error_description;
294
+ }
295
+ };
296
+ __name(_InvalidRequestException, "InvalidRequestException");
297
+ var InvalidRequestException = _InvalidRequestException;
298
+ var _InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException {
299
+ /**
300
+ * @internal
301
+ */
302
+ constructor(opts) {
303
+ super({
304
+ name: "InvalidScopeException",
305
+ $fault: "client",
306
+ ...opts
307
+ });
308
+ this.name = "InvalidScopeException";
309
+ this.$fault = "client";
310
+ Object.setPrototypeOf(this, _InvalidScopeException.prototype);
311
+ this.error = opts.error;
312
+ this.error_description = opts.error_description;
313
+ }
314
+ };
315
+ __name(_InvalidScopeException, "InvalidScopeException");
316
+ var InvalidScopeException = _InvalidScopeException;
317
+ var _SlowDownException = class _SlowDownException extends SSOOIDCServiceException {
318
+ /**
319
+ * @internal
320
+ */
321
+ constructor(opts) {
322
+ super({
323
+ name: "SlowDownException",
324
+ $fault: "client",
325
+ ...opts
326
+ });
327
+ this.name = "SlowDownException";
328
+ this.$fault = "client";
329
+ Object.setPrototypeOf(this, _SlowDownException.prototype);
330
+ this.error = opts.error;
331
+ this.error_description = opts.error_description;
332
+ }
333
+ };
334
+ __name(_SlowDownException, "SlowDownException");
335
+ var SlowDownException = _SlowDownException;
336
+ var _UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException {
337
+ /**
338
+ * @internal
339
+ */
340
+ constructor(opts) {
341
+ super({
342
+ name: "UnauthorizedClientException",
343
+ $fault: "client",
344
+ ...opts
345
+ });
346
+ this.name = "UnauthorizedClientException";
347
+ this.$fault = "client";
348
+ Object.setPrototypeOf(this, _UnauthorizedClientException.prototype);
349
+ this.error = opts.error;
350
+ this.error_description = opts.error_description;
351
+ }
352
+ };
353
+ __name(_UnauthorizedClientException, "UnauthorizedClientException");
354
+ var UnauthorizedClientException = _UnauthorizedClientException;
355
+ var _UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException {
356
+ /**
357
+ * @internal
358
+ */
359
+ constructor(opts) {
360
+ super({
361
+ name: "UnsupportedGrantTypeException",
362
+ $fault: "client",
363
+ ...opts
364
+ });
365
+ this.name = "UnsupportedGrantTypeException";
366
+ this.$fault = "client";
367
+ Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype);
368
+ this.error = opts.error;
369
+ this.error_description = opts.error_description;
370
+ }
371
+ };
372
+ __name(_UnsupportedGrantTypeException, "UnsupportedGrantTypeException");
373
+ var UnsupportedGrantTypeException = _UnsupportedGrantTypeException;
374
+ var _InvalidRequestRegionException = class _InvalidRequestRegionException extends SSOOIDCServiceException {
375
+ /**
376
+ * @internal
377
+ */
378
+ constructor(opts) {
379
+ super({
380
+ name: "InvalidRequestRegionException",
381
+ $fault: "client",
382
+ ...opts
383
+ });
384
+ this.name = "InvalidRequestRegionException";
385
+ this.$fault = "client";
386
+ Object.setPrototypeOf(this, _InvalidRequestRegionException.prototype);
387
+ this.error = opts.error;
388
+ this.error_description = opts.error_description;
389
+ this.endpoint = opts.endpoint;
390
+ this.region = opts.region;
391
+ }
392
+ };
393
+ __name(_InvalidRequestRegionException, "InvalidRequestRegionException");
394
+ var InvalidRequestRegionException = _InvalidRequestRegionException;
395
+ var _InvalidClientMetadataException = class _InvalidClientMetadataException extends SSOOIDCServiceException {
396
+ /**
397
+ * @internal
398
+ */
399
+ constructor(opts) {
400
+ super({
401
+ name: "InvalidClientMetadataException",
402
+ $fault: "client",
403
+ ...opts
404
+ });
405
+ this.name = "InvalidClientMetadataException";
406
+ this.$fault = "client";
407
+ Object.setPrototypeOf(this, _InvalidClientMetadataException.prototype);
408
+ this.error = opts.error;
409
+ this.error_description = opts.error_description;
410
+ }
411
+ };
412
+ __name(_InvalidClientMetadataException, "InvalidClientMetadataException");
413
+ var InvalidClientMetadataException = _InvalidClientMetadataException;
414
+ var CreateTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
415
+ ...obj,
416
+ ...obj.clientSecret && { clientSecret: import_smithy_client.SENSITIVE_STRING },
417
+ ...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING }
418
+ }), "CreateTokenRequestFilterSensitiveLog");
419
+ var CreateTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
420
+ ...obj,
421
+ ...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING },
422
+ ...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
423
+ ...obj.idToken && { idToken: import_smithy_client.SENSITIVE_STRING }
424
+ }), "CreateTokenResponseFilterSensitiveLog");
425
+ var CreateTokenWithIAMRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
426
+ ...obj,
427
+ ...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
428
+ ...obj.assertion && { assertion: import_smithy_client.SENSITIVE_STRING },
429
+ ...obj.subjectToken && { subjectToken: import_smithy_client.SENSITIVE_STRING }
430
+ }), "CreateTokenWithIAMRequestFilterSensitiveLog");
431
+ var CreateTokenWithIAMResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
432
+ ...obj,
433
+ ...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING },
434
+ ...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
435
+ ...obj.idToken && { idToken: import_smithy_client.SENSITIVE_STRING }
436
+ }), "CreateTokenWithIAMResponseFilterSensitiveLog");
437
+ var RegisterClientResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
438
+ ...obj,
439
+ ...obj.clientSecret && { clientSecret: import_smithy_client.SENSITIVE_STRING }
440
+ }), "RegisterClientResponseFilterSensitiveLog");
441
+ var StartDeviceAuthorizationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
442
+ ...obj,
443
+ ...obj.clientSecret && { clientSecret: import_smithy_client.SENSITIVE_STRING }
444
+ }), "StartDeviceAuthorizationRequestFilterSensitiveLog");
445
+
446
+ // src/protocols/Aws_restJson1.ts
447
+ var import_core = require("@smithy/core");
448
+
449
+ var se_CreateTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
450
+ const b = (0, import_core.requestBuilder)(input, context);
451
+ const headers = {
452
+ "content-type": "application/json"
453
+ };
454
+ b.bp("/token");
455
+ let body;
456
+ body = JSON.stringify(
457
+ (0, import_smithy_client.take)(input, {
458
+ clientId: [],
459
+ clientSecret: [],
460
+ code: [],
461
+ deviceCode: [],
462
+ grantType: [],
463
+ redirectUri: [],
464
+ refreshToken: [],
465
+ scope: (_) => (0, import_smithy_client._json)(_)
466
+ })
467
+ );
468
+ b.m("POST").h(headers).b(body);
469
+ return b.build();
470
+ }, "se_CreateTokenCommand");
471
+ var se_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (input, context) => {
472
+ const b = (0, import_core.requestBuilder)(input, context);
473
+ const headers = {
474
+ "content-type": "application/json"
475
+ };
476
+ b.bp("/token");
477
+ const query = (0, import_smithy_client.map)({
478
+ [_ai]: [, "t"]
479
+ });
480
+ let body;
481
+ body = JSON.stringify(
482
+ (0, import_smithy_client.take)(input, {
483
+ assertion: [],
484
+ clientId: [],
485
+ code: [],
486
+ grantType: [],
487
+ redirectUri: [],
488
+ refreshToken: [],
489
+ requestedTokenType: [],
490
+ scope: (_) => (0, import_smithy_client._json)(_),
491
+ subjectToken: [],
492
+ subjectTokenType: []
493
+ })
494
+ );
495
+ b.m("POST").h(headers).q(query).b(body);
496
+ return b.build();
497
+ }, "se_CreateTokenWithIAMCommand");
498
+ var se_RegisterClientCommand = /* @__PURE__ */ __name(async (input, context) => {
499
+ const b = (0, import_core.requestBuilder)(input, context);
500
+ const headers = {
501
+ "content-type": "application/json"
502
+ };
503
+ b.bp("/client/register");
504
+ let body;
505
+ body = JSON.stringify(
506
+ (0, import_smithy_client.take)(input, {
507
+ clientName: [],
508
+ clientType: [],
509
+ scopes: (_) => (0, import_smithy_client._json)(_)
510
+ })
511
+ );
512
+ b.m("POST").h(headers).b(body);
513
+ return b.build();
514
+ }, "se_RegisterClientCommand");
515
+ var se_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => {
516
+ const b = (0, import_core.requestBuilder)(input, context);
517
+ const headers = {
518
+ "content-type": "application/json"
519
+ };
520
+ b.bp("/device_authorization");
521
+ let body;
522
+ body = JSON.stringify(
523
+ (0, import_smithy_client.take)(input, {
524
+ clientId: [],
525
+ clientSecret: [],
526
+ startUrl: []
527
+ })
528
+ );
529
+ b.m("POST").h(headers).b(body);
530
+ return b.build();
531
+ }, "se_StartDeviceAuthorizationCommand");
532
+ var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
533
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
534
+ return de_CreateTokenCommandError(output, context);
535
+ }
536
+ const contents = (0, import_smithy_client.map)({
537
+ $metadata: deserializeMetadata(output)
538
+ });
539
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
540
+ const doc = (0, import_smithy_client.take)(data, {
541
+ accessToken: import_smithy_client.expectString,
542
+ expiresIn: import_smithy_client.expectInt32,
543
+ idToken: import_smithy_client.expectString,
544
+ refreshToken: import_smithy_client.expectString,
545
+ tokenType: import_smithy_client.expectString
546
+ });
547
+ Object.assign(contents, doc);
548
+ return contents;
549
+ }, "de_CreateTokenCommand");
550
+ var de_CreateTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
551
+ const parsedOutput = {
552
+ ...output,
553
+ body: await parseErrorBody(output.body, context)
554
+ };
555
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
556
+ switch (errorCode) {
557
+ case "AccessDeniedException":
558
+ case "com.amazonaws.ssooidc#AccessDeniedException":
559
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
560
+ case "AuthorizationPendingException":
561
+ case "com.amazonaws.ssooidc#AuthorizationPendingException":
562
+ throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
563
+ case "ExpiredTokenException":
564
+ case "com.amazonaws.ssooidc#ExpiredTokenException":
565
+ throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
566
+ case "InternalServerException":
567
+ case "com.amazonaws.ssooidc#InternalServerException":
568
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
569
+ case "InvalidClientException":
570
+ case "com.amazonaws.ssooidc#InvalidClientException":
571
+ throw await de_InvalidClientExceptionRes(parsedOutput, context);
572
+ case "InvalidGrantException":
573
+ case "com.amazonaws.ssooidc#InvalidGrantException":
574
+ throw await de_InvalidGrantExceptionRes(parsedOutput, context);
575
+ case "InvalidRequestException":
576
+ case "com.amazonaws.ssooidc#InvalidRequestException":
577
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
578
+ case "InvalidScopeException":
579
+ case "com.amazonaws.ssooidc#InvalidScopeException":
580
+ throw await de_InvalidScopeExceptionRes(parsedOutput, context);
581
+ case "SlowDownException":
582
+ case "com.amazonaws.ssooidc#SlowDownException":
583
+ throw await de_SlowDownExceptionRes(parsedOutput, context);
584
+ case "UnauthorizedClientException":
585
+ case "com.amazonaws.ssooidc#UnauthorizedClientException":
586
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
587
+ case "UnsupportedGrantTypeException":
588
+ case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
589
+ throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
590
+ default:
591
+ const parsedBody = parsedOutput.body;
592
+ return throwDefaultError({
593
+ output,
594
+ parsedBody,
595
+ errorCode
596
+ });
597
+ }
598
+ }, "de_CreateTokenCommandError");
599
+ var de_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (output, context) => {
600
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
601
+ return de_CreateTokenWithIAMCommandError(output, context);
602
+ }
603
+ const contents = (0, import_smithy_client.map)({
604
+ $metadata: deserializeMetadata(output)
605
+ });
606
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
607
+ const doc = (0, import_smithy_client.take)(data, {
608
+ accessToken: import_smithy_client.expectString,
609
+ expiresIn: import_smithy_client.expectInt32,
610
+ idToken: import_smithy_client.expectString,
611
+ issuedTokenType: import_smithy_client.expectString,
612
+ refreshToken: import_smithy_client.expectString,
613
+ scope: import_smithy_client._json,
614
+ tokenType: import_smithy_client.expectString
615
+ });
616
+ Object.assign(contents, doc);
617
+ return contents;
618
+ }, "de_CreateTokenWithIAMCommand");
619
+ var de_CreateTokenWithIAMCommandError = /* @__PURE__ */ __name(async (output, context) => {
620
+ const parsedOutput = {
621
+ ...output,
622
+ body: await parseErrorBody(output.body, context)
623
+ };
624
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
625
+ switch (errorCode) {
626
+ case "AccessDeniedException":
627
+ case "com.amazonaws.ssooidc#AccessDeniedException":
628
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
629
+ case "AuthorizationPendingException":
630
+ case "com.amazonaws.ssooidc#AuthorizationPendingException":
631
+ throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
632
+ case "ExpiredTokenException":
633
+ case "com.amazonaws.ssooidc#ExpiredTokenException":
634
+ throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
635
+ case "InternalServerException":
636
+ case "com.amazonaws.ssooidc#InternalServerException":
637
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
638
+ case "InvalidClientException":
639
+ case "com.amazonaws.ssooidc#InvalidClientException":
640
+ throw await de_InvalidClientExceptionRes(parsedOutput, context);
641
+ case "InvalidGrantException":
642
+ case "com.amazonaws.ssooidc#InvalidGrantException":
643
+ throw await de_InvalidGrantExceptionRes(parsedOutput, context);
644
+ case "InvalidRequestException":
645
+ case "com.amazonaws.ssooidc#InvalidRequestException":
646
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
647
+ case "InvalidRequestRegionException":
648
+ case "com.amazonaws.ssooidc#InvalidRequestRegionException":
649
+ throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context);
650
+ case "InvalidScopeException":
651
+ case "com.amazonaws.ssooidc#InvalidScopeException":
652
+ throw await de_InvalidScopeExceptionRes(parsedOutput, context);
653
+ case "SlowDownException":
654
+ case "com.amazonaws.ssooidc#SlowDownException":
655
+ throw await de_SlowDownExceptionRes(parsedOutput, context);
656
+ case "UnauthorizedClientException":
657
+ case "com.amazonaws.ssooidc#UnauthorizedClientException":
658
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
659
+ case "UnsupportedGrantTypeException":
660
+ case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
661
+ throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
662
+ default:
663
+ const parsedBody = parsedOutput.body;
664
+ return throwDefaultError({
665
+ output,
666
+ parsedBody,
667
+ errorCode
668
+ });
669
+ }
670
+ }, "de_CreateTokenWithIAMCommandError");
671
+ var de_RegisterClientCommand = /* @__PURE__ */ __name(async (output, context) => {
672
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
673
+ return de_RegisterClientCommandError(output, context);
674
+ }
675
+ const contents = (0, import_smithy_client.map)({
676
+ $metadata: deserializeMetadata(output)
677
+ });
678
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
679
+ const doc = (0, import_smithy_client.take)(data, {
680
+ authorizationEndpoint: import_smithy_client.expectString,
681
+ clientId: import_smithy_client.expectString,
682
+ clientIdIssuedAt: import_smithy_client.expectLong,
683
+ clientSecret: import_smithy_client.expectString,
684
+ clientSecretExpiresAt: import_smithy_client.expectLong,
685
+ tokenEndpoint: import_smithy_client.expectString
686
+ });
687
+ Object.assign(contents, doc);
688
+ return contents;
689
+ }, "de_RegisterClientCommand");
690
+ var de_RegisterClientCommandError = /* @__PURE__ */ __name(async (output, context) => {
691
+ const parsedOutput = {
692
+ ...output,
693
+ body: await parseErrorBody(output.body, context)
694
+ };
695
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
696
+ switch (errorCode) {
697
+ case "InternalServerException":
698
+ case "com.amazonaws.ssooidc#InternalServerException":
699
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
700
+ case "InvalidClientMetadataException":
701
+ case "com.amazonaws.ssooidc#InvalidClientMetadataException":
702
+ throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
703
+ case "InvalidRequestException":
704
+ case "com.amazonaws.ssooidc#InvalidRequestException":
705
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
706
+ case "InvalidScopeException":
707
+ case "com.amazonaws.ssooidc#InvalidScopeException":
708
+ throw await de_InvalidScopeExceptionRes(parsedOutput, context);
709
+ default:
710
+ const parsedBody = parsedOutput.body;
711
+ return throwDefaultError({
712
+ output,
713
+ parsedBody,
714
+ errorCode
715
+ });
716
+ }
717
+ }, "de_RegisterClientCommandError");
718
+ var de_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
719
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
720
+ return de_StartDeviceAuthorizationCommandError(output, context);
721
+ }
722
+ const contents = (0, import_smithy_client.map)({
723
+ $metadata: deserializeMetadata(output)
724
+ });
725
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
726
+ const doc = (0, import_smithy_client.take)(data, {
727
+ deviceCode: import_smithy_client.expectString,
728
+ expiresIn: import_smithy_client.expectInt32,
729
+ interval: import_smithy_client.expectInt32,
730
+ userCode: import_smithy_client.expectString,
731
+ verificationUri: import_smithy_client.expectString,
732
+ verificationUriComplete: import_smithy_client.expectString
733
+ });
734
+ Object.assign(contents, doc);
735
+ return contents;
736
+ }, "de_StartDeviceAuthorizationCommand");
737
+ var de_StartDeviceAuthorizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
738
+ const parsedOutput = {
739
+ ...output,
740
+ body: await parseErrorBody(output.body, context)
741
+ };
742
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
743
+ switch (errorCode) {
744
+ case "InternalServerException":
745
+ case "com.amazonaws.ssooidc#InternalServerException":
746
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
747
+ case "InvalidClientException":
748
+ case "com.amazonaws.ssooidc#InvalidClientException":
749
+ throw await de_InvalidClientExceptionRes(parsedOutput, context);
750
+ case "InvalidRequestException":
751
+ case "com.amazonaws.ssooidc#InvalidRequestException":
752
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
753
+ case "SlowDownException":
754
+ case "com.amazonaws.ssooidc#SlowDownException":
755
+ throw await de_SlowDownExceptionRes(parsedOutput, context);
756
+ case "UnauthorizedClientException":
757
+ case "com.amazonaws.ssooidc#UnauthorizedClientException":
758
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
759
+ default:
760
+ const parsedBody = parsedOutput.body;
761
+ return throwDefaultError({
762
+ output,
763
+ parsedBody,
764
+ errorCode
765
+ });
766
+ }
767
+ }, "de_StartDeviceAuthorizationCommandError");
768
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(SSOOIDCServiceException);
769
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
770
+ const contents = (0, import_smithy_client.map)({});
771
+ const data = parsedOutput.body;
772
+ const doc = (0, import_smithy_client.take)(data, {
773
+ error: import_smithy_client.expectString,
774
+ error_description: import_smithy_client.expectString
775
+ });
776
+ Object.assign(contents, doc);
777
+ const exception = new AccessDeniedException({
778
+ $metadata: deserializeMetadata(parsedOutput),
779
+ ...contents
780
+ });
781
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
782
+ }, "de_AccessDeniedExceptionRes");
783
+ var de_AuthorizationPendingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
784
+ const contents = (0, import_smithy_client.map)({});
785
+ const data = parsedOutput.body;
786
+ const doc = (0, import_smithy_client.take)(data, {
787
+ error: import_smithy_client.expectString,
788
+ error_description: import_smithy_client.expectString
789
+ });
790
+ Object.assign(contents, doc);
791
+ const exception = new AuthorizationPendingException({
792
+ $metadata: deserializeMetadata(parsedOutput),
793
+ ...contents
794
+ });
795
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
796
+ }, "de_AuthorizationPendingExceptionRes");
797
+ var de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
798
+ const contents = (0, import_smithy_client.map)({});
799
+ const data = parsedOutput.body;
800
+ const doc = (0, import_smithy_client.take)(data, {
801
+ error: import_smithy_client.expectString,
802
+ error_description: import_smithy_client.expectString
803
+ });
804
+ Object.assign(contents, doc);
805
+ const exception = new ExpiredTokenException({
806
+ $metadata: deserializeMetadata(parsedOutput),
807
+ ...contents
808
+ });
809
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
810
+ }, "de_ExpiredTokenExceptionRes");
811
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
812
+ const contents = (0, import_smithy_client.map)({});
813
+ const data = parsedOutput.body;
814
+ const doc = (0, import_smithy_client.take)(data, {
815
+ error: import_smithy_client.expectString,
816
+ error_description: import_smithy_client.expectString
817
+ });
818
+ Object.assign(contents, doc);
819
+ const exception = new InternalServerException({
820
+ $metadata: deserializeMetadata(parsedOutput),
821
+ ...contents
822
+ });
823
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
824
+ }, "de_InternalServerExceptionRes");
825
+ var de_InvalidClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
826
+ const contents = (0, import_smithy_client.map)({});
827
+ const data = parsedOutput.body;
828
+ const doc = (0, import_smithy_client.take)(data, {
829
+ error: import_smithy_client.expectString,
830
+ error_description: import_smithy_client.expectString
831
+ });
832
+ Object.assign(contents, doc);
833
+ const exception = new InvalidClientException({
834
+ $metadata: deserializeMetadata(parsedOutput),
835
+ ...contents
836
+ });
837
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
838
+ }, "de_InvalidClientExceptionRes");
839
+ var de_InvalidClientMetadataExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
840
+ const contents = (0, import_smithy_client.map)({});
841
+ const data = parsedOutput.body;
842
+ const doc = (0, import_smithy_client.take)(data, {
843
+ error: import_smithy_client.expectString,
844
+ error_description: import_smithy_client.expectString
845
+ });
846
+ Object.assign(contents, doc);
847
+ const exception = new InvalidClientMetadataException({
848
+ $metadata: deserializeMetadata(parsedOutput),
849
+ ...contents
850
+ });
851
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
852
+ }, "de_InvalidClientMetadataExceptionRes");
853
+ var de_InvalidGrantExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
854
+ const contents = (0, import_smithy_client.map)({});
855
+ const data = parsedOutput.body;
856
+ const doc = (0, import_smithy_client.take)(data, {
857
+ error: import_smithy_client.expectString,
858
+ error_description: import_smithy_client.expectString
859
+ });
860
+ Object.assign(contents, doc);
861
+ const exception = new InvalidGrantException({
862
+ $metadata: deserializeMetadata(parsedOutput),
863
+ ...contents
864
+ });
865
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
866
+ }, "de_InvalidGrantExceptionRes");
867
+ var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
868
+ const contents = (0, import_smithy_client.map)({});
869
+ const data = parsedOutput.body;
870
+ const doc = (0, import_smithy_client.take)(data, {
871
+ error: import_smithy_client.expectString,
872
+ error_description: import_smithy_client.expectString
873
+ });
874
+ Object.assign(contents, doc);
875
+ const exception = new InvalidRequestException({
876
+ $metadata: deserializeMetadata(parsedOutput),
877
+ ...contents
878
+ });
879
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
880
+ }, "de_InvalidRequestExceptionRes");
881
+ var de_InvalidRequestRegionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
882
+ const contents = (0, import_smithy_client.map)({});
883
+ const data = parsedOutput.body;
884
+ const doc = (0, import_smithy_client.take)(data, {
885
+ endpoint: import_smithy_client.expectString,
886
+ error: import_smithy_client.expectString,
887
+ error_description: import_smithy_client.expectString,
888
+ region: import_smithy_client.expectString
889
+ });
890
+ Object.assign(contents, doc);
891
+ const exception = new InvalidRequestRegionException({
892
+ $metadata: deserializeMetadata(parsedOutput),
893
+ ...contents
894
+ });
895
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
896
+ }, "de_InvalidRequestRegionExceptionRes");
897
+ var de_InvalidScopeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
898
+ const contents = (0, import_smithy_client.map)({});
899
+ const data = parsedOutput.body;
900
+ const doc = (0, import_smithy_client.take)(data, {
901
+ error: import_smithy_client.expectString,
902
+ error_description: import_smithy_client.expectString
903
+ });
904
+ Object.assign(contents, doc);
905
+ const exception = new InvalidScopeException({
906
+ $metadata: deserializeMetadata(parsedOutput),
907
+ ...contents
908
+ });
909
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
910
+ }, "de_InvalidScopeExceptionRes");
911
+ var de_SlowDownExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
912
+ const contents = (0, import_smithy_client.map)({});
913
+ const data = parsedOutput.body;
914
+ const doc = (0, import_smithy_client.take)(data, {
915
+ error: import_smithy_client.expectString,
916
+ error_description: import_smithy_client.expectString
917
+ });
918
+ Object.assign(contents, doc);
919
+ const exception = new SlowDownException({
920
+ $metadata: deserializeMetadata(parsedOutput),
921
+ ...contents
922
+ });
923
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
924
+ }, "de_SlowDownExceptionRes");
925
+ var de_UnauthorizedClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
926
+ const contents = (0, import_smithy_client.map)({});
927
+ const data = parsedOutput.body;
928
+ const doc = (0, import_smithy_client.take)(data, {
929
+ error: import_smithy_client.expectString,
930
+ error_description: import_smithy_client.expectString
931
+ });
932
+ Object.assign(contents, doc);
933
+ const exception = new UnauthorizedClientException({
934
+ $metadata: deserializeMetadata(parsedOutput),
935
+ ...contents
936
+ });
937
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
938
+ }, "de_UnauthorizedClientExceptionRes");
939
+ var de_UnsupportedGrantTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
940
+ const contents = (0, import_smithy_client.map)({});
941
+ const data = parsedOutput.body;
942
+ const doc = (0, import_smithy_client.take)(data, {
943
+ error: import_smithy_client.expectString,
944
+ error_description: import_smithy_client.expectString
945
+ });
946
+ Object.assign(contents, doc);
947
+ const exception = new UnsupportedGrantTypeException({
948
+ $metadata: deserializeMetadata(parsedOutput),
949
+ ...contents
950
+ });
951
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
952
+ }, "de_UnsupportedGrantTypeExceptionRes");
953
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
954
+ httpStatusCode: output.statusCode,
955
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
956
+ extendedRequestId: output.headers["x-amz-id-2"],
957
+ cfId: output.headers["x-amz-cf-id"]
958
+ }), "deserializeMetadata");
959
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
960
+ var _ai = "aws_iam";
961
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
962
+ if (encoded.length) {
963
+ return JSON.parse(encoded);
964
+ }
965
+ return {};
966
+ }), "parseBody");
967
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
968
+ const value = await parseBody(errorBody, context);
969
+ value.message = value.message ?? value.Message;
970
+ return value;
971
+ }, "parseErrorBody");
972
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
973
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
974
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
975
+ let cleanValue = rawValue;
976
+ if (typeof cleanValue === "number") {
977
+ cleanValue = cleanValue.toString();
978
+ }
979
+ if (cleanValue.indexOf(",") >= 0) {
980
+ cleanValue = cleanValue.split(",")[0];
981
+ }
982
+ if (cleanValue.indexOf(":") >= 0) {
983
+ cleanValue = cleanValue.split(":")[0];
984
+ }
985
+ if (cleanValue.indexOf("#") >= 0) {
986
+ cleanValue = cleanValue.split("#")[1];
987
+ }
988
+ return cleanValue;
989
+ }, "sanitizeErrorCode");
990
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
991
+ if (headerKey !== void 0) {
992
+ return sanitizeErrorCode(output.headers[headerKey]);
993
+ }
994
+ if (data.code !== void 0) {
995
+ return sanitizeErrorCode(data.code);
996
+ }
997
+ if (data["__type"] !== void 0) {
998
+ return sanitizeErrorCode(data["__type"]);
999
+ }
1000
+ }, "loadRestJsonErrorCode");
1001
+
1002
+ // src/commands/CreateTokenCommand.ts
1003
+ var _CreateTokenCommand = class _CreateTokenCommand extends import_smithy_client.Command.classBuilder().ep({
1004
+ ...commonParams
1005
+ }).m(function(Command, cs, config, o) {
1006
+ return [
1007
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1008
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1009
+ ];
1010
+ }).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build() {
1011
+ };
1012
+ __name(_CreateTokenCommand, "CreateTokenCommand");
1013
+ var CreateTokenCommand = _CreateTokenCommand;
1014
+
1015
+ // src/commands/CreateTokenWithIAMCommand.ts
1016
+
1017
+
1018
+
1019
+
1020
+
1021
+ var _CreateTokenWithIAMCommand = class _CreateTokenWithIAMCommand extends import_smithy_client.Command.classBuilder().ep({
1022
+ ...commonParams
1023
+ }).m(function(Command, cs, config, o) {
1024
+ return [
1025
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1026
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1027
+ (0, import_middleware_signing.getAwsAuthPlugin)(config)
1028
+ ];
1029
+ }).s("AWSSSOOIDCService", "CreateTokenWithIAM", {}).n("SSOOIDCClient", "CreateTokenWithIAMCommand").f(CreateTokenWithIAMRequestFilterSensitiveLog, CreateTokenWithIAMResponseFilterSensitiveLog).ser(se_CreateTokenWithIAMCommand).de(de_CreateTokenWithIAMCommand).build() {
1030
+ };
1031
+ __name(_CreateTokenWithIAMCommand, "CreateTokenWithIAMCommand");
1032
+ var CreateTokenWithIAMCommand = _CreateTokenWithIAMCommand;
1033
+
1034
+ // src/commands/RegisterClientCommand.ts
1035
+
1036
+
1037
+
1038
+
1039
+ var _RegisterClientCommand = class _RegisterClientCommand extends import_smithy_client.Command.classBuilder().ep({
1040
+ ...commonParams
1041
+ }).m(function(Command, cs, config, o) {
1042
+ return [
1043
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1044
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1045
+ ];
1046
+ }).s("AWSSSOOIDCService", "RegisterClient", {}).n("SSOOIDCClient", "RegisterClientCommand").f(void 0, RegisterClientResponseFilterSensitiveLog).ser(se_RegisterClientCommand).de(de_RegisterClientCommand).build() {
1047
+ };
1048
+ __name(_RegisterClientCommand, "RegisterClientCommand");
1049
+ var RegisterClientCommand = _RegisterClientCommand;
1050
+
1051
+ // src/commands/StartDeviceAuthorizationCommand.ts
1052
+
1053
+
1054
+
1055
+
1056
+ var _StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends import_smithy_client.Command.classBuilder().ep({
1057
+ ...commonParams
1058
+ }).m(function(Command, cs, config, o) {
1059
+ return [
1060
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1061
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1062
+ ];
1063
+ }).s("AWSSSOOIDCService", "StartDeviceAuthorization", {}).n("SSOOIDCClient", "StartDeviceAuthorizationCommand").f(StartDeviceAuthorizationRequestFilterSensitiveLog, void 0).ser(se_StartDeviceAuthorizationCommand).de(de_StartDeviceAuthorizationCommand).build() {
1064
+ };
1065
+ __name(_StartDeviceAuthorizationCommand, "StartDeviceAuthorizationCommand");
1066
+ var StartDeviceAuthorizationCommand = _StartDeviceAuthorizationCommand;
1067
+
1068
+ // src/SSOOIDC.ts
1069
+ var commands = {
1070
+ CreateTokenCommand,
1071
+ CreateTokenWithIAMCommand,
1072
+ RegisterClientCommand,
1073
+ StartDeviceAuthorizationCommand
1074
+ };
1075
+ var _SSOOIDC = class _SSOOIDC extends SSOOIDCClient {
1076
+ };
1077
+ __name(_SSOOIDC, "SSOOIDC");
1078
+ var SSOOIDC = _SSOOIDC;
1079
+ (0, import_smithy_client.createAggregatedClient)(commands, SSOOIDC);
1080
+
1081
+ // src/index.ts
1082
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1083
+ // Annotate the CommonJS export names for ESM import in node:
1084
+
1085
+ 0 && (module.exports = {
1086
+ SSOOIDCServiceException,
1087
+ __Client,
1088
+ SSOOIDCClient,
1089
+ SSOOIDC,
1090
+ $Command,
1091
+ CreateTokenCommand,
1092
+ CreateTokenWithIAMCommand,
1093
+ RegisterClientCommand,
1094
+ StartDeviceAuthorizationCommand,
1095
+ AccessDeniedException,
1096
+ AuthorizationPendingException,
1097
+ ExpiredTokenException,
1098
+ InternalServerException,
1099
+ InvalidClientException,
1100
+ InvalidGrantException,
1101
+ InvalidRequestException,
1102
+ InvalidScopeException,
1103
+ SlowDownException,
1104
+ UnauthorizedClientException,
1105
+ UnsupportedGrantTypeException,
1106
+ InvalidRequestRegionException,
1107
+ InvalidClientMetadataException,
1108
+ CreateTokenRequestFilterSensitiveLog,
1109
+ CreateTokenResponseFilterSensitiveLog,
1110
+ CreateTokenWithIAMRequestFilterSensitiveLog,
1111
+ CreateTokenWithIAMResponseFilterSensitiveLog,
1112
+ RegisterClientResponseFilterSensitiveLog,
1113
+ StartDeviceAuthorizationRequestFilterSensitiveLog
1114
+ });
1115
+