@cdk8s/awscdk-resolver 0.0.402 → 0.0.404

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 (190) hide show
  1. package/.jsii +4 -4
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
  4. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +277 -270
  5. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +2 -0
  6. package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +2 -0
  7. package/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js +3 -10
  8. package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +3 -10
  9. package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js +3 -10
  10. package/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js +3 -10
  11. package/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js +0 -26
  12. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +2 -0
  13. package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +265 -0
  14. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +10 -1
  15. package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +0 -24
  16. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +1 -0
  17. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +1 -0
  18. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -0
  19. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +1 -0
  20. package/node_modules/@aws-sdk/client-sso/dist-types/schemas/schemas_0.d.ts +26 -0
  21. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +4 -0
  22. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +0 -18
  23. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  24. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  25. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  26. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  27. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/schemas/schemas_0.d.ts +32 -0
  28. package/node_modules/@aws-sdk/client-sso/package.json +4 -4
  29. package/node_modules/@aws-sdk/core/dist-cjs/index.js +1 -4
  30. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1 -4
  31. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -4
  32. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +126 -0
  33. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +1 -1
  34. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  35. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  36. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  37. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  38. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -1
  39. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  40. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -1
  41. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +27 -0
  42. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +1 -1
  43. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +1 -1
  44. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +1 -1
  45. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
  46. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -1
  47. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeDeserializer.d.ts +1 -1
  48. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +1 -1
  49. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +17 -0
  50. package/node_modules/@aws-sdk/core/package.json +1 -1
  51. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  52. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  53. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  54. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  55. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  56. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  57. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  58. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  59. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +246 -310
  60. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  61. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +2 -0
  62. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +3 -10
  63. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js +0 -13
  64. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  65. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +211 -0
  66. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +10 -1
  67. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +0 -8
  68. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -0
  69. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
  70. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -0
  71. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
  72. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +23 -0
  73. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -2
  74. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -3
  75. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/models_0.d.ts +8 -8
  76. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +4 -0
  77. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +0 -6
  78. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -0
  79. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +4 -0
  80. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +4 -0
  81. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +4 -0
  82. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +28 -0
  83. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  84. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  85. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  86. package/node_modules/@smithy/abort-controller/package.json +2 -2
  87. package/node_modules/@smithy/config-resolver/package.json +5 -5
  88. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +4 -1
  89. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -1
  90. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +3 -3
  91. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -1
  92. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +1 -1
  93. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  94. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +1 -1
  95. package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +1 -1
  96. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +1 -1
  97. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +1 -1
  98. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +1 -1
  99. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +1 -1
  100. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  101. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +1 -1
  102. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +1 -1
  103. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +1 -1
  104. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +1 -1
  105. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +1 -1
  106. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +1 -1
  107. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +1 -1
  108. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +1 -1
  109. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +1 -1
  110. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +3 -3
  111. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -1
  112. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +1 -1
  113. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  114. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +1 -1
  115. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +1 -1
  116. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +1 -1
  117. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +1 -1
  118. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +1 -1
  119. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +1 -1
  120. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -1
  121. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +1 -1
  122. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +1 -1
  123. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +1 -1
  124. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +1 -1
  125. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +1 -1
  126. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +1 -1
  127. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +1 -1
  128. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +1 -1
  129. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +1 -1
  130. package/node_modules/@smithy/core/package.json +7 -7
  131. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  132. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  133. package/node_modules/@smithy/hash-node/package.json +2 -2
  134. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  135. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  136. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  137. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  138. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  139. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  140. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  141. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  142. package/node_modules/@smithy/property-provider/package.json +2 -2
  143. package/node_modules/@smithy/protocol-http/package.json +2 -2
  144. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  145. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  146. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  147. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +2 -3
  148. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +10 -6
  149. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +16 -0
  150. package/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +1 -1
  151. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +1 -2
  152. package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +1 -0
  153. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +3 -3
  154. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +2 -2
  155. package/node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js +12 -0
  156. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +2 -0
  157. package/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +1 -0
  158. package/node_modules/@smithy/shared-ini-file-loader/dist-types/readFile.d.ts +21 -0
  159. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +2 -0
  160. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +1 -0
  161. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/readFile.d.ts +21 -0
  162. package/node_modules/@smithy/shared-ini-file-loader/package.json +5 -5
  163. package/node_modules/@smithy/signature-v4/package.json +4 -4
  164. package/node_modules/@smithy/smithy-client/package.json +7 -7
  165. package/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +12 -12
  166. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +5 -5
  167. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +15 -15
  168. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +12 -12
  169. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +5 -5
  170. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +15 -15
  171. package/node_modules/@smithy/types/package.json +1 -1
  172. package/node_modules/@smithy/url-parser/package.json +3 -3
  173. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  174. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  175. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  176. package/node_modules/@smithy/util-middleware/package.json +2 -2
  177. package/node_modules/@smithy/util-retry/package.json +3 -3
  178. package/node_modules/@smithy/util-stream/package.json +4 -4
  179. package/node_modules/@smithy/util-waiter/package.json +3 -3
  180. package/package.json +8 -8
  181. package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +0 -210
  182. package/node_modules/@aws-sdk/client-sso/dist-types/protocols/Aws_restJson1.d.ts +0 -38
  183. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
  184. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js +0 -257
  185. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -11
  186. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -17
  187. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +0 -17
  188. package/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +0 -13
  189. package/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +0 -7
  190. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +0 -7
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class SSOClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class SSOClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class SSOServiceException extends smithyClient.ServiceException {
113
+ let SSOServiceException$1 = class SSOServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, SSOServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class InvalidRequestException extends SSOServiceException {
120
+ let InvalidRequestException$1 = class InvalidRequestException extends SSOServiceException$1 {
121
121
  name = "InvalidRequestException";
122
122
  $fault = "client";
123
123
  constructor(opts) {
@@ -128,8 +128,8 @@ class InvalidRequestException extends SSOServiceException {
128
128
  });
129
129
  Object.setPrototypeOf(this, InvalidRequestException.prototype);
130
130
  }
131
- }
132
- class ResourceNotFoundException extends SSOServiceException {
131
+ };
132
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends SSOServiceException$1 {
133
133
  name = "ResourceNotFoundException";
134
134
  $fault = "client";
135
135
  constructor(opts) {
@@ -140,8 +140,8 @@ class ResourceNotFoundException extends SSOServiceException {
140
140
  });
141
141
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
142
142
  }
143
- }
144
- class TooManyRequestsException extends SSOServiceException {
143
+ };
144
+ let TooManyRequestsException$1 = class TooManyRequestsException extends SSOServiceException$1 {
145
145
  name = "TooManyRequestsException";
146
146
  $fault = "client";
147
147
  constructor(opts) {
@@ -152,8 +152,8 @@ class TooManyRequestsException extends SSOServiceException {
152
152
  });
153
153
  Object.setPrototypeOf(this, TooManyRequestsException.prototype);
154
154
  }
155
- }
156
- class UnauthorizedException extends SSOServiceException {
155
+ };
156
+ let UnauthorizedException$1 = class UnauthorizedException extends SSOServiceException$1 {
157
157
  name = "UnauthorizedException";
158
158
  $fault = "client";
159
159
  constructor(opts) {
@@ -164,252 +164,280 @@ class UnauthorizedException extends SSOServiceException {
164
164
  });
165
165
  Object.setPrototypeOf(this, UnauthorizedException.prototype);
166
166
  }
167
- }
168
- const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({
169
- ...obj,
170
- ...(obj.accessToken && { accessToken: smithyClient.SENSITIVE_STRING }),
171
- });
172
- const RoleCredentialsFilterSensitiveLog = (obj) => ({
173
- ...obj,
174
- ...(obj.secretAccessKey && { secretAccessKey: smithyClient.SENSITIVE_STRING }),
175
- ...(obj.sessionToken && { sessionToken: smithyClient.SENSITIVE_STRING }),
176
- });
177
- const GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({
178
- ...obj,
179
- ...(obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }),
180
- });
181
- const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({
182
- ...obj,
183
- ...(obj.accessToken && { accessToken: smithyClient.SENSITIVE_STRING }),
184
- });
185
- const ListAccountsRequestFilterSensitiveLog = (obj) => ({
186
- ...obj,
187
- ...(obj.accessToken && { accessToken: smithyClient.SENSITIVE_STRING }),
188
- });
189
- const LogoutRequestFilterSensitiveLog = (obj) => ({
190
- ...obj,
191
- ...(obj.accessToken && { accessToken: smithyClient.SENSITIVE_STRING }),
192
- });
193
-
194
- const se_GetRoleCredentialsCommand = async (input, context) => {
195
- const b = core.requestBuilder(input, context);
196
- const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
197
- [_xasbt]: input[_aT],
198
- });
199
- b.bp("/federation/credentials");
200
- const query = smithyClient.map({
201
- [_rn]: [, smithyClient.expectNonNull(input[_rN], `roleName`)],
202
- [_ai]: [, smithyClient.expectNonNull(input[_aI], `accountId`)],
203
- });
204
- let body;
205
- b.m("GET").h(headers).q(query).b(body);
206
- return b.build();
207
- };
208
- const se_ListAccountRolesCommand = async (input, context) => {
209
- const b = core.requestBuilder(input, context);
210
- const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
211
- [_xasbt]: input[_aT],
212
- });
213
- b.bp("/assignment/roles");
214
- const query = smithyClient.map({
215
- [_nt]: [, input[_nT]],
216
- [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
217
- [_ai]: [, smithyClient.expectNonNull(input[_aI], `accountId`)],
218
- });
219
- let body;
220
- b.m("GET").h(headers).q(query).b(body);
221
- return b.build();
222
- };
223
- const se_ListAccountsCommand = async (input, context) => {
224
- const b = core.requestBuilder(input, context);
225
- const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
226
- [_xasbt]: input[_aT],
227
- });
228
- b.bp("/assignment/accounts");
229
- const query = smithyClient.map({
230
- [_nt]: [, input[_nT]],
231
- [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
232
- });
233
- let body;
234
- b.m("GET").h(headers).q(query).b(body);
235
- return b.build();
236
- };
237
- const se_LogoutCommand = async (input, context) => {
238
- const b = core.requestBuilder(input, context);
239
- const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
240
- [_xasbt]: input[_aT],
241
- });
242
- b.bp("/logout");
243
- let body;
244
- b.m("POST").h(headers).b(body);
245
- return b.build();
246
- };
247
- const de_GetRoleCredentialsCommand = async (output, context) => {
248
- if (output.statusCode !== 200 && output.statusCode >= 300) {
249
- return de_CommandError(output, context);
250
- }
251
- const contents = smithyClient.map({
252
- $metadata: deserializeMetadata(output),
253
- });
254
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
255
- const doc = smithyClient.take(data, {
256
- roleCredentials: smithyClient._json,
257
- });
258
- Object.assign(contents, doc);
259
- return contents;
260
- };
261
- const de_ListAccountRolesCommand = async (output, context) => {
262
- if (output.statusCode !== 200 && output.statusCode >= 300) {
263
- return de_CommandError(output, context);
264
- }
265
- const contents = smithyClient.map({
266
- $metadata: deserializeMetadata(output),
267
- });
268
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
269
- const doc = smithyClient.take(data, {
270
- nextToken: smithyClient.expectString,
271
- roleList: smithyClient._json,
272
- });
273
- Object.assign(contents, doc);
274
- return contents;
275
- };
276
- const de_ListAccountsCommand = async (output, context) => {
277
- if (output.statusCode !== 200 && output.statusCode >= 300) {
278
- return de_CommandError(output, context);
279
- }
280
- const contents = smithyClient.map({
281
- $metadata: deserializeMetadata(output),
282
- });
283
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
284
- const doc = smithyClient.take(data, {
285
- accountList: smithyClient._json,
286
- nextToken: smithyClient.expectString,
287
- });
288
- Object.assign(contents, doc);
289
- return contents;
290
- };
291
- const de_LogoutCommand = async (output, context) => {
292
- if (output.statusCode !== 200 && output.statusCode >= 300) {
293
- return de_CommandError(output, context);
294
- }
295
- const contents = smithyClient.map({
296
- $metadata: deserializeMetadata(output),
297
- });
298
- await smithyClient.collectBody(output.body, context);
299
- return contents;
300
- };
301
- const de_CommandError = async (output, context) => {
302
- const parsedOutput = {
303
- ...output,
304
- body: await core$1.parseJsonErrorBody(output.body, context),
305
- };
306
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
307
- switch (errorCode) {
308
- case "InvalidRequestException":
309
- case "com.amazonaws.sso#InvalidRequestException":
310
- throw await de_InvalidRequestExceptionRes(parsedOutput);
311
- case "ResourceNotFoundException":
312
- case "com.amazonaws.sso#ResourceNotFoundException":
313
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
314
- case "TooManyRequestsException":
315
- case "com.amazonaws.sso#TooManyRequestsException":
316
- throw await de_TooManyRequestsExceptionRes(parsedOutput);
317
- case "UnauthorizedException":
318
- case "com.amazonaws.sso#UnauthorizedException":
319
- throw await de_UnauthorizedExceptionRes(parsedOutput);
320
- default:
321
- const parsedBody = parsedOutput.body;
322
- return throwDefaultError({
323
- output,
324
- parsedBody,
325
- errorCode,
326
- });
327
- }
328
167
  };
329
- const throwDefaultError = smithyClient.withBaseException(SSOServiceException);
330
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
331
- const contents = smithyClient.map({});
332
- const data = parsedOutput.body;
333
- const doc = smithyClient.take(data, {
334
- message: smithyClient.expectString,
335
- });
336
- Object.assign(contents, doc);
337
- const exception = new InvalidRequestException({
338
- $metadata: deserializeMetadata(parsedOutput),
339
- ...contents,
340
- });
341
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
342
- };
343
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
344
- const contents = smithyClient.map({});
345
- const data = parsedOutput.body;
346
- const doc = smithyClient.take(data, {
347
- message: smithyClient.expectString,
348
- });
349
- Object.assign(contents, doc);
350
- const exception = new ResourceNotFoundException({
351
- $metadata: deserializeMetadata(parsedOutput),
352
- ...contents,
353
- });
354
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
355
- };
356
- const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
357
- const contents = smithyClient.map({});
358
- const data = parsedOutput.body;
359
- const doc = smithyClient.take(data, {
360
- message: smithyClient.expectString,
361
- });
362
- Object.assign(contents, doc);
363
- const exception = new TooManyRequestsException({
364
- $metadata: deserializeMetadata(parsedOutput),
365
- ...contents,
366
- });
367
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
368
- };
369
- const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
370
- const contents = smithyClient.map({});
371
- const data = parsedOutput.body;
372
- const doc = smithyClient.take(data, {
373
- message: smithyClient.expectString,
374
- });
375
- Object.assign(contents, doc);
376
- const exception = new UnauthorizedException({
377
- $metadata: deserializeMetadata(parsedOutput),
378
- ...contents,
379
- });
380
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
381
- };
382
- const deserializeMetadata = (output) => ({
383
- httpStatusCode: output.statusCode,
384
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
385
- extendedRequestId: output.headers["x-amz-id-2"],
386
- cfId: output.headers["x-amz-cf-id"],
387
- });
168
+
169
+ const _AI = "AccountInfo";
170
+ const _ALT = "AccountListType";
171
+ const _ATT = "AccessTokenType";
172
+ const _GRC = "GetRoleCredentials";
173
+ const _GRCR = "GetRoleCredentialsRequest";
174
+ const _GRCRe = "GetRoleCredentialsResponse";
175
+ const _IRE = "InvalidRequestException";
176
+ const _L = "Logout";
177
+ const _LA = "ListAccounts";
178
+ const _LAR = "ListAccountsRequest";
179
+ const _LARR = "ListAccountRolesRequest";
180
+ const _LARRi = "ListAccountRolesResponse";
181
+ const _LARi = "ListAccountsResponse";
182
+ const _LARis = "ListAccountRoles";
183
+ const _LR = "LogoutRequest";
184
+ const _RC = "RoleCredentials";
185
+ const _RI = "RoleInfo";
186
+ const _RLT = "RoleListType";
187
+ const _RNFE = "ResourceNotFoundException";
188
+ const _SAKT = "SecretAccessKeyType";
189
+ const _STT = "SessionTokenType";
190
+ const _TMRE = "TooManyRequestsException";
191
+ const _UE = "UnauthorizedException";
388
192
  const _aI = "accountId";
193
+ const _aKI = "accessKeyId";
194
+ const _aL = "accountList";
195
+ const _aN = "accountName";
389
196
  const _aT = "accessToken";
390
197
  const _ai = "account_id";
198
+ const _c = "client";
199
+ const _e = "error";
200
+ const _eA = "emailAddress";
201
+ const _ex = "expiration";
202
+ const _h = "http";
203
+ const _hE = "httpError";
204
+ const _hH = "httpHeader";
205
+ const _hQ = "httpQuery";
206
+ const _m = "message";
391
207
  const _mR = "maxResults";
392
208
  const _mr = "max_result";
393
209
  const _nT = "nextToken";
394
210
  const _nt = "next_token";
211
+ const _rC = "roleCredentials";
212
+ const _rL = "roleList";
395
213
  const _rN = "roleName";
396
214
  const _rn = "role_name";
215
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sso";
216
+ const _sAK = "secretAccessKey";
217
+ const _sT = "sessionToken";
397
218
  const _xasbt = "x-amz-sso_bearer_token";
219
+ const n0 = "com.amazonaws.sso";
220
+ var AccessTokenType = [0, n0, _ATT, 8, 0];
221
+ var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
222
+ var SessionTokenType = [0, n0, _STT, 8, 0];
223
+ var AccountInfo = [3, n0, _AI, 0, [_aI, _aN, _eA], [0, 0, 0]];
224
+ var GetRoleCredentialsRequest = [
225
+ 3,
226
+ n0,
227
+ _GRCR,
228
+ 0,
229
+ [_rN, _aI, _aT],
230
+ [
231
+ [
232
+ 0,
233
+ {
234
+ [_hQ]: _rn,
235
+ },
236
+ ],
237
+ [
238
+ 0,
239
+ {
240
+ [_hQ]: _ai,
241
+ },
242
+ ],
243
+ [
244
+ () => AccessTokenType,
245
+ {
246
+ [_hH]: _xasbt,
247
+ },
248
+ ],
249
+ ],
250
+ ];
251
+ var GetRoleCredentialsResponse = [3, n0, _GRCRe, 0, [_rC], [[() => RoleCredentials, 0]]];
252
+ var InvalidRequestException = [
253
+ -3,
254
+ n0,
255
+ _IRE,
256
+ {
257
+ [_e]: _c,
258
+ [_hE]: 400,
259
+ },
260
+ [_m],
261
+ [0],
262
+ ];
263
+ schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1);
264
+ var ListAccountRolesRequest = [
265
+ 3,
266
+ n0,
267
+ _LARR,
268
+ 0,
269
+ [_nT, _mR, _aT, _aI],
270
+ [
271
+ [
272
+ 0,
273
+ {
274
+ [_hQ]: _nt,
275
+ },
276
+ ],
277
+ [
278
+ 1,
279
+ {
280
+ [_hQ]: _mr,
281
+ },
282
+ ],
283
+ [
284
+ () => AccessTokenType,
285
+ {
286
+ [_hH]: _xasbt,
287
+ },
288
+ ],
289
+ [
290
+ 0,
291
+ {
292
+ [_hQ]: _ai,
293
+ },
294
+ ],
295
+ ],
296
+ ];
297
+ var ListAccountRolesResponse = [3, n0, _LARRi, 0, [_nT, _rL], [0, () => RoleListType]];
298
+ var ListAccountsRequest = [
299
+ 3,
300
+ n0,
301
+ _LAR,
302
+ 0,
303
+ [_nT, _mR, _aT],
304
+ [
305
+ [
306
+ 0,
307
+ {
308
+ [_hQ]: _nt,
309
+ },
310
+ ],
311
+ [
312
+ 1,
313
+ {
314
+ [_hQ]: _mr,
315
+ },
316
+ ],
317
+ [
318
+ () => AccessTokenType,
319
+ {
320
+ [_hH]: _xasbt,
321
+ },
322
+ ],
323
+ ],
324
+ ];
325
+ var ListAccountsResponse = [3, n0, _LARi, 0, [_nT, _aL], [0, () => AccountListType]];
326
+ var LogoutRequest = [
327
+ 3,
328
+ n0,
329
+ _LR,
330
+ 0,
331
+ [_aT],
332
+ [
333
+ [
334
+ () => AccessTokenType,
335
+ {
336
+ [_hH]: _xasbt,
337
+ },
338
+ ],
339
+ ],
340
+ ];
341
+ var ResourceNotFoundException = [
342
+ -3,
343
+ n0,
344
+ _RNFE,
345
+ {
346
+ [_e]: _c,
347
+ [_hE]: 404,
348
+ },
349
+ [_m],
350
+ [0],
351
+ ];
352
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
353
+ var RoleCredentials = [
354
+ 3,
355
+ n0,
356
+ _RC,
357
+ 0,
358
+ [_aKI, _sAK, _sT, _ex],
359
+ [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1],
360
+ ];
361
+ var RoleInfo = [3, n0, _RI, 0, [_rN, _aI], [0, 0]];
362
+ var TooManyRequestsException = [
363
+ -3,
364
+ n0,
365
+ _TMRE,
366
+ {
367
+ [_e]: _c,
368
+ [_hE]: 429,
369
+ },
370
+ [_m],
371
+ [0],
372
+ ];
373
+ schema.TypeRegistry.for(n0).registerError(TooManyRequestsException, TooManyRequestsException$1);
374
+ var UnauthorizedException = [
375
+ -3,
376
+ n0,
377
+ _UE,
378
+ {
379
+ [_e]: _c,
380
+ [_hE]: 401,
381
+ },
382
+ [_m],
383
+ [0],
384
+ ];
385
+ schema.TypeRegistry.for(n0).registerError(UnauthorizedException, UnauthorizedException$1);
386
+ var __Unit = "unit";
387
+ var SSOServiceException = [-3, _s, "SSOServiceException", 0, [], []];
388
+ schema.TypeRegistry.for(_s).registerError(SSOServiceException, SSOServiceException$1);
389
+ var AccountListType = [1, n0, _ALT, 0, () => AccountInfo];
390
+ var RoleListType = [1, n0, _RLT, 0, () => RoleInfo];
391
+ var GetRoleCredentials = [
392
+ 9,
393
+ n0,
394
+ _GRC,
395
+ {
396
+ [_h]: ["GET", "/federation/credentials", 200],
397
+ },
398
+ () => GetRoleCredentialsRequest,
399
+ () => GetRoleCredentialsResponse,
400
+ ];
401
+ var ListAccountRoles = [
402
+ 9,
403
+ n0,
404
+ _LARis,
405
+ {
406
+ [_h]: ["GET", "/assignment/roles", 200],
407
+ },
408
+ () => ListAccountRolesRequest,
409
+ () => ListAccountRolesResponse,
410
+ ];
411
+ var ListAccounts = [
412
+ 9,
413
+ n0,
414
+ _LA,
415
+ {
416
+ [_h]: ["GET", "/assignment/accounts", 200],
417
+ },
418
+ () => ListAccountsRequest,
419
+ () => ListAccountsResponse,
420
+ ];
421
+ var Logout = [
422
+ 9,
423
+ n0,
424
+ _L,
425
+ {
426
+ [_h]: ["POST", "/logout", 200],
427
+ },
428
+ () => LogoutRequest,
429
+ () => __Unit,
430
+ ];
398
431
 
399
432
  class GetRoleCredentialsCommand extends smithyClient.Command
400
433
  .classBuilder()
401
434
  .ep(commonParams)
402
435
  .m(function (Command, cs, config, o) {
403
- return [
404
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
405
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
406
- ];
436
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
407
437
  })
408
438
  .s("SWBPortalService", "GetRoleCredentials", {})
409
439
  .n("SSOClient", "GetRoleCredentialsCommand")
410
- .f(GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog)
411
- .ser(se_GetRoleCredentialsCommand)
412
- .de(de_GetRoleCredentialsCommand)
440
+ .sc(GetRoleCredentials)
413
441
  .build() {
414
442
  }
415
443
 
@@ -417,16 +445,11 @@ class ListAccountRolesCommand extends smithyClient.Command
417
445
  .classBuilder()
418
446
  .ep(commonParams)
419
447
  .m(function (Command, cs, config, o) {
420
- return [
421
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
422
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
423
- ];
448
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
424
449
  })
425
450
  .s("SWBPortalService", "ListAccountRoles", {})
426
451
  .n("SSOClient", "ListAccountRolesCommand")
427
- .f(ListAccountRolesRequestFilterSensitiveLog, void 0)
428
- .ser(se_ListAccountRolesCommand)
429
- .de(de_ListAccountRolesCommand)
452
+ .sc(ListAccountRoles)
430
453
  .build() {
431
454
  }
432
455
 
@@ -434,16 +457,11 @@ class ListAccountsCommand extends smithyClient.Command
434
457
  .classBuilder()
435
458
  .ep(commonParams)
436
459
  .m(function (Command, cs, config, o) {
437
- return [
438
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
439
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
440
- ];
460
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
441
461
  })
442
462
  .s("SWBPortalService", "ListAccounts", {})
443
463
  .n("SSOClient", "ListAccountsCommand")
444
- .f(ListAccountsRequestFilterSensitiveLog, void 0)
445
- .ser(se_ListAccountsCommand)
446
- .de(de_ListAccountsCommand)
464
+ .sc(ListAccounts)
447
465
  .build() {
448
466
  }
449
467
 
@@ -451,16 +469,11 @@ class LogoutCommand extends smithyClient.Command
451
469
  .classBuilder()
452
470
  .ep(commonParams)
453
471
  .m(function (Command, cs, config, o) {
454
- return [
455
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
456
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
457
- ];
472
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
458
473
  })
459
474
  .s("SWBPortalService", "Logout", {})
460
475
  .n("SSOClient", "LogoutCommand")
461
- .f(LogoutRequestFilterSensitiveLog, void 0)
462
- .ser(se_LogoutCommand)
463
- .de(de_LogoutCommand)
476
+ .sc(Logout)
464
477
  .build() {
465
478
  }
466
479
 
@@ -487,21 +500,15 @@ Object.defineProperty(exports, "__Client", {
487
500
  get: function () { return smithyClient.Client; }
488
501
  });
489
502
  exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;
490
- exports.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog;
491
- exports.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog;
492
- exports.InvalidRequestException = InvalidRequestException;
503
+ exports.InvalidRequestException = InvalidRequestException$1;
493
504
  exports.ListAccountRolesCommand = ListAccountRolesCommand;
494
- exports.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog;
495
505
  exports.ListAccountsCommand = ListAccountsCommand;
496
- exports.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog;
497
506
  exports.LogoutCommand = LogoutCommand;
498
- exports.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog;
499
- exports.ResourceNotFoundException = ResourceNotFoundException;
500
- exports.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog;
507
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
501
508
  exports.SSO = SSO;
502
509
  exports.SSOClient = SSOClient;
503
- exports.SSOServiceException = SSOServiceException;
504
- exports.TooManyRequestsException = TooManyRequestsException;
505
- exports.UnauthorizedException = UnauthorizedException;
510
+ exports.SSOServiceException = SSOServiceException$1;
511
+ exports.TooManyRequestsException = TooManyRequestsException$1;
512
+ exports.UnauthorizedException = UnauthorizedException$1;
506
513
  exports.paginateListAccountRoles = paginateListAccountRoles;
507
514
  exports.paginateListAccounts = paginateListAccounts;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const core_2 = require("@smithy/core");
6
7
  const smithy_client_1 = require("@smithy/smithy-client");
7
8
  const url_parser_1 = require("@smithy/url-parser");
@@ -31,6 +32,7 @@ const getRuntimeConfig = (config) => {
31
32
  },
32
33
  ],
33
34
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
35
+ protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.sso" }),
34
36
  serviceId: config?.serviceId ?? "SSO",
35
37
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
36
38
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class SSOClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));